mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Change PreferredSchedulingTerm to int32
Follow our external conventions and allow protobuf
This commit is contained in:
parent
ab20b884df
commit
18906e0bcc
@ -22412,7 +22412,7 @@ func (x *PreferredSchedulingTerm) codecDecodeSelfFromMap(l int, d *codec1978.Dec
|
|||||||
if r.TryDecodeAsNil() {
|
if r.TryDecodeAsNil() {
|
||||||
x.Weight = 0
|
x.Weight = 0
|
||||||
} else {
|
} else {
|
||||||
x.Weight = int(r.DecodeInt(codecSelferBitsize1234))
|
x.Weight = int32(r.DecodeInt(32))
|
||||||
}
|
}
|
||||||
case "preference":
|
case "preference":
|
||||||
if r.TryDecodeAsNil() {
|
if r.TryDecodeAsNil() {
|
||||||
@ -22449,7 +22449,7 @@ func (x *PreferredSchedulingTerm) codecDecodeSelfFromArray(l int, d *codec1978.D
|
|||||||
if r.TryDecodeAsNil() {
|
if r.TryDecodeAsNil() {
|
||||||
x.Weight = 0
|
x.Weight = 0
|
||||||
} else {
|
} else {
|
||||||
x.Weight = int(r.DecodeInt(codecSelferBitsize1234))
|
x.Weight = int32(r.DecodeInt(32))
|
||||||
}
|
}
|
||||||
yyj6++
|
yyj6++
|
||||||
if yyhl6 {
|
if yyhl6 {
|
||||||
|
@ -1419,7 +1419,7 @@ type NodeAffinity struct {
|
|||||||
// (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).
|
// (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).
|
||||||
type PreferredSchedulingTerm struct {
|
type PreferredSchedulingTerm struct {
|
||||||
// Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.
|
// Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.
|
||||||
Weight int `json:"weight"`
|
Weight int32 `json:"weight"`
|
||||||
// A node selector term, associated with the corresponding weight.
|
// A node selector term, associated with the corresponding weight.
|
||||||
Preference NodeSelectorTerm `json:"preference"`
|
Preference NodeSelectorTerm `json:"preference"`
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user