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

Default to Kubernetes as the backend and modify kubernetes cli args #171

Merged
merged 1 commit into from
Nov 15, 2022
Merged
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
10 changes: 6 additions & 4 deletions internal/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,14 @@ func (c *RootCommand) Run(cmd *cobra.Command, _ []string) error {
func (c *RootCommand) configureFlags() error {
c.Flags().Int("http-port", 50061, "Port to listen on for HTTP requests")

c.Flags().String("backend", "flatfile", "Backend to use for metadata. Options: flatfile, kubernetes")
c.Flags().String("backend", "kubernetes", "Backend to use for metadata. Options: flatfile, kubernetes")

c.Flags().String("kubeconfig", "", "Path to a kubeconfig file")
c.Flags().String("kubernetes", "", "URL of the Kubernetes API Server")
c.Flags().String("kube-namespace", "", "The Kubernetes namespace to target; defaults to the service account")
// 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-namespace", "", "The Kubernetes namespace to target; defaults to the service account")

// Flatfile backend specific flags.
c.Flags().String("flatfile-path", "", "Path to the flatfile metadata")

c.Flags().String("trusted-proxies", "", "A commma separated list of allowed peer IPs and/or CIDR blocks to replace with X-Forwarded-For")
Expand Down