Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added help flag for bootstrap-kubeconfig #528

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions agent/help_flag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions agent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -135,6 +136,7 @@ var (
skipInstallation bool
useInstallerController bool
printVersion bool
bootstrapKubeConfig string
k8sInstaller reconciler.IK8sInstaller
)

Expand Down