File tree 5 files changed +22
-12
lines changed
5 files changed +22
-12
lines changed Original file line number Diff line number Diff line change @@ -31,14 +31,15 @@ dependencies:
31
31
- name : sealed-secrets
32
32
repository : https://bitnami-labs.github.io/sealed-secrets/
33
33
version : 2.16.1
34
+ condition : sealed-secrets.enabled
34
35
- name : codefresh-tunnel-client
35
36
repository : oci://quay.io/codefresh/charts
36
37
version : 0.1.18
37
38
alias : tunnel-client
38
39
condition : tunnel-client.enabled
39
40
- name : codefresh-gitops-operator
40
- repository : oci://quay.io/codefresh/charts
41
- version : 0.3.12
41
+ repository : oci://quay.io/codefresh/charts/dev
42
+ version : 0.0.0-feat-cr-24670-namespaced-install
42
43
alias : gitops-operator
43
44
condition : gitops-operator.enabled
44
45
- name : garage
Original file line number Diff line number Diff line change @@ -242,10 +242,13 @@ Output comma separated list of installed runtime components
242
242
{ {- define " codefresh-gitops-runtime.component-list" } }
243
243
{ {- $argoCD := dict " name" " argocd" " version" (get .Subcharts " argo-cd" ).Chart.AppVersion } }
244
244
{ {- $argoEvents := dict " name" " argo-events" " version" (get .Subcharts " argo-events" ).Chart.AppVersion } }
245
- { {- $sealedSecrets := dict " name" " sealed-secrets" " version" (get .Subcharts " sealed-secrets" ).Chart.AppVersion } }
246
245
{ {- $internalRouter := dict " name" " internal-router" " version" .Chart.AppVersion } }
247
246
{ {- $appProxy := dict " name" " app-proxy" " version" (index (get .Values " app-proxy" ) " image" " tag" ) } }
248
- { {- $comptList := list $argoCD $argoEvents $appProxy $sealedSecrets $internalRouter } }
247
+ { {- $comptList := list $argoCD $argoEvents $appProxy $internalRouter } }
248
+ { {- if index (get .Values " sealed-secrets" ) " enabled" } }
249
+ { {- $sealedSecrets := dict " name" " sealed-secrets" " version" (get .Subcharts " sealed-secrets" ).Chart.AppVersion } }
250
+ { {- $comptList = append $comptList $sealedSecrets } }
251
+ { {- end } }
249
252
{ {- if index (get .Values " argo-rollouts" ) " enabled" } }
250
253
{ {- $rolloutReporter := dict " name" " rollout-reporter" " version" .Chart.AppVersion } }
251
254
{ {- $argoRollouts := dict " name" " argo-rollouts" " version" (get .Subcharts " argo-rollouts" ).Chart.AppVersion } }
Original file line number Diff line number Diff line change 4
4
{{- $_ := set $appProxyContext "Values" (get .Values "app-proxy") }}
5
5
{{- $_ := set $appProxyContext.Values "global" (get .Values "global") }}
6
6
apiVersion : rbac.authorization.k8s.io/v1
7
- kind : ClusterRoleBinding
7
+ kind : {{ $appProxyContext.Values.singleNamespace | ternary "RoleBinding" " ClusterRoleBinding" }}
8
8
metadata :
9
9
name : cap-app-proxy-argo-workflows
10
+ {{- if $appProxyContext.Values.singleNamespace }}
11
+ namespace : {{ .Release.Namespace }}
12
+ {{- end }}
10
13
roleRef :
11
14
apiGroup : rbac.authorization.k8s.io
12
- kind : ClusterRole
15
+ kind : {{ $appProxyContext.Values.singleNamespace | ternary "Role" " ClusterRole" }}
13
16
name : {{ include "codefresh-gitops-runtime.argo-workflows.server.name" . }}
14
17
subjects :
15
18
- kind : ServiceAccount
16
19
name : {{ include "cap-app-proxy.serviceAccountName" $appProxyContext }}
17
20
namespace : {{ .Release.Namespace }}
18
- {{- end }}
21
+ {{- end }}
Original file line number Diff line number Diff line change 1
- {{- if index (get .Values "gitops-operator") "libraryMode" }}
1
+ {{- if and ( index (get .Values "gitops-operator") "libraryMode") (index (get .Values "gitops-operator") "enabled") }}
2
2
{{- $gitopsOperatorContext := (index .Subcharts "gitops-operator")}}
3
3
{{- $argoCDImageDict := index .Subcharts "argo-cd" "Values" "global" "image" }}
4
4
{{- if not $argoCDImageDict.tag }}
Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ installer:
124
124
# Sealed secrets
125
125
# -----------------------------------------------------------------------------------------------------------------------
126
126
sealed-secrets :
127
+ enabled : true
127
128
fullnameOverride : sealed-secrets-controller
128
129
keyrenewperiod : " 720h"
129
130
image :
@@ -383,6 +384,7 @@ tunnel-client:
383
384
# -----------------------------------------------------------------------------------------------------------------------
384
385
app-proxy :
385
386
replicaCount : 1
387
+ singleNamespace : false
386
388
# -- Image enrichment process configuration
387
389
image-enrichment :
388
390
# -- Enable or disable enrichment process. Please note that for enrichemnt, argo-workflows has to be enabled as well.
@@ -562,11 +564,12 @@ gitops-operator:
562
564
# -- Additional labels for gitops operator CRDs
563
565
additionalLabels : {}
564
566
567
+ singleNamespace : false
565
568
env : {}
566
- image : {}
567
- # -- defaults
568
- # repository: quay.io/codefresh/codefresh-gitops-operator
569
- # tag: 'v{{ .Chart.AppVersion }}'
569
+ image :
570
+ # -- defaults
571
+ # repository: quay.io/codefresh/codefresh-gitops-operator
572
+ tag : feat-cr-24670-namespaced-install-cdc9a73
570
573
571
574
serviceAccount :
572
575
create : true
You can’t perform that action at this time.
0 commit comments