diff --git a/charts/gitops-runtime/templates/event-reporters/cluster-event-reporter/_env.yaml b/charts/gitops-runtime/templates/event-reporters/cluster-event-reporter/_env.yaml index d8e1e2ec..0cc3e23a 100644 --- a/charts/gitops-runtime/templates/event-reporters/cluster-event-reporter/_env.yaml +++ b/charts/gitops-runtime/templates/event-reporters/cluster-event-reporter/_env.yaml @@ -2,6 +2,7 @@ HTTP_PROXY: {{ .Values.global.httpProxy | squote}} HTTPS_PROXY: {{ .Values.global.httpsProxy | squote }} NO_PROXY: {{ .Values.global.noProxy | squote }} +IS_NAMESPACED_RUNTIME: {{ .Values.global.runtime.singleNamespace }} {{- if and (eq (index .Values "global" "integrations" "argo-cd" "server" "auth" "type") "token") }} {{- if not (index .Values "global" "integrations" "argo-cd" "server" "auth" "token") }} diff --git a/charts/gitops-runtime/templates/event-reporters/cluster-event-reporter/rbac.yaml b/charts/gitops-runtime/templates/event-reporters/cluster-event-reporter/rbac.yaml index 4ab10d33..2b06f30b 100644 --- a/charts/gitops-runtime/templates/event-reporters/cluster-event-reporter/rbac.yaml +++ b/charts/gitops-runtime/templates/event-reporters/cluster-event-reporter/rbac.yaml @@ -23,10 +23,6 @@ rules: - '*' verbs: - '*' - - nonResourceURLs: - - '*' - verbs: - - '*' --- apiVersion: rbac.authorization.k8s.io/v1 kind: {{ $context.Values.global.runtime.singleNamespace | ternary "RoleBinding" "ClusterRoleBinding" }} diff --git a/charts/gitops-runtime/templates/event-reporters/runtime-event-reporter/_env.yaml b/charts/gitops-runtime/templates/event-reporters/runtime-event-reporter/_env.yaml index 02d0cefa..e6063059 100644 --- a/charts/gitops-runtime/templates/event-reporters/runtime-event-reporter/_env.yaml +++ b/charts/gitops-runtime/templates/event-reporters/runtime-event-reporter/_env.yaml @@ -2,6 +2,7 @@ HTTP_PROXY: {{ .Values.global.httpProxy | squote}} HTTPS_PROXY: {{ .Values.global.httpsProxy | squote }} NO_PROXY: {{ .Values.global.noProxy | squote }} +IS_NAMESPACED_RUNTIME: {{ .Values.global.runtime.singleNamespace }} {{- if and (eq (index .Values "global" "integrations" "argo-cd" "server" "auth" "type") "token") }} {{- if not (index .Values "global" "integrations" "argo-cd" "server" "auth" "token") }} diff --git a/charts/gitops-runtime/templates/event-reporters/runtime-event-reporter/rbac.yaml b/charts/gitops-runtime/templates/event-reporters/runtime-event-reporter/rbac.yaml index a11a1e14..6cef61e9 100644 --- a/charts/gitops-runtime/templates/event-reporters/runtime-event-reporter/rbac.yaml +++ b/charts/gitops-runtime/templates/event-reporters/runtime-event-reporter/rbac.yaml @@ -23,10 +23,6 @@ rules: - '*' verbs: - '*' - - nonResourceURLs: - - '*' - verbs: - - '*' --- apiVersion: rbac.authorization.k8s.io/v1 kind: {{ $context.Values.global.runtime.singleNamespace | ternary "RoleBinding" "ClusterRoleBinding" }}