File tree Expand file tree Collapse file tree 4 files changed +20
-2
lines changed Expand file tree Collapse file tree 4 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ apiVersion: v2
2
2
name : csdp-add-cluster
3
3
description : This helm chart adds a remote cluster to an existing Codefresh runtime
4
4
type : application
5
- version : 0.3 .0
5
+ version : 0.4 .0
6
6
appVersion : 0.8.0
7
7
home : https://codefresh.io/
8
8
icon : https://avatars1.githubusercontent.com/u/11412079?v=3
Original file line number Diff line number Diff line change @@ -10,4 +10,18 @@ metadata:
10
10
annotations :
11
11
{{- toYaml . | nindent 4 }}
12
12
{{- 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 }}
Original file line number Diff line number Diff line change 42
42
# -- Create ServiceAccount
43
43
serviceAccount :
44
44
create : true
45
+ # -- Create ServiceAccount secret
46
+ secret :
47
+ create : true
45
48
name : argocd-manager
46
49
annotations : {}
47
50
Original file line number Diff line number Diff line change @@ -11,3 +11,4 @@ base_components:
11
11
Try to keep resources and patches out of the bundle kustomization, it should contain only the composition
12
12
of components.
13
13
bootstrap : This is the bootstrap component
14
+
You can’t perform that action at this time.
0 commit comments