From 6991ed0c4eff7498d2b02dff5261e3c31eaace05 Mon Sep 17 00:00:00 2001 From: Chris Doherty <chris.doherty4@gmail.com> Date: Mon, 14 Nov 2022 20:23:02 -0500 Subject: [PATCH] Default to Kubernetes as the backend Signed-off-by: Chris Doherty <chris.doherty4@gmail.com> --- internal/cmd/root.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/internal/cmd/root.go b/internal/cmd/root.go index 16955c3e..a0e7454f 100644 --- a/internal/cmd/root.go +++ b/internal/cmd/root.go @@ -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")