Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to annotate deployments & pods for autocert & step-issuer #202

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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