Skip to content

Commit 34b75b9

Browse files
committed
fix(helm/principal): address review feedback on PR #947
Signed-off-by: Enbiya Goral <100806254+enbiyagoral@users.noreply.github.com>
1 parent 5914b71 commit 34b75b9

5 files changed

Lines changed: 24 additions & 3 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Kubernetes: `>=1.24.0-0`
3636
| healthzService.type | string | `"ClusterIP"` | Healthz service type. |
3737
| hostAliases | list | `[]` | Host aliases injected into /etc/hosts of the principal Pod. |
3838
| image.pullPolicy | string | `"IfNotPresent"` | Image pull policy for the principal container. |
39-
| image.repository | string | `"ghcr.io/argoproj-labs/argocd-agent/argocd-agent"` | Container image repository for the principal. |
39+
| image.repository | string | `"quay.io/argoprojlabs/argocd-agent"` | Container image repository for the principal. |
4040
| image.tag | string | `""` | Overrides the image tag whose default is the chart appVersion. |
4141
| imagePullSecrets | list | `[]` | Image pull secrets for private registries. |
4242
| metricsService | object | `{"annotations":{},"enabled":true,"port":8000,"type":"ClusterIP"}` | Metrics service configuration. |

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,9 +360,11 @@ spec:
360360
- containerPort: {{ .Values.principal.listen.port }}
361361
name: principal
362362
protocol: TCP
363+
{{- if .Values.principal.redisProxy.enabled }}
363364
- containerPort: 6379
364365
name: redis-proxy
365366
protocol: TCP
367+
{{- end }}
366368
- containerPort: {{ .Values.principal.metrics.port }}
367369
name: metrics
368370
protocol: TCP
@@ -402,9 +404,11 @@ spec:
402404
- name: userpass-passwd
403405
mountPath: /app/config/userpass
404406
readOnly: true
407+
{{- if .Values.principal.redisProxy.enabled }}
405408
- name: redis-proxy-server-tls
406409
mountPath: /app/config/redis-proxy-server-tls
407410
readOnly: true
411+
{{- end }}
408412
- name: redis-tls-ca
409413
mountPath: /app/config/redis-tls
410414
readOnly: true
@@ -423,6 +427,7 @@ spec:
423427
- key: jwt.key
424428
path: jwt.key
425429
optional: true
430+
{{- if .Values.principal.redisProxy.enabled }}
426431
- name: redis-proxy-server-tls
427432
secret:
428433
secretName: {{ .Values.principal.redis.proxy.server.tls.secretName | quote }}
@@ -432,6 +437,7 @@ spec:
432437
- key: tls.key
433438
path: tls.key
434439
optional: true
440+
{{- end }}
435441
- name: redis-tls-ca
436442
secret:
437443
secretName: {{ .Values.principal.redis.tls.caSecretName | quote }}

install/helm-repo/argocd-agent-principal/templates/tests/test-sa.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ metadata:
77
labels:
88
app.kubernetes.io/name: argocd-agent-principal
99
app.kubernetes.io/component: test
10+
annotations:
11+
"helm.sh/hook": test
12+
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
1013
---
1114
apiVersion: rbac.authorization.k8s.io/v1
1215
kind: Role
@@ -16,6 +19,9 @@ metadata:
1619
labels:
1720
app.kubernetes.io/name: argocd-agent-principal
1821
app.kubernetes.io/component: test
22+
annotations:
23+
"helm.sh/hook": test
24+
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
1925
rules:
2026
- apiGroups: [""]
2127
resources: ["pods", "services", "endpoints", "configmaps", "secrets", "serviceaccounts"]
@@ -35,6 +41,9 @@ metadata:
3541
labels:
3642
app.kubernetes.io/name: argocd-agent-principal
3743
app.kubernetes.io/component: test
44+
annotations:
45+
"helm.sh/hook": test
46+
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
3847
roleRef:
3948
apiGroup: rbac.authorization.k8s.io
4049
kind: Role
@@ -51,6 +60,9 @@ metadata:
5160
labels:
5261
app.kubernetes.io/name: argocd-agent-principal
5362
app.kubernetes.io/component: test
63+
annotations:
64+
"helm.sh/hook": test
65+
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
5466
rules:
5567
- apiGroups: [""]
5668
resources: ["pods", "services", "endpoints", "configmaps", "secrets", "serviceaccounts"]
@@ -69,6 +81,9 @@ metadata:
6981
labels:
7082
app.kubernetes.io/name: argocd-agent-principal
7183
app.kubernetes.io/component: test
84+
annotations:
85+
"helm.sh/hook": test
86+
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
7287
roleRef:
7388
apiGroup: rbac.authorization.k8s.io
7489
kind: ClusterRole

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"additionalProperties": false,
2626
"properties": {
2727
"repository": {
28-
"default": "ghcr.io/argoproj-labs/argocd-agent/argocd-agent",
28+
"default": "quay.io/argoprojlabs/argocd-agent",
2929
"description": "Container image repository.",
3030
"title": "repository",
3131
"type": "string"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ fullnameOverride: ""
99
## @section Image
1010
image:
1111
# -- Container image repository for the principal.
12-
repository: ghcr.io/argoproj-labs/argocd-agent/argocd-agent
12+
repository: quay.io/argoprojlabs/argocd-agent
1313
# -- Overrides the image tag whose default is the chart appVersion.
1414
tag: ""
1515
# -- Image pull policy for the principal container.

0 commit comments

Comments
 (0)