{{- if .Values.crd.create -}} apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: name: clusters.submariner.io annotations: "helm.sh/hook": crd-install spec: group: submariner.io version: v1 names: kind: Cluster plural: clusters scope: Namespaced --- apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: name: endpoints.submariner.io annotations: "helm.sh/hook": crd-install spec: group: submariner.io version: v1 names: kind: Endpoint plural: endpoints scope: Namespaced --- apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: name: gateways.submariner.io annotations: "helm.sh/hook": crd-install spec: group: submariner.io version: v1 names: kind: Gateway plural: gateways scope: Namespaced additionalPrinterColumns: - name: ha-status type: string description: High Availability Status of the Gateway JSONPath: .status.haStatus --- {{- if .Values.submariner.serviceDiscovery }} apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: name: multiclusterservices.lighthouse.submariner.io annotations: "helm.sh/hook": crd-install spec: group: lighthouse.submariner.io version: v1 names: kind: MultiClusterService plural: multiclusterservices singular: multiclusterservice scope: Namespaced validation: openAPIV3Schema: properties: spec: properties: clusterServiceInfo: properties: clusterID: type: "string" clusterDomain: type: "string" serviceIP: type: "string" port: type: "integer" {{- end }} {{- end -}}