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
1fcaf3aa
Commit
1fcaf3aa
authored
Sep 14, 2016
by
Saad Ali
Committed by
GitHub
Sep 14, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #32720 from mikedanese/run-update-all
fully verify client-gen in verification tests
parents
fa943089
0c76cf5c
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
150 additions
and
1 deletion
+150
-1
update-codegen.sh
hack/update-codegen.sh
+1
-1
authorization_client.go
...e_1_5/typed/authorization/v1beta1/authorization_client.go
+10
-0
fake_authorization_client.go
...d/authorization/v1beta1/fake/fake_authorization_client.go
+8
-0
fake_localsubjectaccessreview.go
...thorization/v1beta1/fake/fake_localsubjectaccessreview.go
+23
-0
fake_selfsubjectaccessreview.go
...uthorization/v1beta1/fake/fake_selfsubjectaccessreview.go
+22
-0
generated_expansion.go
...se_1_5/typed/authorization/v1beta1/generated_expansion.go
+4
-0
localsubjectaccessreview.go
...5/typed/authorization/v1beta1/localsubjectaccessreview.go
+42
-0
selfsubjectaccessreview.go
..._5/typed/authorization/v1beta1/selfsubjectaccessreview.go
+40
-0
No files found.
hack/update-codegen.sh
View file @
1fcaf3aa
...
@@ -39,7 +39,7 @@ setgen=$(kube::util::find-binary "set-gen")
...
@@ -39,7 +39,7 @@ setgen=$(kube::util::find-binary "set-gen")
# update- and verify- scripts.
# update- and verify- scripts.
${
clientgen
}
"
$@
"
${
clientgen
}
"
$@
"
${
clientgen
}
-t
"
$@
"
${
clientgen
}
-t
"
$@
"
${
clientgen
}
--clientset-name
=
"release_1_5"
--input
=
"api/v1,authorization/v1beta1,autoscaling/v1,batch/v1,extensions/v1beta1,policy/v1alpha1"
${
clientgen
}
--clientset-name
=
"release_1_5"
--input
=
"api/v1,authorization/v1beta1,autoscaling/v1,batch/v1,extensions/v1beta1,policy/v1alpha1"
"
$@
"
# Clientgen for federation clientset.
# Clientgen for federation clientset.
${
clientgen
}
--clientset-name
=
federation_internalclientset
--clientset-path
=
k8s.io/kubernetes/federation/client/clientset_generated
--input
=
"../../federation/apis/federation/"
,
"api/"
,
"extensions/"
--included-types-overrides
=
"api/Service,api/Namespace,extensions/ReplicaSet,api/Secret,extensions/Ingress,api/Event"
"
$@
"
${
clientgen
}
--clientset-name
=
federation_internalclientset
--clientset-path
=
k8s.io/kubernetes/federation/client/clientset_generated
--input
=
"../../federation/apis/federation/"
,
"api/"
,
"extensions/"
--included-types-overrides
=
"api/Service,api/Namespace,extensions/ReplicaSet,api/Secret,extensions/Ingress,api/Event"
"
$@
"
${
clientgen
}
--clientset-name
=
federation_release_1_5
--clientset-path
=
k8s.io/kubernetes/federation/client/clientset_generated
--input
=
"../../federation/apis/federation/v1beta1"
,
"api/v1"
,
"extensions/v1beta1"
--included-types-overrides
=
"api/v1/Service,api/v1/Namespace,extensions/v1beta1/ReplicaSet,api/v1/Secret,extensions/v1beta1/Ingress,api/v1/Event"
"
$@
"
${
clientgen
}
--clientset-name
=
federation_release_1_5
--clientset-path
=
k8s.io/kubernetes/federation/client/clientset_generated
--input
=
"../../federation/apis/federation/v1beta1"
,
"api/v1"
,
"extensions/v1beta1"
--included-types-overrides
=
"api/v1/Service,api/v1/Namespace,extensions/v1beta1/ReplicaSet,api/v1/Secret,extensions/v1beta1/Ingress,api/v1/Event"
"
$@
"
...
...
pkg/client/clientset_generated/release_1_5/typed/authorization/v1beta1/authorization_client.go
View file @
1fcaf3aa
...
@@ -25,6 +25,8 @@ import (
...
@@ -25,6 +25,8 @@ import (
type
AuthorizationInterface
interface
{
type
AuthorizationInterface
interface
{
GetRESTClient
()
*
restclient
.
RESTClient
GetRESTClient
()
*
restclient
.
RESTClient
LocalSubjectAccessReviewsGetter
SelfSubjectAccessReviewsGetter
SubjectAccessReviewsGetter
SubjectAccessReviewsGetter
}
}
...
@@ -33,6 +35,14 @@ type AuthorizationClient struct {
...
@@ -33,6 +35,14 @@ type AuthorizationClient struct {
*
restclient
.
RESTClient
*
restclient
.
RESTClient
}
}
func
(
c
*
AuthorizationClient
)
LocalSubjectAccessReviews
(
namespace
string
)
LocalSubjectAccessReviewInterface
{
return
newLocalSubjectAccessReviews
(
c
,
namespace
)
}
func
(
c
*
AuthorizationClient
)
SelfSubjectAccessReviews
()
SelfSubjectAccessReviewInterface
{
return
newSelfSubjectAccessReviews
(
c
)
}
func
(
c
*
AuthorizationClient
)
SubjectAccessReviews
()
SubjectAccessReviewInterface
{
func
(
c
*
AuthorizationClient
)
SubjectAccessReviews
()
SubjectAccessReviewInterface
{
return
newSubjectAccessReviews
(
c
)
return
newSubjectAccessReviews
(
c
)
}
}
...
...
pkg/client/clientset_generated/release_1_5/typed/authorization/v1beta1/fake/fake_authorization_client.go
View file @
1fcaf3aa
...
@@ -26,6 +26,14 @@ type FakeAuthorization struct {
...
@@ -26,6 +26,14 @@ type FakeAuthorization struct {
*
core
.
Fake
*
core
.
Fake
}
}
func
(
c
*
FakeAuthorization
)
LocalSubjectAccessReviews
(
namespace
string
)
v1beta1
.
LocalSubjectAccessReviewInterface
{
return
&
FakeLocalSubjectAccessReviews
{
c
,
namespace
}
}
func
(
c
*
FakeAuthorization
)
SelfSubjectAccessReviews
()
v1beta1
.
SelfSubjectAccessReviewInterface
{
return
&
FakeSelfSubjectAccessReviews
{
c
}
}
func
(
c
*
FakeAuthorization
)
SubjectAccessReviews
()
v1beta1
.
SubjectAccessReviewInterface
{
func
(
c
*
FakeAuthorization
)
SubjectAccessReviews
()
v1beta1
.
SubjectAccessReviewInterface
{
return
&
FakeSubjectAccessReviews
{
c
}
return
&
FakeSubjectAccessReviews
{
c
}
}
}
...
...
pkg/client/clientset_generated/release_1_5/typed/authorization/v1beta1/fake/fake_localsubjectaccessreview.go
0 → 100644
View file @
1fcaf3aa
/*
Copyright 2016 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package
fake
// FakeLocalSubjectAccessReviews implements LocalSubjectAccessReviewInterface
type
FakeLocalSubjectAccessReviews
struct
{
Fake
*
FakeAuthorization
ns
string
}
pkg/client/clientset_generated/release_1_5/typed/authorization/v1beta1/fake/fake_selfsubjectaccessreview.go
0 → 100644
View file @
1fcaf3aa
/*
Copyright 2016 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package
fake
// FakeSelfSubjectAccessReviews implements SelfSubjectAccessReviewInterface
type
FakeSelfSubjectAccessReviews
struct
{
Fake
*
FakeAuthorization
}
pkg/client/clientset_generated/release_1_5/typed/authorization/v1beta1/generated_expansion.go
View file @
1fcaf3aa
...
@@ -15,3 +15,7 @@ limitations under the License.
...
@@ -15,3 +15,7 @@ limitations under the License.
*/
*/
package
v1beta1
package
v1beta1
type
LocalSubjectAccessReviewExpansion
interface
{}
type
SelfSubjectAccessReviewExpansion
interface
{}
pkg/client/clientset_generated/release_1_5/typed/authorization/v1beta1/localsubjectaccessreview.go
0 → 100644
View file @
1fcaf3aa
/*
Copyright 2016 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package
v1beta1
// LocalSubjectAccessReviewsGetter has a method to return a LocalSubjectAccessReviewInterface.
// A group's client should implement this interface.
type
LocalSubjectAccessReviewsGetter
interface
{
LocalSubjectAccessReviews
(
namespace
string
)
LocalSubjectAccessReviewInterface
}
// LocalSubjectAccessReviewInterface has methods to work with LocalSubjectAccessReview resources.
type
LocalSubjectAccessReviewInterface
interface
{
LocalSubjectAccessReviewExpansion
}
// localSubjectAccessReviews implements LocalSubjectAccessReviewInterface
type
localSubjectAccessReviews
struct
{
client
*
AuthorizationClient
ns
string
}
// newLocalSubjectAccessReviews returns a LocalSubjectAccessReviews
func
newLocalSubjectAccessReviews
(
c
*
AuthorizationClient
,
namespace
string
)
*
localSubjectAccessReviews
{
return
&
localSubjectAccessReviews
{
client
:
c
,
ns
:
namespace
,
}
}
pkg/client/clientset_generated/release_1_5/typed/authorization/v1beta1/selfsubjectaccessreview.go
0 → 100644
View file @
1fcaf3aa
/*
Copyright 2016 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package
v1beta1
// SelfSubjectAccessReviewsGetter has a method to return a SelfSubjectAccessReviewInterface.
// A group's client should implement this interface.
type
SelfSubjectAccessReviewsGetter
interface
{
SelfSubjectAccessReviews
()
SelfSubjectAccessReviewInterface
}
// SelfSubjectAccessReviewInterface has methods to work with SelfSubjectAccessReview resources.
type
SelfSubjectAccessReviewInterface
interface
{
SelfSubjectAccessReviewExpansion
}
// selfSubjectAccessReviews implements SelfSubjectAccessReviewInterface
type
selfSubjectAccessReviews
struct
{
client
*
AuthorizationClient
}
// newSelfSubjectAccessReviews returns a SelfSubjectAccessReviews
func
newSelfSubjectAccessReviews
(
c
*
AuthorizationClient
)
*
selfSubjectAccessReviews
{
return
&
selfSubjectAccessReviews
{
client
:
c
,
}
}
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