Skip to content

Commit

Permalink
remove defaults in helm templating in favor of explicitly setting the…
Browse files Browse the repository at this point in the history
… value in the values file (and still allow for override).
  • Loading branch information
kgrubb committed Apr 24, 2024
1 parent 56099b9 commit 2913344
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/netobserv/templates/maxmind-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v1
kind: Secret
metadata:
name: {{ .Values.maxmind.secretRef | default "maxmind-license" }}
name: {{ .Values.maxmind.secretRef }}
type: Opaque
data:
license: {{ .Values.maxmind.licenseKey | b64enc }}
Expand Down
2 changes: 1 addition & 1 deletion charts/netobserv/templates/netobserv-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v1
kind: Secret
metadata:
name: {{ .Values.license.secretRef | default "netobserv-license" }}
name: {{ .Values.license.secretRef }}
labels:
{{- include "netobserv.labels" . | nindent 4 }}
type: Opaque
Expand Down
4 changes: 2 additions & 2 deletions charts/netobserv/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ license:
createSecret: false
# Secret name to be used for the license. If empty, the secret name defaults to `netobserv-license`
# If no secret with a matching name exists, the value will be set from `licenseKey`.instead.
secretRef: ""
secretRef: "netobserv-license"
# Set license key, if not set, value from secret will be used
licenseKey: ""

Expand All @@ -84,7 +84,7 @@ maxmind:
createSecret: false
# Secret name to be used for the license. If empty, the secret name defaults to `maxmind-license`
# If no secret with a matching name exists, the value will be set from `licenseKey`.instead.
secretRef: ""
secretRef: "maxmind-license"
# Enabling asn will look up the autonomous system number and autonomous system
# organization associated with IPv4 and IPv6 addresses.
asnEnabled: false
Expand Down

0 comments on commit 2913344

Please sign in to comment.