Skip to content

Commit a1321c0

Browse files
fix: argocd-manager sa token for openshift (#290)
1 parent 56f67a6 commit a1321c0

File tree

4 files changed

+20
-2
lines changed

4 files changed

+20
-2
lines changed

add-cluster/helm/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: csdp-add-cluster
33
description: This helm chart adds a remote cluster to an existing Codefresh runtime
44
type: application
5-
version: 0.3.0
5+
version: 0.4.0
66
appVersion: 0.8.0
77
home: https://codefresh.io/
88
icon: https://avatars1.githubusercontent.com/u/11412079?v=3

add-cluster/helm/templates/serviceaccount.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,18 @@ metadata:
1010
annotations:
1111
{{- toYaml . | nindent 4 }}
1212
{{- end }}
13-
{{- end }}
13+
{{- if .Values.serviceAccount.secret }}
14+
{{- if .Values.serviceAccount.secret.create }}
15+
secrets:
16+
- name: {{ include "csdp-add-cluster.serviceAccountName" . }}-sa-token
17+
---
18+
apiVersion: v1
19+
kind: Secret
20+
type: kubernetes.io/service-account-token
21+
metadata:
22+
name: {{ include "csdp-add-cluster.serviceAccountName" . }}-sa-token
23+
annotations:
24+
kubernetes.io/service-account.name: {{ include "csdp-add-cluster.serviceAccountName" . }}
25+
{{- end }}
26+
{{- end }}
27+
{{- end }}

add-cluster/helm/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ rbac:
4242
# -- Create ServiceAccount
4343
serviceAccount:
4444
create: true
45+
# -- Create ServiceAccount secret
46+
secret:
47+
create: true
4548
name: argocd-manager
4649
annotations: {}
4750

csdp/base_components/README.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ base_components:
1111
Try to keep resources and patches out of the bundle kustomization, it should contain only the composition
1212
of components.
1313
bootstrap: This is the bootstrap component
14+

0 commit comments

Comments
 (0)