Skip to content

Commit

Permalink
Merge pull request kedacore#107 from kedacore/helm-crd-fix
Browse files Browse the repository at this point in the history
Helm CRD deployment/deletion

Former-commit-id: 13071d2
  • Loading branch information
ahmelsayed authored May 2, 2019
2 parents f3359be + b204210 commit 005d0ea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion chart/keda/templates/cluster-role-binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ subjects:
- kind: ServiceAccount
name: {{ template "keda.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}

{{- end -}}
4 changes: 3 additions & 1 deletion chart/keda/templates/scaledobject-crd.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.customResourceDefinition.create -}}
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
Expand All @@ -10,4 +11,5 @@ spec:
names:
kind: ScaledObject
plural: scaledobjects
scope: Namespaced
scope: Namespaced
{{- end -}}
3 changes: 3 additions & 0 deletions chart/keda/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ image:

replicaCount: 1

customResourceDefinition:
create: true

rbac:
create: true

Expand Down

0 comments on commit 005d0ea

Please sign in to comment.