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
8e63473d
Commit
8e63473d
authored
Aug 23, 2017
by
Dr. Stefan Schimanski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
admission api: cut off api from k8s.io/apiserver
This caused an import cycle: api -> apiserver -> api Fixes
https://github.com/kubernetes/kubernetes/issues/51212
parent
625eb9ab
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
219 additions
and
217 deletions
+219
-217
BUILD
pkg/apis/admission/BUILD
+0
-1
types.go
pkg/apis/admission/types.go
+12
-2
helpers.go
pkg/apis/admission/v1alpha1/helpers.go
+1
-1
zz_generated.conversion.go
pkg/apis/admission/v1alpha1/zz_generated.conversion.go
+2
-3
Godeps.json
staging/src/k8s.io/api/Godeps/Godeps.json
+0
-12
BUILD
staging/src/k8s.io/api/admission/v1alpha1/BUILD
+0
-1
generated.pb.go
staging/src/k8s.io/api/admission/v1alpha1/generated.pb.go
+43
-46
types.generated.go
staging/src/k8s.io/api/admission/v1alpha1/types.generated.go
+149
-149
types.go
staging/src/k8s.io/api/admission/v1alpha1/types.go
+12
-2
No files found.
pkg/apis/admission/BUILD
View file @
8e63473d
...
...
@@ -19,7 +19,6 @@ go_library(
"//vendor/k8s.io/apimachinery/pkg/conversion:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
"//vendor/k8s.io/apiserver/pkg/admission:go_default_library",
],
)
...
...
pkg/apis/admission/types.go
View file @
8e63473d
...
...
@@ -19,7 +19,6 @@ package admission
import
(
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apiserver/pkg/admission"
"k8s.io/kubernetes/pkg/apis/authentication"
)
...
...
@@ -51,7 +50,7 @@ type AdmissionReviewSpec struct {
// OldObject is the existing object. Only populated for UPDATE requests.
OldObject
runtime
.
Object
// Operation is the operation being performed
Operation
admission
.
Operation
Operation
Operation
// Resource is the name of the resource being requested. This is not the kind. For example: pods
Resource
metav1
.
GroupVersionResource
// SubResource is the name of the subresource being requested. This is a different resource, scoped to the parent
...
...
@@ -73,3 +72,14 @@ type AdmissionReviewStatus struct {
// +optional
Result
*
metav1
.
Status
}
// Operation is the type of resource operation being checked for admission control
type
Operation
string
// Operation constants
const
(
Create
Operation
=
"CREATE"
Update
Operation
=
"UPDATE"
Delete
Operation
=
"DELETE"
Connect
Operation
=
"CONNECT"
)
pkg/apis/admission/v1alpha1/helpers.go
View file @
8e63473d
...
...
@@ -51,7 +51,7 @@ func NewAdmissionReview(attr admission.Attributes) admissionv1alpha1.AdmissionRe
Version
:
gvr
.
Version
,
},
SubResource
:
attr
.
GetSubresource
(),
Operation
:
a
ttr
.
GetOperation
(
),
Operation
:
a
dmissionv1alpha1
.
Operation
(
attr
.
GetOperation
()
),
Object
:
runtime
.
RawExtension
{
Object
:
attr
.
GetObject
(),
},
...
...
pkg/apis/admission/v1alpha1/zz_generated.conversion.go
View file @
8e63473d
...
...
@@ -25,7 +25,6 @@ import (
v1
"k8s.io/apimachinery/pkg/apis/meta/v1"
conversion
"k8s.io/apimachinery/pkg/conversion"
runtime
"k8s.io/apimachinery/pkg/runtime"
pkg_admission
"k8s.io/apiserver/pkg/admission"
admission
"k8s.io/kubernetes/pkg/apis/admission"
unsafe
"unsafe"
)
...
...
@@ -85,7 +84,7 @@ func autoConvert_v1alpha1_AdmissionReviewSpec_To_admission_AdmissionReviewSpec(i
if
err
:=
runtime
.
Convert_runtime_RawExtension_To_runtime_Object
(
&
in
.
OldObject
,
&
out
.
OldObject
,
s
);
err
!=
nil
{
return
err
}
out
.
Operation
=
pkg_
admission
.
Operation
(
in
.
Operation
)
out
.
Operation
=
admission
.
Operation
(
in
.
Operation
)
out
.
Name
=
in
.
Name
out
.
Namespace
=
in
.
Namespace
out
.
Resource
=
in
.
Resource
...
...
@@ -112,7 +111,7 @@ func autoConvert_admission_AdmissionReviewSpec_To_v1alpha1_AdmissionReviewSpec(i
if
err
:=
runtime
.
Convert_runtime_Object_To_runtime_RawExtension
(
&
in
.
OldObject
,
&
out
.
OldObject
,
s
);
err
!=
nil
{
return
err
}
out
.
Operation
=
pkg_admission
.
Operation
(
in
.
Operation
)
out
.
Operation
=
v1alpha1
.
Operation
(
in
.
Operation
)
out
.
Resource
=
in
.
Resource
out
.
SubResource
=
in
.
SubResource
// TODO: Inefficient conversion - can we improve it?
...
...
staging/src/k8s.io/api/Godeps/Godeps.json
View file @
8e63473d
...
...
@@ -15,10 +15,6 @@
"Rev"
:
"5bd2802263f21d8788851d5305584c82a5c75d7e"
},
{
"ImportPath"
:
"github.com/davecgh/go-spew/spew"
,
"Rev"
:
"782f4967f2dc4564575ca782fe2d04090b5faca8"
},
{
"ImportPath"
:
"github.com/emicklei/go-restful"
,
"Rev"
:
"ff4f55a206334ef123e4f79bbf348980da81ca46"
},
...
...
@@ -27,10 +23,6 @@
"Rev"
:
"ff4f55a206334ef123e4f79bbf348980da81ca46"
},
{
"ImportPath"
:
"github.com/ghodss/yaml"
,
"Rev"
:
"73d445a93680fa1a78ae23a5839bad48f32ba1ee"
},
{
"ImportPath"
:
"github.com/go-openapi/jsonpointer"
,
"Rev"
:
"46af16f9f7b149af66e5d1bd010e3574dc06de98"
},
...
...
@@ -145,10 +137,6 @@
{
"ImportPath"
:
"gopkg.in/inf.v0"
,
"Rev"
:
"3887ee99ecf07df5b447e9b00d9c0b2adaa9f3e4"
},
{
"ImportPath"
:
"gopkg.in/yaml.v2"
,
"Rev"
:
"53feefa2559fb8dfa8d81baad31be332c97d6c77"
}
]
}
staging/src/k8s.io/api/admission/v1alpha1/BUILD
View file @
8e63473d
...
...
@@ -25,7 +25,6 @@ go_library(
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/types:go_default_library",
"//vendor/k8s.io/apiserver/pkg/admission:go_default_library",
],
)
...
...
staging/src/k8s.io/api/admission/v1alpha1/generated.pb.go
View file @
8e63473d
...
...
@@ -37,8 +37,6 @@ import math "math"
import
k8s_io_apimachinery_pkg_apis_meta_v1
"k8s.io/apimachinery/pkg/apis/meta/v1"
import
k8s_io_apiserver_pkg_admission
"k8s.io/apiserver/pkg/admission"
import
strings
"strings"
import
reflect
"reflect"
...
...
@@ -605,7 +603,7 @@ func (m *AdmissionReviewSpec) Unmarshal(dAtA []byte) error {
if
postIndex
>
l
{
return
io
.
ErrUnexpectedEOF
}
m
.
Operation
=
k8s_io_apiserver_pkg_admission
.
Operation
(
dAtA
[
iNdEx
:
postIndex
])
m
.
Operation
=
Operation
(
dAtA
[
iNdEx
:
postIndex
])
iNdEx
=
postIndex
case
5
:
if
wireType
!=
2
{
...
...
@@ -988,47 +986,46 @@ func init() {
}
var
fileDescriptorGenerated
=
[]
byte
{
// 663 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0x9c
,
0x94
,
0xcf
,
0x4b
,
0x1c
,
0x49
,
0x14
,
0xc7
,
0xa7
,
0x77
,
0xc7
,
0x71
,
0xa6
,
0x5c
,
0xd6
,
0xdd
,
0x92
,
0x85
,
0x46
,
0xd8
,
0x56
,
0x3c
,
0x2c
,
0x2e
,
0x68
,
0x35
,
0x1a
,
0x23
,
0x21
,
0x90
,
0x83
,
0x03
,
0x49
,
0x08
,
0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
,
0x07
,
0x00
,
0x00
,
0xff
,
0xff
,
0xa0
,
0x57
,
0xa7
,
0x50
,
0xd8
,
0x05
,
0x00
,
0x00
,
}
staging/src/k8s.io/api/admission/v1alpha1/types.generated.go
View file @
8e63473d
...
...
@@ -25,11 +25,10 @@ import (
"errors"
"fmt"
codec1978
"github.com/ugorji/go/codec"
pkg
4
_v1
"k8s.io/api/authentication/v1"
pkg
3
_v1
"k8s.io/api/authentication/v1"
pkg1_v1
"k8s.io/apimachinery/pkg/apis/meta/v1"
pkg2_runtime
"k8s.io/apimachinery/pkg/runtime"
pkg5_types
"k8s.io/apimachinery/pkg/types"
pkg3_admission
"k8s.io/apiserver/pkg/admission"
pkg4_types
"k8s.io/apimachinery/pkg/types"
"reflect"
"runtime"
)
...
...
@@ -64,12 +63,11 @@ func init() {
panic
(
err
)
}
if
false
{
// reference the types, but skip this branch at build/run time
var
v0
pkg
4
_v1
.
UserInfo
var
v0
pkg
3
_v1
.
UserInfo
var
v1
pkg1_v1
.
TypeMeta
var
v2
pkg2_runtime
.
RawExtension
var
v3
pkg5_types
.
UID
var
v4
pkg3_admission
.
Operation
_
,
_
,
_
,
_
,
_
=
v0
,
v1
,
v2
,
v3
,
v4
var
v3
pkg4_types
.
UID
_
,
_
,
_
,
_
=
v0
,
v1
,
v2
,
v3
}
}
...
...
@@ -535,13 +533,7 @@ func (x *AdmissionReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) {
if
yyr2
||
yy2arr2
{
z
.
EncSendContainerState
(
codecSelfer_containerArrayElem1234
)
if
yyq2
[
3
]
{
yym19
:=
z
.
EncBinary
()
_
=
yym19
if
false
{
}
else
if
z
.
HasExtensions
()
&&
z
.
EncExt
(
x
.
Operation
)
{
}
else
{
r
.
EncodeString
(
codecSelferC_UTF81234
,
string
(
x
.
Operation
))
}
x
.
Operation
.
CodecEncodeSelf
(
e
)
}
else
{
r
.
EncodeString
(
codecSelferC_UTF81234
,
""
)
}
...
...
@@ -550,13 +542,7 @@ func (x *AdmissionReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) {
z
.
EncSendContainerState
(
codecSelfer_containerMapKey1234
)
r
.
EncodeString
(
codecSelferC_UTF81234
,
string
(
"operation"
))
z
.
EncSendContainerState
(
codecSelfer_containerMapValue1234
)
yym20
:=
z
.
EncBinary
()
_
=
yym20
if
false
{
}
else
if
z
.
HasExtensions
()
&&
z
.
EncExt
(
x
.
Operation
)
{
}
else
{
r
.
EncodeString
(
codecSelferC_UTF81234
,
string
(
x
.
Operation
))
}
x
.
Operation
.
CodecEncodeSelf
(
e
)
}
}
if
yyr2
||
yy2arr2
{
...
...
@@ -789,69 +775,63 @@ func (x *AdmissionReviewSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder
x
.
Operation
=
""
}
else
{
yyv10
:=
&
x
.
Operation
yym11
:=
z
.
DecBinary
()
_
=
yym11
if
false
{
}
else
if
z
.
HasExtensions
()
&&
z
.
DecExt
(
yyv10
)
{
}
else
{
*
((
*
string
)(
yyv10
))
=
r
.
DecodeString
()
}
yyv10
.
CodecDecodeSelf
(
d
)
}
case
"name"
:
if
r
.
TryDecodeAsNil
()
{
x
.
Name
=
""
}
else
{
yyv1
2
:=
&
x
.
Name
yym1
3
:=
z
.
DecBinary
()
_
=
yym1
3
yyv1
1
:=
&
x
.
Name
yym1
2
:=
z
.
DecBinary
()
_
=
yym1
2
if
false
{
}
else
{
*
((
*
string
)(
yyv1
2
))
=
r
.
DecodeString
()
*
((
*
string
)(
yyv1
1
))
=
r
.
DecodeString
()
}
}
case
"namespace"
:
if
r
.
TryDecodeAsNil
()
{
x
.
Namespace
=
""
}
else
{
yyv1
4
:=
&
x
.
Namespace
yym1
5
:=
z
.
DecBinary
()
_
=
yym1
5
yyv1
3
:=
&
x
.
Namespace
yym1
4
:=
z
.
DecBinary
()
_
=
yym1
4
if
false
{
}
else
{
*
((
*
string
)(
yyv1
4
))
=
r
.
DecodeString
()
*
((
*
string
)(
yyv1
3
))
=
r
.
DecodeString
()
}
}
case
"resource"
:
if
r
.
TryDecodeAsNil
()
{
x
.
Resource
=
pkg1_v1
.
GroupVersionResource
{}
}
else
{
yyv1
6
:=
&
x
.
Resource
yym1
7
:=
z
.
DecBinary
()
_
=
yym1
7
yyv1
5
:=
&
x
.
Resource
yym1
6
:=
z
.
DecBinary
()
_
=
yym1
6
if
false
{
}
else
if
z
.
HasExtensions
()
&&
z
.
DecExt
(
yyv1
6
)
{
}
else
if
z
.
HasExtensions
()
&&
z
.
DecExt
(
yyv1
5
)
{
}
else
{
z
.
DecFallback
(
yyv1
6
,
false
)
z
.
DecFallback
(
yyv1
5
,
false
)
}
}
case
"subResource"
:
if
r
.
TryDecodeAsNil
()
{
x
.
SubResource
=
""
}
else
{
yyv1
8
:=
&
x
.
SubResource
yym1
9
:=
z
.
DecBinary
()
_
=
yym1
9
yyv1
7
:=
&
x
.
SubResource
yym1
8
:=
z
.
DecBinary
()
_
=
yym1
8
if
false
{
}
else
{
*
((
*
string
)(
yyv1
8
))
=
r
.
DecodeString
()
*
((
*
string
)(
yyv1
7
))
=
r
.
DecodeString
()
}
}
case
"userInfo"
:
if
r
.
TryDecodeAsNil
()
{
x
.
UserInfo
=
pkg
4
_v1
.
UserInfo
{}
x
.
UserInfo
=
pkg
3
_v1
.
UserInfo
{}
}
else
{
yyv
20
:=
&
x
.
UserInfo
yyv
20
.
CodecDecodeSelf
(
d
)
yyv
19
:=
&
x
.
UserInfo
yyv
19
.
CodecDecodeSelf
(
d
)
}
default
:
z
.
DecStructFieldNotFound
(
-
1
,
yys3
)
...
...
@@ -864,16 +844,16 @@ func (x *AdmissionReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decod
var
h
codecSelfer1234
z
,
r
:=
codec1978
.
GenHelperDecoder
(
d
)
_
,
_
,
_
=
h
,
z
,
r
var
yyj2
1
int
var
yyb2
1
bool
var
yyhl2
1
bool
=
l
>=
0
yyj2
1
++
if
yyhl2
1
{
yyb2
1
=
yyj21
>
l
var
yyj2
0
int
var
yyb2
0
bool
var
yyhl2
0
bool
=
l
>=
0
yyj2
0
++
if
yyhl2
0
{
yyb2
0
=
yyj20
>
l
}
else
{
yyb2
1
=
r
.
CheckBreak
()
yyb2
0
=
r
.
CheckBreak
()
}
if
yyb2
1
{
if
yyb2
0
{
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
return
}
...
...
@@ -881,22 +861,22 @@ func (x *AdmissionReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decod
if
r
.
TryDecodeAsNil
()
{
x
.
Kind
=
pkg1_v1
.
GroupVersionKind
{}
}
else
{
yyv2
2
:=
&
x
.
Kind
yym2
3
:=
z
.
DecBinary
()
_
=
yym2
3
yyv2
1
:=
&
x
.
Kind
yym2
2
:=
z
.
DecBinary
()
_
=
yym2
2
if
false
{
}
else
if
z
.
HasExtensions
()
&&
z
.
DecExt
(
yyv2
2
)
{
}
else
if
z
.
HasExtensions
()
&&
z
.
DecExt
(
yyv2
1
)
{
}
else
{
z
.
DecFallback
(
yyv2
2
,
false
)
z
.
DecFallback
(
yyv2
1
,
false
)
}
}
yyj2
1
++
if
yyhl2
1
{
yyb2
1
=
yyj21
>
l
yyj2
0
++
if
yyhl2
0
{
yyb2
0
=
yyj20
>
l
}
else
{
yyb2
1
=
r
.
CheckBreak
()
yyb2
0
=
r
.
CheckBreak
()
}
if
yyb2
1
{
if
yyb2
0
{
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
return
}
...
...
@@ -904,24 +884,24 @@ func (x *AdmissionReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decod
if
r
.
TryDecodeAsNil
()
{
x
.
Object
=
pkg2_runtime
.
RawExtension
{}
}
else
{
yyv2
4
:=
&
x
.
Object
yym2
5
:=
z
.
DecBinary
()
_
=
yym2
5
yyv2
3
:=
&
x
.
Object
yym2
4
:=
z
.
DecBinary
()
_
=
yym2
4
if
false
{
}
else
if
z
.
HasExtensions
()
&&
z
.
DecExt
(
yyv2
4
)
{
}
else
if
!
yym2
5
&&
z
.
IsJSONHandle
()
{
z
.
DecJSONUnmarshal
(
yyv2
4
)
}
else
if
z
.
HasExtensions
()
&&
z
.
DecExt
(
yyv2
3
)
{
}
else
if
!
yym2
4
&&
z
.
IsJSONHandle
()
{
z
.
DecJSONUnmarshal
(
yyv2
3
)
}
else
{
z
.
DecFallback
(
yyv2
4
,
false
)
z
.
DecFallback
(
yyv2
3
,
false
)
}
}
yyj2
1
++
if
yyhl2
1
{
yyb2
1
=
yyj21
>
l
yyj2
0
++
if
yyhl2
0
{
yyb2
0
=
yyj20
>
l
}
else
{
yyb2
1
=
r
.
CheckBreak
()
yyb2
0
=
r
.
CheckBreak
()
}
if
yyb2
1
{
if
yyb2
0
{
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
return
}
...
...
@@ -929,24 +909,24 @@ func (x *AdmissionReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decod
if
r
.
TryDecodeAsNil
()
{
x
.
OldObject
=
pkg2_runtime
.
RawExtension
{}
}
else
{
yyv2
6
:=
&
x
.
OldObject
yym2
7
:=
z
.
DecBinary
()
_
=
yym2
7
yyv2
5
:=
&
x
.
OldObject
yym2
6
:=
z
.
DecBinary
()
_
=
yym2
6
if
false
{
}
else
if
z
.
HasExtensions
()
&&
z
.
DecExt
(
yyv2
6
)
{
}
else
if
!
yym2
7
&&
z
.
IsJSONHandle
()
{
z
.
DecJSONUnmarshal
(
yyv2
6
)
}
else
if
z
.
HasExtensions
()
&&
z
.
DecExt
(
yyv2
5
)
{
}
else
if
!
yym2
6
&&
z
.
IsJSONHandle
()
{
z
.
DecJSONUnmarshal
(
yyv2
5
)
}
else
{
z
.
DecFallback
(
yyv2
6
,
false
)
z
.
DecFallback
(
yyv2
5
,
false
)
}
}
yyj2
1
++
if
yyhl2
1
{
yyb2
1
=
yyj21
>
l
yyj2
0
++
if
yyhl2
0
{
yyb2
0
=
yyj20
>
l
}
else
{
yyb2
1
=
r
.
CheckBreak
()
yyb2
0
=
r
.
CheckBreak
()
}
if
yyb2
1
{
if
yyb2
0
{
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
return
}
...
...
@@ -954,22 +934,16 @@ func (x *AdmissionReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decod
if
r
.
TryDecodeAsNil
()
{
x
.
Operation
=
""
}
else
{
yyv28
:=
&
x
.
Operation
yym29
:=
z
.
DecBinary
()
_
=
yym29
if
false
{
}
else
if
z
.
HasExtensions
()
&&
z
.
DecExt
(
yyv28
)
{
}
else
{
*
((
*
string
)(
yyv28
))
=
r
.
DecodeString
()
}
yyv27
:=
&
x
.
Operation
yyv27
.
CodecDecodeSelf
(
d
)
}
yyj2
1
++
if
yyhl2
1
{
yyb2
1
=
yyj21
>
l
yyj2
0
++
if
yyhl2
0
{
yyb2
0
=
yyj20
>
l
}
else
{
yyb2
1
=
r
.
CheckBreak
()
yyb2
0
=
r
.
CheckBreak
()
}
if
yyb2
1
{
if
yyb2
0
{
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
return
}
...
...
@@ -977,21 +951,21 @@ func (x *AdmissionReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decod
if
r
.
TryDecodeAsNil
()
{
x
.
Name
=
""
}
else
{
yyv
30
:=
&
x
.
Name
yym
31
:=
z
.
DecBinary
()
_
=
yym
31
yyv
28
:=
&
x
.
Name
yym
29
:=
z
.
DecBinary
()
_
=
yym
29
if
false
{
}
else
{
*
((
*
string
)(
yyv
30
))
=
r
.
DecodeString
()
*
((
*
string
)(
yyv
28
))
=
r
.
DecodeString
()
}
}
yyj2
1
++
if
yyhl2
1
{
yyb2
1
=
yyj21
>
l
yyj2
0
++
if
yyhl2
0
{
yyb2
0
=
yyj20
>
l
}
else
{
yyb2
1
=
r
.
CheckBreak
()
yyb2
0
=
r
.
CheckBreak
()
}
if
yyb2
1
{
if
yyb2
0
{
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
return
}
...
...
@@ -999,21 +973,21 @@ func (x *AdmissionReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decod
if
r
.
TryDecodeAsNil
()
{
x
.
Namespace
=
""
}
else
{
yyv3
2
:=
&
x
.
Namespace
yym3
3
:=
z
.
DecBinary
()
_
=
yym3
3
yyv3
0
:=
&
x
.
Namespace
yym3
1
:=
z
.
DecBinary
()
_
=
yym3
1
if
false
{
}
else
{
*
((
*
string
)(
yyv3
2
))
=
r
.
DecodeString
()
*
((
*
string
)(
yyv3
0
))
=
r
.
DecodeString
()
}
}
yyj2
1
++
if
yyhl2
1
{
yyb2
1
=
yyj21
>
l
yyj2
0
++
if
yyhl2
0
{
yyb2
0
=
yyj20
>
l
}
else
{
yyb2
1
=
r
.
CheckBreak
()
yyb2
0
=
r
.
CheckBreak
()
}
if
yyb2
1
{
if
yyb2
0
{
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
return
}
...
...
@@ -1021,22 +995,22 @@ func (x *AdmissionReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decod
if
r
.
TryDecodeAsNil
()
{
x
.
Resource
=
pkg1_v1
.
GroupVersionResource
{}
}
else
{
yyv3
4
:=
&
x
.
Resource
yym3
5
:=
z
.
DecBinary
()
_
=
yym3
5
yyv3
2
:=
&
x
.
Resource
yym3
3
:=
z
.
DecBinary
()
_
=
yym3
3
if
false
{
}
else
if
z
.
HasExtensions
()
&&
z
.
DecExt
(
yyv3
4
)
{
}
else
if
z
.
HasExtensions
()
&&
z
.
DecExt
(
yyv3
2
)
{
}
else
{
z
.
DecFallback
(
yyv3
4
,
false
)
z
.
DecFallback
(
yyv3
2
,
false
)
}
}
yyj2
1
++
if
yyhl2
1
{
yyb2
1
=
yyj21
>
l
yyj2
0
++
if
yyhl2
0
{
yyb2
0
=
yyj20
>
l
}
else
{
yyb2
1
=
r
.
CheckBreak
()
yyb2
0
=
r
.
CheckBreak
()
}
if
yyb2
1
{
if
yyb2
0
{
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
return
}
...
...
@@ -1044,43 +1018,43 @@ func (x *AdmissionReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decod
if
r
.
TryDecodeAsNil
()
{
x
.
SubResource
=
""
}
else
{
yyv3
6
:=
&
x
.
SubResource
yym3
7
:=
z
.
DecBinary
()
_
=
yym3
7
yyv3
4
:=
&
x
.
SubResource
yym3
5
:=
z
.
DecBinary
()
_
=
yym3
5
if
false
{
}
else
{
*
((
*
string
)(
yyv3
6
))
=
r
.
DecodeString
()
*
((
*
string
)(
yyv3
4
))
=
r
.
DecodeString
()
}
}
yyj2
1
++
if
yyhl2
1
{
yyb2
1
=
yyj21
>
l
yyj2
0
++
if
yyhl2
0
{
yyb2
0
=
yyj20
>
l
}
else
{
yyb2
1
=
r
.
CheckBreak
()
yyb2
0
=
r
.
CheckBreak
()
}
if
yyb2
1
{
if
yyb2
0
{
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
return
}
z
.
DecSendContainerState
(
codecSelfer_containerArrayElem1234
)
if
r
.
TryDecodeAsNil
()
{
x
.
UserInfo
=
pkg
4
_v1
.
UserInfo
{}
x
.
UserInfo
=
pkg
3
_v1
.
UserInfo
{}
}
else
{
yyv3
8
:=
&
x
.
UserInfo
yyv3
8
.
CodecDecodeSelf
(
d
)
yyv3
6
:=
&
x
.
UserInfo
yyv3
6
.
CodecDecodeSelf
(
d
)
}
for
{
yyj2
1
++
if
yyhl2
1
{
yyb2
1
=
yyj21
>
l
yyj2
0
++
if
yyhl2
0
{
yyb2
0
=
yyj20
>
l
}
else
{
yyb2
1
=
r
.
CheckBreak
()
yyb2
0
=
r
.
CheckBreak
()
}
if
yyb2
1
{
if
yyb2
0
{
break
}
z
.
DecSendContainerState
(
codecSelfer_containerArrayElem1234
)
z
.
DecStructFieldNotFound
(
yyj2
1
-
1
,
""
)
z
.
DecStructFieldNotFound
(
yyj2
0
-
1
,
""
)
}
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
}
...
...
@@ -1338,3 +1312,29 @@ func (x *AdmissionReviewStatus) codecDecodeSelfFromArray(l int, d *codec1978.Dec
}
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
}
func
(
x
Operation
)
CodecEncodeSelf
(
e
*
codec1978
.
Encoder
)
{
var
h
codecSelfer1234
z
,
r
:=
codec1978
.
GenHelperEncoder
(
e
)
_
,
_
,
_
=
h
,
z
,
r
yym1
:=
z
.
EncBinary
()
_
=
yym1
if
false
{
}
else
if
z
.
HasExtensions
()
&&
z
.
EncExt
(
x
)
{
}
else
{
r
.
EncodeString
(
codecSelferC_UTF81234
,
string
(
x
))
}
}
func
(
x
*
Operation
)
CodecDecodeSelf
(
d
*
codec1978
.
Decoder
)
{
var
h
codecSelfer1234
z
,
r
:=
codec1978
.
GenHelperDecoder
(
d
)
_
,
_
,
_
=
h
,
z
,
r
yym1
:=
z
.
DecBinary
()
_
=
yym1
if
false
{
}
else
if
z
.
HasExtensions
()
&&
z
.
DecExt
(
x
)
{
}
else
{
*
((
*
string
)(
x
))
=
r
.
DecodeString
()
}
}
staging/src/k8s.io/api/admission/v1alpha1/types.go
View file @
8e63473d
...
...
@@ -20,7 +20,6 @@ import (
authenticationv1
"k8s.io/api/authentication/v1"
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apiserver/pkg/admission"
)
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
...
...
@@ -48,7 +47,7 @@ type AdmissionReviewSpec struct {
// +optional
OldObject
runtime
.
RawExtension
`json:"oldObject,omitempty" protobuf:"bytes,3,opt,name=oldObject"`
// Operation is the operation being performed
Operation
admission
.
Operation
`json:"operation,omitempty" protobuf:"bytes,4,opt,name=operation"`
Operation
Operation
`json:"operation,omitempty" protobuf:"bytes,4,opt,name=operation"`
// Name is the name of the object as presented in the request. On a CREATE operation, the client may omit name and
// rely on the server to generate the name. If that is the case, this method will return the empty string.
// +optional
...
...
@@ -78,3 +77,14 @@ type AdmissionReviewStatus struct {
// +optional
Result
*
metav1
.
Status
`json:"status,omitempty" protobuf:"bytes,2,opt,name=status"`
}
// Operation is the type of resource operation being checked for admission control
type
Operation
string
// Operation constants
const
(
Create
Operation
=
"CREATE"
Update
Operation
=
"UPDATE"
Delete
Operation
=
"DELETE"
Connect
Operation
=
"CONNECT"
)
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