Skip to content

Commit

Permalink
Merge pull request openshift#560 from Fedosin/image_registry_rollout
Browse files Browse the repository at this point in the history
Add rolloutStategy parameter to ImageRegistrySpec
  • Loading branch information
openshift-merge-robot authored Jan 9, 2020
2 parents b46f476 + 7214afa commit 680667d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions imageregistry/v1/00-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 5 additions & 0 deletions imageregistry/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions imageregistry/v1/zz_generated.swagger_doc_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 680667d

Please sign in to comment.