From 6c70124235261297e301fbc8dc4dd80410bb9dc9 Mon Sep 17 00:00:00 2001 From: Rokibul Hasan Date: Tue, 19 Dec 2023 00:01:13 +0600 Subject: [PATCH] Update ace-ocm-addons manifestWorkReplicaSet (#272) Signed-off-by: Rokibul Hasan --- .../templates/manifestrelicaset.yaml | 59 ++++--------------- 1 file changed, 11 insertions(+), 48 deletions(-) diff --git a/charts/ace-ocm-addons/templates/manifestrelicaset.yaml b/charts/ace-ocm-addons/templates/manifestrelicaset.yaml index 749205583..09a8a64ce 100644 --- a/charts/ace-ocm-addons/templates/manifestrelicaset.yaml +++ b/charts/ace-ocm-addons/templates/manifestrelicaset.yaml @@ -35,6 +35,17 @@ spec: metadata: name: kubeops + - apiVersion: rbac.authorization.k8s.io/v1 + kind: ClusterRole + metadata: + name: open-cluster-management:klusterlet-work:ace + labels: + open-cluster-management.io/aggregate-to-work: "true" # with this label, the clusterRole will be selected to aggregate + rules: + - apiGroups: ["drivers.x-helm.dev"] + resources: ["appreleases"] + verbs: ["get", "list", "watch", "create", "update", "delete", "patch"] + {{- $helmrepos := dict "bootstrap" (index .Values.helm "repositories" "appscode-charts-oci") }} @@ -123,54 +134,6 @@ spec: {{- end }} {{- end }} - {{- with (index .Values "helm" "releases" "license-proxyserver") }} - {{- if and .enabled (not $.Values.offlineInstaller) }} - - {{ $overrides := dict "registryFQDN" (include "registry.ghcr" $) }} - - {{ $vals := dig "values" dict . }} - {{ $vals = mergeOverwrite $vals $overrides }} - - - apiVersion: helm.toolkit.fluxcd.io/v2beta2 - kind: HelmRelease - metadata: - name: license-proxyserver - namespace: kubeops - labels: - ace.appscode.com/feature: license-proxyserver - spec: - interval: 5m - timeout: 30m - releaseName: license-proxyserver - targetNamespace: kubeops - storageNamespace: kubeops - install: - createNamespace: true - # crds: CreateReplace - remediation: - retries: -1 - upgrade: - crds: CreateReplace - remediation: - retries: -1 - dependsOn: - - name: opscenter-features - namespace: kubeops - chart: - spec: - chart: license-proxyserver - version: {{ .version | quote }} - interval: 60m - sourceRef: - kind: HelmRepository - name: appscode-charts-oci - namespace: kubeops - {{- with $vals }} - {{- dict "values" . | toYaml | nindent 12 }} - {{- end }} - {{- end }} - {{- end }} - {{- with (index .Values "helm" "releases" "kube-ui-server") }} {{- if .enabled }}