Skip to content

Commit

Permalink
switch to namespaceOverride, bump chart version
Browse files Browse the repository at this point in the history
  • Loading branch information
krisztianfekete committed Aug 24, 2023
1 parent cd17c1b commit cb886c1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions charts/opentelemetry-collector/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,12 @@ Compute InternalTrafficPolicy on Service creation
{{- end -}}

{{/*
Specify namespace
Allow the release namespace to be overridden
*/}}
{{- define "opentelemetry-collector.namespace" -}}
{{- if .Values.namespace -}}
{{- .Values.namespace -}}
{{- else -}}
{{- .Release.Namespace -}}
{{- end -}}
{{- if .Values.namespaceOverride -}}
{{- .Values.namespaceOverride -}}
{{- else -}}
{{- .Release.Namespace -}}
{{- end -}}
{{- end -}}
2 changes: 1 addition & 1 deletion charts/opentelemetry-collector/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"type": "string",
"enum": ["daemonset", "deployment", "statefulset", ""]
},
"namespace": {
"namespaceOverride": {
"type": "string",
"description": "Name of the namespace to deploy the resources into."
},
Expand Down
2 changes: 1 addition & 1 deletion charts/opentelemetry-collector/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ fullnameOverride: ""
mode: ""

# Specify which namespace should be used to deploy the resources into
namespace: ""
namespaceOverride: ""

# Handles basic configuration of components that
# also require k8s modifications to work correctly.
Expand Down

0 comments on commit cb886c1

Please sign in to comment.