Skip to content

Commit

Permalink
Add pod labels to helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
krmichelos committed Jun 25, 2024
1 parent 38408c5 commit ec103f9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ helm repo update

Then install a release using the chart. The [charts default values file](charts/ira-controller/values.yaml) provides some commented out examples for setting some of the values. There are several required values, but helm should fail with messages that indicate which value is missing.
```sh
helm upgrade --install ira-controller \
helm upgrade --install --namespace ira-controller-system ira-controller \
ira-controller/ira-controller --values <<name_of_your_values_file>>.yaml
```
Expand Down
2 changes: 1 addition & 1 deletion charts/ira-controller/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ appVersion: "1.0.1"
description: A Helm chart for the ira-controller
name: ira-controller
type: application
version: 1.0.1
version: 1.1.0
3 changes: 3 additions & 0 deletions charts/ira-controller/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ spec:
labels:
control-plane: controller-manager
{{- include "ira-controller.selectorLabels" . | nindent 8 }}
{{- with .Values.controllerManager.manager.podLabels }}
{{- . | nindent 8 }}
{{- end }}
annotations:
kubectl.kubernetes.io/default-container: manager
spec:
Expand Down
1 change: 1 addition & 0 deletions charts/ira-controller/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ controllerManager:
image:
repository: ghcr.io/ontariosystems/ira-controller
tag:
podLabels: {}
resources: []
useCertManager: false
replicas: 2
Expand Down

0 comments on commit ec103f9

Please sign in to comment.