Merge branch 'main' into mw/deployment-annotations
Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
This commit is contained in:
commit
4ef65e348d
29 changed files with 354 additions and 21 deletions
2
.github/workflows/lint-and-test.yml
vendored
2
.github/workflows/lint-and-test.yml
vendored
|
@ -70,7 +70,7 @@ jobs:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Create kind cluster
|
- name: Create kind cluster
|
||||||
uses: helm/kind-action@d8ccf8fb623ce1bb360ae2f45f323d9d5c5e9f00 # v1.5.0
|
uses: helm/kind-action@fa81e57adff234b2908110485695db0f181f3c67 # v1.7.0
|
||||||
if: steps.list-changed.outputs.changed == 'true'
|
if: steps.list-changed.outputs.changed == 'true'
|
||||||
with:
|
with:
|
||||||
config: .github/configs/kind-config.yaml
|
config: .github/configs/kind-config.yaml
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: redis-ha
|
- name: redis-ha
|
||||||
repository: https://dandydeveloper.github.io/charts/
|
repository: https://dandydeveloper.github.io/charts/
|
||||||
version: 4.22.5
|
version: 4.23.0
|
||||||
digest: sha256:d2e927511e515fb862f23dd413ee3a356c855d808f6f9ad1d345ee62b8c7ea16
|
digest: sha256:589f9972fbdf36194d443c9d3be2a1747f43e03c435fc48004cc0cbe6b3c6e3c
|
||||||
generated: "2023-03-30T08:25:32.738257836+02:00"
|
generated: "2023-05-15T19:25:26.049618+09:00"
|
||||||
|
|
|
@ -3,7 +3,7 @@ appVersion: v2.7.2
|
||||||
kubeVersion: ">=1.22.0-0"
|
kubeVersion: ">=1.22.0-0"
|
||||||
description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes.
|
description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes.
|
||||||
name: argo-cd
|
name: argo-cd
|
||||||
version: 5.33.3
|
version: 5.34.3
|
||||||
home: https://github.com/argoproj/argo-helm
|
home: https://github.com/argoproj/argo-helm
|
||||||
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
|
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
|
||||||
sources:
|
sources:
|
||||||
|
@ -18,7 +18,7 @@ maintainers:
|
||||||
url: https://argoproj.github.io/
|
url: https://argoproj.github.io/
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: redis-ha
|
- name: redis-ha
|
||||||
version: 4.22.5
|
version: 4.23.0
|
||||||
repository: https://dandydeveloper.github.io/charts/
|
repository: https://dandydeveloper.github.io/charts/
|
||||||
condition: redis-ha.enabled
|
condition: redis-ha.enabled
|
||||||
annotations:
|
annotations:
|
||||||
|
@ -26,5 +26,5 @@ annotations:
|
||||||
fingerprint: 2B8F22F57260EFA67BE1C5824B11F800CD9D2252
|
fingerprint: 2B8F22F57260EFA67BE1C5824B11F800CD9D2252
|
||||||
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
|
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- kind: added
|
- kind: fixed
|
||||||
description: Enable to add certificate to ApplicationSet Controller
|
description: Align with upstream dex initContainers
|
||||||
|
|
|
@ -594,6 +594,7 @@ NAME: my-release
|
||||||
| repoServer.image.tag | string | `""` (defaults to global.image.tag) | Tag to use for the repo server |
|
| repoServer.image.tag | string | `""` (defaults to global.image.tag) | Tag to use for the repo server |
|
||||||
| repoServer.imagePullSecrets | list | `[]` (defaults to global.imagePullSecrets) | Secrets with credentials to pull images from a private registry |
|
| repoServer.imagePullSecrets | list | `[]` (defaults to global.imagePullSecrets) | Secrets with credentials to pull images from a private registry |
|
||||||
| repoServer.initContainers | list | `[]` | Init containers to add to the repo server pods |
|
| repoServer.initContainers | list | `[]` | Init containers to add to the repo server pods |
|
||||||
|
| repoServer.lifecycle | object | `{}` | Specify postStart and preStop lifecycle hooks for your argo-repo-server container |
|
||||||
| repoServer.livenessProbe.failureThreshold | int | `3` | Minimum consecutive failures for the [probe] to be considered failed after having succeeded |
|
| repoServer.livenessProbe.failureThreshold | int | `3` | Minimum consecutive failures for the [probe] to be considered failed after having succeeded |
|
||||||
| repoServer.livenessProbe.initialDelaySeconds | int | `10` | Number of seconds after the container has started before [probe] is initiated |
|
| repoServer.livenessProbe.initialDelaySeconds | int | `10` | Number of seconds after the container has started before [probe] is initiated |
|
||||||
| repoServer.livenessProbe.periodSeconds | int | `10` | How often (in seconds) to perform the [probe] |
|
| repoServer.livenessProbe.periodSeconds | int | `10` | How often (in seconds) to perform the [probe] |
|
||||||
|
|
|
@ -275,6 +275,10 @@ spec:
|
||||||
{{- toYaml .Values.repoServer.resources | nindent 10 }}
|
{{- toYaml .Values.repoServer.resources | nindent 10 }}
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml .Values.repoServer.containerSecurityContext | nindent 10 }}
|
{{- toYaml .Values.repoServer.containerSecurityContext | nindent 10 }}
|
||||||
|
{{- with .Values.repoServer.lifecycle }}
|
||||||
|
lifecycle:
|
||||||
|
{{- toYaml . | nindent 10 }}
|
||||||
|
{{- end }}
|
||||||
{{- with .Values.repoServer.extraContainers }}
|
{{- with .Values.repoServer.extraContainers }}
|
||||||
{{- tpl (toYaml .) $ | nindent 6 }}
|
{{- tpl (toYaml .) $ | nindent 6 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -23,7 +23,9 @@ rules:
|
||||||
- argoproj.io
|
- argoproj.io
|
||||||
resources:
|
resources:
|
||||||
- applications
|
- applications
|
||||||
|
{{- if .Values.applicationSet.enabled }}
|
||||||
- applicationsets
|
- applicationsets
|
||||||
|
{{- end }}
|
||||||
- appprojects
|
- appprojects
|
||||||
{{- if .Values.server.extensions.enabled }}
|
{{- if .Values.server.extensions.enabled }}
|
||||||
- argocdextensions
|
- argocdextensions
|
||||||
|
|
|
@ -136,7 +136,7 @@ spec:
|
||||||
- name: copyutil
|
- name: copyutil
|
||||||
image: {{ default .Values.global.image.repository .Values.dex.initImage.repository }}:{{ default (include "argo-cd.defaultTag" .) .Values.dex.initImage.tag }}
|
image: {{ default .Values.global.image.repository .Values.dex.initImage.repository }}:{{ default (include "argo-cd.defaultTag" .) .Values.dex.initImage.tag }}
|
||||||
imagePullPolicy: {{ default .Values.global.image.imagePullPolicy .Values.dex.initImage.imagePullPolicy }}
|
imagePullPolicy: {{ default .Values.global.image.imagePullPolicy .Values.dex.initImage.imagePullPolicy }}
|
||||||
args:
|
command:
|
||||||
- /bin/cp
|
- /bin/cp
|
||||||
- -n
|
- -n
|
||||||
- /usr/local/bin/argocd
|
- /usr/local/bin/argocd
|
||||||
|
|
|
@ -315,6 +315,8 @@ configs:
|
||||||
# -- Known hosts to be added to the known host list by default.
|
# -- Known hosts to be added to the known host list by default.
|
||||||
# @default -- See [values.yaml]
|
# @default -- See [values.yaml]
|
||||||
knownHosts: |
|
knownHosts: |
|
||||||
|
bitbucket.org ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIazEu89wgQZ4bqs3d63QSMzYVa0MuJ2e2gKTKqu+UUO
|
||||||
|
bitbucket.org ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBPIQmuzMBuKdWeF4+a2sjSSpBK0iqitSQ+5BM9KhpexuGt20JpTVM7u5BDZngncgrqDMbWdxMWWOGtZ9UgbqgZE=
|
||||||
bitbucket.org ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAubiN81eDcafrgMeLzaFPsw2kNvEcqTKl/VqLat/MaB33pZy0y3rJZtnqwR2qOOvbwKZYKiEO1O6VqNEBxKvJJelCq0dTXWT5pbO2gDXC6h6QDXCaHo6pOHGPUy+YBaGQRGuSusMEASYiWunYN0vCAI8QaXnWMXNMdFP3jHAJH0eDsoiGnLPBlBp4TNm6rYI74nMzgz3B9IikW4WVK+dc8KZJZWYjAuORU3jc1c/NPskD2ASinf8v3xnfXeukU0sJ5N6m5E8VLjObPEO+mN2t/FZTMZLiFqPWc/ALSqnMnnhwrNi2rbfg/rd/IpL8Le3pSBne8+seeFVBoGqzHM9yXw==
|
bitbucket.org ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAubiN81eDcafrgMeLzaFPsw2kNvEcqTKl/VqLat/MaB33pZy0y3rJZtnqwR2qOOvbwKZYKiEO1O6VqNEBxKvJJelCq0dTXWT5pbO2gDXC6h6QDXCaHo6pOHGPUy+YBaGQRGuSusMEASYiWunYN0vCAI8QaXnWMXNMdFP3jHAJH0eDsoiGnLPBlBp4TNm6rYI74nMzgz3B9IikW4WVK+dc8KZJZWYjAuORU3jc1c/NPskD2ASinf8v3xnfXeukU0sJ5N6m5E8VLjObPEO+mN2t/FZTMZLiFqPWc/ALSqnMnnhwrNi2rbfg/rd/IpL8Le3pSBne8+seeFVBoGqzHM9yXw==
|
||||||
github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg=
|
github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg=
|
||||||
github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl
|
github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl
|
||||||
|
@ -2059,6 +2061,9 @@ repoServer:
|
||||||
# - secretRef:
|
# - secretRef:
|
||||||
# name: secret-name
|
# name: secret-name
|
||||||
|
|
||||||
|
# -- Specify postStart and preStop lifecycle hooks for your argo-repo-server container
|
||||||
|
lifecycle: {}
|
||||||
|
|
||||||
# -- Additional containers to be added to the repo server pod
|
# -- Additional containers to be added to the repo server pod
|
||||||
## Ref: https://argo-cd.readthedocs.io/en/stable/user-guide/config-management-plugins/
|
## Ref: https://argo-cd.readthedocs.io/en/stable/user-guide/config-management-plugins/
|
||||||
## Note: Supports use of custom Helm templates
|
## Note: Supports use of custom Helm templates
|
||||||
|
|
|
@ -2,7 +2,7 @@ apiVersion: v2
|
||||||
appVersion: v1.5.0
|
appVersion: v1.5.0
|
||||||
description: A Helm chart for Argo Rollouts
|
description: A Helm chart for Argo Rollouts
|
||||||
name: argo-rollouts
|
name: argo-rollouts
|
||||||
version: 2.29.0
|
version: 2.30.0
|
||||||
home: https://github.com/argoproj/argo-helm
|
home: https://github.com/argoproj/argo-helm
|
||||||
icon: https://argoproj.github.io/argo-rollouts/assets/logo.png
|
icon: https://argoproj.github.io/argo-rollouts/assets/logo.png
|
||||||
keywords:
|
keywords:
|
||||||
|
|
|
@ -76,6 +76,8 @@ For full list of changes please check ArtifactHub [changelog].
|
||||||
| containerSecurityContext | object | `{}` | Security Context to set on container level |
|
| containerSecurityContext | object | `{}` | Security Context to set on container level |
|
||||||
| controller.affinity | object | `{}` | Assign custom [affinity] rules to the deployment |
|
| controller.affinity | object | `{}` | Assign custom [affinity] rules to the deployment |
|
||||||
| controller.component | string | `"rollouts-controller"` | Value of label `app.kubernetes.io/component` |
|
| controller.component | string | `"rollouts-controller"` | Value of label `app.kubernetes.io/component` |
|
||||||
|
| controller.containerPorts.healthz | int | `8080` | Healthz container port |
|
||||||
|
| controller.containerPorts.metrics | int | `8090` | Metrics container port |
|
||||||
| controller.createClusterRole | bool | `true` | flag to enable creation of cluster controller role (requires cluster RBAC) |
|
| controller.createClusterRole | bool | `true` | flag to enable creation of cluster controller role (requires cluster RBAC) |
|
||||||
| controller.deploymentAnnotations | object | `{}` | Annotations to be added to the controller deployment |
|
| controller.deploymentAnnotations | object | `{}` | Annotations to be added to the controller deployment |
|
||||||
| controller.extraArgs | list | `[]` | Additional command line arguments to pass to rollouts-controller. A list of flags. |
|
| controller.extraArgs | list | `[]` | Additional command line arguments to pass to rollouts-controller. A list of flags. |
|
||||||
|
@ -89,6 +91,8 @@ For full list of changes please check ArtifactHub [changelog].
|
||||||
| controller.livenessProbe | object | See [values.yaml] | Configure liveness [probe] for the controller |
|
| controller.livenessProbe | object | See [values.yaml] | Configure liveness [probe] for the controller |
|
||||||
| controller.metricProviderPlugins | object | `{}` | Configures 3rd party metric providers for controller |
|
| controller.metricProviderPlugins | object | `{}` | Configures 3rd party metric providers for controller |
|
||||||
| controller.metrics.enabled | bool | `false` | Deploy metrics service |
|
| controller.metrics.enabled | bool | `false` | Deploy metrics service |
|
||||||
|
| controller.metrics.service.port | int | `8090` | Metrics service port |
|
||||||
|
| controller.metrics.service.portName | string | `"metrics"` | Metrics service port name |
|
||||||
| controller.metrics.serviceMonitor.additionalAnnotations | object | `{}` | Annotations to be added to the ServiceMonitor |
|
| controller.metrics.serviceMonitor.additionalAnnotations | object | `{}` | Annotations to be added to the ServiceMonitor |
|
||||||
| controller.metrics.serviceMonitor.additionalLabels | object | `{}` | Labels to be added to the ServiceMonitor |
|
| controller.metrics.serviceMonitor.additionalLabels | object | `{}` | Labels to be added to the ServiceMonitor |
|
||||||
| controller.metrics.serviceMonitor.enabled | bool | `false` | Enable a prometheus ServiceMonitor |
|
| controller.metrics.serviceMonitor.enabled | bool | `false` | Enable a prometheus ServiceMonitor |
|
||||||
|
|
|
@ -43,6 +43,8 @@ spec:
|
||||||
containers:
|
containers:
|
||||||
- image: "{{ .Values.controller.image.registry }}/{{ .Values.controller.image.repository }}:{{ default .Chart.AppVersion .Values.controller.image.tag }}"
|
- image: "{{ .Values.controller.image.registry }}/{{ .Values.controller.image.repository }}:{{ default .Chart.AppVersion .Values.controller.image.tag }}"
|
||||||
args:
|
args:
|
||||||
|
- --healthzPort={{ .Values.controller.containerPorts.healthz }}
|
||||||
|
- --metricsport={{ .Values.controller.containerPorts.metrics }}
|
||||||
{{- if not .Values.clusterInstall }}
|
{{- if not .Values.clusterInstall }}
|
||||||
- --namespaced
|
- --namespaced
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -59,9 +61,9 @@ spec:
|
||||||
imagePullPolicy: {{ .Values.controller.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.controller.image.pullPolicy }}
|
||||||
name: argo-rollouts
|
name: argo-rollouts
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8090
|
- containerPort: {{ .Values.controller.containerPorts.metrics }}
|
||||||
name: metrics
|
name: metrics
|
||||||
- containerPort: 8080
|
- containerPort: {{ .Values.controller.containerPorts.healthz }}
|
||||||
name: healthz
|
name: healthz
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
{{- toYaml .Values.controller.livenessProbe | nindent 10 }}
|
{{- toYaml .Values.controller.livenessProbe | nindent 10 }}
|
||||||
|
|
|
@ -13,10 +13,10 @@ metadata:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- name: metrics
|
- name: {{ .Values.controller.metrics.service.portName }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
port: 8090
|
port: {{ .Values.controller.metrics.service.port }}
|
||||||
targetPort: 8090
|
targetPort: metrics
|
||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/component: {{ .Values.controller.component }}
|
app.kubernetes.io/component: {{ .Values.controller.component }}
|
||||||
{{- include "argo-rollouts.selectorLabels" . | nindent 4 }}
|
{{- include "argo-rollouts.selectorLabels" . | nindent 4 }}
|
||||||
|
|
|
@ -16,7 +16,7 @@ metadata:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
endpoints:
|
endpoints:
|
||||||
- port: metrics
|
- port: {{ .Values.controller.metrics.service.portName }}
|
||||||
{{- with .Values.controller.metrics.serviceMonitor.relabelings }}
|
{{- with .Values.controller.metrics.serviceMonitor.relabelings }}
|
||||||
relabelings:
|
relabelings:
|
||||||
{{- toYaml . | nindent 6 }}
|
{{- toYaml . | nindent 6 }}
|
||||||
|
|
|
@ -112,9 +112,21 @@ controller:
|
||||||
# -- flag to enable creation of cluster controller role (requires cluster RBAC)
|
# -- flag to enable creation of cluster controller role (requires cluster RBAC)
|
||||||
createClusterRole: true
|
createClusterRole: true
|
||||||
|
|
||||||
|
# Controller container ports
|
||||||
|
containerPorts:
|
||||||
|
# -- Metrics container port
|
||||||
|
metrics: 8090
|
||||||
|
# -- Healthz container port
|
||||||
|
healthz: 8080
|
||||||
|
|
||||||
metrics:
|
metrics:
|
||||||
# -- Deploy metrics service
|
# -- Deploy metrics service
|
||||||
enabled: false
|
enabled: false
|
||||||
|
service:
|
||||||
|
# -- Metrics service port name
|
||||||
|
portName: metrics
|
||||||
|
# -- Metrics service port
|
||||||
|
port: 8090
|
||||||
serviceMonitor:
|
serviceMonitor:
|
||||||
# -- Enable a prometheus ServiceMonitor
|
# -- Enable a prometheus ServiceMonitor
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
|
@ -3,7 +3,7 @@ appVersion: v3.4.7
|
||||||
name: argo-workflows
|
name: argo-workflows
|
||||||
description: A Helm chart for Argo Workflows
|
description: A Helm chart for Argo Workflows
|
||||||
type: application
|
type: application
|
||||||
version: 0.27.0
|
version: 0.28.0
|
||||||
icon: https://argoproj.github.io/argo-workflows/assets/logo.png
|
icon: https://argoproj.github.io/argo-workflows/assets/logo.png
|
||||||
home: https://github.com/argoproj/argo-helm
|
home: https://github.com/argoproj/argo-helm
|
||||||
sources:
|
sources:
|
||||||
|
@ -17,4 +17,8 @@ annotations:
|
||||||
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
|
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- kind: added
|
- kind: added
|
||||||
description: Allow extraObjects to contain string templates
|
description: Add support for Google ManagedCertificate on GKE
|
||||||
|
- kind: added
|
||||||
|
description: Add support for Google FrontendConfig on GKE
|
||||||
|
- kind: added
|
||||||
|
description: Add support for Google BackendConfig on GKE
|
||||||
|
|
|
@ -102,6 +102,7 @@ Fields to note:
|
||||||
| Key | Type | Default | Description |
|
| Key | Type | Default | Description |
|
||||||
|-----|------|---------|-------------|
|
|-----|------|---------|-------------|
|
||||||
| apiVersionOverrides.autoscaling | string | `""` | String to override apiVersion of autoscaling rendered by this helm chart |
|
| apiVersionOverrides.autoscaling | string | `""` | String to override apiVersion of autoscaling rendered by this helm chart |
|
||||||
|
| apiVersionOverrides.cloudgoogle | string | `""` | String to override apiVersion of GKE resources rendered by this helm chart |
|
||||||
| crds.annotations | object | `{}` | Annotations to be added to all CRDs |
|
| crds.annotations | object | `{}` | Annotations to be added to all CRDs |
|
||||||
| crds.install | bool | `true` | Install and upgrade CRDs |
|
| crds.install | bool | `true` | Install and upgrade CRDs |
|
||||||
| crds.keep | bool | `true` | Keep CRDs on chart uninstall |
|
| crds.keep | bool | `true` | Keep CRDs on chart uninstall |
|
||||||
|
@ -240,6 +241,12 @@ Fields to note:
|
||||||
|
|
||||||
| Key | Type | Default | Description |
|
| Key | Type | Default | Description |
|
||||||
|-----|------|---------|-------------|
|
|-----|------|---------|-------------|
|
||||||
|
| server.GKEbackendConfig.enabled | bool | `false` | Enable BackendConfig custom resource for Google Kubernetes Engine |
|
||||||
|
| server.GKEbackendConfig.spec | object | `{}` | [BackendConfigSpec] |
|
||||||
|
| server.GKEfrontendConfig.enabled | bool | `false` | Enable FrontConfig custom resource for Google Kubernetes Engine |
|
||||||
|
| server.GKEfrontendConfig.spec | object | `{}` | [FrontendConfigSpec] |
|
||||||
|
| server.GKEmanagedCertificate.domains | list | `["argoworkflows.example.com"]` | Domains for the Google Managed Certificate |
|
||||||
|
| server.GKEmanagedCertificate.enabled | bool | `false` | Enable ManagedCertificate custom resource for Google Kubernetes Engine. |
|
||||||
| server.affinity | object | `{}` | Assign custom [affinity] rules |
|
| server.affinity | object | `{}` | Assign custom [affinity] rules |
|
||||||
| server.autoscaling.behavior | object | `{}` | Configures the scaling behavior of the target in both Up and Down directions. This is only available on HPA apiVersion `autoscaling/v2beta2` and newer |
|
| server.autoscaling.behavior | object | `{}` | Configures the scaling behavior of the target in both Up and Down directions. This is only available on HPA apiVersion `autoscaling/v2beta2` and newer |
|
||||||
| server.autoscaling.enabled | bool | `false` | Enable Horizontal Pod Autoscaler ([HPA]) for the Argo Server |
|
| server.autoscaling.enabled | bool | `false` | Enable Horizontal Pod Autoscaler ([HPA]) for the Argo Server |
|
||||||
|
@ -333,6 +340,8 @@ Fields to note:
|
||||||
1. moved the field previously known as `telemetryServicePort` inside the `telemetryConfig` as `telemetryConfig.servicePort` - same for `metricsConfig`
|
1. moved the field previously known as `telemetryServicePort` inside the `telemetryConfig` as `telemetryConfig.servicePort` - same for `metricsConfig`
|
||||||
|
|
||||||
[affinity]: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
|
[affinity]: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
|
||||||
|
[BackendConfigSpec]: https://cloud.google.com/kubernetes-engine/docs/concepts/backendconfig#backendconfigspec_v1beta1_cloudgooglecom
|
||||||
|
[FrontendConfigSpec]: https://cloud.google.com/kubernetes-engine/docs/how-to/ingress-features#configuring_ingress_features_through_frontendconfig_parameters
|
||||||
[links]: https://argoproj.github.io/argo-workflows/links/
|
[links]: https://argoproj.github.io/argo-workflows/links/
|
||||||
[Node selector]: https://kubernetes.io/docs/user-guide/node-selection/
|
[Node selector]: https://kubernetes.io/docs/user-guide/node-selection/
|
||||||
[Pod Disruption Budget]: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
|
[Pod Disruption Budget]: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
|
||||||
|
|
|
@ -188,6 +188,8 @@ Fields to note:
|
||||||
1. moved the field previously known as `telemetryServicePort` inside the `telemetryConfig` as `telemetryConfig.servicePort` - same for `metricsConfig`
|
1. moved the field previously known as `telemetryServicePort` inside the `telemetryConfig` as `telemetryConfig.servicePort` - same for `metricsConfig`
|
||||||
|
|
||||||
[affinity]: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
|
[affinity]: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
|
||||||
|
[BackendConfigSpec]: https://cloud.google.com/kubernetes-engine/docs/concepts/backendconfig#backendconfigspec_v1beta1_cloudgooglecom
|
||||||
|
[FrontendConfigSpec]: https://cloud.google.com/kubernetes-engine/docs/how-to/ingress-features#configuring_ingress_features_through_frontendconfig_parameters
|
||||||
[links]: https://argoproj.github.io/argo-workflows/links/
|
[links]: https://argoproj.github.io/argo-workflows/links/
|
||||||
[Node selector]: https://kubernetes.io/docs/user-guide/node-selection/
|
[Node selector]: https://kubernetes.io/docs/user-guide/node-selection/
|
||||||
[Pod Disruption Budget]: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
|
[Pod Disruption Budget]: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
|
||||||
|
|
|
@ -166,3 +166,16 @@ Return the appropriate apiVersion for autoscaling
|
||||||
{{- print "autoscaling/v2" -}}
|
{{- print "autoscaling/v2" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Return the appropriate apiVersion for GKE resources
|
||||||
|
*/}}
|
||||||
|
{{- define "argo-workflows.apiVersions.cloudgoogle" -}}
|
||||||
|
{{- if .Values.apiVersionOverrides.cloudgoogle -}}
|
||||||
|
{{- print .Values.apiVersionOverrides.cloudgoogle -}}
|
||||||
|
{{- else if .Capabilities.APIVersions.Has "cloud.google.com/v1" -}}
|
||||||
|
{{- print "cloud.google.com/v1" -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- print "cloud.google.com/v1beta1" -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
{{- if .Values.server.GKEbackendConfig.enabled }}
|
||||||
|
apiVersion: {{ include "argo-workflows.apiVersions.cloudgoogle" . }}
|
||||||
|
kind: BackendConfig
|
||||||
|
metadata:
|
||||||
|
name: {{ template "argo-workflows.server.fullname" . }}
|
||||||
|
namespace: {{ .Release.Namespace | quote }}
|
||||||
|
labels:
|
||||||
|
{{- include "argo-workflows.labels" (dict "context" . "component" .Values.server.name "name" .Values.server.name) | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
{{- toYaml .Values.server.GKEbackendConfig.spec | nindent 2 }}
|
||||||
|
{{- end }}
|
|
@ -0,0 +1,11 @@
|
||||||
|
{{- if .Values.server.GKEfrontendConfig.enabled }}
|
||||||
|
apiVersion: networking.gke.io/v1beta1
|
||||||
|
kind: FrontendConfig
|
||||||
|
metadata:
|
||||||
|
name: {{ template "argo-workflows.server.fullname" . }}
|
||||||
|
namespace: {{ .Release.Namespace | quote }}
|
||||||
|
labels:
|
||||||
|
{{- include "argo-workflows.labels" (dict "context" . "component" .Values.server.name "name" .Values.server.name) | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
{{- toYaml .Values.server.GKEfrontendConfig.spec | nindent 2 }}
|
||||||
|
{{- end }}
|
|
@ -0,0 +1,12 @@
|
||||||
|
{{- if .Values.server.GKEmanagedCertificate.enabled }}
|
||||||
|
apiVersion: networking.gke.io/v1
|
||||||
|
kind: ManagedCertificate
|
||||||
|
metadata:
|
||||||
|
name: {{ template "argo-workflows.server.fullname" . }}
|
||||||
|
namespace: {{ .Release.Namespace | quote }}
|
||||||
|
spec:
|
||||||
|
domains:
|
||||||
|
{{- with .Values.server.GKEmanagedCertificate.domains }}
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
|
@ -33,6 +33,8 @@ kubeVersionOverride: ""
|
||||||
apiVersionOverrides:
|
apiVersionOverrides:
|
||||||
# -- String to override apiVersion of autoscaling rendered by this helm chart
|
# -- String to override apiVersion of autoscaling rendered by this helm chart
|
||||||
autoscaling: "" # autoscaling/v2
|
autoscaling: "" # autoscaling/v2
|
||||||
|
# -- String to override apiVersion of GKE resources rendered by this helm chart
|
||||||
|
cloudgoogle: "" # cloud.google.com/v1
|
||||||
|
|
||||||
# -- Restrict Argo to operate only in a single namespace (the namespace of the
|
# -- Restrict Argo to operate only in a single namespace (the namespace of the
|
||||||
# Helm release) by apply Roles and RoleBindings instead of the Cluster
|
# Helm release) by apply Roles and RoleBindings instead of the Cluster
|
||||||
|
@ -576,6 +578,40 @@ server:
|
||||||
# hosts:
|
# hosts:
|
||||||
# - argoworkflows.example.com
|
# - argoworkflows.example.com
|
||||||
|
|
||||||
|
## Create a Google Backendconfig for use with the GKE Ingress Controller
|
||||||
|
## https://cloud.google.com/kubernetes-engine/docs/how-to/ingress-configuration#configuring_ingress_features_through_backendconfig_parameters
|
||||||
|
GKEbackendConfig:
|
||||||
|
# -- Enable BackendConfig custom resource for Google Kubernetes Engine
|
||||||
|
enabled: false
|
||||||
|
# -- [BackendConfigSpec]
|
||||||
|
spec: {}
|
||||||
|
# spec:
|
||||||
|
# iap:
|
||||||
|
# enabled: true
|
||||||
|
# oauthclientCredentials:
|
||||||
|
# secretName: argoworkflows-secret
|
||||||
|
|
||||||
|
## Create a Google Managed Certificate for use with the GKE Ingress Controller
|
||||||
|
## https://cloud.google.com/kubernetes-engine/docs/how-to/managed-certs
|
||||||
|
GKEmanagedCertificate:
|
||||||
|
# -- Enable ManagedCertificate custom resource for Google Kubernetes Engine.
|
||||||
|
enabled: false
|
||||||
|
# -- Domains for the Google Managed Certificate
|
||||||
|
domains:
|
||||||
|
- argoworkflows.example.com
|
||||||
|
|
||||||
|
## Create a Google FrontendConfig Custom Resource, for use with the GKE Ingress Controller
|
||||||
|
## https://cloud.google.com/kubernetes-engine/docs/how-to/ingress-features#configuring_ingress_features_through_frontendconfig_parameters
|
||||||
|
GKEfrontendConfig:
|
||||||
|
# -- Enable FrontConfig custom resource for Google Kubernetes Engine
|
||||||
|
enabled: false
|
||||||
|
# -- [FrontendConfigSpec]
|
||||||
|
spec: {}
|
||||||
|
# spec:
|
||||||
|
# redirectToHttps:
|
||||||
|
# enabled: true
|
||||||
|
# responseCodeName: RESPONSE_CODE
|
||||||
|
|
||||||
clusterWorkflowTemplates:
|
clusterWorkflowTemplates:
|
||||||
# -- Create a ClusterRole and CRB for the server to access ClusterWorkflowTemplates.
|
# -- Create a ClusterRole and CRB for the server to access ClusterWorkflowTemplates.
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
|
@ -2,7 +2,7 @@ apiVersion: v2
|
||||||
name: argocd-apps
|
name: argocd-apps
|
||||||
description: A Helm chart for managing additional Argo CD Applications and Projects
|
description: A Helm chart for managing additional Argo CD Applications and Projects
|
||||||
type: application
|
type: application
|
||||||
version: 1.0.1
|
version: 1.2.0
|
||||||
home: https://github.com/argoproj/argo-helm
|
home: https://github.com/argoproj/argo-helm
|
||||||
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
|
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
|
||||||
keywords:
|
keywords:
|
||||||
|
@ -18,4 +18,4 @@ annotations:
|
||||||
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
|
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- kind: added
|
- kind: added
|
||||||
description: Introduce chart signing
|
description: Rollout strategy for ApplicationSet
|
||||||
|
|
|
@ -31,6 +31,7 @@ $ helm install my-release argo/argocd-apps
|
||||||
| applications | list | `[]` (See [values.yaml]) | Deploy Argo CD Applications within this helm release |
|
| 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 |
|
| 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 |
|
| extensions | list | `[]` (See [values.yaml]) | Deploy Argo UI Extensions within this helm release |
|
||||||
|
| itemTemplates | list | `[]` (See [values.yaml]) | Deploy Argo CD Applications/ApplicationSets/Projects within this helm release |
|
||||||
| projects | list | `[]` (See [values.yaml]) | Deploy Argo CD Projects within this helm release |
|
| projects | list | `[]` (See [values.yaml]) | Deploy Argo CD Projects within this helm release |
|
||||||
|
|
||||||
----------------------------------------------
|
----------------------------------------------
|
||||||
|
|
|
@ -0,0 +1,41 @@
|
||||||
|
# Test applicationsets with Progressive Syncs
|
||||||
|
|
||||||
|
applicationsets:
|
||||||
|
- name: applicationset-progressive-syncs
|
||||||
|
generators:
|
||||||
|
- list:
|
||||||
|
elements:
|
||||||
|
- cluster: engineering-dev
|
||||||
|
url: https://1.2.3.4
|
||||||
|
env: env-dev
|
||||||
|
- cluster: engineering-prod
|
||||||
|
url: https://9.8.7.6/
|
||||||
|
env: env-prod
|
||||||
|
strategy:
|
||||||
|
type: RollingSync
|
||||||
|
rollingSync:
|
||||||
|
steps:
|
||||||
|
- matchExpressions:
|
||||||
|
- key: envLabel
|
||||||
|
operator: In
|
||||||
|
values:
|
||||||
|
- env-dev
|
||||||
|
- matchExpressions:
|
||||||
|
- key: envLabel
|
||||||
|
operator: In
|
||||||
|
values:
|
||||||
|
- env-prod
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
name: '{{.cluster}}-guestbook'
|
||||||
|
labels:
|
||||||
|
envLabel: '{{.env}}'
|
||||||
|
spec:
|
||||||
|
project: my-project
|
||||||
|
source:
|
||||||
|
repoURL: https://github.com/argoproj/argocd-example-apps.git
|
||||||
|
targetRevision: HEAD
|
||||||
|
path: guestbook/{{.cluster}}
|
||||||
|
destination:
|
||||||
|
server: '{{.url}}'
|
||||||
|
namespace: guestbook
|
61
charts/argocd-apps/ci/item-templates.yaml
Normal file
61
charts/argocd-apps/ci/item-templates.yaml
Normal file
|
@ -0,0 +1,61 @@
|
||||||
|
itemTemplates:
|
||||||
|
- items:
|
||||||
|
- name: my-appset
|
||||||
|
generators: &generators
|
||||||
|
- list:
|
||||||
|
elements:
|
||||||
|
- cluster: engineering-dev
|
||||||
|
url: https://1.2.3.4
|
||||||
|
- cluster: engineering-prod
|
||||||
|
url: https://2.4.6.8
|
||||||
|
- cluster: finance-preprod
|
||||||
|
url: https://9.8.7.6
|
||||||
|
template:
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: ApplicationSet
|
||||||
|
metadata:
|
||||||
|
name: "{{ .name }}"
|
||||||
|
spec:
|
||||||
|
generators: *generators
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
name: "{{`{{cluster}}`}}-guestbook"
|
||||||
|
spec:
|
||||||
|
project: my-project
|
||||||
|
source:
|
||||||
|
repoURL: https://github.com/infra-team/cluster-deployments.git
|
||||||
|
targetRevision: HEAD
|
||||||
|
path: guestbook/{{`{{cluster}}`}}
|
||||||
|
destination:
|
||||||
|
server: "{{`{{cluster}}`}}"
|
||||||
|
namespace: guestbook
|
||||||
|
- items:
|
||||||
|
- name: my-appset
|
||||||
|
generators:
|
||||||
|
- list:
|
||||||
|
elements:
|
||||||
|
- cluster: engineering-dev
|
||||||
|
url: https://1.2.3.4
|
||||||
|
- cluster: engineering-prod
|
||||||
|
url: https://2.4.6.8
|
||||||
|
- cluster: finance-preprod
|
||||||
|
url: https://9.8.7.6
|
||||||
|
template: |-
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: ApplicationSet
|
||||||
|
metadata:
|
||||||
|
name: {{ .name }}
|
||||||
|
spec:
|
||||||
|
generators: {{ toYaml .generators | nindent 4 }}
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
name: '{{`{{cluster}}`}}-guestbook'
|
||||||
|
spec:
|
||||||
|
project: my-project
|
||||||
|
source:
|
||||||
|
repoURL: https://github.com/infra-team/cluster-deployments.git
|
||||||
|
targetRevision: HEAD
|
||||||
|
path: guestbook/{{`{{cluster}}`}}
|
||||||
|
destination:
|
||||||
|
server: '{{`{{cluster}}`}}'
|
||||||
|
namespace: guestbook
|
|
@ -26,6 +26,10 @@ spec:
|
||||||
generators:
|
generators:
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with .strategy }}
|
||||||
|
strategy:
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
{{- with .syncPolicy }}
|
{{- with .syncPolicy }}
|
||||||
syncPolicy:
|
syncPolicy:
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
|
|
15
charts/argocd-apps/templates/item-templates.yaml
Normal file
15
charts/argocd-apps/templates/item-templates.yaml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
{{- range .Values.itemTemplates }}
|
||||||
|
{{- if kindIs "string" .template }}
|
||||||
|
{{- $template := .template -}}
|
||||||
|
{{- range .items }}
|
||||||
|
---
|
||||||
|
{{ tpl $template (set . "Template" $.Template) }}
|
||||||
|
{{- end }}
|
||||||
|
{{- else }}
|
||||||
|
{{- $template := .template | toYaml -}}
|
||||||
|
{{- range .items }}
|
||||||
|
---
|
||||||
|
{{ tpl $template (set . "Template" $.Template) }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
|
@ -103,10 +103,28 @@ applicationsets: []
|
||||||
# directories:
|
# directories:
|
||||||
# - path: guestbook
|
# - path: guestbook
|
||||||
# - path: kustomize-*
|
# - path: kustomize-*
|
||||||
|
# # Progressive Syncs is an experimental feature and it must be explicitly enabled
|
||||||
|
# # Ref: https://argo-cd.readthedocs.io/en/stable/operator-manual/applicationset/Progressive-Syncs/#enabling-progressive-syncs
|
||||||
|
# strategy:
|
||||||
|
# type: RollingSync
|
||||||
|
# rollingSync:
|
||||||
|
# steps:
|
||||||
|
# - matchExpressions:
|
||||||
|
# - key: project
|
||||||
|
# operator: In
|
||||||
|
# values:
|
||||||
|
# - guestbook
|
||||||
|
# - matchExpressions:
|
||||||
|
# - key: project
|
||||||
|
# operator: In
|
||||||
|
# values:
|
||||||
|
# - kustomize-foo
|
||||||
|
# - kustomize-bar
|
||||||
# template:
|
# template:
|
||||||
# metadata:
|
# metadata:
|
||||||
# name: '{{path.basename}}'
|
# name: '{{path.basename}}'
|
||||||
# labels: {}
|
# labels:
|
||||||
|
# project: '{{path.basename}}'
|
||||||
# annotations: {}
|
# annotations: {}
|
||||||
# spec:
|
# spec:
|
||||||
# project: default
|
# project: default
|
||||||
|
@ -133,6 +151,71 @@ applicationsets: []
|
||||||
# # Set Application finalizer
|
# # Set Application finalizer
|
||||||
# preserveResourcesOnDeletion: false
|
# preserveResourcesOnDeletion: false
|
||||||
|
|
||||||
|
# -- Deploy Argo CD Applications/ApplicationSets/Projects within this helm release
|
||||||
|
# @default -- `[]` (See [values.yaml])
|
||||||
|
## Ref: https://argo-cd.readthedocs.io/en/stable/operator-manual/applicationset/
|
||||||
|
itemTemplates: []
|
||||||
|
# - items:
|
||||||
|
# - name: my-appset
|
||||||
|
# generators: &generators
|
||||||
|
# - list:
|
||||||
|
# elements:
|
||||||
|
# - cluster: engineering-dev
|
||||||
|
# url: https://1.2.3.4
|
||||||
|
# - cluster: engineering-prod
|
||||||
|
# url: https://2.4.6.8
|
||||||
|
# - cluster: finance-preprod
|
||||||
|
# url: https://9.8.7.6
|
||||||
|
# template:
|
||||||
|
# apiVersion: argoproj.io/v1alpha1
|
||||||
|
# kind: ApplicationSet
|
||||||
|
# metadata:
|
||||||
|
# name: "{{ .name }}"
|
||||||
|
# spec:
|
||||||
|
# generators: *generators
|
||||||
|
# template:
|
||||||
|
# metadata:
|
||||||
|
# name: "{{`{{cluster}}`}}-guestbook"
|
||||||
|
# spec:
|
||||||
|
# project: my-project
|
||||||
|
# source:
|
||||||
|
# repoURL: https://github.com/infra-team/cluster-deployments.git
|
||||||
|
# targetRevision: HEAD
|
||||||
|
# path: guestbook/{{`{{cluster}}`}}
|
||||||
|
# destination:
|
||||||
|
# server: "{{`{{cluster}}`}}"
|
||||||
|
# namespace: guestbook
|
||||||
|
# - items:
|
||||||
|
# - name: my-appset
|
||||||
|
# generators:
|
||||||
|
# - list:
|
||||||
|
# elements:
|
||||||
|
# - cluster: engineering-dev
|
||||||
|
# url: https://1.2.3.4
|
||||||
|
# - cluster: engineering-prod
|
||||||
|
# url: https://2.4.6.8
|
||||||
|
# - cluster: finance-preprod
|
||||||
|
# url: https://9.8.7.6
|
||||||
|
# template: |-
|
||||||
|
# apiVersion: argoproj.io/v1alpha1
|
||||||
|
# kind: ApplicationSet
|
||||||
|
# metadata:
|
||||||
|
# name: {{ .name }}
|
||||||
|
# spec:
|
||||||
|
# generators: {{ toYaml .generators | nindent 4 }}
|
||||||
|
# template:
|
||||||
|
# metadata:
|
||||||
|
# name: '{{`{{cluster}}`}}-guestbook'
|
||||||
|
# spec:
|
||||||
|
# project: my-project
|
||||||
|
# source:
|
||||||
|
# repoURL: https://github.com/infra-team/cluster-deployments.git
|
||||||
|
# targetRevision: HEAD
|
||||||
|
# path: guestbook/{{`{{cluster}}`}}
|
||||||
|
# destination:
|
||||||
|
# server: '{{`{{cluster}}`}}'
|
||||||
|
# namespace: guestbook
|
||||||
|
|
||||||
# -- Deploy Argo UI Extensions within this helm release
|
# -- Deploy Argo UI Extensions within this helm release
|
||||||
# @default -- `[]` (See [values.yaml])
|
# @default -- `[]` (See [values.yaml])
|
||||||
## This function in tech preview stage, do expect unstability or breaking changes in newer versions. Bump image.tag if necessary.
|
## This function in tech preview stage, do expect unstability or breaking changes in newer versions. Bump image.tag if necessary.
|
||||||
|
|
Loading…
Reference in a new issue