diff --git a/api/v1alpha1/custom_package_types.go b/api/v1alpha1/custom_package_types.go index ef421929..69d5ade5 100644 --- a/api/v1alpha1/custom_package_types.go +++ b/api/v1alpha1/custom_package_types.go @@ -56,7 +56,8 @@ type ArgoCDPackageSpec struct { ApplicationFile string `json:"applicationFile"` Name string `json:"name"` Namespace string `json:"namespace"` - Type string `json:"type"` + // +kubebuilder:validation:Enum:=Application;ApplicationSet + Type string `json:"type"` } type CustomPackageStatus struct { diff --git a/pkg/controllers/resources/idpbuilder.cnoe.io_custompackages.yaml b/pkg/controllers/resources/idpbuilder.cnoe.io_custompackages.yaml index 6ad4f86d..f22b5ec8 100644 --- a/pkg/controllers/resources/idpbuilder.cnoe.io_custompackages.yaml +++ b/pkg/controllers/resources/idpbuilder.cnoe.io_custompackages.yaml @@ -50,6 +50,9 @@ spec: namespace: type: string type: + enum: + - Application + - ApplicationSet type: string required: - applicationFile