Skip to content

Commit

Permalink
add custom podAnnotations/labels to yaml, fix missing labels on pod (#68
Browse files Browse the repository at this point in the history
)

add custom podAnnotations/labels to yaml, fix missing labels on pod
itself
  • Loading branch information
aviramha authored Apr 30, 2024
1 parent cb033cc commit 30d8ded
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mirrord-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ 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: 1.3.2
version: 1.4.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
12 changes: 12 additions & 0 deletions mirrord-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: Deployment
metadata:
labels:
app: mirrord-operator
component: operator
app.kubernetes.io/component: operator
{{- include "mirrord-operator.labels" . | nindent 4 }}
name: mirrord-operator
namespace: {{ .Values.namespace }}
Expand All @@ -13,7 +15,17 @@ spec:
template:
metadata:
labels:
{{- include "mirrord-operator.labels" . | nindent 8 }}
app: mirrord-operator
component: operator
app.kubernetes.io/component: operator
{{- if .Values.operator.podLabels }}
{{ toYaml .Values.operator.podLabels | indent 8 }}
{{- end }}
annotations:
{{- if .Values.operator.podAnnotations }}
{{ toYaml .Values.operator.podAnnotations | indent 8 }}
{{- end }}
spec:
{{- if .Values.operator.imagePullSecrets }}
imagePullSecrets:
Expand Down
3 changes: 2 additions & 1 deletion mirrord-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ roleNamespaces: []

operator:
image: ghcr.io/metalbear-co/operator

podAnnotations: {}
podLabels: {}
jsonLog: false
# imagePullSecrets:
# - name: value
Expand Down

0 comments on commit 30d8ded

Please sign in to comment.