diff --git a/charts/argocd-apps/Chart.yaml b/charts/argocd-apps/Chart.yaml index c304fee2..cba44891 100644 --- a/charts/argocd-apps/Chart.yaml +++ b/charts/argocd-apps/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: argocd-apps description: A Helm chart for managing additional Argo CD Applications and Projects type: application -version: 0.0.2 +version: 0.0.3 home: https://github.com/argoproj/argo-helm icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png keywords: @@ -14,4 +14,4 @@ maintainers: url: https://argoproj.github.io/ annotations: artifacthub.io/changes: | - - "[Added]: Add ApplicationSets" + - "[Added]: Add Extensions" diff --git a/charts/argocd-apps/README.md b/charts/argocd-apps/README.md index 991f55b2..fc994888 100644 --- a/charts/argocd-apps/README.md +++ b/charts/argocd-apps/README.md @@ -26,6 +26,7 @@ $ helm install my-release argo/argocd-apps |-----|------|---------|-------------| | applications | list | `[]` (See [values.yaml]) | Deploy Argo CD Applications within this helm release | | applicationsets | list | `[]` (See [values.yaml]) | Deploy Argo CD ApplicationSets within this helm release | +| extensions | list | `[]` (See [values.yaml]) | Deploy Argo UI Extensions within this helm release | | projects | list | `[]` (See [values.yaml]) | Deploy Argo CD Projects within this helm release | ---------------------------------------------- diff --git a/charts/argocd-apps/ci/extensions-values.yaml b/charts/argocd-apps/ci/extensions-values.yaml new file mode 100644 index 00000000..15a9fa73 --- /dev/null +++ b/charts/argocd-apps/ci/extensions-values.yaml @@ -0,0 +1,12 @@ +# Test with extensions + +extensions: + - name: example + namespace: default + additionalLabels: {} + additionalAnnotations: {} + sources: + - git: + url: https://github.com/argoproj-labs/argocd-example-extension.git + - web: + url: https://github.com/argoproj-labs/argocd-example-extension/releases/download/v0.1.0/extension.tar diff --git a/charts/argocd-apps/templates/extensions.yaml b/charts/argocd-apps/templates/extensions.yaml new file mode 100644 index 00000000..1893c2a7 --- /dev/null +++ b/charts/argocd-apps/templates/extensions.yaml @@ -0,0 +1,27 @@ +{{- range .Values.extensions }} +--- +apiVersion: argoproj.io/v1alpha1 +kind: ArgoCDExtension +metadata: + name: {{ .name }} + {{- with .namespace }} + namespace: {{ . }} + {{- end }} + finalizers: + - extensions-finalizer.argocd.argoproj.io + {{- with .additionalLabels }} + labels: + {{- toYaml . | nindent 4 }} + {{- end }} + {{- with .additionalAnnotations }} + annotations: + {{- range $key, $value := . }} + {{ $key }}: {{ $value | quote }} + {{- end }} + {{- end }} +{{- with .sources }} +spec: + sources: + {{- toYaml . | nindent 4 }} +{{- end }} +{{- end }} diff --git a/charts/argocd-apps/values.yaml b/charts/argocd-apps/values.yaml index 0421a377..3e0a07f4 100644 --- a/charts/argocd-apps/values.yaml +++ b/charts/argocd-apps/values.yaml @@ -121,3 +121,18 @@ applicationsets: [] # syncPolicy: # # Set Application finalizer # preserveResourcesOnDeletion: false + +# -- Deploy Argo UI Extensions within this helm release +# @default -- `[]` (See [values.yaml]) +## This function in tech preview stage, do expect unstability or breaking changes in newer versions. Bump image.tag if necessary. +## Ref: https://github.com/argoproj-labs/argocd-extensions +extensions: [] + # - name: example + # namespace: argocd + # additionalLabels: {} + # additionalAnnotations: {} + # sources: + # - git: + # url: https://github.com/argoproj-labs/argocd-example-extension.git + # - web: + # url: https://github.com/argoproj-labs/argocd-example-extension/releases/download/v0.1.0/extension.tar