diff --git a/api/v1alpha1/template_types.go b/api/v1alpha1/template_types.go index 8dfc2b4c5..57a6c7c82 100644 --- a/api/v1alpha1/template_types.go +++ b/api/v1alpha1/template_types.go @@ -95,7 +95,7 @@ type TemplateStatus struct { // +optional ChartRef *helmcontrollerv2.CrossNamespaceSourceReference `json:"chartRef,omitempty"` // Type specifies the type of the provided template, as discovered from the Helm chart metadata. - // +kubebuilder:validation:Enum=deployment;provider;management + // +kubebuilder:validation:Enum=deployment;provider;core Type string `json:"type,omitempty"` // InfrastructureProviders specifies CAPI infrastructure providers associated with the template. // +optional diff --git a/config/crd/bases/hmc.mirantis.com_templates.yaml b/config/crd/bases/hmc.mirantis.com_templates.yaml index 1b8e21016..eb222cb7f 100644 --- a/config/crd/bases/hmc.mirantis.com_templates.yaml +++ b/config/crd/bases/hmc.mirantis.com_templates.yaml @@ -158,7 +158,7 @@ spec: enum: - deployment - provider - - management + - core type: string valid: description: Valid indicates whether the template passed validation diff --git a/config/samples/hmc.mirantis.com_v1alpha1_template.yaml b/config/samples/hmc.mirantis.com_v1alpha1_template.yaml deleted file mode 100644 index 58d952820..000000000 --- a/config/samples/hmc.mirantis.com_v1alpha1_template.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: hmc.mirantis.com/v1alpha1 -kind: Template -metadata: - labels: - app.kubernetes.io/name: hmc - app.kubernetes.io/managed-by: kustomize - name: template-sample -spec: - provider: aws - helm: - chartName: aws-standalone-cp - chartVersion: 0.1.0 diff --git a/templates/hmc/templates/template-crd.yaml b/templates/hmc/templates/template-crd.yaml index 05872e0b9..4a8acc1be 100644 --- a/templates/hmc/templates/template-crd.yaml +++ b/templates/hmc/templates/template-crd.yaml @@ -159,7 +159,7 @@ spec: enum: - deployment - provider - - management + - core type: string valid: description: Valid indicates whether the template passed validation