diff --git a/apps/appsets/project-understack-operators.yaml b/apps/appsets/project-understack-operators.yaml index c28fe7431..6b30752f7 100644 --- a/apps/appsets/project-understack-operators.yaml +++ b/apps/appsets/project-understack-operators.yaml @@ -20,6 +20,8 @@ spec: server: '*' - namespace: 'external-secrets' server: '*' + - namespace: 'openebs' + server: '*' - namespace: 'rook-ceph' server: '*' - namespace: 'monitoring' diff --git a/apps/operators/openebs.yaml b/apps/operators/openebs.yaml new file mode 100644 index 000000000..c5e0e784a --- /dev/null +++ b/apps/operators/openebs.yaml @@ -0,0 +1,17 @@ +--- +component: openebs +componentNamespace: openebs +sources: + - repoURL: https://openebs.github.io/openebs + chart: openebs + targetRevision: 4.4.0 + helm: + releaseName: openebs + valueFiles: + - $understack/operators/openebs/values.yaml + - $deploy/{{.name}}/helm-configs/openebs.yaml + ignoreMissingValueFiles: true + - ref: understack + path: 'operators/openebs' + - ref: deploy + path: '{{.name}}/manifests/openebs' diff --git a/charts/argocd-understack/templates/application-openebs.yaml.tpl b/charts/argocd-understack/templates/application-openebs.yaml.tpl new file mode 100644 index 000000000..dfae25f93 --- /dev/null +++ b/charts/argocd-understack/templates/application-openebs.yaml.tpl @@ -0,0 +1,44 @@ +{{- if or (eq (include "understack.isEnabled" (list $.Values.global "openebs")) "true") (eq (include "understack.isEnabled" (list $.Values.site "openebs")) "true") }} +--- +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: {{ printf "%s-%s" $.Release.Name "openebs" }} + annotations: + argocd.argoproj.io/compare-options: ServerSideDiff=true,IncludeMutationWebhook=true +spec: + destination: + namespace: openebs + server: {{ $.Values.cluster_server }} + project: understack-operators + sources: + - chart: openebs + helm: + ignoreMissingValueFiles: true + releaseName: openebs + valueFiles: + - $understack/operators/openebs/values.yaml + - $deploy/{{ $.Release.Name }}/helm-configs/openebs.yaml + repoURL: https://openebs.github.io/openebs + targetRevision: 4.4.0 + - path: operators/openebs + ref: understack + repoURL: {{ include "understack.understack_url" $ }} + targetRevision: {{ include "understack.understack_ref" $ }} + - ref: deploy + repoURL: {{ include "understack.deploy_url" $ }} + targetRevision: {{ include "understack.deploy_ref" $ }} + path: '{{.name}}/manifests/openebs' + syncPolicy: + automated: + prune: true + selfHeal: true + managedNamespaceMetadata: + annotations: + argocd.argoproj.io/sync-options: Delete=false + syncOptions: + - CreateNamespace=true + - ServerSideApply=true + - RespectIgnoreDifferences=true + - ApplyOutOfSyncOnly=true +{{- end }} diff --git a/charts/argocd-understack/values.yaml b/charts/argocd-understack/values.yaml index 19b896401..b2ea6b5a3 100644 --- a/charts/argocd-understack/values.yaml +++ b/charts/argocd-understack/values.yaml @@ -111,6 +111,12 @@ global: # @default -- true enabled: true + # -- OpenEBS + openebs: + # -- Enable/disable deploying OpenEBS + # @default -- true + enabled: true + # Sealed Secrets operator sealed_secrets: # -- Enable/disable deploying sealed secrets diff --git a/operators/openebs/values.yaml b/operators/openebs/values.yaml new file mode 100644 index 000000000..2f874c039 --- /dev/null +++ b/operators/openebs/values.yaml @@ -0,0 +1,7 @@ +engines: + local: + zfs: + enabled: false + replicated: + mayastor: + enabled: false