Skip to content

Commit

Permalink
chart: add crds with lookup + helm hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Repo Sync Bot committed Sep 15, 2020
1 parent 7f2b828 commit ef93199
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions chart/templates/crds/clusteraccounttemplates.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{{- if not (lookup "apiextensions.k8s.io/v1beta1" "CustomResourceDefinition" "" "clusteraccounttemplates.storage.loft.sh") }}
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: clusteraccounttemplates.storage.loft.sh
annotations:
helm.sh/resource-policy: keep
helm.sh/hook: pre-install,pre-upgrade
spec:
conversion:
strategy: None
group: storage.loft.sh
names:
kind: ClusterAccountTemplate
listKind: ClusterAccountTemplateList
plural: clusteraccounttemplates
singular: clusteraccounttemplate
preserveUnknownFields: true
scope: Cluster
subresources:
status: {}
version: v1
versions:
- name: v1
served: true
storage: true
{{- end }}

0 comments on commit ef93199

Please sign in to comment.