Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

overrides: Allow nullable replicas (PROJQUAY-6474) #909

Merged
merged 1 commit into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions apis/quay/v1/quayregistry_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,13 @@ type Component struct {

// Override describes configuration overrides for the given managed component
type Override struct {
VolumeSize *resource.Quantity `json:"volumeSize,omitempty"`
Env []corev1.EnvVar `json:"env,omitempty" patchStrategy:"merge" patchMergeKey:"name"`
Replicas *int32 `json:"replicas,omitempty"`
Affinity *corev1.Affinity `json:"affinity,omitempty"`
Labels map[string]string `json:"labels,omitempty"`
Annotations map[string]string `json:"annotations,omitempty"`
VolumeSize *resource.Quantity `json:"volumeSize,omitempty"`
Env []corev1.EnvVar `json:"env,omitempty" patchStrategy:"merge" patchMergeKey:"name"`
// +nullable
Replicas *int32 `json:"replicas,omitempty"`
Affinity *corev1.Affinity `json:"affinity,omitempty"`
Labels map[string]string `json:"labels,omitempty"`
Annotations map[string]string `json:"annotations,omitempty"`
}

type ConditionType string
Expand Down
1 change: 1 addition & 0 deletions bundle/manifests/quayregistries.crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1103,6 +1103,7 @@ spec:
type: object
replicas:
format: int32
nullable: true
type: integer
volumeSize:
anyOf:
Expand Down
1 change: 1 addition & 0 deletions config/crd/bases/quay.redhat.com_quayregistries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1103,6 +1103,7 @@ spec:
type: object
replicas:
format: int32
nullable: true
type: integer
volumeSize:
anyOf:
Expand Down
Loading