Skip to content

Commit

Permalink
Add annotations to all Kubernetes resources
Browse files Browse the repository at this point in the history
  • Loading branch information
raminqaf committed Oct 29, 2024
1 parent feaeebc commit 3388644
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion charts/producer-app-cleanup-job/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "producer-app.name" . }}
{{- include "producer-app.annotations" . | nindent 2 }}
{{- include "producer-app.annotations" . }}
data:
{{- range $key, $value := .Values.files }}
{{ $key }}: {{ $value.content | quote }}
Expand Down
2 changes: 1 addition & 1 deletion charts/producer-app-cleanup-job/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: batch/v1
kind: Job
metadata:
name: {{ template "producer-app.fullname" . }}
{{- include "producer-app.annotations" . | nindent 2 }}
{{- include "producer-app.annotations" . }}
labels:
app: {{ template "producer-app.name" . }}
chart: {{ template "producer-app.chart" . }}
Expand Down
2 changes: 1 addition & 1 deletion charts/producer-app-cleanup-job/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: v1
kind: Secret
metadata:
name: {{ template "producer-app.fullname" . }}
{{- include "producer-app.annotations" . | nindent 2 }}
{{- include "producer-app.annotations" . }}
type: Opaque
data:
{{- range $key, $value := .Values.secrets }}
Expand Down
2 changes: 1 addition & 1 deletion charts/producer-app/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "producer-app.name" . }}
{{- include "producer-app.annotations" . | nindent 2 }}
{{- include "producer-app.annotations" . }}
data:
{{- range $key, $value := .Values.files }}
{{ $key }}: {{ $value.content | quote }}
Expand Down
3 changes: 1 addition & 2 deletions charts/producer-app/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: {{ template "producer-app.fullname" . }}
{{- include "producer-app.annotations" . | nindent 2 }}

{{- include "producer-app.annotations" . }}
labels:
app: {{ template "producer-app.name" . }}
chart: {{ template "producer-app.chart" . }}
Expand Down
2 changes: 1 addition & 1 deletion charts/producer-app/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ kind: Job
{{- end }}
metadata:
name: {{ template "producer-app.fullname" . }}
{{- include "producer-app.annotations" . | nindent 2 }}
{{- include "producer-app.annotations" . }}
labels:
app: {{ template "producer-app.name" . }}
chart: {{ template "producer-app.chart" . }}
Expand Down
2 changes: 1 addition & 1 deletion charts/producer-app/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: v1
kind: Secret
metadata:
name: {{ template "producer-app.fullname" . }}
{{- include "producer-app.annotations" . | nindent 2 }}
{{- include "producer-app.annotations" . }}
type: Opaque
data:
{{- range $key, $value := .Values.secrets }}
Expand Down
2 changes: 1 addition & 1 deletion charts/producer-app/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: v1
kind: Service
metadata:
name: {{ template "producer-app.fullname" . }}
{{- include "producer-app.annotations" . | nindent 2 }}
{{- include "producer-app.annotations" . }}
labels:
app: {{ template "producer-app.name" . }}
chart: {{ template "producer-app.chart" . }}
Expand Down
2 changes: 1 addition & 1 deletion charts/streams-app-cleanup-job/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "streams-app.name" . }}
{{- include "streams-app.annotations" . | nindent 2 }}
{{- include "streams-app.annotations" . }}
data:
{{- range $key, $value := .Values.files }}
{{ $key }}: {{ $value.content | quote }}
Expand Down
2 changes: 1 addition & 1 deletion charts/streams-app-cleanup-job/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: batch/v1
kind: Job
metadata:
name: {{ template "streams-app.fullname" . }}
{{- include "streams-app.annotations" . | nindent 2 }}
{{- include "streams-app.annotations" . }}
labels:
app: {{ template "streams-app.name" . }}
chart: {{ template "streams-app.chart" . }}
Expand Down
2 changes: 1 addition & 1 deletion charts/streams-app-cleanup-job/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: v1
kind: Secret
metadata:
name: {{ template "streams-app.fullname" . }}
{{- include "streams-app.annotations" . | nindent 2 }}
{{- include "streams-app.annotations" . }}
type: Opaque
data:
{{- range $key, $value := .Values.secrets }}
Expand Down

0 comments on commit 3388644

Please sign in to comment.