diff --git a/charts/gitops-runtime/Chart.yaml b/charts/gitops-runtime/Chart.yaml index b2ffefe2..6b5a0a57 100644 --- a/charts/gitops-runtime/Chart.yaml +++ b/charts/gitops-runtime/Chart.yaml @@ -1,8 +1,8 @@ apiVersion: v2 -appVersion: 0.1.72 +appVersion: 1.0.0-rc.1 description: A Helm chart for Codefresh gitops runtime name: gitops-runtime -version: 0.0.0 +version: 25.11-0 home: https://github.com/codefresh-io/gitops-runtime-helm icon: https://avatars1.githubusercontent.com/u/11412079?v=3 keywords: @@ -24,7 +24,7 @@ dependencies: condition: argo-events.enabled - name: argo-workflows repository: https://codefresh-io.github.io/argo-helm - version: 0.45.17-v3.6.7-cap-CR-31761 + version: 0.45.16-v3.6.7-cap-CR-30835 condition: argo-workflows.enabled - name: argo-rollouts repository: https://codefresh-io.github.io/argo-helm 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" }} diff --git a/charts/gitops-runtime/tests/checksum_test.yaml b/charts/gitops-runtime/tests/checksum_test.yaml new file mode 100644 index 00000000..cc1ddf1d --- /dev/null +++ b/charts/gitops-runtime/tests/checksum_test.yaml @@ -0,0 +1,29 @@ +# yaml-language-server: $schema=https://raw.githubusercontent.com/helm-unittest/helm-unittest/main/schema/helm-testsuite.json +suite: checksum tests +templates: + - event-reporters/**/deployment.yaml + - event-reporters/**/configmap.yaml + - argo-gateway/deployment.yaml + - argo-gateway/configmap.yaml + - app-proxy/deployment.yaml + - app-proxy/config.yaml + - _components/cap-app-proxy/_deployment.yaml + - _components/cap-app-proxy/_config.yaml + - codefresh-cm.yaml +tests: +- it: default checksum annotations is present + values: + - ./values/mandatory-values-ingress.yaml + asserts: + - exists: + path: spec.template.metadata.annotations["checksum/config-argo-gateway"] + template: argo-gateway/deployment.yaml + - exists: + path: spec.template.metadata.annotations["checksum/config-event-reporter"] + template: event-reporters/cluster-event-reporter/deployment.yaml + - exists: + path: spec.template.metadata.annotations["checksum/config-argocd"] + template: event-reporters/cluster-event-reporter/deployment.yaml + - exists: + path: spec.template.metadata.annotations["checksum/config-cap-app-proxy"] + template: app-proxy/deployment.yaml diff --git a/charts/gitops-runtime/values.yaml b/charts/gitops-runtime/values.yaml index 316b89fd..0513a0f0 100644 --- a/charts/gitops-runtime/values.yaml +++ b/charts/gitops-runtime/values.yaml @@ -143,7 +143,7 @@ global: image: registry: quay.io repository: codefresh/cf-argocd-extras - tag: 2cb6f85 + tag: e6944d6 nodeSelector: {} tolerations: [] affinity: {} @@ -495,14 +495,14 @@ app-proxy: tag: 1.1.17-main image: repository: quay.io/codefresh/cap-app-proxy - tag: 1.3953.0 + tag: 0afa16e pullPolicy: IfNotPresent # -- Extra volume mounts for main container extraVolumeMounts: [] initContainer: image: repository: quay.io/codefresh/cap-app-proxy-init - tag: 1.3953.0 + tag: 0afa16e pullPolicy: IfNotPresent command: - ./init.sh @@ -683,7 +683,7 @@ gitops-operator: image: registry: quay.io repository: codefresh/codefresh-gitops-operator - tag: "7bcd56b" + tag: "ff25956" env: !!merge <<: - *otel-config @@ -715,7 +715,7 @@ argo-gateway: image: registry: quay.io repository: codefresh/cf-argocd-extras - tag: 2cb6f85 + tag: e6944d6 nodeSelector: {} tolerations: [] affinity: {}