Skip to content

Commit 6cb9040

Browse files
authored
fix: update namespace handling in cluster resource reporter (#965)
* fix: remove nonResourceURLs from RBAC rules for event reporters * fix: add IS_NAMESPACED_RUNTIME variable to environment variables for event reporters * update event-reporters image to `e6944d6` - fix: update namespace handling in cluster resource reporter (codefresh-io/cf-argocd-extras#97)
1 parent 12c4ead commit 6cb9040

File tree

5 files changed

+3
-9
lines changed

5 files changed

+3
-9
lines changed

charts/gitops-runtime/templates/event-reporters/cluster-event-reporter/_env.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
HTTP_PROXY: {{ .Values.global.httpProxy | squote}}
33
HTTPS_PROXY: {{ .Values.global.httpsProxy | squote }}
44
NO_PROXY: {{ .Values.global.noProxy | squote }}
5+
IS_NAMESPACED_RUNTIME: {{ .Values.global.runtime.singleNamespace }}
56

67
{{- if and (eq (index .Values "global" "integrations" "argo-cd" "server" "auth" "type") "token") }}
78
{{- if not (index .Values "global" "integrations" "argo-cd" "server" "auth" "token") }}

charts/gitops-runtime/templates/event-reporters/cluster-event-reporter/rbac.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ rules:
2323
- '*'
2424
verbs:
2525
- '*'
26-
- nonResourceURLs:
27-
- '*'
28-
verbs:
29-
- '*'
3026
---
3127
apiVersion: rbac.authorization.k8s.io/v1
3228
kind: {{ $context.Values.global.runtime.singleNamespace | ternary "RoleBinding" "ClusterRoleBinding" }}

charts/gitops-runtime/templates/event-reporters/runtime-event-reporter/_env.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
HTTP_PROXY: {{ .Values.global.httpProxy | squote}}
33
HTTPS_PROXY: {{ .Values.global.httpsProxy | squote }}
44
NO_PROXY: {{ .Values.global.noProxy | squote }}
5+
IS_NAMESPACED_RUNTIME: {{ .Values.global.runtime.singleNamespace }}
56

67
{{- if and (eq (index .Values "global" "integrations" "argo-cd" "server" "auth" "type") "token") }}
78
{{- if not (index .Values "global" "integrations" "argo-cd" "server" "auth" "token") }}

charts/gitops-runtime/templates/event-reporters/runtime-event-reporter/rbac.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ rules:
2323
- '*'
2424
verbs:
2525
- '*'
26-
- nonResourceURLs:
27-
- '*'
28-
verbs:
29-
- '*'
3026
---
3127
apiVersion: rbac.authorization.k8s.io/v1
3228
kind: {{ $context.Values.global.runtime.singleNamespace | ternary "RoleBinding" "ClusterRoleBinding" }}

charts/gitops-runtime/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ global:
143143
image:
144144
registry: quay.io
145145
repository: codefresh/cf-argocd-extras
146-
tag: 2cb6f85
146+
tag: e6944d6
147147
nodeSelector: {}
148148
tolerations: []
149149
affinity: {}

0 commit comments

Comments
 (0)