Skip to content

Commit

Permalink
Fix template type validation
Browse files Browse the repository at this point in the history
  • Loading branch information
eromanova committed Jun 18, 2024
1 parent 56eb724 commit 1bf1971
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 15 deletions.
2 changes: 1 addition & 1 deletion api/v1alpha1/template_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion config/crd/bases/hmc.mirantis.com_templates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ spec:
enum:
- deployment
- provider
- management
- core
type: string
valid:
description: Valid indicates whether the template passed validation
Expand Down
12 changes: 0 additions & 12 deletions config/samples/hmc.mirantis.com_v1alpha1_template.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion templates/hmc/templates/template-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ spec:
enum:
- deployment
- provider
- management
- core
type: string
valid:
description: Valid indicates whether the template passed validation
Expand Down

0 comments on commit 1bf1971

Please sign in to comment.