Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Fix retain replicas field type (was bool, should be boolean) #698

Merged
merged 2 commits into from
Mar 28, 2019
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Unreleased
- [#698](https://github.com/kubernetes-sigs/federation-v2/pull/698) -
Fix the generated CRD schema of scalable resources to define the
`retainReplicas` of type `boolean` rather than the invalid type
`bool`.
4 changes: 2 additions & 2 deletions charts/federation-v2/templates/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ spec:
type: object
type: object
retainReplicas:
type: bool
type: boolean
template:
properties:
apiVersion:
Expand Down Expand Up @@ -5405,7 +5405,7 @@ spec:
type: object
type: object
retainReplicas:
type: bool
type: boolean
template:
properties:
apiVersion:
Expand Down
2 changes: 1 addition & 1 deletion pkg/kubefed2/enable/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func federatedTypeValidationSchema(templateSchema map[string]v1beta1.JSONSchemaP
if replicasField, ok := templateSpec.Properties["replicas"]; ok {
if replicasField.Type == "integer" && replicasField.Format == "int32" {
specProperties[util.RetainReplicasField] = v1beta1.JSONSchemaProps{
Type: "bool",
Type: "boolean",
}
}
}
Expand Down