Skip to content

Commit

Permalink
feat: quote namespace if it is only numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
mkjmdski committed May 25, 2023
1 parent 427f06c commit c9c95bf
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/app/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.45
version: 0.1.46
2 changes: 1 addition & 1 deletion charts/app/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: ConfigMap
metadata:
name: {{ $name }}-{{ $settings.data | toYaml | sha256sum | trunc 8 }}
{{- if .Values.ns.create }}
namespace: {{ trunc 60 .Values.ns.name }}
namespace: {{ trunc 60 .Values.ns.name | quote }}
{{- end }}
data:
{{- range $fileName, $fileContent := $settings.data }}
Expand Down
2 changes: 1 addition & 1 deletion charts/app/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kind: HorizontalPodAutoscaler
metadata:
name: {{ include "app.fullname" . }}
{{- if .Values.ns.create }}
namespace: {{ trunc 60 .Values.ns.name }}
namespace: {{ trunc 60 .Values.ns.name | quote }}
{{- end }}
labels:
{{- include "app.labels" . | nindent 4 }}
Expand Down
2 changes: 1 addition & 1 deletion charts/app/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ kind: Ingress
metadata:
name: {{ $fullName }}
{{- if .Values.ns.create }}
namespace: {{ trunc 60 .Values.ns.name }}
namespace: {{ trunc 60 .Values.ns.name | quote }}
{{- end }}
labels:
{{- include "app.labels" . | nindent 4 }}
Expand Down
2 changes: 1 addition & 1 deletion charts/app/templates/replicas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: {{ .Values.replicasKind }}
metadata:
name: {{ include "app.fullname" . }}
{{- if .Values.ns.create }}
namespace: {{ trunc 60 .Values.ns.name }}
namespace: {{ trunc 60 .Values.ns.name | quote }}
{{- end }}
labels:
{{- include "app.labels" . | nindent 4 }}
Expand Down
2 changes: 1 addition & 1 deletion charts/app/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Service
metadata:
name: {{ include "app.fullname" . }}
{{- if .Values.ns.create }}
namespace: {{ trunc 60 .Values.ns.name }}
namespace: {{ trunc 60 .Values.ns.name | quote }}
{{- end }}
labels:
{{- include "app.labels" . | nindent 4 }}
Expand Down
2 changes: 1 addition & 1 deletion charts/app/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kind: ServiceAccount
metadata:
name: {{ include "app.serviceAccountName" . }}
{{- if .Values.ns.create }}
namespace: {{ trunc 60 .Values.ns.name }}
namespace: {{ trunc 60 .Values.ns.name | quote }}
{{- end }}
labels:
{{- include "app.labels" . | nindent 4 }}
Expand Down

0 comments on commit c9c95bf

Please sign in to comment.