Skip to content

Commit

Permalink
helm charts: splitting value createCRDs into two separate parts for
Browse files Browse the repository at this point in the history
issuers and certificates

```improvement operator
helm charts: splitting value `createCRDs` into two separate values
`createCRDs.issuers` and `createCRDs.certificates`
```
  • Loading branch information
MartinWeindel committed Nov 12, 2019
1 parent 7326d3d commit 5fa6f75
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions charts/cert-management/templates/crds.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.createCRDs }}
{{- if .Values.createCRDs.issuers }}
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
Expand Down Expand Up @@ -47,7 +47,9 @@ spec:
- name: v1alpha1
served: true
storage: true
{{- end }}
---
{{- if .Values.createCRDs.certificates }}
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
Expand Down Expand Up @@ -102,4 +104,4 @@ spec:
- name: v1alpha1
served: true
storage: true
{{- end }}
{{- end }}
4 changes: 3 additions & 1 deletion charts/cert-management/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ tolerations: []
affinity: {}
# priorityClassName: ""

createCRDs: true
createCRDs:
issuers: true
certificates: true

configuration:
# certClass:
Expand Down

0 comments on commit 5fa6f75

Please sign in to comment.