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
e1aa8835
Commit
e1aa8835
authored
May 23, 2016
by
Maciej Szulik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Generated changes to suspend becoming pointer for ScheduledJob
parent
d8b9495e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
200 additions
and
124 deletions
+200
-124
deep_copy_generated.go
pkg/apis/batch/deep_copy_generated.go
+7
-1
types.generated.go
pkg/apis/batch/types.generated.go
+86
-56
deep_copy_generated.go
pkg/apis/batch/v2alpha1/deep_copy_generated.go
+7
-1
generated.pb.go
pkg/apis/batch/v2alpha1/generated.pb.go
+14
-9
generated.proto
pkg/apis/batch/v2alpha1/generated.proto
+0
-1
types.generated.go
pkg/apis/batch/v2alpha1/types.generated.go
+86
-56
No files found.
pkg/apis/batch/deep_copy_generated.go
View file @
e1aa8835
...
@@ -246,7 +246,13 @@ func DeepCopy_batch_ScheduledJobSpec(in ScheduledJobSpec, out *ScheduledJobSpec,
...
@@ -246,7 +246,13 @@ func DeepCopy_batch_ScheduledJobSpec(in ScheduledJobSpec, out *ScheduledJobSpec,
out
.
StartingDeadlineSeconds
=
nil
out
.
StartingDeadlineSeconds
=
nil
}
}
out
.
ConcurrencyPolicy
=
in
.
ConcurrencyPolicy
out
.
ConcurrencyPolicy
=
in
.
ConcurrencyPolicy
out
.
Suspend
=
in
.
Suspend
if
in
.
Suspend
!=
nil
{
in
,
out
:=
in
.
Suspend
,
&
out
.
Suspend
*
out
=
new
(
bool
)
**
out
=
*
in
}
else
{
out
.
Suspend
=
nil
}
if
err
:=
DeepCopy_batch_JobTemplateSpec
(
in
.
JobTemplate
,
&
out
.
JobTemplate
,
c
);
err
!=
nil
{
if
err
:=
DeepCopy_batch_JobTemplateSpec
(
in
.
JobTemplate
,
&
out
.
JobTemplate
,
c
);
err
!=
nil
{
return
err
return
err
}
}
...
...
pkg/apis/batch/types.generated.go
View file @
e1aa8835
...
@@ -3602,33 +3602,43 @@ func (x *ScheduledJobSpec) CodecEncodeSelf(e *codec1978.Encoder) {
...
@@ -3602,33 +3602,43 @@ func (x *ScheduledJobSpec) CodecEncodeSelf(e *codec1978.Encoder) {
}
}
if
yyr2
||
yy2arr2
{
if
yyr2
||
yy2arr2
{
z
.
EncSendContainerState
(
codecSelfer_containerArrayElem1234
)
z
.
EncSendContainerState
(
codecSelfer_containerArrayElem1234
)
yym15
:=
z
.
EncBinary
()
if
x
.
Suspend
==
nil
{
_
=
yym15
r
.
EncodeNil
()
if
false
{
}
else
{
}
else
{
r
.
EncodeBool
(
bool
(
x
.
Suspend
))
yy15
:=
*
x
.
Suspend
yym16
:=
z
.
EncBinary
()
_
=
yym16
if
false
{
}
else
{
r
.
EncodeBool
(
bool
(
yy15
))
}
}
}
}
else
{
}
else
{
z
.
EncSendContainerState
(
codecSelfer_containerMapKey1234
)
z
.
EncSendContainerState
(
codecSelfer_containerMapKey1234
)
r
.
EncodeString
(
codecSelferC_UTF81234
,
string
(
"suspend"
))
r
.
EncodeString
(
codecSelferC_UTF81234
,
string
(
"suspend"
))
z
.
EncSendContainerState
(
codecSelfer_containerMapValue1234
)
z
.
EncSendContainerState
(
codecSelfer_containerMapValue1234
)
yym16
:=
z
.
EncBinary
()
if
x
.
Suspend
==
nil
{
_
=
yym16
r
.
EncodeNil
()
if
false
{
}
else
{
}
else
{
r
.
EncodeBool
(
bool
(
x
.
Suspend
))
yy17
:=
*
x
.
Suspend
yym18
:=
z
.
EncBinary
()
_
=
yym18
if
false
{
}
else
{
r
.
EncodeBool
(
bool
(
yy17
))
}
}
}
}
}
if
yyr2
||
yy2arr2
{
if
yyr2
||
yy2arr2
{
z
.
EncSendContainerState
(
codecSelfer_containerArrayElem1234
)
z
.
EncSendContainerState
(
codecSelfer_containerArrayElem1234
)
yy
18
:=
&
x
.
JobTemplate
yy
20
:=
&
x
.
JobTemplate
yy
18
.
CodecEncodeSelf
(
e
)
yy
20
.
CodecEncodeSelf
(
e
)
}
else
{
}
else
{
z
.
EncSendContainerState
(
codecSelfer_containerMapKey1234
)
z
.
EncSendContainerState
(
codecSelfer_containerMapKey1234
)
r
.
EncodeString
(
codecSelferC_UTF81234
,
string
(
"jobTemplate"
))
r
.
EncodeString
(
codecSelferC_UTF81234
,
string
(
"jobTemplate"
))
z
.
EncSendContainerState
(
codecSelfer_containerMapValue1234
)
z
.
EncSendContainerState
(
codecSelfer_containerMapValue1234
)
yy2
0
:=
&
x
.
JobTemplate
yy2
2
:=
&
x
.
JobTemplate
yy2
0
.
CodecEncodeSelf
(
e
)
yy2
2
.
CodecEncodeSelf
(
e
)
}
}
if
yyr2
||
yy2arr2
{
if
yyr2
||
yy2arr2
{
z
.
EncSendContainerState
(
codecSelfer_containerArrayEnd1234
)
z
.
EncSendContainerState
(
codecSelfer_containerArrayEnd1234
)
...
@@ -3721,16 +3731,26 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
...
@@ -3721,16 +3731,26 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
}
}
case
"suspend"
:
case
"suspend"
:
if
r
.
TryDecodeAsNil
()
{
if
r
.
TryDecodeAsNil
()
{
x
.
Suspend
=
false
if
x
.
Suspend
!=
nil
{
x
.
Suspend
=
nil
}
}
else
{
}
else
{
x
.
Suspend
=
bool
(
r
.
DecodeBool
())
if
x
.
Suspend
==
nil
{
x
.
Suspend
=
new
(
bool
)
}
yym9
:=
z
.
DecBinary
()
_
=
yym9
if
false
{
}
else
{
*
((
*
bool
)(
x
.
Suspend
))
=
r
.
DecodeBool
()
}
}
}
case
"jobTemplate"
:
case
"jobTemplate"
:
if
r
.
TryDecodeAsNil
()
{
if
r
.
TryDecodeAsNil
()
{
x
.
JobTemplate
=
JobTemplateSpec
{}
x
.
JobTemplate
=
JobTemplateSpec
{}
}
else
{
}
else
{
yyv
9
:=
&
x
.
JobTemplate
yyv
10
:=
&
x
.
JobTemplate
yyv
9
.
CodecDecodeSelf
(
d
)
yyv
10
.
CodecDecodeSelf
(
d
)
}
}
default
:
default
:
z
.
DecStructFieldNotFound
(
-
1
,
yys3
)
z
.
DecStructFieldNotFound
(
-
1
,
yys3
)
...
@@ -3743,16 +3763,16 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder)
...
@@ -3743,16 +3763,16 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder)
var
h
codecSelfer1234
var
h
codecSelfer1234
z
,
r
:=
codec1978
.
GenHelperDecoder
(
d
)
z
,
r
:=
codec1978
.
GenHelperDecoder
(
d
)
_
,
_
,
_
=
h
,
z
,
r
_
,
_
,
_
=
h
,
z
,
r
var
yyj1
0
int
var
yyj1
1
int
var
yyb1
0
bool
var
yyb1
1
bool
var
yyhl1
0
bool
=
l
>=
0
var
yyhl1
1
bool
=
l
>=
0
yyj1
0
++
yyj1
1
++
if
yyhl1
0
{
if
yyhl1
1
{
yyb1
0
=
yyj10
>
l
yyb1
1
=
yyj11
>
l
}
else
{
}
else
{
yyb1
0
=
r
.
CheckBreak
()
yyb1
1
=
r
.
CheckBreak
()
}
}
if
yyb1
0
{
if
yyb1
1
{
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
return
return
}
}
...
@@ -3762,13 +3782,13 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder)
...
@@ -3762,13 +3782,13 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder)
}
else
{
}
else
{
x
.
Schedule
=
string
(
r
.
DecodeString
())
x
.
Schedule
=
string
(
r
.
DecodeString
())
}
}
yyj1
0
++
yyj1
1
++
if
yyhl1
0
{
if
yyhl1
1
{
yyb1
0
=
yyj10
>
l
yyb1
1
=
yyj11
>
l
}
else
{
}
else
{
yyb1
0
=
r
.
CheckBreak
()
yyb1
1
=
r
.
CheckBreak
()
}
}
if
yyb1
0
{
if
yyb1
1
{
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
return
return
}
}
...
@@ -3781,20 +3801,20 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder)
...
@@ -3781,20 +3801,20 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder)
if
x
.
StartingDeadlineSeconds
==
nil
{
if
x
.
StartingDeadlineSeconds
==
nil
{
x
.
StartingDeadlineSeconds
=
new
(
int64
)
x
.
StartingDeadlineSeconds
=
new
(
int64
)
}
}
yym1
3
:=
z
.
DecBinary
()
yym1
4
:=
z
.
DecBinary
()
_
=
yym1
3
_
=
yym1
4
if
false
{
if
false
{
}
else
{
}
else
{
*
((
*
int64
)(
x
.
StartingDeadlineSeconds
))
=
int64
(
r
.
DecodeInt
(
64
))
*
((
*
int64
)(
x
.
StartingDeadlineSeconds
))
=
int64
(
r
.
DecodeInt
(
64
))
}
}
}
}
yyj1
0
++
yyj1
1
++
if
yyhl1
0
{
if
yyhl1
1
{
yyb1
0
=
yyj10
>
l
yyb1
1
=
yyj11
>
l
}
else
{
}
else
{
yyb1
0
=
r
.
CheckBreak
()
yyb1
1
=
r
.
CheckBreak
()
}
}
if
yyb1
0
{
if
yyb1
1
{
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
return
return
}
}
...
@@ -3804,29 +3824,39 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder)
...
@@ -3804,29 +3824,39 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder)
}
else
{
}
else
{
x
.
ConcurrencyPolicy
=
ConcurrencyPolicy
(
r
.
DecodeString
())
x
.
ConcurrencyPolicy
=
ConcurrencyPolicy
(
r
.
DecodeString
())
}
}
yyj1
0
++
yyj1
1
++
if
yyhl1
0
{
if
yyhl1
1
{
yyb1
0
=
yyj10
>
l
yyb1
1
=
yyj11
>
l
}
else
{
}
else
{
yyb1
0
=
r
.
CheckBreak
()
yyb1
1
=
r
.
CheckBreak
()
}
}
if
yyb1
0
{
if
yyb1
1
{
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
return
return
}
}
z
.
DecSendContainerState
(
codecSelfer_containerArrayElem1234
)
z
.
DecSendContainerState
(
codecSelfer_containerArrayElem1234
)
if
r
.
TryDecodeAsNil
()
{
if
r
.
TryDecodeAsNil
()
{
x
.
Suspend
=
false
if
x
.
Suspend
!=
nil
{
x
.
Suspend
=
nil
}
}
else
{
}
else
{
x
.
Suspend
=
bool
(
r
.
DecodeBool
())
if
x
.
Suspend
==
nil
{
x
.
Suspend
=
new
(
bool
)
}
yym17
:=
z
.
DecBinary
()
_
=
yym17
if
false
{
}
else
{
*
((
*
bool
)(
x
.
Suspend
))
=
r
.
DecodeBool
()
}
}
}
yyj1
0
++
yyj1
1
++
if
yyhl1
0
{
if
yyhl1
1
{
yyb1
0
=
yyj10
>
l
yyb1
1
=
yyj11
>
l
}
else
{
}
else
{
yyb1
0
=
r
.
CheckBreak
()
yyb1
1
=
r
.
CheckBreak
()
}
}
if
yyb1
0
{
if
yyb1
1
{
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
return
return
}
}
...
@@ -3834,21 +3864,21 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder)
...
@@ -3834,21 +3864,21 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder)
if
r
.
TryDecodeAsNil
()
{
if
r
.
TryDecodeAsNil
()
{
x
.
JobTemplate
=
JobTemplateSpec
{}
x
.
JobTemplate
=
JobTemplateSpec
{}
}
else
{
}
else
{
yyv1
6
:=
&
x
.
JobTemplate
yyv1
8
:=
&
x
.
JobTemplate
yyv1
6
.
CodecDecodeSelf
(
d
)
yyv1
8
.
CodecDecodeSelf
(
d
)
}
}
for
{
for
{
yyj1
0
++
yyj1
1
++
if
yyhl1
0
{
if
yyhl1
1
{
yyb1
0
=
yyj10
>
l
yyb1
1
=
yyj11
>
l
}
else
{
}
else
{
yyb1
0
=
r
.
CheckBreak
()
yyb1
1
=
r
.
CheckBreak
()
}
}
if
yyb1
0
{
if
yyb1
1
{
break
break
}
}
z
.
DecSendContainerState
(
codecSelfer_containerArrayElem1234
)
z
.
DecSendContainerState
(
codecSelfer_containerArrayElem1234
)
z
.
DecStructFieldNotFound
(
yyj1
0
-
1
,
""
)
z
.
DecStructFieldNotFound
(
yyj1
1
-
1
,
""
)
}
}
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
}
}
...
...
pkg/apis/batch/v2alpha1/deep_copy_generated.go
View file @
e1aa8835
...
@@ -286,7 +286,13 @@ func DeepCopy_v2alpha1_ScheduledJobSpec(in ScheduledJobSpec, out *ScheduledJobSp
...
@@ -286,7 +286,13 @@ func DeepCopy_v2alpha1_ScheduledJobSpec(in ScheduledJobSpec, out *ScheduledJobSp
out
.
StartingDeadlineSeconds
=
nil
out
.
StartingDeadlineSeconds
=
nil
}
}
out
.
ConcurrencyPolicy
=
in
.
ConcurrencyPolicy
out
.
ConcurrencyPolicy
=
in
.
ConcurrencyPolicy
out
.
Suspend
=
in
.
Suspend
if
in
.
Suspend
!=
nil
{
in
,
out
:=
in
.
Suspend
,
&
out
.
Suspend
*
out
=
new
(
bool
)
**
out
=
*
in
}
else
{
out
.
Suspend
=
nil
}
if
err
:=
DeepCopy_v2alpha1_JobTemplateSpec
(
in
.
JobTemplate
,
&
out
.
JobTemplate
,
c
);
err
!=
nil
{
if
err
:=
DeepCopy_v2alpha1_JobTemplateSpec
(
in
.
JobTemplate
,
&
out
.
JobTemplate
,
c
);
err
!=
nil
{
return
err
return
err
}
}
...
...
pkg/apis/batch/v2alpha1/generated.pb.go
View file @
e1aa8835
...
@@ -636,14 +636,16 @@ func (m *ScheduledJobSpec) MarshalTo(data []byte) (int, error) {
...
@@ -636,14 +636,16 @@ func (m *ScheduledJobSpec) MarshalTo(data []byte) (int, error) {
i
++
i
++
i
=
encodeVarintGenerated
(
data
,
i
,
uint64
(
len
(
m
.
ConcurrencyPolicy
)))
i
=
encodeVarintGenerated
(
data
,
i
,
uint64
(
len
(
m
.
ConcurrencyPolicy
)))
i
+=
copy
(
data
[
i
:
],
m
.
ConcurrencyPolicy
)
i
+=
copy
(
data
[
i
:
],
m
.
ConcurrencyPolicy
)
data
[
i
]
=
0x20
if
m
.
Suspend
!=
nil
{
i
++
data
[
i
]
=
0x20
if
m
.
Suspend
{
i
++
data
[
i
]
=
1
if
*
m
.
Suspend
{
}
else
{
data
[
i
]
=
1
data
[
i
]
=
0
}
else
{
data
[
i
]
=
0
}
i
++
}
}
i
++
data
[
i
]
=
0x2a
data
[
i
]
=
0x2a
i
++
i
++
i
=
encodeVarintGenerated
(
data
,
i
,
uint64
(
m
.
JobTemplate
.
Size
()))
i
=
encodeVarintGenerated
(
data
,
i
,
uint64
(
m
.
JobTemplate
.
Size
()))
...
@@ -905,7 +907,9 @@ func (m *ScheduledJobSpec) Size() (n int) {
...
@@ -905,7 +907,9 @@ func (m *ScheduledJobSpec) Size() (n int) {
}
}
l
=
len
(
m
.
ConcurrencyPolicy
)
l
=
len
(
m
.
ConcurrencyPolicy
)
n
+=
1
+
l
+
sovGenerated
(
uint64
(
l
))
n
+=
1
+
l
+
sovGenerated
(
uint64
(
l
))
n
+=
2
if
m
.
Suspend
!=
nil
{
n
+=
2
}
l
=
m
.
JobTemplate
.
Size
()
l
=
m
.
JobTemplate
.
Size
()
n
+=
1
+
l
+
sovGenerated
(
uint64
(
l
))
n
+=
1
+
l
+
sovGenerated
(
uint64
(
l
))
return
n
return
n
...
@@ -2741,7 +2745,8 @@ func (m *ScheduledJobSpec) Unmarshal(data []byte) error {
...
@@ -2741,7 +2745,8 @@ func (m *ScheduledJobSpec) Unmarshal(data []byte) error {
break
break
}
}
}
}
m
.
Suspend
=
bool
(
v
!=
0
)
b
:=
bool
(
v
!=
0
)
m
.
Suspend
=
&
b
case
5
:
case
5
:
if
wireType
!=
2
{
if
wireType
!=
2
{
return
fmt
.
Errorf
(
"proto: wrong wireType = %d for field JobTemplate"
,
wireType
)
return
fmt
.
Errorf
(
"proto: wrong wireType = %d for field JobTemplate"
,
wireType
)
...
...
pkg/apis/batch/v2alpha1/generated.proto
View file @
e1aa8835
...
@@ -24,7 +24,6 @@ package k8s.io.kubernetes.pkg.apis.batch.v2alpha1;
...
@@ -24,7 +24,6 @@ package k8s.io.kubernetes.pkg.apis.batch.v2alpha1;
import
"k8s.io/kubernetes/pkg/api/resource/generated.proto"
;
import
"k8s.io/kubernetes/pkg/api/resource/generated.proto"
;
import
"k8s.io/kubernetes/pkg/api/unversioned/generated.proto"
;
import
"k8s.io/kubernetes/pkg/api/unversioned/generated.proto"
;
import
"k8s.io/kubernetes/pkg/api/v1/generated.proto"
;
import
"k8s.io/kubernetes/pkg/api/v1/generated.proto"
;
import
"k8s.io/kubernetes/pkg/runtime/generated.proto"
;
import
"k8s.io/kubernetes/pkg/util/intstr/generated.proto"
;
import
"k8s.io/kubernetes/pkg/util/intstr/generated.proto"
;
// Package-wide variables from generator "generated".
// Package-wide variables from generator "generated".
...
...
pkg/apis/batch/v2alpha1/types.generated.go
View file @
e1aa8835
...
@@ -3578,33 +3578,43 @@ func (x *ScheduledJobSpec) CodecEncodeSelf(e *codec1978.Encoder) {
...
@@ -3578,33 +3578,43 @@ func (x *ScheduledJobSpec) CodecEncodeSelf(e *codec1978.Encoder) {
}
}
if
yyr2
||
yy2arr2
{
if
yyr2
||
yy2arr2
{
z
.
EncSendContainerState
(
codecSelfer_containerArrayElem1234
)
z
.
EncSendContainerState
(
codecSelfer_containerArrayElem1234
)
yym15
:=
z
.
EncBinary
()
if
x
.
Suspend
==
nil
{
_
=
yym15
r
.
EncodeNil
()
if
false
{
}
else
{
}
else
{
r
.
EncodeBool
(
bool
(
x
.
Suspend
))
yy15
:=
*
x
.
Suspend
yym16
:=
z
.
EncBinary
()
_
=
yym16
if
false
{
}
else
{
r
.
EncodeBool
(
bool
(
yy15
))
}
}
}
}
else
{
}
else
{
z
.
EncSendContainerState
(
codecSelfer_containerMapKey1234
)
z
.
EncSendContainerState
(
codecSelfer_containerMapKey1234
)
r
.
EncodeString
(
codecSelferC_UTF81234
,
string
(
"suspend"
))
r
.
EncodeString
(
codecSelferC_UTF81234
,
string
(
"suspend"
))
z
.
EncSendContainerState
(
codecSelfer_containerMapValue1234
)
z
.
EncSendContainerState
(
codecSelfer_containerMapValue1234
)
yym16
:=
z
.
EncBinary
()
if
x
.
Suspend
==
nil
{
_
=
yym16
r
.
EncodeNil
()
if
false
{
}
else
{
}
else
{
r
.
EncodeBool
(
bool
(
x
.
Suspend
))
yy17
:=
*
x
.
Suspend
yym18
:=
z
.
EncBinary
()
_
=
yym18
if
false
{
}
else
{
r
.
EncodeBool
(
bool
(
yy17
))
}
}
}
}
}
if
yyr2
||
yy2arr2
{
if
yyr2
||
yy2arr2
{
z
.
EncSendContainerState
(
codecSelfer_containerArrayElem1234
)
z
.
EncSendContainerState
(
codecSelfer_containerArrayElem1234
)
yy
18
:=
&
x
.
JobTemplate
yy
20
:=
&
x
.
JobTemplate
yy
18
.
CodecEncodeSelf
(
e
)
yy
20
.
CodecEncodeSelf
(
e
)
}
else
{
}
else
{
z
.
EncSendContainerState
(
codecSelfer_containerMapKey1234
)
z
.
EncSendContainerState
(
codecSelfer_containerMapKey1234
)
r
.
EncodeString
(
codecSelferC_UTF81234
,
string
(
"jobTemplate"
))
r
.
EncodeString
(
codecSelferC_UTF81234
,
string
(
"jobTemplate"
))
z
.
EncSendContainerState
(
codecSelfer_containerMapValue1234
)
z
.
EncSendContainerState
(
codecSelfer_containerMapValue1234
)
yy2
0
:=
&
x
.
JobTemplate
yy2
2
:=
&
x
.
JobTemplate
yy2
0
.
CodecEncodeSelf
(
e
)
yy2
2
.
CodecEncodeSelf
(
e
)
}
}
if
yyr2
||
yy2arr2
{
if
yyr2
||
yy2arr2
{
z
.
EncSendContainerState
(
codecSelfer_containerArrayEnd1234
)
z
.
EncSendContainerState
(
codecSelfer_containerArrayEnd1234
)
...
@@ -3697,16 +3707,26 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
...
@@ -3697,16 +3707,26 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
}
}
case
"suspend"
:
case
"suspend"
:
if
r
.
TryDecodeAsNil
()
{
if
r
.
TryDecodeAsNil
()
{
x
.
Suspend
=
false
if
x
.
Suspend
!=
nil
{
x
.
Suspend
=
nil
}
}
else
{
}
else
{
x
.
Suspend
=
bool
(
r
.
DecodeBool
())
if
x
.
Suspend
==
nil
{
x
.
Suspend
=
new
(
bool
)
}
yym9
:=
z
.
DecBinary
()
_
=
yym9
if
false
{
}
else
{
*
((
*
bool
)(
x
.
Suspend
))
=
r
.
DecodeBool
()
}
}
}
case
"jobTemplate"
:
case
"jobTemplate"
:
if
r
.
TryDecodeAsNil
()
{
if
r
.
TryDecodeAsNil
()
{
x
.
JobTemplate
=
JobTemplateSpec
{}
x
.
JobTemplate
=
JobTemplateSpec
{}
}
else
{
}
else
{
yyv
9
:=
&
x
.
JobTemplate
yyv
10
:=
&
x
.
JobTemplate
yyv
9
.
CodecDecodeSelf
(
d
)
yyv
10
.
CodecDecodeSelf
(
d
)
}
}
default
:
default
:
z
.
DecStructFieldNotFound
(
-
1
,
yys3
)
z
.
DecStructFieldNotFound
(
-
1
,
yys3
)
...
@@ -3719,16 +3739,16 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder)
...
@@ -3719,16 +3739,16 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder)
var
h
codecSelfer1234
var
h
codecSelfer1234
z
,
r
:=
codec1978
.
GenHelperDecoder
(
d
)
z
,
r
:=
codec1978
.
GenHelperDecoder
(
d
)
_
,
_
,
_
=
h
,
z
,
r
_
,
_
,
_
=
h
,
z
,
r
var
yyj1
0
int
var
yyj1
1
int
var
yyb1
0
bool
var
yyb1
1
bool
var
yyhl1
0
bool
=
l
>=
0
var
yyhl1
1
bool
=
l
>=
0
yyj1
0
++
yyj1
1
++
if
yyhl1
0
{
if
yyhl1
1
{
yyb1
0
=
yyj10
>
l
yyb1
1
=
yyj11
>
l
}
else
{
}
else
{
yyb1
0
=
r
.
CheckBreak
()
yyb1
1
=
r
.
CheckBreak
()
}
}
if
yyb1
0
{
if
yyb1
1
{
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
return
return
}
}
...
@@ -3738,13 +3758,13 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder)
...
@@ -3738,13 +3758,13 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder)
}
else
{
}
else
{
x
.
Schedule
=
string
(
r
.
DecodeString
())
x
.
Schedule
=
string
(
r
.
DecodeString
())
}
}
yyj1
0
++
yyj1
1
++
if
yyhl1
0
{
if
yyhl1
1
{
yyb1
0
=
yyj10
>
l
yyb1
1
=
yyj11
>
l
}
else
{
}
else
{
yyb1
0
=
r
.
CheckBreak
()
yyb1
1
=
r
.
CheckBreak
()
}
}
if
yyb1
0
{
if
yyb1
1
{
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
return
return
}
}
...
@@ -3757,20 +3777,20 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder)
...
@@ -3757,20 +3777,20 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder)
if
x
.
StartingDeadlineSeconds
==
nil
{
if
x
.
StartingDeadlineSeconds
==
nil
{
x
.
StartingDeadlineSeconds
=
new
(
int64
)
x
.
StartingDeadlineSeconds
=
new
(
int64
)
}
}
yym1
3
:=
z
.
DecBinary
()
yym1
4
:=
z
.
DecBinary
()
_
=
yym1
3
_
=
yym1
4
if
false
{
if
false
{
}
else
{
}
else
{
*
((
*
int64
)(
x
.
StartingDeadlineSeconds
))
=
int64
(
r
.
DecodeInt
(
64
))
*
((
*
int64
)(
x
.
StartingDeadlineSeconds
))
=
int64
(
r
.
DecodeInt
(
64
))
}
}
}
}
yyj1
0
++
yyj1
1
++
if
yyhl1
0
{
if
yyhl1
1
{
yyb1
0
=
yyj10
>
l
yyb1
1
=
yyj11
>
l
}
else
{
}
else
{
yyb1
0
=
r
.
CheckBreak
()
yyb1
1
=
r
.
CheckBreak
()
}
}
if
yyb1
0
{
if
yyb1
1
{
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
return
return
}
}
...
@@ -3780,29 +3800,39 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder)
...
@@ -3780,29 +3800,39 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder)
}
else
{
}
else
{
x
.
ConcurrencyPolicy
=
ConcurrencyPolicy
(
r
.
DecodeString
())
x
.
ConcurrencyPolicy
=
ConcurrencyPolicy
(
r
.
DecodeString
())
}
}
yyj1
0
++
yyj1
1
++
if
yyhl1
0
{
if
yyhl1
1
{
yyb1
0
=
yyj10
>
l
yyb1
1
=
yyj11
>
l
}
else
{
}
else
{
yyb1
0
=
r
.
CheckBreak
()
yyb1
1
=
r
.
CheckBreak
()
}
}
if
yyb1
0
{
if
yyb1
1
{
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
return
return
}
}
z
.
DecSendContainerState
(
codecSelfer_containerArrayElem1234
)
z
.
DecSendContainerState
(
codecSelfer_containerArrayElem1234
)
if
r
.
TryDecodeAsNil
()
{
if
r
.
TryDecodeAsNil
()
{
x
.
Suspend
=
false
if
x
.
Suspend
!=
nil
{
x
.
Suspend
=
nil
}
}
else
{
}
else
{
x
.
Suspend
=
bool
(
r
.
DecodeBool
())
if
x
.
Suspend
==
nil
{
x
.
Suspend
=
new
(
bool
)
}
yym17
:=
z
.
DecBinary
()
_
=
yym17
if
false
{
}
else
{
*
((
*
bool
)(
x
.
Suspend
))
=
r
.
DecodeBool
()
}
}
}
yyj1
0
++
yyj1
1
++
if
yyhl1
0
{
if
yyhl1
1
{
yyb1
0
=
yyj10
>
l
yyb1
1
=
yyj11
>
l
}
else
{
}
else
{
yyb1
0
=
r
.
CheckBreak
()
yyb1
1
=
r
.
CheckBreak
()
}
}
if
yyb1
0
{
if
yyb1
1
{
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
return
return
}
}
...
@@ -3810,21 +3840,21 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder)
...
@@ -3810,21 +3840,21 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder)
if
r
.
TryDecodeAsNil
()
{
if
r
.
TryDecodeAsNil
()
{
x
.
JobTemplate
=
JobTemplateSpec
{}
x
.
JobTemplate
=
JobTemplateSpec
{}
}
else
{
}
else
{
yyv1
6
:=
&
x
.
JobTemplate
yyv1
8
:=
&
x
.
JobTemplate
yyv1
6
.
CodecDecodeSelf
(
d
)
yyv1
8
.
CodecDecodeSelf
(
d
)
}
}
for
{
for
{
yyj1
0
++
yyj1
1
++
if
yyhl1
0
{
if
yyhl1
1
{
yyb1
0
=
yyj10
>
l
yyb1
1
=
yyj11
>
l
}
else
{
}
else
{
yyb1
0
=
r
.
CheckBreak
()
yyb1
1
=
r
.
CheckBreak
()
}
}
if
yyb1
0
{
if
yyb1
1
{
break
break
}
}
z
.
DecSendContainerState
(
codecSelfer_containerArrayElem1234
)
z
.
DecSendContainerState
(
codecSelfer_containerArrayElem1234
)
z
.
DecStructFieldNotFound
(
yyj1
0
-
1
,
""
)
z
.
DecStructFieldNotFound
(
yyj1
1
-
1
,
""
)
}
}
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
}
}
...
...
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