Update argo chart for 2.4.2 (#130)

* Updating chart to 2.4.1

Adding a helm flag instead of --no-hooks for sustainability

Add better readme around CRDs

Fixing controller clusterrole

adding workflowtemplate to argo-ui clusterrole

* Bumping to newest patch

* Bumping to newest patch 2.4.2
This commit is contained in:
Andrew Suderman 2019-10-22 10:10:13 -06:00 committed by Saravanan Balasubramanian
parent 22607a897b
commit cc0746951b
8 changed files with 52 additions and 9 deletions

View file

@ -1,6 +1,6 @@
apiVersion: v1 apiVersion: v1
appVersion: "v2.3.0" appVersion: "v2.4.2"
description: A Helm chart for Argo Workflows description: A Helm chart for Argo Workflows
name: argo name: argo
version: 0.5.4 version: 0.6.0
icon: https://raw.githubusercontent.com/argoproj/argo/master/argo.png icon: https://raw.githubusercontent.com/argoproj/argo/master/argo.png

View file

@ -8,7 +8,7 @@ If you want your deployment of this helm chart to most closely match the [argo C
This chart uses an install hook to configure the CRD definition. Installation of CRDs is a somewhat privileged process in itself and in RBAC enabled clusters the `default` service account for namespaces does not typically have the ability to do create these. This chart uses an install hook to configure the CRD definition. Installation of CRDs is a somewhat privileged process in itself and in RBAC enabled clusters the `default` service account for namespaces does not typically have the ability to do create these.
A few options are: A few options are:
- Setup the CRD yourself manually and use the `--no-hooks` options of `helm install` - Setup the CRD yourself manually and use `--set installCRD=false` when installing the helm chart. Find the CRDs in the [argo codebase](https://raw.githubusercontent.com/argoproj/argo/master/manifests/base/crds/workflow-crd.yaml)
- Manually create a ServiceAccount in the Namespace which your release will be deployed w/ appropriate bindings to perform this action and set the `init.serviceAccount` attribute - Manually create a ServiceAccount in the Namespace which your release will be deployed w/ appropriate bindings to perform this action and set the `init.serviceAccount` attribute
- Augment the `default` ServiceAccount permissions in the Namespace in which your Release is deployed to have the appropriate permissions - Augment the `default` ServiceAccount permissions in the Namespace in which your Release is deployed to have the appropriate permissions

View file

@ -1,4 +1,4 @@
{{- if .Values.ui.enabled -}} {{- if .Values.ui.enabled }}
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole kind: ClusterRole
metadata: metadata:
@ -24,8 +24,9 @@ rules:
- argoproj.io - argoproj.io
resources: resources:
- workflows - workflows
- workflowtemplates
verbs: verbs:
- get - get
- list - list
- watch - watch
{{- end -}} {{- end }}

View file

@ -14,11 +14,12 @@ rules:
resources: resources:
- workflows - workflows
- workflows/finalizers - workflows/finalizers
- workflowtemplates
- workflowtemplates/finalizers
verbs: verbs:
- get - get
- list - list
- watch - watch
--- ---
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole kind: ClusterRole
@ -35,6 +36,8 @@ rules:
resources: resources:
- workflows - workflows
- workflows/finalizers - workflows/finalizers
- workflowtemplates
- workflowtemplates/finalizers
verbs: verbs:
- create - create
- delete - delete
@ -44,7 +47,6 @@ rules:
- patch - patch
- update - update
- watch - watch
--- ---
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole kind: ClusterRole
@ -61,6 +63,8 @@ rules:
resources: resources:
- workflows - workflows
- workflows/finalizers - workflows/finalizers
- workflowtemplates
- workflowtemplates/finalizers
verbs: verbs:
- create - create
- delete - delete

View file

@ -42,4 +42,21 @@ rules:
- watch - watch
- update - update
- patch - patch
- delete - delete
- apiGroups:
- argoproj.io
resources:
- workflowtemplates
- workflowtemplates/finalizers
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
- serviceaccounts
verbs:
- get
- list

View file

@ -1,3 +1,4 @@
{{- if .installCRD }}
apiVersion: apiextensions.k8s.io/v1beta1 apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition kind: CustomResourceDefinition
metadata: metadata:
@ -14,3 +15,4 @@ spec:
plural: workflows plural: workflows
shortNames: shortNames:
- wf - wf
{{- end }}

View file

@ -0,0 +1,18 @@
{{- if .installCRD }}
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: workflowtemplates.argoproj.io
annotations:
helm.sh/hook: crd-install
helm.sh/hook-delete-policy: before-hook-creation
spec:
group: argoproj.io
version: v1alpha1
scope: Namespaced
names:
kind: WorkflowTemplate
plural: workflowtemplates
shortNames:
- wftmpl
{{- end }}

View file

@ -4,9 +4,10 @@ images:
ui: argoui ui: argoui
executor: argoexec executor: argoexec
pullPolicy: Always pullPolicy: Always
tag: v2.3.0 tag: v2.4.2
crdVersion: v1alpha1 crdVersion: v1alpha1
installCRD: true
init: init:
# By default the installation will not set an explicit one, which will mean it uses `default` for the namespace the chart is # By default the installation will not set an explicit one, which will mean it uses `default` for the namespace the chart is