Skip to content

Commit

Permalink
Fix the default kind context to match kind's default. (#605)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarrick-mesosphere committed Jul 19, 2019
1 parent eaf0376 commit 55b7409
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/kudoctl/cmd/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ For more detailed documentation, visit: https://kudo.dev/docs/testing`,
}

if options.KINDContext == "" {
options.KINDContext = "default"
options.KINDContext = "kind"
}

if options.StartControlPlane && options.StartKIND {
Expand Down Expand Up @@ -180,7 +180,7 @@ For more detailed documentation, visit: https://kudo.dev/docs/testing`,
testCmd.Flags().BoolVar(&startControlPlane, "start-control-plane", false, "Start a local Kubernetes control plane for the tests (requires etcd and kube-apiserver binaries, cannot be used with --start-kind).")
testCmd.Flags().BoolVar(&startKIND, "start-kind", false, "Start a KIND cluster for the tests (cannot be used with --start-control-plane).")
testCmd.Flags().StringVar(&kindConfig, "kind-config", "", "Specify the KIND configuration file path (implies --start-kind, cannot be used with --start-control-plane).")
testCmd.Flags().StringVar(&kindContext, "kind-context", "", "Specify the KIND context name to use.")
testCmd.Flags().StringVar(&kindContext, "kind-context", "", "Specify the KIND context name to use (default: kind).")
testCmd.Flags().StringVar(&artifactsDir, "artifacts-dir", "", "Directory to output kind logs to (if not specified, the current working directory).")
testCmd.Flags().BoolVar(&startKUDO, "start-kudo", false, "Start KUDO during the test run.")
testCmd.Flags().BoolVar(&skipDelete, "skip-delete", false, "If set, do not delete resources created during tests (helpful for debugging test failures, implies --skip-cluster-delete).")
Expand Down

0 comments on commit 55b7409

Please sign in to comment.