From ff2907efebed56bb6a04e6cf2ad1fd642e40bf76 Mon Sep 17 00:00:00 2001 From: Rokibul Hasan Date: Fri, 3 Nov 2023 10:21:54 +0600 Subject: [PATCH] Add Config-syncer feature. Signed-off-by: Rokibul Hasan --- charts/opscenter-features/README.md | 1 + .../opscenter-tools/config-syncer.yaml | 45 +++++++++++++++++++ charts/opscenter-features/values.yaml | 2 + 3 files changed, 48 insertions(+) create mode 100644 charts/opscenter-features/templates/featuresets/opscenter-tools/config-syncer.yaml diff --git a/charts/opscenter-features/README.md b/charts/opscenter-features/README.md index 12049c5ed..9fca74594 100644 --- a/charts/opscenter-features/README.md +++ b/charts/opscenter-features/README.md @@ -64,6 +64,7 @@ The following table lists the configurable parameters of the `opscenter-features | helm.releases.cert-manager.version | | "v1.11.0" | | helm.releases.cert-manager-csi-driver-cacerts.version | | "v2023.10.1" | | helm.releases.cluster-autoscaler.version | | "9.29.0" | +| helm.releases.config-syncer.version | | "0.14.2" | | helm.releases.crossplane.version | | "1.13.2" | | helm.releases.external-dns-operator.version | | "v2023.10.1" | | helm.releases.falco.version | | "3.8.4" | diff --git a/charts/opscenter-features/templates/featuresets/opscenter-tools/config-syncer.yaml b/charts/opscenter-features/templates/featuresets/opscenter-tools/config-syncer.yaml new file mode 100644 index 000000000..b418f81b4 --- /dev/null +++ b/charts/opscenter-features/templates/featuresets/opscenter-tools/config-syncer.yaml @@ -0,0 +1,45 @@ +{{ $overrides := dict "registryFQDN" (include "registry.ghcr" $) }} + +{{ $vals := ` +mode: enterprise +` | fromYaml }} +{{ $vals = mergeOverwrite $vals $overrides }} + +apiVersion: ui.k8s.appscode.com/v1alpha1 +kind: Feature +metadata: + name: config-syncer + labels: + ace.appscode.com/feature-set: opscenter-tools +spec: + title: Config Syncer + description: | + Sync Configuration across Namespaces and Clusters. + icons: + - src: https://cdn.appscode.com/k8s/icons/menu/cluster.svg + type: image/svg+xml + featureSet: opscenter-tools + featureBlock: config-syncer + recommended: false + requirements: + features: + - license-proxyserver + readinessChecks: + workloads: + - group: apps + version: v1 + kind: Deployment + selector: + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: config-syncer + chart: + name: config-syncer + namespace: kubeops + version: {{ dig "config-syncer" "version" "" $.Values.helm.releases }} + sourceRef: + kind: HelmRepository + name: appscode-charts-oci + namespace: {{ .Release.Namespace }} + {{- with $vals }} + {{- dict "values" . | toYaml | nindent 2 }} + {{- end }} diff --git a/charts/opscenter-features/values.yaml b/charts/opscenter-features/values.yaml index 5dee3f492..03aea16f1 100644 --- a/charts/opscenter-features/values.yaml +++ b/charts/opscenter-features/values.yaml @@ -55,6 +55,8 @@ helm: version: "v2023.10.1" cluster-autoscaler: version: "9.29.0" + config-syncer: + version: "0.14.2" crossplane: version: "1.13.2" external-dns-operator: