Skip to content

Commit

Permalink
Add ability to annotate deployments & pods for autocert & step-issuer
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlackMini committed Oct 24, 2024
1 parent 2a5e63b commit 77b577e
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
8 changes: 8 additions & 0 deletions autocert/templates/autocert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ metadata:
name: {{ include "autocert.fullname" . }}
labels:
{{- include "autocert.labels" . | nindent 4 }}
{{- if .Values.annotations }}
annotations:
{{- toYaml .Values.annotations | nindent 4 }}
{{- end }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
Expand All @@ -15,6 +19,10 @@ spec:
labels:
app.kubernetes.io/name: {{ include "autocert.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- if .Values.podAnnotations }}
annotations:
{{- toYaml .Values.podAnnotations | nindent 8}}
{{- end }}
spec:
{{- if and .Release.IsInstall (index .Values "step-certificates" "enabled") }}
initContainers:
Expand Down
6 changes: 6 additions & 0 deletions autocert/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ service:
podSecurityContext: {}
# fsGroup: 2000

# Deployment Annotations
annotations: {}

# Annotations to be added to deployment pods
podAnnotations: {}

# autocert contains the configuration for autocert.
autocert:
# image contains the docker image for step-certificates.
Expand Down
8 changes: 8 additions & 0 deletions step-issuer/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
labels:
control-plane: {{ .Values.service.controlPlane }}
{{- include "step-issuer.labels" . | nindent 4 }}
{{- if .Values.annotations }}
annotations:
{{- toYaml .Values.annotations | nindent 4 }}
{{- end }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
Expand All @@ -17,6 +21,10 @@ spec:
labels:
control-plane: {{ .Values.service.controlPlane }}
{{- include "step-issuer.labels" . | nindent 8 }}
{{- if .Values.podAnnotations }}
annotations:
{{- toYaml .Values.podAnnotations | nindent 8}}
{{- end }}
spec:
{{- if $.Values.imagePullSecrets }}
imagePullSecrets:
Expand Down
6 changes: 6 additions & 0 deletions step-issuer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

# Deployment Annotations
annotations: {}

# Annotations to be added to deployment pods
podAnnotations: {}

deployment:
# Configure arguments to pass to the step issuer
args:
Expand Down

0 comments on commit 77b577e

Please sign in to comment.