diff --git a/api/core/v1alpha1/catalog_types.go b/api/core/v1alpha1/catalog_types.go index fd136884..2278ccdc 100644 --- a/api/core/v1alpha1/catalog_types.go +++ b/api/core/v1alpha1/catalog_types.go @@ -99,6 +99,7 @@ type CatalogStatus struct { // CatalogSource contains the sourcing information for a Catalog type CatalogSource struct { // Type defines the kind of Catalog content being sourced. + // +kubebuilder:validation:Enum=image Type SourceType `json:"type"` // Image is the catalog image that backs the content of this catalog. Image *ImageSource `json:"image,omitempty"` diff --git a/config/crd/bases/catalogd.operatorframework.io_catalogs.yaml b/config/crd/bases/catalogd.operatorframework.io_catalogs.yaml index 6564bab8..624331d2 100644 --- a/config/crd/bases/catalogd.operatorframework.io_catalogs.yaml +++ b/config/crd/bases/catalogd.operatorframework.io_catalogs.yaml @@ -76,6 +76,8 @@ spec: type: object type: description: Type defines the kind of Catalog content being sourced. + enum: + - image type: string required: - type