[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:
parent
b6588e85b8
commit
61d426c1ca
4 changed files with 7 additions and 4 deletions
|
@ -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.1.0
|
version: 0.2.0
|
||||||
keywords:
|
keywords:
|
||||||
- argo-events
|
- argo-events
|
||||||
- sensor-controller
|
- sensor-controller
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{{- define "sensor-crd-json" }}
|
{{- define "sensor-crd-json" }}
|
||||||
{
|
{
|
||||||
"apiVersion": "apiextensions.k8s.io/v1beta1",
|
"apiVersion": "apiextensions.k8s.io/{{ .Values.crd.version }}",
|
||||||
"kind": "CustomResourceDefinition",
|
"kind": "CustomResourceDefinition",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "sensors.argoproj.io"
|
"name": "sensors.argoproj.io"
|
||||||
|
|
|
@ -10,9 +10,10 @@ spec:
|
||||||
activeDeadlineSeconds: 100
|
activeDeadlineSeconds: 100
|
||||||
template:
|
template:
|
||||||
spec:
|
spec:
|
||||||
|
serviceAccountName: {{ .Values.crd.jobServiceAccount }}
|
||||||
containers:
|
containers:
|
||||||
- name: kubectl-apply
|
- name: kubectl-apply
|
||||||
image: lachlanevenson/k8s-kubectl
|
image: lachlanevenson/k8s-kubectl
|
||||||
command: ["/bin/sh"]
|
command: ["/bin/sh"]
|
||||||
args: ["-c", 'echo ''{{- include "sensor-crd-json" .}}'' | kubectl apply -f -']
|
args: ["-c", 'echo ''{{- include "sensor-crd-json" .}}'' | kubectl apply -f -']
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
|
|
|
@ -2,7 +2,9 @@ registry: argoproj
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
|
|
||||||
# Version of the Sensor CRD
|
# 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
|
# If set to true then chart set controller instance id to release name
|
||||||
useReleaseAsInstanceID: true
|
useReleaseAsInstanceID: true
|
||||||
|
|
Loading…
Reference in a new issue