commit
bbd7321a7a
26 changed files with 43 additions and 110 deletions
|
@ -1,4 +1,4 @@
|
||||||
k8s.io/kubernetes v1.7.6 https://github.com/kubernetes/kubernetes
|
k8s.io/kubernetes v1.7.8 https://github.com/kubernetes/kubernetes
|
||||||
k8s.io/client-go release-4.0 https://github.com/kubernetes/client-go
|
k8s.io/client-go release-4.0 https://github.com/kubernetes/client-go
|
||||||
k8s.io/apimachinery release-1.7 https://github.com/kubernetes/apimachinery
|
k8s.io/apimachinery release-1.7 https://github.com/kubernetes/apimachinery
|
||||||
k8s.io/apiserver release-1.7 https://github.com/kubernetes/apiserver
|
k8s.io/apiserver release-1.7 https://github.com/kubernetes/apiserver
|
||||||
|
|
97
vendor/github.com/containers/storage/pkg/archive/example_changes.go
generated
vendored
97
vendor/github.com/containers/storage/pkg/archive/example_changes.go
generated
vendored
|
@ -1,97 +0,0 @@
|
||||||
// +build ignore
|
|
||||||
|
|
||||||
// Simple tool to create an archive stream from an old and new directory
|
|
||||||
//
|
|
||||||
// By default it will stream the comparison of two temporary directories with junk files
|
|
||||||
package main
|
|
||||||
|
|
||||||
import (
|
|
||||||
"flag"
|
|
||||||
"fmt"
|
|
||||||
"io"
|
|
||||||
"io/ioutil"
|
|
||||||
"os"
|
|
||||||
"path"
|
|
||||||
|
|
||||||
"github.com/containers/storage/pkg/archive"
|
|
||||||
"github.com/sirupsen/logrus"
|
|
||||||
)
|
|
||||||
|
|
||||||
var (
|
|
||||||
flDebug = flag.Bool("D", false, "debugging output")
|
|
||||||
flNewDir = flag.String("newdir", "", "")
|
|
||||||
flOldDir = flag.String("olddir", "", "")
|
|
||||||
log = logrus.New()
|
|
||||||
)
|
|
||||||
|
|
||||||
func main() {
|
|
||||||
flag.Usage = func() {
|
|
||||||
fmt.Println("Produce a tar from comparing two directory paths. By default a demo tar is created of around 200 files (including hardlinks)")
|
|
||||||
fmt.Printf("%s [OPTIONS]\n", os.Args[0])
|
|
||||||
flag.PrintDefaults()
|
|
||||||
}
|
|
||||||
flag.Parse()
|
|
||||||
log.Out = os.Stderr
|
|
||||||
if (len(os.Getenv("DEBUG")) > 0) || *flDebug {
|
|
||||||
logrus.SetLevel(logrus.DebugLevel)
|
|
||||||
}
|
|
||||||
var newDir, oldDir string
|
|
||||||
|
|
||||||
if len(*flNewDir) == 0 {
|
|
||||||
var err error
|
|
||||||
newDir, err = ioutil.TempDir("", "storage-test-newDir")
|
|
||||||
if err != nil {
|
|
||||||
log.Fatal(err)
|
|
||||||
}
|
|
||||||
defer os.RemoveAll(newDir)
|
|
||||||
if _, err := prepareUntarSourceDirectory(100, newDir, true); err != nil {
|
|
||||||
log.Fatal(err)
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
newDir = *flNewDir
|
|
||||||
}
|
|
||||||
|
|
||||||
if len(*flOldDir) == 0 {
|
|
||||||
oldDir, err := ioutil.TempDir("", "storage-test-oldDir")
|
|
||||||
if err != nil {
|
|
||||||
log.Fatal(err)
|
|
||||||
}
|
|
||||||
defer os.RemoveAll(oldDir)
|
|
||||||
} else {
|
|
||||||
oldDir = *flOldDir
|
|
||||||
}
|
|
||||||
|
|
||||||
changes, err := archive.ChangesDirs(newDir, oldDir)
|
|
||||||
if err != nil {
|
|
||||||
log.Fatal(err)
|
|
||||||
}
|
|
||||||
|
|
||||||
a, err := archive.ExportChanges(newDir, changes)
|
|
||||||
if err != nil {
|
|
||||||
log.Fatal(err)
|
|
||||||
}
|
|
||||||
defer a.Close()
|
|
||||||
|
|
||||||
i, err := io.Copy(os.Stdout, a)
|
|
||||||
if err != nil && err != io.EOF {
|
|
||||||
log.Fatal(err)
|
|
||||||
}
|
|
||||||
fmt.Fprintf(os.Stderr, "wrote archive of %d bytes", i)
|
|
||||||
}
|
|
||||||
|
|
||||||
func prepareUntarSourceDirectory(numberOfFiles int, targetPath string, makeLinks bool) (int, error) {
|
|
||||||
fileData := []byte("fooo")
|
|
||||||
for n := 0; n < numberOfFiles; n++ {
|
|
||||||
fileName := fmt.Sprintf("file-%d", n)
|
|
||||||
if err := ioutil.WriteFile(path.Join(targetPath, fileName), fileData, 0700); err != nil {
|
|
||||||
return 0, err
|
|
||||||
}
|
|
||||||
if makeLinks {
|
|
||||||
if err := os.Link(path.Join(targetPath, fileName), path.Join(targetPath, fileName+"-link")); err != nil {
|
|
||||||
return 0, err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
totalSize := numberOfFiles * len(fileData)
|
|
||||||
return totalSize, nil
|
|
||||||
}
|
|
4
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto
generated
vendored
4
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto
generated
vendored
|
@ -346,7 +346,7 @@ message ListOptions {
|
||||||
}
|
}
|
||||||
|
|
||||||
// MicroTime is version of Time with microsecond level precision.
|
// MicroTime is version of Time with microsecond level precision.
|
||||||
//
|
//
|
||||||
// +protobuf.options.marshal=false
|
// +protobuf.options.marshal=false
|
||||||
// +protobuf.as=Timestamp
|
// +protobuf.as=Timestamp
|
||||||
// +protobuf.options.(gogoproto.goproto_stringer)=false
|
// +protobuf.options.(gogoproto.goproto_stringer)=false
|
||||||
|
@ -504,7 +504,7 @@ message ObjectMeta {
|
||||||
// this object has been completely initialized. Otherwise, the object is considered uninitialized
|
// this object has been completely initialized. Otherwise, the object is considered uninitialized
|
||||||
// and is hidden (in list/watch and get calls) from clients that haven't explicitly asked to
|
// and is hidden (in list/watch and get calls) from clients that haven't explicitly asked to
|
||||||
// observe uninitialized objects.
|
// observe uninitialized objects.
|
||||||
//
|
//
|
||||||
// When an object is created, the system will populate this list with the current set of initializers.
|
// When an object is created, the system will populate this list with the current set of initializers.
|
||||||
// Only privileged users may set or modify this list. Once it is empty, it may not be modified further
|
// Only privileged users may set or modify this list. Once it is empty, it may not be modified further
|
||||||
// by any user.
|
// by any user.
|
||||||
|
|
1
vendor/k8s.io/apimachinery/pkg/apis/meta/v1alpha1/generated.proto
generated
vendored
1
vendor/k8s.io/apimachinery/pkg/apis/meta/v1alpha1/generated.proto
generated
vendored
|
@ -52,3 +52,4 @@ message TableOptions {
|
||||||
// in version v1alpha1 of the meta.k8s.io API group.
|
// in version v1alpha1 of the meta.k8s.io API group.
|
||||||
optional string includeObject = 1;
|
optional string includeObject = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
6
vendor/k8s.io/client-go/pkg/api/v1/generated.proto
generated
vendored
6
vendor/k8s.io/client-go/pkg/api/v1/generated.proto
generated
vendored
|
@ -314,7 +314,7 @@ message ConfigMapList {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Adapts a ConfigMap into a projected volume.
|
// Adapts a ConfigMap into a projected volume.
|
||||||
//
|
//
|
||||||
// The contents of the target ConfigMap's Data field will be presented in a
|
// The contents of the target ConfigMap's Data field will be presented in a
|
||||||
// projected volume as files using the keys in the Data field as the file names,
|
// projected volume as files using the keys in the Data field as the file names,
|
||||||
// unless the items element is populated with specific mappings of keys to paths.
|
// unless the items element is populated with specific mappings of keys to paths.
|
||||||
|
@ -1936,7 +1936,7 @@ message ObjectMeta {
|
||||||
// this object has been completely initialized. Otherwise, the object is considered uninitialized
|
// this object has been completely initialized. Otherwise, the object is considered uninitialized
|
||||||
// and is hidden (in list/watch and get calls) from clients that haven't explicitly asked to
|
// and is hidden (in list/watch and get calls) from clients that haven't explicitly asked to
|
||||||
// observe uninitialized objects.
|
// observe uninitialized objects.
|
||||||
//
|
//
|
||||||
// When an object is created, the system will populate this list with the current set of initializers.
|
// When an object is created, the system will populate this list with the current set of initializers.
|
||||||
// Only privileged users may set or modify this list. Once it is empty, it may not be modified further
|
// Only privileged users may set or modify this list. Once it is empty, it may not be modified further
|
||||||
// by any user.
|
// by any user.
|
||||||
|
@ -3424,7 +3424,7 @@ message SecretList {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Adapts a secret into a projected volume.
|
// Adapts a secret into a projected volume.
|
||||||
//
|
//
|
||||||
// The contents of the target Secret's Data field will be presented in a
|
// The contents of the target Secret's Data field will be presented in a
|
||||||
// projected volume as files using the keys in the Data field as the file names.
|
// projected volume as files using the keys in the Data field as the file names.
|
||||||
// Note that this is identical to a secret volume source without the default
|
// Note that this is identical to a secret volume source without the default
|
||||||
|
|
7
vendor/k8s.io/client-go/pkg/apis/admissionregistration/v1alpha1/generated.proto
generated
vendored
7
vendor/k8s.io/client-go/pkg/apis/admissionregistration/v1alpha1/generated.proto
generated
vendored
|
@ -159,7 +159,7 @@ message Rule {
|
||||||
repeated string apiVersions = 2;
|
repeated string apiVersions = 2;
|
||||||
|
|
||||||
// Resources is a list of resources this rule applies to.
|
// Resources is a list of resources this rule applies to.
|
||||||
//
|
//
|
||||||
// For example:
|
// For example:
|
||||||
// 'pods' means pods.
|
// 'pods' means pods.
|
||||||
// 'pods/log' means the log subresource of pods.
|
// 'pods/log' means the log subresource of pods.
|
||||||
|
@ -167,10 +167,10 @@ message Rule {
|
||||||
// 'pods/*' means all subresources of pods.
|
// 'pods/*' means all subresources of pods.
|
||||||
// '*/scale' means all scale subresources.
|
// '*/scale' means all scale subresources.
|
||||||
// '*/*' means all resources and their subresources.
|
// '*/*' means all resources and their subresources.
|
||||||
//
|
//
|
||||||
// If wildcard is present, the validation rule will ensure resources do not
|
// If wildcard is present, the validation rule will ensure resources do not
|
||||||
// overlap with each other.
|
// overlap with each other.
|
||||||
//
|
//
|
||||||
// Depending on the enclosing object, subresources might not be allowed.
|
// Depending on the enclosing object, subresources might not be allowed.
|
||||||
// Required.
|
// Required.
|
||||||
repeated string resources = 3;
|
repeated string resources = 3;
|
||||||
|
@ -200,3 +200,4 @@ message ServiceReference {
|
||||||
// Required
|
// Required
|
||||||
optional string name = 2;
|
optional string name = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
1
vendor/k8s.io/client-go/pkg/apis/apps/v1beta1/generated.proto
generated
vendored
1
vendor/k8s.io/client-go/pkg/apis/apps/v1beta1/generated.proto
generated
vendored
|
@ -438,3 +438,4 @@ message StatefulSetUpdateStrategy {
|
||||||
// RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType.
|
// RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType.
|
||||||
optional RollingUpdateStatefulSetStrategy rollingUpdate = 2;
|
optional RollingUpdateStatefulSetStrategy rollingUpdate = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
1
vendor/k8s.io/client-go/pkg/apis/authentication/v1/generated.proto
generated
vendored
1
vendor/k8s.io/client-go/pkg/apis/authentication/v1/generated.proto
generated
vendored
|
@ -96,3 +96,4 @@ message UserInfo {
|
||||||
// +optional
|
// +optional
|
||||||
map<string, ExtraValue> extra = 4;
|
map<string, ExtraValue> extra = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
1
vendor/k8s.io/client-go/pkg/apis/authentication/v1beta1/generated.proto
generated
vendored
1
vendor/k8s.io/client-go/pkg/apis/authentication/v1beta1/generated.proto
generated
vendored
|
@ -96,3 +96,4 @@ message UserInfo {
|
||||||
// +optional
|
// +optional
|
||||||
map<string, ExtraValue> extra = 4;
|
map<string, ExtraValue> extra = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
1
vendor/k8s.io/client-go/pkg/apis/authorization/v1/generated.proto
generated
vendored
1
vendor/k8s.io/client-go/pkg/apis/authorization/v1/generated.proto
generated
vendored
|
@ -180,3 +180,4 @@ message SubjectAccessReviewStatus {
|
||||||
// +optional
|
// +optional
|
||||||
optional string evaluationError = 3;
|
optional string evaluationError = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
1
vendor/k8s.io/client-go/pkg/apis/authorization/v1beta1/generated.proto
generated
vendored
1
vendor/k8s.io/client-go/pkg/apis/authorization/v1beta1/generated.proto
generated
vendored
|
@ -180,3 +180,4 @@ message SubjectAccessReviewStatus {
|
||||||
// +optional
|
// +optional
|
||||||
optional string evaluationError = 3;
|
optional string evaluationError = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
1
vendor/k8s.io/client-go/pkg/apis/autoscaling/v1/generated.proto
generated
vendored
1
vendor/k8s.io/client-go/pkg/apis/autoscaling/v1/generated.proto
generated
vendored
|
@ -318,3 +318,4 @@ message ScaleStatus {
|
||||||
// +optional
|
// +optional
|
||||||
optional string selector = 2;
|
optional string selector = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
1
vendor/k8s.io/client-go/pkg/apis/autoscaling/v2alpha1/generated.proto
generated
vendored
1
vendor/k8s.io/client-go/pkg/apis/autoscaling/v2alpha1/generated.proto
generated
vendored
|
@ -299,3 +299,4 @@ message ResourceMetricStatus {
|
||||||
// It will always be set, regardless of the corresponding metric specification.
|
// It will always be set, regardless of the corresponding metric specification.
|
||||||
optional k8s.io.apimachinery.pkg.api.resource.Quantity currentAverageValue = 3;
|
optional k8s.io.apimachinery.pkg.api.resource.Quantity currentAverageValue = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
1
vendor/k8s.io/client-go/pkg/apis/batch/v1/generated.proto
generated
vendored
1
vendor/k8s.io/client-go/pkg/apis/batch/v1/generated.proto
generated
vendored
|
@ -165,3 +165,4 @@ message JobStatus {
|
||||||
// +optional
|
// +optional
|
||||||
optional int32 failed = 6;
|
optional int32 failed = 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
1
vendor/k8s.io/client-go/pkg/apis/batch/v2alpha1/generated.proto
generated
vendored
1
vendor/k8s.io/client-go/pkg/apis/batch/v2alpha1/generated.proto
generated
vendored
|
@ -130,3 +130,4 @@ message JobTemplateSpec {
|
||||||
// +optional
|
// +optional
|
||||||
optional k8s.io.client_go.pkg.apis.batch.v1.JobSpec spec = 2;
|
optional k8s.io.client_go.pkg.apis.batch.v1.JobSpec spec = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
1
vendor/k8s.io/client-go/pkg/apis/certificates/v1beta1/generated.proto
generated
vendored
1
vendor/k8s.io/client-go/pkg/apis/certificates/v1beta1/generated.proto
generated
vendored
|
@ -119,3 +119,4 @@ message ExtraValue {
|
||||||
|
|
||||||
repeated string items = 1;
|
repeated string items = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
1
vendor/k8s.io/client-go/pkg/apis/extensions/v1beta1/generated.proto
generated
vendored
1
vendor/k8s.io/client-go/pkg/apis/extensions/v1beta1/generated.proto
generated
vendored
|
@ -1019,3 +1019,4 @@ message ThirdPartyResourceList {
|
||||||
// Items is the list of ThirdPartyResources.
|
// Items is the list of ThirdPartyResources.
|
||||||
repeated ThirdPartyResource items = 2;
|
repeated ThirdPartyResource items = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
1
vendor/k8s.io/client-go/pkg/apis/networking/v1/generated.proto
generated
vendored
1
vendor/k8s.io/client-go/pkg/apis/networking/v1/generated.proto
generated
vendored
|
@ -124,3 +124,4 @@ message NetworkPolicySpec {
|
||||||
// +optional
|
// +optional
|
||||||
repeated NetworkPolicyIngressRule ingress = 2;
|
repeated NetworkPolicyIngressRule ingress = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
1
vendor/k8s.io/client-go/pkg/apis/policy/v1beta1/generated.proto
generated
vendored
1
vendor/k8s.io/client-go/pkg/apis/policy/v1beta1/generated.proto
generated
vendored
|
@ -111,3 +111,4 @@ message PodDisruptionBudgetStatus {
|
||||||
// total number of pods counted by this disruption budget
|
// total number of pods counted by this disruption budget
|
||||||
optional int32 expectedPods = 6;
|
optional int32 expectedPods = 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
1
vendor/k8s.io/client-go/pkg/apis/rbac/v1alpha1/generated.proto
generated
vendored
1
vendor/k8s.io/client-go/pkg/apis/rbac/v1alpha1/generated.proto
generated
vendored
|
@ -197,3 +197,4 @@ message Subject {
|
||||||
// +optional
|
// +optional
|
||||||
optional string namespace = 4;
|
optional string namespace = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
1
vendor/k8s.io/client-go/pkg/apis/rbac/v1beta1/generated.proto
generated
vendored
1
vendor/k8s.io/client-go/pkg/apis/rbac/v1beta1/generated.proto
generated
vendored
|
@ -195,3 +195,4 @@ message Subject {
|
||||||
// +optional
|
// +optional
|
||||||
optional string namespace = 4;
|
optional string namespace = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
1
vendor/k8s.io/client-go/pkg/apis/settings/v1alpha1/generated.proto
generated
vendored
1
vendor/k8s.io/client-go/pkg/apis/settings/v1alpha1/generated.proto
generated
vendored
|
@ -72,3 +72,4 @@ message PodPresetSpec {
|
||||||
// +optional
|
// +optional
|
||||||
repeated k8s.io.client_go.pkg.api.v1.VolumeMount volumeMounts = 5;
|
repeated k8s.io.client_go.pkg.api.v1.VolumeMount volumeMounts = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
3
vendor/k8s.io/client-go/pkg/apis/storage/v1/generated.proto
generated
vendored
3
vendor/k8s.io/client-go/pkg/apis/storage/v1/generated.proto
generated
vendored
|
@ -31,7 +31,7 @@ option go_package = "v1";
|
||||||
|
|
||||||
// StorageClass describes the parameters for a class of storage for
|
// StorageClass describes the parameters for a class of storage for
|
||||||
// which PersistentVolumes can be dynamically provisioned.
|
// which PersistentVolumes can be dynamically provisioned.
|
||||||
//
|
//
|
||||||
// StorageClasses are non-namespaced; the name of the storage class
|
// StorageClasses are non-namespaced; the name of the storage class
|
||||||
// according to etcd is in ObjectMeta.Name.
|
// according to etcd is in ObjectMeta.Name.
|
||||||
message StorageClass {
|
message StorageClass {
|
||||||
|
@ -59,3 +59,4 @@ message StorageClassList {
|
||||||
// Items is the list of StorageClasses
|
// Items is the list of StorageClasses
|
||||||
repeated StorageClass items = 2;
|
repeated StorageClass items = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
3
vendor/k8s.io/client-go/pkg/apis/storage/v1beta1/generated.proto
generated
vendored
3
vendor/k8s.io/client-go/pkg/apis/storage/v1beta1/generated.proto
generated
vendored
|
@ -31,7 +31,7 @@ option go_package = "v1beta1";
|
||||||
|
|
||||||
// StorageClass describes the parameters for a class of storage for
|
// StorageClass describes the parameters for a class of storage for
|
||||||
// which PersistentVolumes can be dynamically provisioned.
|
// which PersistentVolumes can be dynamically provisioned.
|
||||||
//
|
//
|
||||||
// StorageClasses are non-namespaced; the name of the storage class
|
// StorageClasses are non-namespaced; the name of the storage class
|
||||||
// according to etcd is in ObjectMeta.Name.
|
// according to etcd is in ObjectMeta.Name.
|
||||||
message StorageClass {
|
message StorageClass {
|
||||||
|
@ -59,3 +59,4 @@ message StorageClassList {
|
||||||
// Items is the list of StorageClasses
|
// Items is the list of StorageClasses
|
||||||
repeated StorageClass items = 2;
|
repeated StorageClass items = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
10
vendor/k8s.io/kubernetes/pkg/api/validation/validation.go
generated
vendored
10
vendor/k8s.io/kubernetes/pkg/api/validation/validation.go
generated
vendored
|
@ -2706,6 +2706,16 @@ func ValidatePodUpdate(newPod, oldPod *api.Pod) field.ErrorList {
|
||||||
|
|
||||||
// handle updateable fields by munging those fields prior to deep equal comparison.
|
// handle updateable fields by munging those fields prior to deep equal comparison.
|
||||||
mungedPod := *newPod
|
mungedPod := *newPod
|
||||||
|
|
||||||
|
// allow hostname and subdomain to be updated if they are empty. This allows for migration between the beta
|
||||||
|
// annotations and the GA field when upgrading between Kubernetes 1.6.x and 1.7.x.
|
||||||
|
if oldPod.Spec.Hostname == "" {
|
||||||
|
mungedPod.Spec.Hostname = oldPod.Spec.Hostname
|
||||||
|
}
|
||||||
|
if oldPod.Spec.Subdomain == "" {
|
||||||
|
mungedPod.Spec.Subdomain = oldPod.Spec.Subdomain
|
||||||
|
}
|
||||||
|
|
||||||
// munge spec.containers[*].image
|
// munge spec.containers[*].image
|
||||||
var newContainers []api.Container
|
var newContainers []api.Container
|
||||||
for ix, container := range mungedPod.Spec.Containers {
|
for ix, container := range mungedPod.Spec.Containers {
|
||||||
|
|
4
vendor/k8s.io/kubernetes/pkg/apis/rbac/helpers.go
generated
vendored
4
vendor/k8s.io/kubernetes/pkg/apis/rbac/helpers.go
generated
vendored
|
@ -349,7 +349,7 @@ func NewRoleBindingForClusterRole(roleName, namespace string) *RoleBindingBuilde
|
||||||
// Groups adds the specified groups as the subjects of the RoleBinding.
|
// Groups adds the specified groups as the subjects of the RoleBinding.
|
||||||
func (r *RoleBindingBuilder) Groups(groups ...string) *RoleBindingBuilder {
|
func (r *RoleBindingBuilder) Groups(groups ...string) *RoleBindingBuilder {
|
||||||
for _, group := range groups {
|
for _, group := range groups {
|
||||||
r.RoleBinding.Subjects = append(r.RoleBinding.Subjects, Subject{Kind: GroupKind, Name: group})
|
r.RoleBinding.Subjects = append(r.RoleBinding.Subjects, Subject{Kind: GroupKind, APIGroup: GroupName, Name: group})
|
||||||
}
|
}
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
@ -357,7 +357,7 @@ func (r *RoleBindingBuilder) Groups(groups ...string) *RoleBindingBuilder {
|
||||||
// Users adds the specified users as the subjects of the RoleBinding.
|
// Users adds the specified users as the subjects of the RoleBinding.
|
||||||
func (r *RoleBindingBuilder) Users(users ...string) *RoleBindingBuilder {
|
func (r *RoleBindingBuilder) Users(users ...string) *RoleBindingBuilder {
|
||||||
for _, user := range users {
|
for _, user := range users {
|
||||||
r.RoleBinding.Subjects = append(r.RoleBinding.Subjects, Subject{Kind: UserKind, Name: user})
|
r.RoleBinding.Subjects = append(r.RoleBinding.Subjects, Subject{Kind: UserKind, APIGroup: GroupName, Name: user})
|
||||||
}
|
}
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue