diff --git a/vendor.conf b/vendor.conf index 42747d84..f333c0c4 100644 --- a/vendor.conf +++ b/vendor.conf @@ -25,4 +25,4 @@ github.com/Microsoft/go-winio ab35fc04b6365e8fcb18e6e9e41ea4a02b10b17 github.com/go-ini/ini 06f5f3d67269ccec1fe5fe4134ba6e982984f7f5 github.com/rancher/norman 57e8282a33f04091e30df7700bd328f3205c1189 -github.com/rancher/types 15d6dfa2d0222ca90b39f825d7fce0799865b580 +github.com/rancher/types 83409a3bca6ffba833cbb8c4da5c9cabe3af64ae diff --git a/vendor/github.com/rancher/types/apis/management.cattle.io/v3/authn_types.go b/vendor/github.com/rancher/types/apis/management.cattle.io/v3/authn_types.go index 9862ae7d..b68e6dc0 100644 --- a/vendor/github.com/rancher/types/apis/management.cattle.io/v3/authn_types.go +++ b/vendor/github.com/rancher/types/apis/management.cattle.io/v3/authn_types.go @@ -1,9 +1,13 @@ package v3 import ( + "github.com/rancher/norman/condition" + v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) +const UserConditionInitialRolesPopulated condition.Cond = "InitialRolesPopulated" + type Token struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` @@ -26,15 +30,39 @@ type User struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - DisplayName string `json:"displayName,omitempty"` - Description string `json:"description"` - Username string `json:"username,omitempty"` - Password string `json:"password,omitempty" norman:"writeOnly,noupdate"` - MustChangePassword bool `json:"mustChangePassword,omitempty"` - PrincipalIDs []string `json:"principalIds,omitempty" norman:"type=array[reference[principal]]"` - Me bool `json:"me,omitempty"` + DisplayName string `json:"displayName,omitempty"` + Description string `json:"description"` + Username string `json:"username,omitempty"` + Password string `json:"password,omitempty" norman:"writeOnly,noupdate"` + MustChangePassword bool `json:"mustChangePassword,omitempty"` + PrincipalIDs []string `json:"principalIds,omitempty" norman:"type=array[reference[principal]]"` + Me bool `json:"me,omitempty"` + Enabled *bool `json:"enabled,omitempty" norman:"default=true"` + Spec UserSpec `json:"spec,omitempty"` + Status UserStatus `json:"status"` } +type UserStatus struct { + Conditions []UserCondition `json:"conditions"` +} + +type UserCondition struct { + // Type of user condition. + Type string `json:"type"` + // Status of the condition, one of True, False, Unknown. + Status v1.ConditionStatus `json:"status"` + // The last time this condition was updated. + LastUpdateTime string `json:"lastUpdateTime,omitempty"` + // Last time the condition transitioned from one status to another. + LastTransitionTime string `json:"lastTransitionTime,omitempty"` + // The reason for the condition's last transition. + Reason string `json:"reason,omitempty"` + // Human-readable message indicating details about last transition + Message string `json:"message,omitempty"` +} + +type UserSpec struct{} + // UserAttribute will have a CRD (and controller) generated for it, but will not be exposed in the API. type UserAttribute struct { metav1.TypeMeta `json:",inline"` @@ -241,3 +269,26 @@ type FreeIpaConfig struct { type FreeIpaTestAndApplyInput struct { LdapTestAndApplyInput `json:",inline" mapstructure:",squash"` } + +type SamlConfig struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + AuthConfig `json:",inline" mapstructure:",squash"` + + IDPMetadataContent string `json:"idpMetadataContent" norman:"required"` + SPSelfSignedCert string `json:"spCert" norman:"required"` + SPSelfSignedKey string `json:"spKey" norman:"required"` + GroupsField string `json:"groupsField" norman:"required"` + DisplayNameField string `json:"displayNameField" norman:"required"` + UserNameField string `json:"userNameField" norman:"required"` + UIDField string `json:"uidField" norman:"required"` + RancherAPIHost string `json:"rancherApiHost" norman:"required"` +} + +type PingConfig struct { + SamlConfig `json:",inline" mapstructure:",squash"` +} + +type SamlConfigTestInput struct { + FinalRedirectURL string `json:"finalRedirectUrl"` +} diff --git a/vendor/github.com/rancher/types/apis/management.cattle.io/v3/authz_types.go b/vendor/github.com/rancher/types/apis/management.cattle.io/v3/authz_types.go index fbcb29ad..04a23e7e 100644 --- a/vendor/github.com/rancher/types/apis/management.cattle.io/v3/authz_types.go +++ b/vendor/github.com/rancher/types/apis/management.cattle.io/v3/authz_types.go @@ -10,9 +10,10 @@ import ( ) var ( - NamespaceBackedResource condition.Cond = "BackingNamespaceCreated" - CreatorMadeOwner condition.Cond = "CreatorMadeOwner" - DefaultNetworkPolicyCreated condition.Cond = "DefaultNetworkPolicyCreated" + NamespaceBackedResource condition.Cond = "BackingNamespaceCreated" + CreatorMadeOwner condition.Cond = "CreatorMadeOwner" + DefaultNetworkPolicyCreated condition.Cond = "DefaultNetworkPolicyCreated" + ProjectConditionInitialRolesPopulated condition.Cond = "InitialRolesPopulated" ) type Project struct { @@ -46,19 +47,20 @@ type ProjectCondition struct { } type ProjectSpec struct { - DisplayName string `json:"displayName,omitempty" norman:"required"` - Description string `json:"description"` - ClusterName string `json:"clusterName,omitempty" norman:"required,type=reference[cluster]"` + DisplayName string `json:"displayName,omitempty" norman:"required"` + Description string `json:"description"` + ClusterName string `json:"clusterName,omitempty" norman:"required,type=reference[cluster]"` + ResourceQuota *ProjectResourceQuota `json:"resourceQuota,omitempty"` } type GlobalRole struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - DisplayName string `json:"displayName,omitempty" norman:"required"` - Description string `json:"description"` - Rules []rbacv1.PolicyRule `json:"rules,omitempty"` - Builtin bool `json:"builtin" norman:"nocreate,noupdate"` + DisplayName string `json:"displayName,omitempty" norman:"required,noupdate"` + Description string `json:"description" norman:"noupdate"` + Rules []rbacv1.PolicyRule `json:"rules,omitempty" norman:"noupdate"` + NewUserDefault bool `json:"newUserDefault,omitempty" norman:"required"` } type GlobalRoleBinding struct { @@ -73,15 +75,17 @@ type RoleTemplate struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - DisplayName string `json:"displayName,omitempty" norman:"required"` - Description string `json:"description"` - Rules []rbacv1.PolicyRule `json:"rules,omitempty"` - Builtin bool `json:"builtin" norman:"nocreate,noupdate"` - External bool `json:"external"` - Hidden bool `json:"hidden"` - Locked bool `json:"locked,omitempty" norman:"type=boolean"` - Context string `json:"context" norman:"type=string,options=project|cluster"` - RoleTemplateNames []string `json:"roleTemplateNames,omitempty" norman:"type=array[reference[roleTemplate]]"` + DisplayName string `json:"displayName,omitempty" norman:"required"` + Description string `json:"description"` + Rules []rbacv1.PolicyRule `json:"rules,omitempty"` + Builtin bool `json:"builtin" norman:"nocreate,noupdate"` + External bool `json:"external"` + Hidden bool `json:"hidden"` + Locked bool `json:"locked,omitempty" norman:"type=boolean"` + ClusterCreatorDefault bool `json:"clusterCreatorDefault,omitempty" norman:"required"` + ProjectCreatorDefault bool `json:"projectCreatorDefault,omitempty" norman:"required"` + Context string `json:"context" norman:"type=string,options=project|cluster"` + RoleTemplateNames []string `json:"roleTemplateNames,omitempty" norman:"type=array[reference[roleTemplate]]"` } type PodSecurityPolicyTemplate struct { diff --git a/vendor/github.com/rancher/types/apis/management.cattle.io/v3/k8s_defaults.go b/vendor/github.com/rancher/types/apis/management.cattle.io/v3/k8s_defaults.go index 45d22f69..f6a33ba3 100644 --- a/vendor/github.com/rancher/types/apis/management.cattle.io/v3/k8s_defaults.go +++ b/vendor/github.com/rancher/types/apis/management.cattle.io/v3/k8s_defaults.go @@ -35,6 +35,7 @@ var ( PodInfraContainer: m("gcr.io/google_containers/pause-amd64:3.0"), Ingress: m("rancher/nginx-ingress-controller:0.10.2-rancher3"), IngressBackend: m("k8s.gcr.io/defaultbackend:1.4"), + MetricsServer: m("gcr.io/google_containers/metrics-server-amd64:v0.2.1"), }, "v1.8.11-rancher1": { Etcd: m("quay.io/coreos/etcd:v3.0.17"), @@ -60,6 +61,7 @@ var ( PodInfraContainer: m("gcr.io/google_containers/pause-amd64:3.0"), Ingress: m("rancher/nginx-ingress-controller:0.10.2-rancher3"), IngressBackend: m("k8s.gcr.io/defaultbackend:1.4"), + MetricsServer: m("gcr.io/google_containers/metrics-server-amd64:v0.2.1"), }, "v1.8.11-rancher2-1": { Etcd: m("quay.io/coreos/etcd:v3.0.17"), @@ -85,6 +87,7 @@ var ( PodInfraContainer: m("gcr.io/google_containers/pause-amd64:3.0"), Ingress: m("rancher/nginx-ingress-controller:0.10.2-rancher3"), IngressBackend: m("k8s.gcr.io/defaultbackend:1.4"), + MetricsServer: m("gcr.io/google_containers/metrics-server-amd64:v0.2.1"), }, "v1.9.5-rancher1-1": { Etcd: m("quay.io/coreos/etcd:v3.1.12"), @@ -110,6 +113,7 @@ var ( PodInfraContainer: m("gcr.io/google_containers/pause-amd64:3.0"), Ingress: m("rancher/nginx-ingress-controller:0.10.2-rancher3"), IngressBackend: m("k8s.gcr.io/defaultbackend:1.4"), + MetricsServer: m("gcr.io/google_containers/metrics-server-amd64:v0.2.1"), }, "v1.9.7-rancher1": { Etcd: m("quay.io/coreos/etcd:v3.1.12"), @@ -135,6 +139,7 @@ var ( PodInfraContainer: m("gcr.io/google_containers/pause-amd64:3.0"), Ingress: m("rancher/nginx-ingress-controller:0.10.2-rancher3"), IngressBackend: m("k8s.gcr.io/defaultbackend:1.4"), + MetricsServer: m("gcr.io/google_containers/metrics-server-amd64:v0.2.1"), }, "v1.9.7-rancher2-1": { Etcd: m("quay.io/coreos/etcd:v3.1.12"), @@ -160,6 +165,7 @@ var ( PodInfraContainer: m("gcr.io/google_containers/pause-amd64:3.0"), Ingress: m("rancher/nginx-ingress-controller:0.10.2-rancher3"), IngressBackend: m("k8s.gcr.io/defaultbackend:1.4"), + MetricsServer: m("gcr.io/google_containers/metrics-server-amd64:v0.2.1"), }, "v1.10.0-rancher1-1": { Etcd: m("quay.io/coreos/etcd:v3.1.12"), @@ -185,6 +191,7 @@ var ( PodInfraContainer: m("gcr.io/google_containers/pause-amd64:3.1"), Ingress: m("rancher/nginx-ingress-controller:0.10.2-rancher3"), IngressBackend: m("k8s.gcr.io/defaultbackend:1.4"), + MetricsServer: m("gcr.io/google_containers/metrics-server-amd64:v0.2.1"), }, "v1.10.1-rancher1": { Etcd: m("quay.io/coreos/etcd:v3.1.12"), @@ -210,6 +217,7 @@ var ( PodInfraContainer: m("gcr.io/google_containers/pause-amd64:3.1"), Ingress: m("rancher/nginx-ingress-controller:0.10.2-rancher3"), IngressBackend: m("k8s.gcr.io/defaultbackend:1.4"), + MetricsServer: m("gcr.io/google_containers/metrics-server-amd64:v0.2.1"), }, "v1.10.1-rancher2-1": { Etcd: m("quay.io/coreos/etcd:v3.1.12"), @@ -235,6 +243,7 @@ var ( PodInfraContainer: m("gcr.io/google_containers/pause-amd64:3.1"), Ingress: m("rancher/nginx-ingress-controller:0.10.2-rancher3"), IngressBackend: m("k8s.gcr.io/defaultbackend:1.4"), + MetricsServer: m("gcr.io/google_containers/metrics-server-amd64:v0.2.1"), }, "v1.10.3-rancher2-1": { Etcd: m("quay.io/coreos/etcd:v3.1.12"), @@ -260,6 +269,7 @@ var ( PodInfraContainer: m("gcr.io/google_containers/pause-amd64:3.1"), Ingress: m("rancher/nginx-ingress-controller:0.10.2-rancher3"), IngressBackend: m("k8s.gcr.io/defaultbackend:1.4"), + MetricsServer: m("gcr.io/google_containers/metrics-server-amd64:v0.2.1"), }, "v1.10.5-rancher1-1": { Etcd: m("quay.io/coreos/etcd:v3.1.12"), @@ -285,6 +295,7 @@ var ( PodInfraContainer: m("gcr.io/google_containers/pause-amd64:3.1"), Ingress: m("rancher/nginx-ingress-controller:0.10.2-rancher3"), IngressBackend: m("k8s.gcr.io/defaultbackend:1.4"), + MetricsServer: m("gcr.io/google_containers/metrics-server-amd64:v0.2.1"), }, } @@ -293,12 +304,10 @@ var ( "v1.10": { KubeAPI: map[string]string{ "tls-cipher-suites": "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305", - "feature-gates": "MountPropagation=false", "endpoint-reconciler-type": "lease", }, Kubelet: map[string]string{ "tls-cipher-suites": "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305", - "feature-gates": "MountPropagation=false", }, }, "v1.9": { diff --git a/vendor/github.com/rancher/types/apis/management.cattle.io/v3/resource_quota_types.go b/vendor/github.com/rancher/types/apis/management.cattle.io/v3/resource_quota_types.go new file mode 100644 index 00000000..48a49c8e --- /dev/null +++ b/vendor/github.com/rancher/types/apis/management.cattle.io/v3/resource_quota_types.go @@ -0,0 +1,40 @@ +package v3 + +import ( + "github.com/rancher/norman/types" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +type ProjectResourceQuota struct { + Limit ProjectResourceLimit `json:"limit,omitempty"` + UsedLimit ProjectResourceLimit `json:"usedLimit,omitempty"` +} + +type ProjectResourceLimit struct { + Pods string `json:"pods,omitempty"` + Services string `json:"services,omitempty"` + ReplicationControllers string `json:"replicationControllers,omitempty"` + Secrets string `json:"secrets,omitempty"` + ConfigMaps string `json:"configMaps,omitempty"` + PersistentVolumeClaims string `json:"persistentVolumeClaims,omitempty"` + ServicesNodePorts string `json:"servicesNodePorts,omitempty"` + ServicesLoadBalancers string `json:"servicesLoadBalancers,omitempty"` + RequestsCPU string `json:"requestsCpu,omitempty"` + RequestsMemory string `json:"requestsMemory,omitempty"` + RequestsStorage string `json:"requestsStorage,omitempty"` + LimitsCPU string `json:"limitsCpu,omitempty"` + LimitsMemory string `json:"limitsMemory,omitempty"` +} + +type ResourceQuotaTemplate struct { + types.Namespaced + + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Description string `json:"description"` + IsDefault bool `json:"isDefault"` + ClusterName string `json:"clusterName,omitempty" norman:"required,type=reference[cluster]"` + + ProjectResourceQuota +} diff --git a/vendor/github.com/rancher/types/apis/management.cattle.io/v3/rke_types.go b/vendor/github.com/rancher/types/apis/management.cattle.io/v3/rke_types.go index 5d8a3651..08f7129f 100644 --- a/vendor/github.com/rancher/types/apis/management.cattle.io/v3/rke_types.go +++ b/vendor/github.com/rancher/types/apis/management.cattle.io/v3/rke_types.go @@ -39,6 +39,8 @@ type RancherKubernetesEngineConfig struct { AddonJobTimeout int `yaml:"addon_job_timeout" json:"addonJobTimeout,omitempty" norman:"default=30"` // Bastion/Jump Host configuration BastionHost BastionHost `yaml:"bastion_host" json:"bastionHost,omitempty"` + // Monitoring Config + Monitoring MonitoringConfig `yaml:"monitoring" json:"monitoring,omitempty"` } type BastionHost struct { @@ -114,6 +116,8 @@ type RKESystemImages struct { Ingress string `yaml:"ingress" json:"ingress,omitempty"` // Ingress Controller Backend image IngressBackend string `yaml:"ingress_backend" json:"ingressBackend,omitempty"` + // Metrics Server image + MetricsServer string `yaml:"metrics_server" json:"metricsServer,omitempty"` } type RKEConfigNode struct { @@ -552,3 +556,10 @@ type AzureCloudProvider struct { // AWSCloudProvider options type AWSCloudProvider struct { } + +type MonitoringConfig struct { + // Monitoring server provider + Provider string `yaml:"provider" json:"provider,omitempty"` + // Metrics server options + Options map[string]string `yaml:"options" json:"options,omitempty"` +} diff --git a/vendor/github.com/rancher/types/apis/management.cattle.io/v3/zz_generated_deepcopy.go b/vendor/github.com/rancher/types/apis/management.cattle.io/v3/zz_generated_deepcopy.go index 39a2b989..cf934840 100644 --- a/vendor/github.com/rancher/types/apis/management.cattle.io/v3/zz_generated_deepcopy.go +++ b/vendor/github.com/rancher/types/apis/management.cattle.io/v3/zz_generated_deepcopy.go @@ -2987,6 +2987,29 @@ func (in *MetadataOpenstackOpts) DeepCopy() *MetadataOpenstackOpts { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MonitoringConfig) DeepCopyInto(out *MonitoringConfig) { + *out = *in + if in.Options != nil { + in, out := &in.Options, &out.Options + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitoringConfig. +func (in *MonitoringConfig) DeepCopy() *MonitoringConfig { + if in == nil { + return nil + } + out := new(MonitoringConfig) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *NetworkConfig) DeepCopyInto(out *NetworkConfig) { *out = *in @@ -3903,6 +3926,31 @@ func (in *PagerdutyConfig) DeepCopy() *PagerdutyConfig { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PingConfig) DeepCopyInto(out *PingConfig) { + *out = *in + in.SamlConfig.DeepCopyInto(&out.SamlConfig) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PingConfig. +func (in *PingConfig) DeepCopy() *PingConfig { + if in == nil { + return nil + } + out := new(PingConfig) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *PingConfig) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Pipeline) DeepCopyInto(out *Pipeline) { *out = *in @@ -4599,7 +4647,7 @@ func (in *Project) DeepCopyInto(out *Project) { out.Namespaced = in.Namespaced out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec + in.Spec.DeepCopyInto(&out.Spec) in.Status.DeepCopyInto(&out.Status) return } @@ -4971,6 +5019,40 @@ func (in *ProjectNetworkPolicyStatus) DeepCopy() *ProjectNetworkPolicyStatus { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ProjectResourceLimit) DeepCopyInto(out *ProjectResourceLimit) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectResourceLimit. +func (in *ProjectResourceLimit) DeepCopy() *ProjectResourceLimit { + if in == nil { + return nil + } + out := new(ProjectResourceLimit) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ProjectResourceQuota) DeepCopyInto(out *ProjectResourceQuota) { + *out = *in + out.Limit = in.Limit + out.UsedLimit = in.UsedLimit + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectResourceQuota. +func (in *ProjectResourceQuota) DeepCopy() *ProjectResourceQuota { + if in == nil { + return nil + } + out := new(ProjectResourceQuota) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ProjectRoleTemplateBinding) DeepCopyInto(out *ProjectRoleTemplateBinding) { *out = *in @@ -5034,6 +5116,15 @@ func (in *ProjectRoleTemplateBindingList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ProjectSpec) DeepCopyInto(out *ProjectSpec) { *out = *in + if in.ResourceQuota != nil { + in, out := &in.ResourceQuota, &out.ResourceQuota + if *in == nil { + *out = nil + } else { + *out = new(ProjectResourceQuota) + **out = **in + } + } return } @@ -5297,6 +5388,7 @@ func (in *RancherKubernetesEngineConfig) DeepCopyInto(out *RancherKubernetesEngi in.Ingress.DeepCopyInto(&out.Ingress) in.CloudProvider.DeepCopyInto(&out.CloudProvider) out.BastionHost = in.BastionHost + in.Monitoring.DeepCopyInto(&out.Monitoring) return } @@ -5342,6 +5434,67 @@ func (in *RepoPerm) DeepCopy() *RepoPerm { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ResourceQuotaTemplate) DeepCopyInto(out *ResourceQuotaTemplate) { + *out = *in + out.Namespaced = in.Namespaced + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + out.ProjectResourceQuota = in.ProjectResourceQuota + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceQuotaTemplate. +func (in *ResourceQuotaTemplate) DeepCopy() *ResourceQuotaTemplate { + if in == nil { + return nil + } + out := new(ResourceQuotaTemplate) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ResourceQuotaTemplate) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ResourceQuotaTemplateList) DeepCopyInto(out *ResourceQuotaTemplateList) { + *out = *in + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ResourceQuotaTemplate, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceQuotaTemplateList. +func (in *ResourceQuotaTemplateList) DeepCopy() *ResourceQuotaTemplateList { + if in == nil { + return nil + } + out := new(ResourceQuotaTemplateList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ResourceQuotaTemplateList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *RoleTemplate) DeepCopyInto(out *RoleTemplate) { *out = *in @@ -5482,6 +5635,49 @@ func (in *SMTPConfig) DeepCopy() *SMTPConfig { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SamlConfig) DeepCopyInto(out *SamlConfig) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.AuthConfig.DeepCopyInto(&out.AuthConfig) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SamlConfig. +func (in *SamlConfig) DeepCopy() *SamlConfig { + if in == nil { + return nil + } + out := new(SamlConfig) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SamlConfig) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SamlConfigTestInput) DeepCopyInto(out *SamlConfigTestInput) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SamlConfigTestInput. +func (in *SamlConfigTestInput) DeepCopy() *SamlConfigTestInput { + if in == nil { + return nil + } + out := new(SamlConfigTestInput) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *SchedulerService) DeepCopyInto(out *SchedulerService) { *out = *in @@ -6439,6 +6635,17 @@ func (in *User) DeepCopyInto(out *User) { *out = make([]string, len(*in)) copy(*out, *in) } + if in.Enabled != nil { + in, out := &in.Enabled, &out.Enabled + if *in == nil { + *out = nil + } else { + *out = new(bool) + **out = **in + } + } + out.Spec = in.Spec + in.Status.DeepCopyInto(&out.Status) return } @@ -6526,6 +6733,22 @@ func (in *UserAttributeList) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UserCondition) DeepCopyInto(out *UserCondition) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserCondition. +func (in *UserCondition) DeepCopy() *UserCondition { + if in == nil { + return nil + } + out := new(UserCondition) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *UserList) DeepCopyInto(out *UserList) { *out = *in @@ -6559,6 +6782,43 @@ func (in *UserList) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UserSpec) DeepCopyInto(out *UserSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserSpec. +func (in *UserSpec) DeepCopy() *UserSpec { + if in == nil { + return nil + } + out := new(UserSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UserStatus) DeepCopyInto(out *UserStatus) { + *out = *in + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]UserCondition, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserStatus. +func (in *UserStatus) DeepCopy() *UserStatus { + if in == nil { + return nil + } + out := new(UserStatus) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Values) DeepCopyInto(out *Values) { *out = *in diff --git a/vendor/github.com/rancher/types/apis/management.cattle.io/v3/zz_generated_k8s_client.go b/vendor/github.com/rancher/types/apis/management.cattle.io/v3/zz_generated_k8s_client.go index 4c40d353..5fb61fb5 100644 --- a/vendor/github.com/rancher/types/apis/management.cattle.io/v3/zz_generated_k8s_client.go +++ b/vendor/github.com/rancher/types/apis/management.cattle.io/v3/zz_generated_k8s_client.go @@ -59,6 +59,7 @@ type Interface interface { PipelineExecutionLogsGetter SourceCodeRepositoriesGetter ComposeConfigsGetter + ResourceQuotaTemplatesGetter } type Client struct { @@ -110,6 +111,7 @@ type Client struct { pipelineExecutionLogControllers map[string]PipelineExecutionLogController sourceCodeRepositoryControllers map[string]SourceCodeRepositoryController composeConfigControllers map[string]ComposeConfigController + resourceQuotaTemplateControllers map[string]ResourceQuotaTemplateController } func NewForConfig(config rest.Config) (Interface, error) { @@ -170,6 +172,7 @@ func NewForConfig(config rest.Config) (Interface, error) { pipelineExecutionLogControllers: map[string]PipelineExecutionLogController{}, sourceCodeRepositoryControllers: map[string]SourceCodeRepositoryController{}, composeConfigControllers: map[string]ComposeConfigController{}, + resourceQuotaTemplateControllers: map[string]ResourceQuotaTemplateController{}, }, nil } @@ -756,3 +759,16 @@ func (c *Client) ComposeConfigs(namespace string) ComposeConfigInterface { objectClient: objectClient, } } + +type ResourceQuotaTemplatesGetter interface { + ResourceQuotaTemplates(namespace string) ResourceQuotaTemplateInterface +} + +func (c *Client) ResourceQuotaTemplates(namespace string) ResourceQuotaTemplateInterface { + objectClient := objectclient.NewObjectClient(namespace, c.restClient, &ResourceQuotaTemplateResource, ResourceQuotaTemplateGroupVersionKind, resourceQuotaTemplateFactory{}) + return &resourceQuotaTemplateClient{ + ns: namespace, + client: c, + objectClient: objectClient, + } +} diff --git a/vendor/github.com/rancher/types/apis/management.cattle.io/v3/zz_generated_resource_quota_template_controller.go b/vendor/github.com/rancher/types/apis/management.cattle.io/v3/zz_generated_resource_quota_template_controller.go new file mode 100644 index 00000000..ada29981 --- /dev/null +++ b/vendor/github.com/rancher/types/apis/management.cattle.io/v3/zz_generated_resource_quota_template_controller.go @@ -0,0 +1,252 @@ +package v3 + +import ( + "context" + + "github.com/rancher/norman/controller" + "github.com/rancher/norman/objectclient" + "k8s.io/apimachinery/pkg/api/errors" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/labels" + "k8s.io/apimachinery/pkg/runtime" + "k8s.io/apimachinery/pkg/runtime/schema" + "k8s.io/apimachinery/pkg/watch" + "k8s.io/client-go/tools/cache" +) + +var ( + ResourceQuotaTemplateGroupVersionKind = schema.GroupVersionKind{ + Version: Version, + Group: GroupName, + Kind: "ResourceQuotaTemplate", + } + ResourceQuotaTemplateResource = metav1.APIResource{ + Name: "resourcequotatemplates", + SingularName: "resourcequotatemplate", + Namespaced: true, + + Kind: ResourceQuotaTemplateGroupVersionKind.Kind, + } +) + +type ResourceQuotaTemplateList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []ResourceQuotaTemplate +} + +type ResourceQuotaTemplateHandlerFunc func(key string, obj *ResourceQuotaTemplate) error + +type ResourceQuotaTemplateLister interface { + List(namespace string, selector labels.Selector) (ret []*ResourceQuotaTemplate, err error) + Get(namespace, name string) (*ResourceQuotaTemplate, error) +} + +type ResourceQuotaTemplateController interface { + Informer() cache.SharedIndexInformer + Lister() ResourceQuotaTemplateLister + AddHandler(name string, handler ResourceQuotaTemplateHandlerFunc) + AddClusterScopedHandler(name, clusterName string, handler ResourceQuotaTemplateHandlerFunc) + Enqueue(namespace, name string) + Sync(ctx context.Context) error + Start(ctx context.Context, threadiness int) error +} + +type ResourceQuotaTemplateInterface interface { + ObjectClient() *objectclient.ObjectClient + Create(*ResourceQuotaTemplate) (*ResourceQuotaTemplate, error) + GetNamespaced(namespace, name string, opts metav1.GetOptions) (*ResourceQuotaTemplate, error) + Get(name string, opts metav1.GetOptions) (*ResourceQuotaTemplate, error) + Update(*ResourceQuotaTemplate) (*ResourceQuotaTemplate, error) + Delete(name string, options *metav1.DeleteOptions) error + DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error + List(opts metav1.ListOptions) (*ResourceQuotaTemplateList, error) + Watch(opts metav1.ListOptions) (watch.Interface, error) + DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error + Controller() ResourceQuotaTemplateController + AddHandler(name string, sync ResourceQuotaTemplateHandlerFunc) + AddLifecycle(name string, lifecycle ResourceQuotaTemplateLifecycle) + AddClusterScopedHandler(name, clusterName string, sync ResourceQuotaTemplateHandlerFunc) + AddClusterScopedLifecycle(name, clusterName string, lifecycle ResourceQuotaTemplateLifecycle) +} + +type resourceQuotaTemplateLister struct { + controller *resourceQuotaTemplateController +} + +func (l *resourceQuotaTemplateLister) List(namespace string, selector labels.Selector) (ret []*ResourceQuotaTemplate, err error) { + err = cache.ListAllByNamespace(l.controller.Informer().GetIndexer(), namespace, selector, func(obj interface{}) { + ret = append(ret, obj.(*ResourceQuotaTemplate)) + }) + return +} + +func (l *resourceQuotaTemplateLister) Get(namespace, name string) (*ResourceQuotaTemplate, error) { + var key string + if namespace != "" { + key = namespace + "/" + name + } else { + key = name + } + obj, exists, err := l.controller.Informer().GetIndexer().GetByKey(key) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(schema.GroupResource{ + Group: ResourceQuotaTemplateGroupVersionKind.Group, + Resource: "resourceQuotaTemplate", + }, key) + } + return obj.(*ResourceQuotaTemplate), nil +} + +type resourceQuotaTemplateController struct { + controller.GenericController +} + +func (c *resourceQuotaTemplateController) Lister() ResourceQuotaTemplateLister { + return &resourceQuotaTemplateLister{ + controller: c, + } +} + +func (c *resourceQuotaTemplateController) AddHandler(name string, handler ResourceQuotaTemplateHandlerFunc) { + c.GenericController.AddHandler(name, func(key string) error { + obj, exists, err := c.Informer().GetStore().GetByKey(key) + if err != nil { + return err + } + if !exists { + return handler(key, nil) + } + return handler(key, obj.(*ResourceQuotaTemplate)) + }) +} + +func (c *resourceQuotaTemplateController) AddClusterScopedHandler(name, cluster string, handler ResourceQuotaTemplateHandlerFunc) { + c.GenericController.AddHandler(name, func(key string) error { + obj, exists, err := c.Informer().GetStore().GetByKey(key) + if err != nil { + return err + } + if !exists { + return handler(key, nil) + } + + if !controller.ObjectInCluster(cluster, obj) { + return nil + } + + return handler(key, obj.(*ResourceQuotaTemplate)) + }) +} + +type resourceQuotaTemplateFactory struct { +} + +func (c resourceQuotaTemplateFactory) Object() runtime.Object { + return &ResourceQuotaTemplate{} +} + +func (c resourceQuotaTemplateFactory) List() runtime.Object { + return &ResourceQuotaTemplateList{} +} + +func (s *resourceQuotaTemplateClient) Controller() ResourceQuotaTemplateController { + s.client.Lock() + defer s.client.Unlock() + + c, ok := s.client.resourceQuotaTemplateControllers[s.ns] + if ok { + return c + } + + genericController := controller.NewGenericController(ResourceQuotaTemplateGroupVersionKind.Kind+"Controller", + s.objectClient) + + c = &resourceQuotaTemplateController{ + GenericController: genericController, + } + + s.client.resourceQuotaTemplateControllers[s.ns] = c + s.client.starters = append(s.client.starters, c) + + return c +} + +type resourceQuotaTemplateClient struct { + client *Client + ns string + objectClient *objectclient.ObjectClient + controller ResourceQuotaTemplateController +} + +func (s *resourceQuotaTemplateClient) ObjectClient() *objectclient.ObjectClient { + return s.objectClient +} + +func (s *resourceQuotaTemplateClient) Create(o *ResourceQuotaTemplate) (*ResourceQuotaTemplate, error) { + obj, err := s.objectClient.Create(o) + return obj.(*ResourceQuotaTemplate), err +} + +func (s *resourceQuotaTemplateClient) Get(name string, opts metav1.GetOptions) (*ResourceQuotaTemplate, error) { + obj, err := s.objectClient.Get(name, opts) + return obj.(*ResourceQuotaTemplate), err +} + +func (s *resourceQuotaTemplateClient) GetNamespaced(namespace, name string, opts metav1.GetOptions) (*ResourceQuotaTemplate, error) { + obj, err := s.objectClient.GetNamespaced(namespace, name, opts) + return obj.(*ResourceQuotaTemplate), err +} + +func (s *resourceQuotaTemplateClient) Update(o *ResourceQuotaTemplate) (*ResourceQuotaTemplate, error) { + obj, err := s.objectClient.Update(o.Name, o) + return obj.(*ResourceQuotaTemplate), err +} + +func (s *resourceQuotaTemplateClient) Delete(name string, options *metav1.DeleteOptions) error { + return s.objectClient.Delete(name, options) +} + +func (s *resourceQuotaTemplateClient) DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error { + return s.objectClient.DeleteNamespaced(namespace, name, options) +} + +func (s *resourceQuotaTemplateClient) List(opts metav1.ListOptions) (*ResourceQuotaTemplateList, error) { + obj, err := s.objectClient.List(opts) + return obj.(*ResourceQuotaTemplateList), err +} + +func (s *resourceQuotaTemplateClient) Watch(opts metav1.ListOptions) (watch.Interface, error) { + return s.objectClient.Watch(opts) +} + +// Patch applies the patch and returns the patched deployment. +func (s *resourceQuotaTemplateClient) Patch(o *ResourceQuotaTemplate, data []byte, subresources ...string) (*ResourceQuotaTemplate, error) { + obj, err := s.objectClient.Patch(o.Name, o, data, subresources...) + return obj.(*ResourceQuotaTemplate), err +} + +func (s *resourceQuotaTemplateClient) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error { + return s.objectClient.DeleteCollection(deleteOpts, listOpts) +} + +func (s *resourceQuotaTemplateClient) AddHandler(name string, sync ResourceQuotaTemplateHandlerFunc) { + s.Controller().AddHandler(name, sync) +} + +func (s *resourceQuotaTemplateClient) AddLifecycle(name string, lifecycle ResourceQuotaTemplateLifecycle) { + sync := NewResourceQuotaTemplateLifecycleAdapter(name, false, s, lifecycle) + s.AddHandler(name, sync) +} + +func (s *resourceQuotaTemplateClient) AddClusterScopedHandler(name, clusterName string, sync ResourceQuotaTemplateHandlerFunc) { + s.Controller().AddClusterScopedHandler(name, clusterName, sync) +} + +func (s *resourceQuotaTemplateClient) AddClusterScopedLifecycle(name, clusterName string, lifecycle ResourceQuotaTemplateLifecycle) { + sync := NewResourceQuotaTemplateLifecycleAdapter(name+"_"+clusterName, true, s, lifecycle) + s.AddClusterScopedHandler(name, clusterName, sync) +} diff --git a/vendor/github.com/rancher/types/apis/management.cattle.io/v3/zz_generated_resource_quota_template_lifecycle_adapter.go b/vendor/github.com/rancher/types/apis/management.cattle.io/v3/zz_generated_resource_quota_template_lifecycle_adapter.go new file mode 100644 index 00000000..bbca481c --- /dev/null +++ b/vendor/github.com/rancher/types/apis/management.cattle.io/v3/zz_generated_resource_quota_template_lifecycle_adapter.go @@ -0,0 +1,51 @@ +package v3 + +import ( + "github.com/rancher/norman/lifecycle" + "k8s.io/apimachinery/pkg/runtime" +) + +type ResourceQuotaTemplateLifecycle interface { + Create(obj *ResourceQuotaTemplate) (*ResourceQuotaTemplate, error) + Remove(obj *ResourceQuotaTemplate) (*ResourceQuotaTemplate, error) + Updated(obj *ResourceQuotaTemplate) (*ResourceQuotaTemplate, error) +} + +type resourceQuotaTemplateLifecycleAdapter struct { + lifecycle ResourceQuotaTemplateLifecycle +} + +func (w *resourceQuotaTemplateLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) { + o, err := w.lifecycle.Create(obj.(*ResourceQuotaTemplate)) + if o == nil { + return nil, err + } + return o, err +} + +func (w *resourceQuotaTemplateLifecycleAdapter) Finalize(obj runtime.Object) (runtime.Object, error) { + o, err := w.lifecycle.Remove(obj.(*ResourceQuotaTemplate)) + if o == nil { + return nil, err + } + return o, err +} + +func (w *resourceQuotaTemplateLifecycleAdapter) Updated(obj runtime.Object) (runtime.Object, error) { + o, err := w.lifecycle.Updated(obj.(*ResourceQuotaTemplate)) + if o == nil { + return nil, err + } + return o, err +} + +func NewResourceQuotaTemplateLifecycleAdapter(name string, clusterScoped bool, client ResourceQuotaTemplateInterface, l ResourceQuotaTemplateLifecycle) ResourceQuotaTemplateHandlerFunc { + adapter := &resourceQuotaTemplateLifecycleAdapter{lifecycle: l} + syncFn := lifecycle.NewObjectLifecycleAdapter(name, clusterScoped, adapter, client.ObjectClient()) + return func(key string, obj *ResourceQuotaTemplate) error { + if obj == nil { + return syncFn(key, nil) + } + return syncFn(key, obj) + } +} diff --git a/vendor/github.com/rancher/types/apis/management.cattle.io/v3/zz_generated_scheme.go b/vendor/github.com/rancher/types/apis/management.cattle.io/v3/zz_generated_scheme.go index c5e13f14..b2af81cc 100644 --- a/vendor/github.com/rancher/types/apis/management.cattle.io/v3/zz_generated_scheme.go +++ b/vendor/github.com/rancher/types/apis/management.cattle.io/v3/zz_generated_scheme.go @@ -120,6 +120,8 @@ func addKnownTypes(scheme *runtime.Scheme) error { &SourceCodeRepositoryList{}, &ComposeConfig{}, &ComposeConfigList{}, + &ResourceQuotaTemplate{}, + &ResourceQuotaTemplateList{}, ) return nil } diff --git a/vendor/k8s.io/api/admissionregistration/v1beta1/BUILD b/vendor/k8s.io/api/admissionregistration/v1beta1/BUILD new file mode 100644 index 00000000..dbcfadd2 --- /dev/null +++ b/vendor/k8s.io/api/admissionregistration/v1beta1/BUILD @@ -0,0 +1,44 @@ +package(default_visibility = ["//visibility:public"]) + +load( + "@io_bazel_rules_go//go:def.bzl", + "go_library", +) + +go_library( + name = "go_default_library", + srcs = [ + "doc.go", + "generated.pb.go", + "register.go", + "types.go", + "types_swagger_doc_generated.go", + "zz_generated.deepcopy.go", + ], + importpath = "k8s.io/api/admissionregistration/v1beta1", + deps = [ + "//vendor/github.com/gogo/protobuf/proto:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", + ], +) + +filegroup( + name = "package-srcs", + srcs = glob(["**"]), + tags = ["automanaged"], + visibility = ["//visibility:private"], +) + +filegroup( + name = "all-srcs", + srcs = [":package-srcs"], + tags = ["automanaged"], +) + +filegroup( + name = "go_default_library_protos", + srcs = ["generated.proto"], + visibility = ["//visibility:public"], +) diff --git a/vendor/k8s.io/api/apps/v1/BUILD b/vendor/k8s.io/api/apps/v1/BUILD new file mode 100644 index 00000000..7902387f --- /dev/null +++ b/vendor/k8s.io/api/apps/v1/BUILD @@ -0,0 +1,43 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "doc.go", + "generated.pb.go", + "register.go", + "types.go", + "types_swagger_doc_generated.go", + "zz_generated.deepcopy.go", + ], + importpath = "k8s.io/api/apps/v1", + visibility = ["//visibility:public"], + deps = [ + "//vendor/github.com/gogo/protobuf/proto:go_default_library", + "//vendor/k8s.io/api/core/v1:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1: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/apimachinery/pkg/util/intstr:go_default_library", + ], +) + +filegroup( + name = "go_default_library_protos", + srcs = ["generated.proto"], + visibility = ["//visibility:public"], +) + +filegroup( + name = "package-srcs", + srcs = glob(["**"]), + tags = ["automanaged"], + visibility = ["//visibility:private"], +) + +filegroup( + name = "all-srcs", + srcs = [":package-srcs"], + tags = ["automanaged"], + visibility = ["//visibility:public"], +) diff --git a/vendor/k8s.io/api/events/v1beta1/BUILD b/vendor/k8s.io/api/events/v1beta1/BUILD new file mode 100644 index 00000000..851874e7 --- /dev/null +++ b/vendor/k8s.io/api/events/v1beta1/BUILD @@ -0,0 +1,42 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +filegroup( + name = "go_default_library_protos", + srcs = ["generated.proto"], + visibility = ["//visibility:public"], +) + +go_library( + name = "go_default_library", + srcs = [ + "doc.go", + "generated.pb.go", + "register.go", + "types.go", + "types_swagger_doc_generated.go", + "zz_generated.deepcopy.go", + ], + importpath = "k8s.io/api/events/v1beta1", + visibility = ["//visibility:public"], + deps = [ + "//vendor/github.com/gogo/protobuf/proto:go_default_library", + "//vendor/k8s.io/api/core/v1:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", + ], +) + +filegroup( + name = "package-srcs", + srcs = glob(["**"]), + tags = ["automanaged"], + visibility = ["//visibility:private"], +) + +filegroup( + name = "all-srcs", + srcs = [":package-srcs"], + tags = ["automanaged"], + visibility = ["//visibility:public"], +) diff --git a/vendor/k8s.io/api/storage/v1alpha1/BUILD b/vendor/k8s.io/api/storage/v1alpha1/BUILD new file mode 100644 index 00000000..98342a42 --- /dev/null +++ b/vendor/k8s.io/api/storage/v1alpha1/BUILD @@ -0,0 +1,42 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +filegroup( + name = "go_default_library_protos", + srcs = ["generated.proto"], + visibility = ["//visibility:public"], +) + +go_library( + name = "go_default_library", + srcs = [ + "doc.go", + "generated.pb.go", + "register.go", + "types.go", + "types_swagger_doc_generated.go", + "zz_generated.deepcopy.go", + ], + importpath = "k8s.io/api/storage/v1alpha1", + visibility = ["//visibility:public"], + deps = [ + "//vendor/github.com/gogo/protobuf/proto:go_default_library", + "//vendor/github.com/gogo/protobuf/sortkeys:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", + ], +) + +filegroup( + name = "package-srcs", + srcs = glob(["**"]), + tags = ["automanaged"], + visibility = ["//visibility:private"], +) + +filegroup( + name = "all-srcs", + srcs = [":package-srcs"], + tags = ["automanaged"], + visibility = ["//visibility:public"], +) diff --git a/vendor/k8s.io/apimachinery/pkg/apis/meta/v1beta1/BUILD b/vendor/k8s.io/apimachinery/pkg/apis/meta/v1beta1/BUILD new file mode 100644 index 00000000..05f33c5b --- /dev/null +++ b/vendor/k8s.io/apimachinery/pkg/apis/meta/v1beta1/BUILD @@ -0,0 +1,45 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +filegroup( + name = "go_default_library_protos", + srcs = ["generated.proto"], + visibility = ["//visibility:public"], +) + +go_library( + name = "go_default_library", + srcs = [ + "conversion.go", + "deepcopy.go", + "doc.go", + "generated.pb.go", + "register.go", + "types.go", + "types_swagger_doc_generated.go", + "zz_generated.deepcopy.go", + "zz_generated.defaults.go", + ], + importpath = "k8s.io/apimachinery/pkg/apis/meta/v1beta1", + visibility = ["//visibility:public"], + deps = [ + "//vendor/github.com/gogo/protobuf/proto:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_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", + ], +) + +filegroup( + name = "package-srcs", + srcs = glob(["**"]), + tags = ["automanaged"], + visibility = ["//visibility:private"], +) + +filegroup( + name = "all-srcs", + srcs = [":package-srcs"], + tags = ["automanaged"], + visibility = ["//visibility:public"], +) diff --git a/vendor/k8s.io/apimachinery/pkg/util/rand/BUILD b/vendor/k8s.io/apimachinery/pkg/util/rand/BUILD new file mode 100644 index 00000000..27126ab5 --- /dev/null +++ b/vendor/k8s.io/apimachinery/pkg/util/rand/BUILD @@ -0,0 +1,32 @@ +package(default_visibility = ["//visibility:public"]) + +load( + "@io_bazel_rules_go//go:def.bzl", + "go_library", + "go_test", +) + +go_test( + name = "go_default_test", + srcs = ["rand_test.go"], + embed = [":go_default_library"], +) + +go_library( + name = "go_default_library", + srcs = ["rand.go"], + importpath = "k8s.io/apimachinery/pkg/util/rand", +) + +filegroup( + name = "package-srcs", + srcs = glob(["**"]), + tags = ["automanaged"], + visibility = ["//visibility:private"], +) + +filegroup( + name = "all-srcs", + srcs = [":package-srcs"], + tags = ["automanaged"], +) diff --git a/vendor/k8s.io/client-go/kubernetes/typed/admissionregistration/v1beta1/BUILD b/vendor/k8s.io/client-go/kubernetes/typed/admissionregistration/v1beta1/BUILD new file mode 100644 index 00000000..197f738e --- /dev/null +++ b/vendor/k8s.io/client-go/kubernetes/typed/admissionregistration/v1beta1/BUILD @@ -0,0 +1,40 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "admissionregistration_client.go", + "doc.go", + "generated_expansion.go", + "mutatingwebhookconfiguration.go", + "validatingwebhookconfiguration.go", + ], + importpath = "k8s.io/client-go/kubernetes/typed/admissionregistration/v1beta1", + visibility = ["//visibility:public"], + deps = [ + "//vendor/k8s.io/api/admissionregistration/v1beta1:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/runtime/serializer:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/types:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/watch:go_default_library", + "//vendor/k8s.io/client-go/kubernetes/scheme:go_default_library", + "//vendor/k8s.io/client-go/rest:go_default_library", + ], +) + +filegroup( + name = "package-srcs", + srcs = glob(["**"]), + tags = ["automanaged"], + visibility = ["//visibility:private"], +) + +filegroup( + name = "all-srcs", + srcs = [ + ":package-srcs", + "//staging/src/k8s.io/client-go/kubernetes/typed/admissionregistration/v1beta1/fake:all-srcs", + ], + tags = ["automanaged"], + visibility = ["//visibility:public"], +) diff --git a/vendor/k8s.io/client-go/kubernetes/typed/apps/v1/BUILD b/vendor/k8s.io/client-go/kubernetes/typed/apps/v1/BUILD new file mode 100644 index 00000000..5d77a94d --- /dev/null +++ b/vendor/k8s.io/client-go/kubernetes/typed/apps/v1/BUILD @@ -0,0 +1,43 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "apps_client.go", + "controllerrevision.go", + "daemonset.go", + "deployment.go", + "doc.go", + "generated_expansion.go", + "replicaset.go", + "statefulset.go", + ], + importpath = "k8s.io/client-go/kubernetes/typed/apps/v1", + visibility = ["//visibility:public"], + deps = [ + "//vendor/k8s.io/api/apps/v1:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/runtime/serializer:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/types:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/watch:go_default_library", + "//vendor/k8s.io/client-go/kubernetes/scheme:go_default_library", + "//vendor/k8s.io/client-go/rest:go_default_library", + ], +) + +filegroup( + name = "package-srcs", + srcs = glob(["**"]), + tags = ["automanaged"], + visibility = ["//visibility:private"], +) + +filegroup( + name = "all-srcs", + srcs = [ + ":package-srcs", + "//staging/src/k8s.io/client-go/kubernetes/typed/apps/v1/fake:all-srcs", + ], + tags = ["automanaged"], + visibility = ["//visibility:public"], +) diff --git a/vendor/k8s.io/client-go/kubernetes/typed/events/v1beta1/BUILD b/vendor/k8s.io/client-go/kubernetes/typed/events/v1beta1/BUILD new file mode 100644 index 00000000..307884cc --- /dev/null +++ b/vendor/k8s.io/client-go/kubernetes/typed/events/v1beta1/BUILD @@ -0,0 +1,39 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "doc.go", + "event.go", + "events_client.go", + "generated_expansion.go", + ], + importpath = "k8s.io/client-go/kubernetes/typed/events/v1beta1", + visibility = ["//visibility:public"], + deps = [ + "//vendor/k8s.io/api/events/v1beta1:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/runtime/serializer:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/types:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/watch:go_default_library", + "//vendor/k8s.io/client-go/kubernetes/scheme:go_default_library", + "//vendor/k8s.io/client-go/rest:go_default_library", + ], +) + +filegroup( + name = "package-srcs", + srcs = glob(["**"]), + tags = ["automanaged"], + visibility = ["//visibility:private"], +) + +filegroup( + name = "all-srcs", + srcs = [ + ":package-srcs", + "//staging/src/k8s.io/client-go/kubernetes/typed/events/v1beta1/fake:all-srcs", + ], + tags = ["automanaged"], + visibility = ["//visibility:public"], +) diff --git a/vendor/k8s.io/client-go/kubernetes/typed/storage/v1alpha1/BUILD b/vendor/k8s.io/client-go/kubernetes/typed/storage/v1alpha1/BUILD new file mode 100644 index 00000000..15542196 --- /dev/null +++ b/vendor/k8s.io/client-go/kubernetes/typed/storage/v1alpha1/BUILD @@ -0,0 +1,39 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "doc.go", + "generated_expansion.go", + "storage_client.go", + "volumeattachment.go", + ], + importpath = "k8s.io/client-go/kubernetes/typed/storage/v1alpha1", + visibility = ["//visibility:public"], + deps = [ + "//vendor/k8s.io/api/storage/v1alpha1:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/runtime/serializer:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/types:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/watch:go_default_library", + "//vendor/k8s.io/client-go/kubernetes/scheme:go_default_library", + "//vendor/k8s.io/client-go/rest:go_default_library", + ], +) + +filegroup( + name = "package-srcs", + srcs = glob(["**"]), + tags = ["automanaged"], + visibility = ["//visibility:private"], +) + +filegroup( + name = "all-srcs", + srcs = [ + ":package-srcs", + "//staging/src/k8s.io/client-go/kubernetes/typed/storage/v1alpha1/fake:all-srcs", + ], + tags = ["automanaged"], + visibility = ["//visibility:public"], +) diff --git a/vendor/k8s.io/client-go/pkg/apis/clientauthentication/BUILD b/vendor/k8s.io/client-go/pkg/apis/clientauthentication/BUILD new file mode 100644 index 00000000..64cdd678 --- /dev/null +++ b/vendor/k8s.io/client-go/pkg/apis/clientauthentication/BUILD @@ -0,0 +1,36 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "doc.go", + "register.go", + "types.go", + "zz_generated.deepcopy.go", + ], + importpath = "k8s.io/client-go/pkg/apis/clientauthentication", + visibility = ["//visibility:public"], + deps = [ + "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", + ], +) + +filegroup( + name = "package-srcs", + srcs = glob(["**"]), + tags = ["automanaged"], + visibility = ["//visibility:private"], +) + +filegroup( + name = "all-srcs", + srcs = [ + ":package-srcs", + "//staging/src/k8s.io/client-go/pkg/apis/clientauthentication/install:all-srcs", + "//staging/src/k8s.io/client-go/pkg/apis/clientauthentication/v1alpha1:all-srcs", + ], + tags = ["automanaged"], + visibility = ["//visibility:public"], +) diff --git a/vendor/k8s.io/client-go/pkg/apis/clientauthentication/v1alpha1/BUILD b/vendor/k8s.io/client-go/pkg/apis/clientauthentication/v1alpha1/BUILD new file mode 100644 index 00000000..1a3bc15f --- /dev/null +++ b/vendor/k8s.io/client-go/pkg/apis/clientauthentication/v1alpha1/BUILD @@ -0,0 +1,39 @@ +package(default_visibility = ["//visibility:public"]) + +load( + "@io_bazel_rules_go//go:def.bzl", + "go_library", +) + +go_library( + name = "go_default_library", + srcs = [ + "doc.go", + "register.go", + "types.go", + "zz_generated.conversion.go", + "zz_generated.deepcopy.go", + "zz_generated.defaults.go", + ], + importpath = "k8s.io/client-go/pkg/apis/clientauthentication/v1alpha1", + deps = [ + "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_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/client-go/pkg/apis/clientauthentication:go_default_library", + ], +) + +filegroup( + name = "package-srcs", + srcs = glob(["**"]), + tags = ["automanaged"], + visibility = ["//visibility:private"], +) + +filegroup( + name = "all-srcs", + srcs = [":package-srcs"], + tags = ["automanaged"], +) diff --git a/vendor/k8s.io/client-go/plugin/pkg/client/auth/BUILD b/vendor/k8s.io/client-go/plugin/pkg/client/auth/BUILD new file mode 100644 index 00000000..367e897f --- /dev/null +++ b/vendor/k8s.io/client-go/plugin/pkg/client/auth/BUILD @@ -0,0 +1,38 @@ +package(default_visibility = ["//visibility:public"]) + +load( + "@io_bazel_rules_go//go:def.bzl", + "go_library", +) + +go_library( + name = "go_default_library", + srcs = ["plugins.go"], + importpath = "k8s.io/client-go/plugin/pkg/client/auth", + deps = [ + "//vendor/k8s.io/client-go/plugin/pkg/client/auth/azure:go_default_library", + "//vendor/k8s.io/client-go/plugin/pkg/client/auth/gcp:go_default_library", + "//vendor/k8s.io/client-go/plugin/pkg/client/auth/oidc:go_default_library", + "//vendor/k8s.io/client-go/plugin/pkg/client/auth/openstack:go_default_library", + ], +) + +filegroup( + name = "package-srcs", + srcs = glob(["**"]), + tags = ["automanaged"], + visibility = ["//visibility:private"], +) + +filegroup( + name = "all-srcs", + srcs = [ + ":package-srcs", + "//staging/src/k8s.io/client-go/plugin/pkg/client/auth/azure:all-srcs", + "//staging/src/k8s.io/client-go/plugin/pkg/client/auth/exec:all-srcs", + "//staging/src/k8s.io/client-go/plugin/pkg/client/auth/gcp:all-srcs", + "//staging/src/k8s.io/client-go/plugin/pkg/client/auth/oidc:all-srcs", + "//staging/src/k8s.io/client-go/plugin/pkg/client/auth/openstack:all-srcs", + ], + tags = ["automanaged"], +) diff --git a/vendor/k8s.io/client-go/plugin/pkg/client/auth/exec/BUILD b/vendor/k8s.io/client-go/plugin/pkg/client/auth/exec/BUILD new file mode 100644 index 00000000..38cf9bdc --- /dev/null +++ b/vendor/k8s.io/client-go/plugin/pkg/client/auth/exec/BUILD @@ -0,0 +1,44 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") + +go_library( + name = "go_default_library", + srcs = ["exec.go"], + importpath = "k8s.io/client-go/plugin/pkg/client/auth/exec", + visibility = ["//visibility:public"], + deps = [ + "//vendor/github.com/golang/glog:go_default_library", + "//vendor/golang.org/x/crypto/ssh/terminal:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1: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/apimachinery/pkg/runtime/serializer:go_default_library", + "//vendor/k8s.io/client-go/pkg/apis/clientauthentication:go_default_library", + "//vendor/k8s.io/client-go/pkg/apis/clientauthentication/v1alpha1:go_default_library", + "//vendor/k8s.io/client-go/tools/clientcmd/api:go_default_library", + ], +) + +go_test( + name = "go_default_test", + srcs = ["exec_test.go"], + data = glob(["testdata/**"]), + embed = [":go_default_library"], + deps = [ + "//vendor/k8s.io/client-go/pkg/apis/clientauthentication:go_default_library", + "//vendor/k8s.io/client-go/tools/clientcmd/api:go_default_library", + ], +) + +filegroup( + name = "package-srcs", + srcs = glob(["**"]), + tags = ["automanaged"], + visibility = ["//visibility:private"], +) + +filegroup( + name = "all-srcs", + srcs = [":package-srcs"], + tags = ["automanaged"], + visibility = ["//visibility:public"], +) diff --git a/vendor/k8s.io/client-go/util/buffer/BUILD b/vendor/k8s.io/client-go/util/buffer/BUILD new file mode 100644 index 00000000..d3b2652c --- /dev/null +++ b/vendor/k8s.io/client-go/util/buffer/BUILD @@ -0,0 +1,29 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") + +go_library( + name = "go_default_library", + srcs = ["ring_growing.go"], + importpath = "k8s.io/client-go/util/buffer", + visibility = ["//visibility:public"], +) + +go_test( + name = "go_default_test", + srcs = ["ring_growing_test.go"], + embed = [":go_default_library"], + deps = ["//vendor/github.com/stretchr/testify/assert:go_default_library"], +) + +filegroup( + name = "package-srcs", + srcs = glob(["**"]), + tags = ["automanaged"], + visibility = ["//visibility:private"], +) + +filegroup( + name = "all-srcs", + srcs = [":package-srcs"], + tags = ["automanaged"], + visibility = ["//visibility:public"], +) diff --git a/vendor/k8s.io/client-go/util/retry/BUILD b/vendor/k8s.io/client-go/util/retry/BUILD new file mode 100644 index 00000000..d7458131 --- /dev/null +++ b/vendor/k8s.io/client-go/util/retry/BUILD @@ -0,0 +1,41 @@ +package(default_visibility = ["//visibility:public"]) + +load( + "@io_bazel_rules_go//go:def.bzl", + "go_library", + "go_test", +) + +go_library( + name = "go_default_library", + srcs = ["util.go"], + importpath = "k8s.io/client-go/util/retry", + deps = [ + "//vendor/k8s.io/apimachinery/pkg/api/errors:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/util/wait:go_default_library", + ], +) + +go_test( + name = "go_default_test", + srcs = ["util_test.go"], + embed = [":go_default_library"], + deps = [ + "//vendor/k8s.io/apimachinery/pkg/api/errors:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/util/wait:go_default_library", + ], +) + +filegroup( + name = "package-srcs", + srcs = glob(["**"]), + tags = ["automanaged"], + visibility = ["//visibility:private"], +) + +filegroup( + name = "all-srcs", + srcs = [":package-srcs"], + tags = ["automanaged"], +)