diff --git a/internal/cmd/root.go b/internal/cmd/root.go index a71137c8..5e01f450 100644 --- a/internal/cmd/root.go +++ b/internal/cmd/root.go @@ -45,9 +45,9 @@ type RootCommandOptions struct { Backend string `mapstructure:"backend"` - KubeAPIServerAddress string `mapstructure:"kubernetes"` - Kubeconfig string `mapstructure:"kubeconfig"` - KubeNamespace string `mapstructure:"kube-namespace"` + KubernetesAPIServer string `mapstructure:"kubernetes-apiserver"` + KubernetesKubeconfig string `mapstructure:"kubernetes-kubeconfig"` + KubernetesNamespace string `mapstructure:"kubernetes-namespace"` FlatfilePath string `mapstructure:"flatfile-path"` @@ -140,7 +140,7 @@ func (c *RootCommand) configureFlags() error { // Kubernetes backend specific flags. c.Flags().String("kubernetes-kubeconfig", "", "Path to a kubeconfig file") - c.Flags().String("kubernetes-apiserver-endpoint", "", "URL of the Kubernetes API Server") + c.Flags().String("kubernetes-apiserver", "", "URL of the Kubernetes API Server") c.Flags().String("kubernetes-namespace", "", "The Kubernetes namespace to target; defaults to the service account") // Flatfile backend specific flags. @@ -184,9 +184,9 @@ func toBackendOptions(opts RootCommandOptions) backend.Options { case "kubernetes": backndOpts = backend.Options{ Kubernetes: &backend.KubernetesOptions{ - APIServerAddress: opts.KubeAPIServerAddress, - Kubeconfig: opts.Kubeconfig, - Namespace: opts.KubeNamespace, + APIServerAddress: opts.KubernetesAPIServer, + Kubeconfig: opts.KubernetesKubeconfig, + Namespace: opts.KubernetesNamespace, }, } }