[argo-events] Fix unused crdVersion value and add ability to specify crd creation job service account (#19)

* Use crd.version value and add ability to specify crd creation job sa
* Bump chart version to 0.2.0
This commit is contained in:
Ilya Sotkov 2018-08-28 01:27:30 +03:00 committed by Jesse Suen
parent b6588e85b8
commit 61d426c1ca
4 changed files with 7 additions and 4 deletions

View file

@ -1,7 +1,7 @@
apiVersion: v1
description: A Helm chart to install Argo-Events in k8s Cluster
name: argo-events
version: 0.1.0
version: 0.2.0
keywords:
- argo-events
- sensor-controller

View file

@ -1,6 +1,6 @@
{{- define "sensor-crd-json" }}
{
"apiVersion": "apiextensions.k8s.io/v1beta1",
"apiVersion": "apiextensions.k8s.io/{{ .Values.crd.version }}",
"kind": "CustomResourceDefinition",
"metadata": {
"name": "sensors.argoproj.io"

View file

@ -10,9 +10,10 @@ spec:
activeDeadlineSeconds: 100
template:
spec:
serviceAccountName: {{ .Values.crd.jobServiceAccount }}
containers:
- name: kubectl-apply
image: lachlanevenson/k8s-kubectl
command: ["/bin/sh"]
args: ["-c", 'echo ''{{- include "sensor-crd-json" .}}'' | kubectl apply -f -']
restartPolicy: Never
restartPolicy: Never

View file

@ -2,7 +2,9 @@ registry: argoproj
imagePullPolicy: Always
# Version of the Sensor CRD
crdVersion: v1alpha1
crd:
version: v1beta1
jobServiceAccount: default
# If set to true then chart set controller instance id to release name
useReleaseAsInstanceID: true