Skip to content

Commit

Permalink
Merge pull request #8145 from afbjorklund/fmt-fix
Browse files Browse the repository at this point in the history
Fix some minor gofmt and golint issues
  • Loading branch information
k8s-ci-robot authored May 14, 2020
2 parents 462adcb + a4d872f commit 4783909
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/minikube/cmd/start_flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ func generateClusterConfig(cmd *cobra.Command, existing *config.ClusterConfig, k

// updateExistingConfigFromFlags will update the existing config from the flags - used on a second start
// skipping updating existing docker env , docker opt, InsecureRegistry, registryMirror, extra-config, apiserver-ips
func updateExistingConfigFromFlags(cmd *cobra.Command, existing *config.ClusterConfig) config.ClusterConfig { //nolint to supress cyclomatic complexity 45 of func `updateExistingConfigFromFlags` is high (> 30)
func updateExistingConfigFromFlags(cmd *cobra.Command, existing *config.ClusterConfig) config.ClusterConfig { //nolint to suppress cyclomatic complexity 45 of func `updateExistingConfigFromFlags` is high (> 30)
validateFlags(cmd, existing.Driver)

if cmd.Flags().Changed(containerRuntime) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/generate/rewrite.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type rewrite struct {
// outputs possible drivers for the operating system
func rewriteFlags(command *cobra.Command) error {
rewrites := map[string][]rewrite{
"start": []rewrite{{
"start": {{
flag: "driver",
usage: "Used to specify the driver to run Kubernetes in. The list of available drivers depends on operating system.",
}, {
Expand Down
2 changes: 1 addition & 1 deletion pkg/minikube/bootstrapper/bsutil/kverify/kverify.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const (
SystemPodsWaitKey = "system_pods"
// DefaultSAWaitKey is the name used in the flags for default service account
DefaultSAWaitKey = "default_sa"
// AppsRunning is the name used in the flags for waiting for k8s-apps to be running
// AppsRunningKey is the name used in the flags for waiting for k8s-apps to be running
AppsRunningKey = "apps_running"
// NodeReadyKey is the name used in the flags for waiting for the node status to be ready
NodeReadyKey = "node_ready"
Expand Down
2 changes: 1 addition & 1 deletion pkg/minikube/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const (
DefaultServiceCIDR = "10.96.0.0/12"
// HostAlias is a DNS alias to the the container/VM host IP
HostAlias = "host.minikube.internal"
// ControlPaneAlias is a DNS alias pointing to the apiserver frontend
// ControlPlaneAlias is a DNS alias pointing to the apiserver frontend
ControlPlaneAlias = "control-plane.minikube.internal"

// DockerHostEnv is used for docker daemon settings
Expand Down
1 change: 1 addition & 0 deletions pkg/minikube/perf/binary.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import (
"k8s.io/minikube/pkg/minikube/constants"
)

// Binary holds a minikube binary
type Binary struct {
path string
pr int
Expand Down

0 comments on commit 4783909

Please sign in to comment.