feat: Update events chart (#220)

* added crds directory for helm 3 compability

* added eventsource-crd for helm2

* updated image tags to newer version, added new property for additionalRules for compability

* updated SA Rules to match installation yaml from events repo

* introduced shortnames to match upstream crds

* updated env var names to match events installation yml from upstream repo

* updated chart and app version
This commit is contained in:
Konstantin 2020-01-30 03:20:02 +01:00 committed by GitHub
parent 3b3a2c86b3
commit d5dec323a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 104 additions and 26 deletions

View file

@ -1,7 +1,7 @@
apiVersion: v1 apiVersion: v1
description: A Helm chart to install Argo-Events in k8s Cluster description: A Helm chart to install Argo-Events in k8s Cluster
name: argo-events name: argo-events
version: 0.6.1 version: 0.7.0
keywords: keywords:
- argo-events - argo-events
- sensor-controller - sensor-controller
@ -11,6 +11,6 @@ sources:
maintainers: maintainers:
- name: VaibhavPage - name: VaibhavPage
- name: magaldima - name: magaldima
appVersion: 0.11 appVersion: 0.12
icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png
home: https://github.com/argoproj/argo-helm home: https://github.com/argoproj/argo-helm

View file

@ -0,0 +1,18 @@
---
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"

View file

@ -0,0 +1,16 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: gateways.argoproj.io
spec:
group: argoproj.io
names:
kind: Gateway
listKind: GatewayList
plural: gateways
singular: gateway
shortNames:
- gw
scope: Namespaced
version: "v1alpha1"

View file

@ -0,0 +1,17 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: sensors.argoproj.io
spec:
group: argoproj.io
names:
kind: Sensor
listKind: SensorList
plural: sensors
singular: sensor
shortNames:
- sn
scope: Namespaced
version: "v1alpha1"

View file

@ -24,20 +24,9 @@ kind: ClusterRole
metadata: metadata:
name: argo-events-role name: argo-events-role
rules: rules:
- apiGroups: {{- if .Values.additionalServiceAccountRules }}
- apiextensions.k8s.io {{ .Values.additionalServiceAccountRules | toYaml | nindent 2}}
- apiextensions.k8s.io/v1beta1 {{- end }}
verbs:
- create
- delete
- deletecollection
- get
- list
- patch
- update
- watch
resources:
- customresourcedefinitions
- apiGroups: - apiGroups:
- argoproj.io - argoproj.io
verbs: verbs:
@ -58,6 +47,8 @@ rules:
- gateways/finalizers - gateways/finalizers
- sensors - sensors
- sensors/finalizers - sensors/finalizers
- eventsources
- eventsources/finalizers
- apiGroups: - apiGroups:
- "" - ""
resources: resources:
@ -89,9 +80,7 @@ rules:
- patch - patch
- delete - delete
- apiGroups: - apiGroups:
- "apps/v1" - "apps"
- "apps/v1beta2"
- "apps/v1beta1"
resources: resources:
- deployments - deployments
verbs: verbs:
@ -102,3 +91,4 @@ rules:
- update - update
- patch - patch
- delete - delete

View file

@ -0,0 +1,17 @@
{{- if .Values.installCRD }}
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 }}

View file

@ -25,9 +25,9 @@ spec:
image: "{{ .Values.registry }}/{{ .Values.gatewayController.image }}:{{ .Values.gatewayController.tag }}" image: "{{ .Values.registry }}/{{ .Values.gatewayController.image }}:{{ .Values.gatewayController.tag }}"
imagePullPolicy: {{ .Values.imagePullPolicy }} imagePullPolicy: {{ .Values.imagePullPolicy }}
env: env:
- name: GATEWAY_NAMESPACE - name: NAMESPACE
valueFrom: valueFrom:
fieldRef: fieldRef:
fieldPath: metadata.namespace fieldPath: metadata.namespace
- name: GATEWAY_CONTROLLER_CONFIG_MAP - name: CONTROLLER_CONFIG_MAP
value: {{ .Release.Name }}-{{ .Values.gatewayController.name }}-configmap value: {{ .Release.Name }}-{{ .Values.gatewayController.name }}-configmap

View file

@ -11,6 +11,8 @@ spec:
listKind: GatewayList listKind: GatewayList
plural: gateways plural: gateways
singular: gateway singular: gateway
shortNames:
- gw
scope: Namespaced scope: Namespaced
version: v1alpha1 version: "v1alpha1"
{{- end }} {{- end }}

View file

@ -25,9 +25,9 @@ spec:
image: "{{ .Values.registry }}/{{ .Values.sensorController.image }}:{{ .Values.sensorController.tag }}" image: "{{ .Values.registry }}/{{ .Values.sensorController.image }}:{{ .Values.sensorController.tag }}"
imagePullPolicy: {{ .Values.imagePullPolicy }} imagePullPolicy: {{ .Values.imagePullPolicy }}
env: env:
- name: SENSOR_NAMESPACE - name: NAMESPACE
valueFrom: valueFrom:
fieldRef: fieldRef:
fieldPath: metadata.namespace fieldPath: metadata.namespace
- name: SENSOR_CONFIG_MAP - name: CONTROLLER_CONFIG_MAP
value: {{ .Release.Name }}-{{ .Values.sensorController.name }}-configmap value: {{ .Release.Name }}-{{ .Values.sensorController.name }}-configmap

View file

@ -11,6 +11,8 @@ spec:
listKind: SensorList listKind: SensorList
plural: sensors plural: sensors
singular: sensor singular: sensor
shortNames:
- sn
scope: Namespaced scope: Namespaced
version: v1alpha1 version: v1alpha1
{{- end }} {{- end }}

View file

@ -9,10 +9,26 @@ installCRD: true
# ServiceAccount to use for running controller. # ServiceAccount to use for running controller.
serviceAccount: argo-events-sa serviceAccount: argo-events-sa
# Create service accounts in additional namespaces specified # Create service accounts in additional namespaces specified
# The SA will always be created in the release namespaces # The SA will always be created in the release namespaces
additionalSaNamespaces: [] additionalSaNamespaces: []
# - argo-prod # - argo-prod
additionalServiceAccountRules:
- apiGroups:
- apiextensions.k8s.io
- apiextensions.k8s.io/v1beta1
verbs:
- create
- delete
- deletecollection
- get
- list
- patch
- update
- watch
resources:
- customresourcedefinitions
instanceID: argo-events instanceID: argo-events
@ -26,11 +42,11 @@ singleNamespace: true
sensorController: sensorController:
name: sensor-controller name: sensor-controller
image: sensor-controller image: sensor-controller
tag: v0.11 tag: v0.12
replicaCount: 1 replicaCount: 1
gatewayController: gatewayController:
name: gateway-controller name: gateway-controller
image: gateway-controller image: gateway-controller
tag: v0.11 tag: v0.12
replicaCount: 1 replicaCount: 1