mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
Merge pull request #32720 from mikedanese/run-update-all
fully verify client-gen in verification tests
This commit is contained in:
commit
1fcaf3aafc
@ -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" "$@"
|
||||||
|
@ -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 {
|
|||||||
*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)
|
||||||
}
|
}
|
||||||
|
@ -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}
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,23 @@
|
|||||||
|
/*
|
||||||
|
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
|
||||||
|
}
|
@ -0,0 +1,22 @@
|
|||||||
|
/*
|
||||||
|
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
|
||||||
|
}
|
@ -15,3 +15,7 @@ limitations under the License.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
package v1beta1
|
package v1beta1
|
||||||
|
|
||||||
|
type LocalSubjectAccessReviewExpansion interface{}
|
||||||
|
|
||||||
|
type SelfSubjectAccessReviewExpansion interface{}
|
||||||
|
@ -0,0 +1,42 @@
|
|||||||
|
/*
|
||||||
|
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,
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,40 @@
|
|||||||
|
/*
|
||||||
|
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,
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user