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 custom podAnnotations/labels to yaml, fix missing labels on pod #68

Merged
merged 1 commit into from
Apr 30, 2024
Merged
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
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: {}
DmitryDodzin marked this conversation as resolved.
Show resolved Hide resolved
jsonLog: false
# imagePullSecrets:
# - name: value
Expand Down
Loading