Skip to content

Commit a311650

Browse files
committed
support singleNamespace option
1 parent 11c84fb commit a311650

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

charts/gitops-runtime/Chart.yaml

+2-2
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.12
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

+6-3
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

+2
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@ tunnel-client:
370370
#-----------------------------------------------------------------------------------------------------------------------
371371
app-proxy:
372372
replicaCount: 1
373+
singleNamespace: false
373374
# -- Image enrichment process configuration
374375
image-enrichment:
375376
# -- Enable or disable enrichment process. Please note that for enrichemnt, argo-workflows has to be enabled as well.
@@ -549,6 +550,7 @@ gitops-operator:
549550
# -- Additional labels for gitops operator CRDs
550551
additionalLabels: {}
551552

553+
singleNamespace: false
552554
env: {}
553555
image: {}
554556
# -- defaults

0 commit comments

Comments
 (0)