Autogenerated code
This commit is contained in:
@@ -59,7 +59,7 @@ func (c *FakeInitializerConfigurations) List(opts v1.ListOptions) (result *admis
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &admissionregistration.InitializerConfigurationList{}
|
||||
list := &admissionregistration.InitializerConfigurationList{ListMeta: obj.(*admissionregistration.InitializerConfigurationList).ListMeta}
|
||||
for _, item := range obj.(*admissionregistration.InitializerConfigurationList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
@@ -59,7 +59,7 @@ func (c *FakeMutatingWebhookConfigurations) List(opts v1.ListOptions) (result *a
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &admissionregistration.MutatingWebhookConfigurationList{}
|
||||
list := &admissionregistration.MutatingWebhookConfigurationList{ListMeta: obj.(*admissionregistration.MutatingWebhookConfigurationList).ListMeta}
|
||||
for _, item := range obj.(*admissionregistration.MutatingWebhookConfigurationList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
@@ -59,7 +59,7 @@ func (c *FakeValidatingWebhookConfigurations) List(opts v1.ListOptions) (result
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &admissionregistration.ValidatingWebhookConfigurationList{}
|
||||
list := &admissionregistration.ValidatingWebhookConfigurationList{ListMeta: obj.(*admissionregistration.ValidatingWebhookConfigurationList).ListMeta}
|
||||
for _, item := range obj.(*admissionregistration.ValidatingWebhookConfigurationList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
@@ -62,7 +62,7 @@ func (c *FakeControllerRevisions) List(opts v1.ListOptions) (result *apps.Contro
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &apps.ControllerRevisionList{}
|
||||
list := &apps.ControllerRevisionList{ListMeta: obj.(*apps.ControllerRevisionList).ListMeta}
|
||||
for _, item := range obj.(*apps.ControllerRevisionList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
@@ -63,7 +63,7 @@ func (c *FakeStatefulSets) List(opts v1.ListOptions) (result *apps.StatefulSetLi
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &apps.StatefulSetList{}
|
||||
list := &apps.StatefulSetList{ListMeta: obj.(*apps.StatefulSetList).ListMeta}
|
||||
for _, item := range obj.(*apps.StatefulSetList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
@@ -62,7 +62,7 @@ func (c *FakeHorizontalPodAutoscalers) List(opts v1.ListOptions) (result *autosc
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &autoscaling.HorizontalPodAutoscalerList{}
|
||||
list := &autoscaling.HorizontalPodAutoscalerList{ListMeta: obj.(*autoscaling.HorizontalPodAutoscalerList).ListMeta}
|
||||
for _, item := range obj.(*autoscaling.HorizontalPodAutoscalerList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
@@ -62,7 +62,7 @@ func (c *FakeCronJobs) List(opts v1.ListOptions) (result *batch.CronJobList, err
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &batch.CronJobList{}
|
||||
list := &batch.CronJobList{ListMeta: obj.(*batch.CronJobList).ListMeta}
|
||||
for _, item := range obj.(*batch.CronJobList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
@@ -62,7 +62,7 @@ func (c *FakeJobs) List(opts v1.ListOptions) (result *batch.JobList, err error)
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &batch.JobList{}
|
||||
list := &batch.JobList{ListMeta: obj.(*batch.JobList).ListMeta}
|
||||
for _, item := range obj.(*batch.JobList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
@@ -59,7 +59,7 @@ func (c *FakeCertificateSigningRequests) List(opts v1.ListOptions) (result *cert
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &certificates.CertificateSigningRequestList{}
|
||||
list := &certificates.CertificateSigningRequestList{ListMeta: obj.(*certificates.CertificateSigningRequestList).ListMeta}
|
||||
for _, item := range obj.(*certificates.CertificateSigningRequestList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
@@ -59,7 +59,7 @@ func (c *FakeComponentStatuses) List(opts v1.ListOptions) (result *core.Componen
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &core.ComponentStatusList{}
|
||||
list := &core.ComponentStatusList{ListMeta: obj.(*core.ComponentStatusList).ListMeta}
|
||||
for _, item := range obj.(*core.ComponentStatusList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
@@ -62,7 +62,7 @@ func (c *FakeConfigMaps) List(opts v1.ListOptions) (result *core.ConfigMapList,
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &core.ConfigMapList{}
|
||||
list := &core.ConfigMapList{ListMeta: obj.(*core.ConfigMapList).ListMeta}
|
||||
for _, item := range obj.(*core.ConfigMapList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
@@ -62,7 +62,7 @@ func (c *FakeEndpoints) List(opts v1.ListOptions) (result *core.EndpointsList, e
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &core.EndpointsList{}
|
||||
list := &core.EndpointsList{ListMeta: obj.(*core.EndpointsList).ListMeta}
|
||||
for _, item := range obj.(*core.EndpointsList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
@@ -62,7 +62,7 @@ func (c *FakeEvents) List(opts v1.ListOptions) (result *core.EventList, err erro
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &core.EventList{}
|
||||
list := &core.EventList{ListMeta: obj.(*core.EventList).ListMeta}
|
||||
for _, item := range obj.(*core.EventList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
@@ -62,7 +62,7 @@ func (c *FakeLimitRanges) List(opts v1.ListOptions) (result *core.LimitRangeList
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &core.LimitRangeList{}
|
||||
list := &core.LimitRangeList{ListMeta: obj.(*core.LimitRangeList).ListMeta}
|
||||
for _, item := range obj.(*core.LimitRangeList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
@@ -59,7 +59,7 @@ func (c *FakeNamespaces) List(opts v1.ListOptions) (result *core.NamespaceList,
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &core.NamespaceList{}
|
||||
list := &core.NamespaceList{ListMeta: obj.(*core.NamespaceList).ListMeta}
|
||||
for _, item := range obj.(*core.NamespaceList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
@@ -59,7 +59,7 @@ func (c *FakeNodes) List(opts v1.ListOptions) (result *core.NodeList, err error)
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &core.NodeList{}
|
||||
list := &core.NodeList{ListMeta: obj.(*core.NodeList).ListMeta}
|
||||
for _, item := range obj.(*core.NodeList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
@@ -59,7 +59,7 @@ func (c *FakePersistentVolumes) List(opts v1.ListOptions) (result *core.Persiste
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &core.PersistentVolumeList{}
|
||||
list := &core.PersistentVolumeList{ListMeta: obj.(*core.PersistentVolumeList).ListMeta}
|
||||
for _, item := range obj.(*core.PersistentVolumeList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
@@ -62,7 +62,7 @@ func (c *FakePersistentVolumeClaims) List(opts v1.ListOptions) (result *core.Per
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &core.PersistentVolumeClaimList{}
|
||||
list := &core.PersistentVolumeClaimList{ListMeta: obj.(*core.PersistentVolumeClaimList).ListMeta}
|
||||
for _, item := range obj.(*core.PersistentVolumeClaimList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
@@ -62,7 +62,7 @@ func (c *FakePods) List(opts v1.ListOptions) (result *core.PodList, err error) {
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &core.PodList{}
|
||||
list := &core.PodList{ListMeta: obj.(*core.PodList).ListMeta}
|
||||
for _, item := range obj.(*core.PodList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
@@ -62,7 +62,7 @@ func (c *FakePodTemplates) List(opts v1.ListOptions) (result *core.PodTemplateLi
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &core.PodTemplateList{}
|
||||
list := &core.PodTemplateList{ListMeta: obj.(*core.PodTemplateList).ListMeta}
|
||||
for _, item := range obj.(*core.PodTemplateList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
@@ -63,7 +63,7 @@ func (c *FakeReplicationControllers) List(opts v1.ListOptions) (result *core.Rep
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &core.ReplicationControllerList{}
|
||||
list := &core.ReplicationControllerList{ListMeta: obj.(*core.ReplicationControllerList).ListMeta}
|
||||
for _, item := range obj.(*core.ReplicationControllerList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
@@ -62,7 +62,7 @@ func (c *FakeResourceQuotas) List(opts v1.ListOptions) (result *core.ResourceQuo
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &core.ResourceQuotaList{}
|
||||
list := &core.ResourceQuotaList{ListMeta: obj.(*core.ResourceQuotaList).ListMeta}
|
||||
for _, item := range obj.(*core.ResourceQuotaList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
@@ -62,7 +62,7 @@ func (c *FakeSecrets) List(opts v1.ListOptions) (result *core.SecretList, err er
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &core.SecretList{}
|
||||
list := &core.SecretList{ListMeta: obj.(*core.SecretList).ListMeta}
|
||||
for _, item := range obj.(*core.SecretList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
@@ -62,7 +62,7 @@ func (c *FakeServices) List(opts v1.ListOptions) (result *core.ServiceList, err
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &core.ServiceList{}
|
||||
list := &core.ServiceList{ListMeta: obj.(*core.ServiceList).ListMeta}
|
||||
for _, item := range obj.(*core.ServiceList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
@@ -62,7 +62,7 @@ func (c *FakeServiceAccounts) List(opts v1.ListOptions) (result *core.ServiceAcc
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &core.ServiceAccountList{}
|
||||
list := &core.ServiceAccountList{ListMeta: obj.(*core.ServiceAccountList).ListMeta}
|
||||
for _, item := range obj.(*core.ServiceAccountList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
@@ -62,7 +62,7 @@ func (c *FakeDaemonSets) List(opts v1.ListOptions) (result *extensions.DaemonSet
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &extensions.DaemonSetList{}
|
||||
list := &extensions.DaemonSetList{ListMeta: obj.(*extensions.DaemonSetList).ListMeta}
|
||||
for _, item := range obj.(*extensions.DaemonSetList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
@@ -63,7 +63,7 @@ func (c *FakeDeployments) List(opts v1.ListOptions) (result *extensions.Deployme
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &extensions.DeploymentList{}
|
||||
list := &extensions.DeploymentList{ListMeta: obj.(*extensions.DeploymentList).ListMeta}
|
||||
for _, item := range obj.(*extensions.DeploymentList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
@@ -62,7 +62,7 @@ func (c *FakeIngresses) List(opts v1.ListOptions) (result *extensions.IngressLis
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &extensions.IngressList{}
|
||||
list := &extensions.IngressList{ListMeta: obj.(*extensions.IngressList).ListMeta}
|
||||
for _, item := range obj.(*extensions.IngressList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
@@ -63,7 +63,7 @@ func (c *FakeReplicaSets) List(opts v1.ListOptions) (result *extensions.ReplicaS
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &extensions.ReplicaSetList{}
|
||||
list := &extensions.ReplicaSetList{ListMeta: obj.(*extensions.ReplicaSetList).ListMeta}
|
||||
for _, item := range obj.(*extensions.ReplicaSetList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
@@ -62,7 +62,7 @@ func (c *FakeNetworkPolicies) List(opts v1.ListOptions) (result *networking.Netw
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &networking.NetworkPolicyList{}
|
||||
list := &networking.NetworkPolicyList{ListMeta: obj.(*networking.NetworkPolicyList).ListMeta}
|
||||
for _, item := range obj.(*networking.NetworkPolicyList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
@@ -62,7 +62,7 @@ func (c *FakePodDisruptionBudgets) List(opts v1.ListOptions) (result *policy.Pod
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &policy.PodDisruptionBudgetList{}
|
||||
list := &policy.PodDisruptionBudgetList{ListMeta: obj.(*policy.PodDisruptionBudgetList).ListMeta}
|
||||
for _, item := range obj.(*policy.PodDisruptionBudgetList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
@@ -59,7 +59,7 @@ func (c *FakePodSecurityPolicies) List(opts v1.ListOptions) (result *policy.PodS
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &policy.PodSecurityPolicyList{}
|
||||
list := &policy.PodSecurityPolicyList{ListMeta: obj.(*policy.PodSecurityPolicyList).ListMeta}
|
||||
for _, item := range obj.(*policy.PodSecurityPolicyList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
@@ -59,7 +59,7 @@ func (c *FakeClusterRoles) List(opts v1.ListOptions) (result *rbac.ClusterRoleLi
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &rbac.ClusterRoleList{}
|
||||
list := &rbac.ClusterRoleList{ListMeta: obj.(*rbac.ClusterRoleList).ListMeta}
|
||||
for _, item := range obj.(*rbac.ClusterRoleList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
@@ -59,7 +59,7 @@ func (c *FakeClusterRoleBindings) List(opts v1.ListOptions) (result *rbac.Cluste
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &rbac.ClusterRoleBindingList{}
|
||||
list := &rbac.ClusterRoleBindingList{ListMeta: obj.(*rbac.ClusterRoleBindingList).ListMeta}
|
||||
for _, item := range obj.(*rbac.ClusterRoleBindingList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
@@ -62,7 +62,7 @@ func (c *FakeRoles) List(opts v1.ListOptions) (result *rbac.RoleList, err error)
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &rbac.RoleList{}
|
||||
list := &rbac.RoleList{ListMeta: obj.(*rbac.RoleList).ListMeta}
|
||||
for _, item := range obj.(*rbac.RoleList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
@@ -62,7 +62,7 @@ func (c *FakeRoleBindings) List(opts v1.ListOptions) (result *rbac.RoleBindingLi
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &rbac.RoleBindingList{}
|
||||
list := &rbac.RoleBindingList{ListMeta: obj.(*rbac.RoleBindingList).ListMeta}
|
||||
for _, item := range obj.(*rbac.RoleBindingList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
@@ -59,7 +59,7 @@ func (c *FakePriorityClasses) List(opts v1.ListOptions) (result *scheduling.Prio
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &scheduling.PriorityClassList{}
|
||||
list := &scheduling.PriorityClassList{ListMeta: obj.(*scheduling.PriorityClassList).ListMeta}
|
||||
for _, item := range obj.(*scheduling.PriorityClassList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
@@ -62,7 +62,7 @@ func (c *FakePodPresets) List(opts v1.ListOptions) (result *settings.PodPresetLi
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &settings.PodPresetList{}
|
||||
list := &settings.PodPresetList{ListMeta: obj.(*settings.PodPresetList).ListMeta}
|
||||
for _, item := range obj.(*settings.PodPresetList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
@@ -59,7 +59,7 @@ func (c *FakeStorageClasses) List(opts v1.ListOptions) (result *storage.StorageC
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &storage.StorageClassList{}
|
||||
list := &storage.StorageClassList{ListMeta: obj.(*storage.StorageClassList).ListMeta}
|
||||
for _, item := range obj.(*storage.StorageClassList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
@@ -59,7 +59,7 @@ func (c *FakeVolumeAttachments) List(opts v1.ListOptions) (result *storage.Volum
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &storage.VolumeAttachmentList{}
|
||||
list := &storage.VolumeAttachmentList{ListMeta: obj.(*storage.VolumeAttachmentList).ListMeta}
|
||||
for _, item := range obj.(*storage.VolumeAttachmentList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
|
Reference in New Issue
Block a user