Skip to content

Commit 9dbe768

Browse files
committed
support singleNamespace option
1 parent 861c7ca commit 9dbe768

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

charts/gitops-runtime/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ dependencies:
3737
alias: tunnel-client
3838
condition: tunnel-client.enabled
3939
- name: codefresh-gitops-operator
40-
repository: oci://quay.io/codefresh/charts
41-
version: 0.2.5
40+
repository: oci://quay.io/codefresh/charts/dev
41+
version: 0.0.0-feat-cr-24670-namespaced-install
4242
alias: gitops-operator
4343
condition: gitops-operator.enabled
4444
- name: garage

charts/gitops-runtime/templates/app-proxy/workflows-crb.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,18 @@
44
{{- $_ := set $appProxyContext "Values" (get .Values "app-proxy") }}
55
{{- $_ := set $appProxyContext.Values "global" (get .Values "global") }}
66
apiVersion: rbac.authorization.k8s.io/v1
7-
kind: ClusterRoleBinding
7+
kind: {{ $appProxyContext.Values.singleNamespace | ternary "RoleBinding" "ClusterRoleBinding" }}
88
metadata:
99
name: cap-app-proxy-argo-workflows
10+
{{- if $appProxyContext.Values.singleNamespace }}
11+
namespace: {{ .Release.Namespace }}
12+
{{- end }}
1013
roleRef:
1114
apiGroup: rbac.authorization.k8s.io
12-
kind: ClusterRole
15+
kind: {{ $appProxyContext.Values.singleNamespace | ternary "Role" "ClusterRole" }}
1316
name: {{ include "codefresh-gitops-runtime.argo-workflows.server.name" . }}
1417
subjects:
1518
- kind: ServiceAccount
1619
name: {{ include "cap-app-proxy.serviceAccountName" $appProxyContext }}
1720
namespace: {{ .Release.Namespace }}
18-
{{- end }}
21+
{{- end }}

charts/gitops-runtime/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@ tunnel-client:
403403
#-----------------------------------------------------------------------------------------------------------------------
404404
app-proxy:
405405
replicaCount: 1
406+
singleNamespace: false
406407
# -- Image enrichment process configuration
407408
image-enrichment:
408409
# -- Enable or disable enrichment process. Please note that for enrichemnt, argo-workflows has to be enabled as well.
@@ -582,6 +583,7 @@ gitops-operator:
582583
# -- Additional labels for gitops operator CRDs
583584
additionalLabels: {}
584585

586+
singleNamespace: false
585587
env: {}
586588
image: {}
587589
# -- defaults

0 commit comments

Comments
 (0)