From 9ed4650b9f397414e9e88ca16b0653833be0e963 Mon Sep 17 00:00:00 2001 From: Michael Weibel <307427+mweibel@users.noreply.github.com> Date: Fri, 9 Oct 2020 19:29:16 +0200 Subject: [PATCH] feat: upgrade argo to v2.11 (#451) --- charts/argo/Chart.yaml | 4 ++-- .../crds/cluster-workflow-template-crd.yaml | 6 ++++++ charts/argo/crds/cron-workflow-crd.yaml | 10 ++++++++-- charts/argo/crds/workflow-crd.yaml | 7 +++++++ .../argo/crds/workflow-eventbinding-crd.yaml | 19 +++++++++++++++++++ charts/argo/crds/workflow-template-crd.yaml | 6 ++++++ .../argo/templates/server-cluster-roles.yaml | 10 ++++++++++ charts/argo/values.yaml | 2 +- 8 files changed, 59 insertions(+), 5 deletions(-) create mode 100644 charts/argo/crds/workflow-eventbinding-crd.yaml diff --git a/charts/argo/Chart.yaml b/charts/argo/Chart.yaml index 3f2fb613..0d42500e 100644 --- a/charts/argo/Chart.yaml +++ b/charts/argo/Chart.yaml @@ -1,8 +1,8 @@ apiVersion: v1 -appVersion: v2.8.0 +appVersion: v2.11.3 description: A Helm chart for Argo Workflows name: argo -version: 0.12.2 +version: 0.13.0 icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png home: https://github.com/argoproj/argo-helm maintainers: diff --git a/charts/argo/crds/cluster-workflow-template-crd.yaml b/charts/argo/crds/cluster-workflow-template-crd.yaml index df26a0ae..a189f17c 100644 --- a/charts/argo/crds/cluster-workflow-template-crd.yaml +++ b/charts/argo/crds/cluster-workflow-template-crd.yaml @@ -11,7 +11,13 @@ spec: scope: Cluster names: kind: ClusterWorkflowTemplate + listKind: ClusterWorkflowTemplateList plural: clusterworkflowtemplates shortNames: - clusterwftmpl - cwft + singular: clusterworkflowtemplate + versions: + - name: v1alpha1 + served: true + storage: true diff --git a/charts/argo/crds/cron-workflow-crd.yaml b/charts/argo/crds/cron-workflow-crd.yaml index 8f4bb7c2..abd50b30 100644 --- a/charts/argo/crds/cron-workflow-crd.yaml +++ b/charts/argo/crds/cron-workflow-crd.yaml @@ -9,9 +9,15 @@ spec: group: argoproj.io names: kind: CronWorkflow + listKind: CronWorkflowList plural: cronworkflows shortNames: - - cronwf - cwf + - cronwf + singular: cronworkflow scope: Namespaced - version: v1alpha1 \ No newline at end of file + version: v1alpha1 + versions: + - name: v1alpha1 + served: true + storage: true diff --git a/charts/argo/crds/workflow-crd.yaml b/charts/argo/crds/workflow-crd.yaml index 269d032f..24f6abc2 100644 --- a/charts/argo/crds/workflow-crd.yaml +++ b/charts/argo/crds/workflow-crd.yaml @@ -19,8 +19,15 @@ spec: group: argoproj.io names: kind: Workflow + listKind: WorkflowList plural: workflows shortNames: - wf + singular: workflow scope: Namespaced + subresources: {} version: v1alpha1 + versions: + - name: v1alpha1 + served: true + storage: true diff --git a/charts/argo/crds/workflow-eventbinding-crd.yaml b/charts/argo/crds/workflow-eventbinding-crd.yaml new file mode 100644 index 00000000..a58de8e7 --- /dev/null +++ b/charts/argo/crds/workflow-eventbinding-crd.yaml @@ -0,0 +1,19 @@ +apiVersion: apiextensions.k8s.io/v1beta1 +kind: CustomResourceDefinition +metadata: + name: workfloweventbindings.argoproj.io +spec: + group: argoproj.io + names: + kind: WorkflowEventBinding + listKind: WorkflowEventBindingList + plural: workfloweventbindings + shortNames: + - wfeb + singular: workfloweventbinding + scope: Namespaced + version: v1alpha1 + versions: + - name: v1alpha1 + served: true + storage: true diff --git a/charts/argo/crds/workflow-template-crd.yaml b/charts/argo/crds/workflow-template-crd.yaml index 11d008db..0be13451 100644 --- a/charts/argo/crds/workflow-template-crd.yaml +++ b/charts/argo/crds/workflow-template-crd.yaml @@ -11,6 +11,12 @@ spec: scope: Namespaced names: kind: WorkflowTemplate + listKind: WorkflowTemplateList plural: workflowtemplates shortNames: - wftmpl + singular: workflowtemplate + versions: + - name: v1alpha1 + served: true + storage: true diff --git a/charts/argo/templates/server-cluster-roles.yaml b/charts/argo/templates/server-cluster-roles.yaml index 0c8f0763..eb7b71a4 100644 --- a/charts/argo/templates/server-cluster-roles.yaml +++ b/charts/argo/templates/server-cluster-roles.yaml @@ -30,11 +30,18 @@ rules: - list - watch - delete +- apiGroups: + - "" + resources: + - events + verbs: + - watch {{- if .Values.controller.persistence }} - apiGroups: - "" resources: - secrets + - serviceaccounts resourceNames: {{- if .Values.controller.persistence.postgresql }} - {{ .Values.controller.persistence.postgresql.userNameSecret.name }} @@ -51,8 +58,11 @@ rules: - argoproj.io resources: - workflows + - workfloweventbindings - workflowtemplates - cronworkflows + - cronworkflows/finalizers + - clusterworkflowtemplates verbs: - create - get diff --git a/charts/argo/values.yaml b/charts/argo/values.yaml index bc031487..710f67ce 100644 --- a/charts/argo/values.yaml +++ b/charts/argo/values.yaml @@ -7,7 +7,7 @@ images: # Secrets with credentials to pull images from a private registry pullSecrets: [] # - name: argo-pull-secret - tag: v2.7.6 + tag: v2.11.3 crdVersion: v1alpha1 installCRD: true