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,41 +2,45 @@
apiVersion: v1
kind: List
items:
{{- range .Values.server.additionalApplications }}
{{- range .Values.server.additionalApplications }}
- apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
{{- if .additionalAnnotations }}
{{- with .additionalAnnotations }}
annotations:
{{- range $key, $value := .additionalAnnotations }}
{{- range $key, $value := . }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- 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 $ }}
source:
{{- toYaml .source | nindent 8 }}
{{- toYaml .source | nindent 8 }}
destination:
{{- toYaml .destination | nindent 8 }}
{{- if .syncPolicy }}
{{- toYaml .destination | nindent 8 }}
{{- with .syncPolicy }}
syncPolicy:
{{- toYaml .syncPolicy | nindent 8 }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .ignoreDifferences }}
{{- with .ignoreDifferences }}
ignoreDifferences:
{{- toYaml .ignoreDifferences | nindent 8 }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- with .info }}
info:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- end }}