Skip to content

Commit 366cc88

Browse files
authored
Merge pull request #189 from tv2-oss/feature/pod-annotations
Added podAnnotations feature
2 parents c451ca2 + 8dd341e commit 366cc88

File tree

6 files changed

+13
-1
lines changed

6 files changed

+13
-1
lines changed

.github/configs/ct-lint.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ chart-dirs:
55
- charts
66
helm-extra-args: --timeout 600s
77
validate-maintainers: false
8+
check-version-increment: false

charts/bifrost-gateway-controller/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## [UNRELEASED]
44

55
- Example text, add your PR info according to example below below this line. Do not bump chart version in Chart.yaml.
6+
- Added podAnnotations to chart, allowing users to set annotations for the controller pod
67

78
## [0.1.6]
89

charts/bifrost-gateway-controller/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Gateway API driven management of network infrastructure across Kubernetes and cl
2727
| controllerManager.manager.resources.limits.memory | string | `"128Mi"` | |
2828
| controllerManager.manager.resources.requests.cpu | string | `"10m"` | |
2929
| controllerManager.manager.resources.requests.memory | string | `"64Mi"` | |
30+
| controllerManager.podAnnotations | object | `{}` | |
3031
| controllerManager.replicas | int | `1` | |
3132
| metricsService.ports[0].name | string | `"http"` | |
3233
| metricsService.ports[0].port | int | `8080` | |
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
controllerManager:
22
annotations:
3-
tv2.dk/gateway-controller/annontations: true
3+
tv2.dk/gateway-controller/annotations: true
4+
podAnnotations:
5+
tv2.dk/gateway-controller/podAnnotations: true

charts/bifrost-gateway-controller/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ spec:
2222
control-plane: manager
2323
{{- include "gateway-controller.selectorLabels" . | nindent 8 }}
2424
annotations:
25+
{{- with .Values.controllerManager.podAnnotations }}
26+
{{- toYaml . | nindent 8 }}
27+
{{- end }}
2528
kubectl.kubernetes.io/default-container: manager
2629
spec:
2730
containers:

charts/bifrost-gateway-controller/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ controllerManager:
5050

5151
# Annotations to add to the deployment
5252
annotations: {}
53+
54+
# Annotations to add to the pod
55+
podAnnotations: {}
56+
5357
replicas: 1
5458

5559
deploymentStrategy:

0 commit comments

Comments
 (0)