Skip to content

Commit

Permalink
Use Helm best practices
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp94831 committed Feb 27, 2025
1 parent 4528f89 commit 859aead
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/producer-app-cleanup-job/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ metadata:
{{- include "producer-app.annotations" . }}
labels:
{{- include "producer-app.labels" . | nindent 4 }}
{{- range $key, $value := .Values.labels }}
{{ $key | quote }}: {{ $value | quote }}
{{- end }}
data:
{{- range $key, $value := .Values.files }}
{{ $key }}: {{ $value.content | quote }}
Expand Down
3 changes: 3 additions & 0 deletions charts/producer-app-cleanup-job/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ metadata:
{{- include "producer-app.annotations" . }}
labels:
{{- include "producer-app.labels" . | nindent 4 }}
{{- range $key, $value := .Values.labels }}
{{ $key | quote }}: {{ $value | quote }}
{{- end }}
type: Opaque
data:
{{- range $key, $value := .Values.secrets }}
Expand Down
3 changes: 3 additions & 0 deletions charts/producer-app/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ metadata:
{{- include "producer-app.annotations" . }}
labels:
{{- include "producer-app.labels" . | nindent 4 }}
{{- range $key, $value := .Values.labels }}
{{ $key | quote }}: {{ $value | quote }}
{{- end }}
data:
{{- range $key, $value := .Values.files }}
{{ $key }}: {{ $value.content | quote }}
Expand Down
3 changes: 3 additions & 0 deletions charts/producer-app/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ metadata:
{{- include "producer-app.annotations" . }}
labels:
{{- include "producer-app.labels" . | nindent 4 }}
{{- range $key, $value := .Values.labels }}
{{ $key | quote }}: {{ $value | quote }}
{{- end }}
type: Opaque
data:
{{- range $key, $value := .Values.secrets }}
Expand Down
3 changes: 3 additions & 0 deletions charts/streams-app-cleanup-job/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ metadata:
{{- include "streams-app.annotations" . }}
labels:
{{- include "streams-app.labels" . | nindent 4 }}
{{- range $key, $value := .Values.labels }}
{{ $key | quote }}: {{ $value | quote }}
{{- end }}
data:
{{- range $key, $value := .Values.files }}
{{ $key }}: {{ $value.content | quote }}
Expand Down
3 changes: 3 additions & 0 deletions charts/streams-app-cleanup-job/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ metadata:
{{- include "streams-app.annotations" . }}
labels:
{{- include "streams-app.labels" . | nindent 4 }}
{{- range $key, $value := .Values.labels }}
{{ $key | quote }}: {{ $value | quote }}
{{- end }}
type: Opaque
data:
{{- range $key, $value := .Values.secrets }}
Expand Down
3 changes: 3 additions & 0 deletions charts/streams-app/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ metadata:
{{- include "streams-app.annotations" . }}
labels:
{{- include "streams-app.labels" . | nindent 4 }}
{{- range $key, $value := .Values.labels }}
{{ $key | quote }}: {{ $value | quote }}
{{- end }}
data:
{{- range $key, $value := .Values.files }}
{{ $key }}: {{ $value.content | quote }}
Expand Down
3 changes: 3 additions & 0 deletions charts/streams-app/templates/jmx-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ metadata:
{{- include "streams-app.annotations" . }}
labels:
{{- include "streams-app.labels" . | nindent 4 }}
{{- range $key, $value := .Values.labels }}
{{ $key | quote }}: {{ $value | quote }}
{{- end }}
data:
jmx-kafka-streams-app-prometheus.yml: |+
jmxUrl: service:jmx:rmi:///jndi/rmi://localhost:{{ .Values.jmx.port }}/jmxrmi
Expand Down
3 changes: 3 additions & 0 deletions charts/streams-app/templates/scaled-object.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ metadata:
{{- include "streams-app.annotations" . }}
labels:
{{- include "streams-app.labels" . | nindent 4 }}
{{- range $key, $value := .Values.labels }}
{{ $key | quote }}: {{ $value | quote }}
{{- end }}
spec:
scaleTargetRef:
{{- if .Capabilities.APIVersions.Has "apps/v1" }}
Expand Down
3 changes: 3 additions & 0 deletions charts/streams-app/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ metadata:
{{- include "streams-app.annotations" . }}
labels:
{{- include "streams-app.labels" . | nindent 4 }}
{{- range $key, $value := .Values.labels }}
{{ $key | quote }}: {{ $value | quote }}
{{- end }}
type: Opaque
data:
{{- range $key, $value := .Values.secrets }}
Expand Down

0 comments on commit 859aead

Please sign in to comment.