Skip to content

Commit

Permalink
fix more cli arg typos
Browse files Browse the repository at this point in the history
  • Loading branch information
derrick-dacosta committed Apr 22, 2024
1 parent 586d36e commit 6bb72a2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/fishymetrics/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ var (
vaultAddr = a.Flag("vault.addr", "Vault instance address to get chassis credentials from").Default("https://vault.com").Envar("VAULT_ADDRESS").String()
vaultRoleId = a.Flag("vault.role-id", "Vault Role ID for AppRole").Default("").Envar("VAULT_ROLE_ID").String()
vaultSecretId = a.Flag("vault.secret-id", "Vault Secret ID for AppRole").Default("").Envar("VAULT_SECRET_ID").String()
driveModExclude = a.Flag("collector.drives.module-exclude", "regex of drive module(s) to exclude from the scrape").Default("").Envar("COLLECTOR_DRIVES_MODULE_EXCLUDE").String()
driveModExclude = a.Flag("collector.drives.modules-exclude", "regex of drive module(s) to exclude from the scrape").Default("").Envar("COLLECTOR_DRIVES_MODULE_EXCLUDE").String()
credProfiles = common.CredentialProf(a.Flag("credentials.profiles",
`profile(s) with all necessary parameters to obtain BMC credential from secrets backend, i.e.
--credentials.profiles="
Expand Down
4 changes: 2 additions & 2 deletions helm/fishymetrics/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ spec:
{{- if .Values.credentials }}
- --credentials.profiles={{ toJson .Values.credentials }}
{{- end }}
{{- if .Values.collectors.drives.modulesExclude }}
- --collectors.drives.modules-exclude={{ .Values.collectors.drives.modulesExclude }}
{{- if .Values.collector.drives.modulesExclude }}
- --collector.drives.modules-exclude={{ .Values.collector.drives.modulesExclude | quote }}
{{- end }}
env:
- name: BMC_USERNAME
Expand Down
2 changes: 1 addition & 1 deletion helm/fishymetrics/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ vault:
roleId: ""
secretId: ""

collectors: {}
collector: {}
# drives:
# modulesExclude: "(?i)(FlexUtil|(SBMezz|IOEMezz)[0-9]+)"

Expand Down

0 comments on commit 6bb72a2

Please sign in to comment.