From 31352b00047c12b217309a2f04fea2f6f1dc53cb Mon Sep 17 00:00:00 2001 From: Vaibhav Page Date: Wed, 8 Jan 2020 05:50:04 -0500 Subject: [PATCH] added event source crd and updated the cluster roles --- .../templates/argo-events-cluster-roles.yaml | 2 ++ .../templates/event-source-crd.yaml | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 charts/argo-events/templates/event-source-crd.yaml diff --git a/charts/argo-events/templates/argo-events-cluster-roles.yaml b/charts/argo-events/templates/argo-events-cluster-roles.yaml index 878b8520..2d98ffd8 100644 --- a/charts/argo-events/templates/argo-events-cluster-roles.yaml +++ b/charts/argo-events/templates/argo-events-cluster-roles.yaml @@ -58,6 +58,8 @@ rules: - gateways/finalizers - sensors - sensors/finalizers + - eventsources + - eventsources/finalizers - apiGroups: - "" resources: diff --git a/charts/argo-events/templates/event-source-crd.yaml b/charts/argo-events/templates/event-source-crd.yaml new file mode 100644 index 00000000..67560d30 --- /dev/null +++ b/charts/argo-events/templates/event-source-crd.yaml @@ -0,0 +1,18 @@ +{{- if .Values.installCRD }} +# Define a "event source" custom resource definition +apiVersion: apiextensions.k8s.io/v1beta1 +kind: CustomResourceDefinition +metadata: + name: eventsources.argoproj.io +spec: + group: argoproj.io + scope: Namespaced + names: + kind: EventSource + plural: eventsources + singular: eventsource + listKind: EventSourceList + shortNames: + - es + version: "v1alpha1" +{{- end }}