diff --git a/imageregistry/v1/00-crd.yaml b/imageregistry/v1/00-crd.yaml index 531ea0d4d7e..f034bbaf8eb 100644 --- a/imageregistry/v1/00-crd.yaml +++ b/imageregistry/v1/00-crd.yaml @@ -154,6 +154,11 @@ spec: type: object additionalProperties: type: string + rolloutStrategy: + description: rolloutStrategy defines rollout strategy for the image + registry deployment. Valid values are RollingUpdate (default) and Recreate. + type: string + pattern: ^(RollingUpdate|Recreate)$ routes: description: routes defines additional external facing routes which should be created for the registry. diff --git a/imageregistry/v1/types.go b/imageregistry/v1/types.go index 89641c5073c..cdb7b9ff1c3 100644 --- a/imageregistry/v1/types.go +++ b/imageregistry/v1/types.go @@ -82,6 +82,11 @@ type ImageRegistrySpec struct { // tolerations defines the tolerations for the registry pod. // +optional Tolerations []corev1.Toleration `json:"tolerations,omitempty" protobuf:"bytes,14,rep,name=tolerations"` + // rolloutStrategy defines rollout strategy for the image registry + // deployment. + // +optional + // +kubebuilder:validation:Pattern=`^(RollingUpdate|Recreate)$` + RolloutStrategy string `json:"rolloutStrategy" protobuf:"bytes,15,opt,name=rolloutStrategy"` } // ImageRegistryStatus reports image registry operational status. diff --git a/imageregistry/v1/zz_generated.swagger_doc_generated.go b/imageregistry/v1/zz_generated.swagger_doc_generated.go index 861f63691d2..9f453842fdc 100644 --- a/imageregistry/v1/zz_generated.swagger_doc_generated.go +++ b/imageregistry/v1/zz_generated.swagger_doc_generated.go @@ -181,6 +181,7 @@ var map_ImageRegistrySpec = map[string]string{ "resources": "resources defines the resource requests+limits for the registry pod.", "nodeSelector": "nodeSelector defines the node selection constraints for the registry pod.", "tolerations": "tolerations defines the tolerations for the registry pod.", + "rolloutStrategy": "rolloutStrategy defines rollout strategy for the image registry deployment.", } func (ImageRegistrySpec) SwaggerDoc() map[string]string {