diff --git a/README.md b/README.md index 5d0bf30..3fad11c 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ xeolAgent: api-key: foobar ``` -It will set the following environment variable based on this: `XEOL_AGENT_API_KEY=foobar`. +It will set the following environment variable based on this: `XEOL_AGENT_XEOL_API_KEY=foobar`. If you don't want to store your xeol ApiKey in the values file, you can create your own secret to do this: @@ -41,7 +41,7 @@ metadata: name: xeol-agent-api-key type: Opaque stringData: - XEOL_AGENT_API_KEY: foobar + XEOL_AGENT_XEOL_API_KEY: foobar ``` and then provide it to the helm chart via the values file: @@ -166,7 +166,7 @@ kubernetes: mode: adhoc # Only respected if mode is periodic -polling-interval-seconds: 300 +polling-interval-minutes: 300 ``` ### Missing Tag Policy diff --git a/agent/mode/mode.go b/agent/mode/mode.go index fe68fc6..41043d3 100644 --- a/agent/mode/mode.go +++ b/agent/mode/mode.go @@ -1,7 +1,7 @@ /* Determines the Execution Modes supported by the application. - adhoc: the application will poll the k8s API once and then print and report (if configured) its findings - - periodic: the application will poll the k8s API on an interval (polling-interval-seconds) and report (if configured) its findings + - periodic: the application will poll the k8s API on an interval (polling-interval-minutes) and report (if configured) its findings */ package mode diff --git a/cmd/root.go b/cmd/root.go index 338c852..a672c96 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -89,7 +89,7 @@ func init() { os.Exit(1) } - opt = "polling-interval-seconds" + opt = "polling-interval-minutes" rootCmd.Flags().StringP(opt, "p", "300", "If mode is 'periodic', this specifies the interval") if err := viper.BindPFlag(opt, rootCmd.Flags().Lookup(opt)); err != nil { fmt.Printf("unable to bind flag '%s': %+v", opt, err) diff --git a/internal/config/config.go b/internal/config/config.go index 0cedbdf..44d9a71 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -2,9 +2,9 @@ The Config package handles the application configuration. Configurations can come from a variety of places, and are listed below in order of precedence: - Command Line - - .xeol-xeol-agent.yaml + - .xeol-agent.yaml - .xeol-agent/config.yaml - - ~/.xeol-xeol-agent.yaml + - ~/.xeol-agent.yaml - /xeol-agent/config.yaml - Environment Variables prefixed with XEOL_AGENT_ */