Skip to content

Commit 3d99e11

Browse files
committed
support singleNamespace option
1 parent aba109b commit 3d99e11

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

charts/gitops-runtime/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ dependencies:
4444
alias: tunnel-client
4545
condition: tunnel-client.enabled
4646
- name: codefresh-gitops-operator
47-
repository: oci://quay.io/codefresh/charts
48-
version: 0.3.12
47+
repository: oci://quay.io/codefresh/charts/dev
48+
version: 0.0.0-feat-cr-24670-namespaced-install
4949
alias: gitops-operator
5050
condition: gitops-operator.enabled
5151
- 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: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ tunnel-client:
361361
#-----------------------------------------------------------------------------------------------------------------------
362362
app-proxy:
363363
replicaCount: 1
364+
singleNamespace: false
364365
# -- Image enrichment process configuration
365366
image-enrichment:
366367
# -- Enable or disable enrichment process. Please note that for enrichemnt, argo-workflows has to be enabled as well.
@@ -521,11 +522,13 @@ gitops-operator:
521522
annotations: {}
522523
# -- Additional labels for gitops operator CRDs
523524
additionalLabels: {}
525+
526+
singleNamespace: false
524527
env: {}
525-
image: {}
528+
image:
526529
# -- defaults
527530
# repository: quay.io/codefresh/codefresh-gitops-operator
528-
# tag: 'v{{ .Chart.AppVersion }}'
531+
tag: feat-cr-24670-namespaced-install-cdc9a73
529532

530533
serviceAccount:
531534
create: true

0 commit comments

Comments
 (0)