Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
18906e0b
Commit
18906e0b
authored
Mar 26, 2016
by
Clayton Coleman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change PreferredSchedulingTerm to int32
Follow our external conventions and allow protobuf
parent
ab20b884
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
types.generated.go
pkg/api/v1/types.generated.go
+2
-2
types.go
pkg/api/v1/types.go
+1
-1
No files found.
pkg/api/v1/types.generated.go
View file @
18906e0b
...
@@ -22412,7 +22412,7 @@ func (x *PreferredSchedulingTerm) codecDecodeSelfFromMap(l int, d *codec1978.Dec
...
@@ -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
=
int
32
(
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
...
@@ -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
=
int
32
(
r
.
DecodeInt
(
32
))
}
}
yyj6
++
yyj6
++
if
yyhl6
{
if
yyhl6
{
pkg/api/v1/types.go
View file @
18906e0b
...
@@ -1419,7 +1419,7 @@ type NodeAffinity struct {
...
@@ -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
int
32
`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"`
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment