Skip to content

Commit

Permalink
added help flag for bootstrap-kubeconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
khannakshat7 committed May 9, 2022
1 parent e708375 commit f3db180
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions agent/help_flag_test.go
Original file line number Diff line number Diff line change
@@ -17,6 +17,7 @@ var _ = Describe("Help flag for host agent", func() {
Context("When the help flag is provided", func() {
var (
expectedOptions = []string{
"--bootstrap-kubeconfig string",
"--downloadpath string",
"--kubeconfig string",
"--label labelFlags",
2 changes: 2 additions & 0 deletions agent/main.go
Original file line number Diff line number Diff line change
@@ -90,6 +90,7 @@ func setupflags() {
flag.BoolVar(&skipInstallation, "skip-installation", false, "If you want to skip installation of the kubernetes component binaries")
flag.BoolVar(&useInstallerController, "use-installer-controller", false, "If you want to skip the intree installer and use the default or your own installer controller")
flag.BoolVar(&printVersion, "version", false, "Print the version of the agent")
flag.StringVar(&bootstrapKubeConfig, "bootstrap-kubeconfig", "", "Provide bootstrap kubeconfig for bootstrap token workflow")

pflag.CommandLine.AddGoFlagSet(flag.CommandLine)
hiddenFlags := []string{"log-flush-frequency", "alsologtostderr", "log-backtrace-at", "log-dir", "logtostderr", "stderrthreshold", "vmodule", "azure-container-registry-config",
@@ -135,6 +136,7 @@ var (
skipInstallation bool
useInstallerController bool
printVersion bool
bootstrapKubeConfig string
k8sInstaller reconciler.IK8sInstaller
)

0 comments on commit f3db180

Please sign in to comment.