feat(argo-cd): Implement server.additionalApplications[].info (#944)

* fix issue 943

Signed-off-by: Artem Kosenko <artem.kosenko@thomsonreuters.com>

* Apply changes from code review

Changes in detail:
- Add missing examples/documentation in values.yaml
- Beautify indentation
- Use 'with' instead of 'if' to don't repeat variable names
- Fix changelog annotation
- Bump minor chart version as this adds a feature

Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>

* Update README

Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>

Co-authored-by: Marko Bevc <marko@scalefactory.com>
Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
This commit is contained in:
Artem Kosenko 2021-09-27 22:32:15 +03:00 committed by GitHub
parent 098d59cbd7
commit 0fe9ec1add
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 38 additions and 24 deletions

View file

@ -2,7 +2,7 @@ apiVersion: v2
appVersion: 2.1.2
description: A Helm chart for ArgoCD, a declarative, GitOps continuous delivery tool for Kubernetes.
name: argo-cd
version: 3.21.1
version: 3.22.0
home: https://github.com/argoproj/argo-helm
icon: https://argoproj.github.io/argo-cd/assets/logo.png
keywords:
@ -21,4 +21,4 @@ dependencies:
condition: redis-ha.enabled
annotations:
artifacthub.io/changes: |
- "[Fixed]: Dex deployment now also supports hostAliases"
- "[Added]: Support for server.additionalApplications[].info"

View file

@ -175,6 +175,8 @@ NAME: my-release
| configs.secret.extra | add additional secrets to be added to argocd-secret | `{}` |
| configs.styles | Define custom CSS styles for your argo instance ([Read More](https://argo-cd.readthedocs.io/en/stable/operator-manual/custom-styles/)). This Settings will automatically mount the provided css and reference it in the argo configuration. | `""` (See [values.yaml](values.yaml)) |
| openshift.enabled | enables using arbitrary uid for argo repo server | `false` |
| server.additionalApplications | Deploy ArgoCD Applications within this helm release | `[]` (See [values.yaml](values.yaml)) |
| server.additionalProjects | Deploy ArgoCD Projects within this helm release | `[]` (See [values.yaml](values.yaml)) |
## ArgoCD Controller

View file

@ -6,23 +6,23 @@ items:
- apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
{{- if .additionalAnnotations }}
{{- with .additionalAnnotations }}
annotations:
{{- range $key, $value := .additionalAnnotations }}
{{- range $key, $value := . }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
{{- if .additionalLabels }}
{{- with .additionalLabels }}
labels:
{{- toYaml .additionalLabels | nindent 8 }}
{{- toYaml . | nindent 8 }}
{{- end }}
name: {{ .name }}
{{- if .namespace }}
namespace: {{ .namespace }}
{{- with .namespace }}
namespace: {{ . }}
{{- end }}
{{- if .finalizers }}
{{- with .finalizers }}
finalizers:
{{- toYaml .finalizers | nindent 8 }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
project: {{ tpl .project $ }}
@ -30,13 +30,17 @@ items:
{{- toYaml .source | nindent 8 }}
destination:
{{- toYaml .destination | nindent 8 }}
{{- if .syncPolicy }}
{{- with .syncPolicy }}
syncPolicy:
{{- toYaml .syncPolicy | nindent 8 }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .ignoreDifferences }}
{{- with .ignoreDifferences }}
ignoreDifferences:
{{- toYaml .ignoreDifferences | nindent 8 }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .info }}
info:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- end }}

View file

@ -854,6 +854,14 @@ server:
# automated:
# prune: false
# selfHeal: false
# ignoreDifferences:
# - group: apps
# kind: Deployment
# jsonPointers:
# - /spec/replicas
# info:
# - name: url
# value: https://argoproj.github.io/
## Projects
## reference: https://github.com/argoproj/argo-cd/blob/master/docs/operator-manual/