mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-30 01:46:23 +00:00
Make the replica transformer kind aware.
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.
This commit is contained in:
@@ -369,5 +369,5 @@ type Replica struct {
|
||||
Name string `json:"name,omitempty" yaml:"name,omitempty"`
|
||||
|
||||
// The number of replicas required.
|
||||
Count uint `json:"count,omitempty" yaml:"count,omitempty"`
|
||||
Count int64 `json:"count,omitempty" yaml:"count,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user