mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-23 15:27:01 +00:00
The previous implementation had a bug and poorly handled types that should not have a `spec: replica:` field. Documentation is updated to reflect the change in behavior, and better highlights the cases where a patch should be used instead of this shorthand.
21 lines
303 B
Go
21 lines
303 B
Go
package defaultconfig
|
|
|
|
const replicasFieldSpecs = `
|
|
replicas:
|
|
- path: spec/replicas
|
|
create: true
|
|
kind: Deployment
|
|
|
|
- path: spec/replicas
|
|
create: true
|
|
kind: ReplicationController
|
|
|
|
- path: spec/replicas
|
|
create: true
|
|
kind: ReplicaSet
|
|
|
|
- path: spec/replicas
|
|
create: true
|
|
kind: StatefulSet
|
|
`
|