Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
correct the env var to XEOL_AGENT_XEOL_API_KEY
Browse files Browse the repository at this point in the history
Signed-off-by: Benji Visser <[email protected]>
  • Loading branch information
noqcks committed Feb 10, 2023
1 parent c247f1e commit f4995cd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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:
Expand Down Expand Up @@ -166,7 +166,7 @@ kubernetes:
mode: adhoc
# Only respected if mode is periodic
polling-interval-seconds: 300
polling-interval-minutes: 300
```

### Missing Tag Policy
Expand Down
2 changes: 1 addition & 1 deletion agent/mode/mode.go
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
- <XDG_CONFIG_HOME>/xeol-agent/config.yaml
- Environment Variables prefixed with XEOL_AGENT_
*/
Expand Down

0 comments on commit f4995cd

Please sign in to comment.