fix(argo-workflows): move crds folder into templates folder (#1472)
Fixes #1430 #1468 Due to multiple instances where new/changed CRDs for argo-workflows do not get installed/updated I believe it is time to move the crds folder into the templates folder like our other helm charts. I'm aware helm 3 is supposed to handle the crds folder but it seems there are a few known issues currently [here](https://github.com/hashicorp/terraform-provider-helm/issues/944), [here](https://github.com/helm/helm/issues/11321) and [here](https://github.com/helm/helm/pull/11330) that show that may still need some work. Signed-off-by: jmeridth <jmeridth@gmail.com> Signed-off-by: jmeridth <jmeridth@gmail.com>
This commit is contained in:
parent
8ee317128d
commit
6099bbb256
15 changed files with 97 additions and 3 deletions
|
|
@ -3,7 +3,7 @@ appVersion: v3.4.0
|
||||||
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.18.0
|
version: 0.19.0
|
||||||
icon: https://raw.githubusercontent.com/argoproj/argo-workflows/master/docs/assets/argo.png
|
icon: https://raw.githubusercontent.com/argoproj/argo-workflows/master/docs/assets/argo.png
|
||||||
home: https://github.com/argoproj/argo-helm
|
home: https://github.com/argoproj/argo-helm
|
||||||
sources:
|
sources:
|
||||||
|
|
@ -13,5 +13,4 @@ maintainers:
|
||||||
url: https://argoproj.github.io/
|
url: https://argoproj.github.io/
|
||||||
annotations:
|
annotations:
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- "[Changed]: Upgrade ArgoWorkflows to v3.4.0"
|
- "[Fixed]: Move crds folder into templates folder and add conditional flags for install and keep"
|
||||||
- "[Fixed]: Remove unsupported attributes on metricsConfig and telemetryConfig, from workflow-controller-configmap"
|
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,9 @@ Fields to note:
|
||||||
|
|
||||||
| Key | Type | Default | Description |
|
| Key | Type | Default | Description |
|
||||||
|-----|------|---------|-------------|
|
|-----|------|---------|-------------|
|
||||||
|
| crds.annotations | object | `{}` | Annotations to be added to all CRDs |
|
||||||
|
| crds.install | bool | `true` | Install and upgrade CRDs |
|
||||||
|
| crds.keep | bool | `true` | Keep CRDs on chart uninstall |
|
||||||
| createAggregateRoles | bool | `true` | Create clusterroles that extend existing clusterroles to interact with argo-cd crds |
|
| createAggregateRoles | bool | `true` | Create clusterroles that extend existing clusterroles to interact with argo-cd crds |
|
||||||
| fullnameOverride | string | `nil` | String to fully override "argo-workflows.fullname" template |
|
| fullnameOverride | string | `nil` | String to fully override "argo-workflows.fullname" template |
|
||||||
| images.pullPolicy | string | `"Always"` | imagePullPolicy to apply to all containers |
|
| images.pullPolicy | string | `"Always"` | imagePullPolicy to apply to all containers |
|
||||||
|
|
|
||||||
|
|
@ -1 +1,3 @@
|
||||||
# Test with default values
|
# Test with default values
|
||||||
|
crds:
|
||||||
|
keep: false
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,6 @@
|
||||||
|
crds:
|
||||||
|
keep: false
|
||||||
|
|
||||||
server:
|
server:
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,6 @@
|
||||||
|
crds:
|
||||||
|
keep: false
|
||||||
|
|
||||||
controller:
|
controller:
|
||||||
serviceMonitor:
|
serviceMonitor:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,6 @@
|
||||||
|
crds:
|
||||||
|
keep: false
|
||||||
|
|
||||||
workflow:
|
workflow:
|
||||||
serviceAccount:
|
serviceAccount:
|
||||||
create: true # Specifies whether a service account should be created
|
create: true # Specifies whether a service account should be created
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,15 @@
|
||||||
|
{{- if .Values.crds.install }}
|
||||||
apiVersion: apiextensions.k8s.io/v1
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
name: clusterworkflowtemplates.argoproj.io
|
name: clusterworkflowtemplates.argoproj.io
|
||||||
|
annotations:
|
||||||
|
{{- if .Values.crds.keep }}
|
||||||
|
"helm.sh/resource-policy": keep
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.crds.annotations }}
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
group: argoproj.io
|
group: argoproj.io
|
||||||
names:
|
names:
|
||||||
|
|
@ -34,3 +42,4 @@ spec:
|
||||||
type: object
|
type: object
|
||||||
served: true
|
served: true
|
||||||
storage: true
|
storage: true
|
||||||
|
{{- end }}
|
||||||
|
|
@ -1,7 +1,15 @@
|
||||||
|
{{- if .Values.crds.install }}
|
||||||
apiVersion: apiextensions.k8s.io/v1
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
name: cronworkflows.argoproj.io
|
name: cronworkflows.argoproj.io
|
||||||
|
annotations:
|
||||||
|
{{- if .Values.crds.keep }}
|
||||||
|
"helm.sh/resource-policy": keep
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.crds.annotations }}
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
group: argoproj.io
|
group: argoproj.io
|
||||||
names:
|
names:
|
||||||
|
|
@ -38,3 +46,4 @@ spec:
|
||||||
type: object
|
type: object
|
||||||
served: true
|
served: true
|
||||||
storage: true
|
storage: true
|
||||||
|
{{- end }}
|
||||||
|
|
@ -1,7 +1,15 @@
|
||||||
|
{{- if .Values.crds.install }}
|
||||||
apiVersion: apiextensions.k8s.io/v1
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
name: workflowartifactgctasks.argoproj.io
|
name: workflowartifactgctasks.argoproj.io
|
||||||
|
annotations:
|
||||||
|
{{- if .Values.crds.keep }}
|
||||||
|
"helm.sh/resource-policy": keep
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.crds.annotations }}
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
group: argoproj.io
|
group: argoproj.io
|
||||||
names:
|
names:
|
||||||
|
|
@ -39,3 +47,4 @@ spec:
|
||||||
storage: true
|
storage: true
|
||||||
subresources:
|
subresources:
|
||||||
status: {}
|
status: {}
|
||||||
|
{{- end }}
|
||||||
|
|
@ -1,7 +1,15 @@
|
||||||
|
{{- if .Values.crds.install }}
|
||||||
apiVersion: apiextensions.k8s.io/v1
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
name: workfloweventbindings.argoproj.io
|
name: workfloweventbindings.argoproj.io
|
||||||
|
annotations:
|
||||||
|
{{- if .Values.crds.keep }}
|
||||||
|
"helm.sh/resource-policy": keep
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.crds.annotations }}
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
group: argoproj.io
|
group: argoproj.io
|
||||||
names:
|
names:
|
||||||
|
|
@ -33,3 +41,4 @@ spec:
|
||||||
type: object
|
type: object
|
||||||
served: true
|
served: true
|
||||||
storage: true
|
storage: true
|
||||||
|
{{- end }}
|
||||||
|
|
@ -1,7 +1,15 @@
|
||||||
|
{{- if .Values.crds.install }}
|
||||||
apiVersion: apiextensions.k8s.io/v1
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
name: workflows.argoproj.io
|
name: workflows.argoproj.io
|
||||||
|
annotations:
|
||||||
|
{{- if .Values.crds.keep }}
|
||||||
|
"helm.sh/resource-policy": keep
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.crds.annotations }}
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
group: argoproj.io
|
group: argoproj.io
|
||||||
names:
|
names:
|
||||||
|
|
@ -53,3 +61,4 @@ spec:
|
||||||
served: true
|
served: true
|
||||||
storage: true
|
storage: true
|
||||||
subresources: {}
|
subresources: {}
|
||||||
|
{{- end }}
|
||||||
|
|
@ -1,7 +1,15 @@
|
||||||
|
{{- if .Values.crds.install }}
|
||||||
apiVersion: apiextensions.k8s.io/v1
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
name: workflowtaskresults.argoproj.io
|
name: workflowtaskresults.argoproj.io
|
||||||
|
annotations:
|
||||||
|
{{- if .Values.crds.keep }}
|
||||||
|
"helm.sh/resource-policy": keep
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.crds.annotations }}
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
group: argoproj.io
|
group: argoproj.io
|
||||||
names:
|
names:
|
||||||
|
|
@ -582,3 +590,4 @@ spec:
|
||||||
type: object
|
type: object
|
||||||
served: true
|
served: true
|
||||||
storage: true
|
storage: true
|
||||||
|
{{- end }}
|
||||||
|
|
@ -1,7 +1,15 @@
|
||||||
|
{{- if .Values.crds.install }}
|
||||||
apiVersion: apiextensions.k8s.io/v1
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
name: workflowtasksets.argoproj.io
|
name: workflowtasksets.argoproj.io
|
||||||
|
annotations:
|
||||||
|
{{- if .Values.crds.keep }}
|
||||||
|
"helm.sh/resource-policy": keep
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.crds.annotations }}
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
group: argoproj.io
|
group: argoproj.io
|
||||||
names:
|
names:
|
||||||
|
|
@ -39,3 +47,4 @@ spec:
|
||||||
storage: true
|
storage: true
|
||||||
subresources:
|
subresources:
|
||||||
status: {}
|
status: {}
|
||||||
|
{{- end }}
|
||||||
|
|
@ -1,7 +1,15 @@
|
||||||
|
{{- if .Values.crds.install }}
|
||||||
apiVersion: apiextensions.k8s.io/v1
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
name: workflowtemplates.argoproj.io
|
name: workflowtemplates.argoproj.io
|
||||||
|
annotations:
|
||||||
|
{{- if .Values.crds.keep }}
|
||||||
|
"helm.sh/resource-policy": keep
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.crds.annotations }}
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
group: argoproj.io
|
group: argoproj.io
|
||||||
names:
|
names:
|
||||||
|
|
@ -33,3 +41,4 @@ spec:
|
||||||
type: object
|
type: object
|
||||||
served: true
|
served: true
|
||||||
storage: true
|
storage: true
|
||||||
|
{{- end }}
|
||||||
|
|
@ -7,6 +7,15 @@ images:
|
||||||
pullSecrets: []
|
pullSecrets: []
|
||||||
# - name: argo-pull-secret
|
# - name: argo-pull-secret
|
||||||
|
|
||||||
|
## Custom resource configuration
|
||||||
|
crds:
|
||||||
|
# -- Install and upgrade CRDs
|
||||||
|
install: true
|
||||||
|
# -- Keep CRDs on chart uninstall
|
||||||
|
keep: true
|
||||||
|
# -- Annotations to be added to all CRDs
|
||||||
|
annotations: {}
|
||||||
|
|
||||||
# -- Create clusterroles that extend existing clusterroles to interact with argo-cd crds
|
# -- Create clusterroles that extend existing clusterroles to interact with argo-cd crds
|
||||||
## Ref: https://kubernetes.io/docs/reference/access-authn-authz/rbac/#aggregated-clusterroles
|
## Ref: https://kubernetes.io/docs/reference/access-authn-authz/rbac/#aggregated-clusterroles
|
||||||
createAggregateRoles: true
|
createAggregateRoles: true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue