Skip to content

Commit

Permalink
Update ace-ocm-addons manifestWorkReplicaSet (#272)
Browse files Browse the repository at this point in the history
Signed-off-by: Rokibul Hasan <[email protected]>
  • Loading branch information
RokibulHasan7 authored Dec 18, 2023
1 parent c0fe8a6 commit 6c70124
Showing 1 changed file with 11 additions and 48 deletions.
59 changes: 11 additions & 48 deletions charts/ace-ocm-addons/templates/manifestrelicaset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}}
Expand Down Expand Up @@ -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 }}

Expand Down

0 comments on commit 6c70124

Please sign in to comment.