Skip to content

Commit 1c1c283

Browse files
feat(helm/agent): add deploymentAnnotations value for Deployment metadata annotations (#1043)
Signed-off-by: Ricardo Underwood <runderwoodcr81@gmail.com> Co-authored-by: Jann Fischer <jann@mistrust.net>
1 parent 9383ed6 commit 1c1c283

5 files changed

Lines changed: 18 additions & 3 deletions

File tree

install/helm-repo/argocd-agent-agent/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Argo CD Agent for connecting managed clusters to a Principal
55
type: application
66

77
# chart version
8-
version: 0.2.5
8+
version: 0.2.6
99

1010
# application version, ArgoCD Agent version
1111
appVersion: v0.8.1

install/helm-repo/argocd-agent-agent/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# argocd-agent-agent
22

3-
![Version: 0.2.5](https://img.shields.io/badge/Version-0.2.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.8.1](https://img.shields.io/badge/AppVersion-v0.8.1-informational?style=flat-square)
3+
![Version: 0.2.6](https://img.shields.io/badge/Version-0.2.6-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.8.1](https://img.shields.io/badge/AppVersion-v0.8.1-informational?style=flat-square)
44

55
Argo CD Agent for connecting managed clusters to a Principal
66

@@ -32,6 +32,7 @@ Kubernetes: `>=1.24.0-0`
3232
| auth | string | `"mtls:any"` | Authentication mode for connecting to the principal. |
3333
| cacheRefreshInterval | string | `"10s"` | Cache refresh interval. |
3434
| createNamespace | bool | `false` | Whether to create target namespaces automatically when they don't exist. Used with destination-based mapping. |
35+
| deploymentAnnotations | object | `{}` | Additional annotations to add to the agent Deployment metadata (e.g. Stakater Reloader trigger annotations, which are read from workload metadata only). |
3536
| destinationBasedMapping | bool | `false` | Whether to enable destination-based mapping. When enabled, the agent creates applications in their original namespace (preserving the namespace from the principal) instead of the agent's own namespace. |
3637
| dnsConfig | object | `{}` | DNS config for the Pod. Only honored when `dnsPolicy` is "None". |
3738
| dnsPolicy | string | `""` | DNS policy for the Pod (e.g. ClusterFirst, None). Empty leaves the default. |

install/helm-repo/argocd-agent-agent/templates/agent-deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ metadata:
55
namespace: {{ include "argocd-agent-agent.namespace" . }}
66
labels:
77
{{- include "argocd-agent-agent.labels" . | nindent 4 }}
8+
annotations:
9+
{{- toYaml .Values.deploymentAnnotations | nindent 4 }}
810
spec:
911
replicas: {{ .Values.replicaCount }}
1012
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}

install/helm-repo/argocd-agent-agent/values.schema.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@
6363
"title": "createNamespace",
6464
"type": "boolean"
6565
},
66+
"deploymentAnnotations": {
67+
"additionalProperties": true,
68+
"description": "Additional annotations to add to the agent Deployment metadata.",
69+
"required": [],
70+
"title": "deploymentAnnotations",
71+
"type": "object"
72+
},
6673
"destinationBasedMapping": {
6774
"default": false,
6875
"description": "#\nWhether to enable destination-based mapping. When enabled, the agent\ncreates applications in their original namespace (preserving the namespace\nfrom the principal) instead of the agent's own namespace.",
@@ -1042,6 +1049,7 @@
10421049
"nodeSelector",
10431050
"affinity",
10441051
"tolerations",
1052+
"deploymentAnnotations",
10451053
"podAnnotations",
10461054
"podLabels",
10471055
"priorityClassName",
@@ -1085,4 +1093,4 @@
10851093
"tests"
10861094
],
10871095
"type": "object"
1088-
}
1096+
}

install/helm-repo/argocd-agent-agent/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ affinity: {}
109109
tolerations: []
110110
# -- Topology spread constraints for the agent Pod.
111111
topologySpreadConstraints: []
112+
# -- Additional annotations to add to the agent Deployment metadata
113+
# (e.g. Stakater Reloader trigger annotations, which are read from workload metadata only).
114+
deploymentAnnotations: {}
115+
112116
# -- Additional annotations to add to the agent Pod.
113117
podAnnotations: {}
114118
# -- Additional labels to add to the agent Pod.

0 commit comments

Comments
 (0)