diff --git a/.ci-operator.yaml b/.ci-operator.yaml
index 1e59c02c2..7c15f83e3 100644
--- a/.ci-operator.yaml
+++ b/.ci-operator.yaml
@@ -1,4 +1,4 @@
build_root_image:
name: release
namespace: openshift
- tag: rhel-9-release-golang-1.22-openshift-4.17
+ tag: rhel-9-release-golang-1.23-openshift-4.19
diff --git a/Makefile b/Makefile
index b87d106bd..317c0aaf6 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,7 @@ GO_BUILD_PACKAGES_EXPANDED :=$(GO_BUILD_PACKAGES)
GO_LD_FLAGS:=
RUNTIME ?= podman
-RUNTIME_IMAGE_NAME ?= registry.ci.openshift.org/openshift/release:rhel-9-release-golang-1.22-openshift-4.17
+RUNTIME_IMAGE_NAME ?= registry.ci.openshift.org/openshift/release:rhel-9-release-golang-1.23-openshift-4.19
examples:
go build -o examples/build/app ./examples/build/
diff --git a/apiserver/applyconfigurations/apiserver/v1/apirequestcount.go b/apiserver/applyconfigurations/apiserver/v1/apirequestcount.go
index 5aca61b39..b2bde545f 100644
--- a/apiserver/applyconfigurations/apiserver/v1/apirequestcount.go
+++ b/apiserver/applyconfigurations/apiserver/v1/apirequestcount.go
@@ -3,21 +3,21 @@
package v1
import (
- apiapiserverv1 "github.com/openshift/api/apiserver/v1"
+ apiserverv1 "github.com/openshift/api/apiserver/v1"
internal "github.com/openshift/client-go/apiserver/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// APIRequestCountApplyConfiguration represents a declarative configuration of the APIRequestCount type for use
// with apply.
type APIRequestCountApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *APIRequestCountSpecApplyConfiguration `json:"spec,omitempty"`
- Status *APIRequestCountStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *APIRequestCountSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *APIRequestCountStatusApplyConfiguration `json:"status,omitempty"`
}
// APIRequestCount constructs a declarative configuration of the APIRequestCount type for use with
@@ -41,18 +41,18 @@ func APIRequestCount(name string) *APIRequestCountApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractAPIRequestCount(aPIRequestCount *apiapiserverv1.APIRequestCount, fieldManager string) (*APIRequestCountApplyConfiguration, error) {
+func ExtractAPIRequestCount(aPIRequestCount *apiserverv1.APIRequestCount, fieldManager string) (*APIRequestCountApplyConfiguration, error) {
return extractAPIRequestCount(aPIRequestCount, fieldManager, "")
}
// ExtractAPIRequestCountStatus is the same as ExtractAPIRequestCount except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractAPIRequestCountStatus(aPIRequestCount *apiapiserverv1.APIRequestCount, fieldManager string) (*APIRequestCountApplyConfiguration, error) {
+func ExtractAPIRequestCountStatus(aPIRequestCount *apiserverv1.APIRequestCount, fieldManager string) (*APIRequestCountApplyConfiguration, error) {
return extractAPIRequestCount(aPIRequestCount, fieldManager, "status")
}
-func extractAPIRequestCount(aPIRequestCount *apiapiserverv1.APIRequestCount, fieldManager string, subresource string) (*APIRequestCountApplyConfiguration, error) {
+func extractAPIRequestCount(aPIRequestCount *apiserverv1.APIRequestCount, fieldManager string, subresource string) (*APIRequestCountApplyConfiguration, error) {
b := &APIRequestCountApplyConfiguration{}
err := managedfields.ExtractInto(aPIRequestCount, internal.Parser().Type("com.github.openshift.api.apiserver.v1.APIRequestCount"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractAPIRequestCount(aPIRequestCount *apiapiserverv1.APIRequestCount, fie
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *APIRequestCountApplyConfiguration) WithKind(value string) *APIRequestCountApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *APIRequestCountApplyConfiguration) WithKind(value string) *APIRequestCo
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *APIRequestCountApplyConfiguration) WithAPIVersion(value string) *APIRequestCountApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *APIRequestCountApplyConfiguration) WithAPIVersion(value string) *APIReq
// If called multiple times, the Name field is set to the value of the last call.
func (b *APIRequestCountApplyConfiguration) WithName(value string) *APIRequestCountApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *APIRequestCountApplyConfiguration) WithName(value string) *APIRequestCo
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *APIRequestCountApplyConfiguration) WithGenerateName(value string) *APIRequestCountApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *APIRequestCountApplyConfiguration) WithGenerateName(value string) *APIR
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *APIRequestCountApplyConfiguration) WithNamespace(value string) *APIRequestCountApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *APIRequestCountApplyConfiguration) WithNamespace(value string) *APIRequ
// If called multiple times, the UID field is set to the value of the last call.
func (b *APIRequestCountApplyConfiguration) WithUID(value types.UID) *APIRequestCountApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *APIRequestCountApplyConfiguration) WithUID(value types.UID) *APIRequest
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *APIRequestCountApplyConfiguration) WithResourceVersion(value string) *APIRequestCountApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *APIRequestCountApplyConfiguration) WithResourceVersion(value string) *A
// If called multiple times, the Generation field is set to the value of the last call.
func (b *APIRequestCountApplyConfiguration) WithGeneration(value int64) *APIRequestCountApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *APIRequestCountApplyConfiguration) WithCreationTimestamp(value metav1.Time) *APIRequestCountApplyConfiguration {
+func (b *APIRequestCountApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *APIRequestCountApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *APIRequestCountApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *APIRequestCountApplyConfiguration {
+func (b *APIRequestCountApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *APIRequestCountApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *APIRequestCountApplyConfiguration) WithDeletionTimestamp(value metav1.T
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *APIRequestCountApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *APIRequestCountApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *APIRequestCountApplyConfiguration) WithDeletionGracePeriodSeconds(value
// overwriting an existing map entries in Labels field with the same key.
func (b *APIRequestCountApplyConfiguration) WithLabels(entries map[string]string) *APIRequestCountApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *APIRequestCountApplyConfiguration) WithLabels(entries map[string]string
// overwriting an existing map entries in Annotations field with the same key.
func (b *APIRequestCountApplyConfiguration) WithAnnotations(entries map[string]string) *APIRequestCountApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *APIRequestCountApplyConfiguration) WithAnnotations(entries map[string]s
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *APIRequestCountApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *APIRequestCountApplyConfiguration {
+func (b *APIRequestCountApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *APIRequestCountApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *APIRequestCountApplyConfiguration) WithOwnerReferences(values ...*v1.Ow
func (b *APIRequestCountApplyConfiguration) WithFinalizers(values ...string) *APIRequestCountApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *APIRequestCountApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *APIRequestCountApplyConfiguration) WithStatus(value *APIRequestCountSta
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *APIRequestCountApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/apiserver/applyconfigurations/apiserver/v1/apirequestcountstatus.go b/apiserver/applyconfigurations/apiserver/v1/apirequestcountstatus.go
index de099b7e2..d6d33904b 100644
--- a/apiserver/applyconfigurations/apiserver/v1/apirequestcountstatus.go
+++ b/apiserver/applyconfigurations/apiserver/v1/apirequestcountstatus.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// APIRequestCountStatusApplyConfiguration represents a declarative configuration of the APIRequestCountStatus type for use
// with apply.
type APIRequestCountStatusApplyConfiguration struct {
- Conditions []v1.ConditionApplyConfiguration `json:"conditions,omitempty"`
+ Conditions []metav1.ConditionApplyConfiguration `json:"conditions,omitempty"`
RemovedInRelease *string `json:"removedInRelease,omitempty"`
RequestCount *int64 `json:"requestCount,omitempty"`
CurrentHour *PerResourceAPIRequestLogApplyConfiguration `json:"currentHour,omitempty"`
@@ -25,7 +25,7 @@ func APIRequestCountStatus() *APIRequestCountStatusApplyConfiguration {
// WithConditions adds the given value to the Conditions field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Conditions field.
-func (b *APIRequestCountStatusApplyConfiguration) WithConditions(values ...*v1.ConditionApplyConfiguration) *APIRequestCountStatusApplyConfiguration {
+func (b *APIRequestCountStatusApplyConfiguration) WithConditions(values ...*metav1.ConditionApplyConfiguration) *APIRequestCountStatusApplyConfiguration {
for i := range values {
if values[i] == nil {
panic("nil value passed to WithConditions")
diff --git a/apiserver/applyconfigurations/internal/internal.go b/apiserver/applyconfigurations/internal/internal.go
index 7a3e6c67f..118db57bb 100644
--- a/apiserver/applyconfigurations/internal/internal.go
+++ b/apiserver/applyconfigurations/internal/internal.go
@@ -3,8 +3,8 @@
package internal
import (
- "fmt"
- "sync"
+ fmt "fmt"
+ sync "sync"
typed "sigs.k8s.io/structured-merge-diff/v4/typed"
)
diff --git a/apiserver/clientset/versioned/clientset.go b/apiserver/clientset/versioned/clientset.go
index f94cc2ed3..1e5c4c601 100644
--- a/apiserver/clientset/versioned/clientset.go
+++ b/apiserver/clientset/versioned/clientset.go
@@ -3,8 +3,8 @@
package versioned
import (
- "fmt"
- "net/http"
+ fmt "fmt"
+ http "net/http"
apiserverv1 "github.com/openshift/client-go/apiserver/clientset/versioned/typed/apiserver/v1"
discovery "k8s.io/client-go/discovery"
diff --git a/apiserver/clientset/versioned/typed/apiserver/v1/apirequestcount.go b/apiserver/clientset/versioned/typed/apiserver/v1/apirequestcount.go
index 715c3380b..3b200ca01 100644
--- a/apiserver/clientset/versioned/typed/apiserver/v1/apirequestcount.go
+++ b/apiserver/clientset/versioned/typed/apiserver/v1/apirequestcount.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/apiserver/v1"
- apiserverv1 "github.com/openshift/client-go/apiserver/applyconfigurations/apiserver/v1"
+ apiserverv1 "github.com/openshift/api/apiserver/v1"
+ applyconfigurationsapiserverv1 "github.com/openshift/client-go/apiserver/applyconfigurations/apiserver/v1"
scheme "github.com/openshift/client-go/apiserver/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type APIRequestCountsGetter interface {
// APIRequestCountInterface has methods to work with APIRequestCount resources.
type APIRequestCountInterface interface {
- Create(ctx context.Context, aPIRequestCount *v1.APIRequestCount, opts metav1.CreateOptions) (*v1.APIRequestCount, error)
- Update(ctx context.Context, aPIRequestCount *v1.APIRequestCount, opts metav1.UpdateOptions) (*v1.APIRequestCount, error)
+ Create(ctx context.Context, aPIRequestCount *apiserverv1.APIRequestCount, opts metav1.CreateOptions) (*apiserverv1.APIRequestCount, error)
+ Update(ctx context.Context, aPIRequestCount *apiserverv1.APIRequestCount, opts metav1.UpdateOptions) (*apiserverv1.APIRequestCount, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, aPIRequestCount *v1.APIRequestCount, opts metav1.UpdateOptions) (*v1.APIRequestCount, error)
+ UpdateStatus(ctx context.Context, aPIRequestCount *apiserverv1.APIRequestCount, opts metav1.UpdateOptions) (*apiserverv1.APIRequestCount, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.APIRequestCount, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.APIRequestCountList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*apiserverv1.APIRequestCount, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*apiserverv1.APIRequestCountList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.APIRequestCount, err error)
- Apply(ctx context.Context, aPIRequestCount *apiserverv1.APIRequestCountApplyConfiguration, opts metav1.ApplyOptions) (result *v1.APIRequestCount, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *apiserverv1.APIRequestCount, err error)
+ Apply(ctx context.Context, aPIRequestCount *applyconfigurationsapiserverv1.APIRequestCountApplyConfiguration, opts metav1.ApplyOptions) (result *apiserverv1.APIRequestCount, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, aPIRequestCount *apiserverv1.APIRequestCountApplyConfiguration, opts metav1.ApplyOptions) (result *v1.APIRequestCount, err error)
+ ApplyStatus(ctx context.Context, aPIRequestCount *applyconfigurationsapiserverv1.APIRequestCountApplyConfiguration, opts metav1.ApplyOptions) (result *apiserverv1.APIRequestCount, err error)
APIRequestCountExpansion
}
// aPIRequestCounts implements APIRequestCountInterface
type aPIRequestCounts struct {
- *gentype.ClientWithListAndApply[*v1.APIRequestCount, *v1.APIRequestCountList, *apiserverv1.APIRequestCountApplyConfiguration]
+ *gentype.ClientWithListAndApply[*apiserverv1.APIRequestCount, *apiserverv1.APIRequestCountList, *applyconfigurationsapiserverv1.APIRequestCountApplyConfiguration]
}
// newAPIRequestCounts returns a APIRequestCounts
func newAPIRequestCounts(c *ApiserverV1Client) *aPIRequestCounts {
return &aPIRequestCounts{
- gentype.NewClientWithListAndApply[*v1.APIRequestCount, *v1.APIRequestCountList, *apiserverv1.APIRequestCountApplyConfiguration](
+ gentype.NewClientWithListAndApply[*apiserverv1.APIRequestCount, *apiserverv1.APIRequestCountList, *applyconfigurationsapiserverv1.APIRequestCountApplyConfiguration](
"apirequestcounts",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.APIRequestCount { return &v1.APIRequestCount{} },
- func() *v1.APIRequestCountList { return &v1.APIRequestCountList{} }),
+ func() *apiserverv1.APIRequestCount { return &apiserverv1.APIRequestCount{} },
+ func() *apiserverv1.APIRequestCountList { return &apiserverv1.APIRequestCountList{} },
+ ),
}
}
diff --git a/apiserver/clientset/versioned/typed/apiserver/v1/apiserver_client.go b/apiserver/clientset/versioned/typed/apiserver/v1/apiserver_client.go
index 1e18e8cd5..aac5e0a68 100644
--- a/apiserver/clientset/versioned/typed/apiserver/v1/apiserver_client.go
+++ b/apiserver/clientset/versioned/typed/apiserver/v1/apiserver_client.go
@@ -3,10 +3,10 @@
package v1
import (
- "net/http"
+ http "net/http"
- v1 "github.com/openshift/api/apiserver/v1"
- "github.com/openshift/client-go/apiserver/clientset/versioned/scheme"
+ apiserverv1 "github.com/openshift/api/apiserver/v1"
+ scheme "github.com/openshift/client-go/apiserver/clientset/versioned/scheme"
rest "k8s.io/client-go/rest"
)
@@ -69,10 +69,10 @@ func New(c rest.Interface) *ApiserverV1Client {
}
func setConfigDefaults(config *rest.Config) error {
- gv := v1.SchemeGroupVersion
+ gv := apiserverv1.SchemeGroupVersion
config.GroupVersion = &gv
config.APIPath = "/apis"
- config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
+ config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion()
if config.UserAgent == "" {
config.UserAgent = rest.DefaultKubernetesUserAgent()
diff --git a/apiserver/clientset/versioned/typed/apiserver/v1/fake/fake_apirequestcount.go b/apiserver/clientset/versioned/typed/apiserver/v1/fake/fake_apirequestcount.go
index 13fa3b646..4c516c55d 100644
--- a/apiserver/clientset/versioned/typed/apiserver/v1/fake/fake_apirequestcount.go
+++ b/apiserver/clientset/versioned/typed/apiserver/v1/fake/fake_apirequestcount.go
@@ -3,168 +3,33 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/apiserver/v1"
apiserverv1 "github.com/openshift/client-go/apiserver/applyconfigurations/apiserver/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedapiserverv1 "github.com/openshift/client-go/apiserver/clientset/versioned/typed/apiserver/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeAPIRequestCounts implements APIRequestCountInterface
-type FakeAPIRequestCounts struct {
+// fakeAPIRequestCounts implements APIRequestCountInterface
+type fakeAPIRequestCounts struct {
+ *gentype.FakeClientWithListAndApply[*v1.APIRequestCount, *v1.APIRequestCountList, *apiserverv1.APIRequestCountApplyConfiguration]
Fake *FakeApiserverV1
}
-var apirequestcountsResource = v1.SchemeGroupVersion.WithResource("apirequestcounts")
-
-var apirequestcountsKind = v1.SchemeGroupVersion.WithKind("APIRequestCount")
-
-// Get takes name of the aPIRequestCount, and returns the corresponding aPIRequestCount object, and an error if there is any.
-func (c *FakeAPIRequestCounts) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.APIRequestCount, err error) {
- emptyResult := &v1.APIRequestCount{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(apirequestcountsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.APIRequestCount), err
-}
-
-// List takes label and field selectors, and returns the list of APIRequestCounts that match those selectors.
-func (c *FakeAPIRequestCounts) List(ctx context.Context, opts metav1.ListOptions) (result *v1.APIRequestCountList, err error) {
- emptyResult := &v1.APIRequestCountList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(apirequestcountsResource, apirequestcountsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.APIRequestCountList{ListMeta: obj.(*v1.APIRequestCountList).ListMeta}
- for _, item := range obj.(*v1.APIRequestCountList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested aPIRequestCounts.
-func (c *FakeAPIRequestCounts) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(apirequestcountsResource, opts))
-}
-
-// Create takes the representation of a aPIRequestCount and creates it. Returns the server's representation of the aPIRequestCount, and an error, if there is any.
-func (c *FakeAPIRequestCounts) Create(ctx context.Context, aPIRequestCount *v1.APIRequestCount, opts metav1.CreateOptions) (result *v1.APIRequestCount, err error) {
- emptyResult := &v1.APIRequestCount{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(apirequestcountsResource, aPIRequestCount, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.APIRequestCount), err
-}
-
-// Update takes the representation of a aPIRequestCount and updates it. Returns the server's representation of the aPIRequestCount, and an error, if there is any.
-func (c *FakeAPIRequestCounts) Update(ctx context.Context, aPIRequestCount *v1.APIRequestCount, opts metav1.UpdateOptions) (result *v1.APIRequestCount, err error) {
- emptyResult := &v1.APIRequestCount{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(apirequestcountsResource, aPIRequestCount, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.APIRequestCount), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeAPIRequestCounts) UpdateStatus(ctx context.Context, aPIRequestCount *v1.APIRequestCount, opts metav1.UpdateOptions) (result *v1.APIRequestCount, err error) {
- emptyResult := &v1.APIRequestCount{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(apirequestcountsResource, "status", aPIRequestCount, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.APIRequestCount), err
-}
-
-// Delete takes name of the aPIRequestCount and deletes it. Returns an error if one occurs.
-func (c *FakeAPIRequestCounts) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(apirequestcountsResource, name, opts), &v1.APIRequestCount{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeAPIRequestCounts) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(apirequestcountsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.APIRequestCountList{})
- return err
-}
-
-// Patch applies the patch and returns the patched aPIRequestCount.
-func (c *FakeAPIRequestCounts) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.APIRequestCount, err error) {
- emptyResult := &v1.APIRequestCount{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(apirequestcountsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.APIRequestCount), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied aPIRequestCount.
-func (c *FakeAPIRequestCounts) Apply(ctx context.Context, aPIRequestCount *apiserverv1.APIRequestCountApplyConfiguration, opts metav1.ApplyOptions) (result *v1.APIRequestCount, err error) {
- if aPIRequestCount == nil {
- return nil, fmt.Errorf("aPIRequestCount provided to Apply must not be nil")
- }
- data, err := json.Marshal(aPIRequestCount)
- if err != nil {
- return nil, err
- }
- name := aPIRequestCount.Name
- if name == nil {
- return nil, fmt.Errorf("aPIRequestCount.Name must be provided to Apply")
- }
- emptyResult := &v1.APIRequestCount{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(apirequestcountsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.APIRequestCount), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeAPIRequestCounts) ApplyStatus(ctx context.Context, aPIRequestCount *apiserverv1.APIRequestCountApplyConfiguration, opts metav1.ApplyOptions) (result *v1.APIRequestCount, err error) {
- if aPIRequestCount == nil {
- return nil, fmt.Errorf("aPIRequestCount provided to Apply must not be nil")
- }
- data, err := json.Marshal(aPIRequestCount)
- if err != nil {
- return nil, err
- }
- name := aPIRequestCount.Name
- if name == nil {
- return nil, fmt.Errorf("aPIRequestCount.Name must be provided to Apply")
- }
- emptyResult := &v1.APIRequestCount{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(apirequestcountsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeAPIRequestCounts(fake *FakeApiserverV1) typedapiserverv1.APIRequestCountInterface {
+ return &fakeAPIRequestCounts{
+ gentype.NewFakeClientWithListAndApply[*v1.APIRequestCount, *v1.APIRequestCountList, *apiserverv1.APIRequestCountApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("apirequestcounts"),
+ v1.SchemeGroupVersion.WithKind("APIRequestCount"),
+ func() *v1.APIRequestCount { return &v1.APIRequestCount{} },
+ func() *v1.APIRequestCountList { return &v1.APIRequestCountList{} },
+ func(dst, src *v1.APIRequestCountList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.APIRequestCountList) []*v1.APIRequestCount { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.APIRequestCountList, items []*v1.APIRequestCount) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.APIRequestCount), err
}
diff --git a/apiserver/clientset/versioned/typed/apiserver/v1/fake/fake_apiserver_client.go b/apiserver/clientset/versioned/typed/apiserver/v1/fake/fake_apiserver_client.go
index c7078bc74..756df043a 100644
--- a/apiserver/clientset/versioned/typed/apiserver/v1/fake/fake_apiserver_client.go
+++ b/apiserver/clientset/versioned/typed/apiserver/v1/fake/fake_apiserver_client.go
@@ -13,7 +13,7 @@ type FakeApiserverV1 struct {
}
func (c *FakeApiserverV1) APIRequestCounts() v1.APIRequestCountInterface {
- return &FakeAPIRequestCounts{c}
+ return newFakeAPIRequestCounts(c)
}
// RESTClient returns a RESTClient that is used to communicate
diff --git a/apiserver/informers/externalversions/apiserver/v1/apirequestcount.go b/apiserver/informers/externalversions/apiserver/v1/apirequestcount.go
index bb1312dc9..fc45806d5 100644
--- a/apiserver/informers/externalversions/apiserver/v1/apirequestcount.go
+++ b/apiserver/informers/externalversions/apiserver/v1/apirequestcount.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- apiserverv1 "github.com/openshift/api/apiserver/v1"
+ apiapiserverv1 "github.com/openshift/api/apiserver/v1"
versioned "github.com/openshift/client-go/apiserver/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/apiserver/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/apiserver/listers/apiserver/v1"
+ apiserverv1 "github.com/openshift/client-go/apiserver/listers/apiserver/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// APIRequestCounts.
type APIRequestCountInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.APIRequestCountLister
+ Lister() apiserverv1.APIRequestCountLister
}
type aPIRequestCountInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredAPIRequestCountInformer(client versioned.Interface, resyncPeriod
return client.ApiserverV1().APIRequestCounts().Watch(context.TODO(), options)
},
},
- &apiserverv1.APIRequestCount{},
+ &apiapiserverv1.APIRequestCount{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *aPIRequestCountInformer) defaultInformer(client versioned.Interface, re
}
func (f *aPIRequestCountInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&apiserverv1.APIRequestCount{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiapiserverv1.APIRequestCount{}, f.defaultInformer)
}
-func (f *aPIRequestCountInformer) Lister() v1.APIRequestCountLister {
- return v1.NewAPIRequestCountLister(f.Informer().GetIndexer())
+func (f *aPIRequestCountInformer) Lister() apiserverv1.APIRequestCountLister {
+ return apiserverv1.NewAPIRequestCountLister(f.Informer().GetIndexer())
}
diff --git a/apiserver/informers/externalversions/generic.go b/apiserver/informers/externalversions/generic.go
index 8ca713db7..e83861914 100644
--- a/apiserver/informers/externalversions/generic.go
+++ b/apiserver/informers/externalversions/generic.go
@@ -3,7 +3,7 @@
package externalversions
import (
- "fmt"
+ fmt "fmt"
v1 "github.com/openshift/api/apiserver/v1"
schema "k8s.io/apimachinery/pkg/runtime/schema"
diff --git a/apiserver/listers/apiserver/v1/apirequestcount.go b/apiserver/listers/apiserver/v1/apirequestcount.go
index f402f38c3..69d7f8b7d 100644
--- a/apiserver/listers/apiserver/v1/apirequestcount.go
+++ b/apiserver/listers/apiserver/v1/apirequestcount.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/apiserver/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ apiserverv1 "github.com/openshift/api/apiserver/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// APIRequestCountLister helps list APIRequestCounts.
@@ -14,19 +14,19 @@ import (
type APIRequestCountLister interface {
// List lists all APIRequestCounts in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.APIRequestCount, err error)
+ List(selector labels.Selector) (ret []*apiserverv1.APIRequestCount, err error)
// Get retrieves the APIRequestCount from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.APIRequestCount, error)
+ Get(name string) (*apiserverv1.APIRequestCount, error)
APIRequestCountListerExpansion
}
// aPIRequestCountLister implements the APIRequestCountLister interface.
type aPIRequestCountLister struct {
- listers.ResourceIndexer[*v1.APIRequestCount]
+ listers.ResourceIndexer[*apiserverv1.APIRequestCount]
}
// NewAPIRequestCountLister returns a new APIRequestCountLister.
func NewAPIRequestCountLister(indexer cache.Indexer) APIRequestCountLister {
- return &aPIRequestCountLister{listers.New[*v1.APIRequestCount](indexer, v1.Resource("apirequestcount"))}
+ return &aPIRequestCountLister{listers.New[*apiserverv1.APIRequestCount](indexer, apiserverv1.Resource("apirequestcount"))}
}
diff --git a/apps/applyconfigurations/apps/v1/customdeploymentstrategyparams.go b/apps/applyconfigurations/apps/v1/customdeploymentstrategyparams.go
index 0b62d195e..10d56cc32 100644
--- a/apps/applyconfigurations/apps/v1/customdeploymentstrategyparams.go
+++ b/apps/applyconfigurations/apps/v1/customdeploymentstrategyparams.go
@@ -3,15 +3,15 @@
package v1
import (
- v1 "k8s.io/api/core/v1"
+ corev1 "k8s.io/api/core/v1"
)
// CustomDeploymentStrategyParamsApplyConfiguration represents a declarative configuration of the CustomDeploymentStrategyParams type for use
// with apply.
type CustomDeploymentStrategyParamsApplyConfiguration struct {
- Image *string `json:"image,omitempty"`
- Environment []v1.EnvVar `json:"environment,omitempty"`
- Command []string `json:"command,omitempty"`
+ Image *string `json:"image,omitempty"`
+ Environment []corev1.EnvVar `json:"environment,omitempty"`
+ Command []string `json:"command,omitempty"`
}
// CustomDeploymentStrategyParamsApplyConfiguration constructs a declarative configuration of the CustomDeploymentStrategyParams type for use with
@@ -31,7 +31,7 @@ func (b *CustomDeploymentStrategyParamsApplyConfiguration) WithImage(value strin
// WithEnvironment adds the given value to the Environment field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Environment field.
-func (b *CustomDeploymentStrategyParamsApplyConfiguration) WithEnvironment(values ...v1.EnvVar) *CustomDeploymentStrategyParamsApplyConfiguration {
+func (b *CustomDeploymentStrategyParamsApplyConfiguration) WithEnvironment(values ...corev1.EnvVar) *CustomDeploymentStrategyParamsApplyConfiguration {
for i := range values {
b.Environment = append(b.Environment, values[i])
}
diff --git a/apps/applyconfigurations/apps/v1/deploymentcause.go b/apps/applyconfigurations/apps/v1/deploymentcause.go
index 00be6ff11..d772740d0 100644
--- a/apps/applyconfigurations/apps/v1/deploymentcause.go
+++ b/apps/applyconfigurations/apps/v1/deploymentcause.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/apps/v1"
+ appsv1 "github.com/openshift/api/apps/v1"
)
// DeploymentCauseApplyConfiguration represents a declarative configuration of the DeploymentCause type for use
// with apply.
type DeploymentCauseApplyConfiguration struct {
- Type *v1.DeploymentTriggerType `json:"type,omitempty"`
+ Type *appsv1.DeploymentTriggerType `json:"type,omitempty"`
ImageTrigger *DeploymentCauseImageTriggerApplyConfiguration `json:"imageTrigger,omitempty"`
}
@@ -22,7 +22,7 @@ func DeploymentCause() *DeploymentCauseApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *DeploymentCauseApplyConfiguration) WithType(value v1.DeploymentTriggerType) *DeploymentCauseApplyConfiguration {
+func (b *DeploymentCauseApplyConfiguration) WithType(value appsv1.DeploymentTriggerType) *DeploymentCauseApplyConfiguration {
b.Type = &value
return b
}
diff --git a/apps/applyconfigurations/apps/v1/deploymentcauseimagetrigger.go b/apps/applyconfigurations/apps/v1/deploymentcauseimagetrigger.go
index 2c989e12f..05e3a794f 100644
--- a/apps/applyconfigurations/apps/v1/deploymentcauseimagetrigger.go
+++ b/apps/applyconfigurations/apps/v1/deploymentcauseimagetrigger.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "k8s.io/api/core/v1"
+ corev1 "k8s.io/api/core/v1"
)
// DeploymentCauseImageTriggerApplyConfiguration represents a declarative configuration of the DeploymentCauseImageTrigger type for use
// with apply.
type DeploymentCauseImageTriggerApplyConfiguration struct {
- From *v1.ObjectReference `json:"from,omitempty"`
+ From *corev1.ObjectReference `json:"from,omitempty"`
}
// DeploymentCauseImageTriggerApplyConfiguration constructs a declarative configuration of the DeploymentCauseImageTrigger type for use with
@@ -21,7 +21,7 @@ func DeploymentCauseImageTrigger() *DeploymentCauseImageTriggerApplyConfiguratio
// WithFrom sets the From field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the From field is set to the value of the last call.
-func (b *DeploymentCauseImageTriggerApplyConfiguration) WithFrom(value v1.ObjectReference) *DeploymentCauseImageTriggerApplyConfiguration {
+func (b *DeploymentCauseImageTriggerApplyConfiguration) WithFrom(value corev1.ObjectReference) *DeploymentCauseImageTriggerApplyConfiguration {
b.From = &value
return b
}
diff --git a/apps/applyconfigurations/apps/v1/deploymentcondition.go b/apps/applyconfigurations/apps/v1/deploymentcondition.go
index bd38385aa..b5ffab10c 100644
--- a/apps/applyconfigurations/apps/v1/deploymentcondition.go
+++ b/apps/applyconfigurations/apps/v1/deploymentcondition.go
@@ -3,7 +3,7 @@
package v1
import (
- v1 "github.com/openshift/api/apps/v1"
+ appsv1 "github.com/openshift/api/apps/v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
@@ -11,12 +11,12 @@ import (
// DeploymentConditionApplyConfiguration represents a declarative configuration of the DeploymentCondition type for use
// with apply.
type DeploymentConditionApplyConfiguration struct {
- Type *v1.DeploymentConditionType `json:"type,omitempty"`
- Status *corev1.ConditionStatus `json:"status,omitempty"`
- LastUpdateTime *metav1.Time `json:"lastUpdateTime,omitempty"`
- LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
- Reason *string `json:"reason,omitempty"`
- Message *string `json:"message,omitempty"`
+ Type *appsv1.DeploymentConditionType `json:"type,omitempty"`
+ Status *corev1.ConditionStatus `json:"status,omitempty"`
+ LastUpdateTime *metav1.Time `json:"lastUpdateTime,omitempty"`
+ LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
+ Reason *string `json:"reason,omitempty"`
+ Message *string `json:"message,omitempty"`
}
// DeploymentConditionApplyConfiguration constructs a declarative configuration of the DeploymentCondition type for use with
@@ -28,7 +28,7 @@ func DeploymentCondition() *DeploymentConditionApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *DeploymentConditionApplyConfiguration) WithType(value v1.DeploymentConditionType) *DeploymentConditionApplyConfiguration {
+func (b *DeploymentConditionApplyConfiguration) WithType(value appsv1.DeploymentConditionType) *DeploymentConditionApplyConfiguration {
b.Type = &value
return b
}
diff --git a/apps/applyconfigurations/apps/v1/deploymentconfig.go b/apps/applyconfigurations/apps/v1/deploymentconfig.go
index f01544958..55fd0caaf 100644
--- a/apps/applyconfigurations/apps/v1/deploymentconfig.go
+++ b/apps/applyconfigurations/apps/v1/deploymentconfig.go
@@ -3,21 +3,21 @@
package v1
import (
- apiappsv1 "github.com/openshift/api/apps/v1"
+ appsv1 "github.com/openshift/api/apps/v1"
internal "github.com/openshift/client-go/apps/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// DeploymentConfigApplyConfiguration represents a declarative configuration of the DeploymentConfig type for use
// with apply.
type DeploymentConfigApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *DeploymentConfigSpecApplyConfiguration `json:"spec,omitempty"`
- Status *DeploymentConfigStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *DeploymentConfigSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *DeploymentConfigStatusApplyConfiguration `json:"status,omitempty"`
}
// DeploymentConfig constructs a declarative configuration of the DeploymentConfig type for use with
@@ -42,18 +42,18 @@ func DeploymentConfig(name, namespace string) *DeploymentConfigApplyConfiguratio
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractDeploymentConfig(deploymentConfig *apiappsv1.DeploymentConfig, fieldManager string) (*DeploymentConfigApplyConfiguration, error) {
+func ExtractDeploymentConfig(deploymentConfig *appsv1.DeploymentConfig, fieldManager string) (*DeploymentConfigApplyConfiguration, error) {
return extractDeploymentConfig(deploymentConfig, fieldManager, "")
}
// ExtractDeploymentConfigStatus is the same as ExtractDeploymentConfig except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractDeploymentConfigStatus(deploymentConfig *apiappsv1.DeploymentConfig, fieldManager string) (*DeploymentConfigApplyConfiguration, error) {
+func ExtractDeploymentConfigStatus(deploymentConfig *appsv1.DeploymentConfig, fieldManager string) (*DeploymentConfigApplyConfiguration, error) {
return extractDeploymentConfig(deploymentConfig, fieldManager, "status")
}
-func extractDeploymentConfig(deploymentConfig *apiappsv1.DeploymentConfig, fieldManager string, subresource string) (*DeploymentConfigApplyConfiguration, error) {
+func extractDeploymentConfig(deploymentConfig *appsv1.DeploymentConfig, fieldManager string, subresource string) (*DeploymentConfigApplyConfiguration, error) {
b := &DeploymentConfigApplyConfiguration{}
err := managedfields.ExtractInto(deploymentConfig, internal.Parser().Type("com.github.openshift.api.apps.v1.DeploymentConfig"), fieldManager, b, subresource)
if err != nil {
@@ -71,7 +71,7 @@ func extractDeploymentConfig(deploymentConfig *apiappsv1.DeploymentConfig, field
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *DeploymentConfigApplyConfiguration) WithKind(value string) *DeploymentConfigApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -79,7 +79,7 @@ func (b *DeploymentConfigApplyConfiguration) WithKind(value string) *DeploymentC
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *DeploymentConfigApplyConfiguration) WithAPIVersion(value string) *DeploymentConfigApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -88,7 +88,7 @@ func (b *DeploymentConfigApplyConfiguration) WithAPIVersion(value string) *Deplo
// If called multiple times, the Name field is set to the value of the last call.
func (b *DeploymentConfigApplyConfiguration) WithName(value string) *DeploymentConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -97,7 +97,7 @@ func (b *DeploymentConfigApplyConfiguration) WithName(value string) *DeploymentC
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *DeploymentConfigApplyConfiguration) WithGenerateName(value string) *DeploymentConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -106,7 +106,7 @@ func (b *DeploymentConfigApplyConfiguration) WithGenerateName(value string) *Dep
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *DeploymentConfigApplyConfiguration) WithNamespace(value string) *DeploymentConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -115,7 +115,7 @@ func (b *DeploymentConfigApplyConfiguration) WithNamespace(value string) *Deploy
// If called multiple times, the UID field is set to the value of the last call.
func (b *DeploymentConfigApplyConfiguration) WithUID(value types.UID) *DeploymentConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -124,7 +124,7 @@ func (b *DeploymentConfigApplyConfiguration) WithUID(value types.UID) *Deploymen
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *DeploymentConfigApplyConfiguration) WithResourceVersion(value string) *DeploymentConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -133,25 +133,25 @@ func (b *DeploymentConfigApplyConfiguration) WithResourceVersion(value string) *
// If called multiple times, the Generation field is set to the value of the last call.
func (b *DeploymentConfigApplyConfiguration) WithGeneration(value int64) *DeploymentConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *DeploymentConfigApplyConfiguration) WithCreationTimestamp(value metav1.Time) *DeploymentConfigApplyConfiguration {
+func (b *DeploymentConfigApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *DeploymentConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *DeploymentConfigApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *DeploymentConfigApplyConfiguration {
+func (b *DeploymentConfigApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *DeploymentConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -160,7 +160,7 @@ func (b *DeploymentConfigApplyConfiguration) WithDeletionTimestamp(value metav1.
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *DeploymentConfigApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *DeploymentConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -170,11 +170,11 @@ func (b *DeploymentConfigApplyConfiguration) WithDeletionGracePeriodSeconds(valu
// overwriting an existing map entries in Labels field with the same key.
func (b *DeploymentConfigApplyConfiguration) WithLabels(entries map[string]string) *DeploymentConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -185,11 +185,11 @@ func (b *DeploymentConfigApplyConfiguration) WithLabels(entries map[string]strin
// overwriting an existing map entries in Annotations field with the same key.
func (b *DeploymentConfigApplyConfiguration) WithAnnotations(entries map[string]string) *DeploymentConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -197,13 +197,13 @@ func (b *DeploymentConfigApplyConfiguration) WithAnnotations(entries map[string]
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *DeploymentConfigApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *DeploymentConfigApplyConfiguration {
+func (b *DeploymentConfigApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *DeploymentConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -214,14 +214,14 @@ func (b *DeploymentConfigApplyConfiguration) WithOwnerReferences(values ...*v1.O
func (b *DeploymentConfigApplyConfiguration) WithFinalizers(values ...string) *DeploymentConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *DeploymentConfigApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -244,5 +244,5 @@ func (b *DeploymentConfigApplyConfiguration) WithStatus(value *DeploymentConfigS
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *DeploymentConfigApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/apps/applyconfigurations/apps/v1/deploymentstrategy.go b/apps/applyconfigurations/apps/v1/deploymentstrategy.go
index 92c66bd80..021626305 100644
--- a/apps/applyconfigurations/apps/v1/deploymentstrategy.go
+++ b/apps/applyconfigurations/apps/v1/deploymentstrategy.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "github.com/openshift/api/apps/v1"
+ appsv1 "github.com/openshift/api/apps/v1"
corev1 "k8s.io/api/core/v1"
)
// DeploymentStrategyApplyConfiguration represents a declarative configuration of the DeploymentStrategy type for use
// with apply.
type DeploymentStrategyApplyConfiguration struct {
- Type *v1.DeploymentStrategyType `json:"type,omitempty"`
+ Type *appsv1.DeploymentStrategyType `json:"type,omitempty"`
CustomParams *CustomDeploymentStrategyParamsApplyConfiguration `json:"customParams,omitempty"`
RecreateParams *RecreateDeploymentStrategyParamsApplyConfiguration `json:"recreateParams,omitempty"`
RollingParams *RollingDeploymentStrategyParamsApplyConfiguration `json:"rollingParams,omitempty"`
@@ -29,7 +29,7 @@ func DeploymentStrategy() *DeploymentStrategyApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *DeploymentStrategyApplyConfiguration) WithType(value v1.DeploymentStrategyType) *DeploymentStrategyApplyConfiguration {
+func (b *DeploymentStrategyApplyConfiguration) WithType(value appsv1.DeploymentStrategyType) *DeploymentStrategyApplyConfiguration {
b.Type = &value
return b
}
diff --git a/apps/applyconfigurations/apps/v1/deploymenttriggerimagechangeparams.go b/apps/applyconfigurations/apps/v1/deploymenttriggerimagechangeparams.go
index 16351583a..f8db16284 100644
--- a/apps/applyconfigurations/apps/v1/deploymenttriggerimagechangeparams.go
+++ b/apps/applyconfigurations/apps/v1/deploymenttriggerimagechangeparams.go
@@ -3,16 +3,16 @@
package v1
import (
- v1 "k8s.io/api/core/v1"
+ corev1 "k8s.io/api/core/v1"
)
// DeploymentTriggerImageChangeParamsApplyConfiguration represents a declarative configuration of the DeploymentTriggerImageChangeParams type for use
// with apply.
type DeploymentTriggerImageChangeParamsApplyConfiguration struct {
- Automatic *bool `json:"automatic,omitempty"`
- ContainerNames []string `json:"containerNames,omitempty"`
- From *v1.ObjectReference `json:"from,omitempty"`
- LastTriggeredImage *string `json:"lastTriggeredImage,omitempty"`
+ Automatic *bool `json:"automatic,omitempty"`
+ ContainerNames []string `json:"containerNames,omitempty"`
+ From *corev1.ObjectReference `json:"from,omitempty"`
+ LastTriggeredImage *string `json:"lastTriggeredImage,omitempty"`
}
// DeploymentTriggerImageChangeParamsApplyConfiguration constructs a declarative configuration of the DeploymentTriggerImageChangeParams type for use with
@@ -42,7 +42,7 @@ func (b *DeploymentTriggerImageChangeParamsApplyConfiguration) WithContainerName
// WithFrom sets the From field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the From field is set to the value of the last call.
-func (b *DeploymentTriggerImageChangeParamsApplyConfiguration) WithFrom(value v1.ObjectReference) *DeploymentTriggerImageChangeParamsApplyConfiguration {
+func (b *DeploymentTriggerImageChangeParamsApplyConfiguration) WithFrom(value corev1.ObjectReference) *DeploymentTriggerImageChangeParamsApplyConfiguration {
b.From = &value
return b
}
diff --git a/apps/applyconfigurations/apps/v1/deploymenttriggerpolicy.go b/apps/applyconfigurations/apps/v1/deploymenttriggerpolicy.go
index 30eb54715..7e6dc5b5b 100644
--- a/apps/applyconfigurations/apps/v1/deploymenttriggerpolicy.go
+++ b/apps/applyconfigurations/apps/v1/deploymenttriggerpolicy.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/apps/v1"
+ appsv1 "github.com/openshift/api/apps/v1"
)
// DeploymentTriggerPolicyApplyConfiguration represents a declarative configuration of the DeploymentTriggerPolicy type for use
// with apply.
type DeploymentTriggerPolicyApplyConfiguration struct {
- Type *v1.DeploymentTriggerType `json:"type,omitempty"`
+ Type *appsv1.DeploymentTriggerType `json:"type,omitempty"`
ImageChangeParams *DeploymentTriggerImageChangeParamsApplyConfiguration `json:"imageChangeParams,omitempty"`
}
@@ -22,7 +22,7 @@ func DeploymentTriggerPolicy() *DeploymentTriggerPolicyApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *DeploymentTriggerPolicyApplyConfiguration) WithType(value v1.DeploymentTriggerType) *DeploymentTriggerPolicyApplyConfiguration {
+func (b *DeploymentTriggerPolicyApplyConfiguration) WithType(value appsv1.DeploymentTriggerType) *DeploymentTriggerPolicyApplyConfiguration {
b.Type = &value
return b
}
diff --git a/apps/applyconfigurations/apps/v1/execnewpodhook.go b/apps/applyconfigurations/apps/v1/execnewpodhook.go
index c653879ac..ae81c4ef5 100644
--- a/apps/applyconfigurations/apps/v1/execnewpodhook.go
+++ b/apps/applyconfigurations/apps/v1/execnewpodhook.go
@@ -3,16 +3,16 @@
package v1
import (
- v1 "k8s.io/api/core/v1"
+ corev1 "k8s.io/api/core/v1"
)
// ExecNewPodHookApplyConfiguration represents a declarative configuration of the ExecNewPodHook type for use
// with apply.
type ExecNewPodHookApplyConfiguration struct {
- Command []string `json:"command,omitempty"`
- Env []v1.EnvVar `json:"env,omitempty"`
- ContainerName *string `json:"containerName,omitempty"`
- Volumes []string `json:"volumes,omitempty"`
+ Command []string `json:"command,omitempty"`
+ Env []corev1.EnvVar `json:"env,omitempty"`
+ ContainerName *string `json:"containerName,omitempty"`
+ Volumes []string `json:"volumes,omitempty"`
}
// ExecNewPodHookApplyConfiguration constructs a declarative configuration of the ExecNewPodHook type for use with
@@ -34,7 +34,7 @@ func (b *ExecNewPodHookApplyConfiguration) WithCommand(values ...string) *ExecNe
// WithEnv adds the given value to the Env field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Env field.
-func (b *ExecNewPodHookApplyConfiguration) WithEnv(values ...v1.EnvVar) *ExecNewPodHookApplyConfiguration {
+func (b *ExecNewPodHookApplyConfiguration) WithEnv(values ...corev1.EnvVar) *ExecNewPodHookApplyConfiguration {
for i := range values {
b.Env = append(b.Env, values[i])
}
diff --git a/apps/applyconfigurations/apps/v1/lifecyclehook.go b/apps/applyconfigurations/apps/v1/lifecyclehook.go
index 85ee84d19..637f064e4 100644
--- a/apps/applyconfigurations/apps/v1/lifecyclehook.go
+++ b/apps/applyconfigurations/apps/v1/lifecyclehook.go
@@ -3,15 +3,15 @@
package v1
import (
- v1 "github.com/openshift/api/apps/v1"
+ appsv1 "github.com/openshift/api/apps/v1"
)
// LifecycleHookApplyConfiguration represents a declarative configuration of the LifecycleHook type for use
// with apply.
type LifecycleHookApplyConfiguration struct {
- FailurePolicy *v1.LifecycleHookFailurePolicy `json:"failurePolicy,omitempty"`
- ExecNewPod *ExecNewPodHookApplyConfiguration `json:"execNewPod,omitempty"`
- TagImages []TagImageHookApplyConfiguration `json:"tagImages,omitempty"`
+ FailurePolicy *appsv1.LifecycleHookFailurePolicy `json:"failurePolicy,omitempty"`
+ ExecNewPod *ExecNewPodHookApplyConfiguration `json:"execNewPod,omitempty"`
+ TagImages []TagImageHookApplyConfiguration `json:"tagImages,omitempty"`
}
// LifecycleHookApplyConfiguration constructs a declarative configuration of the LifecycleHook type for use with
@@ -23,7 +23,7 @@ func LifecycleHook() *LifecycleHookApplyConfiguration {
// WithFailurePolicy sets the FailurePolicy field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the FailurePolicy field is set to the value of the last call.
-func (b *LifecycleHookApplyConfiguration) WithFailurePolicy(value v1.LifecycleHookFailurePolicy) *LifecycleHookApplyConfiguration {
+func (b *LifecycleHookApplyConfiguration) WithFailurePolicy(value appsv1.LifecycleHookFailurePolicy) *LifecycleHookApplyConfiguration {
b.FailurePolicy = &value
return b
}
diff --git a/apps/applyconfigurations/apps/v1/tagimagehook.go b/apps/applyconfigurations/apps/v1/tagimagehook.go
index a054d02d3..6b88c2f50 100644
--- a/apps/applyconfigurations/apps/v1/tagimagehook.go
+++ b/apps/applyconfigurations/apps/v1/tagimagehook.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "k8s.io/api/core/v1"
+ corev1 "k8s.io/api/core/v1"
)
// TagImageHookApplyConfiguration represents a declarative configuration of the TagImageHook type for use
// with apply.
type TagImageHookApplyConfiguration struct {
- ContainerName *string `json:"containerName,omitempty"`
- To *v1.ObjectReference `json:"to,omitempty"`
+ ContainerName *string `json:"containerName,omitempty"`
+ To *corev1.ObjectReference `json:"to,omitempty"`
}
// TagImageHookApplyConfiguration constructs a declarative configuration of the TagImageHook type for use with
@@ -30,7 +30,7 @@ func (b *TagImageHookApplyConfiguration) WithContainerName(value string) *TagIma
// WithTo sets the To field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the To field is set to the value of the last call.
-func (b *TagImageHookApplyConfiguration) WithTo(value v1.ObjectReference) *TagImageHookApplyConfiguration {
+func (b *TagImageHookApplyConfiguration) WithTo(value corev1.ObjectReference) *TagImageHookApplyConfiguration {
b.To = &value
return b
}
diff --git a/apps/applyconfigurations/internal/internal.go b/apps/applyconfigurations/internal/internal.go
index 03f0e12a5..92598eb14 100644
--- a/apps/applyconfigurations/internal/internal.go
+++ b/apps/applyconfigurations/internal/internal.go
@@ -3,8 +3,8 @@
package internal
import (
- "fmt"
- "sync"
+ fmt "fmt"
+ sync "sync"
typed "sigs.k8s.io/structured-merge-diff/v4/typed"
)
@@ -1515,6 +1515,9 @@ var schemaYAML = typed.YAMLObject(`types:
- name: runAsUser
type:
scalar: numeric
+ - name: seLinuxChangePolicy
+ type:
+ scalar: string
- name: seLinuxOptions
type:
namedType: io.k8s.api.core.v1.SELinuxOptions
@@ -1655,6 +1658,9 @@ var schemaYAML = typed.YAMLObject(`types:
elementRelationship: associative
keys:
- name
+ - name: resources
+ type:
+ namedType: io.k8s.api.core.v1.ResourceRequirements
- name: restartPolicy
type:
scalar: string
diff --git a/apps/clientset/versioned/clientset.go b/apps/clientset/versioned/clientset.go
index bc1d7a534..516edbee6 100644
--- a/apps/clientset/versioned/clientset.go
+++ b/apps/clientset/versioned/clientset.go
@@ -3,8 +3,8 @@
package versioned
import (
- "fmt"
- "net/http"
+ fmt "fmt"
+ http "net/http"
appsv1 "github.com/openshift/client-go/apps/clientset/versioned/typed/apps/v1"
discovery "k8s.io/client-go/discovery"
diff --git a/apps/clientset/versioned/typed/apps/v1/apps_client.go b/apps/clientset/versioned/typed/apps/v1/apps_client.go
index a2c507e16..e368d6a64 100644
--- a/apps/clientset/versioned/typed/apps/v1/apps_client.go
+++ b/apps/clientset/versioned/typed/apps/v1/apps_client.go
@@ -3,10 +3,10 @@
package v1
import (
- "net/http"
+ http "net/http"
- v1 "github.com/openshift/api/apps/v1"
- "github.com/openshift/client-go/apps/clientset/versioned/scheme"
+ appsv1 "github.com/openshift/api/apps/v1"
+ scheme "github.com/openshift/client-go/apps/clientset/versioned/scheme"
rest "k8s.io/client-go/rest"
)
@@ -69,10 +69,10 @@ func New(c rest.Interface) *AppsV1Client {
}
func setConfigDefaults(config *rest.Config) error {
- gv := v1.SchemeGroupVersion
+ gv := appsv1.SchemeGroupVersion
config.GroupVersion = &gv
config.APIPath = "/apis"
- config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
+ config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion()
if config.UserAgent == "" {
config.UserAgent = rest.DefaultKubernetesUserAgent()
diff --git a/apps/clientset/versioned/typed/apps/v1/deploymentconfig.go b/apps/clientset/versioned/typed/apps/v1/deploymentconfig.go
index 9f450f896..a7e3bb7df 100644
--- a/apps/clientset/versioned/typed/apps/v1/deploymentconfig.go
+++ b/apps/clientset/versioned/typed/apps/v1/deploymentconfig.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/apps/v1"
- appsv1 "github.com/openshift/client-go/apps/applyconfigurations/apps/v1"
+ appsv1 "github.com/openshift/api/apps/v1"
+ applyconfigurationsappsv1 "github.com/openshift/client-go/apps/applyconfigurations/apps/v1"
scheme "github.com/openshift/client-go/apps/clientset/versioned/scheme"
v1beta1 "k8s.io/api/extensions/v1beta1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@@ -23,21 +23,21 @@ type DeploymentConfigsGetter interface {
// DeploymentConfigInterface has methods to work with DeploymentConfig resources.
type DeploymentConfigInterface interface {
- Create(ctx context.Context, deploymentConfig *v1.DeploymentConfig, opts metav1.CreateOptions) (*v1.DeploymentConfig, error)
- Update(ctx context.Context, deploymentConfig *v1.DeploymentConfig, opts metav1.UpdateOptions) (*v1.DeploymentConfig, error)
+ Create(ctx context.Context, deploymentConfig *appsv1.DeploymentConfig, opts metav1.CreateOptions) (*appsv1.DeploymentConfig, error)
+ Update(ctx context.Context, deploymentConfig *appsv1.DeploymentConfig, opts metav1.UpdateOptions) (*appsv1.DeploymentConfig, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, deploymentConfig *v1.DeploymentConfig, opts metav1.UpdateOptions) (*v1.DeploymentConfig, error)
+ UpdateStatus(ctx context.Context, deploymentConfig *appsv1.DeploymentConfig, opts metav1.UpdateOptions) (*appsv1.DeploymentConfig, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.DeploymentConfig, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.DeploymentConfigList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*appsv1.DeploymentConfig, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*appsv1.DeploymentConfigList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DeploymentConfig, err error)
- Apply(ctx context.Context, deploymentConfig *appsv1.DeploymentConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.DeploymentConfig, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *appsv1.DeploymentConfig, err error)
+ Apply(ctx context.Context, deploymentConfig *applyconfigurationsappsv1.DeploymentConfigApplyConfiguration, opts metav1.ApplyOptions) (result *appsv1.DeploymentConfig, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, deploymentConfig *appsv1.DeploymentConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.DeploymentConfig, err error)
- Instantiate(ctx context.Context, deploymentConfigName string, deploymentRequest *v1.DeploymentRequest, opts metav1.CreateOptions) (*v1.DeploymentConfig, error)
- Rollback(ctx context.Context, deploymentConfigName string, deploymentConfigRollback *v1.DeploymentConfigRollback, opts metav1.CreateOptions) (*v1.DeploymentConfig, error)
+ ApplyStatus(ctx context.Context, deploymentConfig *applyconfigurationsappsv1.DeploymentConfigApplyConfiguration, opts metav1.ApplyOptions) (result *appsv1.DeploymentConfig, err error)
+ Instantiate(ctx context.Context, deploymentConfigName string, deploymentRequest *appsv1.DeploymentRequest, opts metav1.CreateOptions) (*appsv1.DeploymentConfig, error)
+ Rollback(ctx context.Context, deploymentConfigName string, deploymentConfigRollback *appsv1.DeploymentConfigRollback, opts metav1.CreateOptions) (*appsv1.DeploymentConfig, error)
GetScale(ctx context.Context, deploymentConfigName string, options metav1.GetOptions) (*v1beta1.Scale, error)
UpdateScale(ctx context.Context, deploymentConfigName string, scale *v1beta1.Scale, opts metav1.UpdateOptions) (*v1beta1.Scale, error)
@@ -46,25 +46,26 @@ type DeploymentConfigInterface interface {
// deploymentConfigs implements DeploymentConfigInterface
type deploymentConfigs struct {
- *gentype.ClientWithListAndApply[*v1.DeploymentConfig, *v1.DeploymentConfigList, *appsv1.DeploymentConfigApplyConfiguration]
+ *gentype.ClientWithListAndApply[*appsv1.DeploymentConfig, *appsv1.DeploymentConfigList, *applyconfigurationsappsv1.DeploymentConfigApplyConfiguration]
}
// newDeploymentConfigs returns a DeploymentConfigs
func newDeploymentConfigs(c *AppsV1Client, namespace string) *deploymentConfigs {
return &deploymentConfigs{
- gentype.NewClientWithListAndApply[*v1.DeploymentConfig, *v1.DeploymentConfigList, *appsv1.DeploymentConfigApplyConfiguration](
+ gentype.NewClientWithListAndApply[*appsv1.DeploymentConfig, *appsv1.DeploymentConfigList, *applyconfigurationsappsv1.DeploymentConfigApplyConfiguration](
"deploymentconfigs",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
- func() *v1.DeploymentConfig { return &v1.DeploymentConfig{} },
- func() *v1.DeploymentConfigList { return &v1.DeploymentConfigList{} }),
+ func() *appsv1.DeploymentConfig { return &appsv1.DeploymentConfig{} },
+ func() *appsv1.DeploymentConfigList { return &appsv1.DeploymentConfigList{} },
+ ),
}
}
// Instantiate takes the representation of a deploymentRequest and creates it. Returns the server's representation of the deploymentConfig, and an error, if there is any.
-func (c *deploymentConfigs) Instantiate(ctx context.Context, deploymentConfigName string, deploymentRequest *v1.DeploymentRequest, opts metav1.CreateOptions) (result *v1.DeploymentConfig, err error) {
- result = &v1.DeploymentConfig{}
+func (c *deploymentConfigs) Instantiate(ctx context.Context, deploymentConfigName string, deploymentRequest *appsv1.DeploymentRequest, opts metav1.CreateOptions) (result *appsv1.DeploymentConfig, err error) {
+ result = &appsv1.DeploymentConfig{}
err = c.GetClient().Post().
Namespace(c.GetNamespace()).
Resource("deploymentconfigs").
@@ -78,8 +79,8 @@ func (c *deploymentConfigs) Instantiate(ctx context.Context, deploymentConfigNam
}
// Rollback takes the representation of a deploymentConfigRollback and creates it. Returns the server's representation of the deploymentConfig, and an error, if there is any.
-func (c *deploymentConfigs) Rollback(ctx context.Context, deploymentConfigName string, deploymentConfigRollback *v1.DeploymentConfigRollback, opts metav1.CreateOptions) (result *v1.DeploymentConfig, err error) {
- result = &v1.DeploymentConfig{}
+func (c *deploymentConfigs) Rollback(ctx context.Context, deploymentConfigName string, deploymentConfigRollback *appsv1.DeploymentConfigRollback, opts metav1.CreateOptions) (result *appsv1.DeploymentConfig, err error) {
+ result = &appsv1.DeploymentConfig{}
err = c.GetClient().Post().
Namespace(c.GetNamespace()).
Resource("deploymentconfigs").
diff --git a/apps/clientset/versioned/typed/apps/v1/fake/fake_apps_client.go b/apps/clientset/versioned/typed/apps/v1/fake/fake_apps_client.go
index db0133506..32a45a59e 100644
--- a/apps/clientset/versioned/typed/apps/v1/fake/fake_apps_client.go
+++ b/apps/clientset/versioned/typed/apps/v1/fake/fake_apps_client.go
@@ -13,7 +13,7 @@ type FakeAppsV1 struct {
}
func (c *FakeAppsV1) DeploymentConfigs(namespace string) v1.DeploymentConfigInterface {
- return &FakeDeploymentConfigs{c, namespace}
+ return newFakeDeploymentConfigs(c, namespace)
}
// RESTClient returns a RESTClient that is used to communicate
diff --git a/apps/clientset/versioned/typed/apps/v1/fake/fake_deploymentconfig.go b/apps/clientset/versioned/typed/apps/v1/fake/fake_deploymentconfig.go
index df4d021f6..f5f4b9d04 100644
--- a/apps/clientset/versioned/typed/apps/v1/fake/fake_deploymentconfig.go
+++ b/apps/clientset/versioned/typed/apps/v1/fake/fake_deploymentconfig.go
@@ -3,189 +3,47 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
+ context "context"
v1 "github.com/openshift/api/apps/v1"
appsv1 "github.com/openshift/client-go/apps/applyconfigurations/apps/v1"
+ typedappsv1 "github.com/openshift/client-go/apps/clientset/versioned/typed/apps/v1"
v1beta1 "k8s.io/api/extensions/v1beta1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
+ gentype "k8s.io/client-go/gentype"
testing "k8s.io/client-go/testing"
)
-// FakeDeploymentConfigs implements DeploymentConfigInterface
-type FakeDeploymentConfigs struct {
+// fakeDeploymentConfigs implements DeploymentConfigInterface
+type fakeDeploymentConfigs struct {
+ *gentype.FakeClientWithListAndApply[*v1.DeploymentConfig, *v1.DeploymentConfigList, *appsv1.DeploymentConfigApplyConfiguration]
Fake *FakeAppsV1
- ns string
}
-var deploymentconfigsResource = v1.SchemeGroupVersion.WithResource("deploymentconfigs")
-
-var deploymentconfigsKind = v1.SchemeGroupVersion.WithKind("DeploymentConfig")
-
-// Get takes name of the deploymentConfig, and returns the corresponding deploymentConfig object, and an error if there is any.
-func (c *FakeDeploymentConfigs) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.DeploymentConfig, err error) {
- emptyResult := &v1.DeploymentConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewGetActionWithOptions(deploymentconfigsResource, c.ns, name, options), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.DeploymentConfig), err
-}
-
-// List takes label and field selectors, and returns the list of DeploymentConfigs that match those selectors.
-func (c *FakeDeploymentConfigs) List(ctx context.Context, opts metav1.ListOptions) (result *v1.DeploymentConfigList, err error) {
- emptyResult := &v1.DeploymentConfigList{}
- obj, err := c.Fake.
- Invokes(testing.NewListActionWithOptions(deploymentconfigsResource, deploymentconfigsKind, c.ns, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.DeploymentConfigList{ListMeta: obj.(*v1.DeploymentConfigList).ListMeta}
- for _, item := range obj.(*v1.DeploymentConfigList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested deploymentConfigs.
-func (c *FakeDeploymentConfigs) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewWatchActionWithOptions(deploymentconfigsResource, c.ns, opts))
-
-}
-
-// Create takes the representation of a deploymentConfig and creates it. Returns the server's representation of the deploymentConfig, and an error, if there is any.
-func (c *FakeDeploymentConfigs) Create(ctx context.Context, deploymentConfig *v1.DeploymentConfig, opts metav1.CreateOptions) (result *v1.DeploymentConfig, err error) {
- emptyResult := &v1.DeploymentConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewCreateActionWithOptions(deploymentconfigsResource, c.ns, deploymentConfig, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.DeploymentConfig), err
-}
-
-// Update takes the representation of a deploymentConfig and updates it. Returns the server's representation of the deploymentConfig, and an error, if there is any.
-func (c *FakeDeploymentConfigs) Update(ctx context.Context, deploymentConfig *v1.DeploymentConfig, opts metav1.UpdateOptions) (result *v1.DeploymentConfig, err error) {
- emptyResult := &v1.DeploymentConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateActionWithOptions(deploymentconfigsResource, c.ns, deploymentConfig, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
+func newFakeDeploymentConfigs(fake *FakeAppsV1, namespace string) typedappsv1.DeploymentConfigInterface {
+ return &fakeDeploymentConfigs{
+ gentype.NewFakeClientWithListAndApply[*v1.DeploymentConfig, *v1.DeploymentConfigList, *appsv1.DeploymentConfigApplyConfiguration](
+ fake.Fake,
+ namespace,
+ v1.SchemeGroupVersion.WithResource("deploymentconfigs"),
+ v1.SchemeGroupVersion.WithKind("DeploymentConfig"),
+ func() *v1.DeploymentConfig { return &v1.DeploymentConfig{} },
+ func() *v1.DeploymentConfigList { return &v1.DeploymentConfigList{} },
+ func(dst, src *v1.DeploymentConfigList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.DeploymentConfigList) []*v1.DeploymentConfig { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.DeploymentConfigList, items []*v1.DeploymentConfig) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.DeploymentConfig), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeDeploymentConfigs) UpdateStatus(ctx context.Context, deploymentConfig *v1.DeploymentConfig, opts metav1.UpdateOptions) (result *v1.DeploymentConfig, err error) {
- emptyResult := &v1.DeploymentConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateSubresourceActionWithOptions(deploymentconfigsResource, "status", c.ns, deploymentConfig, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.DeploymentConfig), err
-}
-
-// Delete takes name of the deploymentConfig and deletes it. Returns an error if one occurs.
-func (c *FakeDeploymentConfigs) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewDeleteActionWithOptions(deploymentconfigsResource, c.ns, name, opts), &v1.DeploymentConfig{})
-
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeDeploymentConfigs) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewDeleteCollectionActionWithOptions(deploymentconfigsResource, c.ns, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.DeploymentConfigList{})
- return err
-}
-
-// Patch applies the patch and returns the patched deploymentConfig.
-func (c *FakeDeploymentConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DeploymentConfig, err error) {
- emptyResult := &v1.DeploymentConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(deploymentconfigsResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.DeploymentConfig), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied deploymentConfig.
-func (c *FakeDeploymentConfigs) Apply(ctx context.Context, deploymentConfig *appsv1.DeploymentConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.DeploymentConfig, err error) {
- if deploymentConfig == nil {
- return nil, fmt.Errorf("deploymentConfig provided to Apply must not be nil")
- }
- data, err := json.Marshal(deploymentConfig)
- if err != nil {
- return nil, err
- }
- name := deploymentConfig.Name
- if name == nil {
- return nil, fmt.Errorf("deploymentConfig.Name must be provided to Apply")
- }
- emptyResult := &v1.DeploymentConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(deploymentconfigsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.DeploymentConfig), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeDeploymentConfigs) ApplyStatus(ctx context.Context, deploymentConfig *appsv1.DeploymentConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.DeploymentConfig, err error) {
- if deploymentConfig == nil {
- return nil, fmt.Errorf("deploymentConfig provided to Apply must not be nil")
- }
- data, err := json.Marshal(deploymentConfig)
- if err != nil {
- return nil, err
- }
- name := deploymentConfig.Name
- if name == nil {
- return nil, fmt.Errorf("deploymentConfig.Name must be provided to Apply")
- }
- emptyResult := &v1.DeploymentConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(deploymentconfigsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.DeploymentConfig), err
}
// Instantiate takes the representation of a deploymentRequest and creates it. Returns the server's representation of the deploymentConfig, and an error, if there is any.
-func (c *FakeDeploymentConfigs) Instantiate(ctx context.Context, deploymentConfigName string, deploymentRequest *v1.DeploymentRequest, opts metav1.CreateOptions) (result *v1.DeploymentConfig, err error) {
+func (c *fakeDeploymentConfigs) Instantiate(ctx context.Context, deploymentConfigName string, deploymentRequest *v1.DeploymentRequest, opts metav1.CreateOptions) (result *v1.DeploymentConfig, err error) {
emptyResult := &v1.DeploymentConfig{}
obj, err := c.Fake.
- Invokes(testing.NewCreateSubresourceActionWithOptions(deploymentconfigsResource, deploymentConfigName, "instantiate", c.ns, deploymentRequest, opts), emptyResult)
+ Invokes(testing.NewCreateSubresourceActionWithOptions(c.Resource(), deploymentConfigName, "instantiate", c.Namespace(), deploymentRequest, opts), emptyResult)
if obj == nil {
return emptyResult, err
@@ -194,10 +52,10 @@ func (c *FakeDeploymentConfigs) Instantiate(ctx context.Context, deploymentConfi
}
// Rollback takes the representation of a deploymentConfigRollback and creates it. Returns the server's representation of the deploymentConfig, and an error, if there is any.
-func (c *FakeDeploymentConfigs) Rollback(ctx context.Context, deploymentConfigName string, deploymentConfigRollback *v1.DeploymentConfigRollback, opts metav1.CreateOptions) (result *v1.DeploymentConfig, err error) {
+func (c *fakeDeploymentConfigs) Rollback(ctx context.Context, deploymentConfigName string, deploymentConfigRollback *v1.DeploymentConfigRollback, opts metav1.CreateOptions) (result *v1.DeploymentConfig, err error) {
emptyResult := &v1.DeploymentConfig{}
obj, err := c.Fake.
- Invokes(testing.NewCreateSubresourceActionWithOptions(deploymentconfigsResource, deploymentConfigName, "rollback", c.ns, deploymentConfigRollback, opts), emptyResult)
+ Invokes(testing.NewCreateSubresourceActionWithOptions(c.Resource(), deploymentConfigName, "rollback", c.Namespace(), deploymentConfigRollback, opts), emptyResult)
if obj == nil {
return emptyResult, err
@@ -206,10 +64,10 @@ func (c *FakeDeploymentConfigs) Rollback(ctx context.Context, deploymentConfigNa
}
// GetScale takes name of the deploymentConfig, and returns the corresponding scale object, and an error if there is any.
-func (c *FakeDeploymentConfigs) GetScale(ctx context.Context, deploymentConfigName string, options metav1.GetOptions) (result *v1beta1.Scale, err error) {
+func (c *fakeDeploymentConfigs) GetScale(ctx context.Context, deploymentConfigName string, options metav1.GetOptions) (result *v1beta1.Scale, err error) {
emptyResult := &v1beta1.Scale{}
obj, err := c.Fake.
- Invokes(testing.NewGetSubresourceActionWithOptions(deploymentconfigsResource, c.ns, "scale", deploymentConfigName, options), emptyResult)
+ Invokes(testing.NewGetSubresourceActionWithOptions(c.Resource(), c.Namespace(), "scale", deploymentConfigName, options), emptyResult)
if obj == nil {
return emptyResult, err
@@ -218,10 +76,10 @@ func (c *FakeDeploymentConfigs) GetScale(ctx context.Context, deploymentConfigNa
}
// UpdateScale takes the representation of a scale and updates it. Returns the server's representation of the scale, and an error, if there is any.
-func (c *FakeDeploymentConfigs) UpdateScale(ctx context.Context, deploymentConfigName string, scale *v1beta1.Scale, opts metav1.UpdateOptions) (result *v1beta1.Scale, err error) {
+func (c *fakeDeploymentConfigs) UpdateScale(ctx context.Context, deploymentConfigName string, scale *v1beta1.Scale, opts metav1.UpdateOptions) (result *v1beta1.Scale, err error) {
emptyResult := &v1beta1.Scale{}
obj, err := c.Fake.
- Invokes(testing.NewUpdateSubresourceActionWithOptions(deploymentconfigsResource, "scale", c.ns, scale, opts), &v1beta1.Scale{})
+ Invokes(testing.NewUpdateSubresourceActionWithOptions(c.Resource(), "scale", c.Namespace(), scale, opts), &v1beta1.Scale{})
if obj == nil {
return emptyResult, err
diff --git a/apps/informers/externalversions/apps/v1/deploymentconfig.go b/apps/informers/externalversions/apps/v1/deploymentconfig.go
index 4be7179ad..b741a6320 100644
--- a/apps/informers/externalversions/apps/v1/deploymentconfig.go
+++ b/apps/informers/externalversions/apps/v1/deploymentconfig.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- appsv1 "github.com/openshift/api/apps/v1"
+ apiappsv1 "github.com/openshift/api/apps/v1"
versioned "github.com/openshift/client-go/apps/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/apps/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/apps/listers/apps/v1"
+ appsv1 "github.com/openshift/client-go/apps/listers/apps/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// DeploymentConfigs.
type DeploymentConfigInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.DeploymentConfigLister
+ Lister() appsv1.DeploymentConfigLister
}
type deploymentConfigInformer struct {
@@ -55,7 +55,7 @@ func NewFilteredDeploymentConfigInformer(client versioned.Interface, namespace s
return client.AppsV1().DeploymentConfigs(namespace).Watch(context.TODO(), options)
},
},
- &appsv1.DeploymentConfig{},
+ &apiappsv1.DeploymentConfig{},
resyncPeriod,
indexers,
)
@@ -66,9 +66,9 @@ func (f *deploymentConfigInformer) defaultInformer(client versioned.Interface, r
}
func (f *deploymentConfigInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&appsv1.DeploymentConfig{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiappsv1.DeploymentConfig{}, f.defaultInformer)
}
-func (f *deploymentConfigInformer) Lister() v1.DeploymentConfigLister {
- return v1.NewDeploymentConfigLister(f.Informer().GetIndexer())
+func (f *deploymentConfigInformer) Lister() appsv1.DeploymentConfigLister {
+ return appsv1.NewDeploymentConfigLister(f.Informer().GetIndexer())
}
diff --git a/apps/informers/externalversions/generic.go b/apps/informers/externalversions/generic.go
index 7ea4a7c77..c88774584 100644
--- a/apps/informers/externalversions/generic.go
+++ b/apps/informers/externalversions/generic.go
@@ -3,7 +3,7 @@
package externalversions
import (
- "fmt"
+ fmt "fmt"
v1 "github.com/openshift/api/apps/v1"
schema "k8s.io/apimachinery/pkg/runtime/schema"
diff --git a/apps/listers/apps/v1/deploymentconfig.go b/apps/listers/apps/v1/deploymentconfig.go
index e66f622e8..074682e44 100644
--- a/apps/listers/apps/v1/deploymentconfig.go
+++ b/apps/listers/apps/v1/deploymentconfig.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/apps/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ appsv1 "github.com/openshift/api/apps/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// DeploymentConfigLister helps list DeploymentConfigs.
@@ -14,7 +14,7 @@ import (
type DeploymentConfigLister interface {
// List lists all DeploymentConfigs in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.DeploymentConfig, err error)
+ List(selector labels.Selector) (ret []*appsv1.DeploymentConfig, err error)
// DeploymentConfigs returns an object that can list and get DeploymentConfigs.
DeploymentConfigs(namespace string) DeploymentConfigNamespaceLister
DeploymentConfigListerExpansion
@@ -22,17 +22,17 @@ type DeploymentConfigLister interface {
// deploymentConfigLister implements the DeploymentConfigLister interface.
type deploymentConfigLister struct {
- listers.ResourceIndexer[*v1.DeploymentConfig]
+ listers.ResourceIndexer[*appsv1.DeploymentConfig]
}
// NewDeploymentConfigLister returns a new DeploymentConfigLister.
func NewDeploymentConfigLister(indexer cache.Indexer) DeploymentConfigLister {
- return &deploymentConfigLister{listers.New[*v1.DeploymentConfig](indexer, v1.Resource("deploymentconfig"))}
+ return &deploymentConfigLister{listers.New[*appsv1.DeploymentConfig](indexer, appsv1.Resource("deploymentconfig"))}
}
// DeploymentConfigs returns an object that can list and get DeploymentConfigs.
func (s *deploymentConfigLister) DeploymentConfigs(namespace string) DeploymentConfigNamespaceLister {
- return deploymentConfigNamespaceLister{listers.NewNamespaced[*v1.DeploymentConfig](s.ResourceIndexer, namespace)}
+ return deploymentConfigNamespaceLister{listers.NewNamespaced[*appsv1.DeploymentConfig](s.ResourceIndexer, namespace)}
}
// DeploymentConfigNamespaceLister helps list and get DeploymentConfigs.
@@ -40,15 +40,15 @@ func (s *deploymentConfigLister) DeploymentConfigs(namespace string) DeploymentC
type DeploymentConfigNamespaceLister interface {
// List lists all DeploymentConfigs in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.DeploymentConfig, err error)
+ List(selector labels.Selector) (ret []*appsv1.DeploymentConfig, err error)
// Get retrieves the DeploymentConfig from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.DeploymentConfig, error)
+ Get(name string) (*appsv1.DeploymentConfig, error)
DeploymentConfigNamespaceListerExpansion
}
// deploymentConfigNamespaceLister implements the DeploymentConfigNamespaceLister
// interface.
type deploymentConfigNamespaceLister struct {
- listers.ResourceIndexer[*v1.DeploymentConfig]
+ listers.ResourceIndexer[*appsv1.DeploymentConfig]
}
diff --git a/authorization/applyconfigurations/authorization/v1/clusterrole.go b/authorization/applyconfigurations/authorization/v1/clusterrole.go
index efb6e3ce1..e09f47e9a 100644
--- a/authorization/applyconfigurations/authorization/v1/clusterrole.go
+++ b/authorization/applyconfigurations/authorization/v1/clusterrole.go
@@ -3,22 +3,22 @@
package v1
import (
- apiauthorizationv1 "github.com/openshift/api/authorization/v1"
+ authorizationv1 "github.com/openshift/api/authorization/v1"
internal "github.com/openshift/client-go/authorization/applyconfigurations/internal"
rbacv1 "k8s.io/api/rbac/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ClusterRoleApplyConfiguration represents a declarative configuration of the ClusterRole type for use
// with apply.
type ClusterRoleApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Rules []PolicyRuleApplyConfiguration `json:"rules,omitempty"`
- AggregationRule *rbacv1.AggregationRule `json:"aggregationRule,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Rules []PolicyRuleApplyConfiguration `json:"rules,omitempty"`
+ AggregationRule *rbacv1.AggregationRule `json:"aggregationRule,omitempty"`
}
// ClusterRole constructs a declarative configuration of the ClusterRole type for use with
@@ -42,18 +42,18 @@ func ClusterRole(name string) *ClusterRoleApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractClusterRole(clusterRole *apiauthorizationv1.ClusterRole, fieldManager string) (*ClusterRoleApplyConfiguration, error) {
+func ExtractClusterRole(clusterRole *authorizationv1.ClusterRole, fieldManager string) (*ClusterRoleApplyConfiguration, error) {
return extractClusterRole(clusterRole, fieldManager, "")
}
// ExtractClusterRoleStatus is the same as ExtractClusterRole except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractClusterRoleStatus(clusterRole *apiauthorizationv1.ClusterRole, fieldManager string) (*ClusterRoleApplyConfiguration, error) {
+func ExtractClusterRoleStatus(clusterRole *authorizationv1.ClusterRole, fieldManager string) (*ClusterRoleApplyConfiguration, error) {
return extractClusterRole(clusterRole, fieldManager, "status")
}
-func extractClusterRole(clusterRole *apiauthorizationv1.ClusterRole, fieldManager string, subresource string) (*ClusterRoleApplyConfiguration, error) {
+func extractClusterRole(clusterRole *authorizationv1.ClusterRole, fieldManager string, subresource string) (*ClusterRoleApplyConfiguration, error) {
b := &ClusterRoleApplyConfiguration{}
err := managedfields.ExtractInto(clusterRole, internal.Parser().Type("com.github.openshift.api.authorization.v1.ClusterRole"), fieldManager, b, subresource)
if err != nil {
@@ -70,7 +70,7 @@ func extractClusterRole(clusterRole *apiauthorizationv1.ClusterRole, fieldManage
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ClusterRoleApplyConfiguration) WithKind(value string) *ClusterRoleApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -78,7 +78,7 @@ func (b *ClusterRoleApplyConfiguration) WithKind(value string) *ClusterRoleApply
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ClusterRoleApplyConfiguration) WithAPIVersion(value string) *ClusterRoleApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -87,7 +87,7 @@ func (b *ClusterRoleApplyConfiguration) WithAPIVersion(value string) *ClusterRol
// If called multiple times, the Name field is set to the value of the last call.
func (b *ClusterRoleApplyConfiguration) WithName(value string) *ClusterRoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -96,7 +96,7 @@ func (b *ClusterRoleApplyConfiguration) WithName(value string) *ClusterRoleApply
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ClusterRoleApplyConfiguration) WithGenerateName(value string) *ClusterRoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -105,7 +105,7 @@ func (b *ClusterRoleApplyConfiguration) WithGenerateName(value string) *ClusterR
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ClusterRoleApplyConfiguration) WithNamespace(value string) *ClusterRoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -114,7 +114,7 @@ func (b *ClusterRoleApplyConfiguration) WithNamespace(value string) *ClusterRole
// If called multiple times, the UID field is set to the value of the last call.
func (b *ClusterRoleApplyConfiguration) WithUID(value types.UID) *ClusterRoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -123,7 +123,7 @@ func (b *ClusterRoleApplyConfiguration) WithUID(value types.UID) *ClusterRoleApp
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ClusterRoleApplyConfiguration) WithResourceVersion(value string) *ClusterRoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -132,25 +132,25 @@ func (b *ClusterRoleApplyConfiguration) WithResourceVersion(value string) *Clust
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ClusterRoleApplyConfiguration) WithGeneration(value int64) *ClusterRoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *ClusterRoleApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ClusterRoleApplyConfiguration {
+func (b *ClusterRoleApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ClusterRoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *ClusterRoleApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ClusterRoleApplyConfiguration {
+func (b *ClusterRoleApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ClusterRoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -159,7 +159,7 @@ func (b *ClusterRoleApplyConfiguration) WithDeletionTimestamp(value metav1.Time)
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ClusterRoleApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ClusterRoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -169,11 +169,11 @@ func (b *ClusterRoleApplyConfiguration) WithDeletionGracePeriodSeconds(value int
// overwriting an existing map entries in Labels field with the same key.
func (b *ClusterRoleApplyConfiguration) WithLabels(entries map[string]string) *ClusterRoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -184,11 +184,11 @@ func (b *ClusterRoleApplyConfiguration) WithLabels(entries map[string]string) *C
// overwriting an existing map entries in Annotations field with the same key.
func (b *ClusterRoleApplyConfiguration) WithAnnotations(entries map[string]string) *ClusterRoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -196,13 +196,13 @@ func (b *ClusterRoleApplyConfiguration) WithAnnotations(entries map[string]strin
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *ClusterRoleApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ClusterRoleApplyConfiguration {
+func (b *ClusterRoleApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ClusterRoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -213,14 +213,14 @@ func (b *ClusterRoleApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerR
func (b *ClusterRoleApplyConfiguration) WithFinalizers(values ...string) *ClusterRoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *ClusterRoleApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -248,5 +248,5 @@ func (b *ClusterRoleApplyConfiguration) WithAggregationRule(value rbacv1.Aggrega
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ClusterRoleApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/authorization/applyconfigurations/authorization/v1/clusterrolebinding.go b/authorization/applyconfigurations/authorization/v1/clusterrolebinding.go
index eee67329a..428e90b04 100644
--- a/authorization/applyconfigurations/authorization/v1/clusterrolebinding.go
+++ b/authorization/applyconfigurations/authorization/v1/clusterrolebinding.go
@@ -6,21 +6,21 @@ import (
authorizationv1 "github.com/openshift/api/authorization/v1"
internal "github.com/openshift/client-go/authorization/applyconfigurations/internal"
corev1 "k8s.io/api/core/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ClusterRoleBindingApplyConfiguration represents a declarative configuration of the ClusterRoleBinding type for use
// with apply.
type ClusterRoleBindingApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- UserNames *authorizationv1.OptionalNames `json:"userNames,omitempty"`
- GroupNames *authorizationv1.OptionalNames `json:"groupNames,omitempty"`
- Subjects []corev1.ObjectReference `json:"subjects,omitempty"`
- RoleRef *corev1.ObjectReference `json:"roleRef,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ UserNames *authorizationv1.OptionalNames `json:"userNames,omitempty"`
+ GroupNames *authorizationv1.OptionalNames `json:"groupNames,omitempty"`
+ Subjects []corev1.ObjectReference `json:"subjects,omitempty"`
+ RoleRef *corev1.ObjectReference `json:"roleRef,omitempty"`
}
// ClusterRoleBinding constructs a declarative configuration of the ClusterRoleBinding type for use with
@@ -72,7 +72,7 @@ func extractClusterRoleBinding(clusterRoleBinding *authorizationv1.ClusterRoleBi
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ClusterRoleBindingApplyConfiguration) WithKind(value string) *ClusterRoleBindingApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -80,7 +80,7 @@ func (b *ClusterRoleBindingApplyConfiguration) WithKind(value string) *ClusterRo
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ClusterRoleBindingApplyConfiguration) WithAPIVersion(value string) *ClusterRoleBindingApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -89,7 +89,7 @@ func (b *ClusterRoleBindingApplyConfiguration) WithAPIVersion(value string) *Clu
// If called multiple times, the Name field is set to the value of the last call.
func (b *ClusterRoleBindingApplyConfiguration) WithName(value string) *ClusterRoleBindingApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -98,7 +98,7 @@ func (b *ClusterRoleBindingApplyConfiguration) WithName(value string) *ClusterRo
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ClusterRoleBindingApplyConfiguration) WithGenerateName(value string) *ClusterRoleBindingApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -107,7 +107,7 @@ func (b *ClusterRoleBindingApplyConfiguration) WithGenerateName(value string) *C
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ClusterRoleBindingApplyConfiguration) WithNamespace(value string) *ClusterRoleBindingApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -116,7 +116,7 @@ func (b *ClusterRoleBindingApplyConfiguration) WithNamespace(value string) *Clus
// If called multiple times, the UID field is set to the value of the last call.
func (b *ClusterRoleBindingApplyConfiguration) WithUID(value types.UID) *ClusterRoleBindingApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -125,7 +125,7 @@ func (b *ClusterRoleBindingApplyConfiguration) WithUID(value types.UID) *Cluster
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ClusterRoleBindingApplyConfiguration) WithResourceVersion(value string) *ClusterRoleBindingApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -134,25 +134,25 @@ func (b *ClusterRoleBindingApplyConfiguration) WithResourceVersion(value string)
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ClusterRoleBindingApplyConfiguration) WithGeneration(value int64) *ClusterRoleBindingApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *ClusterRoleBindingApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ClusterRoleBindingApplyConfiguration {
+func (b *ClusterRoleBindingApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ClusterRoleBindingApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *ClusterRoleBindingApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ClusterRoleBindingApplyConfiguration {
+func (b *ClusterRoleBindingApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ClusterRoleBindingApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -161,7 +161,7 @@ func (b *ClusterRoleBindingApplyConfiguration) WithDeletionTimestamp(value metav
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ClusterRoleBindingApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ClusterRoleBindingApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -171,11 +171,11 @@ func (b *ClusterRoleBindingApplyConfiguration) WithDeletionGracePeriodSeconds(va
// overwriting an existing map entries in Labels field with the same key.
func (b *ClusterRoleBindingApplyConfiguration) WithLabels(entries map[string]string) *ClusterRoleBindingApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -186,11 +186,11 @@ func (b *ClusterRoleBindingApplyConfiguration) WithLabels(entries map[string]str
// overwriting an existing map entries in Annotations field with the same key.
func (b *ClusterRoleBindingApplyConfiguration) WithAnnotations(entries map[string]string) *ClusterRoleBindingApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -198,13 +198,13 @@ func (b *ClusterRoleBindingApplyConfiguration) WithAnnotations(entries map[strin
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *ClusterRoleBindingApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ClusterRoleBindingApplyConfiguration {
+func (b *ClusterRoleBindingApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ClusterRoleBindingApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -215,14 +215,14 @@ func (b *ClusterRoleBindingApplyConfiguration) WithOwnerReferences(values ...*v1
func (b *ClusterRoleBindingApplyConfiguration) WithFinalizers(values ...string) *ClusterRoleBindingApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *ClusterRoleBindingApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -263,5 +263,5 @@ func (b *ClusterRoleBindingApplyConfiguration) WithRoleRef(value corev1.ObjectRe
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ClusterRoleBindingApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/authorization/applyconfigurations/authorization/v1/grouprestriction.go b/authorization/applyconfigurations/authorization/v1/grouprestriction.go
index d1e64430b..3bb799f39 100644
--- a/authorization/applyconfigurations/authorization/v1/grouprestriction.go
+++ b/authorization/applyconfigurations/authorization/v1/grouprestriction.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// GroupRestrictionApplyConfiguration represents a declarative configuration of the GroupRestriction type for use
// with apply.
type GroupRestrictionApplyConfiguration struct {
- Groups []string `json:"groups,omitempty"`
- Selectors []v1.LabelSelectorApplyConfiguration `json:"labels,omitempty"`
+ Groups []string `json:"groups,omitempty"`
+ Selectors []metav1.LabelSelectorApplyConfiguration `json:"labels,omitempty"`
}
// GroupRestrictionApplyConfiguration constructs a declarative configuration of the GroupRestriction type for use with
@@ -32,7 +32,7 @@ func (b *GroupRestrictionApplyConfiguration) WithGroups(values ...string) *Group
// WithSelectors adds the given value to the Selectors field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Selectors field.
-func (b *GroupRestrictionApplyConfiguration) WithSelectors(values ...*v1.LabelSelectorApplyConfiguration) *GroupRestrictionApplyConfiguration {
+func (b *GroupRestrictionApplyConfiguration) WithSelectors(values ...*metav1.LabelSelectorApplyConfiguration) *GroupRestrictionApplyConfiguration {
for i := range values {
if values[i] == nil {
panic("nil value passed to WithSelectors")
diff --git a/authorization/applyconfigurations/authorization/v1/role.go b/authorization/applyconfigurations/authorization/v1/role.go
index 2e2779858..57f9f7814 100644
--- a/authorization/applyconfigurations/authorization/v1/role.go
+++ b/authorization/applyconfigurations/authorization/v1/role.go
@@ -3,20 +3,20 @@
package v1
import (
- apiauthorizationv1 "github.com/openshift/api/authorization/v1"
+ authorizationv1 "github.com/openshift/api/authorization/v1"
internal "github.com/openshift/client-go/authorization/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// RoleApplyConfiguration represents a declarative configuration of the Role type for use
// with apply.
type RoleApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Rules []PolicyRuleApplyConfiguration `json:"rules,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Rules []PolicyRuleApplyConfiguration `json:"rules,omitempty"`
}
// Role constructs a declarative configuration of the Role type for use with
@@ -41,18 +41,18 @@ func Role(name, namespace string) *RoleApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractRole(role *apiauthorizationv1.Role, fieldManager string) (*RoleApplyConfiguration, error) {
+func ExtractRole(role *authorizationv1.Role, fieldManager string) (*RoleApplyConfiguration, error) {
return extractRole(role, fieldManager, "")
}
// ExtractRoleStatus is the same as ExtractRole except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractRoleStatus(role *apiauthorizationv1.Role, fieldManager string) (*RoleApplyConfiguration, error) {
+func ExtractRoleStatus(role *authorizationv1.Role, fieldManager string) (*RoleApplyConfiguration, error) {
return extractRole(role, fieldManager, "status")
}
-func extractRole(role *apiauthorizationv1.Role, fieldManager string, subresource string) (*RoleApplyConfiguration, error) {
+func extractRole(role *authorizationv1.Role, fieldManager string, subresource string) (*RoleApplyConfiguration, error) {
b := &RoleApplyConfiguration{}
err := managedfields.ExtractInto(role, internal.Parser().Type("com.github.openshift.api.authorization.v1.Role"), fieldManager, b, subresource)
if err != nil {
@@ -70,7 +70,7 @@ func extractRole(role *apiauthorizationv1.Role, fieldManager string, subresource
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *RoleApplyConfiguration) WithKind(value string) *RoleApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -78,7 +78,7 @@ func (b *RoleApplyConfiguration) WithKind(value string) *RoleApplyConfiguration
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *RoleApplyConfiguration) WithAPIVersion(value string) *RoleApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -87,7 +87,7 @@ func (b *RoleApplyConfiguration) WithAPIVersion(value string) *RoleApplyConfigur
// If called multiple times, the Name field is set to the value of the last call.
func (b *RoleApplyConfiguration) WithName(value string) *RoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -96,7 +96,7 @@ func (b *RoleApplyConfiguration) WithName(value string) *RoleApplyConfiguration
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *RoleApplyConfiguration) WithGenerateName(value string) *RoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -105,7 +105,7 @@ func (b *RoleApplyConfiguration) WithGenerateName(value string) *RoleApplyConfig
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *RoleApplyConfiguration) WithNamespace(value string) *RoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -114,7 +114,7 @@ func (b *RoleApplyConfiguration) WithNamespace(value string) *RoleApplyConfigura
// If called multiple times, the UID field is set to the value of the last call.
func (b *RoleApplyConfiguration) WithUID(value types.UID) *RoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -123,7 +123,7 @@ func (b *RoleApplyConfiguration) WithUID(value types.UID) *RoleApplyConfiguratio
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *RoleApplyConfiguration) WithResourceVersion(value string) *RoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -132,25 +132,25 @@ func (b *RoleApplyConfiguration) WithResourceVersion(value string) *RoleApplyCon
// If called multiple times, the Generation field is set to the value of the last call.
func (b *RoleApplyConfiguration) WithGeneration(value int64) *RoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *RoleApplyConfiguration) WithCreationTimestamp(value metav1.Time) *RoleApplyConfiguration {
+func (b *RoleApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *RoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *RoleApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *RoleApplyConfiguration {
+func (b *RoleApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *RoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -159,7 +159,7 @@ func (b *RoleApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *RoleA
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *RoleApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *RoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -169,11 +169,11 @@ func (b *RoleApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *Ro
// overwriting an existing map entries in Labels field with the same key.
func (b *RoleApplyConfiguration) WithLabels(entries map[string]string) *RoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -184,11 +184,11 @@ func (b *RoleApplyConfiguration) WithLabels(entries map[string]string) *RoleAppl
// overwriting an existing map entries in Annotations field with the same key.
func (b *RoleApplyConfiguration) WithAnnotations(entries map[string]string) *RoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -196,13 +196,13 @@ func (b *RoleApplyConfiguration) WithAnnotations(entries map[string]string) *Rol
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *RoleApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *RoleApplyConfiguration {
+func (b *RoleApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *RoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -213,14 +213,14 @@ func (b *RoleApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenc
func (b *RoleApplyConfiguration) WithFinalizers(values ...string) *RoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *RoleApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -240,5 +240,5 @@ func (b *RoleApplyConfiguration) WithRules(values ...*PolicyRuleApplyConfigurati
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *RoleApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/authorization/applyconfigurations/authorization/v1/rolebinding.go b/authorization/applyconfigurations/authorization/v1/rolebinding.go
index 6a99968c7..adc5ec78b 100644
--- a/authorization/applyconfigurations/authorization/v1/rolebinding.go
+++ b/authorization/applyconfigurations/authorization/v1/rolebinding.go
@@ -6,21 +6,21 @@ import (
authorizationv1 "github.com/openshift/api/authorization/v1"
internal "github.com/openshift/client-go/authorization/applyconfigurations/internal"
corev1 "k8s.io/api/core/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// RoleBindingApplyConfiguration represents a declarative configuration of the RoleBinding type for use
// with apply.
type RoleBindingApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- UserNames *authorizationv1.OptionalNames `json:"userNames,omitempty"`
- GroupNames *authorizationv1.OptionalNames `json:"groupNames,omitempty"`
- Subjects []corev1.ObjectReference `json:"subjects,omitempty"`
- RoleRef *corev1.ObjectReference `json:"roleRef,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ UserNames *authorizationv1.OptionalNames `json:"userNames,omitempty"`
+ GroupNames *authorizationv1.OptionalNames `json:"groupNames,omitempty"`
+ Subjects []corev1.ObjectReference `json:"subjects,omitempty"`
+ RoleRef *corev1.ObjectReference `json:"roleRef,omitempty"`
}
// RoleBinding constructs a declarative configuration of the RoleBinding type for use with
@@ -74,7 +74,7 @@ func extractRoleBinding(roleBinding *authorizationv1.RoleBinding, fieldManager s
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *RoleBindingApplyConfiguration) WithKind(value string) *RoleBindingApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -82,7 +82,7 @@ func (b *RoleBindingApplyConfiguration) WithKind(value string) *RoleBindingApply
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *RoleBindingApplyConfiguration) WithAPIVersion(value string) *RoleBindingApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -91,7 +91,7 @@ func (b *RoleBindingApplyConfiguration) WithAPIVersion(value string) *RoleBindin
// If called multiple times, the Name field is set to the value of the last call.
func (b *RoleBindingApplyConfiguration) WithName(value string) *RoleBindingApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -100,7 +100,7 @@ func (b *RoleBindingApplyConfiguration) WithName(value string) *RoleBindingApply
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *RoleBindingApplyConfiguration) WithGenerateName(value string) *RoleBindingApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -109,7 +109,7 @@ func (b *RoleBindingApplyConfiguration) WithGenerateName(value string) *RoleBind
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *RoleBindingApplyConfiguration) WithNamespace(value string) *RoleBindingApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -118,7 +118,7 @@ func (b *RoleBindingApplyConfiguration) WithNamespace(value string) *RoleBinding
// If called multiple times, the UID field is set to the value of the last call.
func (b *RoleBindingApplyConfiguration) WithUID(value types.UID) *RoleBindingApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -127,7 +127,7 @@ func (b *RoleBindingApplyConfiguration) WithUID(value types.UID) *RoleBindingApp
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *RoleBindingApplyConfiguration) WithResourceVersion(value string) *RoleBindingApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -136,25 +136,25 @@ func (b *RoleBindingApplyConfiguration) WithResourceVersion(value string) *RoleB
// If called multiple times, the Generation field is set to the value of the last call.
func (b *RoleBindingApplyConfiguration) WithGeneration(value int64) *RoleBindingApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *RoleBindingApplyConfiguration) WithCreationTimestamp(value metav1.Time) *RoleBindingApplyConfiguration {
+func (b *RoleBindingApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *RoleBindingApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *RoleBindingApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *RoleBindingApplyConfiguration {
+func (b *RoleBindingApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *RoleBindingApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -163,7 +163,7 @@ func (b *RoleBindingApplyConfiguration) WithDeletionTimestamp(value metav1.Time)
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *RoleBindingApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *RoleBindingApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -173,11 +173,11 @@ func (b *RoleBindingApplyConfiguration) WithDeletionGracePeriodSeconds(value int
// overwriting an existing map entries in Labels field with the same key.
func (b *RoleBindingApplyConfiguration) WithLabels(entries map[string]string) *RoleBindingApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -188,11 +188,11 @@ func (b *RoleBindingApplyConfiguration) WithLabels(entries map[string]string) *R
// overwriting an existing map entries in Annotations field with the same key.
func (b *RoleBindingApplyConfiguration) WithAnnotations(entries map[string]string) *RoleBindingApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -200,13 +200,13 @@ func (b *RoleBindingApplyConfiguration) WithAnnotations(entries map[string]strin
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *RoleBindingApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *RoleBindingApplyConfiguration {
+func (b *RoleBindingApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *RoleBindingApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -217,14 +217,14 @@ func (b *RoleBindingApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerR
func (b *RoleBindingApplyConfiguration) WithFinalizers(values ...string) *RoleBindingApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *RoleBindingApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -265,5 +265,5 @@ func (b *RoleBindingApplyConfiguration) WithRoleRef(value corev1.ObjectReference
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *RoleBindingApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/authorization/applyconfigurations/authorization/v1/rolebindingrestriction.go b/authorization/applyconfigurations/authorization/v1/rolebindingrestriction.go
index 497918725..0fbec3a15 100644
--- a/authorization/applyconfigurations/authorization/v1/rolebindingrestriction.go
+++ b/authorization/applyconfigurations/authorization/v1/rolebindingrestriction.go
@@ -3,20 +3,20 @@
package v1
import (
- apiauthorizationv1 "github.com/openshift/api/authorization/v1"
+ authorizationv1 "github.com/openshift/api/authorization/v1"
internal "github.com/openshift/client-go/authorization/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// RoleBindingRestrictionApplyConfiguration represents a declarative configuration of the RoleBindingRestriction type for use
// with apply.
type RoleBindingRestrictionApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *RoleBindingRestrictionSpecApplyConfiguration `json:"spec,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *RoleBindingRestrictionSpecApplyConfiguration `json:"spec,omitempty"`
}
// RoleBindingRestriction constructs a declarative configuration of the RoleBindingRestriction type for use with
@@ -41,18 +41,18 @@ func RoleBindingRestriction(name, namespace string) *RoleBindingRestrictionApply
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractRoleBindingRestriction(roleBindingRestriction *apiauthorizationv1.RoleBindingRestriction, fieldManager string) (*RoleBindingRestrictionApplyConfiguration, error) {
+func ExtractRoleBindingRestriction(roleBindingRestriction *authorizationv1.RoleBindingRestriction, fieldManager string) (*RoleBindingRestrictionApplyConfiguration, error) {
return extractRoleBindingRestriction(roleBindingRestriction, fieldManager, "")
}
// ExtractRoleBindingRestrictionStatus is the same as ExtractRoleBindingRestriction except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractRoleBindingRestrictionStatus(roleBindingRestriction *apiauthorizationv1.RoleBindingRestriction, fieldManager string) (*RoleBindingRestrictionApplyConfiguration, error) {
+func ExtractRoleBindingRestrictionStatus(roleBindingRestriction *authorizationv1.RoleBindingRestriction, fieldManager string) (*RoleBindingRestrictionApplyConfiguration, error) {
return extractRoleBindingRestriction(roleBindingRestriction, fieldManager, "status")
}
-func extractRoleBindingRestriction(roleBindingRestriction *apiauthorizationv1.RoleBindingRestriction, fieldManager string, subresource string) (*RoleBindingRestrictionApplyConfiguration, error) {
+func extractRoleBindingRestriction(roleBindingRestriction *authorizationv1.RoleBindingRestriction, fieldManager string, subresource string) (*RoleBindingRestrictionApplyConfiguration, error) {
b := &RoleBindingRestrictionApplyConfiguration{}
err := managedfields.ExtractInto(roleBindingRestriction, internal.Parser().Type("com.github.openshift.api.authorization.v1.RoleBindingRestriction"), fieldManager, b, subresource)
if err != nil {
@@ -70,7 +70,7 @@ func extractRoleBindingRestriction(roleBindingRestriction *apiauthorizationv1.Ro
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *RoleBindingRestrictionApplyConfiguration) WithKind(value string) *RoleBindingRestrictionApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -78,7 +78,7 @@ func (b *RoleBindingRestrictionApplyConfiguration) WithKind(value string) *RoleB
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *RoleBindingRestrictionApplyConfiguration) WithAPIVersion(value string) *RoleBindingRestrictionApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -87,7 +87,7 @@ func (b *RoleBindingRestrictionApplyConfiguration) WithAPIVersion(value string)
// If called multiple times, the Name field is set to the value of the last call.
func (b *RoleBindingRestrictionApplyConfiguration) WithName(value string) *RoleBindingRestrictionApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -96,7 +96,7 @@ func (b *RoleBindingRestrictionApplyConfiguration) WithName(value string) *RoleB
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *RoleBindingRestrictionApplyConfiguration) WithGenerateName(value string) *RoleBindingRestrictionApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -105,7 +105,7 @@ func (b *RoleBindingRestrictionApplyConfiguration) WithGenerateName(value string
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *RoleBindingRestrictionApplyConfiguration) WithNamespace(value string) *RoleBindingRestrictionApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -114,7 +114,7 @@ func (b *RoleBindingRestrictionApplyConfiguration) WithNamespace(value string) *
// If called multiple times, the UID field is set to the value of the last call.
func (b *RoleBindingRestrictionApplyConfiguration) WithUID(value types.UID) *RoleBindingRestrictionApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -123,7 +123,7 @@ func (b *RoleBindingRestrictionApplyConfiguration) WithUID(value types.UID) *Rol
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *RoleBindingRestrictionApplyConfiguration) WithResourceVersion(value string) *RoleBindingRestrictionApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -132,25 +132,25 @@ func (b *RoleBindingRestrictionApplyConfiguration) WithResourceVersion(value str
// If called multiple times, the Generation field is set to the value of the last call.
func (b *RoleBindingRestrictionApplyConfiguration) WithGeneration(value int64) *RoleBindingRestrictionApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *RoleBindingRestrictionApplyConfiguration) WithCreationTimestamp(value metav1.Time) *RoleBindingRestrictionApplyConfiguration {
+func (b *RoleBindingRestrictionApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *RoleBindingRestrictionApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *RoleBindingRestrictionApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *RoleBindingRestrictionApplyConfiguration {
+func (b *RoleBindingRestrictionApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *RoleBindingRestrictionApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -159,7 +159,7 @@ func (b *RoleBindingRestrictionApplyConfiguration) WithDeletionTimestamp(value m
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *RoleBindingRestrictionApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *RoleBindingRestrictionApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -169,11 +169,11 @@ func (b *RoleBindingRestrictionApplyConfiguration) WithDeletionGracePeriodSecond
// overwriting an existing map entries in Labels field with the same key.
func (b *RoleBindingRestrictionApplyConfiguration) WithLabels(entries map[string]string) *RoleBindingRestrictionApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -184,11 +184,11 @@ func (b *RoleBindingRestrictionApplyConfiguration) WithLabels(entries map[string
// overwriting an existing map entries in Annotations field with the same key.
func (b *RoleBindingRestrictionApplyConfiguration) WithAnnotations(entries map[string]string) *RoleBindingRestrictionApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -196,13 +196,13 @@ func (b *RoleBindingRestrictionApplyConfiguration) WithAnnotations(entries map[s
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *RoleBindingRestrictionApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *RoleBindingRestrictionApplyConfiguration {
+func (b *RoleBindingRestrictionApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *RoleBindingRestrictionApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -213,14 +213,14 @@ func (b *RoleBindingRestrictionApplyConfiguration) WithOwnerReferences(values ..
func (b *RoleBindingRestrictionApplyConfiguration) WithFinalizers(values ...string) *RoleBindingRestrictionApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *RoleBindingRestrictionApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -235,5 +235,5 @@ func (b *RoleBindingRestrictionApplyConfiguration) WithSpec(value *RoleBindingRe
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *RoleBindingRestrictionApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/authorization/applyconfigurations/authorization/v1/userrestriction.go b/authorization/applyconfigurations/authorization/v1/userrestriction.go
index 5796a10ff..dc931b60e 100644
--- a/authorization/applyconfigurations/authorization/v1/userrestriction.go
+++ b/authorization/applyconfigurations/authorization/v1/userrestriction.go
@@ -3,15 +3,15 @@
package v1
import (
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// UserRestrictionApplyConfiguration represents a declarative configuration of the UserRestriction type for use
// with apply.
type UserRestrictionApplyConfiguration struct {
- Users []string `json:"users,omitempty"`
- Groups []string `json:"groups,omitempty"`
- Selectors []v1.LabelSelectorApplyConfiguration `json:"labels,omitempty"`
+ Users []string `json:"users,omitempty"`
+ Groups []string `json:"groups,omitempty"`
+ Selectors []metav1.LabelSelectorApplyConfiguration `json:"labels,omitempty"`
}
// UserRestrictionApplyConfiguration constructs a declarative configuration of the UserRestriction type for use with
@@ -43,7 +43,7 @@ func (b *UserRestrictionApplyConfiguration) WithGroups(values ...string) *UserRe
// WithSelectors adds the given value to the Selectors field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Selectors field.
-func (b *UserRestrictionApplyConfiguration) WithSelectors(values ...*v1.LabelSelectorApplyConfiguration) *UserRestrictionApplyConfiguration {
+func (b *UserRestrictionApplyConfiguration) WithSelectors(values ...*metav1.LabelSelectorApplyConfiguration) *UserRestrictionApplyConfiguration {
for i := range values {
if values[i] == nil {
panic("nil value passed to WithSelectors")
diff --git a/authorization/applyconfigurations/internal/internal.go b/authorization/applyconfigurations/internal/internal.go
index 2db4a678b..22313b3cf 100644
--- a/authorization/applyconfigurations/internal/internal.go
+++ b/authorization/applyconfigurations/internal/internal.go
@@ -3,8 +3,8 @@
package internal
import (
- "fmt"
- "sync"
+ fmt "fmt"
+ sync "sync"
typed "sigs.k8s.io/structured-merge-diff/v4/typed"
)
diff --git a/authorization/clientset/versioned/clientset.go b/authorization/clientset/versioned/clientset.go
index 9ca9f950b..795638be4 100644
--- a/authorization/clientset/versioned/clientset.go
+++ b/authorization/clientset/versioned/clientset.go
@@ -3,8 +3,8 @@
package versioned
import (
- "fmt"
- "net/http"
+ fmt "fmt"
+ http "net/http"
authorizationv1 "github.com/openshift/client-go/authorization/clientset/versioned/typed/authorization/v1"
discovery "k8s.io/client-go/discovery"
diff --git a/authorization/clientset/versioned/typed/authorization/v1/authorization_client.go b/authorization/clientset/versioned/typed/authorization/v1/authorization_client.go
index fa27642fa..a91d6f725 100644
--- a/authorization/clientset/versioned/typed/authorization/v1/authorization_client.go
+++ b/authorization/clientset/versioned/typed/authorization/v1/authorization_client.go
@@ -3,10 +3,10 @@
package v1
import (
- "net/http"
+ http "net/http"
- v1 "github.com/openshift/api/authorization/v1"
- "github.com/openshift/client-go/authorization/clientset/versioned/scheme"
+ authorizationv1 "github.com/openshift/api/authorization/v1"
+ scheme "github.com/openshift/client-go/authorization/clientset/versioned/scheme"
rest "k8s.io/client-go/rest"
)
@@ -119,10 +119,10 @@ func New(c rest.Interface) *AuthorizationV1Client {
}
func setConfigDefaults(config *rest.Config) error {
- gv := v1.SchemeGroupVersion
+ gv := authorizationv1.SchemeGroupVersion
config.GroupVersion = &gv
config.APIPath = "/apis"
- config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
+ config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion()
if config.UserAgent == "" {
config.UserAgent = rest.DefaultKubernetesUserAgent()
diff --git a/authorization/clientset/versioned/typed/authorization/v1/clusterrole.go b/authorization/clientset/versioned/typed/authorization/v1/clusterrole.go
index 15fdc640f..f863b1242 100644
--- a/authorization/clientset/versioned/typed/authorization/v1/clusterrole.go
+++ b/authorization/clientset/versioned/typed/authorization/v1/clusterrole.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/authorization/v1"
- authorizationv1 "github.com/openshift/client-go/authorization/applyconfigurations/authorization/v1"
+ authorizationv1 "github.com/openshift/api/authorization/v1"
+ applyconfigurationsauthorizationv1 "github.com/openshift/client-go/authorization/applyconfigurations/authorization/v1"
scheme "github.com/openshift/client-go/authorization/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,32 +22,33 @@ type ClusterRolesGetter interface {
// ClusterRoleInterface has methods to work with ClusterRole resources.
type ClusterRoleInterface interface {
- Create(ctx context.Context, clusterRole *v1.ClusterRole, opts metav1.CreateOptions) (*v1.ClusterRole, error)
- Update(ctx context.Context, clusterRole *v1.ClusterRole, opts metav1.UpdateOptions) (*v1.ClusterRole, error)
+ Create(ctx context.Context, clusterRole *authorizationv1.ClusterRole, opts metav1.CreateOptions) (*authorizationv1.ClusterRole, error)
+ Update(ctx context.Context, clusterRole *authorizationv1.ClusterRole, opts metav1.UpdateOptions) (*authorizationv1.ClusterRole, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ClusterRole, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.ClusterRoleList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*authorizationv1.ClusterRole, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*authorizationv1.ClusterRoleList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterRole, err error)
- Apply(ctx context.Context, clusterRole *authorizationv1.ClusterRoleApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ClusterRole, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *authorizationv1.ClusterRole, err error)
+ Apply(ctx context.Context, clusterRole *applyconfigurationsauthorizationv1.ClusterRoleApplyConfiguration, opts metav1.ApplyOptions) (result *authorizationv1.ClusterRole, err error)
ClusterRoleExpansion
}
// clusterRoles implements ClusterRoleInterface
type clusterRoles struct {
- *gentype.ClientWithListAndApply[*v1.ClusterRole, *v1.ClusterRoleList, *authorizationv1.ClusterRoleApplyConfiguration]
+ *gentype.ClientWithListAndApply[*authorizationv1.ClusterRole, *authorizationv1.ClusterRoleList, *applyconfigurationsauthorizationv1.ClusterRoleApplyConfiguration]
}
// newClusterRoles returns a ClusterRoles
func newClusterRoles(c *AuthorizationV1Client) *clusterRoles {
return &clusterRoles{
- gentype.NewClientWithListAndApply[*v1.ClusterRole, *v1.ClusterRoleList, *authorizationv1.ClusterRoleApplyConfiguration](
+ gentype.NewClientWithListAndApply[*authorizationv1.ClusterRole, *authorizationv1.ClusterRoleList, *applyconfigurationsauthorizationv1.ClusterRoleApplyConfiguration](
"clusterroles",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.ClusterRole { return &v1.ClusterRole{} },
- func() *v1.ClusterRoleList { return &v1.ClusterRoleList{} }),
+ func() *authorizationv1.ClusterRole { return &authorizationv1.ClusterRole{} },
+ func() *authorizationv1.ClusterRoleList { return &authorizationv1.ClusterRoleList{} },
+ ),
}
}
diff --git a/authorization/clientset/versioned/typed/authorization/v1/clusterrolebinding.go b/authorization/clientset/versioned/typed/authorization/v1/clusterrolebinding.go
index 066464516..773c28745 100644
--- a/authorization/clientset/versioned/typed/authorization/v1/clusterrolebinding.go
+++ b/authorization/clientset/versioned/typed/authorization/v1/clusterrolebinding.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/authorization/v1"
- authorizationv1 "github.com/openshift/client-go/authorization/applyconfigurations/authorization/v1"
+ authorizationv1 "github.com/openshift/api/authorization/v1"
+ applyconfigurationsauthorizationv1 "github.com/openshift/client-go/authorization/applyconfigurations/authorization/v1"
scheme "github.com/openshift/client-go/authorization/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,32 +22,33 @@ type ClusterRoleBindingsGetter interface {
// ClusterRoleBindingInterface has methods to work with ClusterRoleBinding resources.
type ClusterRoleBindingInterface interface {
- Create(ctx context.Context, clusterRoleBinding *v1.ClusterRoleBinding, opts metav1.CreateOptions) (*v1.ClusterRoleBinding, error)
- Update(ctx context.Context, clusterRoleBinding *v1.ClusterRoleBinding, opts metav1.UpdateOptions) (*v1.ClusterRoleBinding, error)
+ Create(ctx context.Context, clusterRoleBinding *authorizationv1.ClusterRoleBinding, opts metav1.CreateOptions) (*authorizationv1.ClusterRoleBinding, error)
+ Update(ctx context.Context, clusterRoleBinding *authorizationv1.ClusterRoleBinding, opts metav1.UpdateOptions) (*authorizationv1.ClusterRoleBinding, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ClusterRoleBinding, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.ClusterRoleBindingList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*authorizationv1.ClusterRoleBinding, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*authorizationv1.ClusterRoleBindingList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterRoleBinding, err error)
- Apply(ctx context.Context, clusterRoleBinding *authorizationv1.ClusterRoleBindingApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ClusterRoleBinding, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *authorizationv1.ClusterRoleBinding, err error)
+ Apply(ctx context.Context, clusterRoleBinding *applyconfigurationsauthorizationv1.ClusterRoleBindingApplyConfiguration, opts metav1.ApplyOptions) (result *authorizationv1.ClusterRoleBinding, err error)
ClusterRoleBindingExpansion
}
// clusterRoleBindings implements ClusterRoleBindingInterface
type clusterRoleBindings struct {
- *gentype.ClientWithListAndApply[*v1.ClusterRoleBinding, *v1.ClusterRoleBindingList, *authorizationv1.ClusterRoleBindingApplyConfiguration]
+ *gentype.ClientWithListAndApply[*authorizationv1.ClusterRoleBinding, *authorizationv1.ClusterRoleBindingList, *applyconfigurationsauthorizationv1.ClusterRoleBindingApplyConfiguration]
}
// newClusterRoleBindings returns a ClusterRoleBindings
func newClusterRoleBindings(c *AuthorizationV1Client) *clusterRoleBindings {
return &clusterRoleBindings{
- gentype.NewClientWithListAndApply[*v1.ClusterRoleBinding, *v1.ClusterRoleBindingList, *authorizationv1.ClusterRoleBindingApplyConfiguration](
+ gentype.NewClientWithListAndApply[*authorizationv1.ClusterRoleBinding, *authorizationv1.ClusterRoleBindingList, *applyconfigurationsauthorizationv1.ClusterRoleBindingApplyConfiguration](
"clusterrolebindings",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.ClusterRoleBinding { return &v1.ClusterRoleBinding{} },
- func() *v1.ClusterRoleBindingList { return &v1.ClusterRoleBindingList{} }),
+ func() *authorizationv1.ClusterRoleBinding { return &authorizationv1.ClusterRoleBinding{} },
+ func() *authorizationv1.ClusterRoleBindingList { return &authorizationv1.ClusterRoleBindingList{} },
+ ),
}
}
diff --git a/authorization/clientset/versioned/typed/authorization/v1/fake/fake_authorization_client.go b/authorization/clientset/versioned/typed/authorization/v1/fake/fake_authorization_client.go
index 28402c453..df76413f8 100644
--- a/authorization/clientset/versioned/typed/authorization/v1/fake/fake_authorization_client.go
+++ b/authorization/clientset/versioned/typed/authorization/v1/fake/fake_authorization_client.go
@@ -13,47 +13,47 @@ type FakeAuthorizationV1 struct {
}
func (c *FakeAuthorizationV1) ClusterRoles() v1.ClusterRoleInterface {
- return &FakeClusterRoles{c}
+ return newFakeClusterRoles(c)
}
func (c *FakeAuthorizationV1) ClusterRoleBindings() v1.ClusterRoleBindingInterface {
- return &FakeClusterRoleBindings{c}
+ return newFakeClusterRoleBindings(c)
}
func (c *FakeAuthorizationV1) LocalResourceAccessReviews(namespace string) v1.LocalResourceAccessReviewInterface {
- return &FakeLocalResourceAccessReviews{c, namespace}
+ return newFakeLocalResourceAccessReviews(c, namespace)
}
func (c *FakeAuthorizationV1) LocalSubjectAccessReviews(namespace string) v1.LocalSubjectAccessReviewInterface {
- return &FakeLocalSubjectAccessReviews{c, namespace}
+ return newFakeLocalSubjectAccessReviews(c, namespace)
}
func (c *FakeAuthorizationV1) ResourceAccessReviews() v1.ResourceAccessReviewInterface {
- return &FakeResourceAccessReviews{c}
+ return newFakeResourceAccessReviews(c)
}
func (c *FakeAuthorizationV1) Roles(namespace string) v1.RoleInterface {
- return &FakeRoles{c, namespace}
+ return newFakeRoles(c, namespace)
}
func (c *FakeAuthorizationV1) RoleBindings(namespace string) v1.RoleBindingInterface {
- return &FakeRoleBindings{c, namespace}
+ return newFakeRoleBindings(c, namespace)
}
func (c *FakeAuthorizationV1) RoleBindingRestrictions(namespace string) v1.RoleBindingRestrictionInterface {
- return &FakeRoleBindingRestrictions{c, namespace}
+ return newFakeRoleBindingRestrictions(c, namespace)
}
func (c *FakeAuthorizationV1) SelfSubjectRulesReviews(namespace string) v1.SelfSubjectRulesReviewInterface {
- return &FakeSelfSubjectRulesReviews{c, namespace}
+ return newFakeSelfSubjectRulesReviews(c, namespace)
}
func (c *FakeAuthorizationV1) SubjectAccessReviews() v1.SubjectAccessReviewInterface {
- return &FakeSubjectAccessReviews{c}
+ return newFakeSubjectAccessReviews(c)
}
func (c *FakeAuthorizationV1) SubjectRulesReviews(namespace string) v1.SubjectRulesReviewInterface {
- return &FakeSubjectRulesReviews{c, namespace}
+ return newFakeSubjectRulesReviews(c, namespace)
}
// RESTClient returns a RESTClient that is used to communicate
diff --git a/authorization/clientset/versioned/typed/authorization/v1/fake/fake_clusterrole.go b/authorization/clientset/versioned/typed/authorization/v1/fake/fake_clusterrole.go
index f20f60322..de34657d6 100644
--- a/authorization/clientset/versioned/typed/authorization/v1/fake/fake_clusterrole.go
+++ b/authorization/clientset/versioned/typed/authorization/v1/fake/fake_clusterrole.go
@@ -3,133 +3,31 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/authorization/v1"
authorizationv1 "github.com/openshift/client-go/authorization/applyconfigurations/authorization/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedauthorizationv1 "github.com/openshift/client-go/authorization/clientset/versioned/typed/authorization/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeClusterRoles implements ClusterRoleInterface
-type FakeClusterRoles struct {
+// fakeClusterRoles implements ClusterRoleInterface
+type fakeClusterRoles struct {
+ *gentype.FakeClientWithListAndApply[*v1.ClusterRole, *v1.ClusterRoleList, *authorizationv1.ClusterRoleApplyConfiguration]
Fake *FakeAuthorizationV1
}
-var clusterrolesResource = v1.SchemeGroupVersion.WithResource("clusterroles")
-
-var clusterrolesKind = v1.SchemeGroupVersion.WithKind("ClusterRole")
-
-// Get takes name of the clusterRole, and returns the corresponding clusterRole object, and an error if there is any.
-func (c *FakeClusterRoles) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ClusterRole, err error) {
- emptyResult := &v1.ClusterRole{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(clusterrolesResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterRole), err
-}
-
-// List takes label and field selectors, and returns the list of ClusterRoles that match those selectors.
-func (c *FakeClusterRoles) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterRoleList, err error) {
- emptyResult := &v1.ClusterRoleList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(clusterrolesResource, clusterrolesKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.ClusterRoleList{ListMeta: obj.(*v1.ClusterRoleList).ListMeta}
- for _, item := range obj.(*v1.ClusterRoleList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested clusterRoles.
-func (c *FakeClusterRoles) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(clusterrolesResource, opts))
-}
-
-// Create takes the representation of a clusterRole and creates it. Returns the server's representation of the clusterRole, and an error, if there is any.
-func (c *FakeClusterRoles) Create(ctx context.Context, clusterRole *v1.ClusterRole, opts metav1.CreateOptions) (result *v1.ClusterRole, err error) {
- emptyResult := &v1.ClusterRole{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(clusterrolesResource, clusterRole, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterRole), err
-}
-
-// Update takes the representation of a clusterRole and updates it. Returns the server's representation of the clusterRole, and an error, if there is any.
-func (c *FakeClusterRoles) Update(ctx context.Context, clusterRole *v1.ClusterRole, opts metav1.UpdateOptions) (result *v1.ClusterRole, err error) {
- emptyResult := &v1.ClusterRole{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(clusterrolesResource, clusterRole, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterRole), err
-}
-
-// Delete takes name of the clusterRole and deletes it. Returns an error if one occurs.
-func (c *FakeClusterRoles) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(clusterrolesResource, name, opts), &v1.ClusterRole{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeClusterRoles) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(clusterrolesResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.ClusterRoleList{})
- return err
-}
-
-// Patch applies the patch and returns the patched clusterRole.
-func (c *FakeClusterRoles) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterRole, err error) {
- emptyResult := &v1.ClusterRole{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(clusterrolesResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterRole), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied clusterRole.
-func (c *FakeClusterRoles) Apply(ctx context.Context, clusterRole *authorizationv1.ClusterRoleApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ClusterRole, err error) {
- if clusterRole == nil {
- return nil, fmt.Errorf("clusterRole provided to Apply must not be nil")
- }
- data, err := json.Marshal(clusterRole)
- if err != nil {
- return nil, err
- }
- name := clusterRole.Name
- if name == nil {
- return nil, fmt.Errorf("clusterRole.Name must be provided to Apply")
- }
- emptyResult := &v1.ClusterRole{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(clusterrolesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeClusterRoles(fake *FakeAuthorizationV1) typedauthorizationv1.ClusterRoleInterface {
+ return &fakeClusterRoles{
+ gentype.NewFakeClientWithListAndApply[*v1.ClusterRole, *v1.ClusterRoleList, *authorizationv1.ClusterRoleApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("clusterroles"),
+ v1.SchemeGroupVersion.WithKind("ClusterRole"),
+ func() *v1.ClusterRole { return &v1.ClusterRole{} },
+ func() *v1.ClusterRoleList { return &v1.ClusterRoleList{} },
+ func(dst, src *v1.ClusterRoleList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.ClusterRoleList) []*v1.ClusterRole { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.ClusterRoleList, items []*v1.ClusterRole) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.ClusterRole), err
}
diff --git a/authorization/clientset/versioned/typed/authorization/v1/fake/fake_clusterrolebinding.go b/authorization/clientset/versioned/typed/authorization/v1/fake/fake_clusterrolebinding.go
index fdb11d628..92346e547 100644
--- a/authorization/clientset/versioned/typed/authorization/v1/fake/fake_clusterrolebinding.go
+++ b/authorization/clientset/versioned/typed/authorization/v1/fake/fake_clusterrolebinding.go
@@ -3,133 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/authorization/v1"
authorizationv1 "github.com/openshift/client-go/authorization/applyconfigurations/authorization/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedauthorizationv1 "github.com/openshift/client-go/authorization/clientset/versioned/typed/authorization/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeClusterRoleBindings implements ClusterRoleBindingInterface
-type FakeClusterRoleBindings struct {
+// fakeClusterRoleBindings implements ClusterRoleBindingInterface
+type fakeClusterRoleBindings struct {
+ *gentype.FakeClientWithListAndApply[*v1.ClusterRoleBinding, *v1.ClusterRoleBindingList, *authorizationv1.ClusterRoleBindingApplyConfiguration]
Fake *FakeAuthorizationV1
}
-var clusterrolebindingsResource = v1.SchemeGroupVersion.WithResource("clusterrolebindings")
-
-var clusterrolebindingsKind = v1.SchemeGroupVersion.WithKind("ClusterRoleBinding")
-
-// Get takes name of the clusterRoleBinding, and returns the corresponding clusterRoleBinding object, and an error if there is any.
-func (c *FakeClusterRoleBindings) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ClusterRoleBinding, err error) {
- emptyResult := &v1.ClusterRoleBinding{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(clusterrolebindingsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterRoleBinding), err
-}
-
-// List takes label and field selectors, and returns the list of ClusterRoleBindings that match those selectors.
-func (c *FakeClusterRoleBindings) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterRoleBindingList, err error) {
- emptyResult := &v1.ClusterRoleBindingList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(clusterrolebindingsResource, clusterrolebindingsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.ClusterRoleBindingList{ListMeta: obj.(*v1.ClusterRoleBindingList).ListMeta}
- for _, item := range obj.(*v1.ClusterRoleBindingList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested clusterRoleBindings.
-func (c *FakeClusterRoleBindings) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(clusterrolebindingsResource, opts))
-}
-
-// Create takes the representation of a clusterRoleBinding and creates it. Returns the server's representation of the clusterRoleBinding, and an error, if there is any.
-func (c *FakeClusterRoleBindings) Create(ctx context.Context, clusterRoleBinding *v1.ClusterRoleBinding, opts metav1.CreateOptions) (result *v1.ClusterRoleBinding, err error) {
- emptyResult := &v1.ClusterRoleBinding{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(clusterrolebindingsResource, clusterRoleBinding, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterRoleBinding), err
-}
-
-// Update takes the representation of a clusterRoleBinding and updates it. Returns the server's representation of the clusterRoleBinding, and an error, if there is any.
-func (c *FakeClusterRoleBindings) Update(ctx context.Context, clusterRoleBinding *v1.ClusterRoleBinding, opts metav1.UpdateOptions) (result *v1.ClusterRoleBinding, err error) {
- emptyResult := &v1.ClusterRoleBinding{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(clusterrolebindingsResource, clusterRoleBinding, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterRoleBinding), err
-}
-
-// Delete takes name of the clusterRoleBinding and deletes it. Returns an error if one occurs.
-func (c *FakeClusterRoleBindings) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(clusterrolebindingsResource, name, opts), &v1.ClusterRoleBinding{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeClusterRoleBindings) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(clusterrolebindingsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.ClusterRoleBindingList{})
- return err
-}
-
-// Patch applies the patch and returns the patched clusterRoleBinding.
-func (c *FakeClusterRoleBindings) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterRoleBinding, err error) {
- emptyResult := &v1.ClusterRoleBinding{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(clusterrolebindingsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterRoleBinding), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied clusterRoleBinding.
-func (c *FakeClusterRoleBindings) Apply(ctx context.Context, clusterRoleBinding *authorizationv1.ClusterRoleBindingApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ClusterRoleBinding, err error) {
- if clusterRoleBinding == nil {
- return nil, fmt.Errorf("clusterRoleBinding provided to Apply must not be nil")
- }
- data, err := json.Marshal(clusterRoleBinding)
- if err != nil {
- return nil, err
- }
- name := clusterRoleBinding.Name
- if name == nil {
- return nil, fmt.Errorf("clusterRoleBinding.Name must be provided to Apply")
- }
- emptyResult := &v1.ClusterRoleBinding{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(clusterrolebindingsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeClusterRoleBindings(fake *FakeAuthorizationV1) typedauthorizationv1.ClusterRoleBindingInterface {
+ return &fakeClusterRoleBindings{
+ gentype.NewFakeClientWithListAndApply[*v1.ClusterRoleBinding, *v1.ClusterRoleBindingList, *authorizationv1.ClusterRoleBindingApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("clusterrolebindings"),
+ v1.SchemeGroupVersion.WithKind("ClusterRoleBinding"),
+ func() *v1.ClusterRoleBinding { return &v1.ClusterRoleBinding{} },
+ func() *v1.ClusterRoleBindingList { return &v1.ClusterRoleBindingList{} },
+ func(dst, src *v1.ClusterRoleBindingList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.ClusterRoleBindingList) []*v1.ClusterRoleBinding {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1.ClusterRoleBindingList, items []*v1.ClusterRoleBinding) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.ClusterRoleBinding), err
}
diff --git a/authorization/clientset/versioned/typed/authorization/v1/fake/fake_localresourceaccessreview.go b/authorization/clientset/versioned/typed/authorization/v1/fake/fake_localresourceaccessreview.go
index 564d8ee62..ee442655f 100644
--- a/authorization/clientset/versioned/typed/authorization/v1/fake/fake_localresourceaccessreview.go
+++ b/authorization/clientset/versioned/typed/authorization/v1/fake/fake_localresourceaccessreview.go
@@ -3,28 +3,39 @@
package fake
import (
- "context"
+ context "context"
v1 "github.com/openshift/api/authorization/v1"
+ authorizationv1 "github.com/openshift/client-go/authorization/clientset/versioned/typed/authorization/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ gentype "k8s.io/client-go/gentype"
testing "k8s.io/client-go/testing"
)
-// FakeLocalResourceAccessReviews implements LocalResourceAccessReviewInterface
-type FakeLocalResourceAccessReviews struct {
+// fakeLocalResourceAccessReviews implements LocalResourceAccessReviewInterface
+type fakeLocalResourceAccessReviews struct {
+ *gentype.FakeClient[*v1.LocalResourceAccessReview]
Fake *FakeAuthorizationV1
- ns string
}
-var localresourceaccessreviewsResource = v1.SchemeGroupVersion.WithResource("localresourceaccessreviews")
-
-var localresourceaccessreviewsKind = v1.SchemeGroupVersion.WithKind("LocalResourceAccessReview")
+func newFakeLocalResourceAccessReviews(fake *FakeAuthorizationV1, namespace string) authorizationv1.LocalResourceAccessReviewInterface {
+ return &fakeLocalResourceAccessReviews{
+ gentype.NewFakeClient[*v1.LocalResourceAccessReview](
+ fake.Fake,
+ namespace,
+ v1.SchemeGroupVersion.WithResource("localresourceaccessreviews"),
+ v1.SchemeGroupVersion.WithKind("LocalResourceAccessReview"),
+ func() *v1.LocalResourceAccessReview { return &v1.LocalResourceAccessReview{} },
+ ),
+ fake,
+ }
+}
// Create takes the representation of a localResourceAccessReview and creates it. Returns the server's representation of the resourceAccessReviewResponse, and an error, if there is any.
-func (c *FakeLocalResourceAccessReviews) Create(ctx context.Context, localResourceAccessReview *v1.LocalResourceAccessReview, opts metav1.CreateOptions) (result *v1.ResourceAccessReviewResponse, err error) {
+func (c *fakeLocalResourceAccessReviews) Create(ctx context.Context, localResourceAccessReview *v1.LocalResourceAccessReview, opts metav1.CreateOptions) (result *v1.ResourceAccessReviewResponse, err error) {
emptyResult := &v1.ResourceAccessReviewResponse{}
obj, err := c.Fake.
- Invokes(testing.NewCreateActionWithOptions(localresourceaccessreviewsResource, c.ns, localResourceAccessReview, opts), emptyResult)
+ Invokes(testing.NewCreateActionWithOptions(c.Resource(), c.Namespace(), localResourceAccessReview, opts), emptyResult)
if obj == nil {
return emptyResult, err
diff --git a/authorization/clientset/versioned/typed/authorization/v1/fake/fake_localsubjectaccessreview.go b/authorization/clientset/versioned/typed/authorization/v1/fake/fake_localsubjectaccessreview.go
index d6f0ccbd6..62b0d7382 100644
--- a/authorization/clientset/versioned/typed/authorization/v1/fake/fake_localsubjectaccessreview.go
+++ b/authorization/clientset/versioned/typed/authorization/v1/fake/fake_localsubjectaccessreview.go
@@ -3,28 +3,39 @@
package fake
import (
- "context"
+ context "context"
v1 "github.com/openshift/api/authorization/v1"
+ authorizationv1 "github.com/openshift/client-go/authorization/clientset/versioned/typed/authorization/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ gentype "k8s.io/client-go/gentype"
testing "k8s.io/client-go/testing"
)
-// FakeLocalSubjectAccessReviews implements LocalSubjectAccessReviewInterface
-type FakeLocalSubjectAccessReviews struct {
+// fakeLocalSubjectAccessReviews implements LocalSubjectAccessReviewInterface
+type fakeLocalSubjectAccessReviews struct {
+ *gentype.FakeClient[*v1.LocalSubjectAccessReview]
Fake *FakeAuthorizationV1
- ns string
}
-var localsubjectaccessreviewsResource = v1.SchemeGroupVersion.WithResource("localsubjectaccessreviews")
-
-var localsubjectaccessreviewsKind = v1.SchemeGroupVersion.WithKind("LocalSubjectAccessReview")
+func newFakeLocalSubjectAccessReviews(fake *FakeAuthorizationV1, namespace string) authorizationv1.LocalSubjectAccessReviewInterface {
+ return &fakeLocalSubjectAccessReviews{
+ gentype.NewFakeClient[*v1.LocalSubjectAccessReview](
+ fake.Fake,
+ namespace,
+ v1.SchemeGroupVersion.WithResource("localsubjectaccessreviews"),
+ v1.SchemeGroupVersion.WithKind("LocalSubjectAccessReview"),
+ func() *v1.LocalSubjectAccessReview { return &v1.LocalSubjectAccessReview{} },
+ ),
+ fake,
+ }
+}
// Create takes the representation of a localSubjectAccessReview and creates it. Returns the server's representation of the subjectAccessReviewResponse, and an error, if there is any.
-func (c *FakeLocalSubjectAccessReviews) Create(ctx context.Context, localSubjectAccessReview *v1.LocalSubjectAccessReview, opts metav1.CreateOptions) (result *v1.SubjectAccessReviewResponse, err error) {
+func (c *fakeLocalSubjectAccessReviews) Create(ctx context.Context, localSubjectAccessReview *v1.LocalSubjectAccessReview, opts metav1.CreateOptions) (result *v1.SubjectAccessReviewResponse, err error) {
emptyResult := &v1.SubjectAccessReviewResponse{}
obj, err := c.Fake.
- Invokes(testing.NewCreateActionWithOptions(localsubjectaccessreviewsResource, c.ns, localSubjectAccessReview, opts), emptyResult)
+ Invokes(testing.NewCreateActionWithOptions(c.Resource(), c.Namespace(), localSubjectAccessReview, opts), emptyResult)
if obj == nil {
return emptyResult, err
diff --git a/authorization/clientset/versioned/typed/authorization/v1/fake/fake_resourceaccessreview.go b/authorization/clientset/versioned/typed/authorization/v1/fake/fake_resourceaccessreview.go
index 5b6836a1f..e34368a23 100644
--- a/authorization/clientset/versioned/typed/authorization/v1/fake/fake_resourceaccessreview.go
+++ b/authorization/clientset/versioned/typed/authorization/v1/fake/fake_resourceaccessreview.go
@@ -3,27 +3,39 @@
package fake
import (
- "context"
+ context "context"
v1 "github.com/openshift/api/authorization/v1"
+ authorizationv1 "github.com/openshift/client-go/authorization/clientset/versioned/typed/authorization/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ gentype "k8s.io/client-go/gentype"
testing "k8s.io/client-go/testing"
)
-// FakeResourceAccessReviews implements ResourceAccessReviewInterface
-type FakeResourceAccessReviews struct {
+// fakeResourceAccessReviews implements ResourceAccessReviewInterface
+type fakeResourceAccessReviews struct {
+ *gentype.FakeClient[*v1.ResourceAccessReview]
Fake *FakeAuthorizationV1
}
-var resourceaccessreviewsResource = v1.SchemeGroupVersion.WithResource("resourceaccessreviews")
-
-var resourceaccessreviewsKind = v1.SchemeGroupVersion.WithKind("ResourceAccessReview")
+func newFakeResourceAccessReviews(fake *FakeAuthorizationV1) authorizationv1.ResourceAccessReviewInterface {
+ return &fakeResourceAccessReviews{
+ gentype.NewFakeClient[*v1.ResourceAccessReview](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("resourceaccessreviews"),
+ v1.SchemeGroupVersion.WithKind("ResourceAccessReview"),
+ func() *v1.ResourceAccessReview { return &v1.ResourceAccessReview{} },
+ ),
+ fake,
+ }
+}
// Create takes the representation of a resourceAccessReview and creates it. Returns the server's representation of the resourceAccessReviewResponse, and an error, if there is any.
-func (c *FakeResourceAccessReviews) Create(ctx context.Context, resourceAccessReview *v1.ResourceAccessReview, opts metav1.CreateOptions) (result *v1.ResourceAccessReviewResponse, err error) {
+func (c *fakeResourceAccessReviews) Create(ctx context.Context, resourceAccessReview *v1.ResourceAccessReview, opts metav1.CreateOptions) (result *v1.ResourceAccessReviewResponse, err error) {
emptyResult := &v1.ResourceAccessReviewResponse{}
obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(resourceaccessreviewsResource, resourceAccessReview, opts), emptyResult)
+ Invokes(testing.NewRootCreateActionWithOptions(c.Resource(), resourceAccessReview, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
diff --git a/authorization/clientset/versioned/typed/authorization/v1/fake/fake_role.go b/authorization/clientset/versioned/typed/authorization/v1/fake/fake_role.go
index 313f38427..7e534f6bd 100644
--- a/authorization/clientset/versioned/typed/authorization/v1/fake/fake_role.go
+++ b/authorization/clientset/versioned/typed/authorization/v1/fake/fake_role.go
@@ -3,142 +3,31 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/authorization/v1"
authorizationv1 "github.com/openshift/client-go/authorization/applyconfigurations/authorization/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedauthorizationv1 "github.com/openshift/client-go/authorization/clientset/versioned/typed/authorization/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeRoles implements RoleInterface
-type FakeRoles struct {
+// fakeRoles implements RoleInterface
+type fakeRoles struct {
+ *gentype.FakeClientWithListAndApply[*v1.Role, *v1.RoleList, *authorizationv1.RoleApplyConfiguration]
Fake *FakeAuthorizationV1
- ns string
-}
-
-var rolesResource = v1.SchemeGroupVersion.WithResource("roles")
-
-var rolesKind = v1.SchemeGroupVersion.WithKind("Role")
-
-// Get takes name of the role, and returns the corresponding role object, and an error if there is any.
-func (c *FakeRoles) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Role, err error) {
- emptyResult := &v1.Role{}
- obj, err := c.Fake.
- Invokes(testing.NewGetActionWithOptions(rolesResource, c.ns, name, options), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Role), err
-}
-
-// List takes label and field selectors, and returns the list of Roles that match those selectors.
-func (c *FakeRoles) List(ctx context.Context, opts metav1.ListOptions) (result *v1.RoleList, err error) {
- emptyResult := &v1.RoleList{}
- obj, err := c.Fake.
- Invokes(testing.NewListActionWithOptions(rolesResource, rolesKind, c.ns, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.RoleList{ListMeta: obj.(*v1.RoleList).ListMeta}
- for _, item := range obj.(*v1.RoleList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested roles.
-func (c *FakeRoles) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewWatchActionWithOptions(rolesResource, c.ns, opts))
-
}
-// Create takes the representation of a role and creates it. Returns the server's representation of the role, and an error, if there is any.
-func (c *FakeRoles) Create(ctx context.Context, role *v1.Role, opts metav1.CreateOptions) (result *v1.Role, err error) {
- emptyResult := &v1.Role{}
- obj, err := c.Fake.
- Invokes(testing.NewCreateActionWithOptions(rolesResource, c.ns, role, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Role), err
-}
-
-// Update takes the representation of a role and updates it. Returns the server's representation of the role, and an error, if there is any.
-func (c *FakeRoles) Update(ctx context.Context, role *v1.Role, opts metav1.UpdateOptions) (result *v1.Role, err error) {
- emptyResult := &v1.Role{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateActionWithOptions(rolesResource, c.ns, role, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Role), err
-}
-
-// Delete takes name of the role and deletes it. Returns an error if one occurs.
-func (c *FakeRoles) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewDeleteActionWithOptions(rolesResource, c.ns, name, opts), &v1.Role{})
-
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeRoles) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewDeleteCollectionActionWithOptions(rolesResource, c.ns, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.RoleList{})
- return err
-}
-
-// Patch applies the patch and returns the patched role.
-func (c *FakeRoles) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Role, err error) {
- emptyResult := &v1.Role{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(rolesResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Role), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied role.
-func (c *FakeRoles) Apply(ctx context.Context, role *authorizationv1.RoleApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Role, err error) {
- if role == nil {
- return nil, fmt.Errorf("role provided to Apply must not be nil")
- }
- data, err := json.Marshal(role)
- if err != nil {
- return nil, err
- }
- name := role.Name
- if name == nil {
- return nil, fmt.Errorf("role.Name must be provided to Apply")
- }
- emptyResult := &v1.Role{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(rolesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
-
- if obj == nil {
- return emptyResult, err
+func newFakeRoles(fake *FakeAuthorizationV1, namespace string) typedauthorizationv1.RoleInterface {
+ return &fakeRoles{
+ gentype.NewFakeClientWithListAndApply[*v1.Role, *v1.RoleList, *authorizationv1.RoleApplyConfiguration](
+ fake.Fake,
+ namespace,
+ v1.SchemeGroupVersion.WithResource("roles"),
+ v1.SchemeGroupVersion.WithKind("Role"),
+ func() *v1.Role { return &v1.Role{} },
+ func() *v1.RoleList { return &v1.RoleList{} },
+ func(dst, src *v1.RoleList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.RoleList) []*v1.Role { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.RoleList, items []*v1.Role) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.Role), err
}
diff --git a/authorization/clientset/versioned/typed/authorization/v1/fake/fake_rolebinding.go b/authorization/clientset/versioned/typed/authorization/v1/fake/fake_rolebinding.go
index 49e449696..f8226b7e4 100644
--- a/authorization/clientset/versioned/typed/authorization/v1/fake/fake_rolebinding.go
+++ b/authorization/clientset/versioned/typed/authorization/v1/fake/fake_rolebinding.go
@@ -3,142 +3,31 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/authorization/v1"
authorizationv1 "github.com/openshift/client-go/authorization/applyconfigurations/authorization/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedauthorizationv1 "github.com/openshift/client-go/authorization/clientset/versioned/typed/authorization/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeRoleBindings implements RoleBindingInterface
-type FakeRoleBindings struct {
+// fakeRoleBindings implements RoleBindingInterface
+type fakeRoleBindings struct {
+ *gentype.FakeClientWithListAndApply[*v1.RoleBinding, *v1.RoleBindingList, *authorizationv1.RoleBindingApplyConfiguration]
Fake *FakeAuthorizationV1
- ns string
-}
-
-var rolebindingsResource = v1.SchemeGroupVersion.WithResource("rolebindings")
-
-var rolebindingsKind = v1.SchemeGroupVersion.WithKind("RoleBinding")
-
-// Get takes name of the roleBinding, and returns the corresponding roleBinding object, and an error if there is any.
-func (c *FakeRoleBindings) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.RoleBinding, err error) {
- emptyResult := &v1.RoleBinding{}
- obj, err := c.Fake.
- Invokes(testing.NewGetActionWithOptions(rolebindingsResource, c.ns, name, options), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.RoleBinding), err
-}
-
-// List takes label and field selectors, and returns the list of RoleBindings that match those selectors.
-func (c *FakeRoleBindings) List(ctx context.Context, opts metav1.ListOptions) (result *v1.RoleBindingList, err error) {
- emptyResult := &v1.RoleBindingList{}
- obj, err := c.Fake.
- Invokes(testing.NewListActionWithOptions(rolebindingsResource, rolebindingsKind, c.ns, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.RoleBindingList{ListMeta: obj.(*v1.RoleBindingList).ListMeta}
- for _, item := range obj.(*v1.RoleBindingList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested roleBindings.
-func (c *FakeRoleBindings) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewWatchActionWithOptions(rolebindingsResource, c.ns, opts))
-
}
-// Create takes the representation of a roleBinding and creates it. Returns the server's representation of the roleBinding, and an error, if there is any.
-func (c *FakeRoleBindings) Create(ctx context.Context, roleBinding *v1.RoleBinding, opts metav1.CreateOptions) (result *v1.RoleBinding, err error) {
- emptyResult := &v1.RoleBinding{}
- obj, err := c.Fake.
- Invokes(testing.NewCreateActionWithOptions(rolebindingsResource, c.ns, roleBinding, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.RoleBinding), err
-}
-
-// Update takes the representation of a roleBinding and updates it. Returns the server's representation of the roleBinding, and an error, if there is any.
-func (c *FakeRoleBindings) Update(ctx context.Context, roleBinding *v1.RoleBinding, opts metav1.UpdateOptions) (result *v1.RoleBinding, err error) {
- emptyResult := &v1.RoleBinding{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateActionWithOptions(rolebindingsResource, c.ns, roleBinding, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.RoleBinding), err
-}
-
-// Delete takes name of the roleBinding and deletes it. Returns an error if one occurs.
-func (c *FakeRoleBindings) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewDeleteActionWithOptions(rolebindingsResource, c.ns, name, opts), &v1.RoleBinding{})
-
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeRoleBindings) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewDeleteCollectionActionWithOptions(rolebindingsResource, c.ns, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.RoleBindingList{})
- return err
-}
-
-// Patch applies the patch and returns the patched roleBinding.
-func (c *FakeRoleBindings) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.RoleBinding, err error) {
- emptyResult := &v1.RoleBinding{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(rolebindingsResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.RoleBinding), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied roleBinding.
-func (c *FakeRoleBindings) Apply(ctx context.Context, roleBinding *authorizationv1.RoleBindingApplyConfiguration, opts metav1.ApplyOptions) (result *v1.RoleBinding, err error) {
- if roleBinding == nil {
- return nil, fmt.Errorf("roleBinding provided to Apply must not be nil")
- }
- data, err := json.Marshal(roleBinding)
- if err != nil {
- return nil, err
- }
- name := roleBinding.Name
- if name == nil {
- return nil, fmt.Errorf("roleBinding.Name must be provided to Apply")
- }
- emptyResult := &v1.RoleBinding{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(rolebindingsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
-
- if obj == nil {
- return emptyResult, err
+func newFakeRoleBindings(fake *FakeAuthorizationV1, namespace string) typedauthorizationv1.RoleBindingInterface {
+ return &fakeRoleBindings{
+ gentype.NewFakeClientWithListAndApply[*v1.RoleBinding, *v1.RoleBindingList, *authorizationv1.RoleBindingApplyConfiguration](
+ fake.Fake,
+ namespace,
+ v1.SchemeGroupVersion.WithResource("rolebindings"),
+ v1.SchemeGroupVersion.WithKind("RoleBinding"),
+ func() *v1.RoleBinding { return &v1.RoleBinding{} },
+ func() *v1.RoleBindingList { return &v1.RoleBindingList{} },
+ func(dst, src *v1.RoleBindingList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.RoleBindingList) []*v1.RoleBinding { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.RoleBindingList, items []*v1.RoleBinding) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.RoleBinding), err
}
diff --git a/authorization/clientset/versioned/typed/authorization/v1/fake/fake_rolebindingrestriction.go b/authorization/clientset/versioned/typed/authorization/v1/fake/fake_rolebindingrestriction.go
index 7a40ce5ba..0530e7619 100644
--- a/authorization/clientset/versioned/typed/authorization/v1/fake/fake_rolebindingrestriction.go
+++ b/authorization/clientset/versioned/typed/authorization/v1/fake/fake_rolebindingrestriction.go
@@ -3,142 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/authorization/v1"
authorizationv1 "github.com/openshift/client-go/authorization/applyconfigurations/authorization/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedauthorizationv1 "github.com/openshift/client-go/authorization/clientset/versioned/typed/authorization/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeRoleBindingRestrictions implements RoleBindingRestrictionInterface
-type FakeRoleBindingRestrictions struct {
+// fakeRoleBindingRestrictions implements RoleBindingRestrictionInterface
+type fakeRoleBindingRestrictions struct {
+ *gentype.FakeClientWithListAndApply[*v1.RoleBindingRestriction, *v1.RoleBindingRestrictionList, *authorizationv1.RoleBindingRestrictionApplyConfiguration]
Fake *FakeAuthorizationV1
- ns string
-}
-
-var rolebindingrestrictionsResource = v1.SchemeGroupVersion.WithResource("rolebindingrestrictions")
-
-var rolebindingrestrictionsKind = v1.SchemeGroupVersion.WithKind("RoleBindingRestriction")
-
-// Get takes name of the roleBindingRestriction, and returns the corresponding roleBindingRestriction object, and an error if there is any.
-func (c *FakeRoleBindingRestrictions) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.RoleBindingRestriction, err error) {
- emptyResult := &v1.RoleBindingRestriction{}
- obj, err := c.Fake.
- Invokes(testing.NewGetActionWithOptions(rolebindingrestrictionsResource, c.ns, name, options), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.RoleBindingRestriction), err
-}
-
-// List takes label and field selectors, and returns the list of RoleBindingRestrictions that match those selectors.
-func (c *FakeRoleBindingRestrictions) List(ctx context.Context, opts metav1.ListOptions) (result *v1.RoleBindingRestrictionList, err error) {
- emptyResult := &v1.RoleBindingRestrictionList{}
- obj, err := c.Fake.
- Invokes(testing.NewListActionWithOptions(rolebindingrestrictionsResource, rolebindingrestrictionsKind, c.ns, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.RoleBindingRestrictionList{ListMeta: obj.(*v1.RoleBindingRestrictionList).ListMeta}
- for _, item := range obj.(*v1.RoleBindingRestrictionList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested roleBindingRestrictions.
-func (c *FakeRoleBindingRestrictions) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewWatchActionWithOptions(rolebindingrestrictionsResource, c.ns, opts))
-
}
-// Create takes the representation of a roleBindingRestriction and creates it. Returns the server's representation of the roleBindingRestriction, and an error, if there is any.
-func (c *FakeRoleBindingRestrictions) Create(ctx context.Context, roleBindingRestriction *v1.RoleBindingRestriction, opts metav1.CreateOptions) (result *v1.RoleBindingRestriction, err error) {
- emptyResult := &v1.RoleBindingRestriction{}
- obj, err := c.Fake.
- Invokes(testing.NewCreateActionWithOptions(rolebindingrestrictionsResource, c.ns, roleBindingRestriction, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.RoleBindingRestriction), err
-}
-
-// Update takes the representation of a roleBindingRestriction and updates it. Returns the server's representation of the roleBindingRestriction, and an error, if there is any.
-func (c *FakeRoleBindingRestrictions) Update(ctx context.Context, roleBindingRestriction *v1.RoleBindingRestriction, opts metav1.UpdateOptions) (result *v1.RoleBindingRestriction, err error) {
- emptyResult := &v1.RoleBindingRestriction{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateActionWithOptions(rolebindingrestrictionsResource, c.ns, roleBindingRestriction, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.RoleBindingRestriction), err
-}
-
-// Delete takes name of the roleBindingRestriction and deletes it. Returns an error if one occurs.
-func (c *FakeRoleBindingRestrictions) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewDeleteActionWithOptions(rolebindingrestrictionsResource, c.ns, name, opts), &v1.RoleBindingRestriction{})
-
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeRoleBindingRestrictions) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewDeleteCollectionActionWithOptions(rolebindingrestrictionsResource, c.ns, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.RoleBindingRestrictionList{})
- return err
-}
-
-// Patch applies the patch and returns the patched roleBindingRestriction.
-func (c *FakeRoleBindingRestrictions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.RoleBindingRestriction, err error) {
- emptyResult := &v1.RoleBindingRestriction{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(rolebindingrestrictionsResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.RoleBindingRestriction), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied roleBindingRestriction.
-func (c *FakeRoleBindingRestrictions) Apply(ctx context.Context, roleBindingRestriction *authorizationv1.RoleBindingRestrictionApplyConfiguration, opts metav1.ApplyOptions) (result *v1.RoleBindingRestriction, err error) {
- if roleBindingRestriction == nil {
- return nil, fmt.Errorf("roleBindingRestriction provided to Apply must not be nil")
- }
- data, err := json.Marshal(roleBindingRestriction)
- if err != nil {
- return nil, err
- }
- name := roleBindingRestriction.Name
- if name == nil {
- return nil, fmt.Errorf("roleBindingRestriction.Name must be provided to Apply")
- }
- emptyResult := &v1.RoleBindingRestriction{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(rolebindingrestrictionsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
-
- if obj == nil {
- return emptyResult, err
+func newFakeRoleBindingRestrictions(fake *FakeAuthorizationV1, namespace string) typedauthorizationv1.RoleBindingRestrictionInterface {
+ return &fakeRoleBindingRestrictions{
+ gentype.NewFakeClientWithListAndApply[*v1.RoleBindingRestriction, *v1.RoleBindingRestrictionList, *authorizationv1.RoleBindingRestrictionApplyConfiguration](
+ fake.Fake,
+ namespace,
+ v1.SchemeGroupVersion.WithResource("rolebindingrestrictions"),
+ v1.SchemeGroupVersion.WithKind("RoleBindingRestriction"),
+ func() *v1.RoleBindingRestriction { return &v1.RoleBindingRestriction{} },
+ func() *v1.RoleBindingRestrictionList { return &v1.RoleBindingRestrictionList{} },
+ func(dst, src *v1.RoleBindingRestrictionList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.RoleBindingRestrictionList) []*v1.RoleBindingRestriction {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1.RoleBindingRestrictionList, items []*v1.RoleBindingRestriction) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.RoleBindingRestriction), err
}
diff --git a/authorization/clientset/versioned/typed/authorization/v1/fake/fake_selfsubjectrulesreview.go b/authorization/clientset/versioned/typed/authorization/v1/fake/fake_selfsubjectrulesreview.go
index d8dad4a2b..827eb749d 100644
--- a/authorization/clientset/versioned/typed/authorization/v1/fake/fake_selfsubjectrulesreview.go
+++ b/authorization/clientset/versioned/typed/authorization/v1/fake/fake_selfsubjectrulesreview.go
@@ -3,31 +3,26 @@
package fake
import (
- "context"
-
v1 "github.com/openshift/api/authorization/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- testing "k8s.io/client-go/testing"
+ authorizationv1 "github.com/openshift/client-go/authorization/clientset/versioned/typed/authorization/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeSelfSubjectRulesReviews implements SelfSubjectRulesReviewInterface
-type FakeSelfSubjectRulesReviews struct {
+// fakeSelfSubjectRulesReviews implements SelfSubjectRulesReviewInterface
+type fakeSelfSubjectRulesReviews struct {
+ *gentype.FakeClient[*v1.SelfSubjectRulesReview]
Fake *FakeAuthorizationV1
- ns string
}
-var selfsubjectrulesreviewsResource = v1.SchemeGroupVersion.WithResource("selfsubjectrulesreviews")
-
-var selfsubjectrulesreviewsKind = v1.SchemeGroupVersion.WithKind("SelfSubjectRulesReview")
-
-// Create takes the representation of a selfSubjectRulesReview and creates it. Returns the server's representation of the selfSubjectRulesReview, and an error, if there is any.
-func (c *FakeSelfSubjectRulesReviews) Create(ctx context.Context, selfSubjectRulesReview *v1.SelfSubjectRulesReview, opts metav1.CreateOptions) (result *v1.SelfSubjectRulesReview, err error) {
- emptyResult := &v1.SelfSubjectRulesReview{}
- obj, err := c.Fake.
- Invokes(testing.NewCreateActionWithOptions(selfsubjectrulesreviewsResource, c.ns, selfSubjectRulesReview, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
+func newFakeSelfSubjectRulesReviews(fake *FakeAuthorizationV1, namespace string) authorizationv1.SelfSubjectRulesReviewInterface {
+ return &fakeSelfSubjectRulesReviews{
+ gentype.NewFakeClient[*v1.SelfSubjectRulesReview](
+ fake.Fake,
+ namespace,
+ v1.SchemeGroupVersion.WithResource("selfsubjectrulesreviews"),
+ v1.SchemeGroupVersion.WithKind("SelfSubjectRulesReview"),
+ func() *v1.SelfSubjectRulesReview { return &v1.SelfSubjectRulesReview{} },
+ ),
+ fake,
}
- return obj.(*v1.SelfSubjectRulesReview), err
}
diff --git a/authorization/clientset/versioned/typed/authorization/v1/fake/fake_subjectaccessreview.go b/authorization/clientset/versioned/typed/authorization/v1/fake/fake_subjectaccessreview.go
index fd35c3cf1..aca9c0750 100644
--- a/authorization/clientset/versioned/typed/authorization/v1/fake/fake_subjectaccessreview.go
+++ b/authorization/clientset/versioned/typed/authorization/v1/fake/fake_subjectaccessreview.go
@@ -3,27 +3,39 @@
package fake
import (
- "context"
+ context "context"
v1 "github.com/openshift/api/authorization/v1"
+ authorizationv1 "github.com/openshift/client-go/authorization/clientset/versioned/typed/authorization/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ gentype "k8s.io/client-go/gentype"
testing "k8s.io/client-go/testing"
)
-// FakeSubjectAccessReviews implements SubjectAccessReviewInterface
-type FakeSubjectAccessReviews struct {
+// fakeSubjectAccessReviews implements SubjectAccessReviewInterface
+type fakeSubjectAccessReviews struct {
+ *gentype.FakeClient[*v1.SubjectAccessReview]
Fake *FakeAuthorizationV1
}
-var subjectaccessreviewsResource = v1.SchemeGroupVersion.WithResource("subjectaccessreviews")
-
-var subjectaccessreviewsKind = v1.SchemeGroupVersion.WithKind("SubjectAccessReview")
+func newFakeSubjectAccessReviews(fake *FakeAuthorizationV1) authorizationv1.SubjectAccessReviewInterface {
+ return &fakeSubjectAccessReviews{
+ gentype.NewFakeClient[*v1.SubjectAccessReview](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("subjectaccessreviews"),
+ v1.SchemeGroupVersion.WithKind("SubjectAccessReview"),
+ func() *v1.SubjectAccessReview { return &v1.SubjectAccessReview{} },
+ ),
+ fake,
+ }
+}
// Create takes the representation of a subjectAccessReview and creates it. Returns the server's representation of the subjectAccessReviewResponse, and an error, if there is any.
-func (c *FakeSubjectAccessReviews) Create(ctx context.Context, subjectAccessReview *v1.SubjectAccessReview, opts metav1.CreateOptions) (result *v1.SubjectAccessReviewResponse, err error) {
+func (c *fakeSubjectAccessReviews) Create(ctx context.Context, subjectAccessReview *v1.SubjectAccessReview, opts metav1.CreateOptions) (result *v1.SubjectAccessReviewResponse, err error) {
emptyResult := &v1.SubjectAccessReviewResponse{}
obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(subjectaccessreviewsResource, subjectAccessReview, opts), emptyResult)
+ Invokes(testing.NewRootCreateActionWithOptions(c.Resource(), subjectAccessReview, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
diff --git a/authorization/clientset/versioned/typed/authorization/v1/fake/fake_subjectrulesreview.go b/authorization/clientset/versioned/typed/authorization/v1/fake/fake_subjectrulesreview.go
index 662f0b2b9..42cf55981 100644
--- a/authorization/clientset/versioned/typed/authorization/v1/fake/fake_subjectrulesreview.go
+++ b/authorization/clientset/versioned/typed/authorization/v1/fake/fake_subjectrulesreview.go
@@ -3,31 +3,26 @@
package fake
import (
- "context"
-
v1 "github.com/openshift/api/authorization/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- testing "k8s.io/client-go/testing"
+ authorizationv1 "github.com/openshift/client-go/authorization/clientset/versioned/typed/authorization/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeSubjectRulesReviews implements SubjectRulesReviewInterface
-type FakeSubjectRulesReviews struct {
+// fakeSubjectRulesReviews implements SubjectRulesReviewInterface
+type fakeSubjectRulesReviews struct {
+ *gentype.FakeClient[*v1.SubjectRulesReview]
Fake *FakeAuthorizationV1
- ns string
}
-var subjectrulesreviewsResource = v1.SchemeGroupVersion.WithResource("subjectrulesreviews")
-
-var subjectrulesreviewsKind = v1.SchemeGroupVersion.WithKind("SubjectRulesReview")
-
-// Create takes the representation of a subjectRulesReview and creates it. Returns the server's representation of the subjectRulesReview, and an error, if there is any.
-func (c *FakeSubjectRulesReviews) Create(ctx context.Context, subjectRulesReview *v1.SubjectRulesReview, opts metav1.CreateOptions) (result *v1.SubjectRulesReview, err error) {
- emptyResult := &v1.SubjectRulesReview{}
- obj, err := c.Fake.
- Invokes(testing.NewCreateActionWithOptions(subjectrulesreviewsResource, c.ns, subjectRulesReview, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
+func newFakeSubjectRulesReviews(fake *FakeAuthorizationV1, namespace string) authorizationv1.SubjectRulesReviewInterface {
+ return &fakeSubjectRulesReviews{
+ gentype.NewFakeClient[*v1.SubjectRulesReview](
+ fake.Fake,
+ namespace,
+ v1.SchemeGroupVersion.WithResource("subjectrulesreviews"),
+ v1.SchemeGroupVersion.WithKind("SubjectRulesReview"),
+ func() *v1.SubjectRulesReview { return &v1.SubjectRulesReview{} },
+ ),
+ fake,
}
- return obj.(*v1.SubjectRulesReview), err
}
diff --git a/authorization/clientset/versioned/typed/authorization/v1/localresourceaccessreview.go b/authorization/clientset/versioned/typed/authorization/v1/localresourceaccessreview.go
index 38db908e0..53d5dc570 100644
--- a/authorization/clientset/versioned/typed/authorization/v1/localresourceaccessreview.go
+++ b/authorization/clientset/versioned/typed/authorization/v1/localresourceaccessreview.go
@@ -3,9 +3,9 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/authorization/v1"
+ authorizationv1 "github.com/openshift/api/authorization/v1"
scheme "github.com/openshift/client-go/authorization/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
gentype "k8s.io/client-go/gentype"
@@ -19,31 +19,32 @@ type LocalResourceAccessReviewsGetter interface {
// LocalResourceAccessReviewInterface has methods to work with LocalResourceAccessReview resources.
type LocalResourceAccessReviewInterface interface {
- Create(ctx context.Context, localResourceAccessReview *v1.LocalResourceAccessReview, opts metav1.CreateOptions) (*v1.ResourceAccessReviewResponse, error)
+ Create(ctx context.Context, localResourceAccessReview *authorizationv1.LocalResourceAccessReview, opts metav1.CreateOptions) (*authorizationv1.ResourceAccessReviewResponse, error)
LocalResourceAccessReviewExpansion
}
// localResourceAccessReviews implements LocalResourceAccessReviewInterface
type localResourceAccessReviews struct {
- *gentype.Client[*v1.LocalResourceAccessReview]
+ *gentype.Client[*authorizationv1.LocalResourceAccessReview]
}
// newLocalResourceAccessReviews returns a LocalResourceAccessReviews
func newLocalResourceAccessReviews(c *AuthorizationV1Client, namespace string) *localResourceAccessReviews {
return &localResourceAccessReviews{
- gentype.NewClient[*v1.LocalResourceAccessReview](
+ gentype.NewClient[*authorizationv1.LocalResourceAccessReview](
"localresourceaccessreviews",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
- func() *v1.LocalResourceAccessReview { return &v1.LocalResourceAccessReview{} }),
+ func() *authorizationv1.LocalResourceAccessReview { return &authorizationv1.LocalResourceAccessReview{} },
+ ),
}
}
// Create takes the representation of a localResourceAccessReview and creates it. Returns the server's representation of the resourceAccessReviewResponse, and an error, if there is any.
-func (c *localResourceAccessReviews) Create(ctx context.Context, localResourceAccessReview *v1.LocalResourceAccessReview, opts metav1.CreateOptions) (result *v1.ResourceAccessReviewResponse, err error) {
- result = &v1.ResourceAccessReviewResponse{}
+func (c *localResourceAccessReviews) Create(ctx context.Context, localResourceAccessReview *authorizationv1.LocalResourceAccessReview, opts metav1.CreateOptions) (result *authorizationv1.ResourceAccessReviewResponse, err error) {
+ result = &authorizationv1.ResourceAccessReviewResponse{}
err = c.GetClient().Post().
Namespace(c.GetNamespace()).
Resource("localresourceaccessreviews").
diff --git a/authorization/clientset/versioned/typed/authorization/v1/localsubjectaccessreview.go b/authorization/clientset/versioned/typed/authorization/v1/localsubjectaccessreview.go
index 7e750301b..037e7127f 100644
--- a/authorization/clientset/versioned/typed/authorization/v1/localsubjectaccessreview.go
+++ b/authorization/clientset/versioned/typed/authorization/v1/localsubjectaccessreview.go
@@ -3,9 +3,9 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/authorization/v1"
+ authorizationv1 "github.com/openshift/api/authorization/v1"
scheme "github.com/openshift/client-go/authorization/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
gentype "k8s.io/client-go/gentype"
@@ -19,31 +19,32 @@ type LocalSubjectAccessReviewsGetter interface {
// LocalSubjectAccessReviewInterface has methods to work with LocalSubjectAccessReview resources.
type LocalSubjectAccessReviewInterface interface {
- Create(ctx context.Context, localSubjectAccessReview *v1.LocalSubjectAccessReview, opts metav1.CreateOptions) (*v1.SubjectAccessReviewResponse, error)
+ Create(ctx context.Context, localSubjectAccessReview *authorizationv1.LocalSubjectAccessReview, opts metav1.CreateOptions) (*authorizationv1.SubjectAccessReviewResponse, error)
LocalSubjectAccessReviewExpansion
}
// localSubjectAccessReviews implements LocalSubjectAccessReviewInterface
type localSubjectAccessReviews struct {
- *gentype.Client[*v1.LocalSubjectAccessReview]
+ *gentype.Client[*authorizationv1.LocalSubjectAccessReview]
}
// newLocalSubjectAccessReviews returns a LocalSubjectAccessReviews
func newLocalSubjectAccessReviews(c *AuthorizationV1Client, namespace string) *localSubjectAccessReviews {
return &localSubjectAccessReviews{
- gentype.NewClient[*v1.LocalSubjectAccessReview](
+ gentype.NewClient[*authorizationv1.LocalSubjectAccessReview](
"localsubjectaccessreviews",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
- func() *v1.LocalSubjectAccessReview { return &v1.LocalSubjectAccessReview{} }),
+ func() *authorizationv1.LocalSubjectAccessReview { return &authorizationv1.LocalSubjectAccessReview{} },
+ ),
}
}
// Create takes the representation of a localSubjectAccessReview and creates it. Returns the server's representation of the subjectAccessReviewResponse, and an error, if there is any.
-func (c *localSubjectAccessReviews) Create(ctx context.Context, localSubjectAccessReview *v1.LocalSubjectAccessReview, opts metav1.CreateOptions) (result *v1.SubjectAccessReviewResponse, err error) {
- result = &v1.SubjectAccessReviewResponse{}
+func (c *localSubjectAccessReviews) Create(ctx context.Context, localSubjectAccessReview *authorizationv1.LocalSubjectAccessReview, opts metav1.CreateOptions) (result *authorizationv1.SubjectAccessReviewResponse, err error) {
+ result = &authorizationv1.SubjectAccessReviewResponse{}
err = c.GetClient().Post().
Namespace(c.GetNamespace()).
Resource("localsubjectaccessreviews").
diff --git a/authorization/clientset/versioned/typed/authorization/v1/resourceaccessreview.go b/authorization/clientset/versioned/typed/authorization/v1/resourceaccessreview.go
index 5261234dd..d1c47dd51 100644
--- a/authorization/clientset/versioned/typed/authorization/v1/resourceaccessreview.go
+++ b/authorization/clientset/versioned/typed/authorization/v1/resourceaccessreview.go
@@ -3,9 +3,9 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/authorization/v1"
+ authorizationv1 "github.com/openshift/api/authorization/v1"
scheme "github.com/openshift/client-go/authorization/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
gentype "k8s.io/client-go/gentype"
@@ -19,31 +19,32 @@ type ResourceAccessReviewsGetter interface {
// ResourceAccessReviewInterface has methods to work with ResourceAccessReview resources.
type ResourceAccessReviewInterface interface {
- Create(ctx context.Context, resourceAccessReview *v1.ResourceAccessReview, opts metav1.CreateOptions) (*v1.ResourceAccessReviewResponse, error)
+ Create(ctx context.Context, resourceAccessReview *authorizationv1.ResourceAccessReview, opts metav1.CreateOptions) (*authorizationv1.ResourceAccessReviewResponse, error)
ResourceAccessReviewExpansion
}
// resourceAccessReviews implements ResourceAccessReviewInterface
type resourceAccessReviews struct {
- *gentype.Client[*v1.ResourceAccessReview]
+ *gentype.Client[*authorizationv1.ResourceAccessReview]
}
// newResourceAccessReviews returns a ResourceAccessReviews
func newResourceAccessReviews(c *AuthorizationV1Client) *resourceAccessReviews {
return &resourceAccessReviews{
- gentype.NewClient[*v1.ResourceAccessReview](
+ gentype.NewClient[*authorizationv1.ResourceAccessReview](
"resourceaccessreviews",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.ResourceAccessReview { return &v1.ResourceAccessReview{} }),
+ func() *authorizationv1.ResourceAccessReview { return &authorizationv1.ResourceAccessReview{} },
+ ),
}
}
// Create takes the representation of a resourceAccessReview and creates it. Returns the server's representation of the resourceAccessReviewResponse, and an error, if there is any.
-func (c *resourceAccessReviews) Create(ctx context.Context, resourceAccessReview *v1.ResourceAccessReview, opts metav1.CreateOptions) (result *v1.ResourceAccessReviewResponse, err error) {
- result = &v1.ResourceAccessReviewResponse{}
+func (c *resourceAccessReviews) Create(ctx context.Context, resourceAccessReview *authorizationv1.ResourceAccessReview, opts metav1.CreateOptions) (result *authorizationv1.ResourceAccessReviewResponse, err error) {
+ result = &authorizationv1.ResourceAccessReviewResponse{}
err = c.GetClient().Post().
Resource("resourceaccessreviews").
VersionedParams(&opts, scheme.ParameterCodec).
diff --git a/authorization/clientset/versioned/typed/authorization/v1/role.go b/authorization/clientset/versioned/typed/authorization/v1/role.go
index 6c377f0ab..eeb5fd649 100644
--- a/authorization/clientset/versioned/typed/authorization/v1/role.go
+++ b/authorization/clientset/versioned/typed/authorization/v1/role.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/authorization/v1"
- authorizationv1 "github.com/openshift/client-go/authorization/applyconfigurations/authorization/v1"
+ authorizationv1 "github.com/openshift/api/authorization/v1"
+ applyconfigurationsauthorizationv1 "github.com/openshift/client-go/authorization/applyconfigurations/authorization/v1"
scheme "github.com/openshift/client-go/authorization/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,32 +22,33 @@ type RolesGetter interface {
// RoleInterface has methods to work with Role resources.
type RoleInterface interface {
- Create(ctx context.Context, role *v1.Role, opts metav1.CreateOptions) (*v1.Role, error)
- Update(ctx context.Context, role *v1.Role, opts metav1.UpdateOptions) (*v1.Role, error)
+ Create(ctx context.Context, role *authorizationv1.Role, opts metav1.CreateOptions) (*authorizationv1.Role, error)
+ Update(ctx context.Context, role *authorizationv1.Role, opts metav1.UpdateOptions) (*authorizationv1.Role, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Role, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.RoleList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*authorizationv1.Role, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*authorizationv1.RoleList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Role, err error)
- Apply(ctx context.Context, role *authorizationv1.RoleApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Role, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *authorizationv1.Role, err error)
+ Apply(ctx context.Context, role *applyconfigurationsauthorizationv1.RoleApplyConfiguration, opts metav1.ApplyOptions) (result *authorizationv1.Role, err error)
RoleExpansion
}
// roles implements RoleInterface
type roles struct {
- *gentype.ClientWithListAndApply[*v1.Role, *v1.RoleList, *authorizationv1.RoleApplyConfiguration]
+ *gentype.ClientWithListAndApply[*authorizationv1.Role, *authorizationv1.RoleList, *applyconfigurationsauthorizationv1.RoleApplyConfiguration]
}
// newRoles returns a Roles
func newRoles(c *AuthorizationV1Client, namespace string) *roles {
return &roles{
- gentype.NewClientWithListAndApply[*v1.Role, *v1.RoleList, *authorizationv1.RoleApplyConfiguration](
+ gentype.NewClientWithListAndApply[*authorizationv1.Role, *authorizationv1.RoleList, *applyconfigurationsauthorizationv1.RoleApplyConfiguration](
"roles",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
- func() *v1.Role { return &v1.Role{} },
- func() *v1.RoleList { return &v1.RoleList{} }),
+ func() *authorizationv1.Role { return &authorizationv1.Role{} },
+ func() *authorizationv1.RoleList { return &authorizationv1.RoleList{} },
+ ),
}
}
diff --git a/authorization/clientset/versioned/typed/authorization/v1/rolebinding.go b/authorization/clientset/versioned/typed/authorization/v1/rolebinding.go
index b0331f998..f8f9a53a7 100644
--- a/authorization/clientset/versioned/typed/authorization/v1/rolebinding.go
+++ b/authorization/clientset/versioned/typed/authorization/v1/rolebinding.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/authorization/v1"
- authorizationv1 "github.com/openshift/client-go/authorization/applyconfigurations/authorization/v1"
+ authorizationv1 "github.com/openshift/api/authorization/v1"
+ applyconfigurationsauthorizationv1 "github.com/openshift/client-go/authorization/applyconfigurations/authorization/v1"
scheme "github.com/openshift/client-go/authorization/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,32 +22,33 @@ type RoleBindingsGetter interface {
// RoleBindingInterface has methods to work with RoleBinding resources.
type RoleBindingInterface interface {
- Create(ctx context.Context, roleBinding *v1.RoleBinding, opts metav1.CreateOptions) (*v1.RoleBinding, error)
- Update(ctx context.Context, roleBinding *v1.RoleBinding, opts metav1.UpdateOptions) (*v1.RoleBinding, error)
+ Create(ctx context.Context, roleBinding *authorizationv1.RoleBinding, opts metav1.CreateOptions) (*authorizationv1.RoleBinding, error)
+ Update(ctx context.Context, roleBinding *authorizationv1.RoleBinding, opts metav1.UpdateOptions) (*authorizationv1.RoleBinding, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.RoleBinding, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.RoleBindingList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*authorizationv1.RoleBinding, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*authorizationv1.RoleBindingList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.RoleBinding, err error)
- Apply(ctx context.Context, roleBinding *authorizationv1.RoleBindingApplyConfiguration, opts metav1.ApplyOptions) (result *v1.RoleBinding, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *authorizationv1.RoleBinding, err error)
+ Apply(ctx context.Context, roleBinding *applyconfigurationsauthorizationv1.RoleBindingApplyConfiguration, opts metav1.ApplyOptions) (result *authorizationv1.RoleBinding, err error)
RoleBindingExpansion
}
// roleBindings implements RoleBindingInterface
type roleBindings struct {
- *gentype.ClientWithListAndApply[*v1.RoleBinding, *v1.RoleBindingList, *authorizationv1.RoleBindingApplyConfiguration]
+ *gentype.ClientWithListAndApply[*authorizationv1.RoleBinding, *authorizationv1.RoleBindingList, *applyconfigurationsauthorizationv1.RoleBindingApplyConfiguration]
}
// newRoleBindings returns a RoleBindings
func newRoleBindings(c *AuthorizationV1Client, namespace string) *roleBindings {
return &roleBindings{
- gentype.NewClientWithListAndApply[*v1.RoleBinding, *v1.RoleBindingList, *authorizationv1.RoleBindingApplyConfiguration](
+ gentype.NewClientWithListAndApply[*authorizationv1.RoleBinding, *authorizationv1.RoleBindingList, *applyconfigurationsauthorizationv1.RoleBindingApplyConfiguration](
"rolebindings",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
- func() *v1.RoleBinding { return &v1.RoleBinding{} },
- func() *v1.RoleBindingList { return &v1.RoleBindingList{} }),
+ func() *authorizationv1.RoleBinding { return &authorizationv1.RoleBinding{} },
+ func() *authorizationv1.RoleBindingList { return &authorizationv1.RoleBindingList{} },
+ ),
}
}
diff --git a/authorization/clientset/versioned/typed/authorization/v1/rolebindingrestriction.go b/authorization/clientset/versioned/typed/authorization/v1/rolebindingrestriction.go
index d4d22acdc..28269c0a8 100644
--- a/authorization/clientset/versioned/typed/authorization/v1/rolebindingrestriction.go
+++ b/authorization/clientset/versioned/typed/authorization/v1/rolebindingrestriction.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/authorization/v1"
- authorizationv1 "github.com/openshift/client-go/authorization/applyconfigurations/authorization/v1"
+ authorizationv1 "github.com/openshift/api/authorization/v1"
+ applyconfigurationsauthorizationv1 "github.com/openshift/client-go/authorization/applyconfigurations/authorization/v1"
scheme "github.com/openshift/client-go/authorization/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,32 +22,35 @@ type RoleBindingRestrictionsGetter interface {
// RoleBindingRestrictionInterface has methods to work with RoleBindingRestriction resources.
type RoleBindingRestrictionInterface interface {
- Create(ctx context.Context, roleBindingRestriction *v1.RoleBindingRestriction, opts metav1.CreateOptions) (*v1.RoleBindingRestriction, error)
- Update(ctx context.Context, roleBindingRestriction *v1.RoleBindingRestriction, opts metav1.UpdateOptions) (*v1.RoleBindingRestriction, error)
+ Create(ctx context.Context, roleBindingRestriction *authorizationv1.RoleBindingRestriction, opts metav1.CreateOptions) (*authorizationv1.RoleBindingRestriction, error)
+ Update(ctx context.Context, roleBindingRestriction *authorizationv1.RoleBindingRestriction, opts metav1.UpdateOptions) (*authorizationv1.RoleBindingRestriction, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.RoleBindingRestriction, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.RoleBindingRestrictionList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*authorizationv1.RoleBindingRestriction, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*authorizationv1.RoleBindingRestrictionList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.RoleBindingRestriction, err error)
- Apply(ctx context.Context, roleBindingRestriction *authorizationv1.RoleBindingRestrictionApplyConfiguration, opts metav1.ApplyOptions) (result *v1.RoleBindingRestriction, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *authorizationv1.RoleBindingRestriction, err error)
+ Apply(ctx context.Context, roleBindingRestriction *applyconfigurationsauthorizationv1.RoleBindingRestrictionApplyConfiguration, opts metav1.ApplyOptions) (result *authorizationv1.RoleBindingRestriction, err error)
RoleBindingRestrictionExpansion
}
// roleBindingRestrictions implements RoleBindingRestrictionInterface
type roleBindingRestrictions struct {
- *gentype.ClientWithListAndApply[*v1.RoleBindingRestriction, *v1.RoleBindingRestrictionList, *authorizationv1.RoleBindingRestrictionApplyConfiguration]
+ *gentype.ClientWithListAndApply[*authorizationv1.RoleBindingRestriction, *authorizationv1.RoleBindingRestrictionList, *applyconfigurationsauthorizationv1.RoleBindingRestrictionApplyConfiguration]
}
// newRoleBindingRestrictions returns a RoleBindingRestrictions
func newRoleBindingRestrictions(c *AuthorizationV1Client, namespace string) *roleBindingRestrictions {
return &roleBindingRestrictions{
- gentype.NewClientWithListAndApply[*v1.RoleBindingRestriction, *v1.RoleBindingRestrictionList, *authorizationv1.RoleBindingRestrictionApplyConfiguration](
+ gentype.NewClientWithListAndApply[*authorizationv1.RoleBindingRestriction, *authorizationv1.RoleBindingRestrictionList, *applyconfigurationsauthorizationv1.RoleBindingRestrictionApplyConfiguration](
"rolebindingrestrictions",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
- func() *v1.RoleBindingRestriction { return &v1.RoleBindingRestriction{} },
- func() *v1.RoleBindingRestrictionList { return &v1.RoleBindingRestrictionList{} }),
+ func() *authorizationv1.RoleBindingRestriction { return &authorizationv1.RoleBindingRestriction{} },
+ func() *authorizationv1.RoleBindingRestrictionList {
+ return &authorizationv1.RoleBindingRestrictionList{}
+ },
+ ),
}
}
diff --git a/authorization/clientset/versioned/typed/authorization/v1/selfsubjectrulesreview.go b/authorization/clientset/versioned/typed/authorization/v1/selfsubjectrulesreview.go
index f3fec99ae..5a9557069 100644
--- a/authorization/clientset/versioned/typed/authorization/v1/selfsubjectrulesreview.go
+++ b/authorization/clientset/versioned/typed/authorization/v1/selfsubjectrulesreview.go
@@ -3,9 +3,9 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/authorization/v1"
+ authorizationv1 "github.com/openshift/api/authorization/v1"
scheme "github.com/openshift/client-go/authorization/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
gentype "k8s.io/client-go/gentype"
@@ -19,23 +19,24 @@ type SelfSubjectRulesReviewsGetter interface {
// SelfSubjectRulesReviewInterface has methods to work with SelfSubjectRulesReview resources.
type SelfSubjectRulesReviewInterface interface {
- Create(ctx context.Context, selfSubjectRulesReview *v1.SelfSubjectRulesReview, opts metav1.CreateOptions) (*v1.SelfSubjectRulesReview, error)
+ Create(ctx context.Context, selfSubjectRulesReview *authorizationv1.SelfSubjectRulesReview, opts metav1.CreateOptions) (*authorizationv1.SelfSubjectRulesReview, error)
SelfSubjectRulesReviewExpansion
}
// selfSubjectRulesReviews implements SelfSubjectRulesReviewInterface
type selfSubjectRulesReviews struct {
- *gentype.Client[*v1.SelfSubjectRulesReview]
+ *gentype.Client[*authorizationv1.SelfSubjectRulesReview]
}
// newSelfSubjectRulesReviews returns a SelfSubjectRulesReviews
func newSelfSubjectRulesReviews(c *AuthorizationV1Client, namespace string) *selfSubjectRulesReviews {
return &selfSubjectRulesReviews{
- gentype.NewClient[*v1.SelfSubjectRulesReview](
+ gentype.NewClient[*authorizationv1.SelfSubjectRulesReview](
"selfsubjectrulesreviews",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
- func() *v1.SelfSubjectRulesReview { return &v1.SelfSubjectRulesReview{} }),
+ func() *authorizationv1.SelfSubjectRulesReview { return &authorizationv1.SelfSubjectRulesReview{} },
+ ),
}
}
diff --git a/authorization/clientset/versioned/typed/authorization/v1/subjectaccessreview.go b/authorization/clientset/versioned/typed/authorization/v1/subjectaccessreview.go
index 48d64f4c7..241ba05c8 100644
--- a/authorization/clientset/versioned/typed/authorization/v1/subjectaccessreview.go
+++ b/authorization/clientset/versioned/typed/authorization/v1/subjectaccessreview.go
@@ -3,9 +3,9 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/authorization/v1"
+ authorizationv1 "github.com/openshift/api/authorization/v1"
scheme "github.com/openshift/client-go/authorization/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
gentype "k8s.io/client-go/gentype"
@@ -19,31 +19,32 @@ type SubjectAccessReviewsGetter interface {
// SubjectAccessReviewInterface has methods to work with SubjectAccessReview resources.
type SubjectAccessReviewInterface interface {
- Create(ctx context.Context, subjectAccessReview *v1.SubjectAccessReview, opts metav1.CreateOptions) (*v1.SubjectAccessReviewResponse, error)
+ Create(ctx context.Context, subjectAccessReview *authorizationv1.SubjectAccessReview, opts metav1.CreateOptions) (*authorizationv1.SubjectAccessReviewResponse, error)
SubjectAccessReviewExpansion
}
// subjectAccessReviews implements SubjectAccessReviewInterface
type subjectAccessReviews struct {
- *gentype.Client[*v1.SubjectAccessReview]
+ *gentype.Client[*authorizationv1.SubjectAccessReview]
}
// newSubjectAccessReviews returns a SubjectAccessReviews
func newSubjectAccessReviews(c *AuthorizationV1Client) *subjectAccessReviews {
return &subjectAccessReviews{
- gentype.NewClient[*v1.SubjectAccessReview](
+ gentype.NewClient[*authorizationv1.SubjectAccessReview](
"subjectaccessreviews",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.SubjectAccessReview { return &v1.SubjectAccessReview{} }),
+ func() *authorizationv1.SubjectAccessReview { return &authorizationv1.SubjectAccessReview{} },
+ ),
}
}
// Create takes the representation of a subjectAccessReview and creates it. Returns the server's representation of the subjectAccessReviewResponse, and an error, if there is any.
-func (c *subjectAccessReviews) Create(ctx context.Context, subjectAccessReview *v1.SubjectAccessReview, opts metav1.CreateOptions) (result *v1.SubjectAccessReviewResponse, err error) {
- result = &v1.SubjectAccessReviewResponse{}
+func (c *subjectAccessReviews) Create(ctx context.Context, subjectAccessReview *authorizationv1.SubjectAccessReview, opts metav1.CreateOptions) (result *authorizationv1.SubjectAccessReviewResponse, err error) {
+ result = &authorizationv1.SubjectAccessReviewResponse{}
err = c.GetClient().Post().
Resource("subjectaccessreviews").
VersionedParams(&opts, scheme.ParameterCodec).
diff --git a/authorization/clientset/versioned/typed/authorization/v1/subjectrulesreview.go b/authorization/clientset/versioned/typed/authorization/v1/subjectrulesreview.go
index 70d8ed8c9..f09652ad9 100644
--- a/authorization/clientset/versioned/typed/authorization/v1/subjectrulesreview.go
+++ b/authorization/clientset/versioned/typed/authorization/v1/subjectrulesreview.go
@@ -3,9 +3,9 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/authorization/v1"
+ authorizationv1 "github.com/openshift/api/authorization/v1"
scheme "github.com/openshift/client-go/authorization/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
gentype "k8s.io/client-go/gentype"
@@ -19,23 +19,24 @@ type SubjectRulesReviewsGetter interface {
// SubjectRulesReviewInterface has methods to work with SubjectRulesReview resources.
type SubjectRulesReviewInterface interface {
- Create(ctx context.Context, subjectRulesReview *v1.SubjectRulesReview, opts metav1.CreateOptions) (*v1.SubjectRulesReview, error)
+ Create(ctx context.Context, subjectRulesReview *authorizationv1.SubjectRulesReview, opts metav1.CreateOptions) (*authorizationv1.SubjectRulesReview, error)
SubjectRulesReviewExpansion
}
// subjectRulesReviews implements SubjectRulesReviewInterface
type subjectRulesReviews struct {
- *gentype.Client[*v1.SubjectRulesReview]
+ *gentype.Client[*authorizationv1.SubjectRulesReview]
}
// newSubjectRulesReviews returns a SubjectRulesReviews
func newSubjectRulesReviews(c *AuthorizationV1Client, namespace string) *subjectRulesReviews {
return &subjectRulesReviews{
- gentype.NewClient[*v1.SubjectRulesReview](
+ gentype.NewClient[*authorizationv1.SubjectRulesReview](
"subjectrulesreviews",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
- func() *v1.SubjectRulesReview { return &v1.SubjectRulesReview{} }),
+ func() *authorizationv1.SubjectRulesReview { return &authorizationv1.SubjectRulesReview{} },
+ ),
}
}
diff --git a/authorization/informers/externalversions/authorization/v1/clusterrole.go b/authorization/informers/externalversions/authorization/v1/clusterrole.go
index f58334174..3fbe8fac5 100644
--- a/authorization/informers/externalversions/authorization/v1/clusterrole.go
+++ b/authorization/informers/externalversions/authorization/v1/clusterrole.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- authorizationv1 "github.com/openshift/api/authorization/v1"
+ apiauthorizationv1 "github.com/openshift/api/authorization/v1"
versioned "github.com/openshift/client-go/authorization/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/authorization/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/authorization/listers/authorization/v1"
+ authorizationv1 "github.com/openshift/client-go/authorization/listers/authorization/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// ClusterRoles.
type ClusterRoleInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.ClusterRoleLister
+ Lister() authorizationv1.ClusterRoleLister
}
type clusterRoleInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredClusterRoleInformer(client versioned.Interface, resyncPeriod tim
return client.AuthorizationV1().ClusterRoles().Watch(context.TODO(), options)
},
},
- &authorizationv1.ClusterRole{},
+ &apiauthorizationv1.ClusterRole{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *clusterRoleInformer) defaultInformer(client versioned.Interface, resync
}
func (f *clusterRoleInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&authorizationv1.ClusterRole{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiauthorizationv1.ClusterRole{}, f.defaultInformer)
}
-func (f *clusterRoleInformer) Lister() v1.ClusterRoleLister {
- return v1.NewClusterRoleLister(f.Informer().GetIndexer())
+func (f *clusterRoleInformer) Lister() authorizationv1.ClusterRoleLister {
+ return authorizationv1.NewClusterRoleLister(f.Informer().GetIndexer())
}
diff --git a/authorization/informers/externalversions/authorization/v1/clusterrolebinding.go b/authorization/informers/externalversions/authorization/v1/clusterrolebinding.go
index b66ea22a2..9d477c4fd 100644
--- a/authorization/informers/externalversions/authorization/v1/clusterrolebinding.go
+++ b/authorization/informers/externalversions/authorization/v1/clusterrolebinding.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- authorizationv1 "github.com/openshift/api/authorization/v1"
+ apiauthorizationv1 "github.com/openshift/api/authorization/v1"
versioned "github.com/openshift/client-go/authorization/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/authorization/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/authorization/listers/authorization/v1"
+ authorizationv1 "github.com/openshift/client-go/authorization/listers/authorization/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// ClusterRoleBindings.
type ClusterRoleBindingInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.ClusterRoleBindingLister
+ Lister() authorizationv1.ClusterRoleBindingLister
}
type clusterRoleBindingInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredClusterRoleBindingInformer(client versioned.Interface, resyncPer
return client.AuthorizationV1().ClusterRoleBindings().Watch(context.TODO(), options)
},
},
- &authorizationv1.ClusterRoleBinding{},
+ &apiauthorizationv1.ClusterRoleBinding{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *clusterRoleBindingInformer) defaultInformer(client versioned.Interface,
}
func (f *clusterRoleBindingInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&authorizationv1.ClusterRoleBinding{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiauthorizationv1.ClusterRoleBinding{}, f.defaultInformer)
}
-func (f *clusterRoleBindingInformer) Lister() v1.ClusterRoleBindingLister {
- return v1.NewClusterRoleBindingLister(f.Informer().GetIndexer())
+func (f *clusterRoleBindingInformer) Lister() authorizationv1.ClusterRoleBindingLister {
+ return authorizationv1.NewClusterRoleBindingLister(f.Informer().GetIndexer())
}
diff --git a/authorization/informers/externalversions/authorization/v1/role.go b/authorization/informers/externalversions/authorization/v1/role.go
index d422c7827..b75793a35 100644
--- a/authorization/informers/externalversions/authorization/v1/role.go
+++ b/authorization/informers/externalversions/authorization/v1/role.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- authorizationv1 "github.com/openshift/api/authorization/v1"
+ apiauthorizationv1 "github.com/openshift/api/authorization/v1"
versioned "github.com/openshift/client-go/authorization/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/authorization/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/authorization/listers/authorization/v1"
+ authorizationv1 "github.com/openshift/client-go/authorization/listers/authorization/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// Roles.
type RoleInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.RoleLister
+ Lister() authorizationv1.RoleLister
}
type roleInformer struct {
@@ -55,7 +55,7 @@ func NewFilteredRoleInformer(client versioned.Interface, namespace string, resyn
return client.AuthorizationV1().Roles(namespace).Watch(context.TODO(), options)
},
},
- &authorizationv1.Role{},
+ &apiauthorizationv1.Role{},
resyncPeriod,
indexers,
)
@@ -66,9 +66,9 @@ func (f *roleInformer) defaultInformer(client versioned.Interface, resyncPeriod
}
func (f *roleInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&authorizationv1.Role{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiauthorizationv1.Role{}, f.defaultInformer)
}
-func (f *roleInformer) Lister() v1.RoleLister {
- return v1.NewRoleLister(f.Informer().GetIndexer())
+func (f *roleInformer) Lister() authorizationv1.RoleLister {
+ return authorizationv1.NewRoleLister(f.Informer().GetIndexer())
}
diff --git a/authorization/informers/externalversions/authorization/v1/rolebinding.go b/authorization/informers/externalversions/authorization/v1/rolebinding.go
index 80afa1f3a..91d68fb1c 100644
--- a/authorization/informers/externalversions/authorization/v1/rolebinding.go
+++ b/authorization/informers/externalversions/authorization/v1/rolebinding.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- authorizationv1 "github.com/openshift/api/authorization/v1"
+ apiauthorizationv1 "github.com/openshift/api/authorization/v1"
versioned "github.com/openshift/client-go/authorization/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/authorization/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/authorization/listers/authorization/v1"
+ authorizationv1 "github.com/openshift/client-go/authorization/listers/authorization/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// RoleBindings.
type RoleBindingInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.RoleBindingLister
+ Lister() authorizationv1.RoleBindingLister
}
type roleBindingInformer struct {
@@ -55,7 +55,7 @@ func NewFilteredRoleBindingInformer(client versioned.Interface, namespace string
return client.AuthorizationV1().RoleBindings(namespace).Watch(context.TODO(), options)
},
},
- &authorizationv1.RoleBinding{},
+ &apiauthorizationv1.RoleBinding{},
resyncPeriod,
indexers,
)
@@ -66,9 +66,9 @@ func (f *roleBindingInformer) defaultInformer(client versioned.Interface, resync
}
func (f *roleBindingInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&authorizationv1.RoleBinding{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiauthorizationv1.RoleBinding{}, f.defaultInformer)
}
-func (f *roleBindingInformer) Lister() v1.RoleBindingLister {
- return v1.NewRoleBindingLister(f.Informer().GetIndexer())
+func (f *roleBindingInformer) Lister() authorizationv1.RoleBindingLister {
+ return authorizationv1.NewRoleBindingLister(f.Informer().GetIndexer())
}
diff --git a/authorization/informers/externalversions/authorization/v1/rolebindingrestriction.go b/authorization/informers/externalversions/authorization/v1/rolebindingrestriction.go
index 1f6b46247..577c59e9b 100644
--- a/authorization/informers/externalversions/authorization/v1/rolebindingrestriction.go
+++ b/authorization/informers/externalversions/authorization/v1/rolebindingrestriction.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- authorizationv1 "github.com/openshift/api/authorization/v1"
+ apiauthorizationv1 "github.com/openshift/api/authorization/v1"
versioned "github.com/openshift/client-go/authorization/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/authorization/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/authorization/listers/authorization/v1"
+ authorizationv1 "github.com/openshift/client-go/authorization/listers/authorization/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// RoleBindingRestrictions.
type RoleBindingRestrictionInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.RoleBindingRestrictionLister
+ Lister() authorizationv1.RoleBindingRestrictionLister
}
type roleBindingRestrictionInformer struct {
@@ -55,7 +55,7 @@ func NewFilteredRoleBindingRestrictionInformer(client versioned.Interface, names
return client.AuthorizationV1().RoleBindingRestrictions(namespace).Watch(context.TODO(), options)
},
},
- &authorizationv1.RoleBindingRestriction{},
+ &apiauthorizationv1.RoleBindingRestriction{},
resyncPeriod,
indexers,
)
@@ -66,9 +66,9 @@ func (f *roleBindingRestrictionInformer) defaultInformer(client versioned.Interf
}
func (f *roleBindingRestrictionInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&authorizationv1.RoleBindingRestriction{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiauthorizationv1.RoleBindingRestriction{}, f.defaultInformer)
}
-func (f *roleBindingRestrictionInformer) Lister() v1.RoleBindingRestrictionLister {
- return v1.NewRoleBindingRestrictionLister(f.Informer().GetIndexer())
+func (f *roleBindingRestrictionInformer) Lister() authorizationv1.RoleBindingRestrictionLister {
+ return authorizationv1.NewRoleBindingRestrictionLister(f.Informer().GetIndexer())
}
diff --git a/authorization/informers/externalversions/generic.go b/authorization/informers/externalversions/generic.go
index ed77429a8..5c01f7cc0 100644
--- a/authorization/informers/externalversions/generic.go
+++ b/authorization/informers/externalversions/generic.go
@@ -3,7 +3,7 @@
package externalversions
import (
- "fmt"
+ fmt "fmt"
v1 "github.com/openshift/api/authorization/v1"
schema "k8s.io/apimachinery/pkg/runtime/schema"
diff --git a/authorization/listers/authorization/v1/clusterrole.go b/authorization/listers/authorization/v1/clusterrole.go
index 070029d94..909d13f3b 100644
--- a/authorization/listers/authorization/v1/clusterrole.go
+++ b/authorization/listers/authorization/v1/clusterrole.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/authorization/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ authorizationv1 "github.com/openshift/api/authorization/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ClusterRoleLister helps list ClusterRoles.
@@ -14,19 +14,19 @@ import (
type ClusterRoleLister interface {
// List lists all ClusterRoles in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.ClusterRole, err error)
+ List(selector labels.Selector) (ret []*authorizationv1.ClusterRole, err error)
// Get retrieves the ClusterRole from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.ClusterRole, error)
+ Get(name string) (*authorizationv1.ClusterRole, error)
ClusterRoleListerExpansion
}
// clusterRoleLister implements the ClusterRoleLister interface.
type clusterRoleLister struct {
- listers.ResourceIndexer[*v1.ClusterRole]
+ listers.ResourceIndexer[*authorizationv1.ClusterRole]
}
// NewClusterRoleLister returns a new ClusterRoleLister.
func NewClusterRoleLister(indexer cache.Indexer) ClusterRoleLister {
- return &clusterRoleLister{listers.New[*v1.ClusterRole](indexer, v1.Resource("clusterrole"))}
+ return &clusterRoleLister{listers.New[*authorizationv1.ClusterRole](indexer, authorizationv1.Resource("clusterrole"))}
}
diff --git a/authorization/listers/authorization/v1/clusterrolebinding.go b/authorization/listers/authorization/v1/clusterrolebinding.go
index 2cce3c458..0526894f8 100644
--- a/authorization/listers/authorization/v1/clusterrolebinding.go
+++ b/authorization/listers/authorization/v1/clusterrolebinding.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/authorization/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ authorizationv1 "github.com/openshift/api/authorization/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ClusterRoleBindingLister helps list ClusterRoleBindings.
@@ -14,19 +14,19 @@ import (
type ClusterRoleBindingLister interface {
// List lists all ClusterRoleBindings in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.ClusterRoleBinding, err error)
+ List(selector labels.Selector) (ret []*authorizationv1.ClusterRoleBinding, err error)
// Get retrieves the ClusterRoleBinding from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.ClusterRoleBinding, error)
+ Get(name string) (*authorizationv1.ClusterRoleBinding, error)
ClusterRoleBindingListerExpansion
}
// clusterRoleBindingLister implements the ClusterRoleBindingLister interface.
type clusterRoleBindingLister struct {
- listers.ResourceIndexer[*v1.ClusterRoleBinding]
+ listers.ResourceIndexer[*authorizationv1.ClusterRoleBinding]
}
// NewClusterRoleBindingLister returns a new ClusterRoleBindingLister.
func NewClusterRoleBindingLister(indexer cache.Indexer) ClusterRoleBindingLister {
- return &clusterRoleBindingLister{listers.New[*v1.ClusterRoleBinding](indexer, v1.Resource("clusterrolebinding"))}
+ return &clusterRoleBindingLister{listers.New[*authorizationv1.ClusterRoleBinding](indexer, authorizationv1.Resource("clusterrolebinding"))}
}
diff --git a/authorization/listers/authorization/v1/role.go b/authorization/listers/authorization/v1/role.go
index 7c04f802b..da2d60f1e 100644
--- a/authorization/listers/authorization/v1/role.go
+++ b/authorization/listers/authorization/v1/role.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/authorization/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ authorizationv1 "github.com/openshift/api/authorization/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// RoleLister helps list Roles.
@@ -14,7 +14,7 @@ import (
type RoleLister interface {
// List lists all Roles in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.Role, err error)
+ List(selector labels.Selector) (ret []*authorizationv1.Role, err error)
// Roles returns an object that can list and get Roles.
Roles(namespace string) RoleNamespaceLister
RoleListerExpansion
@@ -22,17 +22,17 @@ type RoleLister interface {
// roleLister implements the RoleLister interface.
type roleLister struct {
- listers.ResourceIndexer[*v1.Role]
+ listers.ResourceIndexer[*authorizationv1.Role]
}
// NewRoleLister returns a new RoleLister.
func NewRoleLister(indexer cache.Indexer) RoleLister {
- return &roleLister{listers.New[*v1.Role](indexer, v1.Resource("role"))}
+ return &roleLister{listers.New[*authorizationv1.Role](indexer, authorizationv1.Resource("role"))}
}
// Roles returns an object that can list and get Roles.
func (s *roleLister) Roles(namespace string) RoleNamespaceLister {
- return roleNamespaceLister{listers.NewNamespaced[*v1.Role](s.ResourceIndexer, namespace)}
+ return roleNamespaceLister{listers.NewNamespaced[*authorizationv1.Role](s.ResourceIndexer, namespace)}
}
// RoleNamespaceLister helps list and get Roles.
@@ -40,15 +40,15 @@ func (s *roleLister) Roles(namespace string) RoleNamespaceLister {
type RoleNamespaceLister interface {
// List lists all Roles in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.Role, err error)
+ List(selector labels.Selector) (ret []*authorizationv1.Role, err error)
// Get retrieves the Role from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.Role, error)
+ Get(name string) (*authorizationv1.Role, error)
RoleNamespaceListerExpansion
}
// roleNamespaceLister implements the RoleNamespaceLister
// interface.
type roleNamespaceLister struct {
- listers.ResourceIndexer[*v1.Role]
+ listers.ResourceIndexer[*authorizationv1.Role]
}
diff --git a/authorization/listers/authorization/v1/rolebinding.go b/authorization/listers/authorization/v1/rolebinding.go
index 6df30ec50..85acdacec 100644
--- a/authorization/listers/authorization/v1/rolebinding.go
+++ b/authorization/listers/authorization/v1/rolebinding.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/authorization/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ authorizationv1 "github.com/openshift/api/authorization/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// RoleBindingLister helps list RoleBindings.
@@ -14,7 +14,7 @@ import (
type RoleBindingLister interface {
// List lists all RoleBindings in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.RoleBinding, err error)
+ List(selector labels.Selector) (ret []*authorizationv1.RoleBinding, err error)
// RoleBindings returns an object that can list and get RoleBindings.
RoleBindings(namespace string) RoleBindingNamespaceLister
RoleBindingListerExpansion
@@ -22,17 +22,17 @@ type RoleBindingLister interface {
// roleBindingLister implements the RoleBindingLister interface.
type roleBindingLister struct {
- listers.ResourceIndexer[*v1.RoleBinding]
+ listers.ResourceIndexer[*authorizationv1.RoleBinding]
}
// NewRoleBindingLister returns a new RoleBindingLister.
func NewRoleBindingLister(indexer cache.Indexer) RoleBindingLister {
- return &roleBindingLister{listers.New[*v1.RoleBinding](indexer, v1.Resource("rolebinding"))}
+ return &roleBindingLister{listers.New[*authorizationv1.RoleBinding](indexer, authorizationv1.Resource("rolebinding"))}
}
// RoleBindings returns an object that can list and get RoleBindings.
func (s *roleBindingLister) RoleBindings(namespace string) RoleBindingNamespaceLister {
- return roleBindingNamespaceLister{listers.NewNamespaced[*v1.RoleBinding](s.ResourceIndexer, namespace)}
+ return roleBindingNamespaceLister{listers.NewNamespaced[*authorizationv1.RoleBinding](s.ResourceIndexer, namespace)}
}
// RoleBindingNamespaceLister helps list and get RoleBindings.
@@ -40,15 +40,15 @@ func (s *roleBindingLister) RoleBindings(namespace string) RoleBindingNamespaceL
type RoleBindingNamespaceLister interface {
// List lists all RoleBindings in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.RoleBinding, err error)
+ List(selector labels.Selector) (ret []*authorizationv1.RoleBinding, err error)
// Get retrieves the RoleBinding from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.RoleBinding, error)
+ Get(name string) (*authorizationv1.RoleBinding, error)
RoleBindingNamespaceListerExpansion
}
// roleBindingNamespaceLister implements the RoleBindingNamespaceLister
// interface.
type roleBindingNamespaceLister struct {
- listers.ResourceIndexer[*v1.RoleBinding]
+ listers.ResourceIndexer[*authorizationv1.RoleBinding]
}
diff --git a/authorization/listers/authorization/v1/rolebindingrestriction.go b/authorization/listers/authorization/v1/rolebindingrestriction.go
index 40ac47dc7..6b720253f 100644
--- a/authorization/listers/authorization/v1/rolebindingrestriction.go
+++ b/authorization/listers/authorization/v1/rolebindingrestriction.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/authorization/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ authorizationv1 "github.com/openshift/api/authorization/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// RoleBindingRestrictionLister helps list RoleBindingRestrictions.
@@ -14,7 +14,7 @@ import (
type RoleBindingRestrictionLister interface {
// List lists all RoleBindingRestrictions in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.RoleBindingRestriction, err error)
+ List(selector labels.Selector) (ret []*authorizationv1.RoleBindingRestriction, err error)
// RoleBindingRestrictions returns an object that can list and get RoleBindingRestrictions.
RoleBindingRestrictions(namespace string) RoleBindingRestrictionNamespaceLister
RoleBindingRestrictionListerExpansion
@@ -22,17 +22,17 @@ type RoleBindingRestrictionLister interface {
// roleBindingRestrictionLister implements the RoleBindingRestrictionLister interface.
type roleBindingRestrictionLister struct {
- listers.ResourceIndexer[*v1.RoleBindingRestriction]
+ listers.ResourceIndexer[*authorizationv1.RoleBindingRestriction]
}
// NewRoleBindingRestrictionLister returns a new RoleBindingRestrictionLister.
func NewRoleBindingRestrictionLister(indexer cache.Indexer) RoleBindingRestrictionLister {
- return &roleBindingRestrictionLister{listers.New[*v1.RoleBindingRestriction](indexer, v1.Resource("rolebindingrestriction"))}
+ return &roleBindingRestrictionLister{listers.New[*authorizationv1.RoleBindingRestriction](indexer, authorizationv1.Resource("rolebindingrestriction"))}
}
// RoleBindingRestrictions returns an object that can list and get RoleBindingRestrictions.
func (s *roleBindingRestrictionLister) RoleBindingRestrictions(namespace string) RoleBindingRestrictionNamespaceLister {
- return roleBindingRestrictionNamespaceLister{listers.NewNamespaced[*v1.RoleBindingRestriction](s.ResourceIndexer, namespace)}
+ return roleBindingRestrictionNamespaceLister{listers.NewNamespaced[*authorizationv1.RoleBindingRestriction](s.ResourceIndexer, namespace)}
}
// RoleBindingRestrictionNamespaceLister helps list and get RoleBindingRestrictions.
@@ -40,15 +40,15 @@ func (s *roleBindingRestrictionLister) RoleBindingRestrictions(namespace string)
type RoleBindingRestrictionNamespaceLister interface {
// List lists all RoleBindingRestrictions in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.RoleBindingRestriction, err error)
+ List(selector labels.Selector) (ret []*authorizationv1.RoleBindingRestriction, err error)
// Get retrieves the RoleBindingRestriction from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.RoleBindingRestriction, error)
+ Get(name string) (*authorizationv1.RoleBindingRestriction, error)
RoleBindingRestrictionNamespaceListerExpansion
}
// roleBindingRestrictionNamespaceLister implements the RoleBindingRestrictionNamespaceLister
// interface.
type roleBindingRestrictionNamespaceLister struct {
- listers.ResourceIndexer[*v1.RoleBindingRestriction]
+ listers.ResourceIndexer[*authorizationv1.RoleBindingRestriction]
}
diff --git a/build/applyconfigurations/build/v1/bitbucketwebhookcause.go b/build/applyconfigurations/build/v1/bitbucketwebhookcause.go
index e79d8c77c..2a40f7f54 100644
--- a/build/applyconfigurations/build/v1/bitbucketwebhookcause.go
+++ b/build/applyconfigurations/build/v1/bitbucketwebhookcause.go
@@ -18,7 +18,7 @@ func BitbucketWebHookCause() *BitbucketWebHookCauseApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Revision field is set to the value of the last call.
func (b *BitbucketWebHookCauseApplyConfiguration) WithRevision(value *SourceRevisionApplyConfiguration) *BitbucketWebHookCauseApplyConfiguration {
- b.Revision = value
+ b.CommonWebHookCauseApplyConfiguration.Revision = value
return b
}
@@ -26,6 +26,6 @@ func (b *BitbucketWebHookCauseApplyConfiguration) WithRevision(value *SourceRevi
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Secret field is set to the value of the last call.
func (b *BitbucketWebHookCauseApplyConfiguration) WithSecret(value string) *BitbucketWebHookCauseApplyConfiguration {
- b.Secret = &value
+ b.CommonWebHookCauseApplyConfiguration.Secret = &value
return b
}
diff --git a/build/applyconfigurations/build/v1/build.go b/build/applyconfigurations/build/v1/build.go
index b4a1a9741..679d04d16 100644
--- a/build/applyconfigurations/build/v1/build.go
+++ b/build/applyconfigurations/build/v1/build.go
@@ -3,21 +3,21 @@
package v1
import (
- apibuildv1 "github.com/openshift/api/build/v1"
+ buildv1 "github.com/openshift/api/build/v1"
internal "github.com/openshift/client-go/build/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// BuildApplyConfiguration represents a declarative configuration of the Build type for use
// with apply.
type BuildApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *BuildSpecApplyConfiguration `json:"spec,omitempty"`
- Status *BuildStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *BuildSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *BuildStatusApplyConfiguration `json:"status,omitempty"`
}
// Build constructs a declarative configuration of the Build type for use with
@@ -42,18 +42,18 @@ func Build(name, namespace string) *BuildApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractBuild(build *apibuildv1.Build, fieldManager string) (*BuildApplyConfiguration, error) {
+func ExtractBuild(build *buildv1.Build, fieldManager string) (*BuildApplyConfiguration, error) {
return extractBuild(build, fieldManager, "")
}
// ExtractBuildStatus is the same as ExtractBuild except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractBuildStatus(build *apibuildv1.Build, fieldManager string) (*BuildApplyConfiguration, error) {
+func ExtractBuildStatus(build *buildv1.Build, fieldManager string) (*BuildApplyConfiguration, error) {
return extractBuild(build, fieldManager, "status")
}
-func extractBuild(build *apibuildv1.Build, fieldManager string, subresource string) (*BuildApplyConfiguration, error) {
+func extractBuild(build *buildv1.Build, fieldManager string, subresource string) (*BuildApplyConfiguration, error) {
b := &BuildApplyConfiguration{}
err := managedfields.ExtractInto(build, internal.Parser().Type("com.github.openshift.api.build.v1.Build"), fieldManager, b, subresource)
if err != nil {
@@ -71,7 +71,7 @@ func extractBuild(build *apibuildv1.Build, fieldManager string, subresource stri
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *BuildApplyConfiguration) WithKind(value string) *BuildApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -79,7 +79,7 @@ func (b *BuildApplyConfiguration) WithKind(value string) *BuildApplyConfiguratio
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *BuildApplyConfiguration) WithAPIVersion(value string) *BuildApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -88,7 +88,7 @@ func (b *BuildApplyConfiguration) WithAPIVersion(value string) *BuildApplyConfig
// If called multiple times, the Name field is set to the value of the last call.
func (b *BuildApplyConfiguration) WithName(value string) *BuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -97,7 +97,7 @@ func (b *BuildApplyConfiguration) WithName(value string) *BuildApplyConfiguratio
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *BuildApplyConfiguration) WithGenerateName(value string) *BuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -106,7 +106,7 @@ func (b *BuildApplyConfiguration) WithGenerateName(value string) *BuildApplyConf
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *BuildApplyConfiguration) WithNamespace(value string) *BuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -115,7 +115,7 @@ func (b *BuildApplyConfiguration) WithNamespace(value string) *BuildApplyConfigu
// If called multiple times, the UID field is set to the value of the last call.
func (b *BuildApplyConfiguration) WithUID(value types.UID) *BuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -124,7 +124,7 @@ func (b *BuildApplyConfiguration) WithUID(value types.UID) *BuildApplyConfigurat
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *BuildApplyConfiguration) WithResourceVersion(value string) *BuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -133,25 +133,25 @@ func (b *BuildApplyConfiguration) WithResourceVersion(value string) *BuildApplyC
// If called multiple times, the Generation field is set to the value of the last call.
func (b *BuildApplyConfiguration) WithGeneration(value int64) *BuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *BuildApplyConfiguration) WithCreationTimestamp(value metav1.Time) *BuildApplyConfiguration {
+func (b *BuildApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *BuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *BuildApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *BuildApplyConfiguration {
+func (b *BuildApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *BuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -160,7 +160,7 @@ func (b *BuildApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *Buil
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *BuildApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *BuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -170,11 +170,11 @@ func (b *BuildApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *B
// overwriting an existing map entries in Labels field with the same key.
func (b *BuildApplyConfiguration) WithLabels(entries map[string]string) *BuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -185,11 +185,11 @@ func (b *BuildApplyConfiguration) WithLabels(entries map[string]string) *BuildAp
// overwriting an existing map entries in Annotations field with the same key.
func (b *BuildApplyConfiguration) WithAnnotations(entries map[string]string) *BuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -197,13 +197,13 @@ func (b *BuildApplyConfiguration) WithAnnotations(entries map[string]string) *Bu
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *BuildApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *BuildApplyConfiguration {
+func (b *BuildApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *BuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -214,14 +214,14 @@ func (b *BuildApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferen
func (b *BuildApplyConfiguration) WithFinalizers(values ...string) *BuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *BuildApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -244,5 +244,5 @@ func (b *BuildApplyConfiguration) WithStatus(value *BuildStatusApplyConfiguratio
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *BuildApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/build/applyconfigurations/build/v1/buildcondition.go b/build/applyconfigurations/build/v1/buildcondition.go
index 42c600f64..0f58e891b 100644
--- a/build/applyconfigurations/build/v1/buildcondition.go
+++ b/build/applyconfigurations/build/v1/buildcondition.go
@@ -3,7 +3,7 @@
package v1
import (
- v1 "github.com/openshift/api/build/v1"
+ buildv1 "github.com/openshift/api/build/v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
@@ -11,12 +11,12 @@ import (
// BuildConditionApplyConfiguration represents a declarative configuration of the BuildCondition type for use
// with apply.
type BuildConditionApplyConfiguration struct {
- Type *v1.BuildConditionType `json:"type,omitempty"`
- Status *corev1.ConditionStatus `json:"status,omitempty"`
- LastUpdateTime *metav1.Time `json:"lastUpdateTime,omitempty"`
- LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
- Reason *string `json:"reason,omitempty"`
- Message *string `json:"message,omitempty"`
+ Type *buildv1.BuildConditionType `json:"type,omitempty"`
+ Status *corev1.ConditionStatus `json:"status,omitempty"`
+ LastUpdateTime *metav1.Time `json:"lastUpdateTime,omitempty"`
+ LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
+ Reason *string `json:"reason,omitempty"`
+ Message *string `json:"message,omitempty"`
}
// BuildConditionApplyConfiguration constructs a declarative configuration of the BuildCondition type for use with
@@ -28,7 +28,7 @@ func BuildCondition() *BuildConditionApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *BuildConditionApplyConfiguration) WithType(value v1.BuildConditionType) *BuildConditionApplyConfiguration {
+func (b *BuildConditionApplyConfiguration) WithType(value buildv1.BuildConditionType) *BuildConditionApplyConfiguration {
b.Type = &value
return b
}
diff --git a/build/applyconfigurations/build/v1/buildconfig.go b/build/applyconfigurations/build/v1/buildconfig.go
index fb8f37aa9..2408fc551 100644
--- a/build/applyconfigurations/build/v1/buildconfig.go
+++ b/build/applyconfigurations/build/v1/buildconfig.go
@@ -3,21 +3,21 @@
package v1
import (
- apibuildv1 "github.com/openshift/api/build/v1"
+ buildv1 "github.com/openshift/api/build/v1"
internal "github.com/openshift/client-go/build/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// BuildConfigApplyConfiguration represents a declarative configuration of the BuildConfig type for use
// with apply.
type BuildConfigApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *BuildConfigSpecApplyConfiguration `json:"spec,omitempty"`
- Status *BuildConfigStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *BuildConfigSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *BuildConfigStatusApplyConfiguration `json:"status,omitempty"`
}
// BuildConfig constructs a declarative configuration of the BuildConfig type for use with
@@ -42,18 +42,18 @@ func BuildConfig(name, namespace string) *BuildConfigApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractBuildConfig(buildConfig *apibuildv1.BuildConfig, fieldManager string) (*BuildConfigApplyConfiguration, error) {
+func ExtractBuildConfig(buildConfig *buildv1.BuildConfig, fieldManager string) (*BuildConfigApplyConfiguration, error) {
return extractBuildConfig(buildConfig, fieldManager, "")
}
// ExtractBuildConfigStatus is the same as ExtractBuildConfig except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractBuildConfigStatus(buildConfig *apibuildv1.BuildConfig, fieldManager string) (*BuildConfigApplyConfiguration, error) {
+func ExtractBuildConfigStatus(buildConfig *buildv1.BuildConfig, fieldManager string) (*BuildConfigApplyConfiguration, error) {
return extractBuildConfig(buildConfig, fieldManager, "status")
}
-func extractBuildConfig(buildConfig *apibuildv1.BuildConfig, fieldManager string, subresource string) (*BuildConfigApplyConfiguration, error) {
+func extractBuildConfig(buildConfig *buildv1.BuildConfig, fieldManager string, subresource string) (*BuildConfigApplyConfiguration, error) {
b := &BuildConfigApplyConfiguration{}
err := managedfields.ExtractInto(buildConfig, internal.Parser().Type("com.github.openshift.api.build.v1.BuildConfig"), fieldManager, b, subresource)
if err != nil {
@@ -71,7 +71,7 @@ func extractBuildConfig(buildConfig *apibuildv1.BuildConfig, fieldManager string
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *BuildConfigApplyConfiguration) WithKind(value string) *BuildConfigApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -79,7 +79,7 @@ func (b *BuildConfigApplyConfiguration) WithKind(value string) *BuildConfigApply
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *BuildConfigApplyConfiguration) WithAPIVersion(value string) *BuildConfigApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -88,7 +88,7 @@ func (b *BuildConfigApplyConfiguration) WithAPIVersion(value string) *BuildConfi
// If called multiple times, the Name field is set to the value of the last call.
func (b *BuildConfigApplyConfiguration) WithName(value string) *BuildConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -97,7 +97,7 @@ func (b *BuildConfigApplyConfiguration) WithName(value string) *BuildConfigApply
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *BuildConfigApplyConfiguration) WithGenerateName(value string) *BuildConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -106,7 +106,7 @@ func (b *BuildConfigApplyConfiguration) WithGenerateName(value string) *BuildCon
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *BuildConfigApplyConfiguration) WithNamespace(value string) *BuildConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -115,7 +115,7 @@ func (b *BuildConfigApplyConfiguration) WithNamespace(value string) *BuildConfig
// If called multiple times, the UID field is set to the value of the last call.
func (b *BuildConfigApplyConfiguration) WithUID(value types.UID) *BuildConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -124,7 +124,7 @@ func (b *BuildConfigApplyConfiguration) WithUID(value types.UID) *BuildConfigApp
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *BuildConfigApplyConfiguration) WithResourceVersion(value string) *BuildConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -133,25 +133,25 @@ func (b *BuildConfigApplyConfiguration) WithResourceVersion(value string) *Build
// If called multiple times, the Generation field is set to the value of the last call.
func (b *BuildConfigApplyConfiguration) WithGeneration(value int64) *BuildConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *BuildConfigApplyConfiguration) WithCreationTimestamp(value metav1.Time) *BuildConfigApplyConfiguration {
+func (b *BuildConfigApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *BuildConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *BuildConfigApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *BuildConfigApplyConfiguration {
+func (b *BuildConfigApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *BuildConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -160,7 +160,7 @@ func (b *BuildConfigApplyConfiguration) WithDeletionTimestamp(value metav1.Time)
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *BuildConfigApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *BuildConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -170,11 +170,11 @@ func (b *BuildConfigApplyConfiguration) WithDeletionGracePeriodSeconds(value int
// overwriting an existing map entries in Labels field with the same key.
func (b *BuildConfigApplyConfiguration) WithLabels(entries map[string]string) *BuildConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -185,11 +185,11 @@ func (b *BuildConfigApplyConfiguration) WithLabels(entries map[string]string) *B
// overwriting an existing map entries in Annotations field with the same key.
func (b *BuildConfigApplyConfiguration) WithAnnotations(entries map[string]string) *BuildConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -197,13 +197,13 @@ func (b *BuildConfigApplyConfiguration) WithAnnotations(entries map[string]strin
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *BuildConfigApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *BuildConfigApplyConfiguration {
+func (b *BuildConfigApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *BuildConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -214,14 +214,14 @@ func (b *BuildConfigApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerR
func (b *BuildConfigApplyConfiguration) WithFinalizers(values ...string) *BuildConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *BuildConfigApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -244,5 +244,5 @@ func (b *BuildConfigApplyConfiguration) WithStatus(value *BuildConfigStatusApply
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *BuildConfigApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/build/applyconfigurations/build/v1/buildconfigspec.go b/build/applyconfigurations/build/v1/buildconfigspec.go
index 1e6bcab05..07a5a0e1a 100644
--- a/build/applyconfigurations/build/v1/buildconfigspec.go
+++ b/build/applyconfigurations/build/v1/buildconfigspec.go
@@ -48,7 +48,7 @@ func (b *BuildConfigSpecApplyConfiguration) WithRunPolicy(value buildv1.BuildRun
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ServiceAccount field is set to the value of the last call.
func (b *BuildConfigSpecApplyConfiguration) WithServiceAccount(value string) *BuildConfigSpecApplyConfiguration {
- b.ServiceAccount = &value
+ b.CommonSpecApplyConfiguration.ServiceAccount = &value
return b
}
@@ -56,7 +56,7 @@ func (b *BuildConfigSpecApplyConfiguration) WithServiceAccount(value string) *Bu
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Source field is set to the value of the last call.
func (b *BuildConfigSpecApplyConfiguration) WithSource(value *BuildSourceApplyConfiguration) *BuildConfigSpecApplyConfiguration {
- b.Source = value
+ b.CommonSpecApplyConfiguration.Source = value
return b
}
@@ -64,7 +64,7 @@ func (b *BuildConfigSpecApplyConfiguration) WithSource(value *BuildSourceApplyCo
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Revision field is set to the value of the last call.
func (b *BuildConfigSpecApplyConfiguration) WithRevision(value *SourceRevisionApplyConfiguration) *BuildConfigSpecApplyConfiguration {
- b.Revision = value
+ b.CommonSpecApplyConfiguration.Revision = value
return b
}
@@ -72,7 +72,7 @@ func (b *BuildConfigSpecApplyConfiguration) WithRevision(value *SourceRevisionAp
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Strategy field is set to the value of the last call.
func (b *BuildConfigSpecApplyConfiguration) WithStrategy(value *BuildStrategyApplyConfiguration) *BuildConfigSpecApplyConfiguration {
- b.Strategy = value
+ b.CommonSpecApplyConfiguration.Strategy = value
return b
}
@@ -80,7 +80,7 @@ func (b *BuildConfigSpecApplyConfiguration) WithStrategy(value *BuildStrategyApp
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Output field is set to the value of the last call.
func (b *BuildConfigSpecApplyConfiguration) WithOutput(value *BuildOutputApplyConfiguration) *BuildConfigSpecApplyConfiguration {
- b.Output = value
+ b.CommonSpecApplyConfiguration.Output = value
return b
}
@@ -88,7 +88,7 @@ func (b *BuildConfigSpecApplyConfiguration) WithOutput(value *BuildOutputApplyCo
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Resources field is set to the value of the last call.
func (b *BuildConfigSpecApplyConfiguration) WithResources(value corev1.ResourceRequirements) *BuildConfigSpecApplyConfiguration {
- b.Resources = &value
+ b.CommonSpecApplyConfiguration.Resources = &value
return b
}
@@ -96,7 +96,7 @@ func (b *BuildConfigSpecApplyConfiguration) WithResources(value corev1.ResourceR
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the PostCommit field is set to the value of the last call.
func (b *BuildConfigSpecApplyConfiguration) WithPostCommit(value *BuildPostCommitSpecApplyConfiguration) *BuildConfigSpecApplyConfiguration {
- b.PostCommit = value
+ b.CommonSpecApplyConfiguration.PostCommit = value
return b
}
@@ -104,7 +104,7 @@ func (b *BuildConfigSpecApplyConfiguration) WithPostCommit(value *BuildPostCommi
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CompletionDeadlineSeconds field is set to the value of the last call.
func (b *BuildConfigSpecApplyConfiguration) WithCompletionDeadlineSeconds(value int64) *BuildConfigSpecApplyConfiguration {
- b.CompletionDeadlineSeconds = &value
+ b.CommonSpecApplyConfiguration.CompletionDeadlineSeconds = &value
return b
}
@@ -112,7 +112,7 @@ func (b *BuildConfigSpecApplyConfiguration) WithCompletionDeadlineSeconds(value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the NodeSelector field is set to the value of the last call.
func (b *BuildConfigSpecApplyConfiguration) WithNodeSelector(value buildv1.OptionalNodeSelector) *BuildConfigSpecApplyConfiguration {
- b.NodeSelector = &value
+ b.CommonSpecApplyConfiguration.NodeSelector = &value
return b
}
@@ -120,7 +120,7 @@ func (b *BuildConfigSpecApplyConfiguration) WithNodeSelector(value buildv1.Optio
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the MountTrustedCA field is set to the value of the last call.
func (b *BuildConfigSpecApplyConfiguration) WithMountTrustedCA(value bool) *BuildConfigSpecApplyConfiguration {
- b.MountTrustedCA = &value
+ b.CommonSpecApplyConfiguration.MountTrustedCA = &value
return b
}
diff --git a/build/applyconfigurations/build/v1/buildoutput.go b/build/applyconfigurations/build/v1/buildoutput.go
index 7dca6dc21..0becc3d82 100644
--- a/build/applyconfigurations/build/v1/buildoutput.go
+++ b/build/applyconfigurations/build/v1/buildoutput.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "k8s.io/api/core/v1"
+ corev1 "k8s.io/api/core/v1"
)
// BuildOutputApplyConfiguration represents a declarative configuration of the BuildOutput type for use
// with apply.
type BuildOutputApplyConfiguration struct {
- To *v1.ObjectReference `json:"to,omitempty"`
- PushSecret *v1.LocalObjectReference `json:"pushSecret,omitempty"`
+ To *corev1.ObjectReference `json:"to,omitempty"`
+ PushSecret *corev1.LocalObjectReference `json:"pushSecret,omitempty"`
ImageLabels []ImageLabelApplyConfiguration `json:"imageLabels,omitempty"`
}
@@ -23,7 +23,7 @@ func BuildOutput() *BuildOutputApplyConfiguration {
// WithTo sets the To field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the To field is set to the value of the last call.
-func (b *BuildOutputApplyConfiguration) WithTo(value v1.ObjectReference) *BuildOutputApplyConfiguration {
+func (b *BuildOutputApplyConfiguration) WithTo(value corev1.ObjectReference) *BuildOutputApplyConfiguration {
b.To = &value
return b
}
@@ -31,7 +31,7 @@ func (b *BuildOutputApplyConfiguration) WithTo(value v1.ObjectReference) *BuildO
// WithPushSecret sets the PushSecret field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the PushSecret field is set to the value of the last call.
-func (b *BuildOutputApplyConfiguration) WithPushSecret(value v1.LocalObjectReference) *BuildOutputApplyConfiguration {
+func (b *BuildOutputApplyConfiguration) WithPushSecret(value corev1.LocalObjectReference) *BuildOutputApplyConfiguration {
b.PushSecret = &value
return b
}
diff --git a/build/applyconfigurations/build/v1/buildsource.go b/build/applyconfigurations/build/v1/buildsource.go
index 2640fdb97..d42919a7d 100644
--- a/build/applyconfigurations/build/v1/buildsource.go
+++ b/build/applyconfigurations/build/v1/buildsource.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "github.com/openshift/api/build/v1"
+ buildv1 "github.com/openshift/api/build/v1"
corev1 "k8s.io/api/core/v1"
)
// BuildSourceApplyConfiguration represents a declarative configuration of the BuildSource type for use
// with apply.
type BuildSourceApplyConfiguration struct {
- Type *v1.BuildSourceType `json:"type,omitempty"`
+ Type *buildv1.BuildSourceType `json:"type,omitempty"`
Binary *BinaryBuildSourceApplyConfiguration `json:"binary,omitempty"`
Dockerfile *string `json:"dockerfile,omitempty"`
Git *GitBuildSourceApplyConfiguration `json:"git,omitempty"`
@@ -30,7 +30,7 @@ func BuildSource() *BuildSourceApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *BuildSourceApplyConfiguration) WithType(value v1.BuildSourceType) *BuildSourceApplyConfiguration {
+func (b *BuildSourceApplyConfiguration) WithType(value buildv1.BuildSourceType) *BuildSourceApplyConfiguration {
b.Type = &value
return b
}
diff --git a/build/applyconfigurations/build/v1/buildspec.go b/build/applyconfigurations/build/v1/buildspec.go
index c79f5f91c..3cb68d798 100644
--- a/build/applyconfigurations/build/v1/buildspec.go
+++ b/build/applyconfigurations/build/v1/buildspec.go
@@ -24,7 +24,7 @@ func BuildSpec() *BuildSpecApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ServiceAccount field is set to the value of the last call.
func (b *BuildSpecApplyConfiguration) WithServiceAccount(value string) *BuildSpecApplyConfiguration {
- b.ServiceAccount = &value
+ b.CommonSpecApplyConfiguration.ServiceAccount = &value
return b
}
@@ -32,7 +32,7 @@ func (b *BuildSpecApplyConfiguration) WithServiceAccount(value string) *BuildSpe
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Source field is set to the value of the last call.
func (b *BuildSpecApplyConfiguration) WithSource(value *BuildSourceApplyConfiguration) *BuildSpecApplyConfiguration {
- b.Source = value
+ b.CommonSpecApplyConfiguration.Source = value
return b
}
@@ -40,7 +40,7 @@ func (b *BuildSpecApplyConfiguration) WithSource(value *BuildSourceApplyConfigur
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Revision field is set to the value of the last call.
func (b *BuildSpecApplyConfiguration) WithRevision(value *SourceRevisionApplyConfiguration) *BuildSpecApplyConfiguration {
- b.Revision = value
+ b.CommonSpecApplyConfiguration.Revision = value
return b
}
@@ -48,7 +48,7 @@ func (b *BuildSpecApplyConfiguration) WithRevision(value *SourceRevisionApplyCon
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Strategy field is set to the value of the last call.
func (b *BuildSpecApplyConfiguration) WithStrategy(value *BuildStrategyApplyConfiguration) *BuildSpecApplyConfiguration {
- b.Strategy = value
+ b.CommonSpecApplyConfiguration.Strategy = value
return b
}
@@ -56,7 +56,7 @@ func (b *BuildSpecApplyConfiguration) WithStrategy(value *BuildStrategyApplyConf
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Output field is set to the value of the last call.
func (b *BuildSpecApplyConfiguration) WithOutput(value *BuildOutputApplyConfiguration) *BuildSpecApplyConfiguration {
- b.Output = value
+ b.CommonSpecApplyConfiguration.Output = value
return b
}
@@ -64,7 +64,7 @@ func (b *BuildSpecApplyConfiguration) WithOutput(value *BuildOutputApplyConfigur
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Resources field is set to the value of the last call.
func (b *BuildSpecApplyConfiguration) WithResources(value corev1.ResourceRequirements) *BuildSpecApplyConfiguration {
- b.Resources = &value
+ b.CommonSpecApplyConfiguration.Resources = &value
return b
}
@@ -72,7 +72,7 @@ func (b *BuildSpecApplyConfiguration) WithResources(value corev1.ResourceRequire
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the PostCommit field is set to the value of the last call.
func (b *BuildSpecApplyConfiguration) WithPostCommit(value *BuildPostCommitSpecApplyConfiguration) *BuildSpecApplyConfiguration {
- b.PostCommit = value
+ b.CommonSpecApplyConfiguration.PostCommit = value
return b
}
@@ -80,7 +80,7 @@ func (b *BuildSpecApplyConfiguration) WithPostCommit(value *BuildPostCommitSpecA
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CompletionDeadlineSeconds field is set to the value of the last call.
func (b *BuildSpecApplyConfiguration) WithCompletionDeadlineSeconds(value int64) *BuildSpecApplyConfiguration {
- b.CompletionDeadlineSeconds = &value
+ b.CommonSpecApplyConfiguration.CompletionDeadlineSeconds = &value
return b
}
@@ -88,7 +88,7 @@ func (b *BuildSpecApplyConfiguration) WithCompletionDeadlineSeconds(value int64)
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the NodeSelector field is set to the value of the last call.
func (b *BuildSpecApplyConfiguration) WithNodeSelector(value buildv1.OptionalNodeSelector) *BuildSpecApplyConfiguration {
- b.NodeSelector = &value
+ b.CommonSpecApplyConfiguration.NodeSelector = &value
return b
}
@@ -96,7 +96,7 @@ func (b *BuildSpecApplyConfiguration) WithNodeSelector(value buildv1.OptionalNod
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the MountTrustedCA field is set to the value of the last call.
func (b *BuildSpecApplyConfiguration) WithMountTrustedCA(value bool) *BuildSpecApplyConfiguration {
- b.MountTrustedCA = &value
+ b.CommonSpecApplyConfiguration.MountTrustedCA = &value
return b
}
diff --git a/build/applyconfigurations/build/v1/buildstatus.go b/build/applyconfigurations/build/v1/buildstatus.go
index 4d67da2b0..7124372c1 100644
--- a/build/applyconfigurations/build/v1/buildstatus.go
+++ b/build/applyconfigurations/build/v1/buildstatus.go
@@ -5,7 +5,7 @@ package v1
import (
time "time"
- v1 "github.com/openshift/api/build/v1"
+ buildv1 "github.com/openshift/api/build/v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
@@ -13,9 +13,9 @@ import (
// BuildStatusApplyConfiguration represents a declarative configuration of the BuildStatus type for use
// with apply.
type BuildStatusApplyConfiguration struct {
- Phase *v1.BuildPhase `json:"phase,omitempty"`
+ Phase *buildv1.BuildPhase `json:"phase,omitempty"`
Cancelled *bool `json:"cancelled,omitempty"`
- Reason *v1.StatusReason `json:"reason,omitempty"`
+ Reason *buildv1.StatusReason `json:"reason,omitempty"`
Message *string `json:"message,omitempty"`
StartTimestamp *metav1.Time `json:"startTimestamp,omitempty"`
CompletionTimestamp *metav1.Time `json:"completionTimestamp,omitempty"`
@@ -37,7 +37,7 @@ func BuildStatus() *BuildStatusApplyConfiguration {
// WithPhase sets the Phase field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Phase field is set to the value of the last call.
-func (b *BuildStatusApplyConfiguration) WithPhase(value v1.BuildPhase) *BuildStatusApplyConfiguration {
+func (b *BuildStatusApplyConfiguration) WithPhase(value buildv1.BuildPhase) *BuildStatusApplyConfiguration {
b.Phase = &value
return b
}
@@ -53,7 +53,7 @@ func (b *BuildStatusApplyConfiguration) WithCancelled(value bool) *BuildStatusAp
// WithReason sets the Reason field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Reason field is set to the value of the last call.
-func (b *BuildStatusApplyConfiguration) WithReason(value v1.StatusReason) *BuildStatusApplyConfiguration {
+func (b *BuildStatusApplyConfiguration) WithReason(value buildv1.StatusReason) *BuildStatusApplyConfiguration {
b.Reason = &value
return b
}
diff --git a/build/applyconfigurations/build/v1/buildstrategy.go b/build/applyconfigurations/build/v1/buildstrategy.go
index 9ead11f51..5ad290331 100644
--- a/build/applyconfigurations/build/v1/buildstrategy.go
+++ b/build/applyconfigurations/build/v1/buildstrategy.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/build/v1"
+ buildv1 "github.com/openshift/api/build/v1"
)
// BuildStrategyApplyConfiguration represents a declarative configuration of the BuildStrategy type for use
// with apply.
type BuildStrategyApplyConfiguration struct {
- Type *v1.BuildStrategyType `json:"type,omitempty"`
+ Type *buildv1.BuildStrategyType `json:"type,omitempty"`
DockerStrategy *DockerBuildStrategyApplyConfiguration `json:"dockerStrategy,omitempty"`
SourceStrategy *SourceBuildStrategyApplyConfiguration `json:"sourceStrategy,omitempty"`
CustomStrategy *CustomBuildStrategyApplyConfiguration `json:"customStrategy,omitempty"`
@@ -25,7 +25,7 @@ func BuildStrategy() *BuildStrategyApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *BuildStrategyApplyConfiguration) WithType(value v1.BuildStrategyType) *BuildStrategyApplyConfiguration {
+func (b *BuildStrategyApplyConfiguration) WithType(value buildv1.BuildStrategyType) *BuildStrategyApplyConfiguration {
b.Type = &value
return b
}
diff --git a/build/applyconfigurations/build/v1/buildtriggerpolicy.go b/build/applyconfigurations/build/v1/buildtriggerpolicy.go
index 1793b2c64..4cbcbff48 100644
--- a/build/applyconfigurations/build/v1/buildtriggerpolicy.go
+++ b/build/applyconfigurations/build/v1/buildtriggerpolicy.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/build/v1"
+ buildv1 "github.com/openshift/api/build/v1"
)
// BuildTriggerPolicyApplyConfiguration represents a declarative configuration of the BuildTriggerPolicy type for use
// with apply.
type BuildTriggerPolicyApplyConfiguration struct {
- Type *v1.BuildTriggerType `json:"type,omitempty"`
+ Type *buildv1.BuildTriggerType `json:"type,omitempty"`
GitHubWebHook *WebHookTriggerApplyConfiguration `json:"github,omitempty"`
GenericWebHook *WebHookTriggerApplyConfiguration `json:"generic,omitempty"`
ImageChange *ImageChangeTriggerApplyConfiguration `json:"imageChange,omitempty"`
@@ -26,7 +26,7 @@ func BuildTriggerPolicy() *BuildTriggerPolicyApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *BuildTriggerPolicyApplyConfiguration) WithType(value v1.BuildTriggerType) *BuildTriggerPolicyApplyConfiguration {
+func (b *BuildTriggerPolicyApplyConfiguration) WithType(value buildv1.BuildTriggerType) *BuildTriggerPolicyApplyConfiguration {
b.Type = &value
return b
}
diff --git a/build/applyconfigurations/build/v1/buildvolumesource.go b/build/applyconfigurations/build/v1/buildvolumesource.go
index 713c6f7df..96e8f7a1c 100644
--- a/build/applyconfigurations/build/v1/buildvolumesource.go
+++ b/build/applyconfigurations/build/v1/buildvolumesource.go
@@ -3,17 +3,17 @@
package v1
import (
- v1 "github.com/openshift/api/build/v1"
+ buildv1 "github.com/openshift/api/build/v1"
corev1 "k8s.io/api/core/v1"
)
// BuildVolumeSourceApplyConfiguration represents a declarative configuration of the BuildVolumeSource type for use
// with apply.
type BuildVolumeSourceApplyConfiguration struct {
- Type *v1.BuildVolumeSourceType `json:"type,omitempty"`
- Secret *corev1.SecretVolumeSource `json:"secret,omitempty"`
- ConfigMap *corev1.ConfigMapVolumeSource `json:"configMap,omitempty"`
- CSI *corev1.CSIVolumeSource `json:"csi,omitempty"`
+ Type *buildv1.BuildVolumeSourceType `json:"type,omitempty"`
+ Secret *corev1.SecretVolumeSource `json:"secret,omitempty"`
+ ConfigMap *corev1.ConfigMapVolumeSource `json:"configMap,omitempty"`
+ CSI *corev1.CSIVolumeSource `json:"csi,omitempty"`
}
// BuildVolumeSourceApplyConfiguration constructs a declarative configuration of the BuildVolumeSource type for use with
@@ -25,7 +25,7 @@ func BuildVolumeSource() *BuildVolumeSourceApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *BuildVolumeSourceApplyConfiguration) WithType(value v1.BuildVolumeSourceType) *BuildVolumeSourceApplyConfiguration {
+func (b *BuildVolumeSourceApplyConfiguration) WithType(value buildv1.BuildVolumeSourceType) *BuildVolumeSourceApplyConfiguration {
b.Type = &value
return b
}
diff --git a/build/applyconfigurations/build/v1/configmapbuildsource.go b/build/applyconfigurations/build/v1/configmapbuildsource.go
index c687551ff..420b86656 100644
--- a/build/applyconfigurations/build/v1/configmapbuildsource.go
+++ b/build/applyconfigurations/build/v1/configmapbuildsource.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "k8s.io/api/core/v1"
+ corev1 "k8s.io/api/core/v1"
)
// ConfigMapBuildSourceApplyConfiguration represents a declarative configuration of the ConfigMapBuildSource type for use
// with apply.
type ConfigMapBuildSourceApplyConfiguration struct {
- ConfigMap *v1.LocalObjectReference `json:"configMap,omitempty"`
- DestinationDir *string `json:"destinationDir,omitempty"`
+ ConfigMap *corev1.LocalObjectReference `json:"configMap,omitempty"`
+ DestinationDir *string `json:"destinationDir,omitempty"`
}
// ConfigMapBuildSourceApplyConfiguration constructs a declarative configuration of the ConfigMapBuildSource type for use with
@@ -22,7 +22,7 @@ func ConfigMapBuildSource() *ConfigMapBuildSourceApplyConfiguration {
// WithConfigMap sets the ConfigMap field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ConfigMap field is set to the value of the last call.
-func (b *ConfigMapBuildSourceApplyConfiguration) WithConfigMap(value v1.LocalObjectReference) *ConfigMapBuildSourceApplyConfiguration {
+func (b *ConfigMapBuildSourceApplyConfiguration) WithConfigMap(value corev1.LocalObjectReference) *ConfigMapBuildSourceApplyConfiguration {
b.ConfigMap = &value
return b
}
diff --git a/build/applyconfigurations/build/v1/custombuildstrategy.go b/build/applyconfigurations/build/v1/custombuildstrategy.go
index 47ecb3ac4..b445ef5c2 100644
--- a/build/applyconfigurations/build/v1/custombuildstrategy.go
+++ b/build/applyconfigurations/build/v1/custombuildstrategy.go
@@ -3,15 +3,15 @@
package v1
import (
- v1 "k8s.io/api/core/v1"
+ corev1 "k8s.io/api/core/v1"
)
// CustomBuildStrategyApplyConfiguration represents a declarative configuration of the CustomBuildStrategy type for use
// with apply.
type CustomBuildStrategyApplyConfiguration struct {
- From *v1.ObjectReference `json:"from,omitempty"`
- PullSecret *v1.LocalObjectReference `json:"pullSecret,omitempty"`
- Env []v1.EnvVar `json:"env,omitempty"`
+ From *corev1.ObjectReference `json:"from,omitempty"`
+ PullSecret *corev1.LocalObjectReference `json:"pullSecret,omitempty"`
+ Env []corev1.EnvVar `json:"env,omitempty"`
ExposeDockerSocket *bool `json:"exposeDockerSocket,omitempty"`
ForcePull *bool `json:"forcePull,omitempty"`
Secrets []SecretSpecApplyConfiguration `json:"secrets,omitempty"`
@@ -27,7 +27,7 @@ func CustomBuildStrategy() *CustomBuildStrategyApplyConfiguration {
// WithFrom sets the From field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the From field is set to the value of the last call.
-func (b *CustomBuildStrategyApplyConfiguration) WithFrom(value v1.ObjectReference) *CustomBuildStrategyApplyConfiguration {
+func (b *CustomBuildStrategyApplyConfiguration) WithFrom(value corev1.ObjectReference) *CustomBuildStrategyApplyConfiguration {
b.From = &value
return b
}
@@ -35,7 +35,7 @@ func (b *CustomBuildStrategyApplyConfiguration) WithFrom(value v1.ObjectReferenc
// WithPullSecret sets the PullSecret field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the PullSecret field is set to the value of the last call.
-func (b *CustomBuildStrategyApplyConfiguration) WithPullSecret(value v1.LocalObjectReference) *CustomBuildStrategyApplyConfiguration {
+func (b *CustomBuildStrategyApplyConfiguration) WithPullSecret(value corev1.LocalObjectReference) *CustomBuildStrategyApplyConfiguration {
b.PullSecret = &value
return b
}
@@ -43,7 +43,7 @@ func (b *CustomBuildStrategyApplyConfiguration) WithPullSecret(value v1.LocalObj
// WithEnv adds the given value to the Env field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Env field.
-func (b *CustomBuildStrategyApplyConfiguration) WithEnv(values ...v1.EnvVar) *CustomBuildStrategyApplyConfiguration {
+func (b *CustomBuildStrategyApplyConfiguration) WithEnv(values ...corev1.EnvVar) *CustomBuildStrategyApplyConfiguration {
for i := range values {
b.Env = append(b.Env, values[i])
}
diff --git a/build/applyconfigurations/build/v1/dockerbuildstrategy.go b/build/applyconfigurations/build/v1/dockerbuildstrategy.go
index c3cd85bbc..c37b95463 100644
--- a/build/applyconfigurations/build/v1/dockerbuildstrategy.go
+++ b/build/applyconfigurations/build/v1/dockerbuildstrategy.go
@@ -4,19 +4,19 @@ package v1
import (
buildv1 "github.com/openshift/api/build/v1"
- v1 "k8s.io/api/core/v1"
+ corev1 "k8s.io/api/core/v1"
)
// DockerBuildStrategyApplyConfiguration represents a declarative configuration of the DockerBuildStrategy type for use
// with apply.
type DockerBuildStrategyApplyConfiguration struct {
- From *v1.ObjectReference `json:"from,omitempty"`
- PullSecret *v1.LocalObjectReference `json:"pullSecret,omitempty"`
+ From *corev1.ObjectReference `json:"from,omitempty"`
+ PullSecret *corev1.LocalObjectReference `json:"pullSecret,omitempty"`
NoCache *bool `json:"noCache,omitempty"`
- Env []v1.EnvVar `json:"env,omitempty"`
+ Env []corev1.EnvVar `json:"env,omitempty"`
ForcePull *bool `json:"forcePull,omitempty"`
DockerfilePath *string `json:"dockerfilePath,omitempty"`
- BuildArgs []v1.EnvVar `json:"buildArgs,omitempty"`
+ BuildArgs []corev1.EnvVar `json:"buildArgs,omitempty"`
ImageOptimizationPolicy *buildv1.ImageOptimizationPolicy `json:"imageOptimizationPolicy,omitempty"`
Volumes []BuildVolumeApplyConfiguration `json:"volumes,omitempty"`
}
@@ -30,7 +30,7 @@ func DockerBuildStrategy() *DockerBuildStrategyApplyConfiguration {
// WithFrom sets the From field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the From field is set to the value of the last call.
-func (b *DockerBuildStrategyApplyConfiguration) WithFrom(value v1.ObjectReference) *DockerBuildStrategyApplyConfiguration {
+func (b *DockerBuildStrategyApplyConfiguration) WithFrom(value corev1.ObjectReference) *DockerBuildStrategyApplyConfiguration {
b.From = &value
return b
}
@@ -38,7 +38,7 @@ func (b *DockerBuildStrategyApplyConfiguration) WithFrom(value v1.ObjectReferenc
// WithPullSecret sets the PullSecret field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the PullSecret field is set to the value of the last call.
-func (b *DockerBuildStrategyApplyConfiguration) WithPullSecret(value v1.LocalObjectReference) *DockerBuildStrategyApplyConfiguration {
+func (b *DockerBuildStrategyApplyConfiguration) WithPullSecret(value corev1.LocalObjectReference) *DockerBuildStrategyApplyConfiguration {
b.PullSecret = &value
return b
}
@@ -54,7 +54,7 @@ func (b *DockerBuildStrategyApplyConfiguration) WithNoCache(value bool) *DockerB
// WithEnv adds the given value to the Env field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Env field.
-func (b *DockerBuildStrategyApplyConfiguration) WithEnv(values ...v1.EnvVar) *DockerBuildStrategyApplyConfiguration {
+func (b *DockerBuildStrategyApplyConfiguration) WithEnv(values ...corev1.EnvVar) *DockerBuildStrategyApplyConfiguration {
for i := range values {
b.Env = append(b.Env, values[i])
}
@@ -80,7 +80,7 @@ func (b *DockerBuildStrategyApplyConfiguration) WithDockerfilePath(value string)
// WithBuildArgs adds the given value to the BuildArgs field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the BuildArgs field.
-func (b *DockerBuildStrategyApplyConfiguration) WithBuildArgs(values ...v1.EnvVar) *DockerBuildStrategyApplyConfiguration {
+func (b *DockerBuildStrategyApplyConfiguration) WithBuildArgs(values ...corev1.EnvVar) *DockerBuildStrategyApplyConfiguration {
for i := range values {
b.BuildArgs = append(b.BuildArgs, values[i])
}
diff --git a/build/applyconfigurations/build/v1/gitbuildsource.go b/build/applyconfigurations/build/v1/gitbuildsource.go
index 15063a387..f0426254b 100644
--- a/build/applyconfigurations/build/v1/gitbuildsource.go
+++ b/build/applyconfigurations/build/v1/gitbuildsource.go
@@ -36,7 +36,7 @@ func (b *GitBuildSourceApplyConfiguration) WithRef(value string) *GitBuildSource
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the HTTPProxy field is set to the value of the last call.
func (b *GitBuildSourceApplyConfiguration) WithHTTPProxy(value string) *GitBuildSourceApplyConfiguration {
- b.HTTPProxy = &value
+ b.ProxyConfigApplyConfiguration.HTTPProxy = &value
return b
}
@@ -44,7 +44,7 @@ func (b *GitBuildSourceApplyConfiguration) WithHTTPProxy(value string) *GitBuild
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the HTTPSProxy field is set to the value of the last call.
func (b *GitBuildSourceApplyConfiguration) WithHTTPSProxy(value string) *GitBuildSourceApplyConfiguration {
- b.HTTPSProxy = &value
+ b.ProxyConfigApplyConfiguration.HTTPSProxy = &value
return b
}
@@ -52,6 +52,6 @@ func (b *GitBuildSourceApplyConfiguration) WithHTTPSProxy(value string) *GitBuil
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the NoProxy field is set to the value of the last call.
func (b *GitBuildSourceApplyConfiguration) WithNoProxy(value string) *GitBuildSourceApplyConfiguration {
- b.NoProxy = &value
+ b.ProxyConfigApplyConfiguration.NoProxy = &value
return b
}
diff --git a/build/applyconfigurations/build/v1/gitlabwebhookcause.go b/build/applyconfigurations/build/v1/gitlabwebhookcause.go
index 3ac4f0868..db55e91b8 100644
--- a/build/applyconfigurations/build/v1/gitlabwebhookcause.go
+++ b/build/applyconfigurations/build/v1/gitlabwebhookcause.go
@@ -18,7 +18,7 @@ func GitLabWebHookCause() *GitLabWebHookCauseApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Revision field is set to the value of the last call.
func (b *GitLabWebHookCauseApplyConfiguration) WithRevision(value *SourceRevisionApplyConfiguration) *GitLabWebHookCauseApplyConfiguration {
- b.Revision = value
+ b.CommonWebHookCauseApplyConfiguration.Revision = value
return b
}
@@ -26,6 +26,6 @@ func (b *GitLabWebHookCauseApplyConfiguration) WithRevision(value *SourceRevisio
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Secret field is set to the value of the last call.
func (b *GitLabWebHookCauseApplyConfiguration) WithSecret(value string) *GitLabWebHookCauseApplyConfiguration {
- b.Secret = &value
+ b.CommonWebHookCauseApplyConfiguration.Secret = &value
return b
}
diff --git a/build/applyconfigurations/build/v1/imagechangecause.go b/build/applyconfigurations/build/v1/imagechangecause.go
index 34b609873..7c0bf8ca3 100644
--- a/build/applyconfigurations/build/v1/imagechangecause.go
+++ b/build/applyconfigurations/build/v1/imagechangecause.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "k8s.io/api/core/v1"
+ corev1 "k8s.io/api/core/v1"
)
// ImageChangeCauseApplyConfiguration represents a declarative configuration of the ImageChangeCause type for use
// with apply.
type ImageChangeCauseApplyConfiguration struct {
- ImageID *string `json:"imageID,omitempty"`
- FromRef *v1.ObjectReference `json:"fromRef,omitempty"`
+ ImageID *string `json:"imageID,omitempty"`
+ FromRef *corev1.ObjectReference `json:"fromRef,omitempty"`
}
// ImageChangeCauseApplyConfiguration constructs a declarative configuration of the ImageChangeCause type for use with
@@ -30,7 +30,7 @@ func (b *ImageChangeCauseApplyConfiguration) WithImageID(value string) *ImageCha
// WithFromRef sets the FromRef field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the FromRef field is set to the value of the last call.
-func (b *ImageChangeCauseApplyConfiguration) WithFromRef(value v1.ObjectReference) *ImageChangeCauseApplyConfiguration {
+func (b *ImageChangeCauseApplyConfiguration) WithFromRef(value corev1.ObjectReference) *ImageChangeCauseApplyConfiguration {
b.FromRef = &value
return b
}
diff --git a/build/applyconfigurations/build/v1/imagechangetrigger.go b/build/applyconfigurations/build/v1/imagechangetrigger.go
index 7fe386211..fe8b27ade 100644
--- a/build/applyconfigurations/build/v1/imagechangetrigger.go
+++ b/build/applyconfigurations/build/v1/imagechangetrigger.go
@@ -3,15 +3,15 @@
package v1
import (
- v1 "k8s.io/api/core/v1"
+ corev1 "k8s.io/api/core/v1"
)
// ImageChangeTriggerApplyConfiguration represents a declarative configuration of the ImageChangeTrigger type for use
// with apply.
type ImageChangeTriggerApplyConfiguration struct {
- LastTriggeredImageID *string `json:"lastTriggeredImageID,omitempty"`
- From *v1.ObjectReference `json:"from,omitempty"`
- Paused *bool `json:"paused,omitempty"`
+ LastTriggeredImageID *string `json:"lastTriggeredImageID,omitempty"`
+ From *corev1.ObjectReference `json:"from,omitempty"`
+ Paused *bool `json:"paused,omitempty"`
}
// ImageChangeTriggerApplyConfiguration constructs a declarative configuration of the ImageChangeTrigger type for use with
@@ -31,7 +31,7 @@ func (b *ImageChangeTriggerApplyConfiguration) WithLastTriggeredImageID(value st
// WithFrom sets the From field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the From field is set to the value of the last call.
-func (b *ImageChangeTriggerApplyConfiguration) WithFrom(value v1.ObjectReference) *ImageChangeTriggerApplyConfiguration {
+func (b *ImageChangeTriggerApplyConfiguration) WithFrom(value corev1.ObjectReference) *ImageChangeTriggerApplyConfiguration {
b.From = &value
return b
}
diff --git a/build/applyconfigurations/build/v1/imagesource.go b/build/applyconfigurations/build/v1/imagesource.go
index c49a14487..fb46f9aff 100644
--- a/build/applyconfigurations/build/v1/imagesource.go
+++ b/build/applyconfigurations/build/v1/imagesource.go
@@ -3,16 +3,16 @@
package v1
import (
- v1 "k8s.io/api/core/v1"
+ corev1 "k8s.io/api/core/v1"
)
// ImageSourceApplyConfiguration represents a declarative configuration of the ImageSource type for use
// with apply.
type ImageSourceApplyConfiguration struct {
- From *v1.ObjectReference `json:"from,omitempty"`
+ From *corev1.ObjectReference `json:"from,omitempty"`
As []string `json:"as,omitempty"`
Paths []ImageSourcePathApplyConfiguration `json:"paths,omitempty"`
- PullSecret *v1.LocalObjectReference `json:"pullSecret,omitempty"`
+ PullSecret *corev1.LocalObjectReference `json:"pullSecret,omitempty"`
}
// ImageSourceApplyConfiguration constructs a declarative configuration of the ImageSource type for use with
@@ -24,7 +24,7 @@ func ImageSource() *ImageSourceApplyConfiguration {
// WithFrom sets the From field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the From field is set to the value of the last call.
-func (b *ImageSourceApplyConfiguration) WithFrom(value v1.ObjectReference) *ImageSourceApplyConfiguration {
+func (b *ImageSourceApplyConfiguration) WithFrom(value corev1.ObjectReference) *ImageSourceApplyConfiguration {
b.From = &value
return b
}
@@ -55,7 +55,7 @@ func (b *ImageSourceApplyConfiguration) WithPaths(values ...*ImageSourcePathAppl
// WithPullSecret sets the PullSecret field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the PullSecret field is set to the value of the last call.
-func (b *ImageSourceApplyConfiguration) WithPullSecret(value v1.LocalObjectReference) *ImageSourceApplyConfiguration {
+func (b *ImageSourceApplyConfiguration) WithPullSecret(value corev1.LocalObjectReference) *ImageSourceApplyConfiguration {
b.PullSecret = &value
return b
}
diff --git a/build/applyconfigurations/build/v1/jenkinspipelinebuildstrategy.go b/build/applyconfigurations/build/v1/jenkinspipelinebuildstrategy.go
index 00f7de00a..940caa1b3 100644
--- a/build/applyconfigurations/build/v1/jenkinspipelinebuildstrategy.go
+++ b/build/applyconfigurations/build/v1/jenkinspipelinebuildstrategy.go
@@ -3,15 +3,15 @@
package v1
import (
- v1 "k8s.io/api/core/v1"
+ corev1 "k8s.io/api/core/v1"
)
// JenkinsPipelineBuildStrategyApplyConfiguration represents a declarative configuration of the JenkinsPipelineBuildStrategy type for use
// with apply.
type JenkinsPipelineBuildStrategyApplyConfiguration struct {
- JenkinsfilePath *string `json:"jenkinsfilePath,omitempty"`
- Jenkinsfile *string `json:"jenkinsfile,omitempty"`
- Env []v1.EnvVar `json:"env,omitempty"`
+ JenkinsfilePath *string `json:"jenkinsfilePath,omitempty"`
+ Jenkinsfile *string `json:"jenkinsfile,omitempty"`
+ Env []corev1.EnvVar `json:"env,omitempty"`
}
// JenkinsPipelineBuildStrategyApplyConfiguration constructs a declarative configuration of the JenkinsPipelineBuildStrategy type for use with
@@ -39,7 +39,7 @@ func (b *JenkinsPipelineBuildStrategyApplyConfiguration) WithJenkinsfile(value s
// WithEnv adds the given value to the Env field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Env field.
-func (b *JenkinsPipelineBuildStrategyApplyConfiguration) WithEnv(values ...v1.EnvVar) *JenkinsPipelineBuildStrategyApplyConfiguration {
+func (b *JenkinsPipelineBuildStrategyApplyConfiguration) WithEnv(values ...corev1.EnvVar) *JenkinsPipelineBuildStrategyApplyConfiguration {
for i := range values {
b.Env = append(b.Env, values[i])
}
diff --git a/build/applyconfigurations/build/v1/secretbuildsource.go b/build/applyconfigurations/build/v1/secretbuildsource.go
index f64fbdf23..7c6d9c83a 100644
--- a/build/applyconfigurations/build/v1/secretbuildsource.go
+++ b/build/applyconfigurations/build/v1/secretbuildsource.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "k8s.io/api/core/v1"
+ corev1 "k8s.io/api/core/v1"
)
// SecretBuildSourceApplyConfiguration represents a declarative configuration of the SecretBuildSource type for use
// with apply.
type SecretBuildSourceApplyConfiguration struct {
- Secret *v1.LocalObjectReference `json:"secret,omitempty"`
- DestinationDir *string `json:"destinationDir,omitempty"`
+ Secret *corev1.LocalObjectReference `json:"secret,omitempty"`
+ DestinationDir *string `json:"destinationDir,omitempty"`
}
// SecretBuildSourceApplyConfiguration constructs a declarative configuration of the SecretBuildSource type for use with
@@ -22,7 +22,7 @@ func SecretBuildSource() *SecretBuildSourceApplyConfiguration {
// WithSecret sets the Secret field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Secret field is set to the value of the last call.
-func (b *SecretBuildSourceApplyConfiguration) WithSecret(value v1.LocalObjectReference) *SecretBuildSourceApplyConfiguration {
+func (b *SecretBuildSourceApplyConfiguration) WithSecret(value corev1.LocalObjectReference) *SecretBuildSourceApplyConfiguration {
b.Secret = &value
return b
}
diff --git a/build/applyconfigurations/build/v1/secretspec.go b/build/applyconfigurations/build/v1/secretspec.go
index 1ddb792bb..b46ebed22 100644
--- a/build/applyconfigurations/build/v1/secretspec.go
+++ b/build/applyconfigurations/build/v1/secretspec.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "k8s.io/api/core/v1"
+ corev1 "k8s.io/api/core/v1"
)
// SecretSpecApplyConfiguration represents a declarative configuration of the SecretSpec type for use
// with apply.
type SecretSpecApplyConfiguration struct {
- SecretSource *v1.LocalObjectReference `json:"secretSource,omitempty"`
- MountPath *string `json:"mountPath,omitempty"`
+ SecretSource *corev1.LocalObjectReference `json:"secretSource,omitempty"`
+ MountPath *string `json:"mountPath,omitempty"`
}
// SecretSpecApplyConfiguration constructs a declarative configuration of the SecretSpec type for use with
@@ -22,7 +22,7 @@ func SecretSpec() *SecretSpecApplyConfiguration {
// WithSecretSource sets the SecretSource field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the SecretSource field is set to the value of the last call.
-func (b *SecretSpecApplyConfiguration) WithSecretSource(value v1.LocalObjectReference) *SecretSpecApplyConfiguration {
+func (b *SecretSpecApplyConfiguration) WithSecretSource(value corev1.LocalObjectReference) *SecretSpecApplyConfiguration {
b.SecretSource = &value
return b
}
diff --git a/build/applyconfigurations/build/v1/sourcebuildstrategy.go b/build/applyconfigurations/build/v1/sourcebuildstrategy.go
index f3784d48f..ade973c2e 100644
--- a/build/applyconfigurations/build/v1/sourcebuildstrategy.go
+++ b/build/applyconfigurations/build/v1/sourcebuildstrategy.go
@@ -3,15 +3,15 @@
package v1
import (
- v1 "k8s.io/api/core/v1"
+ corev1 "k8s.io/api/core/v1"
)
// SourceBuildStrategyApplyConfiguration represents a declarative configuration of the SourceBuildStrategy type for use
// with apply.
type SourceBuildStrategyApplyConfiguration struct {
- From *v1.ObjectReference `json:"from,omitempty"`
- PullSecret *v1.LocalObjectReference `json:"pullSecret,omitempty"`
- Env []v1.EnvVar `json:"env,omitempty"`
+ From *corev1.ObjectReference `json:"from,omitempty"`
+ PullSecret *corev1.LocalObjectReference `json:"pullSecret,omitempty"`
+ Env []corev1.EnvVar `json:"env,omitempty"`
Scripts *string `json:"scripts,omitempty"`
Incremental *bool `json:"incremental,omitempty"`
ForcePull *bool `json:"forcePull,omitempty"`
@@ -27,7 +27,7 @@ func SourceBuildStrategy() *SourceBuildStrategyApplyConfiguration {
// WithFrom sets the From field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the From field is set to the value of the last call.
-func (b *SourceBuildStrategyApplyConfiguration) WithFrom(value v1.ObjectReference) *SourceBuildStrategyApplyConfiguration {
+func (b *SourceBuildStrategyApplyConfiguration) WithFrom(value corev1.ObjectReference) *SourceBuildStrategyApplyConfiguration {
b.From = &value
return b
}
@@ -35,7 +35,7 @@ func (b *SourceBuildStrategyApplyConfiguration) WithFrom(value v1.ObjectReferenc
// WithPullSecret sets the PullSecret field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the PullSecret field is set to the value of the last call.
-func (b *SourceBuildStrategyApplyConfiguration) WithPullSecret(value v1.LocalObjectReference) *SourceBuildStrategyApplyConfiguration {
+func (b *SourceBuildStrategyApplyConfiguration) WithPullSecret(value corev1.LocalObjectReference) *SourceBuildStrategyApplyConfiguration {
b.PullSecret = &value
return b
}
@@ -43,7 +43,7 @@ func (b *SourceBuildStrategyApplyConfiguration) WithPullSecret(value v1.LocalObj
// WithEnv adds the given value to the Env field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Env field.
-func (b *SourceBuildStrategyApplyConfiguration) WithEnv(values ...v1.EnvVar) *SourceBuildStrategyApplyConfiguration {
+func (b *SourceBuildStrategyApplyConfiguration) WithEnv(values ...corev1.EnvVar) *SourceBuildStrategyApplyConfiguration {
for i := range values {
b.Env = append(b.Env, values[i])
}
diff --git a/build/applyconfigurations/build/v1/sourcerevision.go b/build/applyconfigurations/build/v1/sourcerevision.go
index ac35c4c5c..e99261ac8 100644
--- a/build/applyconfigurations/build/v1/sourcerevision.go
+++ b/build/applyconfigurations/build/v1/sourcerevision.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/build/v1"
+ buildv1 "github.com/openshift/api/build/v1"
)
// SourceRevisionApplyConfiguration represents a declarative configuration of the SourceRevision type for use
// with apply.
type SourceRevisionApplyConfiguration struct {
- Type *v1.BuildSourceType `json:"type,omitempty"`
+ Type *buildv1.BuildSourceType `json:"type,omitempty"`
Git *GitSourceRevisionApplyConfiguration `json:"git,omitempty"`
}
@@ -22,7 +22,7 @@ func SourceRevision() *SourceRevisionApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *SourceRevisionApplyConfiguration) WithType(value v1.BuildSourceType) *SourceRevisionApplyConfiguration {
+func (b *SourceRevisionApplyConfiguration) WithType(value buildv1.BuildSourceType) *SourceRevisionApplyConfiguration {
b.Type = &value
return b
}
diff --git a/build/applyconfigurations/build/v1/stageinfo.go b/build/applyconfigurations/build/v1/stageinfo.go
index 34a416bbb..1f7e390bb 100644
--- a/build/applyconfigurations/build/v1/stageinfo.go
+++ b/build/applyconfigurations/build/v1/stageinfo.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "github.com/openshift/api/build/v1"
+ buildv1 "github.com/openshift/api/build/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// StageInfoApplyConfiguration represents a declarative configuration of the StageInfo type for use
// with apply.
type StageInfoApplyConfiguration struct {
- Name *v1.StageName `json:"name,omitempty"`
+ Name *buildv1.StageName `json:"name,omitempty"`
StartTime *metav1.Time `json:"startTime,omitempty"`
DurationMilliseconds *int64 `json:"durationMilliseconds,omitempty"`
Steps []StepInfoApplyConfiguration `json:"steps,omitempty"`
@@ -25,7 +25,7 @@ func StageInfo() *StageInfoApplyConfiguration {
// WithName sets the Name field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Name field is set to the value of the last call.
-func (b *StageInfoApplyConfiguration) WithName(value v1.StageName) *StageInfoApplyConfiguration {
+func (b *StageInfoApplyConfiguration) WithName(value buildv1.StageName) *StageInfoApplyConfiguration {
b.Name = &value
return b
}
diff --git a/build/applyconfigurations/build/v1/stepinfo.go b/build/applyconfigurations/build/v1/stepinfo.go
index 149dc9a35..4049aa5e5 100644
--- a/build/applyconfigurations/build/v1/stepinfo.go
+++ b/build/applyconfigurations/build/v1/stepinfo.go
@@ -3,16 +3,16 @@
package v1
import (
- v1 "github.com/openshift/api/build/v1"
+ buildv1 "github.com/openshift/api/build/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// StepInfoApplyConfiguration represents a declarative configuration of the StepInfo type for use
// with apply.
type StepInfoApplyConfiguration struct {
- Name *v1.StepName `json:"name,omitempty"`
- StartTime *metav1.Time `json:"startTime,omitempty"`
- DurationMilliseconds *int64 `json:"durationMilliseconds,omitempty"`
+ Name *buildv1.StepName `json:"name,omitempty"`
+ StartTime *metav1.Time `json:"startTime,omitempty"`
+ DurationMilliseconds *int64 `json:"durationMilliseconds,omitempty"`
}
// StepInfoApplyConfiguration constructs a declarative configuration of the StepInfo type for use with
@@ -24,7 +24,7 @@ func StepInfo() *StepInfoApplyConfiguration {
// WithName sets the Name field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Name field is set to the value of the last call.
-func (b *StepInfoApplyConfiguration) WithName(value v1.StepName) *StepInfoApplyConfiguration {
+func (b *StepInfoApplyConfiguration) WithName(value buildv1.StepName) *StepInfoApplyConfiguration {
b.Name = &value
return b
}
diff --git a/build/applyconfigurations/internal/internal.go b/build/applyconfigurations/internal/internal.go
index e2a7f320e..4b1e37081 100644
--- a/build/applyconfigurations/internal/internal.go
+++ b/build/applyconfigurations/internal/internal.go
@@ -3,8 +3,8 @@
package internal
import (
- "fmt"
- "sync"
+ fmt "fmt"
+ sync "sync"
typed "sigs.k8s.io/structured-merge-diff/v4/typed"
)
diff --git a/build/clientset/versioned/clientset.go b/build/clientset/versioned/clientset.go
index 8f5337fd1..ef55d3460 100644
--- a/build/clientset/versioned/clientset.go
+++ b/build/clientset/versioned/clientset.go
@@ -3,8 +3,8 @@
package versioned
import (
- "fmt"
- "net/http"
+ fmt "fmt"
+ http "net/http"
buildv1 "github.com/openshift/client-go/build/clientset/versioned/typed/build/v1"
discovery "k8s.io/client-go/discovery"
diff --git a/build/clientset/versioned/typed/build/v1/build.go b/build/clientset/versioned/typed/build/v1/build.go
index 4687b8461..4be0e1f0a 100644
--- a/build/clientset/versioned/typed/build/v1/build.go
+++ b/build/clientset/versioned/typed/build/v1/build.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/build/v1"
- buildv1 "github.com/openshift/client-go/build/applyconfigurations/build/v1"
+ buildv1 "github.com/openshift/api/build/v1"
+ applyconfigurationsbuildv1 "github.com/openshift/client-go/build/applyconfigurations/build/v1"
scheme "github.com/openshift/client-go/build/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,46 +22,47 @@ type BuildsGetter interface {
// BuildInterface has methods to work with Build resources.
type BuildInterface interface {
- Create(ctx context.Context, build *v1.Build, opts metav1.CreateOptions) (*v1.Build, error)
- Update(ctx context.Context, build *v1.Build, opts metav1.UpdateOptions) (*v1.Build, error)
+ Create(ctx context.Context, build *buildv1.Build, opts metav1.CreateOptions) (*buildv1.Build, error)
+ Update(ctx context.Context, build *buildv1.Build, opts metav1.UpdateOptions) (*buildv1.Build, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, build *v1.Build, opts metav1.UpdateOptions) (*v1.Build, error)
+ UpdateStatus(ctx context.Context, build *buildv1.Build, opts metav1.UpdateOptions) (*buildv1.Build, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Build, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.BuildList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*buildv1.Build, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*buildv1.BuildList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Build, err error)
- Apply(ctx context.Context, build *buildv1.BuildApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Build, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *buildv1.Build, err error)
+ Apply(ctx context.Context, build *applyconfigurationsbuildv1.BuildApplyConfiguration, opts metav1.ApplyOptions) (result *buildv1.Build, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, build *buildv1.BuildApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Build, err error)
- UpdateDetails(ctx context.Context, buildName string, build *v1.Build, opts metav1.UpdateOptions) (*v1.Build, error)
- Clone(ctx context.Context, buildName string, buildRequest *v1.BuildRequest, opts metav1.CreateOptions) (*v1.Build, error)
+ ApplyStatus(ctx context.Context, build *applyconfigurationsbuildv1.BuildApplyConfiguration, opts metav1.ApplyOptions) (result *buildv1.Build, err error)
+ UpdateDetails(ctx context.Context, buildName string, build *buildv1.Build, opts metav1.UpdateOptions) (*buildv1.Build, error)
+ Clone(ctx context.Context, buildName string, buildRequest *buildv1.BuildRequest, opts metav1.CreateOptions) (*buildv1.Build, error)
BuildExpansion
}
// builds implements BuildInterface
type builds struct {
- *gentype.ClientWithListAndApply[*v1.Build, *v1.BuildList, *buildv1.BuildApplyConfiguration]
+ *gentype.ClientWithListAndApply[*buildv1.Build, *buildv1.BuildList, *applyconfigurationsbuildv1.BuildApplyConfiguration]
}
// newBuilds returns a Builds
func newBuilds(c *BuildV1Client, namespace string) *builds {
return &builds{
- gentype.NewClientWithListAndApply[*v1.Build, *v1.BuildList, *buildv1.BuildApplyConfiguration](
+ gentype.NewClientWithListAndApply[*buildv1.Build, *buildv1.BuildList, *applyconfigurationsbuildv1.BuildApplyConfiguration](
"builds",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
- func() *v1.Build { return &v1.Build{} },
- func() *v1.BuildList { return &v1.BuildList{} }),
+ func() *buildv1.Build { return &buildv1.Build{} },
+ func() *buildv1.BuildList { return &buildv1.BuildList{} },
+ ),
}
}
// UpdateDetails takes the top resource name and the representation of a build and updates it. Returns the server's representation of the build, and an error, if there is any.
-func (c *builds) UpdateDetails(ctx context.Context, buildName string, build *v1.Build, opts metav1.UpdateOptions) (result *v1.Build, err error) {
- result = &v1.Build{}
+func (c *builds) UpdateDetails(ctx context.Context, buildName string, build *buildv1.Build, opts metav1.UpdateOptions) (result *buildv1.Build, err error) {
+ result = &buildv1.Build{}
err = c.GetClient().Put().
Namespace(c.GetNamespace()).
Resource("builds").
@@ -75,8 +76,8 @@ func (c *builds) UpdateDetails(ctx context.Context, buildName string, build *v1.
}
// Clone takes the representation of a buildRequest and creates it. Returns the server's representation of the build, and an error, if there is any.
-func (c *builds) Clone(ctx context.Context, buildName string, buildRequest *v1.BuildRequest, opts metav1.CreateOptions) (result *v1.Build, err error) {
- result = &v1.Build{}
+func (c *builds) Clone(ctx context.Context, buildName string, buildRequest *buildv1.BuildRequest, opts metav1.CreateOptions) (result *buildv1.Build, err error) {
+ result = &buildv1.Build{}
err = c.GetClient().Post().
Namespace(c.GetNamespace()).
Resource("builds").
diff --git a/build/clientset/versioned/typed/build/v1/build_client.go b/build/clientset/versioned/typed/build/v1/build_client.go
index dcd0a5549..c8e5a1f36 100644
--- a/build/clientset/versioned/typed/build/v1/build_client.go
+++ b/build/clientset/versioned/typed/build/v1/build_client.go
@@ -3,10 +3,10 @@
package v1
import (
- "net/http"
+ http "net/http"
- v1 "github.com/openshift/api/build/v1"
- "github.com/openshift/client-go/build/clientset/versioned/scheme"
+ buildv1 "github.com/openshift/api/build/v1"
+ scheme "github.com/openshift/client-go/build/clientset/versioned/scheme"
rest "k8s.io/client-go/rest"
)
@@ -74,10 +74,10 @@ func New(c rest.Interface) *BuildV1Client {
}
func setConfigDefaults(config *rest.Config) error {
- gv := v1.SchemeGroupVersion
+ gv := buildv1.SchemeGroupVersion
config.GroupVersion = &gv
config.APIPath = "/apis"
- config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
+ config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion()
if config.UserAgent == "" {
config.UserAgent = rest.DefaultKubernetesUserAgent()
diff --git a/build/clientset/versioned/typed/build/v1/buildconfig.go b/build/clientset/versioned/typed/build/v1/buildconfig.go
index fd18055a2..16bd94202 100644
--- a/build/clientset/versioned/typed/build/v1/buildconfig.go
+++ b/build/clientset/versioned/typed/build/v1/buildconfig.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/build/v1"
- buildv1 "github.com/openshift/client-go/build/applyconfigurations/build/v1"
+ buildv1 "github.com/openshift/api/build/v1"
+ applyconfigurationsbuildv1 "github.com/openshift/client-go/build/applyconfigurations/build/v1"
scheme "github.com/openshift/client-go/build/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,45 +22,46 @@ type BuildConfigsGetter interface {
// BuildConfigInterface has methods to work with BuildConfig resources.
type BuildConfigInterface interface {
- Create(ctx context.Context, buildConfig *v1.BuildConfig, opts metav1.CreateOptions) (*v1.BuildConfig, error)
- Update(ctx context.Context, buildConfig *v1.BuildConfig, opts metav1.UpdateOptions) (*v1.BuildConfig, error)
+ Create(ctx context.Context, buildConfig *buildv1.BuildConfig, opts metav1.CreateOptions) (*buildv1.BuildConfig, error)
+ Update(ctx context.Context, buildConfig *buildv1.BuildConfig, opts metav1.UpdateOptions) (*buildv1.BuildConfig, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, buildConfig *v1.BuildConfig, opts metav1.UpdateOptions) (*v1.BuildConfig, error)
+ UpdateStatus(ctx context.Context, buildConfig *buildv1.BuildConfig, opts metav1.UpdateOptions) (*buildv1.BuildConfig, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.BuildConfig, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.BuildConfigList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*buildv1.BuildConfig, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*buildv1.BuildConfigList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.BuildConfig, err error)
- Apply(ctx context.Context, buildConfig *buildv1.BuildConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.BuildConfig, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *buildv1.BuildConfig, err error)
+ Apply(ctx context.Context, buildConfig *applyconfigurationsbuildv1.BuildConfigApplyConfiguration, opts metav1.ApplyOptions) (result *buildv1.BuildConfig, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, buildConfig *buildv1.BuildConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.BuildConfig, err error)
- Instantiate(ctx context.Context, buildConfigName string, buildRequest *v1.BuildRequest, opts metav1.CreateOptions) (*v1.Build, error)
+ ApplyStatus(ctx context.Context, buildConfig *applyconfigurationsbuildv1.BuildConfigApplyConfiguration, opts metav1.ApplyOptions) (result *buildv1.BuildConfig, err error)
+ Instantiate(ctx context.Context, buildConfigName string, buildRequest *buildv1.BuildRequest, opts metav1.CreateOptions) (*buildv1.Build, error)
BuildConfigExpansion
}
// buildConfigs implements BuildConfigInterface
type buildConfigs struct {
- *gentype.ClientWithListAndApply[*v1.BuildConfig, *v1.BuildConfigList, *buildv1.BuildConfigApplyConfiguration]
+ *gentype.ClientWithListAndApply[*buildv1.BuildConfig, *buildv1.BuildConfigList, *applyconfigurationsbuildv1.BuildConfigApplyConfiguration]
}
// newBuildConfigs returns a BuildConfigs
func newBuildConfigs(c *BuildV1Client, namespace string) *buildConfigs {
return &buildConfigs{
- gentype.NewClientWithListAndApply[*v1.BuildConfig, *v1.BuildConfigList, *buildv1.BuildConfigApplyConfiguration](
+ gentype.NewClientWithListAndApply[*buildv1.BuildConfig, *buildv1.BuildConfigList, *applyconfigurationsbuildv1.BuildConfigApplyConfiguration](
"buildconfigs",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
- func() *v1.BuildConfig { return &v1.BuildConfig{} },
- func() *v1.BuildConfigList { return &v1.BuildConfigList{} }),
+ func() *buildv1.BuildConfig { return &buildv1.BuildConfig{} },
+ func() *buildv1.BuildConfigList { return &buildv1.BuildConfigList{} },
+ ),
}
}
// Instantiate takes the representation of a buildRequest and creates it. Returns the server's representation of the build, and an error, if there is any.
-func (c *buildConfigs) Instantiate(ctx context.Context, buildConfigName string, buildRequest *v1.BuildRequest, opts metav1.CreateOptions) (result *v1.Build, err error) {
- result = &v1.Build{}
+func (c *buildConfigs) Instantiate(ctx context.Context, buildConfigName string, buildRequest *buildv1.BuildRequest, opts metav1.CreateOptions) (result *buildv1.Build, err error) {
+ result = &buildv1.Build{}
err = c.GetClient().Post().
Namespace(c.GetNamespace()).
Resource("buildconfigs").
diff --git a/build/clientset/versioned/typed/build/v1/fake/fake_build.go b/build/clientset/versioned/typed/build/v1/fake/fake_build.go
index 99087786a..930212ebf 100644
--- a/build/clientset/versioned/typed/build/v1/fake/fake_build.go
+++ b/build/clientset/versioned/typed/build/v1/fake/fake_build.go
@@ -3,188 +3,44 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
+ context "context"
v1 "github.com/openshift/api/build/v1"
buildv1 "github.com/openshift/client-go/build/applyconfigurations/build/v1"
+ typedbuildv1 "github.com/openshift/client-go/build/clientset/versioned/typed/build/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
+ gentype "k8s.io/client-go/gentype"
testing "k8s.io/client-go/testing"
)
-// FakeBuilds implements BuildInterface
-type FakeBuilds struct {
+// fakeBuilds implements BuildInterface
+type fakeBuilds struct {
+ *gentype.FakeClientWithListAndApply[*v1.Build, *v1.BuildList, *buildv1.BuildApplyConfiguration]
Fake *FakeBuildV1
- ns string
}
-var buildsResource = v1.SchemeGroupVersion.WithResource("builds")
-
-var buildsKind = v1.SchemeGroupVersion.WithKind("Build")
-
-// Get takes name of the build, and returns the corresponding build object, and an error if there is any.
-func (c *FakeBuilds) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Build, err error) {
- emptyResult := &v1.Build{}
- obj, err := c.Fake.
- Invokes(testing.NewGetActionWithOptions(buildsResource, c.ns, name, options), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Build), err
-}
-
-// List takes label and field selectors, and returns the list of Builds that match those selectors.
-func (c *FakeBuilds) List(ctx context.Context, opts metav1.ListOptions) (result *v1.BuildList, err error) {
- emptyResult := &v1.BuildList{}
- obj, err := c.Fake.
- Invokes(testing.NewListActionWithOptions(buildsResource, buildsKind, c.ns, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.BuildList{ListMeta: obj.(*v1.BuildList).ListMeta}
- for _, item := range obj.(*v1.BuildList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested builds.
-func (c *FakeBuilds) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewWatchActionWithOptions(buildsResource, c.ns, opts))
-
-}
-
-// Create takes the representation of a build and creates it. Returns the server's representation of the build, and an error, if there is any.
-func (c *FakeBuilds) Create(ctx context.Context, build *v1.Build, opts metav1.CreateOptions) (result *v1.Build, err error) {
- emptyResult := &v1.Build{}
- obj, err := c.Fake.
- Invokes(testing.NewCreateActionWithOptions(buildsResource, c.ns, build, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Build), err
-}
-
-// Update takes the representation of a build and updates it. Returns the server's representation of the build, and an error, if there is any.
-func (c *FakeBuilds) Update(ctx context.Context, build *v1.Build, opts metav1.UpdateOptions) (result *v1.Build, err error) {
- emptyResult := &v1.Build{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateActionWithOptions(buildsResource, c.ns, build, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
+func newFakeBuilds(fake *FakeBuildV1, namespace string) typedbuildv1.BuildInterface {
+ return &fakeBuilds{
+ gentype.NewFakeClientWithListAndApply[*v1.Build, *v1.BuildList, *buildv1.BuildApplyConfiguration](
+ fake.Fake,
+ namespace,
+ v1.SchemeGroupVersion.WithResource("builds"),
+ v1.SchemeGroupVersion.WithKind("Build"),
+ func() *v1.Build { return &v1.Build{} },
+ func() *v1.BuildList { return &v1.BuildList{} },
+ func(dst, src *v1.BuildList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.BuildList) []*v1.Build { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.BuildList, items []*v1.Build) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.Build), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeBuilds) UpdateStatus(ctx context.Context, build *v1.Build, opts metav1.UpdateOptions) (result *v1.Build, err error) {
- emptyResult := &v1.Build{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateSubresourceActionWithOptions(buildsResource, "status", c.ns, build, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Build), err
-}
-
-// Delete takes name of the build and deletes it. Returns an error if one occurs.
-func (c *FakeBuilds) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewDeleteActionWithOptions(buildsResource, c.ns, name, opts), &v1.Build{})
-
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeBuilds) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewDeleteCollectionActionWithOptions(buildsResource, c.ns, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.BuildList{})
- return err
-}
-
-// Patch applies the patch and returns the patched build.
-func (c *FakeBuilds) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Build, err error) {
- emptyResult := &v1.Build{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(buildsResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Build), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied build.
-func (c *FakeBuilds) Apply(ctx context.Context, build *buildv1.BuildApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Build, err error) {
- if build == nil {
- return nil, fmt.Errorf("build provided to Apply must not be nil")
- }
- data, err := json.Marshal(build)
- if err != nil {
- return nil, err
- }
- name := build.Name
- if name == nil {
- return nil, fmt.Errorf("build.Name must be provided to Apply")
- }
- emptyResult := &v1.Build{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(buildsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Build), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeBuilds) ApplyStatus(ctx context.Context, build *buildv1.BuildApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Build, err error) {
- if build == nil {
- return nil, fmt.Errorf("build provided to Apply must not be nil")
- }
- data, err := json.Marshal(build)
- if err != nil {
- return nil, err
- }
- name := build.Name
- if name == nil {
- return nil, fmt.Errorf("build.Name must be provided to Apply")
- }
- emptyResult := &v1.Build{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(buildsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Build), err
}
// UpdateDetails takes the representation of a build and updates it. Returns the server's representation of the build, and an error, if there is any.
-func (c *FakeBuilds) UpdateDetails(ctx context.Context, buildName string, build *v1.Build, opts metav1.UpdateOptions) (result *v1.Build, err error) {
+func (c *fakeBuilds) UpdateDetails(ctx context.Context, buildName string, build *v1.Build, opts metav1.UpdateOptions) (result *v1.Build, err error) {
emptyResult := &v1.Build{}
obj, err := c.Fake.
- Invokes(testing.NewUpdateSubresourceActionWithOptions(buildsResource, "details", c.ns, build, opts), &v1.Build{})
+ Invokes(testing.NewUpdateSubresourceActionWithOptions(c.Resource(), "details", c.Namespace(), build, opts), &v1.Build{})
if obj == nil {
return emptyResult, err
@@ -193,10 +49,10 @@ func (c *FakeBuilds) UpdateDetails(ctx context.Context, buildName string, build
}
// Clone takes the representation of a buildRequest and creates it. Returns the server's representation of the build, and an error, if there is any.
-func (c *FakeBuilds) Clone(ctx context.Context, buildName string, buildRequest *v1.BuildRequest, opts metav1.CreateOptions) (result *v1.Build, err error) {
+func (c *fakeBuilds) Clone(ctx context.Context, buildName string, buildRequest *v1.BuildRequest, opts metav1.CreateOptions) (result *v1.Build, err error) {
emptyResult := &v1.Build{}
obj, err := c.Fake.
- Invokes(testing.NewCreateSubresourceActionWithOptions(buildsResource, buildName, "clone", c.ns, buildRequest, opts), emptyResult)
+ Invokes(testing.NewCreateSubresourceActionWithOptions(c.Resource(), buildName, "clone", c.Namespace(), buildRequest, opts), emptyResult)
if obj == nil {
return emptyResult, err
diff --git a/build/clientset/versioned/typed/build/v1/fake/fake_build_client.go b/build/clientset/versioned/typed/build/v1/fake/fake_build_client.go
index 31cdb947c..b5ad07c11 100644
--- a/build/clientset/versioned/typed/build/v1/fake/fake_build_client.go
+++ b/build/clientset/versioned/typed/build/v1/fake/fake_build_client.go
@@ -13,11 +13,11 @@ type FakeBuildV1 struct {
}
func (c *FakeBuildV1) Builds(namespace string) v1.BuildInterface {
- return &FakeBuilds{c, namespace}
+ return newFakeBuilds(c, namespace)
}
func (c *FakeBuildV1) BuildConfigs(namespace string) v1.BuildConfigInterface {
- return &FakeBuildConfigs{c, namespace}
+ return newFakeBuildConfigs(c, namespace)
}
// RESTClient returns a RESTClient that is used to communicate
diff --git a/build/clientset/versioned/typed/build/v1/fake/fake_buildconfig.go b/build/clientset/versioned/typed/build/v1/fake/fake_buildconfig.go
index 357a79496..dfa520dd4 100644
--- a/build/clientset/versioned/typed/build/v1/fake/fake_buildconfig.go
+++ b/build/clientset/versioned/typed/build/v1/fake/fake_buildconfig.go
@@ -3,188 +3,44 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
+ context "context"
v1 "github.com/openshift/api/build/v1"
buildv1 "github.com/openshift/client-go/build/applyconfigurations/build/v1"
+ typedbuildv1 "github.com/openshift/client-go/build/clientset/versioned/typed/build/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
+ gentype "k8s.io/client-go/gentype"
testing "k8s.io/client-go/testing"
)
-// FakeBuildConfigs implements BuildConfigInterface
-type FakeBuildConfigs struct {
+// fakeBuildConfigs implements BuildConfigInterface
+type fakeBuildConfigs struct {
+ *gentype.FakeClientWithListAndApply[*v1.BuildConfig, *v1.BuildConfigList, *buildv1.BuildConfigApplyConfiguration]
Fake *FakeBuildV1
- ns string
}
-var buildconfigsResource = v1.SchemeGroupVersion.WithResource("buildconfigs")
-
-var buildconfigsKind = v1.SchemeGroupVersion.WithKind("BuildConfig")
-
-// Get takes name of the buildConfig, and returns the corresponding buildConfig object, and an error if there is any.
-func (c *FakeBuildConfigs) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.BuildConfig, err error) {
- emptyResult := &v1.BuildConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewGetActionWithOptions(buildconfigsResource, c.ns, name, options), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.BuildConfig), err
-}
-
-// List takes label and field selectors, and returns the list of BuildConfigs that match those selectors.
-func (c *FakeBuildConfigs) List(ctx context.Context, opts metav1.ListOptions) (result *v1.BuildConfigList, err error) {
- emptyResult := &v1.BuildConfigList{}
- obj, err := c.Fake.
- Invokes(testing.NewListActionWithOptions(buildconfigsResource, buildconfigsKind, c.ns, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.BuildConfigList{ListMeta: obj.(*v1.BuildConfigList).ListMeta}
- for _, item := range obj.(*v1.BuildConfigList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested buildConfigs.
-func (c *FakeBuildConfigs) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewWatchActionWithOptions(buildconfigsResource, c.ns, opts))
-
-}
-
-// Create takes the representation of a buildConfig and creates it. Returns the server's representation of the buildConfig, and an error, if there is any.
-func (c *FakeBuildConfigs) Create(ctx context.Context, buildConfig *v1.BuildConfig, opts metav1.CreateOptions) (result *v1.BuildConfig, err error) {
- emptyResult := &v1.BuildConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewCreateActionWithOptions(buildconfigsResource, c.ns, buildConfig, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.BuildConfig), err
-}
-
-// Update takes the representation of a buildConfig and updates it. Returns the server's representation of the buildConfig, and an error, if there is any.
-func (c *FakeBuildConfigs) Update(ctx context.Context, buildConfig *v1.BuildConfig, opts metav1.UpdateOptions) (result *v1.BuildConfig, err error) {
- emptyResult := &v1.BuildConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateActionWithOptions(buildconfigsResource, c.ns, buildConfig, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.BuildConfig), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeBuildConfigs) UpdateStatus(ctx context.Context, buildConfig *v1.BuildConfig, opts metav1.UpdateOptions) (result *v1.BuildConfig, err error) {
- emptyResult := &v1.BuildConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateSubresourceActionWithOptions(buildconfigsResource, "status", c.ns, buildConfig, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.BuildConfig), err
-}
-
-// Delete takes name of the buildConfig and deletes it. Returns an error if one occurs.
-func (c *FakeBuildConfigs) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewDeleteActionWithOptions(buildconfigsResource, c.ns, name, opts), &v1.BuildConfig{})
-
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeBuildConfigs) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewDeleteCollectionActionWithOptions(buildconfigsResource, c.ns, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.BuildConfigList{})
- return err
-}
-
-// Patch applies the patch and returns the patched buildConfig.
-func (c *FakeBuildConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.BuildConfig, err error) {
- emptyResult := &v1.BuildConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(buildconfigsResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.BuildConfig), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied buildConfig.
-func (c *FakeBuildConfigs) Apply(ctx context.Context, buildConfig *buildv1.BuildConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.BuildConfig, err error) {
- if buildConfig == nil {
- return nil, fmt.Errorf("buildConfig provided to Apply must not be nil")
- }
- data, err := json.Marshal(buildConfig)
- if err != nil {
- return nil, err
- }
- name := buildConfig.Name
- if name == nil {
- return nil, fmt.Errorf("buildConfig.Name must be provided to Apply")
- }
- emptyResult := &v1.BuildConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(buildconfigsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.BuildConfig), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeBuildConfigs) ApplyStatus(ctx context.Context, buildConfig *buildv1.BuildConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.BuildConfig, err error) {
- if buildConfig == nil {
- return nil, fmt.Errorf("buildConfig provided to Apply must not be nil")
- }
- data, err := json.Marshal(buildConfig)
- if err != nil {
- return nil, err
- }
- name := buildConfig.Name
- if name == nil {
- return nil, fmt.Errorf("buildConfig.Name must be provided to Apply")
- }
- emptyResult := &v1.BuildConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(buildconfigsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
-
- if obj == nil {
- return emptyResult, err
+func newFakeBuildConfigs(fake *FakeBuildV1, namespace string) typedbuildv1.BuildConfigInterface {
+ return &fakeBuildConfigs{
+ gentype.NewFakeClientWithListAndApply[*v1.BuildConfig, *v1.BuildConfigList, *buildv1.BuildConfigApplyConfiguration](
+ fake.Fake,
+ namespace,
+ v1.SchemeGroupVersion.WithResource("buildconfigs"),
+ v1.SchemeGroupVersion.WithKind("BuildConfig"),
+ func() *v1.BuildConfig { return &v1.BuildConfig{} },
+ func() *v1.BuildConfigList { return &v1.BuildConfigList{} },
+ func(dst, src *v1.BuildConfigList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.BuildConfigList) []*v1.BuildConfig { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.BuildConfigList, items []*v1.BuildConfig) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.BuildConfig), err
}
// Instantiate takes the representation of a buildRequest and creates it. Returns the server's representation of the build, and an error, if there is any.
-func (c *FakeBuildConfigs) Instantiate(ctx context.Context, buildConfigName string, buildRequest *v1.BuildRequest, opts metav1.CreateOptions) (result *v1.Build, err error) {
+func (c *fakeBuildConfigs) Instantiate(ctx context.Context, buildConfigName string, buildRequest *v1.BuildRequest, opts metav1.CreateOptions) (result *v1.Build, err error) {
emptyResult := &v1.Build{}
obj, err := c.Fake.
- Invokes(testing.NewCreateSubresourceActionWithOptions(buildconfigsResource, buildConfigName, "instantiate", c.ns, buildRequest, opts), emptyResult)
+ Invokes(testing.NewCreateSubresourceActionWithOptions(c.Resource(), buildConfigName, "instantiate", c.Namespace(), buildRequest, opts), emptyResult)
if obj == nil {
return emptyResult, err
diff --git a/build/informers/externalversions/build/v1/build.go b/build/informers/externalversions/build/v1/build.go
index 2055ed96f..c5188ee3d 100644
--- a/build/informers/externalversions/build/v1/build.go
+++ b/build/informers/externalversions/build/v1/build.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- buildv1 "github.com/openshift/api/build/v1"
+ apibuildv1 "github.com/openshift/api/build/v1"
versioned "github.com/openshift/client-go/build/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/build/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/build/listers/build/v1"
+ buildv1 "github.com/openshift/client-go/build/listers/build/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// Builds.
type BuildInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.BuildLister
+ Lister() buildv1.BuildLister
}
type buildInformer struct {
@@ -55,7 +55,7 @@ func NewFilteredBuildInformer(client versioned.Interface, namespace string, resy
return client.BuildV1().Builds(namespace).Watch(context.TODO(), options)
},
},
- &buildv1.Build{},
+ &apibuildv1.Build{},
resyncPeriod,
indexers,
)
@@ -66,9 +66,9 @@ func (f *buildInformer) defaultInformer(client versioned.Interface, resyncPeriod
}
func (f *buildInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&buildv1.Build{}, f.defaultInformer)
+ return f.factory.InformerFor(&apibuildv1.Build{}, f.defaultInformer)
}
-func (f *buildInformer) Lister() v1.BuildLister {
- return v1.NewBuildLister(f.Informer().GetIndexer())
+func (f *buildInformer) Lister() buildv1.BuildLister {
+ return buildv1.NewBuildLister(f.Informer().GetIndexer())
}
diff --git a/build/informers/externalversions/build/v1/buildconfig.go b/build/informers/externalversions/build/v1/buildconfig.go
index 28012f8c6..b25b203eb 100644
--- a/build/informers/externalversions/build/v1/buildconfig.go
+++ b/build/informers/externalversions/build/v1/buildconfig.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- buildv1 "github.com/openshift/api/build/v1"
+ apibuildv1 "github.com/openshift/api/build/v1"
versioned "github.com/openshift/client-go/build/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/build/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/build/listers/build/v1"
+ buildv1 "github.com/openshift/client-go/build/listers/build/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// BuildConfigs.
type BuildConfigInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.BuildConfigLister
+ Lister() buildv1.BuildConfigLister
}
type buildConfigInformer struct {
@@ -55,7 +55,7 @@ func NewFilteredBuildConfigInformer(client versioned.Interface, namespace string
return client.BuildV1().BuildConfigs(namespace).Watch(context.TODO(), options)
},
},
- &buildv1.BuildConfig{},
+ &apibuildv1.BuildConfig{},
resyncPeriod,
indexers,
)
@@ -66,9 +66,9 @@ func (f *buildConfigInformer) defaultInformer(client versioned.Interface, resync
}
func (f *buildConfigInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&buildv1.BuildConfig{}, f.defaultInformer)
+ return f.factory.InformerFor(&apibuildv1.BuildConfig{}, f.defaultInformer)
}
-func (f *buildConfigInformer) Lister() v1.BuildConfigLister {
- return v1.NewBuildConfigLister(f.Informer().GetIndexer())
+func (f *buildConfigInformer) Lister() buildv1.BuildConfigLister {
+ return buildv1.NewBuildConfigLister(f.Informer().GetIndexer())
}
diff --git a/build/informers/externalversions/generic.go b/build/informers/externalversions/generic.go
index e8b2035b7..47b3adf99 100644
--- a/build/informers/externalversions/generic.go
+++ b/build/informers/externalversions/generic.go
@@ -3,7 +3,7 @@
package externalversions
import (
- "fmt"
+ fmt "fmt"
v1 "github.com/openshift/api/build/v1"
schema "k8s.io/apimachinery/pkg/runtime/schema"
diff --git a/build/listers/build/v1/build.go b/build/listers/build/v1/build.go
index 2a9a4fa68..2b85d4740 100644
--- a/build/listers/build/v1/build.go
+++ b/build/listers/build/v1/build.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/build/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ buildv1 "github.com/openshift/api/build/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// BuildLister helps list Builds.
@@ -14,7 +14,7 @@ import (
type BuildLister interface {
// List lists all Builds in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.Build, err error)
+ List(selector labels.Selector) (ret []*buildv1.Build, err error)
// Builds returns an object that can list and get Builds.
Builds(namespace string) BuildNamespaceLister
BuildListerExpansion
@@ -22,17 +22,17 @@ type BuildLister interface {
// buildLister implements the BuildLister interface.
type buildLister struct {
- listers.ResourceIndexer[*v1.Build]
+ listers.ResourceIndexer[*buildv1.Build]
}
// NewBuildLister returns a new BuildLister.
func NewBuildLister(indexer cache.Indexer) BuildLister {
- return &buildLister{listers.New[*v1.Build](indexer, v1.Resource("build"))}
+ return &buildLister{listers.New[*buildv1.Build](indexer, buildv1.Resource("build"))}
}
// Builds returns an object that can list and get Builds.
func (s *buildLister) Builds(namespace string) BuildNamespaceLister {
- return buildNamespaceLister{listers.NewNamespaced[*v1.Build](s.ResourceIndexer, namespace)}
+ return buildNamespaceLister{listers.NewNamespaced[*buildv1.Build](s.ResourceIndexer, namespace)}
}
// BuildNamespaceLister helps list and get Builds.
@@ -40,15 +40,15 @@ func (s *buildLister) Builds(namespace string) BuildNamespaceLister {
type BuildNamespaceLister interface {
// List lists all Builds in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.Build, err error)
+ List(selector labels.Selector) (ret []*buildv1.Build, err error)
// Get retrieves the Build from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.Build, error)
+ Get(name string) (*buildv1.Build, error)
BuildNamespaceListerExpansion
}
// buildNamespaceLister implements the BuildNamespaceLister
// interface.
type buildNamespaceLister struct {
- listers.ResourceIndexer[*v1.Build]
+ listers.ResourceIndexer[*buildv1.Build]
}
diff --git a/build/listers/build/v1/buildconfig.go b/build/listers/build/v1/buildconfig.go
index b4366077f..96de9d5e2 100644
--- a/build/listers/build/v1/buildconfig.go
+++ b/build/listers/build/v1/buildconfig.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/build/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ buildv1 "github.com/openshift/api/build/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// BuildConfigLister helps list BuildConfigs.
@@ -14,7 +14,7 @@ import (
type BuildConfigLister interface {
// List lists all BuildConfigs in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.BuildConfig, err error)
+ List(selector labels.Selector) (ret []*buildv1.BuildConfig, err error)
// BuildConfigs returns an object that can list and get BuildConfigs.
BuildConfigs(namespace string) BuildConfigNamespaceLister
BuildConfigListerExpansion
@@ -22,17 +22,17 @@ type BuildConfigLister interface {
// buildConfigLister implements the BuildConfigLister interface.
type buildConfigLister struct {
- listers.ResourceIndexer[*v1.BuildConfig]
+ listers.ResourceIndexer[*buildv1.BuildConfig]
}
// NewBuildConfigLister returns a new BuildConfigLister.
func NewBuildConfigLister(indexer cache.Indexer) BuildConfigLister {
- return &buildConfigLister{listers.New[*v1.BuildConfig](indexer, v1.Resource("buildconfig"))}
+ return &buildConfigLister{listers.New[*buildv1.BuildConfig](indexer, buildv1.Resource("buildconfig"))}
}
// BuildConfigs returns an object that can list and get BuildConfigs.
func (s *buildConfigLister) BuildConfigs(namespace string) BuildConfigNamespaceLister {
- return buildConfigNamespaceLister{listers.NewNamespaced[*v1.BuildConfig](s.ResourceIndexer, namespace)}
+ return buildConfigNamespaceLister{listers.NewNamespaced[*buildv1.BuildConfig](s.ResourceIndexer, namespace)}
}
// BuildConfigNamespaceLister helps list and get BuildConfigs.
@@ -40,15 +40,15 @@ func (s *buildConfigLister) BuildConfigs(namespace string) BuildConfigNamespaceL
type BuildConfigNamespaceLister interface {
// List lists all BuildConfigs in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.BuildConfig, err error)
+ List(selector labels.Selector) (ret []*buildv1.BuildConfig, err error)
// Get retrieves the BuildConfig from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.BuildConfig, error)
+ Get(name string) (*buildv1.BuildConfig, error)
BuildConfigNamespaceListerExpansion
}
// buildConfigNamespaceLister implements the BuildConfigNamespaceLister
// interface.
type buildConfigNamespaceLister struct {
- listers.ResourceIndexer[*v1.BuildConfig]
+ listers.ResourceIndexer[*buildv1.BuildConfig]
}
diff --git a/cloudnetwork/applyconfigurations/cloudnetwork/v1/cloudprivateipconfig.go b/cloudnetwork/applyconfigurations/cloudnetwork/v1/cloudprivateipconfig.go
index 40bd2aae5..0dc8b2b06 100644
--- a/cloudnetwork/applyconfigurations/cloudnetwork/v1/cloudprivateipconfig.go
+++ b/cloudnetwork/applyconfigurations/cloudnetwork/v1/cloudprivateipconfig.go
@@ -3,21 +3,21 @@
package v1
import (
- apicloudnetworkv1 "github.com/openshift/api/cloudnetwork/v1"
+ cloudnetworkv1 "github.com/openshift/api/cloudnetwork/v1"
internal "github.com/openshift/client-go/cloudnetwork/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// CloudPrivateIPConfigApplyConfiguration represents a declarative configuration of the CloudPrivateIPConfig type for use
// with apply.
type CloudPrivateIPConfigApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *CloudPrivateIPConfigSpecApplyConfiguration `json:"spec,omitempty"`
- Status *CloudPrivateIPConfigStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *CloudPrivateIPConfigSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *CloudPrivateIPConfigStatusApplyConfiguration `json:"status,omitempty"`
}
// CloudPrivateIPConfig constructs a declarative configuration of the CloudPrivateIPConfig type for use with
@@ -41,18 +41,18 @@ func CloudPrivateIPConfig(name string) *CloudPrivateIPConfigApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractCloudPrivateIPConfig(cloudPrivateIPConfig *apicloudnetworkv1.CloudPrivateIPConfig, fieldManager string) (*CloudPrivateIPConfigApplyConfiguration, error) {
+func ExtractCloudPrivateIPConfig(cloudPrivateIPConfig *cloudnetworkv1.CloudPrivateIPConfig, fieldManager string) (*CloudPrivateIPConfigApplyConfiguration, error) {
return extractCloudPrivateIPConfig(cloudPrivateIPConfig, fieldManager, "")
}
// ExtractCloudPrivateIPConfigStatus is the same as ExtractCloudPrivateIPConfig except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractCloudPrivateIPConfigStatus(cloudPrivateIPConfig *apicloudnetworkv1.CloudPrivateIPConfig, fieldManager string) (*CloudPrivateIPConfigApplyConfiguration, error) {
+func ExtractCloudPrivateIPConfigStatus(cloudPrivateIPConfig *cloudnetworkv1.CloudPrivateIPConfig, fieldManager string) (*CloudPrivateIPConfigApplyConfiguration, error) {
return extractCloudPrivateIPConfig(cloudPrivateIPConfig, fieldManager, "status")
}
-func extractCloudPrivateIPConfig(cloudPrivateIPConfig *apicloudnetworkv1.CloudPrivateIPConfig, fieldManager string, subresource string) (*CloudPrivateIPConfigApplyConfiguration, error) {
+func extractCloudPrivateIPConfig(cloudPrivateIPConfig *cloudnetworkv1.CloudPrivateIPConfig, fieldManager string, subresource string) (*CloudPrivateIPConfigApplyConfiguration, error) {
b := &CloudPrivateIPConfigApplyConfiguration{}
err := managedfields.ExtractInto(cloudPrivateIPConfig, internal.Parser().Type("com.github.openshift.api.cloudnetwork.v1.CloudPrivateIPConfig"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractCloudPrivateIPConfig(cloudPrivateIPConfig *apicloudnetworkv1.CloudPr
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *CloudPrivateIPConfigApplyConfiguration) WithKind(value string) *CloudPrivateIPConfigApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *CloudPrivateIPConfigApplyConfiguration) WithKind(value string) *CloudPr
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *CloudPrivateIPConfigApplyConfiguration) WithAPIVersion(value string) *CloudPrivateIPConfigApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *CloudPrivateIPConfigApplyConfiguration) WithAPIVersion(value string) *C
// If called multiple times, the Name field is set to the value of the last call.
func (b *CloudPrivateIPConfigApplyConfiguration) WithName(value string) *CloudPrivateIPConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *CloudPrivateIPConfigApplyConfiguration) WithName(value string) *CloudPr
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *CloudPrivateIPConfigApplyConfiguration) WithGenerateName(value string) *CloudPrivateIPConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *CloudPrivateIPConfigApplyConfiguration) WithGenerateName(value string)
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *CloudPrivateIPConfigApplyConfiguration) WithNamespace(value string) *CloudPrivateIPConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *CloudPrivateIPConfigApplyConfiguration) WithNamespace(value string) *Cl
// If called multiple times, the UID field is set to the value of the last call.
func (b *CloudPrivateIPConfigApplyConfiguration) WithUID(value types.UID) *CloudPrivateIPConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *CloudPrivateIPConfigApplyConfiguration) WithUID(value types.UID) *Cloud
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *CloudPrivateIPConfigApplyConfiguration) WithResourceVersion(value string) *CloudPrivateIPConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *CloudPrivateIPConfigApplyConfiguration) WithResourceVersion(value strin
// If called multiple times, the Generation field is set to the value of the last call.
func (b *CloudPrivateIPConfigApplyConfiguration) WithGeneration(value int64) *CloudPrivateIPConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *CloudPrivateIPConfigApplyConfiguration) WithCreationTimestamp(value metav1.Time) *CloudPrivateIPConfigApplyConfiguration {
+func (b *CloudPrivateIPConfigApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *CloudPrivateIPConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *CloudPrivateIPConfigApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *CloudPrivateIPConfigApplyConfiguration {
+func (b *CloudPrivateIPConfigApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *CloudPrivateIPConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *CloudPrivateIPConfigApplyConfiguration) WithDeletionTimestamp(value met
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *CloudPrivateIPConfigApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *CloudPrivateIPConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *CloudPrivateIPConfigApplyConfiguration) WithDeletionGracePeriodSeconds(
// overwriting an existing map entries in Labels field with the same key.
func (b *CloudPrivateIPConfigApplyConfiguration) WithLabels(entries map[string]string) *CloudPrivateIPConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *CloudPrivateIPConfigApplyConfiguration) WithLabels(entries map[string]s
// overwriting an existing map entries in Annotations field with the same key.
func (b *CloudPrivateIPConfigApplyConfiguration) WithAnnotations(entries map[string]string) *CloudPrivateIPConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *CloudPrivateIPConfigApplyConfiguration) WithAnnotations(entries map[str
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *CloudPrivateIPConfigApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *CloudPrivateIPConfigApplyConfiguration {
+func (b *CloudPrivateIPConfigApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *CloudPrivateIPConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *CloudPrivateIPConfigApplyConfiguration) WithOwnerReferences(values ...*
func (b *CloudPrivateIPConfigApplyConfiguration) WithFinalizers(values ...string) *CloudPrivateIPConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *CloudPrivateIPConfigApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *CloudPrivateIPConfigApplyConfiguration) WithStatus(value *CloudPrivateI
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *CloudPrivateIPConfigApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/cloudnetwork/applyconfigurations/cloudnetwork/v1/cloudprivateipconfigstatus.go b/cloudnetwork/applyconfigurations/cloudnetwork/v1/cloudprivateipconfigstatus.go
index 0d23e0df5..64f965a4e 100644
--- a/cloudnetwork/applyconfigurations/cloudnetwork/v1/cloudprivateipconfigstatus.go
+++ b/cloudnetwork/applyconfigurations/cloudnetwork/v1/cloudprivateipconfigstatus.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// CloudPrivateIPConfigStatusApplyConfiguration represents a declarative configuration of the CloudPrivateIPConfigStatus type for use
// with apply.
type CloudPrivateIPConfigStatusApplyConfiguration struct {
- Node *string `json:"node,omitempty"`
- Conditions []v1.ConditionApplyConfiguration `json:"conditions,omitempty"`
+ Node *string `json:"node,omitempty"`
+ Conditions []metav1.ConditionApplyConfiguration `json:"conditions,omitempty"`
}
// CloudPrivateIPConfigStatusApplyConfiguration constructs a declarative configuration of the CloudPrivateIPConfigStatus type for use with
@@ -30,7 +30,7 @@ func (b *CloudPrivateIPConfigStatusApplyConfiguration) WithNode(value string) *C
// WithConditions adds the given value to the Conditions field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Conditions field.
-func (b *CloudPrivateIPConfigStatusApplyConfiguration) WithConditions(values ...*v1.ConditionApplyConfiguration) *CloudPrivateIPConfigStatusApplyConfiguration {
+func (b *CloudPrivateIPConfigStatusApplyConfiguration) WithConditions(values ...*metav1.ConditionApplyConfiguration) *CloudPrivateIPConfigStatusApplyConfiguration {
for i := range values {
if values[i] == nil {
panic("nil value passed to WithConditions")
diff --git a/cloudnetwork/applyconfigurations/internal/internal.go b/cloudnetwork/applyconfigurations/internal/internal.go
index 6549b09b1..6d24b074a 100644
--- a/cloudnetwork/applyconfigurations/internal/internal.go
+++ b/cloudnetwork/applyconfigurations/internal/internal.go
@@ -3,8 +3,8 @@
package internal
import (
- "fmt"
- "sync"
+ fmt "fmt"
+ sync "sync"
typed "sigs.k8s.io/structured-merge-diff/v4/typed"
)
diff --git a/cloudnetwork/clientset/versioned/clientset.go b/cloudnetwork/clientset/versioned/clientset.go
index ff123da0b..45d09aeb1 100644
--- a/cloudnetwork/clientset/versioned/clientset.go
+++ b/cloudnetwork/clientset/versioned/clientset.go
@@ -3,8 +3,8 @@
package versioned
import (
- "fmt"
- "net/http"
+ fmt "fmt"
+ http "net/http"
cloudv1 "github.com/openshift/client-go/cloudnetwork/clientset/versioned/typed/cloudnetwork/v1"
discovery "k8s.io/client-go/discovery"
diff --git a/cloudnetwork/clientset/versioned/typed/cloudnetwork/v1/cloudnetwork_client.go b/cloudnetwork/clientset/versioned/typed/cloudnetwork/v1/cloudnetwork_client.go
index 66bc0eb76..893d187e0 100644
--- a/cloudnetwork/clientset/versioned/typed/cloudnetwork/v1/cloudnetwork_client.go
+++ b/cloudnetwork/clientset/versioned/typed/cloudnetwork/v1/cloudnetwork_client.go
@@ -3,10 +3,10 @@
package v1
import (
- "net/http"
+ http "net/http"
- v1 "github.com/openshift/api/cloudnetwork/v1"
- "github.com/openshift/client-go/cloudnetwork/clientset/versioned/scheme"
+ cloudnetworkv1 "github.com/openshift/api/cloudnetwork/v1"
+ scheme "github.com/openshift/client-go/cloudnetwork/clientset/versioned/scheme"
rest "k8s.io/client-go/rest"
)
@@ -69,10 +69,10 @@ func New(c rest.Interface) *CloudV1Client {
}
func setConfigDefaults(config *rest.Config) error {
- gv := v1.SchemeGroupVersion
+ gv := cloudnetworkv1.SchemeGroupVersion
config.GroupVersion = &gv
config.APIPath = "/apis"
- config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
+ config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion()
if config.UserAgent == "" {
config.UserAgent = rest.DefaultKubernetesUserAgent()
diff --git a/cloudnetwork/clientset/versioned/typed/cloudnetwork/v1/cloudprivateipconfig.go b/cloudnetwork/clientset/versioned/typed/cloudnetwork/v1/cloudprivateipconfig.go
index eac163eed..199cc6b63 100644
--- a/cloudnetwork/clientset/versioned/typed/cloudnetwork/v1/cloudprivateipconfig.go
+++ b/cloudnetwork/clientset/versioned/typed/cloudnetwork/v1/cloudprivateipconfig.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/cloudnetwork/v1"
- cloudnetworkv1 "github.com/openshift/client-go/cloudnetwork/applyconfigurations/cloudnetwork/v1"
+ cloudnetworkv1 "github.com/openshift/api/cloudnetwork/v1"
+ applyconfigurationscloudnetworkv1 "github.com/openshift/client-go/cloudnetwork/applyconfigurations/cloudnetwork/v1"
scheme "github.com/openshift/client-go/cloudnetwork/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type CloudPrivateIPConfigsGetter interface {
// CloudPrivateIPConfigInterface has methods to work with CloudPrivateIPConfig resources.
type CloudPrivateIPConfigInterface interface {
- Create(ctx context.Context, cloudPrivateIPConfig *v1.CloudPrivateIPConfig, opts metav1.CreateOptions) (*v1.CloudPrivateIPConfig, error)
- Update(ctx context.Context, cloudPrivateIPConfig *v1.CloudPrivateIPConfig, opts metav1.UpdateOptions) (*v1.CloudPrivateIPConfig, error)
+ Create(ctx context.Context, cloudPrivateIPConfig *cloudnetworkv1.CloudPrivateIPConfig, opts metav1.CreateOptions) (*cloudnetworkv1.CloudPrivateIPConfig, error)
+ Update(ctx context.Context, cloudPrivateIPConfig *cloudnetworkv1.CloudPrivateIPConfig, opts metav1.UpdateOptions) (*cloudnetworkv1.CloudPrivateIPConfig, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, cloudPrivateIPConfig *v1.CloudPrivateIPConfig, opts metav1.UpdateOptions) (*v1.CloudPrivateIPConfig, error)
+ UpdateStatus(ctx context.Context, cloudPrivateIPConfig *cloudnetworkv1.CloudPrivateIPConfig, opts metav1.UpdateOptions) (*cloudnetworkv1.CloudPrivateIPConfig, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.CloudPrivateIPConfig, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.CloudPrivateIPConfigList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*cloudnetworkv1.CloudPrivateIPConfig, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*cloudnetworkv1.CloudPrivateIPConfigList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CloudPrivateIPConfig, err error)
- Apply(ctx context.Context, cloudPrivateIPConfig *cloudnetworkv1.CloudPrivateIPConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.CloudPrivateIPConfig, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *cloudnetworkv1.CloudPrivateIPConfig, err error)
+ Apply(ctx context.Context, cloudPrivateIPConfig *applyconfigurationscloudnetworkv1.CloudPrivateIPConfigApplyConfiguration, opts metav1.ApplyOptions) (result *cloudnetworkv1.CloudPrivateIPConfig, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, cloudPrivateIPConfig *cloudnetworkv1.CloudPrivateIPConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.CloudPrivateIPConfig, err error)
+ ApplyStatus(ctx context.Context, cloudPrivateIPConfig *applyconfigurationscloudnetworkv1.CloudPrivateIPConfigApplyConfiguration, opts metav1.ApplyOptions) (result *cloudnetworkv1.CloudPrivateIPConfig, err error)
CloudPrivateIPConfigExpansion
}
// cloudPrivateIPConfigs implements CloudPrivateIPConfigInterface
type cloudPrivateIPConfigs struct {
- *gentype.ClientWithListAndApply[*v1.CloudPrivateIPConfig, *v1.CloudPrivateIPConfigList, *cloudnetworkv1.CloudPrivateIPConfigApplyConfiguration]
+ *gentype.ClientWithListAndApply[*cloudnetworkv1.CloudPrivateIPConfig, *cloudnetworkv1.CloudPrivateIPConfigList, *applyconfigurationscloudnetworkv1.CloudPrivateIPConfigApplyConfiguration]
}
// newCloudPrivateIPConfigs returns a CloudPrivateIPConfigs
func newCloudPrivateIPConfigs(c *CloudV1Client) *cloudPrivateIPConfigs {
return &cloudPrivateIPConfigs{
- gentype.NewClientWithListAndApply[*v1.CloudPrivateIPConfig, *v1.CloudPrivateIPConfigList, *cloudnetworkv1.CloudPrivateIPConfigApplyConfiguration](
+ gentype.NewClientWithListAndApply[*cloudnetworkv1.CloudPrivateIPConfig, *cloudnetworkv1.CloudPrivateIPConfigList, *applyconfigurationscloudnetworkv1.CloudPrivateIPConfigApplyConfiguration](
"cloudprivateipconfigs",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.CloudPrivateIPConfig { return &v1.CloudPrivateIPConfig{} },
- func() *v1.CloudPrivateIPConfigList { return &v1.CloudPrivateIPConfigList{} }),
+ func() *cloudnetworkv1.CloudPrivateIPConfig { return &cloudnetworkv1.CloudPrivateIPConfig{} },
+ func() *cloudnetworkv1.CloudPrivateIPConfigList { return &cloudnetworkv1.CloudPrivateIPConfigList{} },
+ ),
}
}
diff --git a/cloudnetwork/clientset/versioned/typed/cloudnetwork/v1/fake/fake_cloudnetwork_client.go b/cloudnetwork/clientset/versioned/typed/cloudnetwork/v1/fake/fake_cloudnetwork_client.go
index 46eb28b51..859ec5bcc 100644
--- a/cloudnetwork/clientset/versioned/typed/cloudnetwork/v1/fake/fake_cloudnetwork_client.go
+++ b/cloudnetwork/clientset/versioned/typed/cloudnetwork/v1/fake/fake_cloudnetwork_client.go
@@ -13,7 +13,7 @@ type FakeCloudV1 struct {
}
func (c *FakeCloudV1) CloudPrivateIPConfigs() v1.CloudPrivateIPConfigInterface {
- return &FakeCloudPrivateIPConfigs{c}
+ return newFakeCloudPrivateIPConfigs(c)
}
// RESTClient returns a RESTClient that is used to communicate
diff --git a/cloudnetwork/clientset/versioned/typed/cloudnetwork/v1/fake/fake_cloudprivateipconfig.go b/cloudnetwork/clientset/versioned/typed/cloudnetwork/v1/fake/fake_cloudprivateipconfig.go
index 53fe689c9..88b97dfd5 100644
--- a/cloudnetwork/clientset/versioned/typed/cloudnetwork/v1/fake/fake_cloudprivateipconfig.go
+++ b/cloudnetwork/clientset/versioned/typed/cloudnetwork/v1/fake/fake_cloudprivateipconfig.go
@@ -3,168 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/cloudnetwork/v1"
cloudnetworkv1 "github.com/openshift/client-go/cloudnetwork/applyconfigurations/cloudnetwork/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedcloudnetworkv1 "github.com/openshift/client-go/cloudnetwork/clientset/versioned/typed/cloudnetwork/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeCloudPrivateIPConfigs implements CloudPrivateIPConfigInterface
-type FakeCloudPrivateIPConfigs struct {
+// fakeCloudPrivateIPConfigs implements CloudPrivateIPConfigInterface
+type fakeCloudPrivateIPConfigs struct {
+ *gentype.FakeClientWithListAndApply[*v1.CloudPrivateIPConfig, *v1.CloudPrivateIPConfigList, *cloudnetworkv1.CloudPrivateIPConfigApplyConfiguration]
Fake *FakeCloudV1
}
-var cloudprivateipconfigsResource = v1.SchemeGroupVersion.WithResource("cloudprivateipconfigs")
-
-var cloudprivateipconfigsKind = v1.SchemeGroupVersion.WithKind("CloudPrivateIPConfig")
-
-// Get takes name of the cloudPrivateIPConfig, and returns the corresponding cloudPrivateIPConfig object, and an error if there is any.
-func (c *FakeCloudPrivateIPConfigs) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.CloudPrivateIPConfig, err error) {
- emptyResult := &v1.CloudPrivateIPConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(cloudprivateipconfigsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.CloudPrivateIPConfig), err
-}
-
-// List takes label and field selectors, and returns the list of CloudPrivateIPConfigs that match those selectors.
-func (c *FakeCloudPrivateIPConfigs) List(ctx context.Context, opts metav1.ListOptions) (result *v1.CloudPrivateIPConfigList, err error) {
- emptyResult := &v1.CloudPrivateIPConfigList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(cloudprivateipconfigsResource, cloudprivateipconfigsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.CloudPrivateIPConfigList{ListMeta: obj.(*v1.CloudPrivateIPConfigList).ListMeta}
- for _, item := range obj.(*v1.CloudPrivateIPConfigList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested cloudPrivateIPConfigs.
-func (c *FakeCloudPrivateIPConfigs) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(cloudprivateipconfigsResource, opts))
-}
-
-// Create takes the representation of a cloudPrivateIPConfig and creates it. Returns the server's representation of the cloudPrivateIPConfig, and an error, if there is any.
-func (c *FakeCloudPrivateIPConfigs) Create(ctx context.Context, cloudPrivateIPConfig *v1.CloudPrivateIPConfig, opts metav1.CreateOptions) (result *v1.CloudPrivateIPConfig, err error) {
- emptyResult := &v1.CloudPrivateIPConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(cloudprivateipconfigsResource, cloudPrivateIPConfig, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.CloudPrivateIPConfig), err
-}
-
-// Update takes the representation of a cloudPrivateIPConfig and updates it. Returns the server's representation of the cloudPrivateIPConfig, and an error, if there is any.
-func (c *FakeCloudPrivateIPConfigs) Update(ctx context.Context, cloudPrivateIPConfig *v1.CloudPrivateIPConfig, opts metav1.UpdateOptions) (result *v1.CloudPrivateIPConfig, err error) {
- emptyResult := &v1.CloudPrivateIPConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(cloudprivateipconfigsResource, cloudPrivateIPConfig, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.CloudPrivateIPConfig), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeCloudPrivateIPConfigs) UpdateStatus(ctx context.Context, cloudPrivateIPConfig *v1.CloudPrivateIPConfig, opts metav1.UpdateOptions) (result *v1.CloudPrivateIPConfig, err error) {
- emptyResult := &v1.CloudPrivateIPConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(cloudprivateipconfigsResource, "status", cloudPrivateIPConfig, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.CloudPrivateIPConfig), err
-}
-
-// Delete takes name of the cloudPrivateIPConfig and deletes it. Returns an error if one occurs.
-func (c *FakeCloudPrivateIPConfigs) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(cloudprivateipconfigsResource, name, opts), &v1.CloudPrivateIPConfig{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeCloudPrivateIPConfigs) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(cloudprivateipconfigsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.CloudPrivateIPConfigList{})
- return err
-}
-
-// Patch applies the patch and returns the patched cloudPrivateIPConfig.
-func (c *FakeCloudPrivateIPConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CloudPrivateIPConfig, err error) {
- emptyResult := &v1.CloudPrivateIPConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(cloudprivateipconfigsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.CloudPrivateIPConfig), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied cloudPrivateIPConfig.
-func (c *FakeCloudPrivateIPConfigs) Apply(ctx context.Context, cloudPrivateIPConfig *cloudnetworkv1.CloudPrivateIPConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.CloudPrivateIPConfig, err error) {
- if cloudPrivateIPConfig == nil {
- return nil, fmt.Errorf("cloudPrivateIPConfig provided to Apply must not be nil")
- }
- data, err := json.Marshal(cloudPrivateIPConfig)
- if err != nil {
- return nil, err
- }
- name := cloudPrivateIPConfig.Name
- if name == nil {
- return nil, fmt.Errorf("cloudPrivateIPConfig.Name must be provided to Apply")
- }
- emptyResult := &v1.CloudPrivateIPConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(cloudprivateipconfigsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.CloudPrivateIPConfig), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeCloudPrivateIPConfigs) ApplyStatus(ctx context.Context, cloudPrivateIPConfig *cloudnetworkv1.CloudPrivateIPConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.CloudPrivateIPConfig, err error) {
- if cloudPrivateIPConfig == nil {
- return nil, fmt.Errorf("cloudPrivateIPConfig provided to Apply must not be nil")
- }
- data, err := json.Marshal(cloudPrivateIPConfig)
- if err != nil {
- return nil, err
- }
- name := cloudPrivateIPConfig.Name
- if name == nil {
- return nil, fmt.Errorf("cloudPrivateIPConfig.Name must be provided to Apply")
- }
- emptyResult := &v1.CloudPrivateIPConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(cloudprivateipconfigsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeCloudPrivateIPConfigs(fake *FakeCloudV1) typedcloudnetworkv1.CloudPrivateIPConfigInterface {
+ return &fakeCloudPrivateIPConfigs{
+ gentype.NewFakeClientWithListAndApply[*v1.CloudPrivateIPConfig, *v1.CloudPrivateIPConfigList, *cloudnetworkv1.CloudPrivateIPConfigApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("cloudprivateipconfigs"),
+ v1.SchemeGroupVersion.WithKind("CloudPrivateIPConfig"),
+ func() *v1.CloudPrivateIPConfig { return &v1.CloudPrivateIPConfig{} },
+ func() *v1.CloudPrivateIPConfigList { return &v1.CloudPrivateIPConfigList{} },
+ func(dst, src *v1.CloudPrivateIPConfigList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.CloudPrivateIPConfigList) []*v1.CloudPrivateIPConfig {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1.CloudPrivateIPConfigList, items []*v1.CloudPrivateIPConfig) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.CloudPrivateIPConfig), err
}
diff --git a/cloudnetwork/informers/externalversions/cloudnetwork/v1/cloudprivateipconfig.go b/cloudnetwork/informers/externalversions/cloudnetwork/v1/cloudprivateipconfig.go
index 1486101d8..965852834 100644
--- a/cloudnetwork/informers/externalversions/cloudnetwork/v1/cloudprivateipconfig.go
+++ b/cloudnetwork/informers/externalversions/cloudnetwork/v1/cloudprivateipconfig.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- cloudnetworkv1 "github.com/openshift/api/cloudnetwork/v1"
+ apicloudnetworkv1 "github.com/openshift/api/cloudnetwork/v1"
versioned "github.com/openshift/client-go/cloudnetwork/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/cloudnetwork/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/cloudnetwork/listers/cloudnetwork/v1"
+ cloudnetworkv1 "github.com/openshift/client-go/cloudnetwork/listers/cloudnetwork/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// CloudPrivateIPConfigs.
type CloudPrivateIPConfigInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.CloudPrivateIPConfigLister
+ Lister() cloudnetworkv1.CloudPrivateIPConfigLister
}
type cloudPrivateIPConfigInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredCloudPrivateIPConfigInformer(client versioned.Interface, resyncP
return client.CloudV1().CloudPrivateIPConfigs().Watch(context.TODO(), options)
},
},
- &cloudnetworkv1.CloudPrivateIPConfig{},
+ &apicloudnetworkv1.CloudPrivateIPConfig{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *cloudPrivateIPConfigInformer) defaultInformer(client versioned.Interfac
}
func (f *cloudPrivateIPConfigInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&cloudnetworkv1.CloudPrivateIPConfig{}, f.defaultInformer)
+ return f.factory.InformerFor(&apicloudnetworkv1.CloudPrivateIPConfig{}, f.defaultInformer)
}
-func (f *cloudPrivateIPConfigInformer) Lister() v1.CloudPrivateIPConfigLister {
- return v1.NewCloudPrivateIPConfigLister(f.Informer().GetIndexer())
+func (f *cloudPrivateIPConfigInformer) Lister() cloudnetworkv1.CloudPrivateIPConfigLister {
+ return cloudnetworkv1.NewCloudPrivateIPConfigLister(f.Informer().GetIndexer())
}
diff --git a/cloudnetwork/informers/externalversions/generic.go b/cloudnetwork/informers/externalversions/generic.go
index 02954841d..e76153480 100644
--- a/cloudnetwork/informers/externalversions/generic.go
+++ b/cloudnetwork/informers/externalversions/generic.go
@@ -3,7 +3,7 @@
package externalversions
import (
- "fmt"
+ fmt "fmt"
v1 "github.com/openshift/api/cloudnetwork/v1"
schema "k8s.io/apimachinery/pkg/runtime/schema"
diff --git a/cloudnetwork/listers/cloudnetwork/v1/cloudprivateipconfig.go b/cloudnetwork/listers/cloudnetwork/v1/cloudprivateipconfig.go
index c08be54d8..b9f1f6f4b 100644
--- a/cloudnetwork/listers/cloudnetwork/v1/cloudprivateipconfig.go
+++ b/cloudnetwork/listers/cloudnetwork/v1/cloudprivateipconfig.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/cloudnetwork/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ cloudnetworkv1 "github.com/openshift/api/cloudnetwork/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// CloudPrivateIPConfigLister helps list CloudPrivateIPConfigs.
@@ -14,19 +14,19 @@ import (
type CloudPrivateIPConfigLister interface {
// List lists all CloudPrivateIPConfigs in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.CloudPrivateIPConfig, err error)
+ List(selector labels.Selector) (ret []*cloudnetworkv1.CloudPrivateIPConfig, err error)
// Get retrieves the CloudPrivateIPConfig from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.CloudPrivateIPConfig, error)
+ Get(name string) (*cloudnetworkv1.CloudPrivateIPConfig, error)
CloudPrivateIPConfigListerExpansion
}
// cloudPrivateIPConfigLister implements the CloudPrivateIPConfigLister interface.
type cloudPrivateIPConfigLister struct {
- listers.ResourceIndexer[*v1.CloudPrivateIPConfig]
+ listers.ResourceIndexer[*cloudnetworkv1.CloudPrivateIPConfig]
}
// NewCloudPrivateIPConfigLister returns a new CloudPrivateIPConfigLister.
func NewCloudPrivateIPConfigLister(indexer cache.Indexer) CloudPrivateIPConfigLister {
- return &cloudPrivateIPConfigLister{listers.New[*v1.CloudPrivateIPConfig](indexer, v1.Resource("cloudprivateipconfig"))}
+ return &cloudPrivateIPConfigLister{listers.New[*cloudnetworkv1.CloudPrivateIPConfig](indexer, cloudnetworkv1.Resource("cloudprivateipconfig"))}
}
diff --git a/config/applyconfigurations/config/v1/apiserver.go b/config/applyconfigurations/config/v1/apiserver.go
index e10ae5c76..0d2c3e4f8 100644
--- a/config/applyconfigurations/config/v1/apiserver.go
+++ b/config/applyconfigurations/config/v1/apiserver.go
@@ -3,21 +3,21 @@
package v1
import (
- apiconfigv1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
internal "github.com/openshift/client-go/config/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// APIServerApplyConfiguration represents a declarative configuration of the APIServer type for use
// with apply.
type APIServerApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *APIServerSpecApplyConfiguration `json:"spec,omitempty"`
- Status *apiconfigv1.APIServerStatus `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *APIServerSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *configv1.APIServerStatus `json:"status,omitempty"`
}
// APIServer constructs a declarative configuration of the APIServer type for use with
@@ -41,18 +41,18 @@ func APIServer(name string) *APIServerApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractAPIServer(aPIServer *apiconfigv1.APIServer, fieldManager string) (*APIServerApplyConfiguration, error) {
+func ExtractAPIServer(aPIServer *configv1.APIServer, fieldManager string) (*APIServerApplyConfiguration, error) {
return extractAPIServer(aPIServer, fieldManager, "")
}
// ExtractAPIServerStatus is the same as ExtractAPIServer except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractAPIServerStatus(aPIServer *apiconfigv1.APIServer, fieldManager string) (*APIServerApplyConfiguration, error) {
+func ExtractAPIServerStatus(aPIServer *configv1.APIServer, fieldManager string) (*APIServerApplyConfiguration, error) {
return extractAPIServer(aPIServer, fieldManager, "status")
}
-func extractAPIServer(aPIServer *apiconfigv1.APIServer, fieldManager string, subresource string) (*APIServerApplyConfiguration, error) {
+func extractAPIServer(aPIServer *configv1.APIServer, fieldManager string, subresource string) (*APIServerApplyConfiguration, error) {
b := &APIServerApplyConfiguration{}
err := managedfields.ExtractInto(aPIServer, internal.Parser().Type("com.github.openshift.api.config.v1.APIServer"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractAPIServer(aPIServer *apiconfigv1.APIServer, fieldManager string, sub
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *APIServerApplyConfiguration) WithKind(value string) *APIServerApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *APIServerApplyConfiguration) WithKind(value string) *APIServerApplyConf
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *APIServerApplyConfiguration) WithAPIVersion(value string) *APIServerApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *APIServerApplyConfiguration) WithAPIVersion(value string) *APIServerApp
// If called multiple times, the Name field is set to the value of the last call.
func (b *APIServerApplyConfiguration) WithName(value string) *APIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *APIServerApplyConfiguration) WithName(value string) *APIServerApplyConf
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *APIServerApplyConfiguration) WithGenerateName(value string) *APIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *APIServerApplyConfiguration) WithGenerateName(value string) *APIServerA
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *APIServerApplyConfiguration) WithNamespace(value string) *APIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *APIServerApplyConfiguration) WithNamespace(value string) *APIServerAppl
// If called multiple times, the UID field is set to the value of the last call.
func (b *APIServerApplyConfiguration) WithUID(value types.UID) *APIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *APIServerApplyConfiguration) WithUID(value types.UID) *APIServerApplyCo
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *APIServerApplyConfiguration) WithResourceVersion(value string) *APIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *APIServerApplyConfiguration) WithResourceVersion(value string) *APIServ
// If called multiple times, the Generation field is set to the value of the last call.
func (b *APIServerApplyConfiguration) WithGeneration(value int64) *APIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *APIServerApplyConfiguration) WithCreationTimestamp(value metav1.Time) *APIServerApplyConfiguration {
+func (b *APIServerApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *APIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *APIServerApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *APIServerApplyConfiguration {
+func (b *APIServerApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *APIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *APIServerApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *APIServerApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *APIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *APIServerApplyConfiguration) WithDeletionGracePeriodSeconds(value int64
// overwriting an existing map entries in Labels field with the same key.
func (b *APIServerApplyConfiguration) WithLabels(entries map[string]string) *APIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *APIServerApplyConfiguration) WithLabels(entries map[string]string) *API
// overwriting an existing map entries in Annotations field with the same key.
func (b *APIServerApplyConfiguration) WithAnnotations(entries map[string]string) *APIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *APIServerApplyConfiguration) WithAnnotations(entries map[string]string)
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *APIServerApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *APIServerApplyConfiguration {
+func (b *APIServerApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *APIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *APIServerApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRef
func (b *APIServerApplyConfiguration) WithFinalizers(values ...string) *APIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *APIServerApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -234,7 +234,7 @@ func (b *APIServerApplyConfiguration) WithSpec(value *APIServerSpecApplyConfigur
// WithStatus sets the Status field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Status field is set to the value of the last call.
-func (b *APIServerApplyConfiguration) WithStatus(value apiconfigv1.APIServerStatus) *APIServerApplyConfiguration {
+func (b *APIServerApplyConfiguration) WithStatus(value configv1.APIServerStatus) *APIServerApplyConfiguration {
b.Status = &value
return b
}
@@ -242,5 +242,5 @@ func (b *APIServerApplyConfiguration) WithStatus(value apiconfigv1.APIServerStat
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *APIServerApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/config/applyconfigurations/config/v1/apiserverencryption.go b/config/applyconfigurations/config/v1/apiserverencryption.go
index a64f18bb4..6f0deb125 100644
--- a/config/applyconfigurations/config/v1/apiserverencryption.go
+++ b/config/applyconfigurations/config/v1/apiserverencryption.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// APIServerEncryptionApplyConfiguration represents a declarative configuration of the APIServerEncryption type for use
// with apply.
type APIServerEncryptionApplyConfiguration struct {
- Type *v1.EncryptionType `json:"type,omitempty"`
+ Type *configv1.EncryptionType `json:"type,omitempty"`
}
// APIServerEncryptionApplyConfiguration constructs a declarative configuration of the APIServerEncryption type for use with
@@ -21,7 +21,7 @@ func APIServerEncryption() *APIServerEncryptionApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *APIServerEncryptionApplyConfiguration) WithType(value v1.EncryptionType) *APIServerEncryptionApplyConfiguration {
+func (b *APIServerEncryptionApplyConfiguration) WithType(value configv1.EncryptionType) *APIServerEncryptionApplyConfiguration {
b.Type = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/audit.go b/config/applyconfigurations/config/v1/audit.go
index 49b2e6c79..a07c9788c 100644
--- a/config/applyconfigurations/config/v1/audit.go
+++ b/config/applyconfigurations/config/v1/audit.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// AuditApplyConfiguration represents a declarative configuration of the Audit type for use
// with apply.
type AuditApplyConfiguration struct {
- Profile *v1.AuditProfileType `json:"profile,omitempty"`
+ Profile *configv1.AuditProfileType `json:"profile,omitempty"`
CustomRules []AuditCustomRuleApplyConfiguration `json:"customRules,omitempty"`
}
@@ -22,7 +22,7 @@ func Audit() *AuditApplyConfiguration {
// WithProfile sets the Profile field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Profile field is set to the value of the last call.
-func (b *AuditApplyConfiguration) WithProfile(value v1.AuditProfileType) *AuditApplyConfiguration {
+func (b *AuditApplyConfiguration) WithProfile(value configv1.AuditProfileType) *AuditApplyConfiguration {
b.Profile = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/auditcustomrule.go b/config/applyconfigurations/config/v1/auditcustomrule.go
index 838f3a22f..33a696d77 100644
--- a/config/applyconfigurations/config/v1/auditcustomrule.go
+++ b/config/applyconfigurations/config/v1/auditcustomrule.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// AuditCustomRuleApplyConfiguration represents a declarative configuration of the AuditCustomRule type for use
// with apply.
type AuditCustomRuleApplyConfiguration struct {
- Group *string `json:"group,omitempty"`
- Profile *v1.AuditProfileType `json:"profile,omitempty"`
+ Group *string `json:"group,omitempty"`
+ Profile *configv1.AuditProfileType `json:"profile,omitempty"`
}
// AuditCustomRuleApplyConfiguration constructs a declarative configuration of the AuditCustomRule type for use with
@@ -30,7 +30,7 @@ func (b *AuditCustomRuleApplyConfiguration) WithGroup(value string) *AuditCustom
// WithProfile sets the Profile field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Profile field is set to the value of the last call.
-func (b *AuditCustomRuleApplyConfiguration) WithProfile(value v1.AuditProfileType) *AuditCustomRuleApplyConfiguration {
+func (b *AuditCustomRuleApplyConfiguration) WithProfile(value configv1.AuditProfileType) *AuditCustomRuleApplyConfiguration {
b.Profile = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/authentication.go b/config/applyconfigurations/config/v1/authentication.go
index b8fc3dfdf..6ae8497a5 100644
--- a/config/applyconfigurations/config/v1/authentication.go
+++ b/config/applyconfigurations/config/v1/authentication.go
@@ -3,21 +3,21 @@
package v1
import (
- apiconfigv1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
internal "github.com/openshift/client-go/config/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// AuthenticationApplyConfiguration represents a declarative configuration of the Authentication type for use
// with apply.
type AuthenticationApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *AuthenticationSpecApplyConfiguration `json:"spec,omitempty"`
- Status *AuthenticationStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *AuthenticationSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *AuthenticationStatusApplyConfiguration `json:"status,omitempty"`
}
// Authentication constructs a declarative configuration of the Authentication type for use with
@@ -41,18 +41,18 @@ func Authentication(name string) *AuthenticationApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractAuthentication(authentication *apiconfigv1.Authentication, fieldManager string) (*AuthenticationApplyConfiguration, error) {
+func ExtractAuthentication(authentication *configv1.Authentication, fieldManager string) (*AuthenticationApplyConfiguration, error) {
return extractAuthentication(authentication, fieldManager, "")
}
// ExtractAuthenticationStatus is the same as ExtractAuthentication except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractAuthenticationStatus(authentication *apiconfigv1.Authentication, fieldManager string) (*AuthenticationApplyConfiguration, error) {
+func ExtractAuthenticationStatus(authentication *configv1.Authentication, fieldManager string) (*AuthenticationApplyConfiguration, error) {
return extractAuthentication(authentication, fieldManager, "status")
}
-func extractAuthentication(authentication *apiconfigv1.Authentication, fieldManager string, subresource string) (*AuthenticationApplyConfiguration, error) {
+func extractAuthentication(authentication *configv1.Authentication, fieldManager string, subresource string) (*AuthenticationApplyConfiguration, error) {
b := &AuthenticationApplyConfiguration{}
err := managedfields.ExtractInto(authentication, internal.Parser().Type("com.github.openshift.api.config.v1.Authentication"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractAuthentication(authentication *apiconfigv1.Authentication, fieldMana
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *AuthenticationApplyConfiguration) WithKind(value string) *AuthenticationApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *AuthenticationApplyConfiguration) WithKind(value string) *Authenticatio
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *AuthenticationApplyConfiguration) WithAPIVersion(value string) *AuthenticationApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *AuthenticationApplyConfiguration) WithAPIVersion(value string) *Authent
// If called multiple times, the Name field is set to the value of the last call.
func (b *AuthenticationApplyConfiguration) WithName(value string) *AuthenticationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *AuthenticationApplyConfiguration) WithName(value string) *Authenticatio
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *AuthenticationApplyConfiguration) WithGenerateName(value string) *AuthenticationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *AuthenticationApplyConfiguration) WithGenerateName(value string) *Authe
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *AuthenticationApplyConfiguration) WithNamespace(value string) *AuthenticationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *AuthenticationApplyConfiguration) WithNamespace(value string) *Authenti
// If called multiple times, the UID field is set to the value of the last call.
func (b *AuthenticationApplyConfiguration) WithUID(value types.UID) *AuthenticationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *AuthenticationApplyConfiguration) WithUID(value types.UID) *Authenticat
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *AuthenticationApplyConfiguration) WithResourceVersion(value string) *AuthenticationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *AuthenticationApplyConfiguration) WithResourceVersion(value string) *Au
// If called multiple times, the Generation field is set to the value of the last call.
func (b *AuthenticationApplyConfiguration) WithGeneration(value int64) *AuthenticationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *AuthenticationApplyConfiguration) WithCreationTimestamp(value metav1.Time) *AuthenticationApplyConfiguration {
+func (b *AuthenticationApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *AuthenticationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *AuthenticationApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *AuthenticationApplyConfiguration {
+func (b *AuthenticationApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *AuthenticationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *AuthenticationApplyConfiguration) WithDeletionTimestamp(value metav1.Ti
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *AuthenticationApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *AuthenticationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *AuthenticationApplyConfiguration) WithDeletionGracePeriodSeconds(value
// overwriting an existing map entries in Labels field with the same key.
func (b *AuthenticationApplyConfiguration) WithLabels(entries map[string]string) *AuthenticationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *AuthenticationApplyConfiguration) WithLabels(entries map[string]string)
// overwriting an existing map entries in Annotations field with the same key.
func (b *AuthenticationApplyConfiguration) WithAnnotations(entries map[string]string) *AuthenticationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *AuthenticationApplyConfiguration) WithAnnotations(entries map[string]st
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *AuthenticationApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *AuthenticationApplyConfiguration {
+func (b *AuthenticationApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *AuthenticationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *AuthenticationApplyConfiguration) WithOwnerReferences(values ...*v1.Own
func (b *AuthenticationApplyConfiguration) WithFinalizers(values ...string) *AuthenticationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *AuthenticationApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *AuthenticationApplyConfiguration) WithStatus(value *AuthenticationStatu
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *AuthenticationApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/config/applyconfigurations/config/v1/authenticationspec.go b/config/applyconfigurations/config/v1/authenticationspec.go
index 27cf2004f..b2ac36278 100644
--- a/config/applyconfigurations/config/v1/authenticationspec.go
+++ b/config/applyconfigurations/config/v1/authenticationspec.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// AuthenticationSpecApplyConfiguration represents a declarative configuration of the AuthenticationSpec type for use
// with apply.
type AuthenticationSpecApplyConfiguration struct {
- Type *v1.AuthenticationType `json:"type,omitempty"`
+ Type *configv1.AuthenticationType `json:"type,omitempty"`
OAuthMetadata *ConfigMapNameReferenceApplyConfiguration `json:"oauthMetadata,omitempty"`
WebhookTokenAuthenticators []DeprecatedWebhookTokenAuthenticatorApplyConfiguration `json:"webhookTokenAuthenticators,omitempty"`
WebhookTokenAuthenticator *WebhookTokenAuthenticatorApplyConfiguration `json:"webhookTokenAuthenticator,omitempty"`
@@ -26,7 +26,7 @@ func AuthenticationSpec() *AuthenticationSpecApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *AuthenticationSpecApplyConfiguration) WithType(value v1.AuthenticationType) *AuthenticationSpecApplyConfiguration {
+func (b *AuthenticationSpecApplyConfiguration) WithType(value configv1.AuthenticationType) *AuthenticationSpecApplyConfiguration {
b.Type = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/awsingressspec.go b/config/applyconfigurations/config/v1/awsingressspec.go
index d7fe57934..e67e67111 100644
--- a/config/applyconfigurations/config/v1/awsingressspec.go
+++ b/config/applyconfigurations/config/v1/awsingressspec.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// AWSIngressSpecApplyConfiguration represents a declarative configuration of the AWSIngressSpec type for use
// with apply.
type AWSIngressSpecApplyConfiguration struct {
- Type *v1.AWSLBType `json:"type,omitempty"`
+ Type *configv1.AWSLBType `json:"type,omitempty"`
}
// AWSIngressSpecApplyConfiguration constructs a declarative configuration of the AWSIngressSpec type for use with
@@ -21,7 +21,7 @@ func AWSIngressSpec() *AWSIngressSpecApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *AWSIngressSpecApplyConfiguration) WithType(value v1.AWSLBType) *AWSIngressSpecApplyConfiguration {
+func (b *AWSIngressSpecApplyConfiguration) WithType(value configv1.AWSLBType) *AWSIngressSpecApplyConfiguration {
b.Type = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/azureplatformstatus.go b/config/applyconfigurations/config/v1/azureplatformstatus.go
index 442674734..5348a3c99 100644
--- a/config/applyconfigurations/config/v1/azureplatformstatus.go
+++ b/config/applyconfigurations/config/v1/azureplatformstatus.go
@@ -3,7 +3,7 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// AzurePlatformStatusApplyConfiguration represents a declarative configuration of the AzurePlatformStatus type for use
@@ -11,7 +11,7 @@ import (
type AzurePlatformStatusApplyConfiguration struct {
ResourceGroupName *string `json:"resourceGroupName,omitempty"`
NetworkResourceGroupName *string `json:"networkResourceGroupName,omitempty"`
- CloudName *v1.AzureCloudEnvironment `json:"cloudName,omitempty"`
+ CloudName *configv1.AzureCloudEnvironment `json:"cloudName,omitempty"`
ARMEndpoint *string `json:"armEndpoint,omitempty"`
ResourceTags []AzureResourceTagApplyConfiguration `json:"resourceTags,omitempty"`
}
@@ -41,7 +41,7 @@ func (b *AzurePlatformStatusApplyConfiguration) WithNetworkResourceGroupName(val
// WithCloudName sets the CloudName field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CloudName field is set to the value of the last call.
-func (b *AzurePlatformStatusApplyConfiguration) WithCloudName(value v1.AzureCloudEnvironment) *AzurePlatformStatusApplyConfiguration {
+func (b *AzurePlatformStatusApplyConfiguration) WithCloudName(value configv1.AzureCloudEnvironment) *AzurePlatformStatusApplyConfiguration {
b.CloudName = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/baremetalplatformloadbalancer.go b/config/applyconfigurations/config/v1/baremetalplatformloadbalancer.go
index a78284764..4a7405ad8 100644
--- a/config/applyconfigurations/config/v1/baremetalplatformloadbalancer.go
+++ b/config/applyconfigurations/config/v1/baremetalplatformloadbalancer.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// BareMetalPlatformLoadBalancerApplyConfiguration represents a declarative configuration of the BareMetalPlatformLoadBalancer type for use
// with apply.
type BareMetalPlatformLoadBalancerApplyConfiguration struct {
- Type *v1.PlatformLoadBalancerType `json:"type,omitempty"`
+ Type *configv1.PlatformLoadBalancerType `json:"type,omitempty"`
}
// BareMetalPlatformLoadBalancerApplyConfiguration constructs a declarative configuration of the BareMetalPlatformLoadBalancer type for use with
@@ -21,7 +21,7 @@ func BareMetalPlatformLoadBalancer() *BareMetalPlatformLoadBalancerApplyConfigur
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *BareMetalPlatformLoadBalancerApplyConfiguration) WithType(value v1.PlatformLoadBalancerType) *BareMetalPlatformLoadBalancerApplyConfiguration {
+func (b *BareMetalPlatformLoadBalancerApplyConfiguration) WithType(value configv1.PlatformLoadBalancerType) *BareMetalPlatformLoadBalancerApplyConfiguration {
b.Type = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/baremetalplatformspec.go b/config/applyconfigurations/config/v1/baremetalplatformspec.go
index 3140b5548..81d808775 100644
--- a/config/applyconfigurations/config/v1/baremetalplatformspec.go
+++ b/config/applyconfigurations/config/v1/baremetalplatformspec.go
@@ -3,15 +3,15 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// BareMetalPlatformSpecApplyConfiguration represents a declarative configuration of the BareMetalPlatformSpec type for use
// with apply.
type BareMetalPlatformSpecApplyConfiguration struct {
- APIServerInternalIPs []v1.IP `json:"apiServerInternalIPs,omitempty"`
- IngressIPs []v1.IP `json:"ingressIPs,omitempty"`
- MachineNetworks []v1.CIDR `json:"machineNetworks,omitempty"`
+ APIServerInternalIPs []configv1.IP `json:"apiServerInternalIPs,omitempty"`
+ IngressIPs []configv1.IP `json:"ingressIPs,omitempty"`
+ MachineNetworks []configv1.CIDR `json:"machineNetworks,omitempty"`
}
// BareMetalPlatformSpecApplyConfiguration constructs a declarative configuration of the BareMetalPlatformSpec type for use with
@@ -23,7 +23,7 @@ func BareMetalPlatformSpec() *BareMetalPlatformSpecApplyConfiguration {
// WithAPIServerInternalIPs adds the given value to the APIServerInternalIPs field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the APIServerInternalIPs field.
-func (b *BareMetalPlatformSpecApplyConfiguration) WithAPIServerInternalIPs(values ...v1.IP) *BareMetalPlatformSpecApplyConfiguration {
+func (b *BareMetalPlatformSpecApplyConfiguration) WithAPIServerInternalIPs(values ...configv1.IP) *BareMetalPlatformSpecApplyConfiguration {
for i := range values {
b.APIServerInternalIPs = append(b.APIServerInternalIPs, values[i])
}
@@ -33,7 +33,7 @@ func (b *BareMetalPlatformSpecApplyConfiguration) WithAPIServerInternalIPs(value
// WithIngressIPs adds the given value to the IngressIPs field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the IngressIPs field.
-func (b *BareMetalPlatformSpecApplyConfiguration) WithIngressIPs(values ...v1.IP) *BareMetalPlatformSpecApplyConfiguration {
+func (b *BareMetalPlatformSpecApplyConfiguration) WithIngressIPs(values ...configv1.IP) *BareMetalPlatformSpecApplyConfiguration {
for i := range values {
b.IngressIPs = append(b.IngressIPs, values[i])
}
@@ -43,7 +43,7 @@ func (b *BareMetalPlatformSpecApplyConfiguration) WithIngressIPs(values ...v1.IP
// WithMachineNetworks adds the given value to the MachineNetworks field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the MachineNetworks field.
-func (b *BareMetalPlatformSpecApplyConfiguration) WithMachineNetworks(values ...v1.CIDR) *BareMetalPlatformSpecApplyConfiguration {
+func (b *BareMetalPlatformSpecApplyConfiguration) WithMachineNetworks(values ...configv1.CIDR) *BareMetalPlatformSpecApplyConfiguration {
for i := range values {
b.MachineNetworks = append(b.MachineNetworks, values[i])
}
diff --git a/config/applyconfigurations/config/v1/basicauthidentityprovider.go b/config/applyconfigurations/config/v1/basicauthidentityprovider.go
index 7cbd241d0..88f30314d 100644
--- a/config/applyconfigurations/config/v1/basicauthidentityprovider.go
+++ b/config/applyconfigurations/config/v1/basicauthidentityprovider.go
@@ -18,7 +18,7 @@ func BasicAuthIdentityProvider() *BasicAuthIdentityProviderApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the URL field is set to the value of the last call.
func (b *BasicAuthIdentityProviderApplyConfiguration) WithURL(value string) *BasicAuthIdentityProviderApplyConfiguration {
- b.URL = &value
+ b.OAuthRemoteConnectionInfoApplyConfiguration.URL = &value
return b
}
@@ -26,7 +26,7 @@ func (b *BasicAuthIdentityProviderApplyConfiguration) WithURL(value string) *Bas
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CA field is set to the value of the last call.
func (b *BasicAuthIdentityProviderApplyConfiguration) WithCA(value *ConfigMapNameReferenceApplyConfiguration) *BasicAuthIdentityProviderApplyConfiguration {
- b.CA = value
+ b.OAuthRemoteConnectionInfoApplyConfiguration.CA = value
return b
}
@@ -34,7 +34,7 @@ func (b *BasicAuthIdentityProviderApplyConfiguration) WithCA(value *ConfigMapNam
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the TLSClientCert field is set to the value of the last call.
func (b *BasicAuthIdentityProviderApplyConfiguration) WithTLSClientCert(value *SecretNameReferenceApplyConfiguration) *BasicAuthIdentityProviderApplyConfiguration {
- b.TLSClientCert = value
+ b.OAuthRemoteConnectionInfoApplyConfiguration.TLSClientCert = value
return b
}
@@ -42,6 +42,6 @@ func (b *BasicAuthIdentityProviderApplyConfiguration) WithTLSClientCert(value *S
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the TLSClientKey field is set to the value of the last call.
func (b *BasicAuthIdentityProviderApplyConfiguration) WithTLSClientKey(value *SecretNameReferenceApplyConfiguration) *BasicAuthIdentityProviderApplyConfiguration {
- b.TLSClientKey = value
+ b.OAuthRemoteConnectionInfoApplyConfiguration.TLSClientKey = value
return b
}
diff --git a/config/applyconfigurations/config/v1/build.go b/config/applyconfigurations/config/v1/build.go
index 06aa12e0f..cdadabcae 100644
--- a/config/applyconfigurations/config/v1/build.go
+++ b/config/applyconfigurations/config/v1/build.go
@@ -3,20 +3,20 @@
package v1
import (
- apiconfigv1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
internal "github.com/openshift/client-go/config/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// BuildApplyConfiguration represents a declarative configuration of the Build type for use
// with apply.
type BuildApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *BuildSpecApplyConfiguration `json:"spec,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *BuildSpecApplyConfiguration `json:"spec,omitempty"`
}
// Build constructs a declarative configuration of the Build type for use with
@@ -40,18 +40,18 @@ func Build(name string) *BuildApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractBuild(build *apiconfigv1.Build, fieldManager string) (*BuildApplyConfiguration, error) {
+func ExtractBuild(build *configv1.Build, fieldManager string) (*BuildApplyConfiguration, error) {
return extractBuild(build, fieldManager, "")
}
// ExtractBuildStatus is the same as ExtractBuild except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractBuildStatus(build *apiconfigv1.Build, fieldManager string) (*BuildApplyConfiguration, error) {
+func ExtractBuildStatus(build *configv1.Build, fieldManager string) (*BuildApplyConfiguration, error) {
return extractBuild(build, fieldManager, "status")
}
-func extractBuild(build *apiconfigv1.Build, fieldManager string, subresource string) (*BuildApplyConfiguration, error) {
+func extractBuild(build *configv1.Build, fieldManager string, subresource string) (*BuildApplyConfiguration, error) {
b := &BuildApplyConfiguration{}
err := managedfields.ExtractInto(build, internal.Parser().Type("com.github.openshift.api.config.v1.Build"), fieldManager, b, subresource)
if err != nil {
@@ -68,7 +68,7 @@ func extractBuild(build *apiconfigv1.Build, fieldManager string, subresource str
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *BuildApplyConfiguration) WithKind(value string) *BuildApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -76,7 +76,7 @@ func (b *BuildApplyConfiguration) WithKind(value string) *BuildApplyConfiguratio
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *BuildApplyConfiguration) WithAPIVersion(value string) *BuildApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -85,7 +85,7 @@ func (b *BuildApplyConfiguration) WithAPIVersion(value string) *BuildApplyConfig
// If called multiple times, the Name field is set to the value of the last call.
func (b *BuildApplyConfiguration) WithName(value string) *BuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -94,7 +94,7 @@ func (b *BuildApplyConfiguration) WithName(value string) *BuildApplyConfiguratio
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *BuildApplyConfiguration) WithGenerateName(value string) *BuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -103,7 +103,7 @@ func (b *BuildApplyConfiguration) WithGenerateName(value string) *BuildApplyConf
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *BuildApplyConfiguration) WithNamespace(value string) *BuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -112,7 +112,7 @@ func (b *BuildApplyConfiguration) WithNamespace(value string) *BuildApplyConfigu
// If called multiple times, the UID field is set to the value of the last call.
func (b *BuildApplyConfiguration) WithUID(value types.UID) *BuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -121,7 +121,7 @@ func (b *BuildApplyConfiguration) WithUID(value types.UID) *BuildApplyConfigurat
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *BuildApplyConfiguration) WithResourceVersion(value string) *BuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -130,25 +130,25 @@ func (b *BuildApplyConfiguration) WithResourceVersion(value string) *BuildApplyC
// If called multiple times, the Generation field is set to the value of the last call.
func (b *BuildApplyConfiguration) WithGeneration(value int64) *BuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *BuildApplyConfiguration) WithCreationTimestamp(value metav1.Time) *BuildApplyConfiguration {
+func (b *BuildApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *BuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *BuildApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *BuildApplyConfiguration {
+func (b *BuildApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *BuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -157,7 +157,7 @@ func (b *BuildApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *Buil
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *BuildApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *BuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -167,11 +167,11 @@ func (b *BuildApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *B
// overwriting an existing map entries in Labels field with the same key.
func (b *BuildApplyConfiguration) WithLabels(entries map[string]string) *BuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -182,11 +182,11 @@ func (b *BuildApplyConfiguration) WithLabels(entries map[string]string) *BuildAp
// overwriting an existing map entries in Annotations field with the same key.
func (b *BuildApplyConfiguration) WithAnnotations(entries map[string]string) *BuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -194,13 +194,13 @@ func (b *BuildApplyConfiguration) WithAnnotations(entries map[string]string) *Bu
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *BuildApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *BuildApplyConfiguration {
+func (b *BuildApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *BuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -211,14 +211,14 @@ func (b *BuildApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferen
func (b *BuildApplyConfiguration) WithFinalizers(values ...string) *BuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *BuildApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -233,5 +233,5 @@ func (b *BuildApplyConfiguration) WithSpec(value *BuildSpecApplyConfiguration) *
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *BuildApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/config/applyconfigurations/config/v1/cloudcontrollermanagerstatus.go b/config/applyconfigurations/config/v1/cloudcontrollermanagerstatus.go
index 60bf4ed6b..79850b75e 100644
--- a/config/applyconfigurations/config/v1/cloudcontrollermanagerstatus.go
+++ b/config/applyconfigurations/config/v1/cloudcontrollermanagerstatus.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// CloudControllerManagerStatusApplyConfiguration represents a declarative configuration of the CloudControllerManagerStatus type for use
// with apply.
type CloudControllerManagerStatusApplyConfiguration struct {
- State *v1.CloudControllerManagerState `json:"state,omitempty"`
+ State *configv1.CloudControllerManagerState `json:"state,omitempty"`
}
// CloudControllerManagerStatusApplyConfiguration constructs a declarative configuration of the CloudControllerManagerStatus type for use with
@@ -21,7 +21,7 @@ func CloudControllerManagerStatus() *CloudControllerManagerStatusApplyConfigurat
// WithState sets the State field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the State field is set to the value of the last call.
-func (b *CloudControllerManagerStatusApplyConfiguration) WithState(value v1.CloudControllerManagerState) *CloudControllerManagerStatusApplyConfiguration {
+func (b *CloudControllerManagerStatusApplyConfiguration) WithState(value configv1.CloudControllerManagerState) *CloudControllerManagerStatusApplyConfiguration {
b.State = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/cloudloadbalancerconfig.go b/config/applyconfigurations/config/v1/cloudloadbalancerconfig.go
index 5be77a3a3..d73faf3f2 100644
--- a/config/applyconfigurations/config/v1/cloudloadbalancerconfig.go
+++ b/config/applyconfigurations/config/v1/cloudloadbalancerconfig.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// CloudLoadBalancerConfigApplyConfiguration represents a declarative configuration of the CloudLoadBalancerConfig type for use
// with apply.
type CloudLoadBalancerConfigApplyConfiguration struct {
- DNSType *v1.DNSType `json:"dnsType,omitempty"`
+ DNSType *configv1.DNSType `json:"dnsType,omitempty"`
ClusterHosted *CloudLoadBalancerIPsApplyConfiguration `json:"clusterHosted,omitempty"`
}
@@ -22,7 +22,7 @@ func CloudLoadBalancerConfig() *CloudLoadBalancerConfigApplyConfiguration {
// WithDNSType sets the DNSType field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DNSType field is set to the value of the last call.
-func (b *CloudLoadBalancerConfigApplyConfiguration) WithDNSType(value v1.DNSType) *CloudLoadBalancerConfigApplyConfiguration {
+func (b *CloudLoadBalancerConfigApplyConfiguration) WithDNSType(value configv1.DNSType) *CloudLoadBalancerConfigApplyConfiguration {
b.DNSType = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/cloudloadbalancerips.go b/config/applyconfigurations/config/v1/cloudloadbalancerips.go
index baef18811..ce7f25850 100644
--- a/config/applyconfigurations/config/v1/cloudloadbalancerips.go
+++ b/config/applyconfigurations/config/v1/cloudloadbalancerips.go
@@ -3,15 +3,15 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// CloudLoadBalancerIPsApplyConfiguration represents a declarative configuration of the CloudLoadBalancerIPs type for use
// with apply.
type CloudLoadBalancerIPsApplyConfiguration struct {
- APIIntLoadBalancerIPs []v1.IP `json:"apiIntLoadBalancerIPs,omitempty"`
- APILoadBalancerIPs []v1.IP `json:"apiLoadBalancerIPs,omitempty"`
- IngressLoadBalancerIPs []v1.IP `json:"ingressLoadBalancerIPs,omitempty"`
+ APIIntLoadBalancerIPs []configv1.IP `json:"apiIntLoadBalancerIPs,omitempty"`
+ APILoadBalancerIPs []configv1.IP `json:"apiLoadBalancerIPs,omitempty"`
+ IngressLoadBalancerIPs []configv1.IP `json:"ingressLoadBalancerIPs,omitempty"`
}
// CloudLoadBalancerIPsApplyConfiguration constructs a declarative configuration of the CloudLoadBalancerIPs type for use with
@@ -23,7 +23,7 @@ func CloudLoadBalancerIPs() *CloudLoadBalancerIPsApplyConfiguration {
// WithAPIIntLoadBalancerIPs adds the given value to the APIIntLoadBalancerIPs field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the APIIntLoadBalancerIPs field.
-func (b *CloudLoadBalancerIPsApplyConfiguration) WithAPIIntLoadBalancerIPs(values ...v1.IP) *CloudLoadBalancerIPsApplyConfiguration {
+func (b *CloudLoadBalancerIPsApplyConfiguration) WithAPIIntLoadBalancerIPs(values ...configv1.IP) *CloudLoadBalancerIPsApplyConfiguration {
for i := range values {
b.APIIntLoadBalancerIPs = append(b.APIIntLoadBalancerIPs, values[i])
}
@@ -33,7 +33,7 @@ func (b *CloudLoadBalancerIPsApplyConfiguration) WithAPIIntLoadBalancerIPs(value
// WithAPILoadBalancerIPs adds the given value to the APILoadBalancerIPs field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the APILoadBalancerIPs field.
-func (b *CloudLoadBalancerIPsApplyConfiguration) WithAPILoadBalancerIPs(values ...v1.IP) *CloudLoadBalancerIPsApplyConfiguration {
+func (b *CloudLoadBalancerIPsApplyConfiguration) WithAPILoadBalancerIPs(values ...configv1.IP) *CloudLoadBalancerIPsApplyConfiguration {
for i := range values {
b.APILoadBalancerIPs = append(b.APILoadBalancerIPs, values[i])
}
@@ -43,7 +43,7 @@ func (b *CloudLoadBalancerIPsApplyConfiguration) WithAPILoadBalancerIPs(values .
// WithIngressLoadBalancerIPs adds the given value to the IngressLoadBalancerIPs field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the IngressLoadBalancerIPs field.
-func (b *CloudLoadBalancerIPsApplyConfiguration) WithIngressLoadBalancerIPs(values ...v1.IP) *CloudLoadBalancerIPsApplyConfiguration {
+func (b *CloudLoadBalancerIPsApplyConfiguration) WithIngressLoadBalancerIPs(values ...configv1.IP) *CloudLoadBalancerIPsApplyConfiguration {
for i := range values {
b.IngressLoadBalancerIPs = append(b.IngressLoadBalancerIPs, values[i])
}
diff --git a/config/applyconfigurations/config/v1/clusteroperator.go b/config/applyconfigurations/config/v1/clusteroperator.go
index 6371179a8..4bfa43805 100644
--- a/config/applyconfigurations/config/v1/clusteroperator.go
+++ b/config/applyconfigurations/config/v1/clusteroperator.go
@@ -5,19 +5,19 @@ package v1
import (
configv1 "github.com/openshift/api/config/v1"
internal "github.com/openshift/client-go/config/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ClusterOperatorApplyConfiguration represents a declarative configuration of the ClusterOperator type for use
// with apply.
type ClusterOperatorApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *configv1.ClusterOperatorSpec `json:"spec,omitempty"`
- Status *ClusterOperatorStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *configv1.ClusterOperatorSpec `json:"spec,omitempty"`
+ Status *ClusterOperatorStatusApplyConfiguration `json:"status,omitempty"`
}
// ClusterOperator constructs a declarative configuration of the ClusterOperator type for use with
@@ -69,7 +69,7 @@ func extractClusterOperator(clusterOperator *configv1.ClusterOperator, fieldMana
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ClusterOperatorApplyConfiguration) WithKind(value string) *ClusterOperatorApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *ClusterOperatorApplyConfiguration) WithKind(value string) *ClusterOpera
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ClusterOperatorApplyConfiguration) WithAPIVersion(value string) *ClusterOperatorApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *ClusterOperatorApplyConfiguration) WithAPIVersion(value string) *Cluste
// If called multiple times, the Name field is set to the value of the last call.
func (b *ClusterOperatorApplyConfiguration) WithName(value string) *ClusterOperatorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *ClusterOperatorApplyConfiguration) WithName(value string) *ClusterOpera
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ClusterOperatorApplyConfiguration) WithGenerateName(value string) *ClusterOperatorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *ClusterOperatorApplyConfiguration) WithGenerateName(value string) *Clus
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ClusterOperatorApplyConfiguration) WithNamespace(value string) *ClusterOperatorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *ClusterOperatorApplyConfiguration) WithNamespace(value string) *Cluster
// If called multiple times, the UID field is set to the value of the last call.
func (b *ClusterOperatorApplyConfiguration) WithUID(value types.UID) *ClusterOperatorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *ClusterOperatorApplyConfiguration) WithUID(value types.UID) *ClusterOpe
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ClusterOperatorApplyConfiguration) WithResourceVersion(value string) *ClusterOperatorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *ClusterOperatorApplyConfiguration) WithResourceVersion(value string) *C
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ClusterOperatorApplyConfiguration) WithGeneration(value int64) *ClusterOperatorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *ClusterOperatorApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ClusterOperatorApplyConfiguration {
+func (b *ClusterOperatorApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ClusterOperatorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *ClusterOperatorApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ClusterOperatorApplyConfiguration {
+func (b *ClusterOperatorApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ClusterOperatorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *ClusterOperatorApplyConfiguration) WithDeletionTimestamp(value metav1.T
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ClusterOperatorApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ClusterOperatorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *ClusterOperatorApplyConfiguration) WithDeletionGracePeriodSeconds(value
// overwriting an existing map entries in Labels field with the same key.
func (b *ClusterOperatorApplyConfiguration) WithLabels(entries map[string]string) *ClusterOperatorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *ClusterOperatorApplyConfiguration) WithLabels(entries map[string]string
// overwriting an existing map entries in Annotations field with the same key.
func (b *ClusterOperatorApplyConfiguration) WithAnnotations(entries map[string]string) *ClusterOperatorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *ClusterOperatorApplyConfiguration) WithAnnotations(entries map[string]s
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *ClusterOperatorApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ClusterOperatorApplyConfiguration {
+func (b *ClusterOperatorApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ClusterOperatorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *ClusterOperatorApplyConfiguration) WithOwnerReferences(values ...*v1.Ow
func (b *ClusterOperatorApplyConfiguration) WithFinalizers(values ...string) *ClusterOperatorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *ClusterOperatorApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *ClusterOperatorApplyConfiguration) WithStatus(value *ClusterOperatorSta
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ClusterOperatorApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/config/applyconfigurations/config/v1/clusteroperatorstatuscondition.go b/config/applyconfigurations/config/v1/clusteroperatorstatuscondition.go
index 557f75d2e..3e58daa81 100644
--- a/config/applyconfigurations/config/v1/clusteroperatorstatuscondition.go
+++ b/config/applyconfigurations/config/v1/clusteroperatorstatuscondition.go
@@ -3,18 +3,18 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// ClusterOperatorStatusConditionApplyConfiguration represents a declarative configuration of the ClusterOperatorStatusCondition type for use
// with apply.
type ClusterOperatorStatusConditionApplyConfiguration struct {
- Type *v1.ClusterStatusConditionType `json:"type,omitempty"`
- Status *v1.ConditionStatus `json:"status,omitempty"`
- LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
- Reason *string `json:"reason,omitempty"`
- Message *string `json:"message,omitempty"`
+ Type *configv1.ClusterStatusConditionType `json:"type,omitempty"`
+ Status *configv1.ConditionStatus `json:"status,omitempty"`
+ LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
+ Reason *string `json:"reason,omitempty"`
+ Message *string `json:"message,omitempty"`
}
// ClusterOperatorStatusConditionApplyConfiguration constructs a declarative configuration of the ClusterOperatorStatusCondition type for use with
@@ -26,7 +26,7 @@ func ClusterOperatorStatusCondition() *ClusterOperatorStatusConditionApplyConfig
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *ClusterOperatorStatusConditionApplyConfiguration) WithType(value v1.ClusterStatusConditionType) *ClusterOperatorStatusConditionApplyConfiguration {
+func (b *ClusterOperatorStatusConditionApplyConfiguration) WithType(value configv1.ClusterStatusConditionType) *ClusterOperatorStatusConditionApplyConfiguration {
b.Type = &value
return b
}
@@ -34,7 +34,7 @@ func (b *ClusterOperatorStatusConditionApplyConfiguration) WithType(value v1.Clu
// WithStatus sets the Status field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Status field is set to the value of the last call.
-func (b *ClusterOperatorStatusConditionApplyConfiguration) WithStatus(value v1.ConditionStatus) *ClusterOperatorStatusConditionApplyConfiguration {
+func (b *ClusterOperatorStatusConditionApplyConfiguration) WithStatus(value configv1.ConditionStatus) *ClusterOperatorStatusConditionApplyConfiguration {
b.Status = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/clusterversion.go b/config/applyconfigurations/config/v1/clusterversion.go
index 52f2e5cb8..69073ee5c 100644
--- a/config/applyconfigurations/config/v1/clusterversion.go
+++ b/config/applyconfigurations/config/v1/clusterversion.go
@@ -3,21 +3,21 @@
package v1
import (
- apiconfigv1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
internal "github.com/openshift/client-go/config/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ClusterVersionApplyConfiguration represents a declarative configuration of the ClusterVersion type for use
// with apply.
type ClusterVersionApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *ClusterVersionSpecApplyConfiguration `json:"spec,omitempty"`
- Status *ClusterVersionStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *ClusterVersionSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *ClusterVersionStatusApplyConfiguration `json:"status,omitempty"`
}
// ClusterVersion constructs a declarative configuration of the ClusterVersion type for use with
@@ -41,18 +41,18 @@ func ClusterVersion(name string) *ClusterVersionApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractClusterVersion(clusterVersion *apiconfigv1.ClusterVersion, fieldManager string) (*ClusterVersionApplyConfiguration, error) {
+func ExtractClusterVersion(clusterVersion *configv1.ClusterVersion, fieldManager string) (*ClusterVersionApplyConfiguration, error) {
return extractClusterVersion(clusterVersion, fieldManager, "")
}
// ExtractClusterVersionStatus is the same as ExtractClusterVersion except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractClusterVersionStatus(clusterVersion *apiconfigv1.ClusterVersion, fieldManager string) (*ClusterVersionApplyConfiguration, error) {
+func ExtractClusterVersionStatus(clusterVersion *configv1.ClusterVersion, fieldManager string) (*ClusterVersionApplyConfiguration, error) {
return extractClusterVersion(clusterVersion, fieldManager, "status")
}
-func extractClusterVersion(clusterVersion *apiconfigv1.ClusterVersion, fieldManager string, subresource string) (*ClusterVersionApplyConfiguration, error) {
+func extractClusterVersion(clusterVersion *configv1.ClusterVersion, fieldManager string, subresource string) (*ClusterVersionApplyConfiguration, error) {
b := &ClusterVersionApplyConfiguration{}
err := managedfields.ExtractInto(clusterVersion, internal.Parser().Type("com.github.openshift.api.config.v1.ClusterVersion"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractClusterVersion(clusterVersion *apiconfigv1.ClusterVersion, fieldMana
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ClusterVersionApplyConfiguration) WithKind(value string) *ClusterVersionApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *ClusterVersionApplyConfiguration) WithKind(value string) *ClusterVersio
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ClusterVersionApplyConfiguration) WithAPIVersion(value string) *ClusterVersionApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *ClusterVersionApplyConfiguration) WithAPIVersion(value string) *Cluster
// If called multiple times, the Name field is set to the value of the last call.
func (b *ClusterVersionApplyConfiguration) WithName(value string) *ClusterVersionApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *ClusterVersionApplyConfiguration) WithName(value string) *ClusterVersio
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ClusterVersionApplyConfiguration) WithGenerateName(value string) *ClusterVersionApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *ClusterVersionApplyConfiguration) WithGenerateName(value string) *Clust
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ClusterVersionApplyConfiguration) WithNamespace(value string) *ClusterVersionApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *ClusterVersionApplyConfiguration) WithNamespace(value string) *ClusterV
// If called multiple times, the UID field is set to the value of the last call.
func (b *ClusterVersionApplyConfiguration) WithUID(value types.UID) *ClusterVersionApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *ClusterVersionApplyConfiguration) WithUID(value types.UID) *ClusterVers
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ClusterVersionApplyConfiguration) WithResourceVersion(value string) *ClusterVersionApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *ClusterVersionApplyConfiguration) WithResourceVersion(value string) *Cl
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ClusterVersionApplyConfiguration) WithGeneration(value int64) *ClusterVersionApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *ClusterVersionApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ClusterVersionApplyConfiguration {
+func (b *ClusterVersionApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ClusterVersionApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *ClusterVersionApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ClusterVersionApplyConfiguration {
+func (b *ClusterVersionApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ClusterVersionApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *ClusterVersionApplyConfiguration) WithDeletionTimestamp(value metav1.Ti
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ClusterVersionApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ClusterVersionApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *ClusterVersionApplyConfiguration) WithDeletionGracePeriodSeconds(value
// overwriting an existing map entries in Labels field with the same key.
func (b *ClusterVersionApplyConfiguration) WithLabels(entries map[string]string) *ClusterVersionApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *ClusterVersionApplyConfiguration) WithLabels(entries map[string]string)
// overwriting an existing map entries in Annotations field with the same key.
func (b *ClusterVersionApplyConfiguration) WithAnnotations(entries map[string]string) *ClusterVersionApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *ClusterVersionApplyConfiguration) WithAnnotations(entries map[string]st
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *ClusterVersionApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ClusterVersionApplyConfiguration {
+func (b *ClusterVersionApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ClusterVersionApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *ClusterVersionApplyConfiguration) WithOwnerReferences(values ...*v1.Own
func (b *ClusterVersionApplyConfiguration) WithFinalizers(values ...string) *ClusterVersionApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *ClusterVersionApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *ClusterVersionApplyConfiguration) WithStatus(value *ClusterVersionStatu
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ClusterVersionApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/config/applyconfigurations/config/v1/clusterversioncapabilitiesspec.go b/config/applyconfigurations/config/v1/clusterversioncapabilitiesspec.go
index 254eb00e9..feb03e3c3 100644
--- a/config/applyconfigurations/config/v1/clusterversioncapabilitiesspec.go
+++ b/config/applyconfigurations/config/v1/clusterversioncapabilitiesspec.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// ClusterVersionCapabilitiesSpecApplyConfiguration represents a declarative configuration of the ClusterVersionCapabilitiesSpec type for use
// with apply.
type ClusterVersionCapabilitiesSpecApplyConfiguration struct {
- BaselineCapabilitySet *v1.ClusterVersionCapabilitySet `json:"baselineCapabilitySet,omitempty"`
- AdditionalEnabledCapabilities []v1.ClusterVersionCapability `json:"additionalEnabledCapabilities,omitempty"`
+ BaselineCapabilitySet *configv1.ClusterVersionCapabilitySet `json:"baselineCapabilitySet,omitempty"`
+ AdditionalEnabledCapabilities []configv1.ClusterVersionCapability `json:"additionalEnabledCapabilities,omitempty"`
}
// ClusterVersionCapabilitiesSpecApplyConfiguration constructs a declarative configuration of the ClusterVersionCapabilitiesSpec type for use with
@@ -22,7 +22,7 @@ func ClusterVersionCapabilitiesSpec() *ClusterVersionCapabilitiesSpecApplyConfig
// WithBaselineCapabilitySet sets the BaselineCapabilitySet field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the BaselineCapabilitySet field is set to the value of the last call.
-func (b *ClusterVersionCapabilitiesSpecApplyConfiguration) WithBaselineCapabilitySet(value v1.ClusterVersionCapabilitySet) *ClusterVersionCapabilitiesSpecApplyConfiguration {
+func (b *ClusterVersionCapabilitiesSpecApplyConfiguration) WithBaselineCapabilitySet(value configv1.ClusterVersionCapabilitySet) *ClusterVersionCapabilitiesSpecApplyConfiguration {
b.BaselineCapabilitySet = &value
return b
}
@@ -30,7 +30,7 @@ func (b *ClusterVersionCapabilitiesSpecApplyConfiguration) WithBaselineCapabilit
// WithAdditionalEnabledCapabilities adds the given value to the AdditionalEnabledCapabilities field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the AdditionalEnabledCapabilities field.
-func (b *ClusterVersionCapabilitiesSpecApplyConfiguration) WithAdditionalEnabledCapabilities(values ...v1.ClusterVersionCapability) *ClusterVersionCapabilitiesSpecApplyConfiguration {
+func (b *ClusterVersionCapabilitiesSpecApplyConfiguration) WithAdditionalEnabledCapabilities(values ...configv1.ClusterVersionCapability) *ClusterVersionCapabilitiesSpecApplyConfiguration {
for i := range values {
b.AdditionalEnabledCapabilities = append(b.AdditionalEnabledCapabilities, values[i])
}
diff --git a/config/applyconfigurations/config/v1/clusterversioncapabilitiesstatus.go b/config/applyconfigurations/config/v1/clusterversioncapabilitiesstatus.go
index 05350241f..2a8807fe2 100644
--- a/config/applyconfigurations/config/v1/clusterversioncapabilitiesstatus.go
+++ b/config/applyconfigurations/config/v1/clusterversioncapabilitiesstatus.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// ClusterVersionCapabilitiesStatusApplyConfiguration represents a declarative configuration of the ClusterVersionCapabilitiesStatus type for use
// with apply.
type ClusterVersionCapabilitiesStatusApplyConfiguration struct {
- EnabledCapabilities []v1.ClusterVersionCapability `json:"enabledCapabilities,omitempty"`
- KnownCapabilities []v1.ClusterVersionCapability `json:"knownCapabilities,omitempty"`
+ EnabledCapabilities []configv1.ClusterVersionCapability `json:"enabledCapabilities,omitempty"`
+ KnownCapabilities []configv1.ClusterVersionCapability `json:"knownCapabilities,omitempty"`
}
// ClusterVersionCapabilitiesStatusApplyConfiguration constructs a declarative configuration of the ClusterVersionCapabilitiesStatus type for use with
@@ -22,7 +22,7 @@ func ClusterVersionCapabilitiesStatus() *ClusterVersionCapabilitiesStatusApplyCo
// WithEnabledCapabilities adds the given value to the EnabledCapabilities field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the EnabledCapabilities field.
-func (b *ClusterVersionCapabilitiesStatusApplyConfiguration) WithEnabledCapabilities(values ...v1.ClusterVersionCapability) *ClusterVersionCapabilitiesStatusApplyConfiguration {
+func (b *ClusterVersionCapabilitiesStatusApplyConfiguration) WithEnabledCapabilities(values ...configv1.ClusterVersionCapability) *ClusterVersionCapabilitiesStatusApplyConfiguration {
for i := range values {
b.EnabledCapabilities = append(b.EnabledCapabilities, values[i])
}
@@ -32,7 +32,7 @@ func (b *ClusterVersionCapabilitiesStatusApplyConfiguration) WithEnabledCapabili
// WithKnownCapabilities adds the given value to the KnownCapabilities field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the KnownCapabilities field.
-func (b *ClusterVersionCapabilitiesStatusApplyConfiguration) WithKnownCapabilities(values ...v1.ClusterVersionCapability) *ClusterVersionCapabilitiesStatusApplyConfiguration {
+func (b *ClusterVersionCapabilitiesStatusApplyConfiguration) WithKnownCapabilities(values ...configv1.ClusterVersionCapability) *ClusterVersionCapabilitiesStatusApplyConfiguration {
for i := range values {
b.KnownCapabilities = append(b.KnownCapabilities, values[i])
}
diff --git a/config/applyconfigurations/config/v1/clusterversionspec.go b/config/applyconfigurations/config/v1/clusterversionspec.go
index b440c613b..926f29557 100644
--- a/config/applyconfigurations/config/v1/clusterversionspec.go
+++ b/config/applyconfigurations/config/v1/clusterversionspec.go
@@ -3,15 +3,15 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// ClusterVersionSpecApplyConfiguration represents a declarative configuration of the ClusterVersionSpec type for use
// with apply.
type ClusterVersionSpecApplyConfiguration struct {
- ClusterID *v1.ClusterID `json:"clusterID,omitempty"`
+ ClusterID *configv1.ClusterID `json:"clusterID,omitempty"`
DesiredUpdate *UpdateApplyConfiguration `json:"desiredUpdate,omitempty"`
- Upstream *v1.URL `json:"upstream,omitempty"`
+ Upstream *configv1.URL `json:"upstream,omitempty"`
Channel *string `json:"channel,omitempty"`
Capabilities *ClusterVersionCapabilitiesSpecApplyConfiguration `json:"capabilities,omitempty"`
SignatureStores []SignatureStoreApplyConfiguration `json:"signatureStores,omitempty"`
@@ -27,7 +27,7 @@ func ClusterVersionSpec() *ClusterVersionSpecApplyConfiguration {
// WithClusterID sets the ClusterID field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ClusterID field is set to the value of the last call.
-func (b *ClusterVersionSpecApplyConfiguration) WithClusterID(value v1.ClusterID) *ClusterVersionSpecApplyConfiguration {
+func (b *ClusterVersionSpecApplyConfiguration) WithClusterID(value configv1.ClusterID) *ClusterVersionSpecApplyConfiguration {
b.ClusterID = &value
return b
}
@@ -43,7 +43,7 @@ func (b *ClusterVersionSpecApplyConfiguration) WithDesiredUpdate(value *UpdateAp
// WithUpstream sets the Upstream field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Upstream field is set to the value of the last call.
-func (b *ClusterVersionSpecApplyConfiguration) WithUpstream(value v1.URL) *ClusterVersionSpecApplyConfiguration {
+func (b *ClusterVersionSpecApplyConfiguration) WithUpstream(value configv1.URL) *ClusterVersionSpecApplyConfiguration {
b.Upstream = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/componentroutespec.go b/config/applyconfigurations/config/v1/componentroutespec.go
index f8a2c5e51..beebd2b02 100644
--- a/config/applyconfigurations/config/v1/componentroutespec.go
+++ b/config/applyconfigurations/config/v1/componentroutespec.go
@@ -3,7 +3,7 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// ComponentRouteSpecApplyConfiguration represents a declarative configuration of the ComponentRouteSpec type for use
@@ -11,7 +11,7 @@ import (
type ComponentRouteSpecApplyConfiguration struct {
Namespace *string `json:"namespace,omitempty"`
Name *string `json:"name,omitempty"`
- Hostname *v1.Hostname `json:"hostname,omitempty"`
+ Hostname *configv1.Hostname `json:"hostname,omitempty"`
ServingCertKeyPairSecret *SecretNameReferenceApplyConfiguration `json:"servingCertKeyPairSecret,omitempty"`
}
@@ -40,7 +40,7 @@ func (b *ComponentRouteSpecApplyConfiguration) WithName(value string) *Component
// WithHostname sets the Hostname field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Hostname field is set to the value of the last call.
-func (b *ComponentRouteSpecApplyConfiguration) WithHostname(value v1.Hostname) *ComponentRouteSpecApplyConfiguration {
+func (b *ComponentRouteSpecApplyConfiguration) WithHostname(value configv1.Hostname) *ComponentRouteSpecApplyConfiguration {
b.Hostname = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/componentroutestatus.go b/config/applyconfigurations/config/v1/componentroutestatus.go
index abf378c84..ae9553882 100644
--- a/config/applyconfigurations/config/v1/componentroutestatus.go
+++ b/config/applyconfigurations/config/v1/componentroutestatus.go
@@ -3,7 +3,7 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
@@ -12,9 +12,9 @@ import (
type ComponentRouteStatusApplyConfiguration struct {
Namespace *string `json:"namespace,omitempty"`
Name *string `json:"name,omitempty"`
- DefaultHostname *v1.Hostname `json:"defaultHostname,omitempty"`
- ConsumingUsers []v1.ConsumingUser `json:"consumingUsers,omitempty"`
- CurrentHostnames []v1.Hostname `json:"currentHostnames,omitempty"`
+ DefaultHostname *configv1.Hostname `json:"defaultHostname,omitempty"`
+ ConsumingUsers []configv1.ConsumingUser `json:"consumingUsers,omitempty"`
+ CurrentHostnames []configv1.Hostname `json:"currentHostnames,omitempty"`
Conditions []metav1.ConditionApplyConfiguration `json:"conditions,omitempty"`
RelatedObjects []ObjectReferenceApplyConfiguration `json:"relatedObjects,omitempty"`
}
@@ -44,7 +44,7 @@ func (b *ComponentRouteStatusApplyConfiguration) WithName(value string) *Compone
// WithDefaultHostname sets the DefaultHostname field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DefaultHostname field is set to the value of the last call.
-func (b *ComponentRouteStatusApplyConfiguration) WithDefaultHostname(value v1.Hostname) *ComponentRouteStatusApplyConfiguration {
+func (b *ComponentRouteStatusApplyConfiguration) WithDefaultHostname(value configv1.Hostname) *ComponentRouteStatusApplyConfiguration {
b.DefaultHostname = &value
return b
}
@@ -52,7 +52,7 @@ func (b *ComponentRouteStatusApplyConfiguration) WithDefaultHostname(value v1.Ho
// WithConsumingUsers adds the given value to the ConsumingUsers field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the ConsumingUsers field.
-func (b *ComponentRouteStatusApplyConfiguration) WithConsumingUsers(values ...v1.ConsumingUser) *ComponentRouteStatusApplyConfiguration {
+func (b *ComponentRouteStatusApplyConfiguration) WithConsumingUsers(values ...configv1.ConsumingUser) *ComponentRouteStatusApplyConfiguration {
for i := range values {
b.ConsumingUsers = append(b.ConsumingUsers, values[i])
}
@@ -62,7 +62,7 @@ func (b *ComponentRouteStatusApplyConfiguration) WithConsumingUsers(values ...v1
// WithCurrentHostnames adds the given value to the CurrentHostnames field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the CurrentHostnames field.
-func (b *ComponentRouteStatusApplyConfiguration) WithCurrentHostnames(values ...v1.Hostname) *ComponentRouteStatusApplyConfiguration {
+func (b *ComponentRouteStatusApplyConfiguration) WithCurrentHostnames(values ...configv1.Hostname) *ComponentRouteStatusApplyConfiguration {
for i := range values {
b.CurrentHostnames = append(b.CurrentHostnames, values[i])
}
diff --git a/config/applyconfigurations/config/v1/console.go b/config/applyconfigurations/config/v1/console.go
index 58bf394da..8e04091da 100644
--- a/config/applyconfigurations/config/v1/console.go
+++ b/config/applyconfigurations/config/v1/console.go
@@ -3,21 +3,21 @@
package v1
import (
- apiconfigv1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
internal "github.com/openshift/client-go/config/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ConsoleApplyConfiguration represents a declarative configuration of the Console type for use
// with apply.
type ConsoleApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *ConsoleSpecApplyConfiguration `json:"spec,omitempty"`
- Status *ConsoleStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *ConsoleSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *ConsoleStatusApplyConfiguration `json:"status,omitempty"`
}
// Console constructs a declarative configuration of the Console type for use with
@@ -41,18 +41,18 @@ func Console(name string) *ConsoleApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractConsole(console *apiconfigv1.Console, fieldManager string) (*ConsoleApplyConfiguration, error) {
+func ExtractConsole(console *configv1.Console, fieldManager string) (*ConsoleApplyConfiguration, error) {
return extractConsole(console, fieldManager, "")
}
// ExtractConsoleStatus is the same as ExtractConsole except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractConsoleStatus(console *apiconfigv1.Console, fieldManager string) (*ConsoleApplyConfiguration, error) {
+func ExtractConsoleStatus(console *configv1.Console, fieldManager string) (*ConsoleApplyConfiguration, error) {
return extractConsole(console, fieldManager, "status")
}
-func extractConsole(console *apiconfigv1.Console, fieldManager string, subresource string) (*ConsoleApplyConfiguration, error) {
+func extractConsole(console *configv1.Console, fieldManager string, subresource string) (*ConsoleApplyConfiguration, error) {
b := &ConsoleApplyConfiguration{}
err := managedfields.ExtractInto(console, internal.Parser().Type("com.github.openshift.api.config.v1.Console"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractConsole(console *apiconfigv1.Console, fieldManager string, subresour
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ConsoleApplyConfiguration) WithKind(value string) *ConsoleApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *ConsoleApplyConfiguration) WithKind(value string) *ConsoleApplyConfigur
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ConsoleApplyConfiguration) WithAPIVersion(value string) *ConsoleApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *ConsoleApplyConfiguration) WithAPIVersion(value string) *ConsoleApplyCo
// If called multiple times, the Name field is set to the value of the last call.
func (b *ConsoleApplyConfiguration) WithName(value string) *ConsoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *ConsoleApplyConfiguration) WithName(value string) *ConsoleApplyConfigur
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ConsoleApplyConfiguration) WithGenerateName(value string) *ConsoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *ConsoleApplyConfiguration) WithGenerateName(value string) *ConsoleApply
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ConsoleApplyConfiguration) WithNamespace(value string) *ConsoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *ConsoleApplyConfiguration) WithNamespace(value string) *ConsoleApplyCon
// If called multiple times, the UID field is set to the value of the last call.
func (b *ConsoleApplyConfiguration) WithUID(value types.UID) *ConsoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *ConsoleApplyConfiguration) WithUID(value types.UID) *ConsoleApplyConfig
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ConsoleApplyConfiguration) WithResourceVersion(value string) *ConsoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *ConsoleApplyConfiguration) WithResourceVersion(value string) *ConsoleAp
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ConsoleApplyConfiguration) WithGeneration(value int64) *ConsoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *ConsoleApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ConsoleApplyConfiguration {
+func (b *ConsoleApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ConsoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *ConsoleApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ConsoleApplyConfiguration {
+func (b *ConsoleApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ConsoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *ConsoleApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *Co
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ConsoleApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ConsoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *ConsoleApplyConfiguration) WithDeletionGracePeriodSeconds(value int64)
// overwriting an existing map entries in Labels field with the same key.
func (b *ConsoleApplyConfiguration) WithLabels(entries map[string]string) *ConsoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *ConsoleApplyConfiguration) WithLabels(entries map[string]string) *Conso
// overwriting an existing map entries in Annotations field with the same key.
func (b *ConsoleApplyConfiguration) WithAnnotations(entries map[string]string) *ConsoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *ConsoleApplyConfiguration) WithAnnotations(entries map[string]string) *
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *ConsoleApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ConsoleApplyConfiguration {
+func (b *ConsoleApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ConsoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *ConsoleApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefer
func (b *ConsoleApplyConfiguration) WithFinalizers(values ...string) *ConsoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *ConsoleApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *ConsoleApplyConfiguration) WithStatus(value *ConsoleStatusApplyConfigur
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ConsoleApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/config/applyconfigurations/config/v1/customfeaturegates.go b/config/applyconfigurations/config/v1/customfeaturegates.go
index a0a648287..7cd70c7ee 100644
--- a/config/applyconfigurations/config/v1/customfeaturegates.go
+++ b/config/applyconfigurations/config/v1/customfeaturegates.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// CustomFeatureGatesApplyConfiguration represents a declarative configuration of the CustomFeatureGates type for use
// with apply.
type CustomFeatureGatesApplyConfiguration struct {
- Enabled []v1.FeatureGateName `json:"enabled,omitempty"`
- Disabled []v1.FeatureGateName `json:"disabled,omitempty"`
+ Enabled []configv1.FeatureGateName `json:"enabled,omitempty"`
+ Disabled []configv1.FeatureGateName `json:"disabled,omitempty"`
}
// CustomFeatureGatesApplyConfiguration constructs a declarative configuration of the CustomFeatureGates type for use with
@@ -22,7 +22,7 @@ func CustomFeatureGates() *CustomFeatureGatesApplyConfiguration {
// WithEnabled adds the given value to the Enabled field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Enabled field.
-func (b *CustomFeatureGatesApplyConfiguration) WithEnabled(values ...v1.FeatureGateName) *CustomFeatureGatesApplyConfiguration {
+func (b *CustomFeatureGatesApplyConfiguration) WithEnabled(values ...configv1.FeatureGateName) *CustomFeatureGatesApplyConfiguration {
for i := range values {
b.Enabled = append(b.Enabled, values[i])
}
@@ -32,7 +32,7 @@ func (b *CustomFeatureGatesApplyConfiguration) WithEnabled(values ...v1.FeatureG
// WithDisabled adds the given value to the Disabled field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Disabled field.
-func (b *CustomFeatureGatesApplyConfiguration) WithDisabled(values ...v1.FeatureGateName) *CustomFeatureGatesApplyConfiguration {
+func (b *CustomFeatureGatesApplyConfiguration) WithDisabled(values ...configv1.FeatureGateName) *CustomFeatureGatesApplyConfiguration {
for i := range values {
b.Disabled = append(b.Disabled, values[i])
}
diff --git a/config/applyconfigurations/config/v1/customtlsprofile.go b/config/applyconfigurations/config/v1/customtlsprofile.go
index f323e11b1..ae03671cd 100644
--- a/config/applyconfigurations/config/v1/customtlsprofile.go
+++ b/config/applyconfigurations/config/v1/customtlsprofile.go
@@ -23,7 +23,7 @@ func CustomTLSProfile() *CustomTLSProfileApplyConfiguration {
// If called multiple times, values provided by each call will be appended to the Ciphers field.
func (b *CustomTLSProfileApplyConfiguration) WithCiphers(values ...string) *CustomTLSProfileApplyConfiguration {
for i := range values {
- b.Ciphers = append(b.Ciphers, values[i])
+ b.TLSProfileSpecApplyConfiguration.Ciphers = append(b.TLSProfileSpecApplyConfiguration.Ciphers, values[i])
}
return b
}
@@ -32,6 +32,6 @@ func (b *CustomTLSProfileApplyConfiguration) WithCiphers(values ...string) *Cust
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the MinTLSVersion field is set to the value of the last call.
func (b *CustomTLSProfileApplyConfiguration) WithMinTLSVersion(value configv1.TLSProtocolVersion) *CustomTLSProfileApplyConfiguration {
- b.MinTLSVersion = &value
+ b.TLSProfileSpecApplyConfiguration.MinTLSVersion = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/dns.go b/config/applyconfigurations/config/v1/dns.go
index b01e456f5..4ca934c96 100644
--- a/config/applyconfigurations/config/v1/dns.go
+++ b/config/applyconfigurations/config/v1/dns.go
@@ -3,21 +3,21 @@
package v1
import (
- apiconfigv1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
internal "github.com/openshift/client-go/config/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// DNSApplyConfiguration represents a declarative configuration of the DNS type for use
// with apply.
type DNSApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *DNSSpecApplyConfiguration `json:"spec,omitempty"`
- Status *apiconfigv1.DNSStatus `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *DNSSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *configv1.DNSStatus `json:"status,omitempty"`
}
// DNS constructs a declarative configuration of the DNS type for use with
@@ -41,18 +41,18 @@ func DNS(name string) *DNSApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractDNS(dNS *apiconfigv1.DNS, fieldManager string) (*DNSApplyConfiguration, error) {
+func ExtractDNS(dNS *configv1.DNS, fieldManager string) (*DNSApplyConfiguration, error) {
return extractDNS(dNS, fieldManager, "")
}
// ExtractDNSStatus is the same as ExtractDNS except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractDNSStatus(dNS *apiconfigv1.DNS, fieldManager string) (*DNSApplyConfiguration, error) {
+func ExtractDNSStatus(dNS *configv1.DNS, fieldManager string) (*DNSApplyConfiguration, error) {
return extractDNS(dNS, fieldManager, "status")
}
-func extractDNS(dNS *apiconfigv1.DNS, fieldManager string, subresource string) (*DNSApplyConfiguration, error) {
+func extractDNS(dNS *configv1.DNS, fieldManager string, subresource string) (*DNSApplyConfiguration, error) {
b := &DNSApplyConfiguration{}
err := managedfields.ExtractInto(dNS, internal.Parser().Type("com.github.openshift.api.config.v1.DNS"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractDNS(dNS *apiconfigv1.DNS, fieldManager string, subresource string) (
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *DNSApplyConfiguration) WithKind(value string) *DNSApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *DNSApplyConfiguration) WithKind(value string) *DNSApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *DNSApplyConfiguration) WithAPIVersion(value string) *DNSApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *DNSApplyConfiguration) WithAPIVersion(value string) *DNSApplyConfigurat
// If called multiple times, the Name field is set to the value of the last call.
func (b *DNSApplyConfiguration) WithName(value string) *DNSApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *DNSApplyConfiguration) WithName(value string) *DNSApplyConfiguration {
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *DNSApplyConfiguration) WithGenerateName(value string) *DNSApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *DNSApplyConfiguration) WithGenerateName(value string) *DNSApplyConfigur
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *DNSApplyConfiguration) WithNamespace(value string) *DNSApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *DNSApplyConfiguration) WithNamespace(value string) *DNSApplyConfigurati
// If called multiple times, the UID field is set to the value of the last call.
func (b *DNSApplyConfiguration) WithUID(value types.UID) *DNSApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *DNSApplyConfiguration) WithUID(value types.UID) *DNSApplyConfiguration
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *DNSApplyConfiguration) WithResourceVersion(value string) *DNSApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *DNSApplyConfiguration) WithResourceVersion(value string) *DNSApplyConfi
// If called multiple times, the Generation field is set to the value of the last call.
func (b *DNSApplyConfiguration) WithGeneration(value int64) *DNSApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *DNSApplyConfiguration) WithCreationTimestamp(value metav1.Time) *DNSApplyConfiguration {
+func (b *DNSApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *DNSApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *DNSApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *DNSApplyConfiguration {
+func (b *DNSApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *DNSApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *DNSApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *DNSApp
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *DNSApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *DNSApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *DNSApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *DNS
// overwriting an existing map entries in Labels field with the same key.
func (b *DNSApplyConfiguration) WithLabels(entries map[string]string) *DNSApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *DNSApplyConfiguration) WithLabels(entries map[string]string) *DNSApplyC
// overwriting an existing map entries in Annotations field with the same key.
func (b *DNSApplyConfiguration) WithAnnotations(entries map[string]string) *DNSApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *DNSApplyConfiguration) WithAnnotations(entries map[string]string) *DNSA
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *DNSApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *DNSApplyConfiguration {
+func (b *DNSApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *DNSApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *DNSApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReference
func (b *DNSApplyConfiguration) WithFinalizers(values ...string) *DNSApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *DNSApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -234,7 +234,7 @@ func (b *DNSApplyConfiguration) WithSpec(value *DNSSpecApplyConfiguration) *DNSA
// WithStatus sets the Status field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Status field is set to the value of the last call.
-func (b *DNSApplyConfiguration) WithStatus(value apiconfigv1.DNSStatus) *DNSApplyConfiguration {
+func (b *DNSApplyConfiguration) WithStatus(value configv1.DNSStatus) *DNSApplyConfiguration {
b.Status = &value
return b
}
@@ -242,5 +242,5 @@ func (b *DNSApplyConfiguration) WithStatus(value apiconfigv1.DNSStatus) *DNSAppl
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *DNSApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/config/applyconfigurations/config/v1/dnsplatformspec.go b/config/applyconfigurations/config/v1/dnsplatformspec.go
index fc15db1ef..46bf616b2 100644
--- a/config/applyconfigurations/config/v1/dnsplatformspec.go
+++ b/config/applyconfigurations/config/v1/dnsplatformspec.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// DNSPlatformSpecApplyConfiguration represents a declarative configuration of the DNSPlatformSpec type for use
// with apply.
type DNSPlatformSpecApplyConfiguration struct {
- Type *v1.PlatformType `json:"type,omitempty"`
+ Type *configv1.PlatformType `json:"type,omitempty"`
AWS *AWSDNSSpecApplyConfiguration `json:"aws,omitempty"`
}
@@ -22,7 +22,7 @@ func DNSPlatformSpec() *DNSPlatformSpecApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *DNSPlatformSpecApplyConfiguration) WithType(value v1.PlatformType) *DNSPlatformSpecApplyConfiguration {
+func (b *DNSPlatformSpecApplyConfiguration) WithType(value configv1.PlatformType) *DNSPlatformSpecApplyConfiguration {
b.Type = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/featuregate.go b/config/applyconfigurations/config/v1/featuregate.go
index b17945290..73ec53314 100644
--- a/config/applyconfigurations/config/v1/featuregate.go
+++ b/config/applyconfigurations/config/v1/featuregate.go
@@ -3,21 +3,21 @@
package v1
import (
- apiconfigv1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
internal "github.com/openshift/client-go/config/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// FeatureGateApplyConfiguration represents a declarative configuration of the FeatureGate type for use
// with apply.
type FeatureGateApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *FeatureGateSpecApplyConfiguration `json:"spec,omitempty"`
- Status *FeatureGateStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *FeatureGateSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *FeatureGateStatusApplyConfiguration `json:"status,omitempty"`
}
// FeatureGate constructs a declarative configuration of the FeatureGate type for use with
@@ -41,18 +41,18 @@ func FeatureGate(name string) *FeatureGateApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractFeatureGate(featureGate *apiconfigv1.FeatureGate, fieldManager string) (*FeatureGateApplyConfiguration, error) {
+func ExtractFeatureGate(featureGate *configv1.FeatureGate, fieldManager string) (*FeatureGateApplyConfiguration, error) {
return extractFeatureGate(featureGate, fieldManager, "")
}
// ExtractFeatureGateStatus is the same as ExtractFeatureGate except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractFeatureGateStatus(featureGate *apiconfigv1.FeatureGate, fieldManager string) (*FeatureGateApplyConfiguration, error) {
+func ExtractFeatureGateStatus(featureGate *configv1.FeatureGate, fieldManager string) (*FeatureGateApplyConfiguration, error) {
return extractFeatureGate(featureGate, fieldManager, "status")
}
-func extractFeatureGate(featureGate *apiconfigv1.FeatureGate, fieldManager string, subresource string) (*FeatureGateApplyConfiguration, error) {
+func extractFeatureGate(featureGate *configv1.FeatureGate, fieldManager string, subresource string) (*FeatureGateApplyConfiguration, error) {
b := &FeatureGateApplyConfiguration{}
err := managedfields.ExtractInto(featureGate, internal.Parser().Type("com.github.openshift.api.config.v1.FeatureGate"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractFeatureGate(featureGate *apiconfigv1.FeatureGate, fieldManager strin
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *FeatureGateApplyConfiguration) WithKind(value string) *FeatureGateApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *FeatureGateApplyConfiguration) WithKind(value string) *FeatureGateApply
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *FeatureGateApplyConfiguration) WithAPIVersion(value string) *FeatureGateApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *FeatureGateApplyConfiguration) WithAPIVersion(value string) *FeatureGat
// If called multiple times, the Name field is set to the value of the last call.
func (b *FeatureGateApplyConfiguration) WithName(value string) *FeatureGateApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *FeatureGateApplyConfiguration) WithName(value string) *FeatureGateApply
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *FeatureGateApplyConfiguration) WithGenerateName(value string) *FeatureGateApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *FeatureGateApplyConfiguration) WithGenerateName(value string) *FeatureG
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *FeatureGateApplyConfiguration) WithNamespace(value string) *FeatureGateApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *FeatureGateApplyConfiguration) WithNamespace(value string) *FeatureGate
// If called multiple times, the UID field is set to the value of the last call.
func (b *FeatureGateApplyConfiguration) WithUID(value types.UID) *FeatureGateApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *FeatureGateApplyConfiguration) WithUID(value types.UID) *FeatureGateApp
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *FeatureGateApplyConfiguration) WithResourceVersion(value string) *FeatureGateApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *FeatureGateApplyConfiguration) WithResourceVersion(value string) *Featu
// If called multiple times, the Generation field is set to the value of the last call.
func (b *FeatureGateApplyConfiguration) WithGeneration(value int64) *FeatureGateApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *FeatureGateApplyConfiguration) WithCreationTimestamp(value metav1.Time) *FeatureGateApplyConfiguration {
+func (b *FeatureGateApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *FeatureGateApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *FeatureGateApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *FeatureGateApplyConfiguration {
+func (b *FeatureGateApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *FeatureGateApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *FeatureGateApplyConfiguration) WithDeletionTimestamp(value metav1.Time)
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *FeatureGateApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *FeatureGateApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *FeatureGateApplyConfiguration) WithDeletionGracePeriodSeconds(value int
// overwriting an existing map entries in Labels field with the same key.
func (b *FeatureGateApplyConfiguration) WithLabels(entries map[string]string) *FeatureGateApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *FeatureGateApplyConfiguration) WithLabels(entries map[string]string) *F
// overwriting an existing map entries in Annotations field with the same key.
func (b *FeatureGateApplyConfiguration) WithAnnotations(entries map[string]string) *FeatureGateApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *FeatureGateApplyConfiguration) WithAnnotations(entries map[string]strin
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *FeatureGateApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *FeatureGateApplyConfiguration {
+func (b *FeatureGateApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *FeatureGateApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *FeatureGateApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerR
func (b *FeatureGateApplyConfiguration) WithFinalizers(values ...string) *FeatureGateApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *FeatureGateApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *FeatureGateApplyConfiguration) WithStatus(value *FeatureGateStatusApply
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *FeatureGateApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/config/applyconfigurations/config/v1/featuregateattributes.go b/config/applyconfigurations/config/v1/featuregateattributes.go
index 200460a29..7884ec287 100644
--- a/config/applyconfigurations/config/v1/featuregateattributes.go
+++ b/config/applyconfigurations/config/v1/featuregateattributes.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// FeatureGateAttributesApplyConfiguration represents a declarative configuration of the FeatureGateAttributes type for use
// with apply.
type FeatureGateAttributesApplyConfiguration struct {
- Name *v1.FeatureGateName `json:"name,omitempty"`
+ Name *configv1.FeatureGateName `json:"name,omitempty"`
}
// FeatureGateAttributesApplyConfiguration constructs a declarative configuration of the FeatureGateAttributes type for use with
@@ -21,7 +21,7 @@ func FeatureGateAttributes() *FeatureGateAttributesApplyConfiguration {
// WithName sets the Name field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Name field is set to the value of the last call.
-func (b *FeatureGateAttributesApplyConfiguration) WithName(value v1.FeatureGateName) *FeatureGateAttributesApplyConfiguration {
+func (b *FeatureGateAttributesApplyConfiguration) WithName(value configv1.FeatureGateName) *FeatureGateAttributesApplyConfiguration {
b.Name = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/featuregateselection.go b/config/applyconfigurations/config/v1/featuregateselection.go
index 2aac4666e..b79d3f883 100644
--- a/config/applyconfigurations/config/v1/featuregateselection.go
+++ b/config/applyconfigurations/config/v1/featuregateselection.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// FeatureGateSelectionApplyConfiguration represents a declarative configuration of the FeatureGateSelection type for use
// with apply.
type FeatureGateSelectionApplyConfiguration struct {
- FeatureSet *v1.FeatureSet `json:"featureSet,omitempty"`
+ FeatureSet *configv1.FeatureSet `json:"featureSet,omitempty"`
CustomNoUpgrade *CustomFeatureGatesApplyConfiguration `json:"customNoUpgrade,omitempty"`
}
@@ -22,7 +22,7 @@ func FeatureGateSelection() *FeatureGateSelectionApplyConfiguration {
// WithFeatureSet sets the FeatureSet field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the FeatureSet field is set to the value of the last call.
-func (b *FeatureGateSelectionApplyConfiguration) WithFeatureSet(value v1.FeatureSet) *FeatureGateSelectionApplyConfiguration {
+func (b *FeatureGateSelectionApplyConfiguration) WithFeatureSet(value configv1.FeatureSet) *FeatureGateSelectionApplyConfiguration {
b.FeatureSet = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/featuregatespec.go b/config/applyconfigurations/config/v1/featuregatespec.go
index 39b85b5dd..d7e6f5e2b 100644
--- a/config/applyconfigurations/config/v1/featuregatespec.go
+++ b/config/applyconfigurations/config/v1/featuregatespec.go
@@ -22,7 +22,7 @@ func FeatureGateSpec() *FeatureGateSpecApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the FeatureSet field is set to the value of the last call.
func (b *FeatureGateSpecApplyConfiguration) WithFeatureSet(value configv1.FeatureSet) *FeatureGateSpecApplyConfiguration {
- b.FeatureSet = &value
+ b.FeatureGateSelectionApplyConfiguration.FeatureSet = &value
return b
}
@@ -30,6 +30,6 @@ func (b *FeatureGateSpecApplyConfiguration) WithFeatureSet(value configv1.Featur
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CustomNoUpgrade field is set to the value of the last call.
func (b *FeatureGateSpecApplyConfiguration) WithCustomNoUpgrade(value *CustomFeatureGatesApplyConfiguration) *FeatureGateSpecApplyConfiguration {
- b.CustomNoUpgrade = value
+ b.FeatureGateSelectionApplyConfiguration.CustomNoUpgrade = value
return b
}
diff --git a/config/applyconfigurations/config/v1/featuregatestatus.go b/config/applyconfigurations/config/v1/featuregatestatus.go
index 2cc69267e..705c3d0cf 100644
--- a/config/applyconfigurations/config/v1/featuregatestatus.go
+++ b/config/applyconfigurations/config/v1/featuregatestatus.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// FeatureGateStatusApplyConfiguration represents a declarative configuration of the FeatureGateStatus type for use
// with apply.
type FeatureGateStatusApplyConfiguration struct {
- Conditions []v1.ConditionApplyConfiguration `json:"conditions,omitempty"`
+ Conditions []metav1.ConditionApplyConfiguration `json:"conditions,omitempty"`
FeatureGates []FeatureGateDetailsApplyConfiguration `json:"featureGates,omitempty"`
}
@@ -22,7 +22,7 @@ func FeatureGateStatus() *FeatureGateStatusApplyConfiguration {
// WithConditions adds the given value to the Conditions field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Conditions field.
-func (b *FeatureGateStatusApplyConfiguration) WithConditions(values ...*v1.ConditionApplyConfiguration) *FeatureGateStatusApplyConfiguration {
+func (b *FeatureGateStatusApplyConfiguration) WithConditions(values ...*metav1.ConditionApplyConfiguration) *FeatureGateStatusApplyConfiguration {
for i := range values {
if values[i] == nil {
panic("nil value passed to WithConditions")
diff --git a/config/applyconfigurations/config/v1/hubsourcestatus.go b/config/applyconfigurations/config/v1/hubsourcestatus.go
index 4a8f0c437..1688b1ce4 100644
--- a/config/applyconfigurations/config/v1/hubsourcestatus.go
+++ b/config/applyconfigurations/config/v1/hubsourcestatus.go
@@ -21,7 +21,7 @@ func HubSourceStatus() *HubSourceStatusApplyConfiguration {
// If called multiple times, the Name field is set to the value of the last call.
func (b *HubSourceStatusApplyConfiguration) WithName(value string) *HubSourceStatusApplyConfiguration {
b.ensureHubSourceApplyConfigurationExists()
- b.Name = &value
+ b.HubSourceApplyConfiguration.Name = &value
return b
}
@@ -30,7 +30,7 @@ func (b *HubSourceStatusApplyConfiguration) WithName(value string) *HubSourceSta
// If called multiple times, the Disabled field is set to the value of the last call.
func (b *HubSourceStatusApplyConfiguration) WithDisabled(value bool) *HubSourceStatusApplyConfiguration {
b.ensureHubSourceApplyConfigurationExists()
- b.Disabled = &value
+ b.HubSourceApplyConfiguration.Disabled = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/ibmcloudplatformstatus.go b/config/applyconfigurations/config/v1/ibmcloudplatformstatus.go
index b4b3be2ff..48c17c9cb 100644
--- a/config/applyconfigurations/config/v1/ibmcloudplatformstatus.go
+++ b/config/applyconfigurations/config/v1/ibmcloudplatformstatus.go
@@ -3,7 +3,7 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// IBMCloudPlatformStatusApplyConfiguration represents a declarative configuration of the IBMCloudPlatformStatus type for use
@@ -11,7 +11,7 @@ import (
type IBMCloudPlatformStatusApplyConfiguration struct {
Location *string `json:"location,omitempty"`
ResourceGroupName *string `json:"resourceGroupName,omitempty"`
- ProviderType *v1.IBMCloudProviderType `json:"providerType,omitempty"`
+ ProviderType *configv1.IBMCloudProviderType `json:"providerType,omitempty"`
CISInstanceCRN *string `json:"cisInstanceCRN,omitempty"`
DNSInstanceCRN *string `json:"dnsInstanceCRN,omitempty"`
ServiceEndpoints []IBMCloudServiceEndpointApplyConfiguration `json:"serviceEndpoints,omitempty"`
@@ -42,7 +42,7 @@ func (b *IBMCloudPlatformStatusApplyConfiguration) WithResourceGroupName(value s
// WithProviderType sets the ProviderType field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ProviderType field is set to the value of the last call.
-func (b *IBMCloudPlatformStatusApplyConfiguration) WithProviderType(value v1.IBMCloudProviderType) *IBMCloudPlatformStatusApplyConfiguration {
+func (b *IBMCloudPlatformStatusApplyConfiguration) WithProviderType(value configv1.IBMCloudProviderType) *IBMCloudPlatformStatusApplyConfiguration {
b.ProviderType = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/ibmcloudserviceendpoint.go b/config/applyconfigurations/config/v1/ibmcloudserviceendpoint.go
index 229104061..daec88ba5 100644
--- a/config/applyconfigurations/config/v1/ibmcloudserviceendpoint.go
+++ b/config/applyconfigurations/config/v1/ibmcloudserviceendpoint.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// IBMCloudServiceEndpointApplyConfiguration represents a declarative configuration of the IBMCloudServiceEndpoint type for use
// with apply.
type IBMCloudServiceEndpointApplyConfiguration struct {
- Name *v1.IBMCloudServiceName `json:"name,omitempty"`
- URL *string `json:"url,omitempty"`
+ Name *configv1.IBMCloudServiceName `json:"name,omitempty"`
+ URL *string `json:"url,omitempty"`
}
// IBMCloudServiceEndpointApplyConfiguration constructs a declarative configuration of the IBMCloudServiceEndpoint type for use with
@@ -22,7 +22,7 @@ func IBMCloudServiceEndpoint() *IBMCloudServiceEndpointApplyConfiguration {
// WithName sets the Name field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Name field is set to the value of the last call.
-func (b *IBMCloudServiceEndpointApplyConfiguration) WithName(value v1.IBMCloudServiceName) *IBMCloudServiceEndpointApplyConfiguration {
+func (b *IBMCloudServiceEndpointApplyConfiguration) WithName(value configv1.IBMCloudServiceName) *IBMCloudServiceEndpointApplyConfiguration {
b.Name = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/identityprovider.go b/config/applyconfigurations/config/v1/identityprovider.go
index 35edd9dff..4e726d085 100644
--- a/config/applyconfigurations/config/v1/identityprovider.go
+++ b/config/applyconfigurations/config/v1/identityprovider.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// IdentityProviderApplyConfiguration represents a declarative configuration of the IdentityProvider type for use
// with apply.
type IdentityProviderApplyConfiguration struct {
- Name *string `json:"name,omitempty"`
- MappingMethod *v1.MappingMethodType `json:"mappingMethod,omitempty"`
+ Name *string `json:"name,omitempty"`
+ MappingMethod *configv1.MappingMethodType `json:"mappingMethod,omitempty"`
IdentityProviderConfigApplyConfiguration `json:",inline"`
}
@@ -31,7 +31,7 @@ func (b *IdentityProviderApplyConfiguration) WithName(value string) *IdentityPro
// WithMappingMethod sets the MappingMethod field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the MappingMethod field is set to the value of the last call.
-func (b *IdentityProviderApplyConfiguration) WithMappingMethod(value v1.MappingMethodType) *IdentityProviderApplyConfiguration {
+func (b *IdentityProviderApplyConfiguration) WithMappingMethod(value configv1.MappingMethodType) *IdentityProviderApplyConfiguration {
b.MappingMethod = &value
return b
}
@@ -39,8 +39,8 @@ func (b *IdentityProviderApplyConfiguration) WithMappingMethod(value v1.MappingM
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *IdentityProviderApplyConfiguration) WithType(value v1.IdentityProviderType) *IdentityProviderApplyConfiguration {
- b.Type = &value
+func (b *IdentityProviderApplyConfiguration) WithType(value configv1.IdentityProviderType) *IdentityProviderApplyConfiguration {
+ b.IdentityProviderConfigApplyConfiguration.Type = &value
return b
}
@@ -48,7 +48,7 @@ func (b *IdentityProviderApplyConfiguration) WithType(value v1.IdentityProviderT
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the BasicAuth field is set to the value of the last call.
func (b *IdentityProviderApplyConfiguration) WithBasicAuth(value *BasicAuthIdentityProviderApplyConfiguration) *IdentityProviderApplyConfiguration {
- b.BasicAuth = value
+ b.IdentityProviderConfigApplyConfiguration.BasicAuth = value
return b
}
@@ -56,7 +56,7 @@ func (b *IdentityProviderApplyConfiguration) WithBasicAuth(value *BasicAuthIdent
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the GitHub field is set to the value of the last call.
func (b *IdentityProviderApplyConfiguration) WithGitHub(value *GitHubIdentityProviderApplyConfiguration) *IdentityProviderApplyConfiguration {
- b.GitHub = value
+ b.IdentityProviderConfigApplyConfiguration.GitHub = value
return b
}
@@ -64,7 +64,7 @@ func (b *IdentityProviderApplyConfiguration) WithGitHub(value *GitHubIdentityPro
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the GitLab field is set to the value of the last call.
func (b *IdentityProviderApplyConfiguration) WithGitLab(value *GitLabIdentityProviderApplyConfiguration) *IdentityProviderApplyConfiguration {
- b.GitLab = value
+ b.IdentityProviderConfigApplyConfiguration.GitLab = value
return b
}
@@ -72,7 +72,7 @@ func (b *IdentityProviderApplyConfiguration) WithGitLab(value *GitLabIdentityPro
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Google field is set to the value of the last call.
func (b *IdentityProviderApplyConfiguration) WithGoogle(value *GoogleIdentityProviderApplyConfiguration) *IdentityProviderApplyConfiguration {
- b.Google = value
+ b.IdentityProviderConfigApplyConfiguration.Google = value
return b
}
@@ -80,7 +80,7 @@ func (b *IdentityProviderApplyConfiguration) WithGoogle(value *GoogleIdentityPro
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the HTPasswd field is set to the value of the last call.
func (b *IdentityProviderApplyConfiguration) WithHTPasswd(value *HTPasswdIdentityProviderApplyConfiguration) *IdentityProviderApplyConfiguration {
- b.HTPasswd = value
+ b.IdentityProviderConfigApplyConfiguration.HTPasswd = value
return b
}
@@ -88,7 +88,7 @@ func (b *IdentityProviderApplyConfiguration) WithHTPasswd(value *HTPasswdIdentit
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Keystone field is set to the value of the last call.
func (b *IdentityProviderApplyConfiguration) WithKeystone(value *KeystoneIdentityProviderApplyConfiguration) *IdentityProviderApplyConfiguration {
- b.Keystone = value
+ b.IdentityProviderConfigApplyConfiguration.Keystone = value
return b
}
@@ -96,7 +96,7 @@ func (b *IdentityProviderApplyConfiguration) WithKeystone(value *KeystoneIdentit
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LDAP field is set to the value of the last call.
func (b *IdentityProviderApplyConfiguration) WithLDAP(value *LDAPIdentityProviderApplyConfiguration) *IdentityProviderApplyConfiguration {
- b.LDAP = value
+ b.IdentityProviderConfigApplyConfiguration.LDAP = value
return b
}
@@ -104,7 +104,7 @@ func (b *IdentityProviderApplyConfiguration) WithLDAP(value *LDAPIdentityProvide
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the OpenID field is set to the value of the last call.
func (b *IdentityProviderApplyConfiguration) WithOpenID(value *OpenIDIdentityProviderApplyConfiguration) *IdentityProviderApplyConfiguration {
- b.OpenID = value
+ b.IdentityProviderConfigApplyConfiguration.OpenID = value
return b
}
@@ -112,6 +112,6 @@ func (b *IdentityProviderApplyConfiguration) WithOpenID(value *OpenIDIdentityPro
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the RequestHeader field is set to the value of the last call.
func (b *IdentityProviderApplyConfiguration) WithRequestHeader(value *RequestHeaderIdentityProviderApplyConfiguration) *IdentityProviderApplyConfiguration {
- b.RequestHeader = value
+ b.IdentityProviderConfigApplyConfiguration.RequestHeader = value
return b
}
diff --git a/config/applyconfigurations/config/v1/identityproviderconfig.go b/config/applyconfigurations/config/v1/identityproviderconfig.go
index 208d23d56..1ff6d99a7 100644
--- a/config/applyconfigurations/config/v1/identityproviderconfig.go
+++ b/config/applyconfigurations/config/v1/identityproviderconfig.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// IdentityProviderConfigApplyConfiguration represents a declarative configuration of the IdentityProviderConfig type for use
// with apply.
type IdentityProviderConfigApplyConfiguration struct {
- Type *v1.IdentityProviderType `json:"type,omitempty"`
+ Type *configv1.IdentityProviderType `json:"type,omitempty"`
BasicAuth *BasicAuthIdentityProviderApplyConfiguration `json:"basicAuth,omitempty"`
GitHub *GitHubIdentityProviderApplyConfiguration `json:"github,omitempty"`
GitLab *GitLabIdentityProviderApplyConfiguration `json:"gitlab,omitempty"`
@@ -30,7 +30,7 @@ func IdentityProviderConfig() *IdentityProviderConfigApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *IdentityProviderConfigApplyConfiguration) WithType(value v1.IdentityProviderType) *IdentityProviderConfigApplyConfiguration {
+func (b *IdentityProviderConfigApplyConfiguration) WithType(value configv1.IdentityProviderType) *IdentityProviderConfigApplyConfiguration {
b.Type = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/image.go b/config/applyconfigurations/config/v1/image.go
index 34f73ad72..63009029e 100644
--- a/config/applyconfigurations/config/v1/image.go
+++ b/config/applyconfigurations/config/v1/image.go
@@ -3,21 +3,21 @@
package v1
import (
- apiconfigv1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
internal "github.com/openshift/client-go/config/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ImageApplyConfiguration represents a declarative configuration of the Image type for use
// with apply.
type ImageApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *ImageSpecApplyConfiguration `json:"spec,omitempty"`
- Status *ImageStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *ImageSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *ImageStatusApplyConfiguration `json:"status,omitempty"`
}
// Image constructs a declarative configuration of the Image type for use with
@@ -41,18 +41,18 @@ func Image(name string) *ImageApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractImage(image *apiconfigv1.Image, fieldManager string) (*ImageApplyConfiguration, error) {
+func ExtractImage(image *configv1.Image, fieldManager string) (*ImageApplyConfiguration, error) {
return extractImage(image, fieldManager, "")
}
// ExtractImageStatus is the same as ExtractImage except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractImageStatus(image *apiconfigv1.Image, fieldManager string) (*ImageApplyConfiguration, error) {
+func ExtractImageStatus(image *configv1.Image, fieldManager string) (*ImageApplyConfiguration, error) {
return extractImage(image, fieldManager, "status")
}
-func extractImage(image *apiconfigv1.Image, fieldManager string, subresource string) (*ImageApplyConfiguration, error) {
+func extractImage(image *configv1.Image, fieldManager string, subresource string) (*ImageApplyConfiguration, error) {
b := &ImageApplyConfiguration{}
err := managedfields.ExtractInto(image, internal.Parser().Type("com.github.openshift.api.config.v1.Image"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractImage(image *apiconfigv1.Image, fieldManager string, subresource str
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ImageApplyConfiguration) WithKind(value string) *ImageApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *ImageApplyConfiguration) WithKind(value string) *ImageApplyConfiguratio
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ImageApplyConfiguration) WithAPIVersion(value string) *ImageApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *ImageApplyConfiguration) WithAPIVersion(value string) *ImageApplyConfig
// If called multiple times, the Name field is set to the value of the last call.
func (b *ImageApplyConfiguration) WithName(value string) *ImageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *ImageApplyConfiguration) WithName(value string) *ImageApplyConfiguratio
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ImageApplyConfiguration) WithGenerateName(value string) *ImageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *ImageApplyConfiguration) WithGenerateName(value string) *ImageApplyConf
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ImageApplyConfiguration) WithNamespace(value string) *ImageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *ImageApplyConfiguration) WithNamespace(value string) *ImageApplyConfigu
// If called multiple times, the UID field is set to the value of the last call.
func (b *ImageApplyConfiguration) WithUID(value types.UID) *ImageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *ImageApplyConfiguration) WithUID(value types.UID) *ImageApplyConfigurat
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ImageApplyConfiguration) WithResourceVersion(value string) *ImageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *ImageApplyConfiguration) WithResourceVersion(value string) *ImageApplyC
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ImageApplyConfiguration) WithGeneration(value int64) *ImageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *ImageApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ImageApplyConfiguration {
+func (b *ImageApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ImageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *ImageApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ImageApplyConfiguration {
+func (b *ImageApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ImageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *ImageApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *Imag
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ImageApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ImageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *ImageApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *I
// overwriting an existing map entries in Labels field with the same key.
func (b *ImageApplyConfiguration) WithLabels(entries map[string]string) *ImageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *ImageApplyConfiguration) WithLabels(entries map[string]string) *ImageAp
// overwriting an existing map entries in Annotations field with the same key.
func (b *ImageApplyConfiguration) WithAnnotations(entries map[string]string) *ImageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *ImageApplyConfiguration) WithAnnotations(entries map[string]string) *Im
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *ImageApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ImageApplyConfiguration {
+func (b *ImageApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ImageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *ImageApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferen
func (b *ImageApplyConfiguration) WithFinalizers(values ...string) *ImageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *ImageApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *ImageApplyConfiguration) WithStatus(value *ImageStatusApplyConfiguratio
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ImageApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/config/applyconfigurations/config/v1/imagecontentpolicy.go b/config/applyconfigurations/config/v1/imagecontentpolicy.go
index 9566569f9..6d47fac03 100644
--- a/config/applyconfigurations/config/v1/imagecontentpolicy.go
+++ b/config/applyconfigurations/config/v1/imagecontentpolicy.go
@@ -3,20 +3,20 @@
package v1
import (
- apiconfigv1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
internal "github.com/openshift/client-go/config/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ImageContentPolicyApplyConfiguration represents a declarative configuration of the ImageContentPolicy type for use
// with apply.
type ImageContentPolicyApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *ImageContentPolicySpecApplyConfiguration `json:"spec,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *ImageContentPolicySpecApplyConfiguration `json:"spec,omitempty"`
}
// ImageContentPolicy constructs a declarative configuration of the ImageContentPolicy type for use with
@@ -40,18 +40,18 @@ func ImageContentPolicy(name string) *ImageContentPolicyApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractImageContentPolicy(imageContentPolicy *apiconfigv1.ImageContentPolicy, fieldManager string) (*ImageContentPolicyApplyConfiguration, error) {
+func ExtractImageContentPolicy(imageContentPolicy *configv1.ImageContentPolicy, fieldManager string) (*ImageContentPolicyApplyConfiguration, error) {
return extractImageContentPolicy(imageContentPolicy, fieldManager, "")
}
// ExtractImageContentPolicyStatus is the same as ExtractImageContentPolicy except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractImageContentPolicyStatus(imageContentPolicy *apiconfigv1.ImageContentPolicy, fieldManager string) (*ImageContentPolicyApplyConfiguration, error) {
+func ExtractImageContentPolicyStatus(imageContentPolicy *configv1.ImageContentPolicy, fieldManager string) (*ImageContentPolicyApplyConfiguration, error) {
return extractImageContentPolicy(imageContentPolicy, fieldManager, "status")
}
-func extractImageContentPolicy(imageContentPolicy *apiconfigv1.ImageContentPolicy, fieldManager string, subresource string) (*ImageContentPolicyApplyConfiguration, error) {
+func extractImageContentPolicy(imageContentPolicy *configv1.ImageContentPolicy, fieldManager string, subresource string) (*ImageContentPolicyApplyConfiguration, error) {
b := &ImageContentPolicyApplyConfiguration{}
err := managedfields.ExtractInto(imageContentPolicy, internal.Parser().Type("com.github.openshift.api.config.v1.ImageContentPolicy"), fieldManager, b, subresource)
if err != nil {
@@ -68,7 +68,7 @@ func extractImageContentPolicy(imageContentPolicy *apiconfigv1.ImageContentPolic
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ImageContentPolicyApplyConfiguration) WithKind(value string) *ImageContentPolicyApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -76,7 +76,7 @@ func (b *ImageContentPolicyApplyConfiguration) WithKind(value string) *ImageCont
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ImageContentPolicyApplyConfiguration) WithAPIVersion(value string) *ImageContentPolicyApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -85,7 +85,7 @@ func (b *ImageContentPolicyApplyConfiguration) WithAPIVersion(value string) *Ima
// If called multiple times, the Name field is set to the value of the last call.
func (b *ImageContentPolicyApplyConfiguration) WithName(value string) *ImageContentPolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -94,7 +94,7 @@ func (b *ImageContentPolicyApplyConfiguration) WithName(value string) *ImageCont
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ImageContentPolicyApplyConfiguration) WithGenerateName(value string) *ImageContentPolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -103,7 +103,7 @@ func (b *ImageContentPolicyApplyConfiguration) WithGenerateName(value string) *I
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ImageContentPolicyApplyConfiguration) WithNamespace(value string) *ImageContentPolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -112,7 +112,7 @@ func (b *ImageContentPolicyApplyConfiguration) WithNamespace(value string) *Imag
// If called multiple times, the UID field is set to the value of the last call.
func (b *ImageContentPolicyApplyConfiguration) WithUID(value types.UID) *ImageContentPolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -121,7 +121,7 @@ func (b *ImageContentPolicyApplyConfiguration) WithUID(value types.UID) *ImageCo
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ImageContentPolicyApplyConfiguration) WithResourceVersion(value string) *ImageContentPolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -130,25 +130,25 @@ func (b *ImageContentPolicyApplyConfiguration) WithResourceVersion(value string)
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ImageContentPolicyApplyConfiguration) WithGeneration(value int64) *ImageContentPolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *ImageContentPolicyApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ImageContentPolicyApplyConfiguration {
+func (b *ImageContentPolicyApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ImageContentPolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *ImageContentPolicyApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ImageContentPolicyApplyConfiguration {
+func (b *ImageContentPolicyApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ImageContentPolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -157,7 +157,7 @@ func (b *ImageContentPolicyApplyConfiguration) WithDeletionTimestamp(value metav
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ImageContentPolicyApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ImageContentPolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -167,11 +167,11 @@ func (b *ImageContentPolicyApplyConfiguration) WithDeletionGracePeriodSeconds(va
// overwriting an existing map entries in Labels field with the same key.
func (b *ImageContentPolicyApplyConfiguration) WithLabels(entries map[string]string) *ImageContentPolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -182,11 +182,11 @@ func (b *ImageContentPolicyApplyConfiguration) WithLabels(entries map[string]str
// overwriting an existing map entries in Annotations field with the same key.
func (b *ImageContentPolicyApplyConfiguration) WithAnnotations(entries map[string]string) *ImageContentPolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -194,13 +194,13 @@ func (b *ImageContentPolicyApplyConfiguration) WithAnnotations(entries map[strin
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *ImageContentPolicyApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ImageContentPolicyApplyConfiguration {
+func (b *ImageContentPolicyApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ImageContentPolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -211,14 +211,14 @@ func (b *ImageContentPolicyApplyConfiguration) WithOwnerReferences(values ...*v1
func (b *ImageContentPolicyApplyConfiguration) WithFinalizers(values ...string) *ImageContentPolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *ImageContentPolicyApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -233,5 +233,5 @@ func (b *ImageContentPolicyApplyConfiguration) WithSpec(value *ImageContentPolic
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ImageContentPolicyApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/config/applyconfigurations/config/v1/imagedigestmirrors.go b/config/applyconfigurations/config/v1/imagedigestmirrors.go
index dc9889674..d6c57cb7f 100644
--- a/config/applyconfigurations/config/v1/imagedigestmirrors.go
+++ b/config/applyconfigurations/config/v1/imagedigestmirrors.go
@@ -3,15 +3,15 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// ImageDigestMirrorsApplyConfiguration represents a declarative configuration of the ImageDigestMirrors type for use
// with apply.
type ImageDigestMirrorsApplyConfiguration struct {
- Source *string `json:"source,omitempty"`
- Mirrors []v1.ImageMirror `json:"mirrors,omitempty"`
- MirrorSourcePolicy *v1.MirrorSourcePolicy `json:"mirrorSourcePolicy,omitempty"`
+ Source *string `json:"source,omitempty"`
+ Mirrors []configv1.ImageMirror `json:"mirrors,omitempty"`
+ MirrorSourcePolicy *configv1.MirrorSourcePolicy `json:"mirrorSourcePolicy,omitempty"`
}
// ImageDigestMirrorsApplyConfiguration constructs a declarative configuration of the ImageDigestMirrors type for use with
@@ -31,7 +31,7 @@ func (b *ImageDigestMirrorsApplyConfiguration) WithSource(value string) *ImageDi
// WithMirrors adds the given value to the Mirrors field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Mirrors field.
-func (b *ImageDigestMirrorsApplyConfiguration) WithMirrors(values ...v1.ImageMirror) *ImageDigestMirrorsApplyConfiguration {
+func (b *ImageDigestMirrorsApplyConfiguration) WithMirrors(values ...configv1.ImageMirror) *ImageDigestMirrorsApplyConfiguration {
for i := range values {
b.Mirrors = append(b.Mirrors, values[i])
}
@@ -41,7 +41,7 @@ func (b *ImageDigestMirrorsApplyConfiguration) WithMirrors(values ...v1.ImageMir
// WithMirrorSourcePolicy sets the MirrorSourcePolicy field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the MirrorSourcePolicy field is set to the value of the last call.
-func (b *ImageDigestMirrorsApplyConfiguration) WithMirrorSourcePolicy(value v1.MirrorSourcePolicy) *ImageDigestMirrorsApplyConfiguration {
+func (b *ImageDigestMirrorsApplyConfiguration) WithMirrorSourcePolicy(value configv1.MirrorSourcePolicy) *ImageDigestMirrorsApplyConfiguration {
b.MirrorSourcePolicy = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/imagedigestmirrorset.go b/config/applyconfigurations/config/v1/imagedigestmirrorset.go
index 80140961b..f3c5ca21a 100644
--- a/config/applyconfigurations/config/v1/imagedigestmirrorset.go
+++ b/config/applyconfigurations/config/v1/imagedigestmirrorset.go
@@ -3,21 +3,21 @@
package v1
import (
- apiconfigv1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
internal "github.com/openshift/client-go/config/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ImageDigestMirrorSetApplyConfiguration represents a declarative configuration of the ImageDigestMirrorSet type for use
// with apply.
type ImageDigestMirrorSetApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *ImageDigestMirrorSetSpecApplyConfiguration `json:"spec,omitempty"`
- Status *apiconfigv1.ImageDigestMirrorSetStatus `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *ImageDigestMirrorSetSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *configv1.ImageDigestMirrorSetStatus `json:"status,omitempty"`
}
// ImageDigestMirrorSet constructs a declarative configuration of the ImageDigestMirrorSet type for use with
@@ -41,18 +41,18 @@ func ImageDigestMirrorSet(name string) *ImageDigestMirrorSetApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractImageDigestMirrorSet(imageDigestMirrorSet *apiconfigv1.ImageDigestMirrorSet, fieldManager string) (*ImageDigestMirrorSetApplyConfiguration, error) {
+func ExtractImageDigestMirrorSet(imageDigestMirrorSet *configv1.ImageDigestMirrorSet, fieldManager string) (*ImageDigestMirrorSetApplyConfiguration, error) {
return extractImageDigestMirrorSet(imageDigestMirrorSet, fieldManager, "")
}
// ExtractImageDigestMirrorSetStatus is the same as ExtractImageDigestMirrorSet except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractImageDigestMirrorSetStatus(imageDigestMirrorSet *apiconfigv1.ImageDigestMirrorSet, fieldManager string) (*ImageDigestMirrorSetApplyConfiguration, error) {
+func ExtractImageDigestMirrorSetStatus(imageDigestMirrorSet *configv1.ImageDigestMirrorSet, fieldManager string) (*ImageDigestMirrorSetApplyConfiguration, error) {
return extractImageDigestMirrorSet(imageDigestMirrorSet, fieldManager, "status")
}
-func extractImageDigestMirrorSet(imageDigestMirrorSet *apiconfigv1.ImageDigestMirrorSet, fieldManager string, subresource string) (*ImageDigestMirrorSetApplyConfiguration, error) {
+func extractImageDigestMirrorSet(imageDigestMirrorSet *configv1.ImageDigestMirrorSet, fieldManager string, subresource string) (*ImageDigestMirrorSetApplyConfiguration, error) {
b := &ImageDigestMirrorSetApplyConfiguration{}
err := managedfields.ExtractInto(imageDigestMirrorSet, internal.Parser().Type("com.github.openshift.api.config.v1.ImageDigestMirrorSet"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractImageDigestMirrorSet(imageDigestMirrorSet *apiconfigv1.ImageDigestMi
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ImageDigestMirrorSetApplyConfiguration) WithKind(value string) *ImageDigestMirrorSetApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *ImageDigestMirrorSetApplyConfiguration) WithKind(value string) *ImageDi
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ImageDigestMirrorSetApplyConfiguration) WithAPIVersion(value string) *ImageDigestMirrorSetApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *ImageDigestMirrorSetApplyConfiguration) WithAPIVersion(value string) *I
// If called multiple times, the Name field is set to the value of the last call.
func (b *ImageDigestMirrorSetApplyConfiguration) WithName(value string) *ImageDigestMirrorSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *ImageDigestMirrorSetApplyConfiguration) WithName(value string) *ImageDi
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ImageDigestMirrorSetApplyConfiguration) WithGenerateName(value string) *ImageDigestMirrorSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *ImageDigestMirrorSetApplyConfiguration) WithGenerateName(value string)
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ImageDigestMirrorSetApplyConfiguration) WithNamespace(value string) *ImageDigestMirrorSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *ImageDigestMirrorSetApplyConfiguration) WithNamespace(value string) *Im
// If called multiple times, the UID field is set to the value of the last call.
func (b *ImageDigestMirrorSetApplyConfiguration) WithUID(value types.UID) *ImageDigestMirrorSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *ImageDigestMirrorSetApplyConfiguration) WithUID(value types.UID) *Image
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ImageDigestMirrorSetApplyConfiguration) WithResourceVersion(value string) *ImageDigestMirrorSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *ImageDigestMirrorSetApplyConfiguration) WithResourceVersion(value strin
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ImageDigestMirrorSetApplyConfiguration) WithGeneration(value int64) *ImageDigestMirrorSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *ImageDigestMirrorSetApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ImageDigestMirrorSetApplyConfiguration {
+func (b *ImageDigestMirrorSetApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ImageDigestMirrorSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *ImageDigestMirrorSetApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ImageDigestMirrorSetApplyConfiguration {
+func (b *ImageDigestMirrorSetApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ImageDigestMirrorSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *ImageDigestMirrorSetApplyConfiguration) WithDeletionTimestamp(value met
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ImageDigestMirrorSetApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ImageDigestMirrorSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *ImageDigestMirrorSetApplyConfiguration) WithDeletionGracePeriodSeconds(
// overwriting an existing map entries in Labels field with the same key.
func (b *ImageDigestMirrorSetApplyConfiguration) WithLabels(entries map[string]string) *ImageDigestMirrorSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *ImageDigestMirrorSetApplyConfiguration) WithLabels(entries map[string]s
// overwriting an existing map entries in Annotations field with the same key.
func (b *ImageDigestMirrorSetApplyConfiguration) WithAnnotations(entries map[string]string) *ImageDigestMirrorSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *ImageDigestMirrorSetApplyConfiguration) WithAnnotations(entries map[str
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *ImageDigestMirrorSetApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ImageDigestMirrorSetApplyConfiguration {
+func (b *ImageDigestMirrorSetApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ImageDigestMirrorSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *ImageDigestMirrorSetApplyConfiguration) WithOwnerReferences(values ...*
func (b *ImageDigestMirrorSetApplyConfiguration) WithFinalizers(values ...string) *ImageDigestMirrorSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *ImageDigestMirrorSetApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -234,7 +234,7 @@ func (b *ImageDigestMirrorSetApplyConfiguration) WithSpec(value *ImageDigestMirr
// WithStatus sets the Status field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Status field is set to the value of the last call.
-func (b *ImageDigestMirrorSetApplyConfiguration) WithStatus(value apiconfigv1.ImageDigestMirrorSetStatus) *ImageDigestMirrorSetApplyConfiguration {
+func (b *ImageDigestMirrorSetApplyConfiguration) WithStatus(value configv1.ImageDigestMirrorSetStatus) *ImageDigestMirrorSetApplyConfiguration {
b.Status = &value
return b
}
@@ -242,5 +242,5 @@ func (b *ImageDigestMirrorSetApplyConfiguration) WithStatus(value apiconfigv1.Im
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ImageDigestMirrorSetApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/config/applyconfigurations/config/v1/imagestatus.go b/config/applyconfigurations/config/v1/imagestatus.go
index 601accbe6..cbf8a208a 100644
--- a/config/applyconfigurations/config/v1/imagestatus.go
+++ b/config/applyconfigurations/config/v1/imagestatus.go
@@ -3,15 +3,15 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// ImageStatusApplyConfiguration represents a declarative configuration of the ImageStatus type for use
// with apply.
type ImageStatusApplyConfiguration struct {
- InternalRegistryHostname *string `json:"internalRegistryHostname,omitempty"`
- ExternalRegistryHostnames []string `json:"externalRegistryHostnames,omitempty"`
- ImageStreamImportMode *v1.ImportModeType `json:"imageStreamImportMode,omitempty"`
+ InternalRegistryHostname *string `json:"internalRegistryHostname,omitempty"`
+ ExternalRegistryHostnames []string `json:"externalRegistryHostnames,omitempty"`
+ ImageStreamImportMode *configv1.ImportModeType `json:"imageStreamImportMode,omitempty"`
}
// ImageStatusApplyConfiguration constructs a declarative configuration of the ImageStatus type for use with
@@ -41,7 +41,7 @@ func (b *ImageStatusApplyConfiguration) WithExternalRegistryHostnames(values ...
// WithImageStreamImportMode sets the ImageStreamImportMode field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ImageStreamImportMode field is set to the value of the last call.
-func (b *ImageStatusApplyConfiguration) WithImageStreamImportMode(value v1.ImportModeType) *ImageStatusApplyConfiguration {
+func (b *ImageStatusApplyConfiguration) WithImageStreamImportMode(value configv1.ImportModeType) *ImageStatusApplyConfiguration {
b.ImageStreamImportMode = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/imagetagmirrors.go b/config/applyconfigurations/config/v1/imagetagmirrors.go
index bede604d8..e0baa99fc 100644
--- a/config/applyconfigurations/config/v1/imagetagmirrors.go
+++ b/config/applyconfigurations/config/v1/imagetagmirrors.go
@@ -3,15 +3,15 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// ImageTagMirrorsApplyConfiguration represents a declarative configuration of the ImageTagMirrors type for use
// with apply.
type ImageTagMirrorsApplyConfiguration struct {
- Source *string `json:"source,omitempty"`
- Mirrors []v1.ImageMirror `json:"mirrors,omitempty"`
- MirrorSourcePolicy *v1.MirrorSourcePolicy `json:"mirrorSourcePolicy,omitempty"`
+ Source *string `json:"source,omitempty"`
+ Mirrors []configv1.ImageMirror `json:"mirrors,omitempty"`
+ MirrorSourcePolicy *configv1.MirrorSourcePolicy `json:"mirrorSourcePolicy,omitempty"`
}
// ImageTagMirrorsApplyConfiguration constructs a declarative configuration of the ImageTagMirrors type for use with
@@ -31,7 +31,7 @@ func (b *ImageTagMirrorsApplyConfiguration) WithSource(value string) *ImageTagMi
// WithMirrors adds the given value to the Mirrors field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Mirrors field.
-func (b *ImageTagMirrorsApplyConfiguration) WithMirrors(values ...v1.ImageMirror) *ImageTagMirrorsApplyConfiguration {
+func (b *ImageTagMirrorsApplyConfiguration) WithMirrors(values ...configv1.ImageMirror) *ImageTagMirrorsApplyConfiguration {
for i := range values {
b.Mirrors = append(b.Mirrors, values[i])
}
@@ -41,7 +41,7 @@ func (b *ImageTagMirrorsApplyConfiguration) WithMirrors(values ...v1.ImageMirror
// WithMirrorSourcePolicy sets the MirrorSourcePolicy field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the MirrorSourcePolicy field is set to the value of the last call.
-func (b *ImageTagMirrorsApplyConfiguration) WithMirrorSourcePolicy(value v1.MirrorSourcePolicy) *ImageTagMirrorsApplyConfiguration {
+func (b *ImageTagMirrorsApplyConfiguration) WithMirrorSourcePolicy(value configv1.MirrorSourcePolicy) *ImageTagMirrorsApplyConfiguration {
b.MirrorSourcePolicy = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/imagetagmirrorset.go b/config/applyconfigurations/config/v1/imagetagmirrorset.go
index 37432fac0..b8a9de192 100644
--- a/config/applyconfigurations/config/v1/imagetagmirrorset.go
+++ b/config/applyconfigurations/config/v1/imagetagmirrorset.go
@@ -3,21 +3,21 @@
package v1
import (
- apiconfigv1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
internal "github.com/openshift/client-go/config/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ImageTagMirrorSetApplyConfiguration represents a declarative configuration of the ImageTagMirrorSet type for use
// with apply.
type ImageTagMirrorSetApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *ImageTagMirrorSetSpecApplyConfiguration `json:"spec,omitempty"`
- Status *apiconfigv1.ImageTagMirrorSetStatus `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *ImageTagMirrorSetSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *configv1.ImageTagMirrorSetStatus `json:"status,omitempty"`
}
// ImageTagMirrorSet constructs a declarative configuration of the ImageTagMirrorSet type for use with
@@ -41,18 +41,18 @@ func ImageTagMirrorSet(name string) *ImageTagMirrorSetApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractImageTagMirrorSet(imageTagMirrorSet *apiconfigv1.ImageTagMirrorSet, fieldManager string) (*ImageTagMirrorSetApplyConfiguration, error) {
+func ExtractImageTagMirrorSet(imageTagMirrorSet *configv1.ImageTagMirrorSet, fieldManager string) (*ImageTagMirrorSetApplyConfiguration, error) {
return extractImageTagMirrorSet(imageTagMirrorSet, fieldManager, "")
}
// ExtractImageTagMirrorSetStatus is the same as ExtractImageTagMirrorSet except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractImageTagMirrorSetStatus(imageTagMirrorSet *apiconfigv1.ImageTagMirrorSet, fieldManager string) (*ImageTagMirrorSetApplyConfiguration, error) {
+func ExtractImageTagMirrorSetStatus(imageTagMirrorSet *configv1.ImageTagMirrorSet, fieldManager string) (*ImageTagMirrorSetApplyConfiguration, error) {
return extractImageTagMirrorSet(imageTagMirrorSet, fieldManager, "status")
}
-func extractImageTagMirrorSet(imageTagMirrorSet *apiconfigv1.ImageTagMirrorSet, fieldManager string, subresource string) (*ImageTagMirrorSetApplyConfiguration, error) {
+func extractImageTagMirrorSet(imageTagMirrorSet *configv1.ImageTagMirrorSet, fieldManager string, subresource string) (*ImageTagMirrorSetApplyConfiguration, error) {
b := &ImageTagMirrorSetApplyConfiguration{}
err := managedfields.ExtractInto(imageTagMirrorSet, internal.Parser().Type("com.github.openshift.api.config.v1.ImageTagMirrorSet"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractImageTagMirrorSet(imageTagMirrorSet *apiconfigv1.ImageTagMirrorSet,
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ImageTagMirrorSetApplyConfiguration) WithKind(value string) *ImageTagMirrorSetApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *ImageTagMirrorSetApplyConfiguration) WithKind(value string) *ImageTagMi
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ImageTagMirrorSetApplyConfiguration) WithAPIVersion(value string) *ImageTagMirrorSetApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *ImageTagMirrorSetApplyConfiguration) WithAPIVersion(value string) *Imag
// If called multiple times, the Name field is set to the value of the last call.
func (b *ImageTagMirrorSetApplyConfiguration) WithName(value string) *ImageTagMirrorSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *ImageTagMirrorSetApplyConfiguration) WithName(value string) *ImageTagMi
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ImageTagMirrorSetApplyConfiguration) WithGenerateName(value string) *ImageTagMirrorSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *ImageTagMirrorSetApplyConfiguration) WithGenerateName(value string) *Im
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ImageTagMirrorSetApplyConfiguration) WithNamespace(value string) *ImageTagMirrorSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *ImageTagMirrorSetApplyConfiguration) WithNamespace(value string) *Image
// If called multiple times, the UID field is set to the value of the last call.
func (b *ImageTagMirrorSetApplyConfiguration) WithUID(value types.UID) *ImageTagMirrorSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *ImageTagMirrorSetApplyConfiguration) WithUID(value types.UID) *ImageTag
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ImageTagMirrorSetApplyConfiguration) WithResourceVersion(value string) *ImageTagMirrorSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *ImageTagMirrorSetApplyConfiguration) WithResourceVersion(value string)
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ImageTagMirrorSetApplyConfiguration) WithGeneration(value int64) *ImageTagMirrorSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *ImageTagMirrorSetApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ImageTagMirrorSetApplyConfiguration {
+func (b *ImageTagMirrorSetApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ImageTagMirrorSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *ImageTagMirrorSetApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ImageTagMirrorSetApplyConfiguration {
+func (b *ImageTagMirrorSetApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ImageTagMirrorSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *ImageTagMirrorSetApplyConfiguration) WithDeletionTimestamp(value metav1
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ImageTagMirrorSetApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ImageTagMirrorSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *ImageTagMirrorSetApplyConfiguration) WithDeletionGracePeriodSeconds(val
// overwriting an existing map entries in Labels field with the same key.
func (b *ImageTagMirrorSetApplyConfiguration) WithLabels(entries map[string]string) *ImageTagMirrorSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *ImageTagMirrorSetApplyConfiguration) WithLabels(entries map[string]stri
// overwriting an existing map entries in Annotations field with the same key.
func (b *ImageTagMirrorSetApplyConfiguration) WithAnnotations(entries map[string]string) *ImageTagMirrorSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *ImageTagMirrorSetApplyConfiguration) WithAnnotations(entries map[string
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *ImageTagMirrorSetApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ImageTagMirrorSetApplyConfiguration {
+func (b *ImageTagMirrorSetApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ImageTagMirrorSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *ImageTagMirrorSetApplyConfiguration) WithOwnerReferences(values ...*v1.
func (b *ImageTagMirrorSetApplyConfiguration) WithFinalizers(values ...string) *ImageTagMirrorSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *ImageTagMirrorSetApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -234,7 +234,7 @@ func (b *ImageTagMirrorSetApplyConfiguration) WithSpec(value *ImageTagMirrorSetS
// WithStatus sets the Status field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Status field is set to the value of the last call.
-func (b *ImageTagMirrorSetApplyConfiguration) WithStatus(value apiconfigv1.ImageTagMirrorSetStatus) *ImageTagMirrorSetApplyConfiguration {
+func (b *ImageTagMirrorSetApplyConfiguration) WithStatus(value configv1.ImageTagMirrorSetStatus) *ImageTagMirrorSetApplyConfiguration {
b.Status = &value
return b
}
@@ -242,5 +242,5 @@ func (b *ImageTagMirrorSetApplyConfiguration) WithStatus(value apiconfigv1.Image
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ImageTagMirrorSetApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/config/applyconfigurations/config/v1/infrastructure.go b/config/applyconfigurations/config/v1/infrastructure.go
index 5d9551be6..970391cfa 100644
--- a/config/applyconfigurations/config/v1/infrastructure.go
+++ b/config/applyconfigurations/config/v1/infrastructure.go
@@ -3,21 +3,21 @@
package v1
import (
- apiconfigv1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
internal "github.com/openshift/client-go/config/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// InfrastructureApplyConfiguration represents a declarative configuration of the Infrastructure type for use
// with apply.
type InfrastructureApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *InfrastructureSpecApplyConfiguration `json:"spec,omitempty"`
- Status *InfrastructureStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *InfrastructureSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *InfrastructureStatusApplyConfiguration `json:"status,omitempty"`
}
// Infrastructure constructs a declarative configuration of the Infrastructure type for use with
@@ -41,18 +41,18 @@ func Infrastructure(name string) *InfrastructureApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractInfrastructure(infrastructure *apiconfigv1.Infrastructure, fieldManager string) (*InfrastructureApplyConfiguration, error) {
+func ExtractInfrastructure(infrastructure *configv1.Infrastructure, fieldManager string) (*InfrastructureApplyConfiguration, error) {
return extractInfrastructure(infrastructure, fieldManager, "")
}
// ExtractInfrastructureStatus is the same as ExtractInfrastructure except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractInfrastructureStatus(infrastructure *apiconfigv1.Infrastructure, fieldManager string) (*InfrastructureApplyConfiguration, error) {
+func ExtractInfrastructureStatus(infrastructure *configv1.Infrastructure, fieldManager string) (*InfrastructureApplyConfiguration, error) {
return extractInfrastructure(infrastructure, fieldManager, "status")
}
-func extractInfrastructure(infrastructure *apiconfigv1.Infrastructure, fieldManager string, subresource string) (*InfrastructureApplyConfiguration, error) {
+func extractInfrastructure(infrastructure *configv1.Infrastructure, fieldManager string, subresource string) (*InfrastructureApplyConfiguration, error) {
b := &InfrastructureApplyConfiguration{}
err := managedfields.ExtractInto(infrastructure, internal.Parser().Type("com.github.openshift.api.config.v1.Infrastructure"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractInfrastructure(infrastructure *apiconfigv1.Infrastructure, fieldMana
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *InfrastructureApplyConfiguration) WithKind(value string) *InfrastructureApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *InfrastructureApplyConfiguration) WithKind(value string) *Infrastructur
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *InfrastructureApplyConfiguration) WithAPIVersion(value string) *InfrastructureApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *InfrastructureApplyConfiguration) WithAPIVersion(value string) *Infrast
// If called multiple times, the Name field is set to the value of the last call.
func (b *InfrastructureApplyConfiguration) WithName(value string) *InfrastructureApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *InfrastructureApplyConfiguration) WithName(value string) *Infrastructur
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *InfrastructureApplyConfiguration) WithGenerateName(value string) *InfrastructureApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *InfrastructureApplyConfiguration) WithGenerateName(value string) *Infra
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *InfrastructureApplyConfiguration) WithNamespace(value string) *InfrastructureApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *InfrastructureApplyConfiguration) WithNamespace(value string) *Infrastr
// If called multiple times, the UID field is set to the value of the last call.
func (b *InfrastructureApplyConfiguration) WithUID(value types.UID) *InfrastructureApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *InfrastructureApplyConfiguration) WithUID(value types.UID) *Infrastruct
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *InfrastructureApplyConfiguration) WithResourceVersion(value string) *InfrastructureApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *InfrastructureApplyConfiguration) WithResourceVersion(value string) *In
// If called multiple times, the Generation field is set to the value of the last call.
func (b *InfrastructureApplyConfiguration) WithGeneration(value int64) *InfrastructureApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *InfrastructureApplyConfiguration) WithCreationTimestamp(value metav1.Time) *InfrastructureApplyConfiguration {
+func (b *InfrastructureApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *InfrastructureApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *InfrastructureApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *InfrastructureApplyConfiguration {
+func (b *InfrastructureApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *InfrastructureApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *InfrastructureApplyConfiguration) WithDeletionTimestamp(value metav1.Ti
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *InfrastructureApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *InfrastructureApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *InfrastructureApplyConfiguration) WithDeletionGracePeriodSeconds(value
// overwriting an existing map entries in Labels field with the same key.
func (b *InfrastructureApplyConfiguration) WithLabels(entries map[string]string) *InfrastructureApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *InfrastructureApplyConfiguration) WithLabels(entries map[string]string)
// overwriting an existing map entries in Annotations field with the same key.
func (b *InfrastructureApplyConfiguration) WithAnnotations(entries map[string]string) *InfrastructureApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *InfrastructureApplyConfiguration) WithAnnotations(entries map[string]st
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *InfrastructureApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *InfrastructureApplyConfiguration {
+func (b *InfrastructureApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *InfrastructureApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *InfrastructureApplyConfiguration) WithOwnerReferences(values ...*v1.Own
func (b *InfrastructureApplyConfiguration) WithFinalizers(values ...string) *InfrastructureApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *InfrastructureApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *InfrastructureApplyConfiguration) WithStatus(value *InfrastructureStatu
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *InfrastructureApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/config/applyconfigurations/config/v1/infrastructurestatus.go b/config/applyconfigurations/config/v1/infrastructurestatus.go
index 89f5496df..5b5d8288c 100644
--- a/config/applyconfigurations/config/v1/infrastructurestatus.go
+++ b/config/applyconfigurations/config/v1/infrastructurestatus.go
@@ -3,21 +3,21 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// InfrastructureStatusApplyConfiguration represents a declarative configuration of the InfrastructureStatus type for use
// with apply.
type InfrastructureStatusApplyConfiguration struct {
InfrastructureName *string `json:"infrastructureName,omitempty"`
- Platform *v1.PlatformType `json:"platform,omitempty"`
+ Platform *configv1.PlatformType `json:"platform,omitempty"`
PlatformStatus *PlatformStatusApplyConfiguration `json:"platformStatus,omitempty"`
EtcdDiscoveryDomain *string `json:"etcdDiscoveryDomain,omitempty"`
APIServerURL *string `json:"apiServerURL,omitempty"`
APIServerInternalURL *string `json:"apiServerInternalURI,omitempty"`
- ControlPlaneTopology *v1.TopologyMode `json:"controlPlaneTopology,omitempty"`
- InfrastructureTopology *v1.TopologyMode `json:"infrastructureTopology,omitempty"`
- CPUPartitioning *v1.CPUPartitioningMode `json:"cpuPartitioning,omitempty"`
+ ControlPlaneTopology *configv1.TopologyMode `json:"controlPlaneTopology,omitempty"`
+ InfrastructureTopology *configv1.TopologyMode `json:"infrastructureTopology,omitempty"`
+ CPUPartitioning *configv1.CPUPartitioningMode `json:"cpuPartitioning,omitempty"`
}
// InfrastructureStatusApplyConfiguration constructs a declarative configuration of the InfrastructureStatus type for use with
@@ -37,7 +37,7 @@ func (b *InfrastructureStatusApplyConfiguration) WithInfrastructureName(value st
// WithPlatform sets the Platform field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Platform field is set to the value of the last call.
-func (b *InfrastructureStatusApplyConfiguration) WithPlatform(value v1.PlatformType) *InfrastructureStatusApplyConfiguration {
+func (b *InfrastructureStatusApplyConfiguration) WithPlatform(value configv1.PlatformType) *InfrastructureStatusApplyConfiguration {
b.Platform = &value
return b
}
@@ -77,7 +77,7 @@ func (b *InfrastructureStatusApplyConfiguration) WithAPIServerInternalURL(value
// WithControlPlaneTopology sets the ControlPlaneTopology field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ControlPlaneTopology field is set to the value of the last call.
-func (b *InfrastructureStatusApplyConfiguration) WithControlPlaneTopology(value v1.TopologyMode) *InfrastructureStatusApplyConfiguration {
+func (b *InfrastructureStatusApplyConfiguration) WithControlPlaneTopology(value configv1.TopologyMode) *InfrastructureStatusApplyConfiguration {
b.ControlPlaneTopology = &value
return b
}
@@ -85,7 +85,7 @@ func (b *InfrastructureStatusApplyConfiguration) WithControlPlaneTopology(value
// WithInfrastructureTopology sets the InfrastructureTopology field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the InfrastructureTopology field is set to the value of the last call.
-func (b *InfrastructureStatusApplyConfiguration) WithInfrastructureTopology(value v1.TopologyMode) *InfrastructureStatusApplyConfiguration {
+func (b *InfrastructureStatusApplyConfiguration) WithInfrastructureTopology(value configv1.TopologyMode) *InfrastructureStatusApplyConfiguration {
b.InfrastructureTopology = &value
return b
}
@@ -93,7 +93,7 @@ func (b *InfrastructureStatusApplyConfiguration) WithInfrastructureTopology(valu
// WithCPUPartitioning sets the CPUPartitioning field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CPUPartitioning field is set to the value of the last call.
-func (b *InfrastructureStatusApplyConfiguration) WithCPUPartitioning(value v1.CPUPartitioningMode) *InfrastructureStatusApplyConfiguration {
+func (b *InfrastructureStatusApplyConfiguration) WithCPUPartitioning(value configv1.CPUPartitioningMode) *InfrastructureStatusApplyConfiguration {
b.CPUPartitioning = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/ingress.go b/config/applyconfigurations/config/v1/ingress.go
index b8780886d..945bacf8a 100644
--- a/config/applyconfigurations/config/v1/ingress.go
+++ b/config/applyconfigurations/config/v1/ingress.go
@@ -3,21 +3,21 @@
package v1
import (
- apiconfigv1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
internal "github.com/openshift/client-go/config/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// IngressApplyConfiguration represents a declarative configuration of the Ingress type for use
// with apply.
type IngressApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *IngressSpecApplyConfiguration `json:"spec,omitempty"`
- Status *IngressStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *IngressSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *IngressStatusApplyConfiguration `json:"status,omitempty"`
}
// Ingress constructs a declarative configuration of the Ingress type for use with
@@ -41,18 +41,18 @@ func Ingress(name string) *IngressApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractIngress(ingress *apiconfigv1.Ingress, fieldManager string) (*IngressApplyConfiguration, error) {
+func ExtractIngress(ingress *configv1.Ingress, fieldManager string) (*IngressApplyConfiguration, error) {
return extractIngress(ingress, fieldManager, "")
}
// ExtractIngressStatus is the same as ExtractIngress except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractIngressStatus(ingress *apiconfigv1.Ingress, fieldManager string) (*IngressApplyConfiguration, error) {
+func ExtractIngressStatus(ingress *configv1.Ingress, fieldManager string) (*IngressApplyConfiguration, error) {
return extractIngress(ingress, fieldManager, "status")
}
-func extractIngress(ingress *apiconfigv1.Ingress, fieldManager string, subresource string) (*IngressApplyConfiguration, error) {
+func extractIngress(ingress *configv1.Ingress, fieldManager string, subresource string) (*IngressApplyConfiguration, error) {
b := &IngressApplyConfiguration{}
err := managedfields.ExtractInto(ingress, internal.Parser().Type("com.github.openshift.api.config.v1.Ingress"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractIngress(ingress *apiconfigv1.Ingress, fieldManager string, subresour
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *IngressApplyConfiguration) WithKind(value string) *IngressApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *IngressApplyConfiguration) WithKind(value string) *IngressApplyConfigur
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *IngressApplyConfiguration) WithAPIVersion(value string) *IngressApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *IngressApplyConfiguration) WithAPIVersion(value string) *IngressApplyCo
// If called multiple times, the Name field is set to the value of the last call.
func (b *IngressApplyConfiguration) WithName(value string) *IngressApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *IngressApplyConfiguration) WithName(value string) *IngressApplyConfigur
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *IngressApplyConfiguration) WithGenerateName(value string) *IngressApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *IngressApplyConfiguration) WithGenerateName(value string) *IngressApply
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *IngressApplyConfiguration) WithNamespace(value string) *IngressApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *IngressApplyConfiguration) WithNamespace(value string) *IngressApplyCon
// If called multiple times, the UID field is set to the value of the last call.
func (b *IngressApplyConfiguration) WithUID(value types.UID) *IngressApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *IngressApplyConfiguration) WithUID(value types.UID) *IngressApplyConfig
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *IngressApplyConfiguration) WithResourceVersion(value string) *IngressApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *IngressApplyConfiguration) WithResourceVersion(value string) *IngressAp
// If called multiple times, the Generation field is set to the value of the last call.
func (b *IngressApplyConfiguration) WithGeneration(value int64) *IngressApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *IngressApplyConfiguration) WithCreationTimestamp(value metav1.Time) *IngressApplyConfiguration {
+func (b *IngressApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *IngressApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *IngressApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *IngressApplyConfiguration {
+func (b *IngressApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *IngressApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *IngressApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *In
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *IngressApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *IngressApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *IngressApplyConfiguration) WithDeletionGracePeriodSeconds(value int64)
// overwriting an existing map entries in Labels field with the same key.
func (b *IngressApplyConfiguration) WithLabels(entries map[string]string) *IngressApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *IngressApplyConfiguration) WithLabels(entries map[string]string) *Ingre
// overwriting an existing map entries in Annotations field with the same key.
func (b *IngressApplyConfiguration) WithAnnotations(entries map[string]string) *IngressApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *IngressApplyConfiguration) WithAnnotations(entries map[string]string) *
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *IngressApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *IngressApplyConfiguration {
+func (b *IngressApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *IngressApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *IngressApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefer
func (b *IngressApplyConfiguration) WithFinalizers(values ...string) *IngressApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *IngressApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *IngressApplyConfiguration) WithStatus(value *IngressStatusApplyConfigur
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *IngressApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/config/applyconfigurations/config/v1/ingressplatformspec.go b/config/applyconfigurations/config/v1/ingressplatformspec.go
index f3e25215b..ed5c26531 100644
--- a/config/applyconfigurations/config/v1/ingressplatformspec.go
+++ b/config/applyconfigurations/config/v1/ingressplatformspec.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// IngressPlatformSpecApplyConfiguration represents a declarative configuration of the IngressPlatformSpec type for use
// with apply.
type IngressPlatformSpecApplyConfiguration struct {
- Type *v1.PlatformType `json:"type,omitempty"`
+ Type *configv1.PlatformType `json:"type,omitempty"`
AWS *AWSIngressSpecApplyConfiguration `json:"aws,omitempty"`
}
@@ -22,7 +22,7 @@ func IngressPlatformSpec() *IngressPlatformSpecApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *IngressPlatformSpecApplyConfiguration) WithType(value v1.PlatformType) *IngressPlatformSpecApplyConfiguration {
+func (b *IngressPlatformSpecApplyConfiguration) WithType(value configv1.PlatformType) *IngressPlatformSpecApplyConfiguration {
b.Type = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/keystoneidentityprovider.go b/config/applyconfigurations/config/v1/keystoneidentityprovider.go
index 88204c69a..abbb9ef15 100644
--- a/config/applyconfigurations/config/v1/keystoneidentityprovider.go
+++ b/config/applyconfigurations/config/v1/keystoneidentityprovider.go
@@ -19,7 +19,7 @@ func KeystoneIdentityProvider() *KeystoneIdentityProviderApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the URL field is set to the value of the last call.
func (b *KeystoneIdentityProviderApplyConfiguration) WithURL(value string) *KeystoneIdentityProviderApplyConfiguration {
- b.URL = &value
+ b.OAuthRemoteConnectionInfoApplyConfiguration.URL = &value
return b
}
@@ -27,7 +27,7 @@ func (b *KeystoneIdentityProviderApplyConfiguration) WithURL(value string) *Keys
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CA field is set to the value of the last call.
func (b *KeystoneIdentityProviderApplyConfiguration) WithCA(value *ConfigMapNameReferenceApplyConfiguration) *KeystoneIdentityProviderApplyConfiguration {
- b.CA = value
+ b.OAuthRemoteConnectionInfoApplyConfiguration.CA = value
return b
}
@@ -35,7 +35,7 @@ func (b *KeystoneIdentityProviderApplyConfiguration) WithCA(value *ConfigMapName
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the TLSClientCert field is set to the value of the last call.
func (b *KeystoneIdentityProviderApplyConfiguration) WithTLSClientCert(value *SecretNameReferenceApplyConfiguration) *KeystoneIdentityProviderApplyConfiguration {
- b.TLSClientCert = value
+ b.OAuthRemoteConnectionInfoApplyConfiguration.TLSClientCert = value
return b
}
@@ -43,7 +43,7 @@ func (b *KeystoneIdentityProviderApplyConfiguration) WithTLSClientCert(value *Se
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the TLSClientKey field is set to the value of the last call.
func (b *KeystoneIdentityProviderApplyConfiguration) WithTLSClientKey(value *SecretNameReferenceApplyConfiguration) *KeystoneIdentityProviderApplyConfiguration {
- b.TLSClientKey = value
+ b.OAuthRemoteConnectionInfoApplyConfiguration.TLSClientKey = value
return b
}
diff --git a/config/applyconfigurations/config/v1/network.go b/config/applyconfigurations/config/v1/network.go
index a42f3a9ea..195594ead 100644
--- a/config/applyconfigurations/config/v1/network.go
+++ b/config/applyconfigurations/config/v1/network.go
@@ -3,21 +3,21 @@
package v1
import (
- apiconfigv1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
internal "github.com/openshift/client-go/config/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// NetworkApplyConfiguration represents a declarative configuration of the Network type for use
// with apply.
type NetworkApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *NetworkSpecApplyConfiguration `json:"spec,omitempty"`
- Status *NetworkStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *NetworkSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *NetworkStatusApplyConfiguration `json:"status,omitempty"`
}
// Network constructs a declarative configuration of the Network type for use with
@@ -41,18 +41,18 @@ func Network(name string) *NetworkApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractNetwork(network *apiconfigv1.Network, fieldManager string) (*NetworkApplyConfiguration, error) {
+func ExtractNetwork(network *configv1.Network, fieldManager string) (*NetworkApplyConfiguration, error) {
return extractNetwork(network, fieldManager, "")
}
// ExtractNetworkStatus is the same as ExtractNetwork except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractNetworkStatus(network *apiconfigv1.Network, fieldManager string) (*NetworkApplyConfiguration, error) {
+func ExtractNetworkStatus(network *configv1.Network, fieldManager string) (*NetworkApplyConfiguration, error) {
return extractNetwork(network, fieldManager, "status")
}
-func extractNetwork(network *apiconfigv1.Network, fieldManager string, subresource string) (*NetworkApplyConfiguration, error) {
+func extractNetwork(network *configv1.Network, fieldManager string, subresource string) (*NetworkApplyConfiguration, error) {
b := &NetworkApplyConfiguration{}
err := managedfields.ExtractInto(network, internal.Parser().Type("com.github.openshift.api.config.v1.Network"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractNetwork(network *apiconfigv1.Network, fieldManager string, subresour
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *NetworkApplyConfiguration) WithKind(value string) *NetworkApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *NetworkApplyConfiguration) WithKind(value string) *NetworkApplyConfigur
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *NetworkApplyConfiguration) WithAPIVersion(value string) *NetworkApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *NetworkApplyConfiguration) WithAPIVersion(value string) *NetworkApplyCo
// If called multiple times, the Name field is set to the value of the last call.
func (b *NetworkApplyConfiguration) WithName(value string) *NetworkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *NetworkApplyConfiguration) WithName(value string) *NetworkApplyConfigur
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *NetworkApplyConfiguration) WithGenerateName(value string) *NetworkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *NetworkApplyConfiguration) WithGenerateName(value string) *NetworkApply
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *NetworkApplyConfiguration) WithNamespace(value string) *NetworkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *NetworkApplyConfiguration) WithNamespace(value string) *NetworkApplyCon
// If called multiple times, the UID field is set to the value of the last call.
func (b *NetworkApplyConfiguration) WithUID(value types.UID) *NetworkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *NetworkApplyConfiguration) WithUID(value types.UID) *NetworkApplyConfig
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *NetworkApplyConfiguration) WithResourceVersion(value string) *NetworkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *NetworkApplyConfiguration) WithResourceVersion(value string) *NetworkAp
// If called multiple times, the Generation field is set to the value of the last call.
func (b *NetworkApplyConfiguration) WithGeneration(value int64) *NetworkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *NetworkApplyConfiguration) WithCreationTimestamp(value metav1.Time) *NetworkApplyConfiguration {
+func (b *NetworkApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *NetworkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *NetworkApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *NetworkApplyConfiguration {
+func (b *NetworkApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *NetworkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *NetworkApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *Ne
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *NetworkApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *NetworkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *NetworkApplyConfiguration) WithDeletionGracePeriodSeconds(value int64)
// overwriting an existing map entries in Labels field with the same key.
func (b *NetworkApplyConfiguration) WithLabels(entries map[string]string) *NetworkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *NetworkApplyConfiguration) WithLabels(entries map[string]string) *Netwo
// overwriting an existing map entries in Annotations field with the same key.
func (b *NetworkApplyConfiguration) WithAnnotations(entries map[string]string) *NetworkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *NetworkApplyConfiguration) WithAnnotations(entries map[string]string) *
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *NetworkApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *NetworkApplyConfiguration {
+func (b *NetworkApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *NetworkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *NetworkApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefer
func (b *NetworkApplyConfiguration) WithFinalizers(values ...string) *NetworkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *NetworkApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *NetworkApplyConfiguration) WithStatus(value *NetworkStatusApplyConfigur
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *NetworkApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/config/applyconfigurations/config/v1/networkdiagnostics.go b/config/applyconfigurations/config/v1/networkdiagnostics.go
index 6f75e0385..a2624dc5b 100644
--- a/config/applyconfigurations/config/v1/networkdiagnostics.go
+++ b/config/applyconfigurations/config/v1/networkdiagnostics.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// NetworkDiagnosticsApplyConfiguration represents a declarative configuration of the NetworkDiagnostics type for use
// with apply.
type NetworkDiagnosticsApplyConfiguration struct {
- Mode *v1.NetworkDiagnosticsMode `json:"mode,omitempty"`
+ Mode *configv1.NetworkDiagnosticsMode `json:"mode,omitempty"`
SourcePlacement *NetworkDiagnosticsSourcePlacementApplyConfiguration `json:"sourcePlacement,omitempty"`
TargetPlacement *NetworkDiagnosticsTargetPlacementApplyConfiguration `json:"targetPlacement,omitempty"`
}
@@ -23,7 +23,7 @@ func NetworkDiagnostics() *NetworkDiagnosticsApplyConfiguration {
// WithMode sets the Mode field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Mode field is set to the value of the last call.
-func (b *NetworkDiagnosticsApplyConfiguration) WithMode(value v1.NetworkDiagnosticsMode) *NetworkDiagnosticsApplyConfiguration {
+func (b *NetworkDiagnosticsApplyConfiguration) WithMode(value configv1.NetworkDiagnosticsMode) *NetworkDiagnosticsApplyConfiguration {
b.Mode = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/networkdiagnosticssourceplacement.go b/config/applyconfigurations/config/v1/networkdiagnosticssourceplacement.go
index 2b280a828..a1960ba9f 100644
--- a/config/applyconfigurations/config/v1/networkdiagnosticssourceplacement.go
+++ b/config/applyconfigurations/config/v1/networkdiagnosticssourceplacement.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "k8s.io/api/core/v1"
+ corev1 "k8s.io/api/core/v1"
)
// NetworkDiagnosticsSourcePlacementApplyConfiguration represents a declarative configuration of the NetworkDiagnosticsSourcePlacement type for use
// with apply.
type NetworkDiagnosticsSourcePlacementApplyConfiguration struct {
- NodeSelector map[string]string `json:"nodeSelector,omitempty"`
- Tolerations []v1.Toleration `json:"tolerations,omitempty"`
+ NodeSelector map[string]string `json:"nodeSelector,omitempty"`
+ Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
}
// NetworkDiagnosticsSourcePlacementApplyConfiguration constructs a declarative configuration of the NetworkDiagnosticsSourcePlacement type for use with
@@ -36,7 +36,7 @@ func (b *NetworkDiagnosticsSourcePlacementApplyConfiguration) WithNodeSelector(e
// WithTolerations adds the given value to the Tolerations field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Tolerations field.
-func (b *NetworkDiagnosticsSourcePlacementApplyConfiguration) WithTolerations(values ...v1.Toleration) *NetworkDiagnosticsSourcePlacementApplyConfiguration {
+func (b *NetworkDiagnosticsSourcePlacementApplyConfiguration) WithTolerations(values ...corev1.Toleration) *NetworkDiagnosticsSourcePlacementApplyConfiguration {
for i := range values {
b.Tolerations = append(b.Tolerations, values[i])
}
diff --git a/config/applyconfigurations/config/v1/networkdiagnosticstargetplacement.go b/config/applyconfigurations/config/v1/networkdiagnosticstargetplacement.go
index 6fee4c795..ba0dbab8a 100644
--- a/config/applyconfigurations/config/v1/networkdiagnosticstargetplacement.go
+++ b/config/applyconfigurations/config/v1/networkdiagnosticstargetplacement.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "k8s.io/api/core/v1"
+ corev1 "k8s.io/api/core/v1"
)
// NetworkDiagnosticsTargetPlacementApplyConfiguration represents a declarative configuration of the NetworkDiagnosticsTargetPlacement type for use
// with apply.
type NetworkDiagnosticsTargetPlacementApplyConfiguration struct {
- NodeSelector map[string]string `json:"nodeSelector,omitempty"`
- Tolerations []v1.Toleration `json:"tolerations,omitempty"`
+ NodeSelector map[string]string `json:"nodeSelector,omitempty"`
+ Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
}
// NetworkDiagnosticsTargetPlacementApplyConfiguration constructs a declarative configuration of the NetworkDiagnosticsTargetPlacement type for use with
@@ -36,7 +36,7 @@ func (b *NetworkDiagnosticsTargetPlacementApplyConfiguration) WithNodeSelector(e
// WithTolerations adds the given value to the Tolerations field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Tolerations field.
-func (b *NetworkDiagnosticsTargetPlacementApplyConfiguration) WithTolerations(values ...v1.Toleration) *NetworkDiagnosticsTargetPlacementApplyConfiguration {
+func (b *NetworkDiagnosticsTargetPlacementApplyConfiguration) WithTolerations(values ...corev1.Toleration) *NetworkDiagnosticsTargetPlacementApplyConfiguration {
for i := range values {
b.Tolerations = append(b.Tolerations, values[i])
}
diff --git a/config/applyconfigurations/config/v1/node.go b/config/applyconfigurations/config/v1/node.go
index ac4deeb66..611705623 100644
--- a/config/applyconfigurations/config/v1/node.go
+++ b/config/applyconfigurations/config/v1/node.go
@@ -3,21 +3,21 @@
package v1
import (
- apiconfigv1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
internal "github.com/openshift/client-go/config/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// NodeApplyConfiguration represents a declarative configuration of the Node type for use
// with apply.
type NodeApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *NodeSpecApplyConfiguration `json:"spec,omitempty"`
- Status *NodeStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *NodeSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *NodeStatusApplyConfiguration `json:"status,omitempty"`
}
// Node constructs a declarative configuration of the Node type for use with
@@ -41,18 +41,18 @@ func Node(name string) *NodeApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractNode(node *apiconfigv1.Node, fieldManager string) (*NodeApplyConfiguration, error) {
+func ExtractNode(node *configv1.Node, fieldManager string) (*NodeApplyConfiguration, error) {
return extractNode(node, fieldManager, "")
}
// ExtractNodeStatus is the same as ExtractNode except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractNodeStatus(node *apiconfigv1.Node, fieldManager string) (*NodeApplyConfiguration, error) {
+func ExtractNodeStatus(node *configv1.Node, fieldManager string) (*NodeApplyConfiguration, error) {
return extractNode(node, fieldManager, "status")
}
-func extractNode(node *apiconfigv1.Node, fieldManager string, subresource string) (*NodeApplyConfiguration, error) {
+func extractNode(node *configv1.Node, fieldManager string, subresource string) (*NodeApplyConfiguration, error) {
b := &NodeApplyConfiguration{}
err := managedfields.ExtractInto(node, internal.Parser().Type("com.github.openshift.api.config.v1.Node"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractNode(node *apiconfigv1.Node, fieldManager string, subresource string
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *NodeApplyConfiguration) WithKind(value string) *NodeApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *NodeApplyConfiguration) WithKind(value string) *NodeApplyConfiguration
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *NodeApplyConfiguration) WithAPIVersion(value string) *NodeApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *NodeApplyConfiguration) WithAPIVersion(value string) *NodeApplyConfigur
// If called multiple times, the Name field is set to the value of the last call.
func (b *NodeApplyConfiguration) WithName(value string) *NodeApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *NodeApplyConfiguration) WithName(value string) *NodeApplyConfiguration
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *NodeApplyConfiguration) WithGenerateName(value string) *NodeApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *NodeApplyConfiguration) WithGenerateName(value string) *NodeApplyConfig
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *NodeApplyConfiguration) WithNamespace(value string) *NodeApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *NodeApplyConfiguration) WithNamespace(value string) *NodeApplyConfigura
// If called multiple times, the UID field is set to the value of the last call.
func (b *NodeApplyConfiguration) WithUID(value types.UID) *NodeApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *NodeApplyConfiguration) WithUID(value types.UID) *NodeApplyConfiguratio
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *NodeApplyConfiguration) WithResourceVersion(value string) *NodeApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *NodeApplyConfiguration) WithResourceVersion(value string) *NodeApplyCon
// If called multiple times, the Generation field is set to the value of the last call.
func (b *NodeApplyConfiguration) WithGeneration(value int64) *NodeApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *NodeApplyConfiguration) WithCreationTimestamp(value metav1.Time) *NodeApplyConfiguration {
+func (b *NodeApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *NodeApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *NodeApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *NodeApplyConfiguration {
+func (b *NodeApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *NodeApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *NodeApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *NodeA
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *NodeApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *NodeApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *NodeApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *No
// overwriting an existing map entries in Labels field with the same key.
func (b *NodeApplyConfiguration) WithLabels(entries map[string]string) *NodeApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *NodeApplyConfiguration) WithLabels(entries map[string]string) *NodeAppl
// overwriting an existing map entries in Annotations field with the same key.
func (b *NodeApplyConfiguration) WithAnnotations(entries map[string]string) *NodeApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *NodeApplyConfiguration) WithAnnotations(entries map[string]string) *Nod
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *NodeApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *NodeApplyConfiguration {
+func (b *NodeApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *NodeApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *NodeApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenc
func (b *NodeApplyConfiguration) WithFinalizers(values ...string) *NodeApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *NodeApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *NodeApplyConfiguration) WithStatus(value *NodeStatusApplyConfiguration)
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *NodeApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/config/applyconfigurations/config/v1/nodespec.go b/config/applyconfigurations/config/v1/nodespec.go
index f1c513f4c..a0732e78a 100644
--- a/config/applyconfigurations/config/v1/nodespec.go
+++ b/config/applyconfigurations/config/v1/nodespec.go
@@ -3,15 +3,15 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// NodeSpecApplyConfiguration represents a declarative configuration of the NodeSpec type for use
// with apply.
type NodeSpecApplyConfiguration struct {
- CgroupMode *v1.CgroupMode `json:"cgroupMode,omitempty"`
- WorkerLatencyProfile *v1.WorkerLatencyProfileType `json:"workerLatencyProfile,omitempty"`
- MinimumKubeletVersion *string `json:"minimumKubeletVersion,omitempty"`
+ CgroupMode *configv1.CgroupMode `json:"cgroupMode,omitempty"`
+ WorkerLatencyProfile *configv1.WorkerLatencyProfileType `json:"workerLatencyProfile,omitempty"`
+ MinimumKubeletVersion *string `json:"minimumKubeletVersion,omitempty"`
}
// NodeSpecApplyConfiguration constructs a declarative configuration of the NodeSpec type for use with
@@ -23,7 +23,7 @@ func NodeSpec() *NodeSpecApplyConfiguration {
// WithCgroupMode sets the CgroupMode field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CgroupMode field is set to the value of the last call.
-func (b *NodeSpecApplyConfiguration) WithCgroupMode(value v1.CgroupMode) *NodeSpecApplyConfiguration {
+func (b *NodeSpecApplyConfiguration) WithCgroupMode(value configv1.CgroupMode) *NodeSpecApplyConfiguration {
b.CgroupMode = &value
return b
}
@@ -31,7 +31,7 @@ func (b *NodeSpecApplyConfiguration) WithCgroupMode(value v1.CgroupMode) *NodeSp
// WithWorkerLatencyProfile sets the WorkerLatencyProfile field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the WorkerLatencyProfile field is set to the value of the last call.
-func (b *NodeSpecApplyConfiguration) WithWorkerLatencyProfile(value v1.WorkerLatencyProfileType) *NodeSpecApplyConfiguration {
+func (b *NodeSpecApplyConfiguration) WithWorkerLatencyProfile(value configv1.WorkerLatencyProfileType) *NodeSpecApplyConfiguration {
b.WorkerLatencyProfile = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/nodestatus.go b/config/applyconfigurations/config/v1/nodestatus.go
index e36466526..ee6ebd99e 100644
--- a/config/applyconfigurations/config/v1/nodestatus.go
+++ b/config/applyconfigurations/config/v1/nodestatus.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// NodeStatusApplyConfiguration represents a declarative configuration of the NodeStatus type for use
// with apply.
type NodeStatusApplyConfiguration struct {
- Conditions []v1.ConditionApplyConfiguration `json:"conditions,omitempty"`
+ Conditions []metav1.ConditionApplyConfiguration `json:"conditions,omitempty"`
}
// NodeStatusApplyConfiguration constructs a declarative configuration of the NodeStatus type for use with
@@ -21,7 +21,7 @@ func NodeStatus() *NodeStatusApplyConfiguration {
// WithConditions adds the given value to the Conditions field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Conditions field.
-func (b *NodeStatusApplyConfiguration) WithConditions(values ...*v1.ConditionApplyConfiguration) *NodeStatusApplyConfiguration {
+func (b *NodeStatusApplyConfiguration) WithConditions(values ...*metav1.ConditionApplyConfiguration) *NodeStatusApplyConfiguration {
for i := range values {
if values[i] == nil {
panic("nil value passed to WithConditions")
diff --git a/config/applyconfigurations/config/v1/nutanixplatformloadbalancer.go b/config/applyconfigurations/config/v1/nutanixplatformloadbalancer.go
index 3578f512b..84d3b7ade 100644
--- a/config/applyconfigurations/config/v1/nutanixplatformloadbalancer.go
+++ b/config/applyconfigurations/config/v1/nutanixplatformloadbalancer.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// NutanixPlatformLoadBalancerApplyConfiguration represents a declarative configuration of the NutanixPlatformLoadBalancer type for use
// with apply.
type NutanixPlatformLoadBalancerApplyConfiguration struct {
- Type *v1.PlatformLoadBalancerType `json:"type,omitempty"`
+ Type *configv1.PlatformLoadBalancerType `json:"type,omitempty"`
}
// NutanixPlatformLoadBalancerApplyConfiguration constructs a declarative configuration of the NutanixPlatformLoadBalancer type for use with
@@ -21,7 +21,7 @@ func NutanixPlatformLoadBalancer() *NutanixPlatformLoadBalancerApplyConfiguratio
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *NutanixPlatformLoadBalancerApplyConfiguration) WithType(value v1.PlatformLoadBalancerType) *NutanixPlatformLoadBalancerApplyConfiguration {
+func (b *NutanixPlatformLoadBalancerApplyConfiguration) WithType(value configv1.PlatformLoadBalancerType) *NutanixPlatformLoadBalancerApplyConfiguration {
b.Type = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/nutanixresourceidentifier.go b/config/applyconfigurations/config/v1/nutanixresourceidentifier.go
index f06b7c5d9..5e9b095d8 100644
--- a/config/applyconfigurations/config/v1/nutanixresourceidentifier.go
+++ b/config/applyconfigurations/config/v1/nutanixresourceidentifier.go
@@ -3,15 +3,15 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// NutanixResourceIdentifierApplyConfiguration represents a declarative configuration of the NutanixResourceIdentifier type for use
// with apply.
type NutanixResourceIdentifierApplyConfiguration struct {
- Type *v1.NutanixIdentifierType `json:"type,omitempty"`
- UUID *string `json:"uuid,omitempty"`
- Name *string `json:"name,omitempty"`
+ Type *configv1.NutanixIdentifierType `json:"type,omitempty"`
+ UUID *string `json:"uuid,omitempty"`
+ Name *string `json:"name,omitempty"`
}
// NutanixResourceIdentifierApplyConfiguration constructs a declarative configuration of the NutanixResourceIdentifier type for use with
@@ -23,7 +23,7 @@ func NutanixResourceIdentifier() *NutanixResourceIdentifierApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *NutanixResourceIdentifierApplyConfiguration) WithType(value v1.NutanixIdentifierType) *NutanixResourceIdentifierApplyConfiguration {
+func (b *NutanixResourceIdentifierApplyConfiguration) WithType(value configv1.NutanixIdentifierType) *NutanixResourceIdentifierApplyConfiguration {
b.Type = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/oauth.go b/config/applyconfigurations/config/v1/oauth.go
index 61d6739c4..1c9589c08 100644
--- a/config/applyconfigurations/config/v1/oauth.go
+++ b/config/applyconfigurations/config/v1/oauth.go
@@ -3,21 +3,21 @@
package v1
import (
- apiconfigv1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
internal "github.com/openshift/client-go/config/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// OAuthApplyConfiguration represents a declarative configuration of the OAuth type for use
// with apply.
type OAuthApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *OAuthSpecApplyConfiguration `json:"spec,omitempty"`
- Status *apiconfigv1.OAuthStatus `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *OAuthSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *configv1.OAuthStatus `json:"status,omitempty"`
}
// OAuth constructs a declarative configuration of the OAuth type for use with
@@ -41,18 +41,18 @@ func OAuth(name string) *OAuthApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractOAuth(oAuth *apiconfigv1.OAuth, fieldManager string) (*OAuthApplyConfiguration, error) {
+func ExtractOAuth(oAuth *configv1.OAuth, fieldManager string) (*OAuthApplyConfiguration, error) {
return extractOAuth(oAuth, fieldManager, "")
}
// ExtractOAuthStatus is the same as ExtractOAuth except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractOAuthStatus(oAuth *apiconfigv1.OAuth, fieldManager string) (*OAuthApplyConfiguration, error) {
+func ExtractOAuthStatus(oAuth *configv1.OAuth, fieldManager string) (*OAuthApplyConfiguration, error) {
return extractOAuth(oAuth, fieldManager, "status")
}
-func extractOAuth(oAuth *apiconfigv1.OAuth, fieldManager string, subresource string) (*OAuthApplyConfiguration, error) {
+func extractOAuth(oAuth *configv1.OAuth, fieldManager string, subresource string) (*OAuthApplyConfiguration, error) {
b := &OAuthApplyConfiguration{}
err := managedfields.ExtractInto(oAuth, internal.Parser().Type("com.github.openshift.api.config.v1.OAuth"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractOAuth(oAuth *apiconfigv1.OAuth, fieldManager string, subresource str
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *OAuthApplyConfiguration) WithKind(value string) *OAuthApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *OAuthApplyConfiguration) WithKind(value string) *OAuthApplyConfiguratio
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *OAuthApplyConfiguration) WithAPIVersion(value string) *OAuthApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *OAuthApplyConfiguration) WithAPIVersion(value string) *OAuthApplyConfig
// If called multiple times, the Name field is set to the value of the last call.
func (b *OAuthApplyConfiguration) WithName(value string) *OAuthApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *OAuthApplyConfiguration) WithName(value string) *OAuthApplyConfiguratio
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *OAuthApplyConfiguration) WithGenerateName(value string) *OAuthApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *OAuthApplyConfiguration) WithGenerateName(value string) *OAuthApplyConf
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *OAuthApplyConfiguration) WithNamespace(value string) *OAuthApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *OAuthApplyConfiguration) WithNamespace(value string) *OAuthApplyConfigu
// If called multiple times, the UID field is set to the value of the last call.
func (b *OAuthApplyConfiguration) WithUID(value types.UID) *OAuthApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *OAuthApplyConfiguration) WithUID(value types.UID) *OAuthApplyConfigurat
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *OAuthApplyConfiguration) WithResourceVersion(value string) *OAuthApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *OAuthApplyConfiguration) WithResourceVersion(value string) *OAuthApplyC
// If called multiple times, the Generation field is set to the value of the last call.
func (b *OAuthApplyConfiguration) WithGeneration(value int64) *OAuthApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *OAuthApplyConfiguration) WithCreationTimestamp(value metav1.Time) *OAuthApplyConfiguration {
+func (b *OAuthApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *OAuthApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *OAuthApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *OAuthApplyConfiguration {
+func (b *OAuthApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *OAuthApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *OAuthApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *OAut
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *OAuthApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *OAuthApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *OAuthApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *O
// overwriting an existing map entries in Labels field with the same key.
func (b *OAuthApplyConfiguration) WithLabels(entries map[string]string) *OAuthApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *OAuthApplyConfiguration) WithLabels(entries map[string]string) *OAuthAp
// overwriting an existing map entries in Annotations field with the same key.
func (b *OAuthApplyConfiguration) WithAnnotations(entries map[string]string) *OAuthApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *OAuthApplyConfiguration) WithAnnotations(entries map[string]string) *OA
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *OAuthApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *OAuthApplyConfiguration {
+func (b *OAuthApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *OAuthApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *OAuthApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferen
func (b *OAuthApplyConfiguration) WithFinalizers(values ...string) *OAuthApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *OAuthApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -234,7 +234,7 @@ func (b *OAuthApplyConfiguration) WithSpec(value *OAuthSpecApplyConfiguration) *
// WithStatus sets the Status field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Status field is set to the value of the last call.
-func (b *OAuthApplyConfiguration) WithStatus(value apiconfigv1.OAuthStatus) *OAuthApplyConfiguration {
+func (b *OAuthApplyConfiguration) WithStatus(value configv1.OAuthStatus) *OAuthApplyConfiguration {
b.Status = &value
return b
}
@@ -242,5 +242,5 @@ func (b *OAuthApplyConfiguration) WithStatus(value apiconfigv1.OAuthStatus) *OAu
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *OAuthApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/config/applyconfigurations/config/v1/openidclaims.go b/config/applyconfigurations/config/v1/openidclaims.go
index 18c2a768f..8f11192c5 100644
--- a/config/applyconfigurations/config/v1/openidclaims.go
+++ b/config/applyconfigurations/config/v1/openidclaims.go
@@ -3,16 +3,16 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// OpenIDClaimsApplyConfiguration represents a declarative configuration of the OpenIDClaims type for use
// with apply.
type OpenIDClaimsApplyConfiguration struct {
- PreferredUsername []string `json:"preferredUsername,omitempty"`
- Name []string `json:"name,omitempty"`
- Email []string `json:"email,omitempty"`
- Groups []v1.OpenIDClaim `json:"groups,omitempty"`
+ PreferredUsername []string `json:"preferredUsername,omitempty"`
+ Name []string `json:"name,omitempty"`
+ Email []string `json:"email,omitempty"`
+ Groups []configv1.OpenIDClaim `json:"groups,omitempty"`
}
// OpenIDClaimsApplyConfiguration constructs a declarative configuration of the OpenIDClaims type for use with
@@ -54,7 +54,7 @@ func (b *OpenIDClaimsApplyConfiguration) WithEmail(values ...string) *OpenIDClai
// WithGroups adds the given value to the Groups field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Groups field.
-func (b *OpenIDClaimsApplyConfiguration) WithGroups(values ...v1.OpenIDClaim) *OpenIDClaimsApplyConfiguration {
+func (b *OpenIDClaimsApplyConfiguration) WithGroups(values ...configv1.OpenIDClaim) *OpenIDClaimsApplyConfiguration {
for i := range values {
b.Groups = append(b.Groups, values[i])
}
diff --git a/config/applyconfigurations/config/v1/openstackplatformloadbalancer.go b/config/applyconfigurations/config/v1/openstackplatformloadbalancer.go
index 3e4990789..f65d682d5 100644
--- a/config/applyconfigurations/config/v1/openstackplatformloadbalancer.go
+++ b/config/applyconfigurations/config/v1/openstackplatformloadbalancer.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// OpenStackPlatformLoadBalancerApplyConfiguration represents a declarative configuration of the OpenStackPlatformLoadBalancer type for use
// with apply.
type OpenStackPlatformLoadBalancerApplyConfiguration struct {
- Type *v1.PlatformLoadBalancerType `json:"type,omitempty"`
+ Type *configv1.PlatformLoadBalancerType `json:"type,omitempty"`
}
// OpenStackPlatformLoadBalancerApplyConfiguration constructs a declarative configuration of the OpenStackPlatformLoadBalancer type for use with
@@ -21,7 +21,7 @@ func OpenStackPlatformLoadBalancer() *OpenStackPlatformLoadBalancerApplyConfigur
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *OpenStackPlatformLoadBalancerApplyConfiguration) WithType(value v1.PlatformLoadBalancerType) *OpenStackPlatformLoadBalancerApplyConfiguration {
+func (b *OpenStackPlatformLoadBalancerApplyConfiguration) WithType(value configv1.PlatformLoadBalancerType) *OpenStackPlatformLoadBalancerApplyConfiguration {
b.Type = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/openstackplatformspec.go b/config/applyconfigurations/config/v1/openstackplatformspec.go
index 393a1bb93..af43c8330 100644
--- a/config/applyconfigurations/config/v1/openstackplatformspec.go
+++ b/config/applyconfigurations/config/v1/openstackplatformspec.go
@@ -3,15 +3,15 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// OpenStackPlatformSpecApplyConfiguration represents a declarative configuration of the OpenStackPlatformSpec type for use
// with apply.
type OpenStackPlatformSpecApplyConfiguration struct {
- APIServerInternalIPs []v1.IP `json:"apiServerInternalIPs,omitempty"`
- IngressIPs []v1.IP `json:"ingressIPs,omitempty"`
- MachineNetworks []v1.CIDR `json:"machineNetworks,omitempty"`
+ APIServerInternalIPs []configv1.IP `json:"apiServerInternalIPs,omitempty"`
+ IngressIPs []configv1.IP `json:"ingressIPs,omitempty"`
+ MachineNetworks []configv1.CIDR `json:"machineNetworks,omitempty"`
}
// OpenStackPlatformSpecApplyConfiguration constructs a declarative configuration of the OpenStackPlatformSpec type for use with
@@ -23,7 +23,7 @@ func OpenStackPlatformSpec() *OpenStackPlatformSpecApplyConfiguration {
// WithAPIServerInternalIPs adds the given value to the APIServerInternalIPs field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the APIServerInternalIPs field.
-func (b *OpenStackPlatformSpecApplyConfiguration) WithAPIServerInternalIPs(values ...v1.IP) *OpenStackPlatformSpecApplyConfiguration {
+func (b *OpenStackPlatformSpecApplyConfiguration) WithAPIServerInternalIPs(values ...configv1.IP) *OpenStackPlatformSpecApplyConfiguration {
for i := range values {
b.APIServerInternalIPs = append(b.APIServerInternalIPs, values[i])
}
@@ -33,7 +33,7 @@ func (b *OpenStackPlatformSpecApplyConfiguration) WithAPIServerInternalIPs(value
// WithIngressIPs adds the given value to the IngressIPs field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the IngressIPs field.
-func (b *OpenStackPlatformSpecApplyConfiguration) WithIngressIPs(values ...v1.IP) *OpenStackPlatformSpecApplyConfiguration {
+func (b *OpenStackPlatformSpecApplyConfiguration) WithIngressIPs(values ...configv1.IP) *OpenStackPlatformSpecApplyConfiguration {
for i := range values {
b.IngressIPs = append(b.IngressIPs, values[i])
}
@@ -43,7 +43,7 @@ func (b *OpenStackPlatformSpecApplyConfiguration) WithIngressIPs(values ...v1.IP
// WithMachineNetworks adds the given value to the MachineNetworks field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the MachineNetworks field.
-func (b *OpenStackPlatformSpecApplyConfiguration) WithMachineNetworks(values ...v1.CIDR) *OpenStackPlatformSpecApplyConfiguration {
+func (b *OpenStackPlatformSpecApplyConfiguration) WithMachineNetworks(values ...configv1.CIDR) *OpenStackPlatformSpecApplyConfiguration {
for i := range values {
b.MachineNetworks = append(b.MachineNetworks, values[i])
}
diff --git a/config/applyconfigurations/config/v1/operatorhub.go b/config/applyconfigurations/config/v1/operatorhub.go
index bda9b75e8..df95eb84d 100644
--- a/config/applyconfigurations/config/v1/operatorhub.go
+++ b/config/applyconfigurations/config/v1/operatorhub.go
@@ -3,21 +3,21 @@
package v1
import (
- apiconfigv1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
internal "github.com/openshift/client-go/config/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// OperatorHubApplyConfiguration represents a declarative configuration of the OperatorHub type for use
// with apply.
type OperatorHubApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *OperatorHubSpecApplyConfiguration `json:"spec,omitempty"`
- Status *OperatorHubStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *OperatorHubSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *OperatorHubStatusApplyConfiguration `json:"status,omitempty"`
}
// OperatorHub constructs a declarative configuration of the OperatorHub type for use with
@@ -41,18 +41,18 @@ func OperatorHub(name string) *OperatorHubApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractOperatorHub(operatorHub *apiconfigv1.OperatorHub, fieldManager string) (*OperatorHubApplyConfiguration, error) {
+func ExtractOperatorHub(operatorHub *configv1.OperatorHub, fieldManager string) (*OperatorHubApplyConfiguration, error) {
return extractOperatorHub(operatorHub, fieldManager, "")
}
// ExtractOperatorHubStatus is the same as ExtractOperatorHub except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractOperatorHubStatus(operatorHub *apiconfigv1.OperatorHub, fieldManager string) (*OperatorHubApplyConfiguration, error) {
+func ExtractOperatorHubStatus(operatorHub *configv1.OperatorHub, fieldManager string) (*OperatorHubApplyConfiguration, error) {
return extractOperatorHub(operatorHub, fieldManager, "status")
}
-func extractOperatorHub(operatorHub *apiconfigv1.OperatorHub, fieldManager string, subresource string) (*OperatorHubApplyConfiguration, error) {
+func extractOperatorHub(operatorHub *configv1.OperatorHub, fieldManager string, subresource string) (*OperatorHubApplyConfiguration, error) {
b := &OperatorHubApplyConfiguration{}
err := managedfields.ExtractInto(operatorHub, internal.Parser().Type("com.github.openshift.api.config.v1.OperatorHub"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractOperatorHub(operatorHub *apiconfigv1.OperatorHub, fieldManager strin
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *OperatorHubApplyConfiguration) WithKind(value string) *OperatorHubApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *OperatorHubApplyConfiguration) WithKind(value string) *OperatorHubApply
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *OperatorHubApplyConfiguration) WithAPIVersion(value string) *OperatorHubApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *OperatorHubApplyConfiguration) WithAPIVersion(value string) *OperatorHu
// If called multiple times, the Name field is set to the value of the last call.
func (b *OperatorHubApplyConfiguration) WithName(value string) *OperatorHubApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *OperatorHubApplyConfiguration) WithName(value string) *OperatorHubApply
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *OperatorHubApplyConfiguration) WithGenerateName(value string) *OperatorHubApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *OperatorHubApplyConfiguration) WithGenerateName(value string) *Operator
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *OperatorHubApplyConfiguration) WithNamespace(value string) *OperatorHubApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *OperatorHubApplyConfiguration) WithNamespace(value string) *OperatorHub
// If called multiple times, the UID field is set to the value of the last call.
func (b *OperatorHubApplyConfiguration) WithUID(value types.UID) *OperatorHubApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *OperatorHubApplyConfiguration) WithUID(value types.UID) *OperatorHubApp
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *OperatorHubApplyConfiguration) WithResourceVersion(value string) *OperatorHubApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *OperatorHubApplyConfiguration) WithResourceVersion(value string) *Opera
// If called multiple times, the Generation field is set to the value of the last call.
func (b *OperatorHubApplyConfiguration) WithGeneration(value int64) *OperatorHubApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *OperatorHubApplyConfiguration) WithCreationTimestamp(value metav1.Time) *OperatorHubApplyConfiguration {
+func (b *OperatorHubApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *OperatorHubApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *OperatorHubApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *OperatorHubApplyConfiguration {
+func (b *OperatorHubApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *OperatorHubApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *OperatorHubApplyConfiguration) WithDeletionTimestamp(value metav1.Time)
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *OperatorHubApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *OperatorHubApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *OperatorHubApplyConfiguration) WithDeletionGracePeriodSeconds(value int
// overwriting an existing map entries in Labels field with the same key.
func (b *OperatorHubApplyConfiguration) WithLabels(entries map[string]string) *OperatorHubApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *OperatorHubApplyConfiguration) WithLabels(entries map[string]string) *O
// overwriting an existing map entries in Annotations field with the same key.
func (b *OperatorHubApplyConfiguration) WithAnnotations(entries map[string]string) *OperatorHubApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *OperatorHubApplyConfiguration) WithAnnotations(entries map[string]strin
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *OperatorHubApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *OperatorHubApplyConfiguration {
+func (b *OperatorHubApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *OperatorHubApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *OperatorHubApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerR
func (b *OperatorHubApplyConfiguration) WithFinalizers(values ...string) *OperatorHubApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *OperatorHubApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *OperatorHubApplyConfiguration) WithStatus(value *OperatorHubStatusApply
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *OperatorHubApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/config/applyconfigurations/config/v1/ovirtplatformloadbalancer.go b/config/applyconfigurations/config/v1/ovirtplatformloadbalancer.go
index b679a55fd..e81d48044 100644
--- a/config/applyconfigurations/config/v1/ovirtplatformloadbalancer.go
+++ b/config/applyconfigurations/config/v1/ovirtplatformloadbalancer.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// OvirtPlatformLoadBalancerApplyConfiguration represents a declarative configuration of the OvirtPlatformLoadBalancer type for use
// with apply.
type OvirtPlatformLoadBalancerApplyConfiguration struct {
- Type *v1.PlatformLoadBalancerType `json:"type,omitempty"`
+ Type *configv1.PlatformLoadBalancerType `json:"type,omitempty"`
}
// OvirtPlatformLoadBalancerApplyConfiguration constructs a declarative configuration of the OvirtPlatformLoadBalancer type for use with
@@ -21,7 +21,7 @@ func OvirtPlatformLoadBalancer() *OvirtPlatformLoadBalancerApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *OvirtPlatformLoadBalancerApplyConfiguration) WithType(value v1.PlatformLoadBalancerType) *OvirtPlatformLoadBalancerApplyConfiguration {
+func (b *OvirtPlatformLoadBalancerApplyConfiguration) WithType(value configv1.PlatformLoadBalancerType) *OvirtPlatformLoadBalancerApplyConfiguration {
b.Type = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/platformspec.go b/config/applyconfigurations/config/v1/platformspec.go
index 6ff5bcf0c..517ac0bfc 100644
--- a/config/applyconfigurations/config/v1/platformspec.go
+++ b/config/applyconfigurations/config/v1/platformspec.go
@@ -3,25 +3,25 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// PlatformSpecApplyConfiguration represents a declarative configuration of the PlatformSpec type for use
// with apply.
type PlatformSpecApplyConfiguration struct {
- Type *v1.PlatformType `json:"type,omitempty"`
+ Type *configv1.PlatformType `json:"type,omitempty"`
AWS *AWSPlatformSpecApplyConfiguration `json:"aws,omitempty"`
- Azure *v1.AzurePlatformSpec `json:"azure,omitempty"`
- GCP *v1.GCPPlatformSpec `json:"gcp,omitempty"`
+ Azure *configv1.AzurePlatformSpec `json:"azure,omitempty"`
+ GCP *configv1.GCPPlatformSpec `json:"gcp,omitempty"`
BareMetal *BareMetalPlatformSpecApplyConfiguration `json:"baremetal,omitempty"`
OpenStack *OpenStackPlatformSpecApplyConfiguration `json:"openstack,omitempty"`
- Ovirt *v1.OvirtPlatformSpec `json:"ovirt,omitempty"`
+ Ovirt *configv1.OvirtPlatformSpec `json:"ovirt,omitempty"`
VSphere *VSpherePlatformSpecApplyConfiguration `json:"vsphere,omitempty"`
- IBMCloud *v1.IBMCloudPlatformSpec `json:"ibmcloud,omitempty"`
- Kubevirt *v1.KubevirtPlatformSpec `json:"kubevirt,omitempty"`
- EquinixMetal *v1.EquinixMetalPlatformSpec `json:"equinixMetal,omitempty"`
+ IBMCloud *configv1.IBMCloudPlatformSpec `json:"ibmcloud,omitempty"`
+ Kubevirt *configv1.KubevirtPlatformSpec `json:"kubevirt,omitempty"`
+ EquinixMetal *configv1.EquinixMetalPlatformSpec `json:"equinixMetal,omitempty"`
PowerVS *PowerVSPlatformSpecApplyConfiguration `json:"powervs,omitempty"`
- AlibabaCloud *v1.AlibabaCloudPlatformSpec `json:"alibabaCloud,omitempty"`
+ AlibabaCloud *configv1.AlibabaCloudPlatformSpec `json:"alibabaCloud,omitempty"`
Nutanix *NutanixPlatformSpecApplyConfiguration `json:"nutanix,omitempty"`
External *ExternalPlatformSpecApplyConfiguration `json:"external,omitempty"`
}
@@ -35,7 +35,7 @@ func PlatformSpec() *PlatformSpecApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *PlatformSpecApplyConfiguration) WithType(value v1.PlatformType) *PlatformSpecApplyConfiguration {
+func (b *PlatformSpecApplyConfiguration) WithType(value configv1.PlatformType) *PlatformSpecApplyConfiguration {
b.Type = &value
return b
}
@@ -51,7 +51,7 @@ func (b *PlatformSpecApplyConfiguration) WithAWS(value *AWSPlatformSpecApplyConf
// WithAzure sets the Azure field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Azure field is set to the value of the last call.
-func (b *PlatformSpecApplyConfiguration) WithAzure(value v1.AzurePlatformSpec) *PlatformSpecApplyConfiguration {
+func (b *PlatformSpecApplyConfiguration) WithAzure(value configv1.AzurePlatformSpec) *PlatformSpecApplyConfiguration {
b.Azure = &value
return b
}
@@ -59,7 +59,7 @@ func (b *PlatformSpecApplyConfiguration) WithAzure(value v1.AzurePlatformSpec) *
// WithGCP sets the GCP field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the GCP field is set to the value of the last call.
-func (b *PlatformSpecApplyConfiguration) WithGCP(value v1.GCPPlatformSpec) *PlatformSpecApplyConfiguration {
+func (b *PlatformSpecApplyConfiguration) WithGCP(value configv1.GCPPlatformSpec) *PlatformSpecApplyConfiguration {
b.GCP = &value
return b
}
@@ -83,7 +83,7 @@ func (b *PlatformSpecApplyConfiguration) WithOpenStack(value *OpenStackPlatformS
// WithOvirt sets the Ovirt field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Ovirt field is set to the value of the last call.
-func (b *PlatformSpecApplyConfiguration) WithOvirt(value v1.OvirtPlatformSpec) *PlatformSpecApplyConfiguration {
+func (b *PlatformSpecApplyConfiguration) WithOvirt(value configv1.OvirtPlatformSpec) *PlatformSpecApplyConfiguration {
b.Ovirt = &value
return b
}
@@ -99,7 +99,7 @@ func (b *PlatformSpecApplyConfiguration) WithVSphere(value *VSpherePlatformSpecA
// WithIBMCloud sets the IBMCloud field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the IBMCloud field is set to the value of the last call.
-func (b *PlatformSpecApplyConfiguration) WithIBMCloud(value v1.IBMCloudPlatformSpec) *PlatformSpecApplyConfiguration {
+func (b *PlatformSpecApplyConfiguration) WithIBMCloud(value configv1.IBMCloudPlatformSpec) *PlatformSpecApplyConfiguration {
b.IBMCloud = &value
return b
}
@@ -107,7 +107,7 @@ func (b *PlatformSpecApplyConfiguration) WithIBMCloud(value v1.IBMCloudPlatformS
// WithKubevirt sets the Kubevirt field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kubevirt field is set to the value of the last call.
-func (b *PlatformSpecApplyConfiguration) WithKubevirt(value v1.KubevirtPlatformSpec) *PlatformSpecApplyConfiguration {
+func (b *PlatformSpecApplyConfiguration) WithKubevirt(value configv1.KubevirtPlatformSpec) *PlatformSpecApplyConfiguration {
b.Kubevirt = &value
return b
}
@@ -115,7 +115,7 @@ func (b *PlatformSpecApplyConfiguration) WithKubevirt(value v1.KubevirtPlatformS
// WithEquinixMetal sets the EquinixMetal field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the EquinixMetal field is set to the value of the last call.
-func (b *PlatformSpecApplyConfiguration) WithEquinixMetal(value v1.EquinixMetalPlatformSpec) *PlatformSpecApplyConfiguration {
+func (b *PlatformSpecApplyConfiguration) WithEquinixMetal(value configv1.EquinixMetalPlatformSpec) *PlatformSpecApplyConfiguration {
b.EquinixMetal = &value
return b
}
@@ -131,7 +131,7 @@ func (b *PlatformSpecApplyConfiguration) WithPowerVS(value *PowerVSPlatformSpecA
// WithAlibabaCloud sets the AlibabaCloud field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the AlibabaCloud field is set to the value of the last call.
-func (b *PlatformSpecApplyConfiguration) WithAlibabaCloud(value v1.AlibabaCloudPlatformSpec) *PlatformSpecApplyConfiguration {
+func (b *PlatformSpecApplyConfiguration) WithAlibabaCloud(value configv1.AlibabaCloudPlatformSpec) *PlatformSpecApplyConfiguration {
b.AlibabaCloud = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/platformstatus.go b/config/applyconfigurations/config/v1/platformstatus.go
index 6519ef8b0..e470ebd96 100644
--- a/config/applyconfigurations/config/v1/platformstatus.go
+++ b/config/applyconfigurations/config/v1/platformstatus.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// PlatformStatusApplyConfiguration represents a declarative configuration of the PlatformStatus type for use
// with apply.
type PlatformStatusApplyConfiguration struct {
- Type *v1.PlatformType `json:"type,omitempty"`
+ Type *configv1.PlatformType `json:"type,omitempty"`
AWS *AWSPlatformStatusApplyConfiguration `json:"aws,omitempty"`
Azure *AzurePlatformStatusApplyConfiguration `json:"azure,omitempty"`
GCP *GCPPlatformStatusApplyConfiguration `json:"gcp,omitempty"`
@@ -35,7 +35,7 @@ func PlatformStatus() *PlatformStatusApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *PlatformStatusApplyConfiguration) WithType(value v1.PlatformType) *PlatformStatusApplyConfiguration {
+func (b *PlatformStatusApplyConfiguration) WithType(value configv1.PlatformType) *PlatformStatusApplyConfiguration {
b.Type = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/prefixedclaimmapping.go b/config/applyconfigurations/config/v1/prefixedclaimmapping.go
index bf10a6891..245520433 100644
--- a/config/applyconfigurations/config/v1/prefixedclaimmapping.go
+++ b/config/applyconfigurations/config/v1/prefixedclaimmapping.go
@@ -19,7 +19,7 @@ func PrefixedClaimMapping() *PrefixedClaimMappingApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Claim field is set to the value of the last call.
func (b *PrefixedClaimMappingApplyConfiguration) WithClaim(value string) *PrefixedClaimMappingApplyConfiguration {
- b.Claim = &value
+ b.TokenClaimMappingApplyConfiguration.Claim = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/profilecustomizations.go b/config/applyconfigurations/config/v1/profilecustomizations.go
index f0e90acc9..c2392bab9 100644
--- a/config/applyconfigurations/config/v1/profilecustomizations.go
+++ b/config/applyconfigurations/config/v1/profilecustomizations.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// ProfileCustomizationsApplyConfiguration represents a declarative configuration of the ProfileCustomizations type for use
// with apply.
type ProfileCustomizationsApplyConfiguration struct {
- DynamicResourceAllocation *v1.DRAEnablement `json:"dynamicResourceAllocation,omitempty"`
+ DynamicResourceAllocation *configv1.DRAEnablement `json:"dynamicResourceAllocation,omitempty"`
}
// ProfileCustomizationsApplyConfiguration constructs a declarative configuration of the ProfileCustomizations type for use with
@@ -21,7 +21,7 @@ func ProfileCustomizations() *ProfileCustomizationsApplyConfiguration {
// WithDynamicResourceAllocation sets the DynamicResourceAllocation field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DynamicResourceAllocation field is set to the value of the last call.
-func (b *ProfileCustomizationsApplyConfiguration) WithDynamicResourceAllocation(value v1.DRAEnablement) *ProfileCustomizationsApplyConfiguration {
+func (b *ProfileCustomizationsApplyConfiguration) WithDynamicResourceAllocation(value configv1.DRAEnablement) *ProfileCustomizationsApplyConfiguration {
b.DynamicResourceAllocation = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/project.go b/config/applyconfigurations/config/v1/project.go
index 864277b59..5c040bae4 100644
--- a/config/applyconfigurations/config/v1/project.go
+++ b/config/applyconfigurations/config/v1/project.go
@@ -3,21 +3,21 @@
package v1
import (
- apiconfigv1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
internal "github.com/openshift/client-go/config/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ProjectApplyConfiguration represents a declarative configuration of the Project type for use
// with apply.
type ProjectApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *ProjectSpecApplyConfiguration `json:"spec,omitempty"`
- Status *apiconfigv1.ProjectStatus `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *ProjectSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *configv1.ProjectStatus `json:"status,omitempty"`
}
// Project constructs a declarative configuration of the Project type for use with
@@ -41,18 +41,18 @@ func Project(name string) *ProjectApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractProject(project *apiconfigv1.Project, fieldManager string) (*ProjectApplyConfiguration, error) {
+func ExtractProject(project *configv1.Project, fieldManager string) (*ProjectApplyConfiguration, error) {
return extractProject(project, fieldManager, "")
}
// ExtractProjectStatus is the same as ExtractProject except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractProjectStatus(project *apiconfigv1.Project, fieldManager string) (*ProjectApplyConfiguration, error) {
+func ExtractProjectStatus(project *configv1.Project, fieldManager string) (*ProjectApplyConfiguration, error) {
return extractProject(project, fieldManager, "status")
}
-func extractProject(project *apiconfigv1.Project, fieldManager string, subresource string) (*ProjectApplyConfiguration, error) {
+func extractProject(project *configv1.Project, fieldManager string, subresource string) (*ProjectApplyConfiguration, error) {
b := &ProjectApplyConfiguration{}
err := managedfields.ExtractInto(project, internal.Parser().Type("com.github.openshift.api.config.v1.Project"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractProject(project *apiconfigv1.Project, fieldManager string, subresour
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ProjectApplyConfiguration) WithKind(value string) *ProjectApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *ProjectApplyConfiguration) WithKind(value string) *ProjectApplyConfigur
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ProjectApplyConfiguration) WithAPIVersion(value string) *ProjectApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *ProjectApplyConfiguration) WithAPIVersion(value string) *ProjectApplyCo
// If called multiple times, the Name field is set to the value of the last call.
func (b *ProjectApplyConfiguration) WithName(value string) *ProjectApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *ProjectApplyConfiguration) WithName(value string) *ProjectApplyConfigur
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ProjectApplyConfiguration) WithGenerateName(value string) *ProjectApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *ProjectApplyConfiguration) WithGenerateName(value string) *ProjectApply
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ProjectApplyConfiguration) WithNamespace(value string) *ProjectApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *ProjectApplyConfiguration) WithNamespace(value string) *ProjectApplyCon
// If called multiple times, the UID field is set to the value of the last call.
func (b *ProjectApplyConfiguration) WithUID(value types.UID) *ProjectApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *ProjectApplyConfiguration) WithUID(value types.UID) *ProjectApplyConfig
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ProjectApplyConfiguration) WithResourceVersion(value string) *ProjectApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *ProjectApplyConfiguration) WithResourceVersion(value string) *ProjectAp
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ProjectApplyConfiguration) WithGeneration(value int64) *ProjectApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *ProjectApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ProjectApplyConfiguration {
+func (b *ProjectApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ProjectApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *ProjectApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ProjectApplyConfiguration {
+func (b *ProjectApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ProjectApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *ProjectApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *Pr
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ProjectApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ProjectApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *ProjectApplyConfiguration) WithDeletionGracePeriodSeconds(value int64)
// overwriting an existing map entries in Labels field with the same key.
func (b *ProjectApplyConfiguration) WithLabels(entries map[string]string) *ProjectApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *ProjectApplyConfiguration) WithLabels(entries map[string]string) *Proje
// overwriting an existing map entries in Annotations field with the same key.
func (b *ProjectApplyConfiguration) WithAnnotations(entries map[string]string) *ProjectApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *ProjectApplyConfiguration) WithAnnotations(entries map[string]string) *
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *ProjectApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ProjectApplyConfiguration {
+func (b *ProjectApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ProjectApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *ProjectApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefer
func (b *ProjectApplyConfiguration) WithFinalizers(values ...string) *ProjectApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *ProjectApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -234,7 +234,7 @@ func (b *ProjectApplyConfiguration) WithSpec(value *ProjectSpecApplyConfiguratio
// WithStatus sets the Status field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Status field is set to the value of the last call.
-func (b *ProjectApplyConfiguration) WithStatus(value apiconfigv1.ProjectStatus) *ProjectApplyConfiguration {
+func (b *ProjectApplyConfiguration) WithStatus(value configv1.ProjectStatus) *ProjectApplyConfiguration {
b.Status = &value
return b
}
@@ -242,5 +242,5 @@ func (b *ProjectApplyConfiguration) WithStatus(value apiconfigv1.ProjectStatus)
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ProjectApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/config/applyconfigurations/config/v1/proxy.go b/config/applyconfigurations/config/v1/proxy.go
index fdfe260f5..7184cbd08 100644
--- a/config/applyconfigurations/config/v1/proxy.go
+++ b/config/applyconfigurations/config/v1/proxy.go
@@ -3,21 +3,21 @@
package v1
import (
- apiconfigv1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
internal "github.com/openshift/client-go/config/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ProxyApplyConfiguration represents a declarative configuration of the Proxy type for use
// with apply.
type ProxyApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *ProxySpecApplyConfiguration `json:"spec,omitempty"`
- Status *ProxyStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *ProxySpecApplyConfiguration `json:"spec,omitempty"`
+ Status *ProxyStatusApplyConfiguration `json:"status,omitempty"`
}
// Proxy constructs a declarative configuration of the Proxy type for use with
@@ -41,18 +41,18 @@ func Proxy(name string) *ProxyApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractProxy(proxy *apiconfigv1.Proxy, fieldManager string) (*ProxyApplyConfiguration, error) {
+func ExtractProxy(proxy *configv1.Proxy, fieldManager string) (*ProxyApplyConfiguration, error) {
return extractProxy(proxy, fieldManager, "")
}
// ExtractProxyStatus is the same as ExtractProxy except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractProxyStatus(proxy *apiconfigv1.Proxy, fieldManager string) (*ProxyApplyConfiguration, error) {
+func ExtractProxyStatus(proxy *configv1.Proxy, fieldManager string) (*ProxyApplyConfiguration, error) {
return extractProxy(proxy, fieldManager, "status")
}
-func extractProxy(proxy *apiconfigv1.Proxy, fieldManager string, subresource string) (*ProxyApplyConfiguration, error) {
+func extractProxy(proxy *configv1.Proxy, fieldManager string, subresource string) (*ProxyApplyConfiguration, error) {
b := &ProxyApplyConfiguration{}
err := managedfields.ExtractInto(proxy, internal.Parser().Type("com.github.openshift.api.config.v1.Proxy"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractProxy(proxy *apiconfigv1.Proxy, fieldManager string, subresource str
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ProxyApplyConfiguration) WithKind(value string) *ProxyApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *ProxyApplyConfiguration) WithKind(value string) *ProxyApplyConfiguratio
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ProxyApplyConfiguration) WithAPIVersion(value string) *ProxyApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *ProxyApplyConfiguration) WithAPIVersion(value string) *ProxyApplyConfig
// If called multiple times, the Name field is set to the value of the last call.
func (b *ProxyApplyConfiguration) WithName(value string) *ProxyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *ProxyApplyConfiguration) WithName(value string) *ProxyApplyConfiguratio
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ProxyApplyConfiguration) WithGenerateName(value string) *ProxyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *ProxyApplyConfiguration) WithGenerateName(value string) *ProxyApplyConf
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ProxyApplyConfiguration) WithNamespace(value string) *ProxyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *ProxyApplyConfiguration) WithNamespace(value string) *ProxyApplyConfigu
// If called multiple times, the UID field is set to the value of the last call.
func (b *ProxyApplyConfiguration) WithUID(value types.UID) *ProxyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *ProxyApplyConfiguration) WithUID(value types.UID) *ProxyApplyConfigurat
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ProxyApplyConfiguration) WithResourceVersion(value string) *ProxyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *ProxyApplyConfiguration) WithResourceVersion(value string) *ProxyApplyC
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ProxyApplyConfiguration) WithGeneration(value int64) *ProxyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *ProxyApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ProxyApplyConfiguration {
+func (b *ProxyApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ProxyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *ProxyApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ProxyApplyConfiguration {
+func (b *ProxyApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ProxyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *ProxyApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *Prox
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ProxyApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ProxyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *ProxyApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *P
// overwriting an existing map entries in Labels field with the same key.
func (b *ProxyApplyConfiguration) WithLabels(entries map[string]string) *ProxyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *ProxyApplyConfiguration) WithLabels(entries map[string]string) *ProxyAp
// overwriting an existing map entries in Annotations field with the same key.
func (b *ProxyApplyConfiguration) WithAnnotations(entries map[string]string) *ProxyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *ProxyApplyConfiguration) WithAnnotations(entries map[string]string) *Pr
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *ProxyApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ProxyApplyConfiguration {
+func (b *ProxyApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ProxyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *ProxyApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferen
func (b *ProxyApplyConfiguration) WithFinalizers(values ...string) *ProxyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *ProxyApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *ProxyApplyConfiguration) WithStatus(value *ProxyStatusApplyConfiguratio
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ProxyApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/config/applyconfigurations/config/v1/release.go b/config/applyconfigurations/config/v1/release.go
index 9247e46a0..c8275fcde 100644
--- a/config/applyconfigurations/config/v1/release.go
+++ b/config/applyconfigurations/config/v1/release.go
@@ -3,17 +3,17 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// ReleaseApplyConfiguration represents a declarative configuration of the Release type for use
// with apply.
type ReleaseApplyConfiguration struct {
- Architecture *v1.ClusterVersionArchitecture `json:"architecture,omitempty"`
- Version *string `json:"version,omitempty"`
- Image *string `json:"image,omitempty"`
- URL *v1.URL `json:"url,omitempty"`
- Channels []string `json:"channels,omitempty"`
+ Architecture *configv1.ClusterVersionArchitecture `json:"architecture,omitempty"`
+ Version *string `json:"version,omitempty"`
+ Image *string `json:"image,omitempty"`
+ URL *configv1.URL `json:"url,omitempty"`
+ Channels []string `json:"channels,omitempty"`
}
// ReleaseApplyConfiguration constructs a declarative configuration of the Release type for use with
@@ -25,7 +25,7 @@ func Release() *ReleaseApplyConfiguration {
// WithArchitecture sets the Architecture field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Architecture field is set to the value of the last call.
-func (b *ReleaseApplyConfiguration) WithArchitecture(value v1.ClusterVersionArchitecture) *ReleaseApplyConfiguration {
+func (b *ReleaseApplyConfiguration) WithArchitecture(value configv1.ClusterVersionArchitecture) *ReleaseApplyConfiguration {
b.Architecture = &value
return b
}
@@ -49,7 +49,7 @@ func (b *ReleaseApplyConfiguration) WithImage(value string) *ReleaseApplyConfigu
// WithURL sets the URL field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the URL field is set to the value of the last call.
-func (b *ReleaseApplyConfiguration) WithURL(value v1.URL) *ReleaseApplyConfiguration {
+func (b *ReleaseApplyConfiguration) WithURL(value configv1.URL) *ReleaseApplyConfiguration {
b.URL = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/repositorydigestmirrors.go b/config/applyconfigurations/config/v1/repositorydigestmirrors.go
index f903170f3..96f724095 100644
--- a/config/applyconfigurations/config/v1/repositorydigestmirrors.go
+++ b/config/applyconfigurations/config/v1/repositorydigestmirrors.go
@@ -3,15 +3,15 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// RepositoryDigestMirrorsApplyConfiguration represents a declarative configuration of the RepositoryDigestMirrors type for use
// with apply.
type RepositoryDigestMirrorsApplyConfiguration struct {
- Source *string `json:"source,omitempty"`
- AllowMirrorByTags *bool `json:"allowMirrorByTags,omitempty"`
- Mirrors []v1.Mirror `json:"mirrors,omitempty"`
+ Source *string `json:"source,omitempty"`
+ AllowMirrorByTags *bool `json:"allowMirrorByTags,omitempty"`
+ Mirrors []configv1.Mirror `json:"mirrors,omitempty"`
}
// RepositoryDigestMirrorsApplyConfiguration constructs a declarative configuration of the RepositoryDigestMirrors type for use with
@@ -39,7 +39,7 @@ func (b *RepositoryDigestMirrorsApplyConfiguration) WithAllowMirrorByTags(value
// WithMirrors adds the given value to the Mirrors field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Mirrors field.
-func (b *RepositoryDigestMirrorsApplyConfiguration) WithMirrors(values ...v1.Mirror) *RepositoryDigestMirrorsApplyConfiguration {
+func (b *RepositoryDigestMirrorsApplyConfiguration) WithMirrors(values ...configv1.Mirror) *RepositoryDigestMirrorsApplyConfiguration {
for i := range values {
b.Mirrors = append(b.Mirrors, values[i])
}
diff --git a/config/applyconfigurations/config/v1/requiredhstspolicy.go b/config/applyconfigurations/config/v1/requiredhstspolicy.go
index a9ffe1350..c68466123 100644
--- a/config/applyconfigurations/config/v1/requiredhstspolicy.go
+++ b/config/applyconfigurations/config/v1/requiredhstspolicy.go
@@ -3,18 +3,18 @@
package v1
import (
- apiconfigv1 "github.com/openshift/api/config/v1"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ configv1 "github.com/openshift/api/config/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// RequiredHSTSPolicyApplyConfiguration represents a declarative configuration of the RequiredHSTSPolicy type for use
// with apply.
type RequiredHSTSPolicyApplyConfiguration struct {
- NamespaceSelector *v1.LabelSelectorApplyConfiguration `json:"namespaceSelector,omitempty"`
- DomainPatterns []string `json:"domainPatterns,omitempty"`
- MaxAge *MaxAgePolicyApplyConfiguration `json:"maxAge,omitempty"`
- PreloadPolicy *apiconfigv1.PreloadPolicy `json:"preloadPolicy,omitempty"`
- IncludeSubDomainsPolicy *apiconfigv1.IncludeSubDomainsPolicy `json:"includeSubDomainsPolicy,omitempty"`
+ NamespaceSelector *metav1.LabelSelectorApplyConfiguration `json:"namespaceSelector,omitempty"`
+ DomainPatterns []string `json:"domainPatterns,omitempty"`
+ MaxAge *MaxAgePolicyApplyConfiguration `json:"maxAge,omitempty"`
+ PreloadPolicy *configv1.PreloadPolicy `json:"preloadPolicy,omitempty"`
+ IncludeSubDomainsPolicy *configv1.IncludeSubDomainsPolicy `json:"includeSubDomainsPolicy,omitempty"`
}
// RequiredHSTSPolicyApplyConfiguration constructs a declarative configuration of the RequiredHSTSPolicy type for use with
@@ -26,7 +26,7 @@ func RequiredHSTSPolicy() *RequiredHSTSPolicyApplyConfiguration {
// WithNamespaceSelector sets the NamespaceSelector field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the NamespaceSelector field is set to the value of the last call.
-func (b *RequiredHSTSPolicyApplyConfiguration) WithNamespaceSelector(value *v1.LabelSelectorApplyConfiguration) *RequiredHSTSPolicyApplyConfiguration {
+func (b *RequiredHSTSPolicyApplyConfiguration) WithNamespaceSelector(value *metav1.LabelSelectorApplyConfiguration) *RequiredHSTSPolicyApplyConfiguration {
b.NamespaceSelector = value
return b
}
@@ -52,7 +52,7 @@ func (b *RequiredHSTSPolicyApplyConfiguration) WithMaxAge(value *MaxAgePolicyApp
// WithPreloadPolicy sets the PreloadPolicy field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the PreloadPolicy field is set to the value of the last call.
-func (b *RequiredHSTSPolicyApplyConfiguration) WithPreloadPolicy(value apiconfigv1.PreloadPolicy) *RequiredHSTSPolicyApplyConfiguration {
+func (b *RequiredHSTSPolicyApplyConfiguration) WithPreloadPolicy(value configv1.PreloadPolicy) *RequiredHSTSPolicyApplyConfiguration {
b.PreloadPolicy = &value
return b
}
@@ -60,7 +60,7 @@ func (b *RequiredHSTSPolicyApplyConfiguration) WithPreloadPolicy(value apiconfig
// WithIncludeSubDomainsPolicy sets the IncludeSubDomainsPolicy field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the IncludeSubDomainsPolicy field is set to the value of the last call.
-func (b *RequiredHSTSPolicyApplyConfiguration) WithIncludeSubDomainsPolicy(value apiconfigv1.IncludeSubDomainsPolicy) *RequiredHSTSPolicyApplyConfiguration {
+func (b *RequiredHSTSPolicyApplyConfiguration) WithIncludeSubDomainsPolicy(value configv1.IncludeSubDomainsPolicy) *RequiredHSTSPolicyApplyConfiguration {
b.IncludeSubDomainsPolicy = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/scheduler.go b/config/applyconfigurations/config/v1/scheduler.go
index 33e73fab9..fa2323d72 100644
--- a/config/applyconfigurations/config/v1/scheduler.go
+++ b/config/applyconfigurations/config/v1/scheduler.go
@@ -3,21 +3,21 @@
package v1
import (
- apiconfigv1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
internal "github.com/openshift/client-go/config/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// SchedulerApplyConfiguration represents a declarative configuration of the Scheduler type for use
// with apply.
type SchedulerApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *SchedulerSpecApplyConfiguration `json:"spec,omitempty"`
- Status *apiconfigv1.SchedulerStatus `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *SchedulerSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *configv1.SchedulerStatus `json:"status,omitempty"`
}
// Scheduler constructs a declarative configuration of the Scheduler type for use with
@@ -41,18 +41,18 @@ func Scheduler(name string) *SchedulerApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractScheduler(scheduler *apiconfigv1.Scheduler, fieldManager string) (*SchedulerApplyConfiguration, error) {
+func ExtractScheduler(scheduler *configv1.Scheduler, fieldManager string) (*SchedulerApplyConfiguration, error) {
return extractScheduler(scheduler, fieldManager, "")
}
// ExtractSchedulerStatus is the same as ExtractScheduler except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractSchedulerStatus(scheduler *apiconfigv1.Scheduler, fieldManager string) (*SchedulerApplyConfiguration, error) {
+func ExtractSchedulerStatus(scheduler *configv1.Scheduler, fieldManager string) (*SchedulerApplyConfiguration, error) {
return extractScheduler(scheduler, fieldManager, "status")
}
-func extractScheduler(scheduler *apiconfigv1.Scheduler, fieldManager string, subresource string) (*SchedulerApplyConfiguration, error) {
+func extractScheduler(scheduler *configv1.Scheduler, fieldManager string, subresource string) (*SchedulerApplyConfiguration, error) {
b := &SchedulerApplyConfiguration{}
err := managedfields.ExtractInto(scheduler, internal.Parser().Type("com.github.openshift.api.config.v1.Scheduler"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractScheduler(scheduler *apiconfigv1.Scheduler, fieldManager string, sub
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *SchedulerApplyConfiguration) WithKind(value string) *SchedulerApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *SchedulerApplyConfiguration) WithKind(value string) *SchedulerApplyConf
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *SchedulerApplyConfiguration) WithAPIVersion(value string) *SchedulerApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *SchedulerApplyConfiguration) WithAPIVersion(value string) *SchedulerApp
// If called multiple times, the Name field is set to the value of the last call.
func (b *SchedulerApplyConfiguration) WithName(value string) *SchedulerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *SchedulerApplyConfiguration) WithName(value string) *SchedulerApplyConf
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *SchedulerApplyConfiguration) WithGenerateName(value string) *SchedulerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *SchedulerApplyConfiguration) WithGenerateName(value string) *SchedulerA
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *SchedulerApplyConfiguration) WithNamespace(value string) *SchedulerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *SchedulerApplyConfiguration) WithNamespace(value string) *SchedulerAppl
// If called multiple times, the UID field is set to the value of the last call.
func (b *SchedulerApplyConfiguration) WithUID(value types.UID) *SchedulerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *SchedulerApplyConfiguration) WithUID(value types.UID) *SchedulerApplyCo
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *SchedulerApplyConfiguration) WithResourceVersion(value string) *SchedulerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *SchedulerApplyConfiguration) WithResourceVersion(value string) *Schedul
// If called multiple times, the Generation field is set to the value of the last call.
func (b *SchedulerApplyConfiguration) WithGeneration(value int64) *SchedulerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *SchedulerApplyConfiguration) WithCreationTimestamp(value metav1.Time) *SchedulerApplyConfiguration {
+func (b *SchedulerApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *SchedulerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *SchedulerApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *SchedulerApplyConfiguration {
+func (b *SchedulerApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *SchedulerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *SchedulerApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *SchedulerApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *SchedulerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *SchedulerApplyConfiguration) WithDeletionGracePeriodSeconds(value int64
// overwriting an existing map entries in Labels field with the same key.
func (b *SchedulerApplyConfiguration) WithLabels(entries map[string]string) *SchedulerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *SchedulerApplyConfiguration) WithLabels(entries map[string]string) *Sch
// overwriting an existing map entries in Annotations field with the same key.
func (b *SchedulerApplyConfiguration) WithAnnotations(entries map[string]string) *SchedulerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *SchedulerApplyConfiguration) WithAnnotations(entries map[string]string)
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *SchedulerApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *SchedulerApplyConfiguration {
+func (b *SchedulerApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *SchedulerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *SchedulerApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRef
func (b *SchedulerApplyConfiguration) WithFinalizers(values ...string) *SchedulerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *SchedulerApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -234,7 +234,7 @@ func (b *SchedulerApplyConfiguration) WithSpec(value *SchedulerSpecApplyConfigur
// WithStatus sets the Status field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Status field is set to the value of the last call.
-func (b *SchedulerApplyConfiguration) WithStatus(value apiconfigv1.SchedulerStatus) *SchedulerApplyConfiguration {
+func (b *SchedulerApplyConfiguration) WithStatus(value configv1.SchedulerStatus) *SchedulerApplyConfiguration {
b.Status = &value
return b
}
@@ -242,5 +242,5 @@ func (b *SchedulerApplyConfiguration) WithStatus(value apiconfigv1.SchedulerStat
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *SchedulerApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/config/applyconfigurations/config/v1/tlsprofilespec.go b/config/applyconfigurations/config/v1/tlsprofilespec.go
index c874fcf0c..43590d0ef 100644
--- a/config/applyconfigurations/config/v1/tlsprofilespec.go
+++ b/config/applyconfigurations/config/v1/tlsprofilespec.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// TLSProfileSpecApplyConfiguration represents a declarative configuration of the TLSProfileSpec type for use
// with apply.
type TLSProfileSpecApplyConfiguration struct {
- Ciphers []string `json:"ciphers,omitempty"`
- MinTLSVersion *v1.TLSProtocolVersion `json:"minTLSVersion,omitempty"`
+ Ciphers []string `json:"ciphers,omitempty"`
+ MinTLSVersion *configv1.TLSProtocolVersion `json:"minTLSVersion,omitempty"`
}
// TLSProfileSpecApplyConfiguration constructs a declarative configuration of the TLSProfileSpec type for use with
@@ -32,7 +32,7 @@ func (b *TLSProfileSpecApplyConfiguration) WithCiphers(values ...string) *TLSPro
// WithMinTLSVersion sets the MinTLSVersion field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the MinTLSVersion field is set to the value of the last call.
-func (b *TLSProfileSpecApplyConfiguration) WithMinTLSVersion(value v1.TLSProtocolVersion) *TLSProfileSpecApplyConfiguration {
+func (b *TLSProfileSpecApplyConfiguration) WithMinTLSVersion(value configv1.TLSProtocolVersion) *TLSProfileSpecApplyConfiguration {
b.MinTLSVersion = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/tlssecurityprofile.go b/config/applyconfigurations/config/v1/tlssecurityprofile.go
index 004632489..e5806e33c 100644
--- a/config/applyconfigurations/config/v1/tlssecurityprofile.go
+++ b/config/applyconfigurations/config/v1/tlssecurityprofile.go
@@ -3,16 +3,16 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// TLSSecurityProfileApplyConfiguration represents a declarative configuration of the TLSSecurityProfile type for use
// with apply.
type TLSSecurityProfileApplyConfiguration struct {
- Type *v1.TLSProfileType `json:"type,omitempty"`
- Old *v1.OldTLSProfile `json:"old,omitempty"`
- Intermediate *v1.IntermediateTLSProfile `json:"intermediate,omitempty"`
- Modern *v1.ModernTLSProfile `json:"modern,omitempty"`
+ Type *configv1.TLSProfileType `json:"type,omitempty"`
+ Old *configv1.OldTLSProfile `json:"old,omitempty"`
+ Intermediate *configv1.IntermediateTLSProfile `json:"intermediate,omitempty"`
+ Modern *configv1.ModernTLSProfile `json:"modern,omitempty"`
Custom *CustomTLSProfileApplyConfiguration `json:"custom,omitempty"`
}
@@ -25,7 +25,7 @@ func TLSSecurityProfile() *TLSSecurityProfileApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *TLSSecurityProfileApplyConfiguration) WithType(value v1.TLSProfileType) *TLSSecurityProfileApplyConfiguration {
+func (b *TLSSecurityProfileApplyConfiguration) WithType(value configv1.TLSProfileType) *TLSSecurityProfileApplyConfiguration {
b.Type = &value
return b
}
@@ -33,7 +33,7 @@ func (b *TLSSecurityProfileApplyConfiguration) WithType(value v1.TLSProfileType)
// WithOld sets the Old field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Old field is set to the value of the last call.
-func (b *TLSSecurityProfileApplyConfiguration) WithOld(value v1.OldTLSProfile) *TLSSecurityProfileApplyConfiguration {
+func (b *TLSSecurityProfileApplyConfiguration) WithOld(value configv1.OldTLSProfile) *TLSSecurityProfileApplyConfiguration {
b.Old = &value
return b
}
@@ -41,7 +41,7 @@ func (b *TLSSecurityProfileApplyConfiguration) WithOld(value v1.OldTLSProfile) *
// WithIntermediate sets the Intermediate field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Intermediate field is set to the value of the last call.
-func (b *TLSSecurityProfileApplyConfiguration) WithIntermediate(value v1.IntermediateTLSProfile) *TLSSecurityProfileApplyConfiguration {
+func (b *TLSSecurityProfileApplyConfiguration) WithIntermediate(value configv1.IntermediateTLSProfile) *TLSSecurityProfileApplyConfiguration {
b.Intermediate = &value
return b
}
@@ -49,7 +49,7 @@ func (b *TLSSecurityProfileApplyConfiguration) WithIntermediate(value v1.Interme
// WithModern sets the Modern field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Modern field is set to the value of the last call.
-func (b *TLSSecurityProfileApplyConfiguration) WithModern(value v1.ModernTLSProfile) *TLSSecurityProfileApplyConfiguration {
+func (b *TLSSecurityProfileApplyConfiguration) WithModern(value configv1.ModernTLSProfile) *TLSSecurityProfileApplyConfiguration {
b.Modern = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/tokenclaimvalidationrule.go b/config/applyconfigurations/config/v1/tokenclaimvalidationrule.go
index ad9968eef..74e9f6109 100644
--- a/config/applyconfigurations/config/v1/tokenclaimvalidationrule.go
+++ b/config/applyconfigurations/config/v1/tokenclaimvalidationrule.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// TokenClaimValidationRuleApplyConfiguration represents a declarative configuration of the TokenClaimValidationRule type for use
// with apply.
type TokenClaimValidationRuleApplyConfiguration struct {
- Type *v1.TokenValidationRuleType `json:"type,omitempty"`
+ Type *configv1.TokenValidationRuleType `json:"type,omitempty"`
RequiredClaim *TokenRequiredClaimApplyConfiguration `json:"requiredClaim,omitempty"`
}
@@ -22,7 +22,7 @@ func TokenClaimValidationRule() *TokenClaimValidationRuleApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *TokenClaimValidationRuleApplyConfiguration) WithType(value v1.TokenValidationRuleType) *TokenClaimValidationRuleApplyConfiguration {
+func (b *TokenClaimValidationRuleApplyConfiguration) WithType(value configv1.TokenValidationRuleType) *TokenClaimValidationRuleApplyConfiguration {
b.Type = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/tokenconfig.go b/config/applyconfigurations/config/v1/tokenconfig.go
index 7a103935e..e1b6c4b51 100644
--- a/config/applyconfigurations/config/v1/tokenconfig.go
+++ b/config/applyconfigurations/config/v1/tokenconfig.go
@@ -3,15 +3,15 @@
package v1
import (
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// TokenConfigApplyConfiguration represents a declarative configuration of the TokenConfig type for use
// with apply.
type TokenConfigApplyConfiguration struct {
- AccessTokenMaxAgeSeconds *int32 `json:"accessTokenMaxAgeSeconds,omitempty"`
- AccessTokenInactivityTimeoutSeconds *int32 `json:"accessTokenInactivityTimeoutSeconds,omitempty"`
- AccessTokenInactivityTimeout *v1.Duration `json:"accessTokenInactivityTimeout,omitempty"`
+ AccessTokenMaxAgeSeconds *int32 `json:"accessTokenMaxAgeSeconds,omitempty"`
+ AccessTokenInactivityTimeoutSeconds *int32 `json:"accessTokenInactivityTimeoutSeconds,omitempty"`
+ AccessTokenInactivityTimeout *metav1.Duration `json:"accessTokenInactivityTimeout,omitempty"`
}
// TokenConfigApplyConfiguration constructs a declarative configuration of the TokenConfig type for use with
@@ -39,7 +39,7 @@ func (b *TokenConfigApplyConfiguration) WithAccessTokenInactivityTimeoutSeconds(
// WithAccessTokenInactivityTimeout sets the AccessTokenInactivityTimeout field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the AccessTokenInactivityTimeout field is set to the value of the last call.
-func (b *TokenConfigApplyConfiguration) WithAccessTokenInactivityTimeout(value v1.Duration) *TokenConfigApplyConfiguration {
+func (b *TokenConfigApplyConfiguration) WithAccessTokenInactivityTimeout(value metav1.Duration) *TokenConfigApplyConfiguration {
b.AccessTokenInactivityTimeout = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/tokenissuer.go b/config/applyconfigurations/config/v1/tokenissuer.go
index 0811ca729..68f590abc 100644
--- a/config/applyconfigurations/config/v1/tokenissuer.go
+++ b/config/applyconfigurations/config/v1/tokenissuer.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// TokenIssuerApplyConfiguration represents a declarative configuration of the TokenIssuer type for use
// with apply.
type TokenIssuerApplyConfiguration struct {
URL *string `json:"issuerURL,omitempty"`
- Audiences []v1.TokenAudience `json:"audiences,omitempty"`
+ Audiences []configv1.TokenAudience `json:"audiences,omitempty"`
CertificateAuthority *ConfigMapNameReferenceApplyConfiguration `json:"issuerCertificateAuthority,omitempty"`
}
@@ -31,7 +31,7 @@ func (b *TokenIssuerApplyConfiguration) WithURL(value string) *TokenIssuerApplyC
// WithAudiences adds the given value to the Audiences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Audiences field.
-func (b *TokenIssuerApplyConfiguration) WithAudiences(values ...v1.TokenAudience) *TokenIssuerApplyConfiguration {
+func (b *TokenIssuerApplyConfiguration) WithAudiences(values ...configv1.TokenAudience) *TokenIssuerApplyConfiguration {
for i := range values {
b.Audiences = append(b.Audiences, values[i])
}
diff --git a/config/applyconfigurations/config/v1/update.go b/config/applyconfigurations/config/v1/update.go
index 1d1547d87..004d1bac2 100644
--- a/config/applyconfigurations/config/v1/update.go
+++ b/config/applyconfigurations/config/v1/update.go
@@ -3,16 +3,16 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// UpdateApplyConfiguration represents a declarative configuration of the Update type for use
// with apply.
type UpdateApplyConfiguration struct {
- Architecture *v1.ClusterVersionArchitecture `json:"architecture,omitempty"`
- Version *string `json:"version,omitempty"`
- Image *string `json:"image,omitempty"`
- Force *bool `json:"force,omitempty"`
+ Architecture *configv1.ClusterVersionArchitecture `json:"architecture,omitempty"`
+ Version *string `json:"version,omitempty"`
+ Image *string `json:"image,omitempty"`
+ Force *bool `json:"force,omitempty"`
}
// UpdateApplyConfiguration constructs a declarative configuration of the Update type for use with
@@ -24,7 +24,7 @@ func Update() *UpdateApplyConfiguration {
// WithArchitecture sets the Architecture field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Architecture field is set to the value of the last call.
-func (b *UpdateApplyConfiguration) WithArchitecture(value v1.ClusterVersionArchitecture) *UpdateApplyConfiguration {
+func (b *UpdateApplyConfiguration) WithArchitecture(value configv1.ClusterVersionArchitecture) *UpdateApplyConfiguration {
b.Architecture = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/updatehistory.go b/config/applyconfigurations/config/v1/updatehistory.go
index 6a4deaf3f..b7998eb61 100644
--- a/config/applyconfigurations/config/v1/updatehistory.go
+++ b/config/applyconfigurations/config/v1/updatehistory.go
@@ -3,20 +3,20 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// UpdateHistoryApplyConfiguration represents a declarative configuration of the UpdateHistory type for use
// with apply.
type UpdateHistoryApplyConfiguration struct {
- State *v1.UpdateState `json:"state,omitempty"`
- StartedTime *metav1.Time `json:"startedTime,omitempty"`
- CompletionTime *metav1.Time `json:"completionTime,omitempty"`
- Version *string `json:"version,omitempty"`
- Image *string `json:"image,omitempty"`
- Verified *bool `json:"verified,omitempty"`
- AcceptedRisks *string `json:"acceptedRisks,omitempty"`
+ State *configv1.UpdateState `json:"state,omitempty"`
+ StartedTime *metav1.Time `json:"startedTime,omitempty"`
+ CompletionTime *metav1.Time `json:"completionTime,omitempty"`
+ Version *string `json:"version,omitempty"`
+ Image *string `json:"image,omitempty"`
+ Verified *bool `json:"verified,omitempty"`
+ AcceptedRisks *string `json:"acceptedRisks,omitempty"`
}
// UpdateHistoryApplyConfiguration constructs a declarative configuration of the UpdateHistory type for use with
@@ -28,7 +28,7 @@ func UpdateHistory() *UpdateHistoryApplyConfiguration {
// WithState sets the State field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the State field is set to the value of the last call.
-func (b *UpdateHistoryApplyConfiguration) WithState(value v1.UpdateState) *UpdateHistoryApplyConfiguration {
+func (b *UpdateHistoryApplyConfiguration) WithState(value configv1.UpdateState) *UpdateHistoryApplyConfiguration {
b.State = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/usernameclaimmapping.go b/config/applyconfigurations/config/v1/usernameclaimmapping.go
index daec7fb46..e90a90117 100644
--- a/config/applyconfigurations/config/v1/usernameclaimmapping.go
+++ b/config/applyconfigurations/config/v1/usernameclaimmapping.go
@@ -24,7 +24,7 @@ func UsernameClaimMapping() *UsernameClaimMappingApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Claim field is set to the value of the last call.
func (b *UsernameClaimMappingApplyConfiguration) WithClaim(value string) *UsernameClaimMappingApplyConfiguration {
- b.Claim = &value
+ b.TokenClaimMappingApplyConfiguration.Claim = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/vspherefailuredomainregionaffinity.go b/config/applyconfigurations/config/v1/vspherefailuredomainregionaffinity.go
index 316e8e4d6..bf923d829 100644
--- a/config/applyconfigurations/config/v1/vspherefailuredomainregionaffinity.go
+++ b/config/applyconfigurations/config/v1/vspherefailuredomainregionaffinity.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// VSphereFailureDomainRegionAffinityApplyConfiguration represents a declarative configuration of the VSphereFailureDomainRegionAffinity type for use
// with apply.
type VSphereFailureDomainRegionAffinityApplyConfiguration struct {
- Type *v1.VSphereFailureDomainRegionType `json:"type,omitempty"`
+ Type *configv1.VSphereFailureDomainRegionType `json:"type,omitempty"`
}
// VSphereFailureDomainRegionAffinityApplyConfiguration constructs a declarative configuration of the VSphereFailureDomainRegionAffinity type for use with
@@ -21,7 +21,7 @@ func VSphereFailureDomainRegionAffinity() *VSphereFailureDomainRegionAffinityApp
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *VSphereFailureDomainRegionAffinityApplyConfiguration) WithType(value v1.VSphereFailureDomainRegionType) *VSphereFailureDomainRegionAffinityApplyConfiguration {
+func (b *VSphereFailureDomainRegionAffinityApplyConfiguration) WithType(value configv1.VSphereFailureDomainRegionType) *VSphereFailureDomainRegionAffinityApplyConfiguration {
b.Type = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/vspherefailuredomainzoneaffinity.go b/config/applyconfigurations/config/v1/vspherefailuredomainzoneaffinity.go
index a00c370f1..5bbbe9556 100644
--- a/config/applyconfigurations/config/v1/vspherefailuredomainzoneaffinity.go
+++ b/config/applyconfigurations/config/v1/vspherefailuredomainzoneaffinity.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// VSphereFailureDomainZoneAffinityApplyConfiguration represents a declarative configuration of the VSphereFailureDomainZoneAffinity type for use
// with apply.
type VSphereFailureDomainZoneAffinityApplyConfiguration struct {
- Type *v1.VSphereFailureDomainZoneType `json:"type,omitempty"`
+ Type *configv1.VSphereFailureDomainZoneType `json:"type,omitempty"`
HostGroup *VSphereFailureDomainHostGroupApplyConfiguration `json:"hostGroup,omitempty"`
}
@@ -22,7 +22,7 @@ func VSphereFailureDomainZoneAffinity() *VSphereFailureDomainZoneAffinityApplyCo
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *VSphereFailureDomainZoneAffinityApplyConfiguration) WithType(value v1.VSphereFailureDomainZoneType) *VSphereFailureDomainZoneAffinityApplyConfiguration {
+func (b *VSphereFailureDomainZoneAffinityApplyConfiguration) WithType(value configv1.VSphereFailureDomainZoneType) *VSphereFailureDomainZoneAffinityApplyConfiguration {
b.Type = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/vsphereplatformloadbalancer.go b/config/applyconfigurations/config/v1/vsphereplatformloadbalancer.go
index d1dcebec4..9eb2f57aa 100644
--- a/config/applyconfigurations/config/v1/vsphereplatformloadbalancer.go
+++ b/config/applyconfigurations/config/v1/vsphereplatformloadbalancer.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// VSpherePlatformLoadBalancerApplyConfiguration represents a declarative configuration of the VSpherePlatformLoadBalancer type for use
// with apply.
type VSpherePlatformLoadBalancerApplyConfiguration struct {
- Type *v1.PlatformLoadBalancerType `json:"type,omitempty"`
+ Type *configv1.PlatformLoadBalancerType `json:"type,omitempty"`
}
// VSpherePlatformLoadBalancerApplyConfiguration constructs a declarative configuration of the VSpherePlatformLoadBalancer type for use with
@@ -21,7 +21,7 @@ func VSpherePlatformLoadBalancer() *VSpherePlatformLoadBalancerApplyConfiguratio
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *VSpherePlatformLoadBalancerApplyConfiguration) WithType(value v1.PlatformLoadBalancerType) *VSpherePlatformLoadBalancerApplyConfiguration {
+func (b *VSpherePlatformLoadBalancerApplyConfiguration) WithType(value configv1.PlatformLoadBalancerType) *VSpherePlatformLoadBalancerApplyConfiguration {
b.Type = &value
return b
}
diff --git a/config/applyconfigurations/config/v1alpha1/backup.go b/config/applyconfigurations/config/v1alpha1/backup.go
index e5a58f264..b4982de15 100644
--- a/config/applyconfigurations/config/v1alpha1/backup.go
+++ b/config/applyconfigurations/config/v1alpha1/backup.go
@@ -69,7 +69,7 @@ func extractBackup(backup *configv1alpha1.Backup, fieldManager string, subresour
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *BackupApplyConfiguration) WithKind(value string) *BackupApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *BackupApplyConfiguration) WithKind(value string) *BackupApplyConfigurat
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *BackupApplyConfiguration) WithAPIVersion(value string) *BackupApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *BackupApplyConfiguration) WithAPIVersion(value string) *BackupApplyConf
// If called multiple times, the Name field is set to the value of the last call.
func (b *BackupApplyConfiguration) WithName(value string) *BackupApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *BackupApplyConfiguration) WithName(value string) *BackupApplyConfigurat
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *BackupApplyConfiguration) WithGenerateName(value string) *BackupApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *BackupApplyConfiguration) WithGenerateName(value string) *BackupApplyCo
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *BackupApplyConfiguration) WithNamespace(value string) *BackupApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *BackupApplyConfiguration) WithNamespace(value string) *BackupApplyConfi
// If called multiple times, the UID field is set to the value of the last call.
func (b *BackupApplyConfiguration) WithUID(value types.UID) *BackupApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *BackupApplyConfiguration) WithUID(value types.UID) *BackupApplyConfigur
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *BackupApplyConfiguration) WithResourceVersion(value string) *BackupApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,7 +131,7 @@ func (b *BackupApplyConfiguration) WithResourceVersion(value string) *BackupAppl
// If called multiple times, the Generation field is set to the value of the last call.
func (b *BackupApplyConfiguration) WithGeneration(value int64) *BackupApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
@@ -140,7 +140,7 @@ func (b *BackupApplyConfiguration) WithGeneration(value int64) *BackupApplyConfi
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
func (b *BackupApplyConfiguration) WithCreationTimestamp(value metav1.Time) *BackupApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
@@ -149,7 +149,7 @@ func (b *BackupApplyConfiguration) WithCreationTimestamp(value metav1.Time) *Bac
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
func (b *BackupApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *BackupApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *BackupApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *Bac
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *BackupApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *BackupApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *BackupApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *
// overwriting an existing map entries in Labels field with the same key.
func (b *BackupApplyConfiguration) WithLabels(entries map[string]string) *BackupApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *BackupApplyConfiguration) WithLabels(entries map[string]string) *Backup
// overwriting an existing map entries in Annotations field with the same key.
func (b *BackupApplyConfiguration) WithAnnotations(entries map[string]string) *BackupApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -201,7 +201,7 @@ func (b *BackupApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefere
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,7 +212,7 @@ func (b *BackupApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefere
func (b *BackupApplyConfiguration) WithFinalizers(values ...string) *BackupApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
@@ -242,5 +242,5 @@ func (b *BackupApplyConfiguration) WithStatus(value configv1alpha1.BackupStatus)
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *BackupApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/config/applyconfigurations/config/v1alpha1/clusterimagepolicy.go b/config/applyconfigurations/config/v1alpha1/clusterimagepolicy.go
index 1e462c3c5..f3d7fdb77 100644
--- a/config/applyconfigurations/config/v1alpha1/clusterimagepolicy.go
+++ b/config/applyconfigurations/config/v1alpha1/clusterimagepolicy.go
@@ -69,7 +69,7 @@ func extractClusterImagePolicy(clusterImagePolicy *configv1alpha1.ClusterImagePo
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ClusterImagePolicyApplyConfiguration) WithKind(value string) *ClusterImagePolicyApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *ClusterImagePolicyApplyConfiguration) WithKind(value string) *ClusterIm
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ClusterImagePolicyApplyConfiguration) WithAPIVersion(value string) *ClusterImagePolicyApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *ClusterImagePolicyApplyConfiguration) WithAPIVersion(value string) *Clu
// If called multiple times, the Name field is set to the value of the last call.
func (b *ClusterImagePolicyApplyConfiguration) WithName(value string) *ClusterImagePolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *ClusterImagePolicyApplyConfiguration) WithName(value string) *ClusterIm
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ClusterImagePolicyApplyConfiguration) WithGenerateName(value string) *ClusterImagePolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *ClusterImagePolicyApplyConfiguration) WithGenerateName(value string) *C
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ClusterImagePolicyApplyConfiguration) WithNamespace(value string) *ClusterImagePolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *ClusterImagePolicyApplyConfiguration) WithNamespace(value string) *Clus
// If called multiple times, the UID field is set to the value of the last call.
func (b *ClusterImagePolicyApplyConfiguration) WithUID(value types.UID) *ClusterImagePolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *ClusterImagePolicyApplyConfiguration) WithUID(value types.UID) *Cluster
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ClusterImagePolicyApplyConfiguration) WithResourceVersion(value string) *ClusterImagePolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,7 +131,7 @@ func (b *ClusterImagePolicyApplyConfiguration) WithResourceVersion(value string)
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ClusterImagePolicyApplyConfiguration) WithGeneration(value int64) *ClusterImagePolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
@@ -140,7 +140,7 @@ func (b *ClusterImagePolicyApplyConfiguration) WithGeneration(value int64) *Clus
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
func (b *ClusterImagePolicyApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ClusterImagePolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
@@ -149,7 +149,7 @@ func (b *ClusterImagePolicyApplyConfiguration) WithCreationTimestamp(value metav
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
func (b *ClusterImagePolicyApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ClusterImagePolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *ClusterImagePolicyApplyConfiguration) WithDeletionTimestamp(value metav
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ClusterImagePolicyApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ClusterImagePolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *ClusterImagePolicyApplyConfiguration) WithDeletionGracePeriodSeconds(va
// overwriting an existing map entries in Labels field with the same key.
func (b *ClusterImagePolicyApplyConfiguration) WithLabels(entries map[string]string) *ClusterImagePolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *ClusterImagePolicyApplyConfiguration) WithLabels(entries map[string]str
// overwriting an existing map entries in Annotations field with the same key.
func (b *ClusterImagePolicyApplyConfiguration) WithAnnotations(entries map[string]string) *ClusterImagePolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -201,7 +201,7 @@ func (b *ClusterImagePolicyApplyConfiguration) WithOwnerReferences(values ...*v1
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,7 +212,7 @@ func (b *ClusterImagePolicyApplyConfiguration) WithOwnerReferences(values ...*v1
func (b *ClusterImagePolicyApplyConfiguration) WithFinalizers(values ...string) *ClusterImagePolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
@@ -242,5 +242,5 @@ func (b *ClusterImagePolicyApplyConfiguration) WithStatus(value *ClusterImagePol
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ClusterImagePolicyApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/config/applyconfigurations/config/v1alpha1/clusterimagepolicyspec.go b/config/applyconfigurations/config/v1alpha1/clusterimagepolicyspec.go
index bbb25ceb6..e4a3470c4 100644
--- a/config/applyconfigurations/config/v1alpha1/clusterimagepolicyspec.go
+++ b/config/applyconfigurations/config/v1alpha1/clusterimagepolicyspec.go
@@ -3,14 +3,14 @@
package v1alpha1
import (
- v1alpha1 "github.com/openshift/api/config/v1alpha1"
+ configv1alpha1 "github.com/openshift/api/config/v1alpha1"
)
// ClusterImagePolicySpecApplyConfiguration represents a declarative configuration of the ClusterImagePolicySpec type for use
// with apply.
type ClusterImagePolicySpecApplyConfiguration struct {
- Scopes []v1alpha1.ImageScope `json:"scopes,omitempty"`
- Policy *PolicyApplyConfiguration `json:"policy,omitempty"`
+ Scopes []configv1alpha1.ImageScope `json:"scopes,omitempty"`
+ Policy *PolicyApplyConfiguration `json:"policy,omitempty"`
}
// ClusterImagePolicySpecApplyConfiguration constructs a declarative configuration of the ClusterImagePolicySpec type for use with
@@ -22,7 +22,7 @@ func ClusterImagePolicySpec() *ClusterImagePolicySpecApplyConfiguration {
// WithScopes adds the given value to the Scopes field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Scopes field.
-func (b *ClusterImagePolicySpecApplyConfiguration) WithScopes(values ...v1alpha1.ImageScope) *ClusterImagePolicySpecApplyConfiguration {
+func (b *ClusterImagePolicySpecApplyConfiguration) WithScopes(values ...configv1alpha1.ImageScope) *ClusterImagePolicySpecApplyConfiguration {
for i := range values {
b.Scopes = append(b.Scopes, values[i])
}
diff --git a/config/applyconfigurations/config/v1/clustermonitoring.go b/config/applyconfigurations/config/v1alpha1/clustermonitoring.go
similarity index 82%
rename from config/applyconfigurations/config/v1/clustermonitoring.go
rename to config/applyconfigurations/config/v1alpha1/clustermonitoring.go
index 10f8ff8d9..b935706eb 100644
--- a/config/applyconfigurations/config/v1/clustermonitoring.go
+++ b/config/applyconfigurations/config/v1alpha1/clustermonitoring.go
@@ -1,9 +1,9 @@
// Code generated by applyconfiguration-gen. DO NOT EDIT.
-package v1
+package v1alpha1
import (
- apiconfigv1 "github.com/openshift/api/config/v1"
+ configv1alpha1 "github.com/openshift/api/config/v1alpha1"
internal "github.com/openshift/client-go/config/applyconfigurations/internal"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -17,7 +17,7 @@ type ClusterMonitoringApplyConfiguration struct {
v1.TypeMetaApplyConfiguration `json:",inline"`
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
Spec *ClusterMonitoringSpecApplyConfiguration `json:"spec,omitempty"`
- Status *apiconfigv1.ClusterMonitoringStatus `json:"status,omitempty"`
+ Status *configv1alpha1.ClusterMonitoringStatus `json:"status,omitempty"`
}
// ClusterMonitoring constructs a declarative configuration of the ClusterMonitoring type for use with
@@ -26,7 +26,7 @@ func ClusterMonitoring(name string) *ClusterMonitoringApplyConfiguration {
b := &ClusterMonitoringApplyConfiguration{}
b.WithName(name)
b.WithKind("ClusterMonitoring")
- b.WithAPIVersion("config.openshift.io/v1")
+ b.WithAPIVersion("config.openshift.io/v1alpha1")
return b
}
@@ -41,27 +41,27 @@ func ClusterMonitoring(name string) *ClusterMonitoringApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractClusterMonitoring(clusterMonitoring *apiconfigv1.ClusterMonitoring, fieldManager string) (*ClusterMonitoringApplyConfiguration, error) {
+func ExtractClusterMonitoring(clusterMonitoring *configv1alpha1.ClusterMonitoring, fieldManager string) (*ClusterMonitoringApplyConfiguration, error) {
return extractClusterMonitoring(clusterMonitoring, fieldManager, "")
}
// ExtractClusterMonitoringStatus is the same as ExtractClusterMonitoring except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractClusterMonitoringStatus(clusterMonitoring *apiconfigv1.ClusterMonitoring, fieldManager string) (*ClusterMonitoringApplyConfiguration, error) {
+func ExtractClusterMonitoringStatus(clusterMonitoring *configv1alpha1.ClusterMonitoring, fieldManager string) (*ClusterMonitoringApplyConfiguration, error) {
return extractClusterMonitoring(clusterMonitoring, fieldManager, "status")
}
-func extractClusterMonitoring(clusterMonitoring *apiconfigv1.ClusterMonitoring, fieldManager string, subresource string) (*ClusterMonitoringApplyConfiguration, error) {
+func extractClusterMonitoring(clusterMonitoring *configv1alpha1.ClusterMonitoring, fieldManager string, subresource string) (*ClusterMonitoringApplyConfiguration, error) {
b := &ClusterMonitoringApplyConfiguration{}
- err := managedfields.ExtractInto(clusterMonitoring, internal.Parser().Type("com.github.openshift.api.config.v1.ClusterMonitoring"), fieldManager, b, subresource)
+ err := managedfields.ExtractInto(clusterMonitoring, internal.Parser().Type("com.github.openshift.api.config.v1alpha1.ClusterMonitoring"), fieldManager, b, subresource)
if err != nil {
return nil, err
}
b.WithName(clusterMonitoring.Name)
b.WithKind("ClusterMonitoring")
- b.WithAPIVersion("config.openshift.io/v1")
+ b.WithAPIVersion("config.openshift.io/v1alpha1")
return b, nil
}
@@ -69,7 +69,7 @@ func extractClusterMonitoring(clusterMonitoring *apiconfigv1.ClusterMonitoring,
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ClusterMonitoringApplyConfiguration) WithKind(value string) *ClusterMonitoringApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *ClusterMonitoringApplyConfiguration) WithKind(value string) *ClusterMon
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ClusterMonitoringApplyConfiguration) WithAPIVersion(value string) *ClusterMonitoringApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *ClusterMonitoringApplyConfiguration) WithAPIVersion(value string) *Clus
// If called multiple times, the Name field is set to the value of the last call.
func (b *ClusterMonitoringApplyConfiguration) WithName(value string) *ClusterMonitoringApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *ClusterMonitoringApplyConfiguration) WithName(value string) *ClusterMon
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ClusterMonitoringApplyConfiguration) WithGenerateName(value string) *ClusterMonitoringApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *ClusterMonitoringApplyConfiguration) WithGenerateName(value string) *Cl
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ClusterMonitoringApplyConfiguration) WithNamespace(value string) *ClusterMonitoringApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *ClusterMonitoringApplyConfiguration) WithNamespace(value string) *Clust
// If called multiple times, the UID field is set to the value of the last call.
func (b *ClusterMonitoringApplyConfiguration) WithUID(value types.UID) *ClusterMonitoringApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *ClusterMonitoringApplyConfiguration) WithUID(value types.UID) *ClusterM
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ClusterMonitoringApplyConfiguration) WithResourceVersion(value string) *ClusterMonitoringApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,7 +131,7 @@ func (b *ClusterMonitoringApplyConfiguration) WithResourceVersion(value string)
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ClusterMonitoringApplyConfiguration) WithGeneration(value int64) *ClusterMonitoringApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
@@ -140,7 +140,7 @@ func (b *ClusterMonitoringApplyConfiguration) WithGeneration(value int64) *Clust
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
func (b *ClusterMonitoringApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ClusterMonitoringApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
@@ -149,7 +149,7 @@ func (b *ClusterMonitoringApplyConfiguration) WithCreationTimestamp(value metav1
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
func (b *ClusterMonitoringApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ClusterMonitoringApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *ClusterMonitoringApplyConfiguration) WithDeletionTimestamp(value metav1
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ClusterMonitoringApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ClusterMonitoringApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *ClusterMonitoringApplyConfiguration) WithDeletionGracePeriodSeconds(val
// overwriting an existing map entries in Labels field with the same key.
func (b *ClusterMonitoringApplyConfiguration) WithLabels(entries map[string]string) *ClusterMonitoringApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *ClusterMonitoringApplyConfiguration) WithLabels(entries map[string]stri
// overwriting an existing map entries in Annotations field with the same key.
func (b *ClusterMonitoringApplyConfiguration) WithAnnotations(entries map[string]string) *ClusterMonitoringApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -201,7 +201,7 @@ func (b *ClusterMonitoringApplyConfiguration) WithOwnerReferences(values ...*v1.
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,7 +212,7 @@ func (b *ClusterMonitoringApplyConfiguration) WithOwnerReferences(values ...*v1.
func (b *ClusterMonitoringApplyConfiguration) WithFinalizers(values ...string) *ClusterMonitoringApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
@@ -234,7 +234,7 @@ func (b *ClusterMonitoringApplyConfiguration) WithSpec(value *ClusterMonitoringS
// WithStatus sets the Status field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Status field is set to the value of the last call.
-func (b *ClusterMonitoringApplyConfiguration) WithStatus(value apiconfigv1.ClusterMonitoringStatus) *ClusterMonitoringApplyConfiguration {
+func (b *ClusterMonitoringApplyConfiguration) WithStatus(value configv1alpha1.ClusterMonitoringStatus) *ClusterMonitoringApplyConfiguration {
b.Status = &value
return b
}
@@ -242,5 +242,5 @@ func (b *ClusterMonitoringApplyConfiguration) WithStatus(value apiconfigv1.Clust
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ClusterMonitoringApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/config/applyconfigurations/config/v1/clustermonitoringspec.go b/config/applyconfigurations/config/v1alpha1/clustermonitoringspec.go
similarity index 98%
rename from config/applyconfigurations/config/v1/clustermonitoringspec.go
rename to config/applyconfigurations/config/v1alpha1/clustermonitoringspec.go
index 33d08de2d..28fa2d7c3 100644
--- a/config/applyconfigurations/config/v1/clustermonitoringspec.go
+++ b/config/applyconfigurations/config/v1alpha1/clustermonitoringspec.go
@@ -1,6 +1,6 @@
// Code generated by applyconfiguration-gen. DO NOT EDIT.
-package v1
+package v1alpha1
// ClusterMonitoringSpecApplyConfiguration represents a declarative configuration of the ClusterMonitoringSpec type for use
// with apply.
diff --git a/config/applyconfigurations/config/v1alpha1/gatherconfig.go b/config/applyconfigurations/config/v1alpha1/gatherconfig.go
index 0f3edbd9f..e870fe6c2 100644
--- a/config/applyconfigurations/config/v1alpha1/gatherconfig.go
+++ b/config/applyconfigurations/config/v1alpha1/gatherconfig.go
@@ -3,14 +3,14 @@
package v1alpha1
import (
- v1alpha1 "github.com/openshift/api/config/v1alpha1"
+ configv1alpha1 "github.com/openshift/api/config/v1alpha1"
)
// GatherConfigApplyConfiguration represents a declarative configuration of the GatherConfig type for use
// with apply.
type GatherConfigApplyConfiguration struct {
- DataPolicy *v1alpha1.DataPolicy `json:"dataPolicy,omitempty"`
- DisabledGatherers []string `json:"disabledGatherers,omitempty"`
+ DataPolicy *configv1alpha1.DataPolicy `json:"dataPolicy,omitempty"`
+ DisabledGatherers []string `json:"disabledGatherers,omitempty"`
}
// GatherConfigApplyConfiguration constructs a declarative configuration of the GatherConfig type for use with
@@ -22,7 +22,7 @@ func GatherConfig() *GatherConfigApplyConfiguration {
// WithDataPolicy sets the DataPolicy field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DataPolicy field is set to the value of the last call.
-func (b *GatherConfigApplyConfiguration) WithDataPolicy(value v1alpha1.DataPolicy) *GatherConfigApplyConfiguration {
+func (b *GatherConfigApplyConfiguration) WithDataPolicy(value configv1alpha1.DataPolicy) *GatherConfigApplyConfiguration {
b.DataPolicy = &value
return b
}
diff --git a/config/applyconfigurations/config/v1alpha1/imagepolicy.go b/config/applyconfigurations/config/v1alpha1/imagepolicy.go
index f08aa7e47..6595aa782 100644
--- a/config/applyconfigurations/config/v1alpha1/imagepolicy.go
+++ b/config/applyconfigurations/config/v1alpha1/imagepolicy.go
@@ -71,7 +71,7 @@ func extractImagePolicy(imagePolicy *configv1alpha1.ImagePolicy, fieldManager st
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ImagePolicyApplyConfiguration) WithKind(value string) *ImagePolicyApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -79,7 +79,7 @@ func (b *ImagePolicyApplyConfiguration) WithKind(value string) *ImagePolicyApply
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ImagePolicyApplyConfiguration) WithAPIVersion(value string) *ImagePolicyApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -88,7 +88,7 @@ func (b *ImagePolicyApplyConfiguration) WithAPIVersion(value string) *ImagePolic
// If called multiple times, the Name field is set to the value of the last call.
func (b *ImagePolicyApplyConfiguration) WithName(value string) *ImagePolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -97,7 +97,7 @@ func (b *ImagePolicyApplyConfiguration) WithName(value string) *ImagePolicyApply
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ImagePolicyApplyConfiguration) WithGenerateName(value string) *ImagePolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -106,7 +106,7 @@ func (b *ImagePolicyApplyConfiguration) WithGenerateName(value string) *ImagePol
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ImagePolicyApplyConfiguration) WithNamespace(value string) *ImagePolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -115,7 +115,7 @@ func (b *ImagePolicyApplyConfiguration) WithNamespace(value string) *ImagePolicy
// If called multiple times, the UID field is set to the value of the last call.
func (b *ImagePolicyApplyConfiguration) WithUID(value types.UID) *ImagePolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -124,7 +124,7 @@ func (b *ImagePolicyApplyConfiguration) WithUID(value types.UID) *ImagePolicyApp
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ImagePolicyApplyConfiguration) WithResourceVersion(value string) *ImagePolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -133,7 +133,7 @@ func (b *ImagePolicyApplyConfiguration) WithResourceVersion(value string) *Image
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ImagePolicyApplyConfiguration) WithGeneration(value int64) *ImagePolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
@@ -142,7 +142,7 @@ func (b *ImagePolicyApplyConfiguration) WithGeneration(value int64) *ImagePolicy
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
func (b *ImagePolicyApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ImagePolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
@@ -151,7 +151,7 @@ func (b *ImagePolicyApplyConfiguration) WithCreationTimestamp(value metav1.Time)
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
func (b *ImagePolicyApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ImagePolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -160,7 +160,7 @@ func (b *ImagePolicyApplyConfiguration) WithDeletionTimestamp(value metav1.Time)
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ImagePolicyApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ImagePolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -170,11 +170,11 @@ func (b *ImagePolicyApplyConfiguration) WithDeletionGracePeriodSeconds(value int
// overwriting an existing map entries in Labels field with the same key.
func (b *ImagePolicyApplyConfiguration) WithLabels(entries map[string]string) *ImagePolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -185,11 +185,11 @@ func (b *ImagePolicyApplyConfiguration) WithLabels(entries map[string]string) *I
// overwriting an existing map entries in Annotations field with the same key.
func (b *ImagePolicyApplyConfiguration) WithAnnotations(entries map[string]string) *ImagePolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -203,7 +203,7 @@ func (b *ImagePolicyApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerR
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -214,7 +214,7 @@ func (b *ImagePolicyApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerR
func (b *ImagePolicyApplyConfiguration) WithFinalizers(values ...string) *ImagePolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
@@ -244,5 +244,5 @@ func (b *ImagePolicyApplyConfiguration) WithStatus(value *ImagePolicyStatusApply
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ImagePolicyApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/config/applyconfigurations/config/v1alpha1/imagepolicyspec.go b/config/applyconfigurations/config/v1alpha1/imagepolicyspec.go
index 1c706d99f..ac08e9cf4 100644
--- a/config/applyconfigurations/config/v1alpha1/imagepolicyspec.go
+++ b/config/applyconfigurations/config/v1alpha1/imagepolicyspec.go
@@ -3,14 +3,14 @@
package v1alpha1
import (
- v1alpha1 "github.com/openshift/api/config/v1alpha1"
+ configv1alpha1 "github.com/openshift/api/config/v1alpha1"
)
// ImagePolicySpecApplyConfiguration represents a declarative configuration of the ImagePolicySpec type for use
// with apply.
type ImagePolicySpecApplyConfiguration struct {
- Scopes []v1alpha1.ImageScope `json:"scopes,omitempty"`
- Policy *PolicyApplyConfiguration `json:"policy,omitempty"`
+ Scopes []configv1alpha1.ImageScope `json:"scopes,omitempty"`
+ Policy *PolicyApplyConfiguration `json:"policy,omitempty"`
}
// ImagePolicySpecApplyConfiguration constructs a declarative configuration of the ImagePolicySpec type for use with
@@ -22,7 +22,7 @@ func ImagePolicySpec() *ImagePolicySpecApplyConfiguration {
// WithScopes adds the given value to the Scopes field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Scopes field.
-func (b *ImagePolicySpecApplyConfiguration) WithScopes(values ...v1alpha1.ImageScope) *ImagePolicySpecApplyConfiguration {
+func (b *ImagePolicySpecApplyConfiguration) WithScopes(values ...configv1alpha1.ImageScope) *ImagePolicySpecApplyConfiguration {
for i := range values {
b.Scopes = append(b.Scopes, values[i])
}
diff --git a/config/applyconfigurations/config/v1alpha1/insightsdatagather.go b/config/applyconfigurations/config/v1alpha1/insightsdatagather.go
index d743eec8d..cf4ae1f00 100644
--- a/config/applyconfigurations/config/v1alpha1/insightsdatagather.go
+++ b/config/applyconfigurations/config/v1alpha1/insightsdatagather.go
@@ -69,7 +69,7 @@ func extractInsightsDataGather(insightsDataGather *configv1alpha1.InsightsDataGa
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *InsightsDataGatherApplyConfiguration) WithKind(value string) *InsightsDataGatherApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *InsightsDataGatherApplyConfiguration) WithKind(value string) *InsightsD
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *InsightsDataGatherApplyConfiguration) WithAPIVersion(value string) *InsightsDataGatherApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *InsightsDataGatherApplyConfiguration) WithAPIVersion(value string) *Ins
// If called multiple times, the Name field is set to the value of the last call.
func (b *InsightsDataGatherApplyConfiguration) WithName(value string) *InsightsDataGatherApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *InsightsDataGatherApplyConfiguration) WithName(value string) *InsightsD
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *InsightsDataGatherApplyConfiguration) WithGenerateName(value string) *InsightsDataGatherApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *InsightsDataGatherApplyConfiguration) WithGenerateName(value string) *I
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *InsightsDataGatherApplyConfiguration) WithNamespace(value string) *InsightsDataGatherApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *InsightsDataGatherApplyConfiguration) WithNamespace(value string) *Insi
// If called multiple times, the UID field is set to the value of the last call.
func (b *InsightsDataGatherApplyConfiguration) WithUID(value types.UID) *InsightsDataGatherApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *InsightsDataGatherApplyConfiguration) WithUID(value types.UID) *Insight
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *InsightsDataGatherApplyConfiguration) WithResourceVersion(value string) *InsightsDataGatherApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,7 +131,7 @@ func (b *InsightsDataGatherApplyConfiguration) WithResourceVersion(value string)
// If called multiple times, the Generation field is set to the value of the last call.
func (b *InsightsDataGatherApplyConfiguration) WithGeneration(value int64) *InsightsDataGatherApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
@@ -140,7 +140,7 @@ func (b *InsightsDataGatherApplyConfiguration) WithGeneration(value int64) *Insi
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
func (b *InsightsDataGatherApplyConfiguration) WithCreationTimestamp(value metav1.Time) *InsightsDataGatherApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
@@ -149,7 +149,7 @@ func (b *InsightsDataGatherApplyConfiguration) WithCreationTimestamp(value metav
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
func (b *InsightsDataGatherApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *InsightsDataGatherApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *InsightsDataGatherApplyConfiguration) WithDeletionTimestamp(value metav
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *InsightsDataGatherApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *InsightsDataGatherApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *InsightsDataGatherApplyConfiguration) WithDeletionGracePeriodSeconds(va
// overwriting an existing map entries in Labels field with the same key.
func (b *InsightsDataGatherApplyConfiguration) WithLabels(entries map[string]string) *InsightsDataGatherApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *InsightsDataGatherApplyConfiguration) WithLabels(entries map[string]str
// overwriting an existing map entries in Annotations field with the same key.
func (b *InsightsDataGatherApplyConfiguration) WithAnnotations(entries map[string]string) *InsightsDataGatherApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -201,7 +201,7 @@ func (b *InsightsDataGatherApplyConfiguration) WithOwnerReferences(values ...*v1
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,7 +212,7 @@ func (b *InsightsDataGatherApplyConfiguration) WithOwnerReferences(values ...*v1
func (b *InsightsDataGatherApplyConfiguration) WithFinalizers(values ...string) *InsightsDataGatherApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
@@ -242,5 +242,5 @@ func (b *InsightsDataGatherApplyConfiguration) WithStatus(value configv1alpha1.I
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *InsightsDataGatherApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/config/applyconfigurations/config/v1alpha1/policyidentity.go b/config/applyconfigurations/config/v1alpha1/policyidentity.go
index 157c04281..c03a2d663 100644
--- a/config/applyconfigurations/config/v1alpha1/policyidentity.go
+++ b/config/applyconfigurations/config/v1alpha1/policyidentity.go
@@ -3,13 +3,13 @@
package v1alpha1
import (
- v1alpha1 "github.com/openshift/api/config/v1alpha1"
+ configv1alpha1 "github.com/openshift/api/config/v1alpha1"
)
// PolicyIdentityApplyConfiguration represents a declarative configuration of the PolicyIdentity type for use
// with apply.
type PolicyIdentityApplyConfiguration struct {
- MatchPolicy *v1alpha1.IdentityMatchPolicy `json:"matchPolicy,omitempty"`
+ MatchPolicy *configv1alpha1.IdentityMatchPolicy `json:"matchPolicy,omitempty"`
PolicyMatchExactRepository *PolicyMatchExactRepositoryApplyConfiguration `json:"exactRepository,omitempty"`
PolicyMatchRemapIdentity *PolicyMatchRemapIdentityApplyConfiguration `json:"remapIdentity,omitempty"`
}
@@ -23,7 +23,7 @@ func PolicyIdentity() *PolicyIdentityApplyConfiguration {
// WithMatchPolicy sets the MatchPolicy field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the MatchPolicy field is set to the value of the last call.
-func (b *PolicyIdentityApplyConfiguration) WithMatchPolicy(value v1alpha1.IdentityMatchPolicy) *PolicyIdentityApplyConfiguration {
+func (b *PolicyIdentityApplyConfiguration) WithMatchPolicy(value configv1alpha1.IdentityMatchPolicy) *PolicyIdentityApplyConfiguration {
b.MatchPolicy = &value
return b
}
diff --git a/config/applyconfigurations/config/v1alpha1/policymatchexactrepository.go b/config/applyconfigurations/config/v1alpha1/policymatchexactrepository.go
index 8b0499ddb..58870d5eb 100644
--- a/config/applyconfigurations/config/v1alpha1/policymatchexactrepository.go
+++ b/config/applyconfigurations/config/v1alpha1/policymatchexactrepository.go
@@ -3,13 +3,13 @@
package v1alpha1
import (
- v1alpha1 "github.com/openshift/api/config/v1alpha1"
+ configv1alpha1 "github.com/openshift/api/config/v1alpha1"
)
// PolicyMatchExactRepositoryApplyConfiguration represents a declarative configuration of the PolicyMatchExactRepository type for use
// with apply.
type PolicyMatchExactRepositoryApplyConfiguration struct {
- Repository *v1alpha1.IdentityRepositoryPrefix `json:"repository,omitempty"`
+ Repository *configv1alpha1.IdentityRepositoryPrefix `json:"repository,omitempty"`
}
// PolicyMatchExactRepositoryApplyConfiguration constructs a declarative configuration of the PolicyMatchExactRepository type for use with
@@ -21,7 +21,7 @@ func PolicyMatchExactRepository() *PolicyMatchExactRepositoryApplyConfiguration
// WithRepository sets the Repository field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Repository field is set to the value of the last call.
-func (b *PolicyMatchExactRepositoryApplyConfiguration) WithRepository(value v1alpha1.IdentityRepositoryPrefix) *PolicyMatchExactRepositoryApplyConfiguration {
+func (b *PolicyMatchExactRepositoryApplyConfiguration) WithRepository(value configv1alpha1.IdentityRepositoryPrefix) *PolicyMatchExactRepositoryApplyConfiguration {
b.Repository = &value
return b
}
diff --git a/config/applyconfigurations/config/v1alpha1/policymatchremapidentity.go b/config/applyconfigurations/config/v1alpha1/policymatchremapidentity.go
index bfe573c9a..09075d0be 100644
--- a/config/applyconfigurations/config/v1alpha1/policymatchremapidentity.go
+++ b/config/applyconfigurations/config/v1alpha1/policymatchremapidentity.go
@@ -3,14 +3,14 @@
package v1alpha1
import (
- v1alpha1 "github.com/openshift/api/config/v1alpha1"
+ configv1alpha1 "github.com/openshift/api/config/v1alpha1"
)
// PolicyMatchRemapIdentityApplyConfiguration represents a declarative configuration of the PolicyMatchRemapIdentity type for use
// with apply.
type PolicyMatchRemapIdentityApplyConfiguration struct {
- Prefix *v1alpha1.IdentityRepositoryPrefix `json:"prefix,omitempty"`
- SignedPrefix *v1alpha1.IdentityRepositoryPrefix `json:"signedPrefix,omitempty"`
+ Prefix *configv1alpha1.IdentityRepositoryPrefix `json:"prefix,omitempty"`
+ SignedPrefix *configv1alpha1.IdentityRepositoryPrefix `json:"signedPrefix,omitempty"`
}
// PolicyMatchRemapIdentityApplyConfiguration constructs a declarative configuration of the PolicyMatchRemapIdentity type for use with
@@ -22,7 +22,7 @@ func PolicyMatchRemapIdentity() *PolicyMatchRemapIdentityApplyConfiguration {
// WithPrefix sets the Prefix field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Prefix field is set to the value of the last call.
-func (b *PolicyMatchRemapIdentityApplyConfiguration) WithPrefix(value v1alpha1.IdentityRepositoryPrefix) *PolicyMatchRemapIdentityApplyConfiguration {
+func (b *PolicyMatchRemapIdentityApplyConfiguration) WithPrefix(value configv1alpha1.IdentityRepositoryPrefix) *PolicyMatchRemapIdentityApplyConfiguration {
b.Prefix = &value
return b
}
@@ -30,7 +30,7 @@ func (b *PolicyMatchRemapIdentityApplyConfiguration) WithPrefix(value v1alpha1.I
// WithSignedPrefix sets the SignedPrefix field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the SignedPrefix field is set to the value of the last call.
-func (b *PolicyMatchRemapIdentityApplyConfiguration) WithSignedPrefix(value v1alpha1.IdentityRepositoryPrefix) *PolicyMatchRemapIdentityApplyConfiguration {
+func (b *PolicyMatchRemapIdentityApplyConfiguration) WithSignedPrefix(value configv1alpha1.IdentityRepositoryPrefix) *PolicyMatchRemapIdentityApplyConfiguration {
b.SignedPrefix = &value
return b
}
diff --git a/config/applyconfigurations/config/v1alpha1/policyrootoftrust.go b/config/applyconfigurations/config/v1alpha1/policyrootoftrust.go
index ca4c73f6a..c525e1667 100644
--- a/config/applyconfigurations/config/v1alpha1/policyrootoftrust.go
+++ b/config/applyconfigurations/config/v1alpha1/policyrootoftrust.go
@@ -3,13 +3,13 @@
package v1alpha1
import (
- v1alpha1 "github.com/openshift/api/config/v1alpha1"
+ configv1alpha1 "github.com/openshift/api/config/v1alpha1"
)
// PolicyRootOfTrustApplyConfiguration represents a declarative configuration of the PolicyRootOfTrust type for use
// with apply.
type PolicyRootOfTrustApplyConfiguration struct {
- PolicyType *v1alpha1.PolicyType `json:"policyType,omitempty"`
+ PolicyType *configv1alpha1.PolicyType `json:"policyType,omitempty"`
PublicKey *PublicKeyApplyConfiguration `json:"publicKey,omitempty"`
FulcioCAWithRekor *FulcioCAWithRekorApplyConfiguration `json:"fulcioCAWithRekor,omitempty"`
}
@@ -23,7 +23,7 @@ func PolicyRootOfTrust() *PolicyRootOfTrustApplyConfiguration {
// WithPolicyType sets the PolicyType field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the PolicyType field is set to the value of the last call.
-func (b *PolicyRootOfTrustApplyConfiguration) WithPolicyType(value v1alpha1.PolicyType) *PolicyRootOfTrustApplyConfiguration {
+func (b *PolicyRootOfTrustApplyConfiguration) WithPolicyType(value configv1alpha1.PolicyType) *PolicyRootOfTrustApplyConfiguration {
b.PolicyType = &value
return b
}
diff --git a/config/applyconfigurations/config/v1alpha1/retentionpolicy.go b/config/applyconfigurations/config/v1alpha1/retentionpolicy.go
index 8fe865a97..981fb2573 100644
--- a/config/applyconfigurations/config/v1alpha1/retentionpolicy.go
+++ b/config/applyconfigurations/config/v1alpha1/retentionpolicy.go
@@ -3,13 +3,13 @@
package v1alpha1
import (
- v1alpha1 "github.com/openshift/api/config/v1alpha1"
+ configv1alpha1 "github.com/openshift/api/config/v1alpha1"
)
// RetentionPolicyApplyConfiguration represents a declarative configuration of the RetentionPolicy type for use
// with apply.
type RetentionPolicyApplyConfiguration struct {
- RetentionType *v1alpha1.RetentionType `json:"retentionType,omitempty"`
+ RetentionType *configv1alpha1.RetentionType `json:"retentionType,omitempty"`
RetentionNumber *RetentionNumberConfigApplyConfiguration `json:"retentionNumber,omitempty"`
RetentionSize *RetentionSizeConfigApplyConfiguration `json:"retentionSize,omitempty"`
}
@@ -23,7 +23,7 @@ func RetentionPolicy() *RetentionPolicyApplyConfiguration {
// WithRetentionType sets the RetentionType field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the RetentionType field is set to the value of the last call.
-func (b *RetentionPolicyApplyConfiguration) WithRetentionType(value v1alpha1.RetentionType) *RetentionPolicyApplyConfiguration {
+func (b *RetentionPolicyApplyConfiguration) WithRetentionType(value configv1alpha1.RetentionType) *RetentionPolicyApplyConfiguration {
b.RetentionType = &value
return b
}
diff --git a/config/applyconfigurations/config/v1/userdefinedmonitoring.go b/config/applyconfigurations/config/v1alpha1/userdefinedmonitoring.go
similarity index 80%
rename from config/applyconfigurations/config/v1/userdefinedmonitoring.go
rename to config/applyconfigurations/config/v1alpha1/userdefinedmonitoring.go
index 676555528..5aa6998f9 100644
--- a/config/applyconfigurations/config/v1/userdefinedmonitoring.go
+++ b/config/applyconfigurations/config/v1alpha1/userdefinedmonitoring.go
@@ -1,15 +1,15 @@
// Code generated by applyconfiguration-gen. DO NOT EDIT.
-package v1
+package v1alpha1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1alpha1 "github.com/openshift/api/config/v1alpha1"
)
// UserDefinedMonitoringApplyConfiguration represents a declarative configuration of the UserDefinedMonitoring type for use
// with apply.
type UserDefinedMonitoringApplyConfiguration struct {
- Mode *v1.UserDefinedMode `json:"mode,omitempty"`
+ Mode *configv1alpha1.UserDefinedMode `json:"mode,omitempty"`
}
// UserDefinedMonitoringApplyConfiguration constructs a declarative configuration of the UserDefinedMonitoring type for use with
@@ -21,7 +21,7 @@ func UserDefinedMonitoring() *UserDefinedMonitoringApplyConfiguration {
// WithMode sets the Mode field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Mode field is set to the value of the last call.
-func (b *UserDefinedMonitoringApplyConfiguration) WithMode(value v1.UserDefinedMode) *UserDefinedMonitoringApplyConfiguration {
+func (b *UserDefinedMonitoringApplyConfiguration) WithMode(value configv1alpha1.UserDefinedMode) *UserDefinedMonitoringApplyConfiguration {
b.Mode = &value
return b
}
diff --git a/config/applyconfigurations/internal/internal.go b/config/applyconfigurations/internal/internal.go
index 611454559..5af2eeb17 100644
--- a/config/applyconfigurations/internal/internal.go
+++ b/config/applyconfigurations/internal/internal.go
@@ -3,8 +3,8 @@
package internal
import (
- "fmt"
- "sync"
+ fmt "fmt"
+ sync "sync"
typed "sigs.k8s.io/structured-merge-diff/v4/typed"
)
@@ -578,46 +578,6 @@ var schemaYAML = typed.YAMLObject(`types:
type:
scalar: string
default: ""
-- name: com.github.openshift.api.config.v1.ClusterMonitoring
- map:
- fields:
- - name: apiVersion
- type:
- scalar: string
- - name: kind
- type:
- scalar: string
- - name: metadata
- type:
- namedType: io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta
- default: {}
- - name: spec
- type:
- namedType: com.github.openshift.api.config.v1.ClusterMonitoringSpec
- default: {}
- - name: status
- type:
- namedType: com.github.openshift.api.config.v1.ClusterMonitoringStatus
- default: {}
-- name: com.github.openshift.api.config.v1.ClusterMonitoringSpec
- map:
- fields:
- - name: userDefined
- type:
- namedType: com.github.openshift.api.config.v1.UserDefinedMonitoring
- default: {}
-- name: com.github.openshift.api.config.v1.ClusterMonitoringStatus
- map:
- elementType:
- scalar: untyped
- list:
- elementType:
- namedType: __untyped_atomic_
- elementRelationship: atomic
- map:
- elementType:
- namedType: __untyped_deduced_
- elementRelationship: separable
- name: com.github.openshift.api.config.v1.ClusterNetworkEntry
map:
fields:
@@ -3411,13 +3371,6 @@ var schemaYAML = typed.YAMLObject(`types:
type:
scalar: string
default: ""
-- name: com.github.openshift.api.config.v1.UserDefinedMonitoring
- map:
- fields:
- - name: mode
- type:
- scalar: string
- default: ""
- name: com.github.openshift.api.config.v1.UsernameClaimMapping
map:
fields:
@@ -3757,6 +3710,46 @@ var schemaYAML = typed.YAMLObject(`types:
elementRelationship: associative
keys:
- type
+- name: com.github.openshift.api.config.v1alpha1.ClusterMonitoring
+ map:
+ fields:
+ - name: apiVersion
+ type:
+ scalar: string
+ - name: kind
+ type:
+ scalar: string
+ - name: metadata
+ type:
+ namedType: io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta
+ default: {}
+ - name: spec
+ type:
+ namedType: com.github.openshift.api.config.v1alpha1.ClusterMonitoringSpec
+ default: {}
+ - name: status
+ type:
+ namedType: com.github.openshift.api.config.v1alpha1.ClusterMonitoringStatus
+ default: {}
+- name: com.github.openshift.api.config.v1alpha1.ClusterMonitoringSpec
+ map:
+ fields:
+ - name: userDefined
+ type:
+ namedType: com.github.openshift.api.config.v1alpha1.UserDefinedMonitoring
+ default: {}
+- name: com.github.openshift.api.config.v1alpha1.ClusterMonitoringStatus
+ map:
+ elementType:
+ scalar: untyped
+ list:
+ elementType:
+ namedType: __untyped_atomic_
+ elementRelationship: atomic
+ map:
+ elementType:
+ namedType: __untyped_deduced_
+ elementRelationship: separable
- name: com.github.openshift.api.config.v1alpha1.EtcdBackupSpec
map:
fields:
@@ -4007,6 +4000,13 @@ var schemaYAML = typed.YAMLObject(`types:
- name: maxSizeOfBackupsGb
type:
scalar: numeric
+- name: com.github.openshift.api.config.v1alpha1.UserDefinedMonitoring
+ map:
+ fields:
+ - name: mode
+ type:
+ scalar: string
+ default: ""
- name: io.k8s.api.core.v1.ConfigMapKeySelector
map:
fields:
diff --git a/config/applyconfigurations/utils.go b/config/applyconfigurations/utils.go
index fa2ad5c5e..26ef2604f 100644
--- a/config/applyconfigurations/utils.go
+++ b/config/applyconfigurations/utils.go
@@ -82,10 +82,6 @@ func ForKind(kind schema.GroupVersionKind) interface{} {
return &configv1.CloudLoadBalancerIPsApplyConfiguration{}
case v1.SchemeGroupVersion.WithKind("ClusterCondition"):
return &configv1.ClusterConditionApplyConfiguration{}
- case v1.SchemeGroupVersion.WithKind("ClusterMonitoring"):
- return &configv1.ClusterMonitoringApplyConfiguration{}
- case v1.SchemeGroupVersion.WithKind("ClusterMonitoringSpec"):
- return &configv1.ClusterMonitoringSpecApplyConfiguration{}
case v1.SchemeGroupVersion.WithKind("ClusterNetworkEntry"):
return &configv1.ClusterNetworkEntryApplyConfiguration{}
case v1.SchemeGroupVersion.WithKind("ClusterOperator"):
@@ -384,8 +380,6 @@ func ForKind(kind schema.GroupVersionKind) interface{} {
return &configv1.UpdateApplyConfiguration{}
case v1.SchemeGroupVersion.WithKind("UpdateHistory"):
return &configv1.UpdateHistoryApplyConfiguration{}
- case v1.SchemeGroupVersion.WithKind("UserDefinedMonitoring"):
- return &configv1.UserDefinedMonitoringApplyConfiguration{}
case v1.SchemeGroupVersion.WithKind("UsernameClaimMapping"):
return &configv1.UsernameClaimMappingApplyConfiguration{}
case v1.SchemeGroupVersion.WithKind("UsernamePrefix"):
@@ -426,6 +420,10 @@ func ForKind(kind schema.GroupVersionKind) interface{} {
return &configv1alpha1.ClusterImagePolicySpecApplyConfiguration{}
case v1alpha1.SchemeGroupVersion.WithKind("ClusterImagePolicyStatus"):
return &configv1alpha1.ClusterImagePolicyStatusApplyConfiguration{}
+ case v1alpha1.SchemeGroupVersion.WithKind("ClusterMonitoring"):
+ return &configv1alpha1.ClusterMonitoringApplyConfiguration{}
+ case v1alpha1.SchemeGroupVersion.WithKind("ClusterMonitoringSpec"):
+ return &configv1alpha1.ClusterMonitoringSpecApplyConfiguration{}
case v1alpha1.SchemeGroupVersion.WithKind("EtcdBackupSpec"):
return &configv1alpha1.EtcdBackupSpecApplyConfiguration{}
case v1alpha1.SchemeGroupVersion.WithKind("FulcioCAWithRekor"):
@@ -462,6 +460,8 @@ func ForKind(kind schema.GroupVersionKind) interface{} {
return &configv1alpha1.RetentionPolicyApplyConfiguration{}
case v1alpha1.SchemeGroupVersion.WithKind("RetentionSizeConfig"):
return &configv1alpha1.RetentionSizeConfigApplyConfiguration{}
+ case v1alpha1.SchemeGroupVersion.WithKind("UserDefinedMonitoring"):
+ return &configv1alpha1.UserDefinedMonitoringApplyConfiguration{}
}
return nil
diff --git a/config/clientset/versioned/clientset.go b/config/clientset/versioned/clientset.go
index 29896542d..f9ed357b6 100644
--- a/config/clientset/versioned/clientset.go
+++ b/config/clientset/versioned/clientset.go
@@ -3,8 +3,8 @@
package versioned
import (
- "fmt"
- "net/http"
+ fmt "fmt"
+ http "net/http"
configv1 "github.com/openshift/client-go/config/clientset/versioned/typed/config/v1"
configv1alpha1 "github.com/openshift/client-go/config/clientset/versioned/typed/config/v1alpha1"
diff --git a/config/clientset/versioned/typed/config/v1/apiserver.go b/config/clientset/versioned/typed/config/v1/apiserver.go
index 5751cebe7..20e56733a 100644
--- a/config/clientset/versioned/typed/config/v1/apiserver.go
+++ b/config/clientset/versioned/typed/config/v1/apiserver.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/config/v1"
- configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
+ applyconfigurationsconfigv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
scheme "github.com/openshift/client-go/config/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type APIServersGetter interface {
// APIServerInterface has methods to work with APIServer resources.
type APIServerInterface interface {
- Create(ctx context.Context, aPIServer *v1.APIServer, opts metav1.CreateOptions) (*v1.APIServer, error)
- Update(ctx context.Context, aPIServer *v1.APIServer, opts metav1.UpdateOptions) (*v1.APIServer, error)
+ Create(ctx context.Context, aPIServer *configv1.APIServer, opts metav1.CreateOptions) (*configv1.APIServer, error)
+ Update(ctx context.Context, aPIServer *configv1.APIServer, opts metav1.UpdateOptions) (*configv1.APIServer, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, aPIServer *v1.APIServer, opts metav1.UpdateOptions) (*v1.APIServer, error)
+ UpdateStatus(ctx context.Context, aPIServer *configv1.APIServer, opts metav1.UpdateOptions) (*configv1.APIServer, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.APIServer, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.APIServerList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*configv1.APIServer, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*configv1.APIServerList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.APIServer, err error)
- Apply(ctx context.Context, aPIServer *configv1.APIServerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.APIServer, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *configv1.APIServer, err error)
+ Apply(ctx context.Context, aPIServer *applyconfigurationsconfigv1.APIServerApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.APIServer, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, aPIServer *configv1.APIServerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.APIServer, err error)
+ ApplyStatus(ctx context.Context, aPIServer *applyconfigurationsconfigv1.APIServerApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.APIServer, err error)
APIServerExpansion
}
// aPIServers implements APIServerInterface
type aPIServers struct {
- *gentype.ClientWithListAndApply[*v1.APIServer, *v1.APIServerList, *configv1.APIServerApplyConfiguration]
+ *gentype.ClientWithListAndApply[*configv1.APIServer, *configv1.APIServerList, *applyconfigurationsconfigv1.APIServerApplyConfiguration]
}
// newAPIServers returns a APIServers
func newAPIServers(c *ConfigV1Client) *aPIServers {
return &aPIServers{
- gentype.NewClientWithListAndApply[*v1.APIServer, *v1.APIServerList, *configv1.APIServerApplyConfiguration](
+ gentype.NewClientWithListAndApply[*configv1.APIServer, *configv1.APIServerList, *applyconfigurationsconfigv1.APIServerApplyConfiguration](
"apiservers",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.APIServer { return &v1.APIServer{} },
- func() *v1.APIServerList { return &v1.APIServerList{} }),
+ func() *configv1.APIServer { return &configv1.APIServer{} },
+ func() *configv1.APIServerList { return &configv1.APIServerList{} },
+ ),
}
}
diff --git a/config/clientset/versioned/typed/config/v1/authentication.go b/config/clientset/versioned/typed/config/v1/authentication.go
index 89b1779b3..f2f9cae61 100644
--- a/config/clientset/versioned/typed/config/v1/authentication.go
+++ b/config/clientset/versioned/typed/config/v1/authentication.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/config/v1"
- configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
+ applyconfigurationsconfigv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
scheme "github.com/openshift/client-go/config/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type AuthenticationsGetter interface {
// AuthenticationInterface has methods to work with Authentication resources.
type AuthenticationInterface interface {
- Create(ctx context.Context, authentication *v1.Authentication, opts metav1.CreateOptions) (*v1.Authentication, error)
- Update(ctx context.Context, authentication *v1.Authentication, opts metav1.UpdateOptions) (*v1.Authentication, error)
+ Create(ctx context.Context, authentication *configv1.Authentication, opts metav1.CreateOptions) (*configv1.Authentication, error)
+ Update(ctx context.Context, authentication *configv1.Authentication, opts metav1.UpdateOptions) (*configv1.Authentication, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, authentication *v1.Authentication, opts metav1.UpdateOptions) (*v1.Authentication, error)
+ UpdateStatus(ctx context.Context, authentication *configv1.Authentication, opts metav1.UpdateOptions) (*configv1.Authentication, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Authentication, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.AuthenticationList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*configv1.Authentication, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*configv1.AuthenticationList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Authentication, err error)
- Apply(ctx context.Context, authentication *configv1.AuthenticationApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Authentication, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *configv1.Authentication, err error)
+ Apply(ctx context.Context, authentication *applyconfigurationsconfigv1.AuthenticationApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.Authentication, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, authentication *configv1.AuthenticationApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Authentication, err error)
+ ApplyStatus(ctx context.Context, authentication *applyconfigurationsconfigv1.AuthenticationApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.Authentication, err error)
AuthenticationExpansion
}
// authentications implements AuthenticationInterface
type authentications struct {
- *gentype.ClientWithListAndApply[*v1.Authentication, *v1.AuthenticationList, *configv1.AuthenticationApplyConfiguration]
+ *gentype.ClientWithListAndApply[*configv1.Authentication, *configv1.AuthenticationList, *applyconfigurationsconfigv1.AuthenticationApplyConfiguration]
}
// newAuthentications returns a Authentications
func newAuthentications(c *ConfigV1Client) *authentications {
return &authentications{
- gentype.NewClientWithListAndApply[*v1.Authentication, *v1.AuthenticationList, *configv1.AuthenticationApplyConfiguration](
+ gentype.NewClientWithListAndApply[*configv1.Authentication, *configv1.AuthenticationList, *applyconfigurationsconfigv1.AuthenticationApplyConfiguration](
"authentications",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.Authentication { return &v1.Authentication{} },
- func() *v1.AuthenticationList { return &v1.AuthenticationList{} }),
+ func() *configv1.Authentication { return &configv1.Authentication{} },
+ func() *configv1.AuthenticationList { return &configv1.AuthenticationList{} },
+ ),
}
}
diff --git a/config/clientset/versioned/typed/config/v1/build.go b/config/clientset/versioned/typed/config/v1/build.go
index 2ecfb68d9..6e144b1f2 100644
--- a/config/clientset/versioned/typed/config/v1/build.go
+++ b/config/clientset/versioned/typed/config/v1/build.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/config/v1"
- configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
+ applyconfigurationsconfigv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
scheme "github.com/openshift/client-go/config/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,32 +22,33 @@ type BuildsGetter interface {
// BuildInterface has methods to work with Build resources.
type BuildInterface interface {
- Create(ctx context.Context, build *v1.Build, opts metav1.CreateOptions) (*v1.Build, error)
- Update(ctx context.Context, build *v1.Build, opts metav1.UpdateOptions) (*v1.Build, error)
+ Create(ctx context.Context, build *configv1.Build, opts metav1.CreateOptions) (*configv1.Build, error)
+ Update(ctx context.Context, build *configv1.Build, opts metav1.UpdateOptions) (*configv1.Build, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Build, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.BuildList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*configv1.Build, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*configv1.BuildList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Build, err error)
- Apply(ctx context.Context, build *configv1.BuildApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Build, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *configv1.Build, err error)
+ Apply(ctx context.Context, build *applyconfigurationsconfigv1.BuildApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.Build, err error)
BuildExpansion
}
// builds implements BuildInterface
type builds struct {
- *gentype.ClientWithListAndApply[*v1.Build, *v1.BuildList, *configv1.BuildApplyConfiguration]
+ *gentype.ClientWithListAndApply[*configv1.Build, *configv1.BuildList, *applyconfigurationsconfigv1.BuildApplyConfiguration]
}
// newBuilds returns a Builds
func newBuilds(c *ConfigV1Client) *builds {
return &builds{
- gentype.NewClientWithListAndApply[*v1.Build, *v1.BuildList, *configv1.BuildApplyConfiguration](
+ gentype.NewClientWithListAndApply[*configv1.Build, *configv1.BuildList, *applyconfigurationsconfigv1.BuildApplyConfiguration](
"builds",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.Build { return &v1.Build{} },
- func() *v1.BuildList { return &v1.BuildList{} }),
+ func() *configv1.Build { return &configv1.Build{} },
+ func() *configv1.BuildList { return &configv1.BuildList{} },
+ ),
}
}
diff --git a/config/clientset/versioned/typed/config/v1/clustermonitoring.go b/config/clientset/versioned/typed/config/v1/clustermonitoring.go
deleted file mode 100644
index c8ecde7bc..000000000
--- a/config/clientset/versioned/typed/config/v1/clustermonitoring.go
+++ /dev/null
@@ -1,57 +0,0 @@
-// Code generated by client-gen. DO NOT EDIT.
-
-package v1
-
-import (
- "context"
-
- v1 "github.com/openshift/api/config/v1"
- configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
- scheme "github.com/openshift/client-go/config/clientset/versioned/scheme"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- gentype "k8s.io/client-go/gentype"
-)
-
-// ClusterMonitoringsGetter has a method to return a ClusterMonitoringInterface.
-// A group's client should implement this interface.
-type ClusterMonitoringsGetter interface {
- ClusterMonitorings() ClusterMonitoringInterface
-}
-
-// ClusterMonitoringInterface has methods to work with ClusterMonitoring resources.
-type ClusterMonitoringInterface interface {
- Create(ctx context.Context, clusterMonitoring *v1.ClusterMonitoring, opts metav1.CreateOptions) (*v1.ClusterMonitoring, error)
- Update(ctx context.Context, clusterMonitoring *v1.ClusterMonitoring, opts metav1.UpdateOptions) (*v1.ClusterMonitoring, error)
- // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, clusterMonitoring *v1.ClusterMonitoring, opts metav1.UpdateOptions) (*v1.ClusterMonitoring, error)
- Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
- DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ClusterMonitoring, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.ClusterMonitoringList, error)
- Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterMonitoring, err error)
- Apply(ctx context.Context, clusterMonitoring *configv1.ClusterMonitoringApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ClusterMonitoring, err error)
- // Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, clusterMonitoring *configv1.ClusterMonitoringApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ClusterMonitoring, err error)
- ClusterMonitoringExpansion
-}
-
-// clusterMonitorings implements ClusterMonitoringInterface
-type clusterMonitorings struct {
- *gentype.ClientWithListAndApply[*v1.ClusterMonitoring, *v1.ClusterMonitoringList, *configv1.ClusterMonitoringApplyConfiguration]
-}
-
-// newClusterMonitorings returns a ClusterMonitorings
-func newClusterMonitorings(c *ConfigV1Client) *clusterMonitorings {
- return &clusterMonitorings{
- gentype.NewClientWithListAndApply[*v1.ClusterMonitoring, *v1.ClusterMonitoringList, *configv1.ClusterMonitoringApplyConfiguration](
- "clustermonitorings",
- c.RESTClient(),
- scheme.ParameterCodec,
- "",
- func() *v1.ClusterMonitoring { return &v1.ClusterMonitoring{} },
- func() *v1.ClusterMonitoringList { return &v1.ClusterMonitoringList{} }),
- }
-}
diff --git a/config/clientset/versioned/typed/config/v1/clusteroperator.go b/config/clientset/versioned/typed/config/v1/clusteroperator.go
index b1015c40d..a2f03a502 100644
--- a/config/clientset/versioned/typed/config/v1/clusteroperator.go
+++ b/config/clientset/versioned/typed/config/v1/clusteroperator.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/config/v1"
- configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
+ applyconfigurationsconfigv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
scheme "github.com/openshift/client-go/config/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type ClusterOperatorsGetter interface {
// ClusterOperatorInterface has methods to work with ClusterOperator resources.
type ClusterOperatorInterface interface {
- Create(ctx context.Context, clusterOperator *v1.ClusterOperator, opts metav1.CreateOptions) (*v1.ClusterOperator, error)
- Update(ctx context.Context, clusterOperator *v1.ClusterOperator, opts metav1.UpdateOptions) (*v1.ClusterOperator, error)
+ Create(ctx context.Context, clusterOperator *configv1.ClusterOperator, opts metav1.CreateOptions) (*configv1.ClusterOperator, error)
+ Update(ctx context.Context, clusterOperator *configv1.ClusterOperator, opts metav1.UpdateOptions) (*configv1.ClusterOperator, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, clusterOperator *v1.ClusterOperator, opts metav1.UpdateOptions) (*v1.ClusterOperator, error)
+ UpdateStatus(ctx context.Context, clusterOperator *configv1.ClusterOperator, opts metav1.UpdateOptions) (*configv1.ClusterOperator, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ClusterOperator, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.ClusterOperatorList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*configv1.ClusterOperator, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*configv1.ClusterOperatorList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterOperator, err error)
- Apply(ctx context.Context, clusterOperator *configv1.ClusterOperatorApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ClusterOperator, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *configv1.ClusterOperator, err error)
+ Apply(ctx context.Context, clusterOperator *applyconfigurationsconfigv1.ClusterOperatorApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.ClusterOperator, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, clusterOperator *configv1.ClusterOperatorApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ClusterOperator, err error)
+ ApplyStatus(ctx context.Context, clusterOperator *applyconfigurationsconfigv1.ClusterOperatorApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.ClusterOperator, err error)
ClusterOperatorExpansion
}
// clusterOperators implements ClusterOperatorInterface
type clusterOperators struct {
- *gentype.ClientWithListAndApply[*v1.ClusterOperator, *v1.ClusterOperatorList, *configv1.ClusterOperatorApplyConfiguration]
+ *gentype.ClientWithListAndApply[*configv1.ClusterOperator, *configv1.ClusterOperatorList, *applyconfigurationsconfigv1.ClusterOperatorApplyConfiguration]
}
// newClusterOperators returns a ClusterOperators
func newClusterOperators(c *ConfigV1Client) *clusterOperators {
return &clusterOperators{
- gentype.NewClientWithListAndApply[*v1.ClusterOperator, *v1.ClusterOperatorList, *configv1.ClusterOperatorApplyConfiguration](
+ gentype.NewClientWithListAndApply[*configv1.ClusterOperator, *configv1.ClusterOperatorList, *applyconfigurationsconfigv1.ClusterOperatorApplyConfiguration](
"clusteroperators",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.ClusterOperator { return &v1.ClusterOperator{} },
- func() *v1.ClusterOperatorList { return &v1.ClusterOperatorList{} }),
+ func() *configv1.ClusterOperator { return &configv1.ClusterOperator{} },
+ func() *configv1.ClusterOperatorList { return &configv1.ClusterOperatorList{} },
+ ),
}
}
diff --git a/config/clientset/versioned/typed/config/v1/clusterversion.go b/config/clientset/versioned/typed/config/v1/clusterversion.go
index 2b6717096..cb03327d9 100644
--- a/config/clientset/versioned/typed/config/v1/clusterversion.go
+++ b/config/clientset/versioned/typed/config/v1/clusterversion.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/config/v1"
- configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
+ applyconfigurationsconfigv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
scheme "github.com/openshift/client-go/config/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type ClusterVersionsGetter interface {
// ClusterVersionInterface has methods to work with ClusterVersion resources.
type ClusterVersionInterface interface {
- Create(ctx context.Context, clusterVersion *v1.ClusterVersion, opts metav1.CreateOptions) (*v1.ClusterVersion, error)
- Update(ctx context.Context, clusterVersion *v1.ClusterVersion, opts metav1.UpdateOptions) (*v1.ClusterVersion, error)
+ Create(ctx context.Context, clusterVersion *configv1.ClusterVersion, opts metav1.CreateOptions) (*configv1.ClusterVersion, error)
+ Update(ctx context.Context, clusterVersion *configv1.ClusterVersion, opts metav1.UpdateOptions) (*configv1.ClusterVersion, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, clusterVersion *v1.ClusterVersion, opts metav1.UpdateOptions) (*v1.ClusterVersion, error)
+ UpdateStatus(ctx context.Context, clusterVersion *configv1.ClusterVersion, opts metav1.UpdateOptions) (*configv1.ClusterVersion, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ClusterVersion, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.ClusterVersionList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*configv1.ClusterVersion, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*configv1.ClusterVersionList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterVersion, err error)
- Apply(ctx context.Context, clusterVersion *configv1.ClusterVersionApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ClusterVersion, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *configv1.ClusterVersion, err error)
+ Apply(ctx context.Context, clusterVersion *applyconfigurationsconfigv1.ClusterVersionApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.ClusterVersion, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, clusterVersion *configv1.ClusterVersionApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ClusterVersion, err error)
+ ApplyStatus(ctx context.Context, clusterVersion *applyconfigurationsconfigv1.ClusterVersionApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.ClusterVersion, err error)
ClusterVersionExpansion
}
// clusterVersions implements ClusterVersionInterface
type clusterVersions struct {
- *gentype.ClientWithListAndApply[*v1.ClusterVersion, *v1.ClusterVersionList, *configv1.ClusterVersionApplyConfiguration]
+ *gentype.ClientWithListAndApply[*configv1.ClusterVersion, *configv1.ClusterVersionList, *applyconfigurationsconfigv1.ClusterVersionApplyConfiguration]
}
// newClusterVersions returns a ClusterVersions
func newClusterVersions(c *ConfigV1Client) *clusterVersions {
return &clusterVersions{
- gentype.NewClientWithListAndApply[*v1.ClusterVersion, *v1.ClusterVersionList, *configv1.ClusterVersionApplyConfiguration](
+ gentype.NewClientWithListAndApply[*configv1.ClusterVersion, *configv1.ClusterVersionList, *applyconfigurationsconfigv1.ClusterVersionApplyConfiguration](
"clusterversions",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.ClusterVersion { return &v1.ClusterVersion{} },
- func() *v1.ClusterVersionList { return &v1.ClusterVersionList{} }),
+ func() *configv1.ClusterVersion { return &configv1.ClusterVersion{} },
+ func() *configv1.ClusterVersionList { return &configv1.ClusterVersionList{} },
+ ),
}
}
diff --git a/config/clientset/versioned/typed/config/v1/config_client.go b/config/clientset/versioned/typed/config/v1/config_client.go
index 5cd48daf7..bbb0b312e 100644
--- a/config/clientset/versioned/typed/config/v1/config_client.go
+++ b/config/clientset/versioned/typed/config/v1/config_client.go
@@ -3,10 +3,10 @@
package v1
import (
- "net/http"
+ http "net/http"
- v1 "github.com/openshift/api/config/v1"
- "github.com/openshift/client-go/config/clientset/versioned/scheme"
+ configv1 "github.com/openshift/api/config/v1"
+ scheme "github.com/openshift/client-go/config/clientset/versioned/scheme"
rest "k8s.io/client-go/rest"
)
@@ -15,7 +15,6 @@ type ConfigV1Interface interface {
APIServersGetter
AuthenticationsGetter
BuildsGetter
- ClusterMonitoringsGetter
ClusterOperatorsGetter
ClusterVersionsGetter
ConsolesGetter
@@ -53,10 +52,6 @@ func (c *ConfigV1Client) Builds() BuildInterface {
return newBuilds(c)
}
-func (c *ConfigV1Client) ClusterMonitorings() ClusterMonitoringInterface {
- return newClusterMonitorings(c)
-}
-
func (c *ConfigV1Client) ClusterOperators() ClusterOperatorInterface {
return newClusterOperators(c)
}
@@ -174,10 +169,10 @@ func New(c rest.Interface) *ConfigV1Client {
}
func setConfigDefaults(config *rest.Config) error {
- gv := v1.SchemeGroupVersion
+ gv := configv1.SchemeGroupVersion
config.GroupVersion = &gv
config.APIPath = "/apis"
- config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
+ config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion()
if config.UserAgent == "" {
config.UserAgent = rest.DefaultKubernetesUserAgent()
diff --git a/config/clientset/versioned/typed/config/v1/console.go b/config/clientset/versioned/typed/config/v1/console.go
index 994d5994d..ead87be18 100644
--- a/config/clientset/versioned/typed/config/v1/console.go
+++ b/config/clientset/versioned/typed/config/v1/console.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/config/v1"
- configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
+ applyconfigurationsconfigv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
scheme "github.com/openshift/client-go/config/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type ConsolesGetter interface {
// ConsoleInterface has methods to work with Console resources.
type ConsoleInterface interface {
- Create(ctx context.Context, console *v1.Console, opts metav1.CreateOptions) (*v1.Console, error)
- Update(ctx context.Context, console *v1.Console, opts metav1.UpdateOptions) (*v1.Console, error)
+ Create(ctx context.Context, console *configv1.Console, opts metav1.CreateOptions) (*configv1.Console, error)
+ Update(ctx context.Context, console *configv1.Console, opts metav1.UpdateOptions) (*configv1.Console, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, console *v1.Console, opts metav1.UpdateOptions) (*v1.Console, error)
+ UpdateStatus(ctx context.Context, console *configv1.Console, opts metav1.UpdateOptions) (*configv1.Console, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Console, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.ConsoleList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*configv1.Console, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*configv1.ConsoleList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Console, err error)
- Apply(ctx context.Context, console *configv1.ConsoleApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Console, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *configv1.Console, err error)
+ Apply(ctx context.Context, console *applyconfigurationsconfigv1.ConsoleApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.Console, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, console *configv1.ConsoleApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Console, err error)
+ ApplyStatus(ctx context.Context, console *applyconfigurationsconfigv1.ConsoleApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.Console, err error)
ConsoleExpansion
}
// consoles implements ConsoleInterface
type consoles struct {
- *gentype.ClientWithListAndApply[*v1.Console, *v1.ConsoleList, *configv1.ConsoleApplyConfiguration]
+ *gentype.ClientWithListAndApply[*configv1.Console, *configv1.ConsoleList, *applyconfigurationsconfigv1.ConsoleApplyConfiguration]
}
// newConsoles returns a Consoles
func newConsoles(c *ConfigV1Client) *consoles {
return &consoles{
- gentype.NewClientWithListAndApply[*v1.Console, *v1.ConsoleList, *configv1.ConsoleApplyConfiguration](
+ gentype.NewClientWithListAndApply[*configv1.Console, *configv1.ConsoleList, *applyconfigurationsconfigv1.ConsoleApplyConfiguration](
"consoles",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.Console { return &v1.Console{} },
- func() *v1.ConsoleList { return &v1.ConsoleList{} }),
+ func() *configv1.Console { return &configv1.Console{} },
+ func() *configv1.ConsoleList { return &configv1.ConsoleList{} },
+ ),
}
}
diff --git a/config/clientset/versioned/typed/config/v1/dns.go b/config/clientset/versioned/typed/config/v1/dns.go
index b91aa0d0d..76efd8610 100644
--- a/config/clientset/versioned/typed/config/v1/dns.go
+++ b/config/clientset/versioned/typed/config/v1/dns.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/config/v1"
- configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
+ applyconfigurationsconfigv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
scheme "github.com/openshift/client-go/config/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type DNSesGetter interface {
// DNSInterface has methods to work with DNS resources.
type DNSInterface interface {
- Create(ctx context.Context, dNS *v1.DNS, opts metav1.CreateOptions) (*v1.DNS, error)
- Update(ctx context.Context, dNS *v1.DNS, opts metav1.UpdateOptions) (*v1.DNS, error)
+ Create(ctx context.Context, dNS *configv1.DNS, opts metav1.CreateOptions) (*configv1.DNS, error)
+ Update(ctx context.Context, dNS *configv1.DNS, opts metav1.UpdateOptions) (*configv1.DNS, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, dNS *v1.DNS, opts metav1.UpdateOptions) (*v1.DNS, error)
+ UpdateStatus(ctx context.Context, dNS *configv1.DNS, opts metav1.UpdateOptions) (*configv1.DNS, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.DNS, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.DNSList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*configv1.DNS, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*configv1.DNSList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DNS, err error)
- Apply(ctx context.Context, dNS *configv1.DNSApplyConfiguration, opts metav1.ApplyOptions) (result *v1.DNS, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *configv1.DNS, err error)
+ Apply(ctx context.Context, dNS *applyconfigurationsconfigv1.DNSApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.DNS, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, dNS *configv1.DNSApplyConfiguration, opts metav1.ApplyOptions) (result *v1.DNS, err error)
+ ApplyStatus(ctx context.Context, dNS *applyconfigurationsconfigv1.DNSApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.DNS, err error)
DNSExpansion
}
// dNSes implements DNSInterface
type dNSes struct {
- *gentype.ClientWithListAndApply[*v1.DNS, *v1.DNSList, *configv1.DNSApplyConfiguration]
+ *gentype.ClientWithListAndApply[*configv1.DNS, *configv1.DNSList, *applyconfigurationsconfigv1.DNSApplyConfiguration]
}
// newDNSes returns a DNSes
func newDNSes(c *ConfigV1Client) *dNSes {
return &dNSes{
- gentype.NewClientWithListAndApply[*v1.DNS, *v1.DNSList, *configv1.DNSApplyConfiguration](
+ gentype.NewClientWithListAndApply[*configv1.DNS, *configv1.DNSList, *applyconfigurationsconfigv1.DNSApplyConfiguration](
"dnses",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.DNS { return &v1.DNS{} },
- func() *v1.DNSList { return &v1.DNSList{} }),
+ func() *configv1.DNS { return &configv1.DNS{} },
+ func() *configv1.DNSList { return &configv1.DNSList{} },
+ ),
}
}
diff --git a/config/clientset/versioned/typed/config/v1/fake/fake_apiserver.go b/config/clientset/versioned/typed/config/v1/fake/fake_apiserver.go
index e5e7c02cf..577b67da9 100644
--- a/config/clientset/versioned/typed/config/v1/fake/fake_apiserver.go
+++ b/config/clientset/versioned/typed/config/v1/fake/fake_apiserver.go
@@ -3,168 +3,31 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/config/v1"
configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedconfigv1 "github.com/openshift/client-go/config/clientset/versioned/typed/config/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeAPIServers implements APIServerInterface
-type FakeAPIServers struct {
+// fakeAPIServers implements APIServerInterface
+type fakeAPIServers struct {
+ *gentype.FakeClientWithListAndApply[*v1.APIServer, *v1.APIServerList, *configv1.APIServerApplyConfiguration]
Fake *FakeConfigV1
}
-var apiserversResource = v1.SchemeGroupVersion.WithResource("apiservers")
-
-var apiserversKind = v1.SchemeGroupVersion.WithKind("APIServer")
-
-// Get takes name of the aPIServer, and returns the corresponding aPIServer object, and an error if there is any.
-func (c *FakeAPIServers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.APIServer, err error) {
- emptyResult := &v1.APIServer{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(apiserversResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.APIServer), err
-}
-
-// List takes label and field selectors, and returns the list of APIServers that match those selectors.
-func (c *FakeAPIServers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.APIServerList, err error) {
- emptyResult := &v1.APIServerList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(apiserversResource, apiserversKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.APIServerList{ListMeta: obj.(*v1.APIServerList).ListMeta}
- for _, item := range obj.(*v1.APIServerList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested aPIServers.
-func (c *FakeAPIServers) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(apiserversResource, opts))
-}
-
-// Create takes the representation of a aPIServer and creates it. Returns the server's representation of the aPIServer, and an error, if there is any.
-func (c *FakeAPIServers) Create(ctx context.Context, aPIServer *v1.APIServer, opts metav1.CreateOptions) (result *v1.APIServer, err error) {
- emptyResult := &v1.APIServer{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(apiserversResource, aPIServer, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.APIServer), err
-}
-
-// Update takes the representation of a aPIServer and updates it. Returns the server's representation of the aPIServer, and an error, if there is any.
-func (c *FakeAPIServers) Update(ctx context.Context, aPIServer *v1.APIServer, opts metav1.UpdateOptions) (result *v1.APIServer, err error) {
- emptyResult := &v1.APIServer{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(apiserversResource, aPIServer, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.APIServer), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeAPIServers) UpdateStatus(ctx context.Context, aPIServer *v1.APIServer, opts metav1.UpdateOptions) (result *v1.APIServer, err error) {
- emptyResult := &v1.APIServer{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(apiserversResource, "status", aPIServer, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.APIServer), err
-}
-
-// Delete takes name of the aPIServer and deletes it. Returns an error if one occurs.
-func (c *FakeAPIServers) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(apiserversResource, name, opts), &v1.APIServer{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeAPIServers) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(apiserversResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.APIServerList{})
- return err
-}
-
-// Patch applies the patch and returns the patched aPIServer.
-func (c *FakeAPIServers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.APIServer, err error) {
- emptyResult := &v1.APIServer{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(apiserversResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.APIServer), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied aPIServer.
-func (c *FakeAPIServers) Apply(ctx context.Context, aPIServer *configv1.APIServerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.APIServer, err error) {
- if aPIServer == nil {
- return nil, fmt.Errorf("aPIServer provided to Apply must not be nil")
- }
- data, err := json.Marshal(aPIServer)
- if err != nil {
- return nil, err
- }
- name := aPIServer.Name
- if name == nil {
- return nil, fmt.Errorf("aPIServer.Name must be provided to Apply")
- }
- emptyResult := &v1.APIServer{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(apiserversResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.APIServer), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeAPIServers) ApplyStatus(ctx context.Context, aPIServer *configv1.APIServerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.APIServer, err error) {
- if aPIServer == nil {
- return nil, fmt.Errorf("aPIServer provided to Apply must not be nil")
- }
- data, err := json.Marshal(aPIServer)
- if err != nil {
- return nil, err
- }
- name := aPIServer.Name
- if name == nil {
- return nil, fmt.Errorf("aPIServer.Name must be provided to Apply")
- }
- emptyResult := &v1.APIServer{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(apiserversResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeAPIServers(fake *FakeConfigV1) typedconfigv1.APIServerInterface {
+ return &fakeAPIServers{
+ gentype.NewFakeClientWithListAndApply[*v1.APIServer, *v1.APIServerList, *configv1.APIServerApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("apiservers"),
+ v1.SchemeGroupVersion.WithKind("APIServer"),
+ func() *v1.APIServer { return &v1.APIServer{} },
+ func() *v1.APIServerList { return &v1.APIServerList{} },
+ func(dst, src *v1.APIServerList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.APIServerList) []*v1.APIServer { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.APIServerList, items []*v1.APIServer) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.APIServer), err
}
diff --git a/config/clientset/versioned/typed/config/v1/fake/fake_authentication.go b/config/clientset/versioned/typed/config/v1/fake/fake_authentication.go
index 11e4117f3..f81b44143 100644
--- a/config/clientset/versioned/typed/config/v1/fake/fake_authentication.go
+++ b/config/clientset/versioned/typed/config/v1/fake/fake_authentication.go
@@ -3,168 +3,33 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/config/v1"
configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedconfigv1 "github.com/openshift/client-go/config/clientset/versioned/typed/config/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeAuthentications implements AuthenticationInterface
-type FakeAuthentications struct {
+// fakeAuthentications implements AuthenticationInterface
+type fakeAuthentications struct {
+ *gentype.FakeClientWithListAndApply[*v1.Authentication, *v1.AuthenticationList, *configv1.AuthenticationApplyConfiguration]
Fake *FakeConfigV1
}
-var authenticationsResource = v1.SchemeGroupVersion.WithResource("authentications")
-
-var authenticationsKind = v1.SchemeGroupVersion.WithKind("Authentication")
-
-// Get takes name of the authentication, and returns the corresponding authentication object, and an error if there is any.
-func (c *FakeAuthentications) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Authentication, err error) {
- emptyResult := &v1.Authentication{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(authenticationsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Authentication), err
-}
-
-// List takes label and field selectors, and returns the list of Authentications that match those selectors.
-func (c *FakeAuthentications) List(ctx context.Context, opts metav1.ListOptions) (result *v1.AuthenticationList, err error) {
- emptyResult := &v1.AuthenticationList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(authenticationsResource, authenticationsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.AuthenticationList{ListMeta: obj.(*v1.AuthenticationList).ListMeta}
- for _, item := range obj.(*v1.AuthenticationList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested authentications.
-func (c *FakeAuthentications) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(authenticationsResource, opts))
-}
-
-// Create takes the representation of a authentication and creates it. Returns the server's representation of the authentication, and an error, if there is any.
-func (c *FakeAuthentications) Create(ctx context.Context, authentication *v1.Authentication, opts metav1.CreateOptions) (result *v1.Authentication, err error) {
- emptyResult := &v1.Authentication{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(authenticationsResource, authentication, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Authentication), err
-}
-
-// Update takes the representation of a authentication and updates it. Returns the server's representation of the authentication, and an error, if there is any.
-func (c *FakeAuthentications) Update(ctx context.Context, authentication *v1.Authentication, opts metav1.UpdateOptions) (result *v1.Authentication, err error) {
- emptyResult := &v1.Authentication{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(authenticationsResource, authentication, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Authentication), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeAuthentications) UpdateStatus(ctx context.Context, authentication *v1.Authentication, opts metav1.UpdateOptions) (result *v1.Authentication, err error) {
- emptyResult := &v1.Authentication{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(authenticationsResource, "status", authentication, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Authentication), err
-}
-
-// Delete takes name of the authentication and deletes it. Returns an error if one occurs.
-func (c *FakeAuthentications) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(authenticationsResource, name, opts), &v1.Authentication{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeAuthentications) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(authenticationsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.AuthenticationList{})
- return err
-}
-
-// Patch applies the patch and returns the patched authentication.
-func (c *FakeAuthentications) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Authentication, err error) {
- emptyResult := &v1.Authentication{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(authenticationsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Authentication), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied authentication.
-func (c *FakeAuthentications) Apply(ctx context.Context, authentication *configv1.AuthenticationApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Authentication, err error) {
- if authentication == nil {
- return nil, fmt.Errorf("authentication provided to Apply must not be nil")
- }
- data, err := json.Marshal(authentication)
- if err != nil {
- return nil, err
- }
- name := authentication.Name
- if name == nil {
- return nil, fmt.Errorf("authentication.Name must be provided to Apply")
- }
- emptyResult := &v1.Authentication{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(authenticationsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Authentication), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeAuthentications) ApplyStatus(ctx context.Context, authentication *configv1.AuthenticationApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Authentication, err error) {
- if authentication == nil {
- return nil, fmt.Errorf("authentication provided to Apply must not be nil")
- }
- data, err := json.Marshal(authentication)
- if err != nil {
- return nil, err
- }
- name := authentication.Name
- if name == nil {
- return nil, fmt.Errorf("authentication.Name must be provided to Apply")
- }
- emptyResult := &v1.Authentication{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(authenticationsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeAuthentications(fake *FakeConfigV1) typedconfigv1.AuthenticationInterface {
+ return &fakeAuthentications{
+ gentype.NewFakeClientWithListAndApply[*v1.Authentication, *v1.AuthenticationList, *configv1.AuthenticationApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("authentications"),
+ v1.SchemeGroupVersion.WithKind("Authentication"),
+ func() *v1.Authentication { return &v1.Authentication{} },
+ func() *v1.AuthenticationList { return &v1.AuthenticationList{} },
+ func(dst, src *v1.AuthenticationList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.AuthenticationList) []*v1.Authentication { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.AuthenticationList, items []*v1.Authentication) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.Authentication), err
}
diff --git a/config/clientset/versioned/typed/config/v1/fake/fake_build.go b/config/clientset/versioned/typed/config/v1/fake/fake_build.go
index 10576484c..590e57d8e 100644
--- a/config/clientset/versioned/typed/config/v1/fake/fake_build.go
+++ b/config/clientset/versioned/typed/config/v1/fake/fake_build.go
@@ -3,133 +3,31 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/config/v1"
configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedconfigv1 "github.com/openshift/client-go/config/clientset/versioned/typed/config/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeBuilds implements BuildInterface
-type FakeBuilds struct {
+// fakeBuilds implements BuildInterface
+type fakeBuilds struct {
+ *gentype.FakeClientWithListAndApply[*v1.Build, *v1.BuildList, *configv1.BuildApplyConfiguration]
Fake *FakeConfigV1
}
-var buildsResource = v1.SchemeGroupVersion.WithResource("builds")
-
-var buildsKind = v1.SchemeGroupVersion.WithKind("Build")
-
-// Get takes name of the build, and returns the corresponding build object, and an error if there is any.
-func (c *FakeBuilds) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Build, err error) {
- emptyResult := &v1.Build{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(buildsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Build), err
-}
-
-// List takes label and field selectors, and returns the list of Builds that match those selectors.
-func (c *FakeBuilds) List(ctx context.Context, opts metav1.ListOptions) (result *v1.BuildList, err error) {
- emptyResult := &v1.BuildList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(buildsResource, buildsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.BuildList{ListMeta: obj.(*v1.BuildList).ListMeta}
- for _, item := range obj.(*v1.BuildList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested builds.
-func (c *FakeBuilds) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(buildsResource, opts))
-}
-
-// Create takes the representation of a build and creates it. Returns the server's representation of the build, and an error, if there is any.
-func (c *FakeBuilds) Create(ctx context.Context, build *v1.Build, opts metav1.CreateOptions) (result *v1.Build, err error) {
- emptyResult := &v1.Build{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(buildsResource, build, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Build), err
-}
-
-// Update takes the representation of a build and updates it. Returns the server's representation of the build, and an error, if there is any.
-func (c *FakeBuilds) Update(ctx context.Context, build *v1.Build, opts metav1.UpdateOptions) (result *v1.Build, err error) {
- emptyResult := &v1.Build{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(buildsResource, build, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Build), err
-}
-
-// Delete takes name of the build and deletes it. Returns an error if one occurs.
-func (c *FakeBuilds) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(buildsResource, name, opts), &v1.Build{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeBuilds) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(buildsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.BuildList{})
- return err
-}
-
-// Patch applies the patch and returns the patched build.
-func (c *FakeBuilds) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Build, err error) {
- emptyResult := &v1.Build{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(buildsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Build), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied build.
-func (c *FakeBuilds) Apply(ctx context.Context, build *configv1.BuildApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Build, err error) {
- if build == nil {
- return nil, fmt.Errorf("build provided to Apply must not be nil")
- }
- data, err := json.Marshal(build)
- if err != nil {
- return nil, err
- }
- name := build.Name
- if name == nil {
- return nil, fmt.Errorf("build.Name must be provided to Apply")
- }
- emptyResult := &v1.Build{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(buildsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeBuilds(fake *FakeConfigV1) typedconfigv1.BuildInterface {
+ return &fakeBuilds{
+ gentype.NewFakeClientWithListAndApply[*v1.Build, *v1.BuildList, *configv1.BuildApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("builds"),
+ v1.SchemeGroupVersion.WithKind("Build"),
+ func() *v1.Build { return &v1.Build{} },
+ func() *v1.BuildList { return &v1.BuildList{} },
+ func(dst, src *v1.BuildList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.BuildList) []*v1.Build { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.BuildList, items []*v1.Build) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.Build), err
}
diff --git a/config/clientset/versioned/typed/config/v1/fake/fake_clustermonitoring.go b/config/clientset/versioned/typed/config/v1/fake/fake_clustermonitoring.go
deleted file mode 100644
index fc9f60e18..000000000
--- a/config/clientset/versioned/typed/config/v1/fake/fake_clustermonitoring.go
+++ /dev/null
@@ -1,170 +0,0 @@
-// Code generated by client-gen. DO NOT EDIT.
-
-package fake
-
-import (
- "context"
- json "encoding/json"
- "fmt"
-
- v1 "github.com/openshift/api/config/v1"
- configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
-)
-
-// FakeClusterMonitorings implements ClusterMonitoringInterface
-type FakeClusterMonitorings struct {
- Fake *FakeConfigV1
-}
-
-var clustermonitoringsResource = v1.SchemeGroupVersion.WithResource("clustermonitorings")
-
-var clustermonitoringsKind = v1.SchemeGroupVersion.WithKind("ClusterMonitoring")
-
-// Get takes name of the clusterMonitoring, and returns the corresponding clusterMonitoring object, and an error if there is any.
-func (c *FakeClusterMonitorings) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ClusterMonitoring, err error) {
- emptyResult := &v1.ClusterMonitoring{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(clustermonitoringsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterMonitoring), err
-}
-
-// List takes label and field selectors, and returns the list of ClusterMonitorings that match those selectors.
-func (c *FakeClusterMonitorings) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterMonitoringList, err error) {
- emptyResult := &v1.ClusterMonitoringList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(clustermonitoringsResource, clustermonitoringsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.ClusterMonitoringList{ListMeta: obj.(*v1.ClusterMonitoringList).ListMeta}
- for _, item := range obj.(*v1.ClusterMonitoringList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested clusterMonitorings.
-func (c *FakeClusterMonitorings) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(clustermonitoringsResource, opts))
-}
-
-// Create takes the representation of a clusterMonitoring and creates it. Returns the server's representation of the clusterMonitoring, and an error, if there is any.
-func (c *FakeClusterMonitorings) Create(ctx context.Context, clusterMonitoring *v1.ClusterMonitoring, opts metav1.CreateOptions) (result *v1.ClusterMonitoring, err error) {
- emptyResult := &v1.ClusterMonitoring{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(clustermonitoringsResource, clusterMonitoring, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterMonitoring), err
-}
-
-// Update takes the representation of a clusterMonitoring and updates it. Returns the server's representation of the clusterMonitoring, and an error, if there is any.
-func (c *FakeClusterMonitorings) Update(ctx context.Context, clusterMonitoring *v1.ClusterMonitoring, opts metav1.UpdateOptions) (result *v1.ClusterMonitoring, err error) {
- emptyResult := &v1.ClusterMonitoring{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(clustermonitoringsResource, clusterMonitoring, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterMonitoring), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeClusterMonitorings) UpdateStatus(ctx context.Context, clusterMonitoring *v1.ClusterMonitoring, opts metav1.UpdateOptions) (result *v1.ClusterMonitoring, err error) {
- emptyResult := &v1.ClusterMonitoring{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(clustermonitoringsResource, "status", clusterMonitoring, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterMonitoring), err
-}
-
-// Delete takes name of the clusterMonitoring and deletes it. Returns an error if one occurs.
-func (c *FakeClusterMonitorings) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(clustermonitoringsResource, name, opts), &v1.ClusterMonitoring{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeClusterMonitorings) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(clustermonitoringsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.ClusterMonitoringList{})
- return err
-}
-
-// Patch applies the patch and returns the patched clusterMonitoring.
-func (c *FakeClusterMonitorings) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterMonitoring, err error) {
- emptyResult := &v1.ClusterMonitoring{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(clustermonitoringsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterMonitoring), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied clusterMonitoring.
-func (c *FakeClusterMonitorings) Apply(ctx context.Context, clusterMonitoring *configv1.ClusterMonitoringApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ClusterMonitoring, err error) {
- if clusterMonitoring == nil {
- return nil, fmt.Errorf("clusterMonitoring provided to Apply must not be nil")
- }
- data, err := json.Marshal(clusterMonitoring)
- if err != nil {
- return nil, err
- }
- name := clusterMonitoring.Name
- if name == nil {
- return nil, fmt.Errorf("clusterMonitoring.Name must be provided to Apply")
- }
- emptyResult := &v1.ClusterMonitoring{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(clustermonitoringsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterMonitoring), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeClusterMonitorings) ApplyStatus(ctx context.Context, clusterMonitoring *configv1.ClusterMonitoringApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ClusterMonitoring, err error) {
- if clusterMonitoring == nil {
- return nil, fmt.Errorf("clusterMonitoring provided to Apply must not be nil")
- }
- data, err := json.Marshal(clusterMonitoring)
- if err != nil {
- return nil, err
- }
- name := clusterMonitoring.Name
- if name == nil {
- return nil, fmt.Errorf("clusterMonitoring.Name must be provided to Apply")
- }
- emptyResult := &v1.ClusterMonitoring{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(clustermonitoringsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterMonitoring), err
-}
diff --git a/config/clientset/versioned/typed/config/v1/fake/fake_clusteroperator.go b/config/clientset/versioned/typed/config/v1/fake/fake_clusteroperator.go
index c9fa33019..ac5a30983 100644
--- a/config/clientset/versioned/typed/config/v1/fake/fake_clusteroperator.go
+++ b/config/clientset/versioned/typed/config/v1/fake/fake_clusteroperator.go
@@ -3,168 +3,33 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/config/v1"
configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedconfigv1 "github.com/openshift/client-go/config/clientset/versioned/typed/config/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeClusterOperators implements ClusterOperatorInterface
-type FakeClusterOperators struct {
+// fakeClusterOperators implements ClusterOperatorInterface
+type fakeClusterOperators struct {
+ *gentype.FakeClientWithListAndApply[*v1.ClusterOperator, *v1.ClusterOperatorList, *configv1.ClusterOperatorApplyConfiguration]
Fake *FakeConfigV1
}
-var clusteroperatorsResource = v1.SchemeGroupVersion.WithResource("clusteroperators")
-
-var clusteroperatorsKind = v1.SchemeGroupVersion.WithKind("ClusterOperator")
-
-// Get takes name of the clusterOperator, and returns the corresponding clusterOperator object, and an error if there is any.
-func (c *FakeClusterOperators) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ClusterOperator, err error) {
- emptyResult := &v1.ClusterOperator{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(clusteroperatorsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterOperator), err
-}
-
-// List takes label and field selectors, and returns the list of ClusterOperators that match those selectors.
-func (c *FakeClusterOperators) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterOperatorList, err error) {
- emptyResult := &v1.ClusterOperatorList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(clusteroperatorsResource, clusteroperatorsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.ClusterOperatorList{ListMeta: obj.(*v1.ClusterOperatorList).ListMeta}
- for _, item := range obj.(*v1.ClusterOperatorList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested clusterOperators.
-func (c *FakeClusterOperators) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(clusteroperatorsResource, opts))
-}
-
-// Create takes the representation of a clusterOperator and creates it. Returns the server's representation of the clusterOperator, and an error, if there is any.
-func (c *FakeClusterOperators) Create(ctx context.Context, clusterOperator *v1.ClusterOperator, opts metav1.CreateOptions) (result *v1.ClusterOperator, err error) {
- emptyResult := &v1.ClusterOperator{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(clusteroperatorsResource, clusterOperator, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterOperator), err
-}
-
-// Update takes the representation of a clusterOperator and updates it. Returns the server's representation of the clusterOperator, and an error, if there is any.
-func (c *FakeClusterOperators) Update(ctx context.Context, clusterOperator *v1.ClusterOperator, opts metav1.UpdateOptions) (result *v1.ClusterOperator, err error) {
- emptyResult := &v1.ClusterOperator{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(clusteroperatorsResource, clusterOperator, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterOperator), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeClusterOperators) UpdateStatus(ctx context.Context, clusterOperator *v1.ClusterOperator, opts metav1.UpdateOptions) (result *v1.ClusterOperator, err error) {
- emptyResult := &v1.ClusterOperator{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(clusteroperatorsResource, "status", clusterOperator, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterOperator), err
-}
-
-// Delete takes name of the clusterOperator and deletes it. Returns an error if one occurs.
-func (c *FakeClusterOperators) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(clusteroperatorsResource, name, opts), &v1.ClusterOperator{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeClusterOperators) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(clusteroperatorsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.ClusterOperatorList{})
- return err
-}
-
-// Patch applies the patch and returns the patched clusterOperator.
-func (c *FakeClusterOperators) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterOperator, err error) {
- emptyResult := &v1.ClusterOperator{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(clusteroperatorsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterOperator), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied clusterOperator.
-func (c *FakeClusterOperators) Apply(ctx context.Context, clusterOperator *configv1.ClusterOperatorApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ClusterOperator, err error) {
- if clusterOperator == nil {
- return nil, fmt.Errorf("clusterOperator provided to Apply must not be nil")
- }
- data, err := json.Marshal(clusterOperator)
- if err != nil {
- return nil, err
- }
- name := clusterOperator.Name
- if name == nil {
- return nil, fmt.Errorf("clusterOperator.Name must be provided to Apply")
- }
- emptyResult := &v1.ClusterOperator{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(clusteroperatorsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterOperator), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeClusterOperators) ApplyStatus(ctx context.Context, clusterOperator *configv1.ClusterOperatorApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ClusterOperator, err error) {
- if clusterOperator == nil {
- return nil, fmt.Errorf("clusterOperator provided to Apply must not be nil")
- }
- data, err := json.Marshal(clusterOperator)
- if err != nil {
- return nil, err
- }
- name := clusterOperator.Name
- if name == nil {
- return nil, fmt.Errorf("clusterOperator.Name must be provided to Apply")
- }
- emptyResult := &v1.ClusterOperator{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(clusteroperatorsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeClusterOperators(fake *FakeConfigV1) typedconfigv1.ClusterOperatorInterface {
+ return &fakeClusterOperators{
+ gentype.NewFakeClientWithListAndApply[*v1.ClusterOperator, *v1.ClusterOperatorList, *configv1.ClusterOperatorApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("clusteroperators"),
+ v1.SchemeGroupVersion.WithKind("ClusterOperator"),
+ func() *v1.ClusterOperator { return &v1.ClusterOperator{} },
+ func() *v1.ClusterOperatorList { return &v1.ClusterOperatorList{} },
+ func(dst, src *v1.ClusterOperatorList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.ClusterOperatorList) []*v1.ClusterOperator { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.ClusterOperatorList, items []*v1.ClusterOperator) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.ClusterOperator), err
}
diff --git a/config/clientset/versioned/typed/config/v1/fake/fake_clusterversion.go b/config/clientset/versioned/typed/config/v1/fake/fake_clusterversion.go
index 250590877..6bb123d7f 100644
--- a/config/clientset/versioned/typed/config/v1/fake/fake_clusterversion.go
+++ b/config/clientset/versioned/typed/config/v1/fake/fake_clusterversion.go
@@ -3,168 +3,33 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/config/v1"
configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedconfigv1 "github.com/openshift/client-go/config/clientset/versioned/typed/config/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeClusterVersions implements ClusterVersionInterface
-type FakeClusterVersions struct {
+// fakeClusterVersions implements ClusterVersionInterface
+type fakeClusterVersions struct {
+ *gentype.FakeClientWithListAndApply[*v1.ClusterVersion, *v1.ClusterVersionList, *configv1.ClusterVersionApplyConfiguration]
Fake *FakeConfigV1
}
-var clusterversionsResource = v1.SchemeGroupVersion.WithResource("clusterversions")
-
-var clusterversionsKind = v1.SchemeGroupVersion.WithKind("ClusterVersion")
-
-// Get takes name of the clusterVersion, and returns the corresponding clusterVersion object, and an error if there is any.
-func (c *FakeClusterVersions) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ClusterVersion, err error) {
- emptyResult := &v1.ClusterVersion{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(clusterversionsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterVersion), err
-}
-
-// List takes label and field selectors, and returns the list of ClusterVersions that match those selectors.
-func (c *FakeClusterVersions) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterVersionList, err error) {
- emptyResult := &v1.ClusterVersionList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(clusterversionsResource, clusterversionsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.ClusterVersionList{ListMeta: obj.(*v1.ClusterVersionList).ListMeta}
- for _, item := range obj.(*v1.ClusterVersionList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested clusterVersions.
-func (c *FakeClusterVersions) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(clusterversionsResource, opts))
-}
-
-// Create takes the representation of a clusterVersion and creates it. Returns the server's representation of the clusterVersion, and an error, if there is any.
-func (c *FakeClusterVersions) Create(ctx context.Context, clusterVersion *v1.ClusterVersion, opts metav1.CreateOptions) (result *v1.ClusterVersion, err error) {
- emptyResult := &v1.ClusterVersion{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(clusterversionsResource, clusterVersion, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterVersion), err
-}
-
-// Update takes the representation of a clusterVersion and updates it. Returns the server's representation of the clusterVersion, and an error, if there is any.
-func (c *FakeClusterVersions) Update(ctx context.Context, clusterVersion *v1.ClusterVersion, opts metav1.UpdateOptions) (result *v1.ClusterVersion, err error) {
- emptyResult := &v1.ClusterVersion{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(clusterversionsResource, clusterVersion, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterVersion), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeClusterVersions) UpdateStatus(ctx context.Context, clusterVersion *v1.ClusterVersion, opts metav1.UpdateOptions) (result *v1.ClusterVersion, err error) {
- emptyResult := &v1.ClusterVersion{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(clusterversionsResource, "status", clusterVersion, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterVersion), err
-}
-
-// Delete takes name of the clusterVersion and deletes it. Returns an error if one occurs.
-func (c *FakeClusterVersions) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(clusterversionsResource, name, opts), &v1.ClusterVersion{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeClusterVersions) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(clusterversionsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.ClusterVersionList{})
- return err
-}
-
-// Patch applies the patch and returns the patched clusterVersion.
-func (c *FakeClusterVersions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterVersion, err error) {
- emptyResult := &v1.ClusterVersion{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(clusterversionsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterVersion), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied clusterVersion.
-func (c *FakeClusterVersions) Apply(ctx context.Context, clusterVersion *configv1.ClusterVersionApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ClusterVersion, err error) {
- if clusterVersion == nil {
- return nil, fmt.Errorf("clusterVersion provided to Apply must not be nil")
- }
- data, err := json.Marshal(clusterVersion)
- if err != nil {
- return nil, err
- }
- name := clusterVersion.Name
- if name == nil {
- return nil, fmt.Errorf("clusterVersion.Name must be provided to Apply")
- }
- emptyResult := &v1.ClusterVersion{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(clusterversionsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterVersion), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeClusterVersions) ApplyStatus(ctx context.Context, clusterVersion *configv1.ClusterVersionApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ClusterVersion, err error) {
- if clusterVersion == nil {
- return nil, fmt.Errorf("clusterVersion provided to Apply must not be nil")
- }
- data, err := json.Marshal(clusterVersion)
- if err != nil {
- return nil, err
- }
- name := clusterVersion.Name
- if name == nil {
- return nil, fmt.Errorf("clusterVersion.Name must be provided to Apply")
- }
- emptyResult := &v1.ClusterVersion{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(clusterversionsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeClusterVersions(fake *FakeConfigV1) typedconfigv1.ClusterVersionInterface {
+ return &fakeClusterVersions{
+ gentype.NewFakeClientWithListAndApply[*v1.ClusterVersion, *v1.ClusterVersionList, *configv1.ClusterVersionApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("clusterversions"),
+ v1.SchemeGroupVersion.WithKind("ClusterVersion"),
+ func() *v1.ClusterVersion { return &v1.ClusterVersion{} },
+ func() *v1.ClusterVersionList { return &v1.ClusterVersionList{} },
+ func(dst, src *v1.ClusterVersionList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.ClusterVersionList) []*v1.ClusterVersion { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.ClusterVersionList, items []*v1.ClusterVersion) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.ClusterVersion), err
}
diff --git a/config/clientset/versioned/typed/config/v1/fake/fake_config_client.go b/config/clientset/versioned/typed/config/v1/fake/fake_config_client.go
index e33c005d7..625319463 100644
--- a/config/clientset/versioned/typed/config/v1/fake/fake_config_client.go
+++ b/config/clientset/versioned/typed/config/v1/fake/fake_config_client.go
@@ -13,91 +13,87 @@ type FakeConfigV1 struct {
}
func (c *FakeConfigV1) APIServers() v1.APIServerInterface {
- return &FakeAPIServers{c}
+ return newFakeAPIServers(c)
}
func (c *FakeConfigV1) Authentications() v1.AuthenticationInterface {
- return &FakeAuthentications{c}
+ return newFakeAuthentications(c)
}
func (c *FakeConfigV1) Builds() v1.BuildInterface {
- return &FakeBuilds{c}
-}
-
-func (c *FakeConfigV1) ClusterMonitorings() v1.ClusterMonitoringInterface {
- return &FakeClusterMonitorings{c}
+ return newFakeBuilds(c)
}
func (c *FakeConfigV1) ClusterOperators() v1.ClusterOperatorInterface {
- return &FakeClusterOperators{c}
+ return newFakeClusterOperators(c)
}
func (c *FakeConfigV1) ClusterVersions() v1.ClusterVersionInterface {
- return &FakeClusterVersions{c}
+ return newFakeClusterVersions(c)
}
func (c *FakeConfigV1) Consoles() v1.ConsoleInterface {
- return &FakeConsoles{c}
+ return newFakeConsoles(c)
}
func (c *FakeConfigV1) DNSes() v1.DNSInterface {
- return &FakeDNSes{c}
+ return newFakeDNSes(c)
}
func (c *FakeConfigV1) FeatureGates() v1.FeatureGateInterface {
- return &FakeFeatureGates{c}
+ return newFakeFeatureGates(c)
}
func (c *FakeConfigV1) Images() v1.ImageInterface {
- return &FakeImages{c}
+ return newFakeImages(c)
}
func (c *FakeConfigV1) ImageContentPolicies() v1.ImageContentPolicyInterface {
- return &FakeImageContentPolicies{c}
+ return newFakeImageContentPolicies(c)
}
func (c *FakeConfigV1) ImageDigestMirrorSets() v1.ImageDigestMirrorSetInterface {
- return &FakeImageDigestMirrorSets{c}
+ return newFakeImageDigestMirrorSets(c)
}
func (c *FakeConfigV1) ImageTagMirrorSets() v1.ImageTagMirrorSetInterface {
- return &FakeImageTagMirrorSets{c}
+ return newFakeImageTagMirrorSets(c)
}
func (c *FakeConfigV1) Infrastructures() v1.InfrastructureInterface {
- return &FakeInfrastructures{c}
+ return newFakeInfrastructures(c)
}
func (c *FakeConfigV1) Ingresses() v1.IngressInterface {
- return &FakeIngresses{c}
+ return newFakeIngresses(c)
}
func (c *FakeConfigV1) Networks() v1.NetworkInterface {
- return &FakeNetworks{c}
+ return newFakeNetworks(c)
}
func (c *FakeConfigV1) Nodes() v1.NodeInterface {
- return &FakeNodes{c}
+ return newFakeNodes(c)
}
func (c *FakeConfigV1) OAuths() v1.OAuthInterface {
- return &FakeOAuths{c}
+ return newFakeOAuths(c)
}
func (c *FakeConfigV1) OperatorHubs() v1.OperatorHubInterface {
- return &FakeOperatorHubs{c}
+ return newFakeOperatorHubs(c)
}
func (c *FakeConfigV1) Projects() v1.ProjectInterface {
- return &FakeProjects{c}
+ return newFakeProjects(c)
}
func (c *FakeConfigV1) Proxies() v1.ProxyInterface {
- return &FakeProxies{c}
+ return newFakeProxies(c)
}
func (c *FakeConfigV1) Schedulers() v1.SchedulerInterface {
- return &FakeSchedulers{c}
+ return newFakeSchedulers(c)
}
// RESTClient returns a RESTClient that is used to communicate
diff --git a/config/clientset/versioned/typed/config/v1/fake/fake_console.go b/config/clientset/versioned/typed/config/v1/fake/fake_console.go
index 93da56fec..1f1cbdd72 100644
--- a/config/clientset/versioned/typed/config/v1/fake/fake_console.go
+++ b/config/clientset/versioned/typed/config/v1/fake/fake_console.go
@@ -3,168 +3,31 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/config/v1"
configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedconfigv1 "github.com/openshift/client-go/config/clientset/versioned/typed/config/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeConsoles implements ConsoleInterface
-type FakeConsoles struct {
+// fakeConsoles implements ConsoleInterface
+type fakeConsoles struct {
+ *gentype.FakeClientWithListAndApply[*v1.Console, *v1.ConsoleList, *configv1.ConsoleApplyConfiguration]
Fake *FakeConfigV1
}
-var consolesResource = v1.SchemeGroupVersion.WithResource("consoles")
-
-var consolesKind = v1.SchemeGroupVersion.WithKind("Console")
-
-// Get takes name of the console, and returns the corresponding console object, and an error if there is any.
-func (c *FakeConsoles) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Console, err error) {
- emptyResult := &v1.Console{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(consolesResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Console), err
-}
-
-// List takes label and field selectors, and returns the list of Consoles that match those selectors.
-func (c *FakeConsoles) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ConsoleList, err error) {
- emptyResult := &v1.ConsoleList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(consolesResource, consolesKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.ConsoleList{ListMeta: obj.(*v1.ConsoleList).ListMeta}
- for _, item := range obj.(*v1.ConsoleList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested consoles.
-func (c *FakeConsoles) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(consolesResource, opts))
-}
-
-// Create takes the representation of a console and creates it. Returns the server's representation of the console, and an error, if there is any.
-func (c *FakeConsoles) Create(ctx context.Context, console *v1.Console, opts metav1.CreateOptions) (result *v1.Console, err error) {
- emptyResult := &v1.Console{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(consolesResource, console, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Console), err
-}
-
-// Update takes the representation of a console and updates it. Returns the server's representation of the console, and an error, if there is any.
-func (c *FakeConsoles) Update(ctx context.Context, console *v1.Console, opts metav1.UpdateOptions) (result *v1.Console, err error) {
- emptyResult := &v1.Console{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(consolesResource, console, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Console), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeConsoles) UpdateStatus(ctx context.Context, console *v1.Console, opts metav1.UpdateOptions) (result *v1.Console, err error) {
- emptyResult := &v1.Console{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(consolesResource, "status", console, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Console), err
-}
-
-// Delete takes name of the console and deletes it. Returns an error if one occurs.
-func (c *FakeConsoles) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(consolesResource, name, opts), &v1.Console{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeConsoles) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(consolesResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.ConsoleList{})
- return err
-}
-
-// Patch applies the patch and returns the patched console.
-func (c *FakeConsoles) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Console, err error) {
- emptyResult := &v1.Console{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(consolesResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Console), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied console.
-func (c *FakeConsoles) Apply(ctx context.Context, console *configv1.ConsoleApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Console, err error) {
- if console == nil {
- return nil, fmt.Errorf("console provided to Apply must not be nil")
- }
- data, err := json.Marshal(console)
- if err != nil {
- return nil, err
- }
- name := console.Name
- if name == nil {
- return nil, fmt.Errorf("console.Name must be provided to Apply")
- }
- emptyResult := &v1.Console{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(consolesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Console), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeConsoles) ApplyStatus(ctx context.Context, console *configv1.ConsoleApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Console, err error) {
- if console == nil {
- return nil, fmt.Errorf("console provided to Apply must not be nil")
- }
- data, err := json.Marshal(console)
- if err != nil {
- return nil, err
- }
- name := console.Name
- if name == nil {
- return nil, fmt.Errorf("console.Name must be provided to Apply")
- }
- emptyResult := &v1.Console{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(consolesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeConsoles(fake *FakeConfigV1) typedconfigv1.ConsoleInterface {
+ return &fakeConsoles{
+ gentype.NewFakeClientWithListAndApply[*v1.Console, *v1.ConsoleList, *configv1.ConsoleApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("consoles"),
+ v1.SchemeGroupVersion.WithKind("Console"),
+ func() *v1.Console { return &v1.Console{} },
+ func() *v1.ConsoleList { return &v1.ConsoleList{} },
+ func(dst, src *v1.ConsoleList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.ConsoleList) []*v1.Console { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.ConsoleList, items []*v1.Console) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.Console), err
}
diff --git a/config/clientset/versioned/typed/config/v1/fake/fake_dns.go b/config/clientset/versioned/typed/config/v1/fake/fake_dns.go
index f89edf6d6..5d998d634 100644
--- a/config/clientset/versioned/typed/config/v1/fake/fake_dns.go
+++ b/config/clientset/versioned/typed/config/v1/fake/fake_dns.go
@@ -3,168 +3,31 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/config/v1"
configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedconfigv1 "github.com/openshift/client-go/config/clientset/versioned/typed/config/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeDNSes implements DNSInterface
-type FakeDNSes struct {
+// fakeDNSes implements DNSInterface
+type fakeDNSes struct {
+ *gentype.FakeClientWithListAndApply[*v1.DNS, *v1.DNSList, *configv1.DNSApplyConfiguration]
Fake *FakeConfigV1
}
-var dnsesResource = v1.SchemeGroupVersion.WithResource("dnses")
-
-var dnsesKind = v1.SchemeGroupVersion.WithKind("DNS")
-
-// Get takes name of the dNS, and returns the corresponding dNS object, and an error if there is any.
-func (c *FakeDNSes) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.DNS, err error) {
- emptyResult := &v1.DNS{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(dnsesResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.DNS), err
-}
-
-// List takes label and field selectors, and returns the list of DNSes that match those selectors.
-func (c *FakeDNSes) List(ctx context.Context, opts metav1.ListOptions) (result *v1.DNSList, err error) {
- emptyResult := &v1.DNSList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(dnsesResource, dnsesKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.DNSList{ListMeta: obj.(*v1.DNSList).ListMeta}
- for _, item := range obj.(*v1.DNSList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested dNSes.
-func (c *FakeDNSes) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(dnsesResource, opts))
-}
-
-// Create takes the representation of a dNS and creates it. Returns the server's representation of the dNS, and an error, if there is any.
-func (c *FakeDNSes) Create(ctx context.Context, dNS *v1.DNS, opts metav1.CreateOptions) (result *v1.DNS, err error) {
- emptyResult := &v1.DNS{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(dnsesResource, dNS, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.DNS), err
-}
-
-// Update takes the representation of a dNS and updates it. Returns the server's representation of the dNS, and an error, if there is any.
-func (c *FakeDNSes) Update(ctx context.Context, dNS *v1.DNS, opts metav1.UpdateOptions) (result *v1.DNS, err error) {
- emptyResult := &v1.DNS{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(dnsesResource, dNS, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.DNS), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeDNSes) UpdateStatus(ctx context.Context, dNS *v1.DNS, opts metav1.UpdateOptions) (result *v1.DNS, err error) {
- emptyResult := &v1.DNS{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(dnsesResource, "status", dNS, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.DNS), err
-}
-
-// Delete takes name of the dNS and deletes it. Returns an error if one occurs.
-func (c *FakeDNSes) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(dnsesResource, name, opts), &v1.DNS{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeDNSes) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(dnsesResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.DNSList{})
- return err
-}
-
-// Patch applies the patch and returns the patched dNS.
-func (c *FakeDNSes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DNS, err error) {
- emptyResult := &v1.DNS{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(dnsesResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.DNS), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied dNS.
-func (c *FakeDNSes) Apply(ctx context.Context, dNS *configv1.DNSApplyConfiguration, opts metav1.ApplyOptions) (result *v1.DNS, err error) {
- if dNS == nil {
- return nil, fmt.Errorf("dNS provided to Apply must not be nil")
- }
- data, err := json.Marshal(dNS)
- if err != nil {
- return nil, err
- }
- name := dNS.Name
- if name == nil {
- return nil, fmt.Errorf("dNS.Name must be provided to Apply")
- }
- emptyResult := &v1.DNS{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(dnsesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.DNS), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeDNSes) ApplyStatus(ctx context.Context, dNS *configv1.DNSApplyConfiguration, opts metav1.ApplyOptions) (result *v1.DNS, err error) {
- if dNS == nil {
- return nil, fmt.Errorf("dNS provided to Apply must not be nil")
- }
- data, err := json.Marshal(dNS)
- if err != nil {
- return nil, err
- }
- name := dNS.Name
- if name == nil {
- return nil, fmt.Errorf("dNS.Name must be provided to Apply")
- }
- emptyResult := &v1.DNS{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(dnsesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeDNSes(fake *FakeConfigV1) typedconfigv1.DNSInterface {
+ return &fakeDNSes{
+ gentype.NewFakeClientWithListAndApply[*v1.DNS, *v1.DNSList, *configv1.DNSApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("dnses"),
+ v1.SchemeGroupVersion.WithKind("DNS"),
+ func() *v1.DNS { return &v1.DNS{} },
+ func() *v1.DNSList { return &v1.DNSList{} },
+ func(dst, src *v1.DNSList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.DNSList) []*v1.DNS { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.DNSList, items []*v1.DNS) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.DNS), err
}
diff --git a/config/clientset/versioned/typed/config/v1/fake/fake_featuregate.go b/config/clientset/versioned/typed/config/v1/fake/fake_featuregate.go
index ef23684bb..21dcf2e63 100644
--- a/config/clientset/versioned/typed/config/v1/fake/fake_featuregate.go
+++ b/config/clientset/versioned/typed/config/v1/fake/fake_featuregate.go
@@ -3,168 +3,31 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/config/v1"
configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedconfigv1 "github.com/openshift/client-go/config/clientset/versioned/typed/config/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeFeatureGates implements FeatureGateInterface
-type FakeFeatureGates struct {
+// fakeFeatureGates implements FeatureGateInterface
+type fakeFeatureGates struct {
+ *gentype.FakeClientWithListAndApply[*v1.FeatureGate, *v1.FeatureGateList, *configv1.FeatureGateApplyConfiguration]
Fake *FakeConfigV1
}
-var featuregatesResource = v1.SchemeGroupVersion.WithResource("featuregates")
-
-var featuregatesKind = v1.SchemeGroupVersion.WithKind("FeatureGate")
-
-// Get takes name of the featureGate, and returns the corresponding featureGate object, and an error if there is any.
-func (c *FakeFeatureGates) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.FeatureGate, err error) {
- emptyResult := &v1.FeatureGate{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(featuregatesResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.FeatureGate), err
-}
-
-// List takes label and field selectors, and returns the list of FeatureGates that match those selectors.
-func (c *FakeFeatureGates) List(ctx context.Context, opts metav1.ListOptions) (result *v1.FeatureGateList, err error) {
- emptyResult := &v1.FeatureGateList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(featuregatesResource, featuregatesKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.FeatureGateList{ListMeta: obj.(*v1.FeatureGateList).ListMeta}
- for _, item := range obj.(*v1.FeatureGateList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested featureGates.
-func (c *FakeFeatureGates) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(featuregatesResource, opts))
-}
-
-// Create takes the representation of a featureGate and creates it. Returns the server's representation of the featureGate, and an error, if there is any.
-func (c *FakeFeatureGates) Create(ctx context.Context, featureGate *v1.FeatureGate, opts metav1.CreateOptions) (result *v1.FeatureGate, err error) {
- emptyResult := &v1.FeatureGate{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(featuregatesResource, featureGate, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.FeatureGate), err
-}
-
-// Update takes the representation of a featureGate and updates it. Returns the server's representation of the featureGate, and an error, if there is any.
-func (c *FakeFeatureGates) Update(ctx context.Context, featureGate *v1.FeatureGate, opts metav1.UpdateOptions) (result *v1.FeatureGate, err error) {
- emptyResult := &v1.FeatureGate{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(featuregatesResource, featureGate, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.FeatureGate), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeFeatureGates) UpdateStatus(ctx context.Context, featureGate *v1.FeatureGate, opts metav1.UpdateOptions) (result *v1.FeatureGate, err error) {
- emptyResult := &v1.FeatureGate{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(featuregatesResource, "status", featureGate, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.FeatureGate), err
-}
-
-// Delete takes name of the featureGate and deletes it. Returns an error if one occurs.
-func (c *FakeFeatureGates) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(featuregatesResource, name, opts), &v1.FeatureGate{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeFeatureGates) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(featuregatesResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.FeatureGateList{})
- return err
-}
-
-// Patch applies the patch and returns the patched featureGate.
-func (c *FakeFeatureGates) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.FeatureGate, err error) {
- emptyResult := &v1.FeatureGate{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(featuregatesResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.FeatureGate), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied featureGate.
-func (c *FakeFeatureGates) Apply(ctx context.Context, featureGate *configv1.FeatureGateApplyConfiguration, opts metav1.ApplyOptions) (result *v1.FeatureGate, err error) {
- if featureGate == nil {
- return nil, fmt.Errorf("featureGate provided to Apply must not be nil")
- }
- data, err := json.Marshal(featureGate)
- if err != nil {
- return nil, err
- }
- name := featureGate.Name
- if name == nil {
- return nil, fmt.Errorf("featureGate.Name must be provided to Apply")
- }
- emptyResult := &v1.FeatureGate{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(featuregatesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.FeatureGate), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeFeatureGates) ApplyStatus(ctx context.Context, featureGate *configv1.FeatureGateApplyConfiguration, opts metav1.ApplyOptions) (result *v1.FeatureGate, err error) {
- if featureGate == nil {
- return nil, fmt.Errorf("featureGate provided to Apply must not be nil")
- }
- data, err := json.Marshal(featureGate)
- if err != nil {
- return nil, err
- }
- name := featureGate.Name
- if name == nil {
- return nil, fmt.Errorf("featureGate.Name must be provided to Apply")
- }
- emptyResult := &v1.FeatureGate{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(featuregatesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeFeatureGates(fake *FakeConfigV1) typedconfigv1.FeatureGateInterface {
+ return &fakeFeatureGates{
+ gentype.NewFakeClientWithListAndApply[*v1.FeatureGate, *v1.FeatureGateList, *configv1.FeatureGateApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("featuregates"),
+ v1.SchemeGroupVersion.WithKind("FeatureGate"),
+ func() *v1.FeatureGate { return &v1.FeatureGate{} },
+ func() *v1.FeatureGateList { return &v1.FeatureGateList{} },
+ func(dst, src *v1.FeatureGateList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.FeatureGateList) []*v1.FeatureGate { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.FeatureGateList, items []*v1.FeatureGate) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.FeatureGate), err
}
diff --git a/config/clientset/versioned/typed/config/v1/fake/fake_image.go b/config/clientset/versioned/typed/config/v1/fake/fake_image.go
index a6bcc09e9..107a96071 100644
--- a/config/clientset/versioned/typed/config/v1/fake/fake_image.go
+++ b/config/clientset/versioned/typed/config/v1/fake/fake_image.go
@@ -3,168 +3,31 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/config/v1"
configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedconfigv1 "github.com/openshift/client-go/config/clientset/versioned/typed/config/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeImages implements ImageInterface
-type FakeImages struct {
+// fakeImages implements ImageInterface
+type fakeImages struct {
+ *gentype.FakeClientWithListAndApply[*v1.Image, *v1.ImageList, *configv1.ImageApplyConfiguration]
Fake *FakeConfigV1
}
-var imagesResource = v1.SchemeGroupVersion.WithResource("images")
-
-var imagesKind = v1.SchemeGroupVersion.WithKind("Image")
-
-// Get takes name of the image, and returns the corresponding image object, and an error if there is any.
-func (c *FakeImages) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Image, err error) {
- emptyResult := &v1.Image{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(imagesResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Image), err
-}
-
-// List takes label and field selectors, and returns the list of Images that match those selectors.
-func (c *FakeImages) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ImageList, err error) {
- emptyResult := &v1.ImageList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(imagesResource, imagesKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.ImageList{ListMeta: obj.(*v1.ImageList).ListMeta}
- for _, item := range obj.(*v1.ImageList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested images.
-func (c *FakeImages) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(imagesResource, opts))
-}
-
-// Create takes the representation of a image and creates it. Returns the server's representation of the image, and an error, if there is any.
-func (c *FakeImages) Create(ctx context.Context, image *v1.Image, opts metav1.CreateOptions) (result *v1.Image, err error) {
- emptyResult := &v1.Image{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(imagesResource, image, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Image), err
-}
-
-// Update takes the representation of a image and updates it. Returns the server's representation of the image, and an error, if there is any.
-func (c *FakeImages) Update(ctx context.Context, image *v1.Image, opts metav1.UpdateOptions) (result *v1.Image, err error) {
- emptyResult := &v1.Image{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(imagesResource, image, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Image), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeImages) UpdateStatus(ctx context.Context, image *v1.Image, opts metav1.UpdateOptions) (result *v1.Image, err error) {
- emptyResult := &v1.Image{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(imagesResource, "status", image, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Image), err
-}
-
-// Delete takes name of the image and deletes it. Returns an error if one occurs.
-func (c *FakeImages) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(imagesResource, name, opts), &v1.Image{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeImages) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(imagesResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.ImageList{})
- return err
-}
-
-// Patch applies the patch and returns the patched image.
-func (c *FakeImages) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Image, err error) {
- emptyResult := &v1.Image{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(imagesResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Image), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied image.
-func (c *FakeImages) Apply(ctx context.Context, image *configv1.ImageApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Image, err error) {
- if image == nil {
- return nil, fmt.Errorf("image provided to Apply must not be nil")
- }
- data, err := json.Marshal(image)
- if err != nil {
- return nil, err
- }
- name := image.Name
- if name == nil {
- return nil, fmt.Errorf("image.Name must be provided to Apply")
- }
- emptyResult := &v1.Image{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(imagesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Image), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeImages) ApplyStatus(ctx context.Context, image *configv1.ImageApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Image, err error) {
- if image == nil {
- return nil, fmt.Errorf("image provided to Apply must not be nil")
- }
- data, err := json.Marshal(image)
- if err != nil {
- return nil, err
- }
- name := image.Name
- if name == nil {
- return nil, fmt.Errorf("image.Name must be provided to Apply")
- }
- emptyResult := &v1.Image{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(imagesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeImages(fake *FakeConfigV1) typedconfigv1.ImageInterface {
+ return &fakeImages{
+ gentype.NewFakeClientWithListAndApply[*v1.Image, *v1.ImageList, *configv1.ImageApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("images"),
+ v1.SchemeGroupVersion.WithKind("Image"),
+ func() *v1.Image { return &v1.Image{} },
+ func() *v1.ImageList { return &v1.ImageList{} },
+ func(dst, src *v1.ImageList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.ImageList) []*v1.Image { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.ImageList, items []*v1.Image) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.Image), err
}
diff --git a/config/clientset/versioned/typed/config/v1/fake/fake_imagecontentpolicy.go b/config/clientset/versioned/typed/config/v1/fake/fake_imagecontentpolicy.go
index 1905ae32d..a0771c422 100644
--- a/config/clientset/versioned/typed/config/v1/fake/fake_imagecontentpolicy.go
+++ b/config/clientset/versioned/typed/config/v1/fake/fake_imagecontentpolicy.go
@@ -3,133 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/config/v1"
configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedconfigv1 "github.com/openshift/client-go/config/clientset/versioned/typed/config/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeImageContentPolicies implements ImageContentPolicyInterface
-type FakeImageContentPolicies struct {
+// fakeImageContentPolicies implements ImageContentPolicyInterface
+type fakeImageContentPolicies struct {
+ *gentype.FakeClientWithListAndApply[*v1.ImageContentPolicy, *v1.ImageContentPolicyList, *configv1.ImageContentPolicyApplyConfiguration]
Fake *FakeConfigV1
}
-var imagecontentpoliciesResource = v1.SchemeGroupVersion.WithResource("imagecontentpolicies")
-
-var imagecontentpoliciesKind = v1.SchemeGroupVersion.WithKind("ImageContentPolicy")
-
-// Get takes name of the imageContentPolicy, and returns the corresponding imageContentPolicy object, and an error if there is any.
-func (c *FakeImageContentPolicies) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ImageContentPolicy, err error) {
- emptyResult := &v1.ImageContentPolicy{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(imagecontentpoliciesResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ImageContentPolicy), err
-}
-
-// List takes label and field selectors, and returns the list of ImageContentPolicies that match those selectors.
-func (c *FakeImageContentPolicies) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ImageContentPolicyList, err error) {
- emptyResult := &v1.ImageContentPolicyList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(imagecontentpoliciesResource, imagecontentpoliciesKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.ImageContentPolicyList{ListMeta: obj.(*v1.ImageContentPolicyList).ListMeta}
- for _, item := range obj.(*v1.ImageContentPolicyList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested imageContentPolicies.
-func (c *FakeImageContentPolicies) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(imagecontentpoliciesResource, opts))
-}
-
-// Create takes the representation of a imageContentPolicy and creates it. Returns the server's representation of the imageContentPolicy, and an error, if there is any.
-func (c *FakeImageContentPolicies) Create(ctx context.Context, imageContentPolicy *v1.ImageContentPolicy, opts metav1.CreateOptions) (result *v1.ImageContentPolicy, err error) {
- emptyResult := &v1.ImageContentPolicy{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(imagecontentpoliciesResource, imageContentPolicy, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ImageContentPolicy), err
-}
-
-// Update takes the representation of a imageContentPolicy and updates it. Returns the server's representation of the imageContentPolicy, and an error, if there is any.
-func (c *FakeImageContentPolicies) Update(ctx context.Context, imageContentPolicy *v1.ImageContentPolicy, opts metav1.UpdateOptions) (result *v1.ImageContentPolicy, err error) {
- emptyResult := &v1.ImageContentPolicy{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(imagecontentpoliciesResource, imageContentPolicy, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ImageContentPolicy), err
-}
-
-// Delete takes name of the imageContentPolicy and deletes it. Returns an error if one occurs.
-func (c *FakeImageContentPolicies) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(imagecontentpoliciesResource, name, opts), &v1.ImageContentPolicy{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeImageContentPolicies) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(imagecontentpoliciesResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.ImageContentPolicyList{})
- return err
-}
-
-// Patch applies the patch and returns the patched imageContentPolicy.
-func (c *FakeImageContentPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ImageContentPolicy, err error) {
- emptyResult := &v1.ImageContentPolicy{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(imagecontentpoliciesResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ImageContentPolicy), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied imageContentPolicy.
-func (c *FakeImageContentPolicies) Apply(ctx context.Context, imageContentPolicy *configv1.ImageContentPolicyApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ImageContentPolicy, err error) {
- if imageContentPolicy == nil {
- return nil, fmt.Errorf("imageContentPolicy provided to Apply must not be nil")
- }
- data, err := json.Marshal(imageContentPolicy)
- if err != nil {
- return nil, err
- }
- name := imageContentPolicy.Name
- if name == nil {
- return nil, fmt.Errorf("imageContentPolicy.Name must be provided to Apply")
- }
- emptyResult := &v1.ImageContentPolicy{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(imagecontentpoliciesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeImageContentPolicies(fake *FakeConfigV1) typedconfigv1.ImageContentPolicyInterface {
+ return &fakeImageContentPolicies{
+ gentype.NewFakeClientWithListAndApply[*v1.ImageContentPolicy, *v1.ImageContentPolicyList, *configv1.ImageContentPolicyApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("imagecontentpolicies"),
+ v1.SchemeGroupVersion.WithKind("ImageContentPolicy"),
+ func() *v1.ImageContentPolicy { return &v1.ImageContentPolicy{} },
+ func() *v1.ImageContentPolicyList { return &v1.ImageContentPolicyList{} },
+ func(dst, src *v1.ImageContentPolicyList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.ImageContentPolicyList) []*v1.ImageContentPolicy {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1.ImageContentPolicyList, items []*v1.ImageContentPolicy) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.ImageContentPolicy), err
}
diff --git a/config/clientset/versioned/typed/config/v1/fake/fake_imagedigestmirrorset.go b/config/clientset/versioned/typed/config/v1/fake/fake_imagedigestmirrorset.go
index 25d147a43..fda5bdcce 100644
--- a/config/clientset/versioned/typed/config/v1/fake/fake_imagedigestmirrorset.go
+++ b/config/clientset/versioned/typed/config/v1/fake/fake_imagedigestmirrorset.go
@@ -3,168 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/config/v1"
configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedconfigv1 "github.com/openshift/client-go/config/clientset/versioned/typed/config/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeImageDigestMirrorSets implements ImageDigestMirrorSetInterface
-type FakeImageDigestMirrorSets struct {
+// fakeImageDigestMirrorSets implements ImageDigestMirrorSetInterface
+type fakeImageDigestMirrorSets struct {
+ *gentype.FakeClientWithListAndApply[*v1.ImageDigestMirrorSet, *v1.ImageDigestMirrorSetList, *configv1.ImageDigestMirrorSetApplyConfiguration]
Fake *FakeConfigV1
}
-var imagedigestmirrorsetsResource = v1.SchemeGroupVersion.WithResource("imagedigestmirrorsets")
-
-var imagedigestmirrorsetsKind = v1.SchemeGroupVersion.WithKind("ImageDigestMirrorSet")
-
-// Get takes name of the imageDigestMirrorSet, and returns the corresponding imageDigestMirrorSet object, and an error if there is any.
-func (c *FakeImageDigestMirrorSets) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ImageDigestMirrorSet, err error) {
- emptyResult := &v1.ImageDigestMirrorSet{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(imagedigestmirrorsetsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ImageDigestMirrorSet), err
-}
-
-// List takes label and field selectors, and returns the list of ImageDigestMirrorSets that match those selectors.
-func (c *FakeImageDigestMirrorSets) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ImageDigestMirrorSetList, err error) {
- emptyResult := &v1.ImageDigestMirrorSetList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(imagedigestmirrorsetsResource, imagedigestmirrorsetsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.ImageDigestMirrorSetList{ListMeta: obj.(*v1.ImageDigestMirrorSetList).ListMeta}
- for _, item := range obj.(*v1.ImageDigestMirrorSetList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested imageDigestMirrorSets.
-func (c *FakeImageDigestMirrorSets) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(imagedigestmirrorsetsResource, opts))
-}
-
-// Create takes the representation of a imageDigestMirrorSet and creates it. Returns the server's representation of the imageDigestMirrorSet, and an error, if there is any.
-func (c *FakeImageDigestMirrorSets) Create(ctx context.Context, imageDigestMirrorSet *v1.ImageDigestMirrorSet, opts metav1.CreateOptions) (result *v1.ImageDigestMirrorSet, err error) {
- emptyResult := &v1.ImageDigestMirrorSet{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(imagedigestmirrorsetsResource, imageDigestMirrorSet, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ImageDigestMirrorSet), err
-}
-
-// Update takes the representation of a imageDigestMirrorSet and updates it. Returns the server's representation of the imageDigestMirrorSet, and an error, if there is any.
-func (c *FakeImageDigestMirrorSets) Update(ctx context.Context, imageDigestMirrorSet *v1.ImageDigestMirrorSet, opts metav1.UpdateOptions) (result *v1.ImageDigestMirrorSet, err error) {
- emptyResult := &v1.ImageDigestMirrorSet{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(imagedigestmirrorsetsResource, imageDigestMirrorSet, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ImageDigestMirrorSet), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeImageDigestMirrorSets) UpdateStatus(ctx context.Context, imageDigestMirrorSet *v1.ImageDigestMirrorSet, opts metav1.UpdateOptions) (result *v1.ImageDigestMirrorSet, err error) {
- emptyResult := &v1.ImageDigestMirrorSet{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(imagedigestmirrorsetsResource, "status", imageDigestMirrorSet, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ImageDigestMirrorSet), err
-}
-
-// Delete takes name of the imageDigestMirrorSet and deletes it. Returns an error if one occurs.
-func (c *FakeImageDigestMirrorSets) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(imagedigestmirrorsetsResource, name, opts), &v1.ImageDigestMirrorSet{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeImageDigestMirrorSets) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(imagedigestmirrorsetsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.ImageDigestMirrorSetList{})
- return err
-}
-
-// Patch applies the patch and returns the patched imageDigestMirrorSet.
-func (c *FakeImageDigestMirrorSets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ImageDigestMirrorSet, err error) {
- emptyResult := &v1.ImageDigestMirrorSet{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(imagedigestmirrorsetsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ImageDigestMirrorSet), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied imageDigestMirrorSet.
-func (c *FakeImageDigestMirrorSets) Apply(ctx context.Context, imageDigestMirrorSet *configv1.ImageDigestMirrorSetApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ImageDigestMirrorSet, err error) {
- if imageDigestMirrorSet == nil {
- return nil, fmt.Errorf("imageDigestMirrorSet provided to Apply must not be nil")
- }
- data, err := json.Marshal(imageDigestMirrorSet)
- if err != nil {
- return nil, err
- }
- name := imageDigestMirrorSet.Name
- if name == nil {
- return nil, fmt.Errorf("imageDigestMirrorSet.Name must be provided to Apply")
- }
- emptyResult := &v1.ImageDigestMirrorSet{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(imagedigestmirrorsetsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ImageDigestMirrorSet), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeImageDigestMirrorSets) ApplyStatus(ctx context.Context, imageDigestMirrorSet *configv1.ImageDigestMirrorSetApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ImageDigestMirrorSet, err error) {
- if imageDigestMirrorSet == nil {
- return nil, fmt.Errorf("imageDigestMirrorSet provided to Apply must not be nil")
- }
- data, err := json.Marshal(imageDigestMirrorSet)
- if err != nil {
- return nil, err
- }
- name := imageDigestMirrorSet.Name
- if name == nil {
- return nil, fmt.Errorf("imageDigestMirrorSet.Name must be provided to Apply")
- }
- emptyResult := &v1.ImageDigestMirrorSet{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(imagedigestmirrorsetsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeImageDigestMirrorSets(fake *FakeConfigV1) typedconfigv1.ImageDigestMirrorSetInterface {
+ return &fakeImageDigestMirrorSets{
+ gentype.NewFakeClientWithListAndApply[*v1.ImageDigestMirrorSet, *v1.ImageDigestMirrorSetList, *configv1.ImageDigestMirrorSetApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("imagedigestmirrorsets"),
+ v1.SchemeGroupVersion.WithKind("ImageDigestMirrorSet"),
+ func() *v1.ImageDigestMirrorSet { return &v1.ImageDigestMirrorSet{} },
+ func() *v1.ImageDigestMirrorSetList { return &v1.ImageDigestMirrorSetList{} },
+ func(dst, src *v1.ImageDigestMirrorSetList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.ImageDigestMirrorSetList) []*v1.ImageDigestMirrorSet {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1.ImageDigestMirrorSetList, items []*v1.ImageDigestMirrorSet) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.ImageDigestMirrorSet), err
}
diff --git a/config/clientset/versioned/typed/config/v1/fake/fake_imagetagmirrorset.go b/config/clientset/versioned/typed/config/v1/fake/fake_imagetagmirrorset.go
index 3ebcdb95c..cea42e044 100644
--- a/config/clientset/versioned/typed/config/v1/fake/fake_imagetagmirrorset.go
+++ b/config/clientset/versioned/typed/config/v1/fake/fake_imagetagmirrorset.go
@@ -3,168 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/config/v1"
configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedconfigv1 "github.com/openshift/client-go/config/clientset/versioned/typed/config/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeImageTagMirrorSets implements ImageTagMirrorSetInterface
-type FakeImageTagMirrorSets struct {
+// fakeImageTagMirrorSets implements ImageTagMirrorSetInterface
+type fakeImageTagMirrorSets struct {
+ *gentype.FakeClientWithListAndApply[*v1.ImageTagMirrorSet, *v1.ImageTagMirrorSetList, *configv1.ImageTagMirrorSetApplyConfiguration]
Fake *FakeConfigV1
}
-var imagetagmirrorsetsResource = v1.SchemeGroupVersion.WithResource("imagetagmirrorsets")
-
-var imagetagmirrorsetsKind = v1.SchemeGroupVersion.WithKind("ImageTagMirrorSet")
-
-// Get takes name of the imageTagMirrorSet, and returns the corresponding imageTagMirrorSet object, and an error if there is any.
-func (c *FakeImageTagMirrorSets) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ImageTagMirrorSet, err error) {
- emptyResult := &v1.ImageTagMirrorSet{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(imagetagmirrorsetsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ImageTagMirrorSet), err
-}
-
-// List takes label and field selectors, and returns the list of ImageTagMirrorSets that match those selectors.
-func (c *FakeImageTagMirrorSets) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ImageTagMirrorSetList, err error) {
- emptyResult := &v1.ImageTagMirrorSetList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(imagetagmirrorsetsResource, imagetagmirrorsetsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.ImageTagMirrorSetList{ListMeta: obj.(*v1.ImageTagMirrorSetList).ListMeta}
- for _, item := range obj.(*v1.ImageTagMirrorSetList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested imageTagMirrorSets.
-func (c *FakeImageTagMirrorSets) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(imagetagmirrorsetsResource, opts))
-}
-
-// Create takes the representation of a imageTagMirrorSet and creates it. Returns the server's representation of the imageTagMirrorSet, and an error, if there is any.
-func (c *FakeImageTagMirrorSets) Create(ctx context.Context, imageTagMirrorSet *v1.ImageTagMirrorSet, opts metav1.CreateOptions) (result *v1.ImageTagMirrorSet, err error) {
- emptyResult := &v1.ImageTagMirrorSet{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(imagetagmirrorsetsResource, imageTagMirrorSet, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ImageTagMirrorSet), err
-}
-
-// Update takes the representation of a imageTagMirrorSet and updates it. Returns the server's representation of the imageTagMirrorSet, and an error, if there is any.
-func (c *FakeImageTagMirrorSets) Update(ctx context.Context, imageTagMirrorSet *v1.ImageTagMirrorSet, opts metav1.UpdateOptions) (result *v1.ImageTagMirrorSet, err error) {
- emptyResult := &v1.ImageTagMirrorSet{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(imagetagmirrorsetsResource, imageTagMirrorSet, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ImageTagMirrorSet), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeImageTagMirrorSets) UpdateStatus(ctx context.Context, imageTagMirrorSet *v1.ImageTagMirrorSet, opts metav1.UpdateOptions) (result *v1.ImageTagMirrorSet, err error) {
- emptyResult := &v1.ImageTagMirrorSet{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(imagetagmirrorsetsResource, "status", imageTagMirrorSet, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ImageTagMirrorSet), err
-}
-
-// Delete takes name of the imageTagMirrorSet and deletes it. Returns an error if one occurs.
-func (c *FakeImageTagMirrorSets) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(imagetagmirrorsetsResource, name, opts), &v1.ImageTagMirrorSet{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeImageTagMirrorSets) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(imagetagmirrorsetsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.ImageTagMirrorSetList{})
- return err
-}
-
-// Patch applies the patch and returns the patched imageTagMirrorSet.
-func (c *FakeImageTagMirrorSets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ImageTagMirrorSet, err error) {
- emptyResult := &v1.ImageTagMirrorSet{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(imagetagmirrorsetsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ImageTagMirrorSet), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied imageTagMirrorSet.
-func (c *FakeImageTagMirrorSets) Apply(ctx context.Context, imageTagMirrorSet *configv1.ImageTagMirrorSetApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ImageTagMirrorSet, err error) {
- if imageTagMirrorSet == nil {
- return nil, fmt.Errorf("imageTagMirrorSet provided to Apply must not be nil")
- }
- data, err := json.Marshal(imageTagMirrorSet)
- if err != nil {
- return nil, err
- }
- name := imageTagMirrorSet.Name
- if name == nil {
- return nil, fmt.Errorf("imageTagMirrorSet.Name must be provided to Apply")
- }
- emptyResult := &v1.ImageTagMirrorSet{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(imagetagmirrorsetsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ImageTagMirrorSet), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeImageTagMirrorSets) ApplyStatus(ctx context.Context, imageTagMirrorSet *configv1.ImageTagMirrorSetApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ImageTagMirrorSet, err error) {
- if imageTagMirrorSet == nil {
- return nil, fmt.Errorf("imageTagMirrorSet provided to Apply must not be nil")
- }
- data, err := json.Marshal(imageTagMirrorSet)
- if err != nil {
- return nil, err
- }
- name := imageTagMirrorSet.Name
- if name == nil {
- return nil, fmt.Errorf("imageTagMirrorSet.Name must be provided to Apply")
- }
- emptyResult := &v1.ImageTagMirrorSet{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(imagetagmirrorsetsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeImageTagMirrorSets(fake *FakeConfigV1) typedconfigv1.ImageTagMirrorSetInterface {
+ return &fakeImageTagMirrorSets{
+ gentype.NewFakeClientWithListAndApply[*v1.ImageTagMirrorSet, *v1.ImageTagMirrorSetList, *configv1.ImageTagMirrorSetApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("imagetagmirrorsets"),
+ v1.SchemeGroupVersion.WithKind("ImageTagMirrorSet"),
+ func() *v1.ImageTagMirrorSet { return &v1.ImageTagMirrorSet{} },
+ func() *v1.ImageTagMirrorSetList { return &v1.ImageTagMirrorSetList{} },
+ func(dst, src *v1.ImageTagMirrorSetList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.ImageTagMirrorSetList) []*v1.ImageTagMirrorSet {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1.ImageTagMirrorSetList, items []*v1.ImageTagMirrorSet) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.ImageTagMirrorSet), err
}
diff --git a/config/clientset/versioned/typed/config/v1/fake/fake_infrastructure.go b/config/clientset/versioned/typed/config/v1/fake/fake_infrastructure.go
index 6b3f399ab..b859d6798 100644
--- a/config/clientset/versioned/typed/config/v1/fake/fake_infrastructure.go
+++ b/config/clientset/versioned/typed/config/v1/fake/fake_infrastructure.go
@@ -3,168 +3,33 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/config/v1"
configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedconfigv1 "github.com/openshift/client-go/config/clientset/versioned/typed/config/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeInfrastructures implements InfrastructureInterface
-type FakeInfrastructures struct {
+// fakeInfrastructures implements InfrastructureInterface
+type fakeInfrastructures struct {
+ *gentype.FakeClientWithListAndApply[*v1.Infrastructure, *v1.InfrastructureList, *configv1.InfrastructureApplyConfiguration]
Fake *FakeConfigV1
}
-var infrastructuresResource = v1.SchemeGroupVersion.WithResource("infrastructures")
-
-var infrastructuresKind = v1.SchemeGroupVersion.WithKind("Infrastructure")
-
-// Get takes name of the infrastructure, and returns the corresponding infrastructure object, and an error if there is any.
-func (c *FakeInfrastructures) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Infrastructure, err error) {
- emptyResult := &v1.Infrastructure{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(infrastructuresResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Infrastructure), err
-}
-
-// List takes label and field selectors, and returns the list of Infrastructures that match those selectors.
-func (c *FakeInfrastructures) List(ctx context.Context, opts metav1.ListOptions) (result *v1.InfrastructureList, err error) {
- emptyResult := &v1.InfrastructureList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(infrastructuresResource, infrastructuresKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.InfrastructureList{ListMeta: obj.(*v1.InfrastructureList).ListMeta}
- for _, item := range obj.(*v1.InfrastructureList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested infrastructures.
-func (c *FakeInfrastructures) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(infrastructuresResource, opts))
-}
-
-// Create takes the representation of a infrastructure and creates it. Returns the server's representation of the infrastructure, and an error, if there is any.
-func (c *FakeInfrastructures) Create(ctx context.Context, infrastructure *v1.Infrastructure, opts metav1.CreateOptions) (result *v1.Infrastructure, err error) {
- emptyResult := &v1.Infrastructure{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(infrastructuresResource, infrastructure, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Infrastructure), err
-}
-
-// Update takes the representation of a infrastructure and updates it. Returns the server's representation of the infrastructure, and an error, if there is any.
-func (c *FakeInfrastructures) Update(ctx context.Context, infrastructure *v1.Infrastructure, opts metav1.UpdateOptions) (result *v1.Infrastructure, err error) {
- emptyResult := &v1.Infrastructure{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(infrastructuresResource, infrastructure, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Infrastructure), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeInfrastructures) UpdateStatus(ctx context.Context, infrastructure *v1.Infrastructure, opts metav1.UpdateOptions) (result *v1.Infrastructure, err error) {
- emptyResult := &v1.Infrastructure{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(infrastructuresResource, "status", infrastructure, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Infrastructure), err
-}
-
-// Delete takes name of the infrastructure and deletes it. Returns an error if one occurs.
-func (c *FakeInfrastructures) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(infrastructuresResource, name, opts), &v1.Infrastructure{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeInfrastructures) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(infrastructuresResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.InfrastructureList{})
- return err
-}
-
-// Patch applies the patch and returns the patched infrastructure.
-func (c *FakeInfrastructures) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Infrastructure, err error) {
- emptyResult := &v1.Infrastructure{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(infrastructuresResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Infrastructure), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied infrastructure.
-func (c *FakeInfrastructures) Apply(ctx context.Context, infrastructure *configv1.InfrastructureApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Infrastructure, err error) {
- if infrastructure == nil {
- return nil, fmt.Errorf("infrastructure provided to Apply must not be nil")
- }
- data, err := json.Marshal(infrastructure)
- if err != nil {
- return nil, err
- }
- name := infrastructure.Name
- if name == nil {
- return nil, fmt.Errorf("infrastructure.Name must be provided to Apply")
- }
- emptyResult := &v1.Infrastructure{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(infrastructuresResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Infrastructure), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeInfrastructures) ApplyStatus(ctx context.Context, infrastructure *configv1.InfrastructureApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Infrastructure, err error) {
- if infrastructure == nil {
- return nil, fmt.Errorf("infrastructure provided to Apply must not be nil")
- }
- data, err := json.Marshal(infrastructure)
- if err != nil {
- return nil, err
- }
- name := infrastructure.Name
- if name == nil {
- return nil, fmt.Errorf("infrastructure.Name must be provided to Apply")
- }
- emptyResult := &v1.Infrastructure{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(infrastructuresResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeInfrastructures(fake *FakeConfigV1) typedconfigv1.InfrastructureInterface {
+ return &fakeInfrastructures{
+ gentype.NewFakeClientWithListAndApply[*v1.Infrastructure, *v1.InfrastructureList, *configv1.InfrastructureApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("infrastructures"),
+ v1.SchemeGroupVersion.WithKind("Infrastructure"),
+ func() *v1.Infrastructure { return &v1.Infrastructure{} },
+ func() *v1.InfrastructureList { return &v1.InfrastructureList{} },
+ func(dst, src *v1.InfrastructureList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.InfrastructureList) []*v1.Infrastructure { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.InfrastructureList, items []*v1.Infrastructure) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.Infrastructure), err
}
diff --git a/config/clientset/versioned/typed/config/v1/fake/fake_ingress.go b/config/clientset/versioned/typed/config/v1/fake/fake_ingress.go
index 249b717a4..5f7d16cda 100644
--- a/config/clientset/versioned/typed/config/v1/fake/fake_ingress.go
+++ b/config/clientset/versioned/typed/config/v1/fake/fake_ingress.go
@@ -3,168 +3,31 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/config/v1"
configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedconfigv1 "github.com/openshift/client-go/config/clientset/versioned/typed/config/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeIngresses implements IngressInterface
-type FakeIngresses struct {
+// fakeIngresses implements IngressInterface
+type fakeIngresses struct {
+ *gentype.FakeClientWithListAndApply[*v1.Ingress, *v1.IngressList, *configv1.IngressApplyConfiguration]
Fake *FakeConfigV1
}
-var ingressesResource = v1.SchemeGroupVersion.WithResource("ingresses")
-
-var ingressesKind = v1.SchemeGroupVersion.WithKind("Ingress")
-
-// Get takes name of the ingress, and returns the corresponding ingress object, and an error if there is any.
-func (c *FakeIngresses) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Ingress, err error) {
- emptyResult := &v1.Ingress{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(ingressesResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Ingress), err
-}
-
-// List takes label and field selectors, and returns the list of Ingresses that match those selectors.
-func (c *FakeIngresses) List(ctx context.Context, opts metav1.ListOptions) (result *v1.IngressList, err error) {
- emptyResult := &v1.IngressList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(ingressesResource, ingressesKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.IngressList{ListMeta: obj.(*v1.IngressList).ListMeta}
- for _, item := range obj.(*v1.IngressList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested ingresses.
-func (c *FakeIngresses) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(ingressesResource, opts))
-}
-
-// Create takes the representation of a ingress and creates it. Returns the server's representation of the ingress, and an error, if there is any.
-func (c *FakeIngresses) Create(ctx context.Context, ingress *v1.Ingress, opts metav1.CreateOptions) (result *v1.Ingress, err error) {
- emptyResult := &v1.Ingress{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(ingressesResource, ingress, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Ingress), err
-}
-
-// Update takes the representation of a ingress and updates it. Returns the server's representation of the ingress, and an error, if there is any.
-func (c *FakeIngresses) Update(ctx context.Context, ingress *v1.Ingress, opts metav1.UpdateOptions) (result *v1.Ingress, err error) {
- emptyResult := &v1.Ingress{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(ingressesResource, ingress, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Ingress), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeIngresses) UpdateStatus(ctx context.Context, ingress *v1.Ingress, opts metav1.UpdateOptions) (result *v1.Ingress, err error) {
- emptyResult := &v1.Ingress{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(ingressesResource, "status", ingress, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Ingress), err
-}
-
-// Delete takes name of the ingress and deletes it. Returns an error if one occurs.
-func (c *FakeIngresses) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(ingressesResource, name, opts), &v1.Ingress{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeIngresses) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(ingressesResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.IngressList{})
- return err
-}
-
-// Patch applies the patch and returns the patched ingress.
-func (c *FakeIngresses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Ingress, err error) {
- emptyResult := &v1.Ingress{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(ingressesResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Ingress), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied ingress.
-func (c *FakeIngresses) Apply(ctx context.Context, ingress *configv1.IngressApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Ingress, err error) {
- if ingress == nil {
- return nil, fmt.Errorf("ingress provided to Apply must not be nil")
- }
- data, err := json.Marshal(ingress)
- if err != nil {
- return nil, err
- }
- name := ingress.Name
- if name == nil {
- return nil, fmt.Errorf("ingress.Name must be provided to Apply")
- }
- emptyResult := &v1.Ingress{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(ingressesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Ingress), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeIngresses) ApplyStatus(ctx context.Context, ingress *configv1.IngressApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Ingress, err error) {
- if ingress == nil {
- return nil, fmt.Errorf("ingress provided to Apply must not be nil")
- }
- data, err := json.Marshal(ingress)
- if err != nil {
- return nil, err
- }
- name := ingress.Name
- if name == nil {
- return nil, fmt.Errorf("ingress.Name must be provided to Apply")
- }
- emptyResult := &v1.Ingress{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(ingressesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeIngresses(fake *FakeConfigV1) typedconfigv1.IngressInterface {
+ return &fakeIngresses{
+ gentype.NewFakeClientWithListAndApply[*v1.Ingress, *v1.IngressList, *configv1.IngressApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("ingresses"),
+ v1.SchemeGroupVersion.WithKind("Ingress"),
+ func() *v1.Ingress { return &v1.Ingress{} },
+ func() *v1.IngressList { return &v1.IngressList{} },
+ func(dst, src *v1.IngressList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.IngressList) []*v1.Ingress { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.IngressList, items []*v1.Ingress) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.Ingress), err
}
diff --git a/config/clientset/versioned/typed/config/v1/fake/fake_network.go b/config/clientset/versioned/typed/config/v1/fake/fake_network.go
index 3ab994475..446ce65db 100644
--- a/config/clientset/versioned/typed/config/v1/fake/fake_network.go
+++ b/config/clientset/versioned/typed/config/v1/fake/fake_network.go
@@ -3,168 +3,31 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/config/v1"
configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedconfigv1 "github.com/openshift/client-go/config/clientset/versioned/typed/config/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeNetworks implements NetworkInterface
-type FakeNetworks struct {
+// fakeNetworks implements NetworkInterface
+type fakeNetworks struct {
+ *gentype.FakeClientWithListAndApply[*v1.Network, *v1.NetworkList, *configv1.NetworkApplyConfiguration]
Fake *FakeConfigV1
}
-var networksResource = v1.SchemeGroupVersion.WithResource("networks")
-
-var networksKind = v1.SchemeGroupVersion.WithKind("Network")
-
-// Get takes name of the network, and returns the corresponding network object, and an error if there is any.
-func (c *FakeNetworks) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Network, err error) {
- emptyResult := &v1.Network{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(networksResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Network), err
-}
-
-// List takes label and field selectors, and returns the list of Networks that match those selectors.
-func (c *FakeNetworks) List(ctx context.Context, opts metav1.ListOptions) (result *v1.NetworkList, err error) {
- emptyResult := &v1.NetworkList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(networksResource, networksKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.NetworkList{ListMeta: obj.(*v1.NetworkList).ListMeta}
- for _, item := range obj.(*v1.NetworkList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested networks.
-func (c *FakeNetworks) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(networksResource, opts))
-}
-
-// Create takes the representation of a network and creates it. Returns the server's representation of the network, and an error, if there is any.
-func (c *FakeNetworks) Create(ctx context.Context, network *v1.Network, opts metav1.CreateOptions) (result *v1.Network, err error) {
- emptyResult := &v1.Network{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(networksResource, network, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Network), err
-}
-
-// Update takes the representation of a network and updates it. Returns the server's representation of the network, and an error, if there is any.
-func (c *FakeNetworks) Update(ctx context.Context, network *v1.Network, opts metav1.UpdateOptions) (result *v1.Network, err error) {
- emptyResult := &v1.Network{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(networksResource, network, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Network), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeNetworks) UpdateStatus(ctx context.Context, network *v1.Network, opts metav1.UpdateOptions) (result *v1.Network, err error) {
- emptyResult := &v1.Network{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(networksResource, "status", network, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Network), err
-}
-
-// Delete takes name of the network and deletes it. Returns an error if one occurs.
-func (c *FakeNetworks) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(networksResource, name, opts), &v1.Network{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeNetworks) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(networksResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.NetworkList{})
- return err
-}
-
-// Patch applies the patch and returns the patched network.
-func (c *FakeNetworks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Network, err error) {
- emptyResult := &v1.Network{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(networksResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Network), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied network.
-func (c *FakeNetworks) Apply(ctx context.Context, network *configv1.NetworkApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Network, err error) {
- if network == nil {
- return nil, fmt.Errorf("network provided to Apply must not be nil")
- }
- data, err := json.Marshal(network)
- if err != nil {
- return nil, err
- }
- name := network.Name
- if name == nil {
- return nil, fmt.Errorf("network.Name must be provided to Apply")
- }
- emptyResult := &v1.Network{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(networksResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Network), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeNetworks) ApplyStatus(ctx context.Context, network *configv1.NetworkApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Network, err error) {
- if network == nil {
- return nil, fmt.Errorf("network provided to Apply must not be nil")
- }
- data, err := json.Marshal(network)
- if err != nil {
- return nil, err
- }
- name := network.Name
- if name == nil {
- return nil, fmt.Errorf("network.Name must be provided to Apply")
- }
- emptyResult := &v1.Network{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(networksResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeNetworks(fake *FakeConfigV1) typedconfigv1.NetworkInterface {
+ return &fakeNetworks{
+ gentype.NewFakeClientWithListAndApply[*v1.Network, *v1.NetworkList, *configv1.NetworkApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("networks"),
+ v1.SchemeGroupVersion.WithKind("Network"),
+ func() *v1.Network { return &v1.Network{} },
+ func() *v1.NetworkList { return &v1.NetworkList{} },
+ func(dst, src *v1.NetworkList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.NetworkList) []*v1.Network { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.NetworkList, items []*v1.Network) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.Network), err
}
diff --git a/config/clientset/versioned/typed/config/v1/fake/fake_node.go b/config/clientset/versioned/typed/config/v1/fake/fake_node.go
index a5792da42..77aa20d2a 100644
--- a/config/clientset/versioned/typed/config/v1/fake/fake_node.go
+++ b/config/clientset/versioned/typed/config/v1/fake/fake_node.go
@@ -3,168 +3,31 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/config/v1"
configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedconfigv1 "github.com/openshift/client-go/config/clientset/versioned/typed/config/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeNodes implements NodeInterface
-type FakeNodes struct {
+// fakeNodes implements NodeInterface
+type fakeNodes struct {
+ *gentype.FakeClientWithListAndApply[*v1.Node, *v1.NodeList, *configv1.NodeApplyConfiguration]
Fake *FakeConfigV1
}
-var nodesResource = v1.SchemeGroupVersion.WithResource("nodes")
-
-var nodesKind = v1.SchemeGroupVersion.WithKind("Node")
-
-// Get takes name of the node, and returns the corresponding node object, and an error if there is any.
-func (c *FakeNodes) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Node, err error) {
- emptyResult := &v1.Node{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(nodesResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Node), err
-}
-
-// List takes label and field selectors, and returns the list of Nodes that match those selectors.
-func (c *FakeNodes) List(ctx context.Context, opts metav1.ListOptions) (result *v1.NodeList, err error) {
- emptyResult := &v1.NodeList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(nodesResource, nodesKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.NodeList{ListMeta: obj.(*v1.NodeList).ListMeta}
- for _, item := range obj.(*v1.NodeList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested nodes.
-func (c *FakeNodes) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(nodesResource, opts))
-}
-
-// Create takes the representation of a node and creates it. Returns the server's representation of the node, and an error, if there is any.
-func (c *FakeNodes) Create(ctx context.Context, node *v1.Node, opts metav1.CreateOptions) (result *v1.Node, err error) {
- emptyResult := &v1.Node{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(nodesResource, node, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Node), err
-}
-
-// Update takes the representation of a node and updates it. Returns the server's representation of the node, and an error, if there is any.
-func (c *FakeNodes) Update(ctx context.Context, node *v1.Node, opts metav1.UpdateOptions) (result *v1.Node, err error) {
- emptyResult := &v1.Node{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(nodesResource, node, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Node), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeNodes) UpdateStatus(ctx context.Context, node *v1.Node, opts metav1.UpdateOptions) (result *v1.Node, err error) {
- emptyResult := &v1.Node{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(nodesResource, "status", node, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Node), err
-}
-
-// Delete takes name of the node and deletes it. Returns an error if one occurs.
-func (c *FakeNodes) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(nodesResource, name, opts), &v1.Node{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeNodes) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(nodesResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.NodeList{})
- return err
-}
-
-// Patch applies the patch and returns the patched node.
-func (c *FakeNodes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Node, err error) {
- emptyResult := &v1.Node{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(nodesResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Node), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied node.
-func (c *FakeNodes) Apply(ctx context.Context, node *configv1.NodeApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Node, err error) {
- if node == nil {
- return nil, fmt.Errorf("node provided to Apply must not be nil")
- }
- data, err := json.Marshal(node)
- if err != nil {
- return nil, err
- }
- name := node.Name
- if name == nil {
- return nil, fmt.Errorf("node.Name must be provided to Apply")
- }
- emptyResult := &v1.Node{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(nodesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Node), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeNodes) ApplyStatus(ctx context.Context, node *configv1.NodeApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Node, err error) {
- if node == nil {
- return nil, fmt.Errorf("node provided to Apply must not be nil")
- }
- data, err := json.Marshal(node)
- if err != nil {
- return nil, err
- }
- name := node.Name
- if name == nil {
- return nil, fmt.Errorf("node.Name must be provided to Apply")
- }
- emptyResult := &v1.Node{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(nodesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeNodes(fake *FakeConfigV1) typedconfigv1.NodeInterface {
+ return &fakeNodes{
+ gentype.NewFakeClientWithListAndApply[*v1.Node, *v1.NodeList, *configv1.NodeApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("nodes"),
+ v1.SchemeGroupVersion.WithKind("Node"),
+ func() *v1.Node { return &v1.Node{} },
+ func() *v1.NodeList { return &v1.NodeList{} },
+ func(dst, src *v1.NodeList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.NodeList) []*v1.Node { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.NodeList, items []*v1.Node) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.Node), err
}
diff --git a/config/clientset/versioned/typed/config/v1/fake/fake_oauth.go b/config/clientset/versioned/typed/config/v1/fake/fake_oauth.go
index 595523125..f4ab053b9 100644
--- a/config/clientset/versioned/typed/config/v1/fake/fake_oauth.go
+++ b/config/clientset/versioned/typed/config/v1/fake/fake_oauth.go
@@ -3,168 +3,31 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/config/v1"
configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedconfigv1 "github.com/openshift/client-go/config/clientset/versioned/typed/config/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeOAuths implements OAuthInterface
-type FakeOAuths struct {
+// fakeOAuths implements OAuthInterface
+type fakeOAuths struct {
+ *gentype.FakeClientWithListAndApply[*v1.OAuth, *v1.OAuthList, *configv1.OAuthApplyConfiguration]
Fake *FakeConfigV1
}
-var oauthsResource = v1.SchemeGroupVersion.WithResource("oauths")
-
-var oauthsKind = v1.SchemeGroupVersion.WithKind("OAuth")
-
-// Get takes name of the oAuth, and returns the corresponding oAuth object, and an error if there is any.
-func (c *FakeOAuths) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.OAuth, err error) {
- emptyResult := &v1.OAuth{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(oauthsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OAuth), err
-}
-
-// List takes label and field selectors, and returns the list of OAuths that match those selectors.
-func (c *FakeOAuths) List(ctx context.Context, opts metav1.ListOptions) (result *v1.OAuthList, err error) {
- emptyResult := &v1.OAuthList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(oauthsResource, oauthsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.OAuthList{ListMeta: obj.(*v1.OAuthList).ListMeta}
- for _, item := range obj.(*v1.OAuthList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested oAuths.
-func (c *FakeOAuths) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(oauthsResource, opts))
-}
-
-// Create takes the representation of a oAuth and creates it. Returns the server's representation of the oAuth, and an error, if there is any.
-func (c *FakeOAuths) Create(ctx context.Context, oAuth *v1.OAuth, opts metav1.CreateOptions) (result *v1.OAuth, err error) {
- emptyResult := &v1.OAuth{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(oauthsResource, oAuth, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OAuth), err
-}
-
-// Update takes the representation of a oAuth and updates it. Returns the server's representation of the oAuth, and an error, if there is any.
-func (c *FakeOAuths) Update(ctx context.Context, oAuth *v1.OAuth, opts metav1.UpdateOptions) (result *v1.OAuth, err error) {
- emptyResult := &v1.OAuth{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(oauthsResource, oAuth, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OAuth), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeOAuths) UpdateStatus(ctx context.Context, oAuth *v1.OAuth, opts metav1.UpdateOptions) (result *v1.OAuth, err error) {
- emptyResult := &v1.OAuth{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(oauthsResource, "status", oAuth, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OAuth), err
-}
-
-// Delete takes name of the oAuth and deletes it. Returns an error if one occurs.
-func (c *FakeOAuths) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(oauthsResource, name, opts), &v1.OAuth{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeOAuths) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(oauthsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.OAuthList{})
- return err
-}
-
-// Patch applies the patch and returns the patched oAuth.
-func (c *FakeOAuths) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.OAuth, err error) {
- emptyResult := &v1.OAuth{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(oauthsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OAuth), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied oAuth.
-func (c *FakeOAuths) Apply(ctx context.Context, oAuth *configv1.OAuthApplyConfiguration, opts metav1.ApplyOptions) (result *v1.OAuth, err error) {
- if oAuth == nil {
- return nil, fmt.Errorf("oAuth provided to Apply must not be nil")
- }
- data, err := json.Marshal(oAuth)
- if err != nil {
- return nil, err
- }
- name := oAuth.Name
- if name == nil {
- return nil, fmt.Errorf("oAuth.Name must be provided to Apply")
- }
- emptyResult := &v1.OAuth{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(oauthsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OAuth), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeOAuths) ApplyStatus(ctx context.Context, oAuth *configv1.OAuthApplyConfiguration, opts metav1.ApplyOptions) (result *v1.OAuth, err error) {
- if oAuth == nil {
- return nil, fmt.Errorf("oAuth provided to Apply must not be nil")
- }
- data, err := json.Marshal(oAuth)
- if err != nil {
- return nil, err
- }
- name := oAuth.Name
- if name == nil {
- return nil, fmt.Errorf("oAuth.Name must be provided to Apply")
- }
- emptyResult := &v1.OAuth{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(oauthsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeOAuths(fake *FakeConfigV1) typedconfigv1.OAuthInterface {
+ return &fakeOAuths{
+ gentype.NewFakeClientWithListAndApply[*v1.OAuth, *v1.OAuthList, *configv1.OAuthApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("oauths"),
+ v1.SchemeGroupVersion.WithKind("OAuth"),
+ func() *v1.OAuth { return &v1.OAuth{} },
+ func() *v1.OAuthList { return &v1.OAuthList{} },
+ func(dst, src *v1.OAuthList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.OAuthList) []*v1.OAuth { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.OAuthList, items []*v1.OAuth) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.OAuth), err
}
diff --git a/config/clientset/versioned/typed/config/v1/fake/fake_operatorhub.go b/config/clientset/versioned/typed/config/v1/fake/fake_operatorhub.go
index 7d72fc000..06989ba1d 100644
--- a/config/clientset/versioned/typed/config/v1/fake/fake_operatorhub.go
+++ b/config/clientset/versioned/typed/config/v1/fake/fake_operatorhub.go
@@ -3,168 +3,31 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/config/v1"
configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedconfigv1 "github.com/openshift/client-go/config/clientset/versioned/typed/config/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeOperatorHubs implements OperatorHubInterface
-type FakeOperatorHubs struct {
+// fakeOperatorHubs implements OperatorHubInterface
+type fakeOperatorHubs struct {
+ *gentype.FakeClientWithListAndApply[*v1.OperatorHub, *v1.OperatorHubList, *configv1.OperatorHubApplyConfiguration]
Fake *FakeConfigV1
}
-var operatorhubsResource = v1.SchemeGroupVersion.WithResource("operatorhubs")
-
-var operatorhubsKind = v1.SchemeGroupVersion.WithKind("OperatorHub")
-
-// Get takes name of the operatorHub, and returns the corresponding operatorHub object, and an error if there is any.
-func (c *FakeOperatorHubs) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.OperatorHub, err error) {
- emptyResult := &v1.OperatorHub{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(operatorhubsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OperatorHub), err
-}
-
-// List takes label and field selectors, and returns the list of OperatorHubs that match those selectors.
-func (c *FakeOperatorHubs) List(ctx context.Context, opts metav1.ListOptions) (result *v1.OperatorHubList, err error) {
- emptyResult := &v1.OperatorHubList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(operatorhubsResource, operatorhubsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.OperatorHubList{ListMeta: obj.(*v1.OperatorHubList).ListMeta}
- for _, item := range obj.(*v1.OperatorHubList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested operatorHubs.
-func (c *FakeOperatorHubs) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(operatorhubsResource, opts))
-}
-
-// Create takes the representation of a operatorHub and creates it. Returns the server's representation of the operatorHub, and an error, if there is any.
-func (c *FakeOperatorHubs) Create(ctx context.Context, operatorHub *v1.OperatorHub, opts metav1.CreateOptions) (result *v1.OperatorHub, err error) {
- emptyResult := &v1.OperatorHub{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(operatorhubsResource, operatorHub, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OperatorHub), err
-}
-
-// Update takes the representation of a operatorHub and updates it. Returns the server's representation of the operatorHub, and an error, if there is any.
-func (c *FakeOperatorHubs) Update(ctx context.Context, operatorHub *v1.OperatorHub, opts metav1.UpdateOptions) (result *v1.OperatorHub, err error) {
- emptyResult := &v1.OperatorHub{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(operatorhubsResource, operatorHub, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OperatorHub), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeOperatorHubs) UpdateStatus(ctx context.Context, operatorHub *v1.OperatorHub, opts metav1.UpdateOptions) (result *v1.OperatorHub, err error) {
- emptyResult := &v1.OperatorHub{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(operatorhubsResource, "status", operatorHub, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OperatorHub), err
-}
-
-// Delete takes name of the operatorHub and deletes it. Returns an error if one occurs.
-func (c *FakeOperatorHubs) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(operatorhubsResource, name, opts), &v1.OperatorHub{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeOperatorHubs) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(operatorhubsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.OperatorHubList{})
- return err
-}
-
-// Patch applies the patch and returns the patched operatorHub.
-func (c *FakeOperatorHubs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.OperatorHub, err error) {
- emptyResult := &v1.OperatorHub{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(operatorhubsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OperatorHub), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied operatorHub.
-func (c *FakeOperatorHubs) Apply(ctx context.Context, operatorHub *configv1.OperatorHubApplyConfiguration, opts metav1.ApplyOptions) (result *v1.OperatorHub, err error) {
- if operatorHub == nil {
- return nil, fmt.Errorf("operatorHub provided to Apply must not be nil")
- }
- data, err := json.Marshal(operatorHub)
- if err != nil {
- return nil, err
- }
- name := operatorHub.Name
- if name == nil {
- return nil, fmt.Errorf("operatorHub.Name must be provided to Apply")
- }
- emptyResult := &v1.OperatorHub{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(operatorhubsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OperatorHub), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeOperatorHubs) ApplyStatus(ctx context.Context, operatorHub *configv1.OperatorHubApplyConfiguration, opts metav1.ApplyOptions) (result *v1.OperatorHub, err error) {
- if operatorHub == nil {
- return nil, fmt.Errorf("operatorHub provided to Apply must not be nil")
- }
- data, err := json.Marshal(operatorHub)
- if err != nil {
- return nil, err
- }
- name := operatorHub.Name
- if name == nil {
- return nil, fmt.Errorf("operatorHub.Name must be provided to Apply")
- }
- emptyResult := &v1.OperatorHub{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(operatorhubsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeOperatorHubs(fake *FakeConfigV1) typedconfigv1.OperatorHubInterface {
+ return &fakeOperatorHubs{
+ gentype.NewFakeClientWithListAndApply[*v1.OperatorHub, *v1.OperatorHubList, *configv1.OperatorHubApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("operatorhubs"),
+ v1.SchemeGroupVersion.WithKind("OperatorHub"),
+ func() *v1.OperatorHub { return &v1.OperatorHub{} },
+ func() *v1.OperatorHubList { return &v1.OperatorHubList{} },
+ func(dst, src *v1.OperatorHubList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.OperatorHubList) []*v1.OperatorHub { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.OperatorHubList, items []*v1.OperatorHub) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.OperatorHub), err
}
diff --git a/config/clientset/versioned/typed/config/v1/fake/fake_project.go b/config/clientset/versioned/typed/config/v1/fake/fake_project.go
index 62a2aa019..506f1527b 100644
--- a/config/clientset/versioned/typed/config/v1/fake/fake_project.go
+++ b/config/clientset/versioned/typed/config/v1/fake/fake_project.go
@@ -3,168 +3,31 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/config/v1"
configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedconfigv1 "github.com/openshift/client-go/config/clientset/versioned/typed/config/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeProjects implements ProjectInterface
-type FakeProjects struct {
+// fakeProjects implements ProjectInterface
+type fakeProjects struct {
+ *gentype.FakeClientWithListAndApply[*v1.Project, *v1.ProjectList, *configv1.ProjectApplyConfiguration]
Fake *FakeConfigV1
}
-var projectsResource = v1.SchemeGroupVersion.WithResource("projects")
-
-var projectsKind = v1.SchemeGroupVersion.WithKind("Project")
-
-// Get takes name of the project, and returns the corresponding project object, and an error if there is any.
-func (c *FakeProjects) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Project, err error) {
- emptyResult := &v1.Project{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(projectsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Project), err
-}
-
-// List takes label and field selectors, and returns the list of Projects that match those selectors.
-func (c *FakeProjects) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ProjectList, err error) {
- emptyResult := &v1.ProjectList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(projectsResource, projectsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.ProjectList{ListMeta: obj.(*v1.ProjectList).ListMeta}
- for _, item := range obj.(*v1.ProjectList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested projects.
-func (c *FakeProjects) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(projectsResource, opts))
-}
-
-// Create takes the representation of a project and creates it. Returns the server's representation of the project, and an error, if there is any.
-func (c *FakeProjects) Create(ctx context.Context, project *v1.Project, opts metav1.CreateOptions) (result *v1.Project, err error) {
- emptyResult := &v1.Project{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(projectsResource, project, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Project), err
-}
-
-// Update takes the representation of a project and updates it. Returns the server's representation of the project, and an error, if there is any.
-func (c *FakeProjects) Update(ctx context.Context, project *v1.Project, opts metav1.UpdateOptions) (result *v1.Project, err error) {
- emptyResult := &v1.Project{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(projectsResource, project, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Project), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeProjects) UpdateStatus(ctx context.Context, project *v1.Project, opts metav1.UpdateOptions) (result *v1.Project, err error) {
- emptyResult := &v1.Project{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(projectsResource, "status", project, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Project), err
-}
-
-// Delete takes name of the project and deletes it. Returns an error if one occurs.
-func (c *FakeProjects) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(projectsResource, name, opts), &v1.Project{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeProjects) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(projectsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.ProjectList{})
- return err
-}
-
-// Patch applies the patch and returns the patched project.
-func (c *FakeProjects) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Project, err error) {
- emptyResult := &v1.Project{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(projectsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Project), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied project.
-func (c *FakeProjects) Apply(ctx context.Context, project *configv1.ProjectApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Project, err error) {
- if project == nil {
- return nil, fmt.Errorf("project provided to Apply must not be nil")
- }
- data, err := json.Marshal(project)
- if err != nil {
- return nil, err
- }
- name := project.Name
- if name == nil {
- return nil, fmt.Errorf("project.Name must be provided to Apply")
- }
- emptyResult := &v1.Project{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(projectsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Project), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeProjects) ApplyStatus(ctx context.Context, project *configv1.ProjectApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Project, err error) {
- if project == nil {
- return nil, fmt.Errorf("project provided to Apply must not be nil")
- }
- data, err := json.Marshal(project)
- if err != nil {
- return nil, err
- }
- name := project.Name
- if name == nil {
- return nil, fmt.Errorf("project.Name must be provided to Apply")
- }
- emptyResult := &v1.Project{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(projectsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeProjects(fake *FakeConfigV1) typedconfigv1.ProjectInterface {
+ return &fakeProjects{
+ gentype.NewFakeClientWithListAndApply[*v1.Project, *v1.ProjectList, *configv1.ProjectApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("projects"),
+ v1.SchemeGroupVersion.WithKind("Project"),
+ func() *v1.Project { return &v1.Project{} },
+ func() *v1.ProjectList { return &v1.ProjectList{} },
+ func(dst, src *v1.ProjectList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.ProjectList) []*v1.Project { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.ProjectList, items []*v1.Project) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.Project), err
}
diff --git a/config/clientset/versioned/typed/config/v1/fake/fake_proxy.go b/config/clientset/versioned/typed/config/v1/fake/fake_proxy.go
index 9f4de37a2..6cb1cd094 100644
--- a/config/clientset/versioned/typed/config/v1/fake/fake_proxy.go
+++ b/config/clientset/versioned/typed/config/v1/fake/fake_proxy.go
@@ -3,168 +3,31 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/config/v1"
configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedconfigv1 "github.com/openshift/client-go/config/clientset/versioned/typed/config/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeProxies implements ProxyInterface
-type FakeProxies struct {
+// fakeProxies implements ProxyInterface
+type fakeProxies struct {
+ *gentype.FakeClientWithListAndApply[*v1.Proxy, *v1.ProxyList, *configv1.ProxyApplyConfiguration]
Fake *FakeConfigV1
}
-var proxiesResource = v1.SchemeGroupVersion.WithResource("proxies")
-
-var proxiesKind = v1.SchemeGroupVersion.WithKind("Proxy")
-
-// Get takes name of the proxy, and returns the corresponding proxy object, and an error if there is any.
-func (c *FakeProxies) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Proxy, err error) {
- emptyResult := &v1.Proxy{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(proxiesResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Proxy), err
-}
-
-// List takes label and field selectors, and returns the list of Proxies that match those selectors.
-func (c *FakeProxies) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ProxyList, err error) {
- emptyResult := &v1.ProxyList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(proxiesResource, proxiesKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.ProxyList{ListMeta: obj.(*v1.ProxyList).ListMeta}
- for _, item := range obj.(*v1.ProxyList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested proxies.
-func (c *FakeProxies) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(proxiesResource, opts))
-}
-
-// Create takes the representation of a proxy and creates it. Returns the server's representation of the proxy, and an error, if there is any.
-func (c *FakeProxies) Create(ctx context.Context, proxy *v1.Proxy, opts metav1.CreateOptions) (result *v1.Proxy, err error) {
- emptyResult := &v1.Proxy{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(proxiesResource, proxy, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Proxy), err
-}
-
-// Update takes the representation of a proxy and updates it. Returns the server's representation of the proxy, and an error, if there is any.
-func (c *FakeProxies) Update(ctx context.Context, proxy *v1.Proxy, opts metav1.UpdateOptions) (result *v1.Proxy, err error) {
- emptyResult := &v1.Proxy{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(proxiesResource, proxy, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Proxy), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeProxies) UpdateStatus(ctx context.Context, proxy *v1.Proxy, opts metav1.UpdateOptions) (result *v1.Proxy, err error) {
- emptyResult := &v1.Proxy{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(proxiesResource, "status", proxy, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Proxy), err
-}
-
-// Delete takes name of the proxy and deletes it. Returns an error if one occurs.
-func (c *FakeProxies) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(proxiesResource, name, opts), &v1.Proxy{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeProxies) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(proxiesResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.ProxyList{})
- return err
-}
-
-// Patch applies the patch and returns the patched proxy.
-func (c *FakeProxies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Proxy, err error) {
- emptyResult := &v1.Proxy{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(proxiesResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Proxy), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied proxy.
-func (c *FakeProxies) Apply(ctx context.Context, proxy *configv1.ProxyApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Proxy, err error) {
- if proxy == nil {
- return nil, fmt.Errorf("proxy provided to Apply must not be nil")
- }
- data, err := json.Marshal(proxy)
- if err != nil {
- return nil, err
- }
- name := proxy.Name
- if name == nil {
- return nil, fmt.Errorf("proxy.Name must be provided to Apply")
- }
- emptyResult := &v1.Proxy{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(proxiesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Proxy), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeProxies) ApplyStatus(ctx context.Context, proxy *configv1.ProxyApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Proxy, err error) {
- if proxy == nil {
- return nil, fmt.Errorf("proxy provided to Apply must not be nil")
- }
- data, err := json.Marshal(proxy)
- if err != nil {
- return nil, err
- }
- name := proxy.Name
- if name == nil {
- return nil, fmt.Errorf("proxy.Name must be provided to Apply")
- }
- emptyResult := &v1.Proxy{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(proxiesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeProxies(fake *FakeConfigV1) typedconfigv1.ProxyInterface {
+ return &fakeProxies{
+ gentype.NewFakeClientWithListAndApply[*v1.Proxy, *v1.ProxyList, *configv1.ProxyApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("proxies"),
+ v1.SchemeGroupVersion.WithKind("Proxy"),
+ func() *v1.Proxy { return &v1.Proxy{} },
+ func() *v1.ProxyList { return &v1.ProxyList{} },
+ func(dst, src *v1.ProxyList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.ProxyList) []*v1.Proxy { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.ProxyList, items []*v1.Proxy) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.Proxy), err
}
diff --git a/config/clientset/versioned/typed/config/v1/fake/fake_scheduler.go b/config/clientset/versioned/typed/config/v1/fake/fake_scheduler.go
index 79890ff84..cba9733c9 100644
--- a/config/clientset/versioned/typed/config/v1/fake/fake_scheduler.go
+++ b/config/clientset/versioned/typed/config/v1/fake/fake_scheduler.go
@@ -3,168 +3,31 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/config/v1"
configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedconfigv1 "github.com/openshift/client-go/config/clientset/versioned/typed/config/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeSchedulers implements SchedulerInterface
-type FakeSchedulers struct {
+// fakeSchedulers implements SchedulerInterface
+type fakeSchedulers struct {
+ *gentype.FakeClientWithListAndApply[*v1.Scheduler, *v1.SchedulerList, *configv1.SchedulerApplyConfiguration]
Fake *FakeConfigV1
}
-var schedulersResource = v1.SchemeGroupVersion.WithResource("schedulers")
-
-var schedulersKind = v1.SchemeGroupVersion.WithKind("Scheduler")
-
-// Get takes name of the scheduler, and returns the corresponding scheduler object, and an error if there is any.
-func (c *FakeSchedulers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Scheduler, err error) {
- emptyResult := &v1.Scheduler{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(schedulersResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Scheduler), err
-}
-
-// List takes label and field selectors, and returns the list of Schedulers that match those selectors.
-func (c *FakeSchedulers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.SchedulerList, err error) {
- emptyResult := &v1.SchedulerList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(schedulersResource, schedulersKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.SchedulerList{ListMeta: obj.(*v1.SchedulerList).ListMeta}
- for _, item := range obj.(*v1.SchedulerList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested schedulers.
-func (c *FakeSchedulers) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(schedulersResource, opts))
-}
-
-// Create takes the representation of a scheduler and creates it. Returns the server's representation of the scheduler, and an error, if there is any.
-func (c *FakeSchedulers) Create(ctx context.Context, scheduler *v1.Scheduler, opts metav1.CreateOptions) (result *v1.Scheduler, err error) {
- emptyResult := &v1.Scheduler{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(schedulersResource, scheduler, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Scheduler), err
-}
-
-// Update takes the representation of a scheduler and updates it. Returns the server's representation of the scheduler, and an error, if there is any.
-func (c *FakeSchedulers) Update(ctx context.Context, scheduler *v1.Scheduler, opts metav1.UpdateOptions) (result *v1.Scheduler, err error) {
- emptyResult := &v1.Scheduler{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(schedulersResource, scheduler, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Scheduler), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeSchedulers) UpdateStatus(ctx context.Context, scheduler *v1.Scheduler, opts metav1.UpdateOptions) (result *v1.Scheduler, err error) {
- emptyResult := &v1.Scheduler{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(schedulersResource, "status", scheduler, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Scheduler), err
-}
-
-// Delete takes name of the scheduler and deletes it. Returns an error if one occurs.
-func (c *FakeSchedulers) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(schedulersResource, name, opts), &v1.Scheduler{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeSchedulers) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(schedulersResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.SchedulerList{})
- return err
-}
-
-// Patch applies the patch and returns the patched scheduler.
-func (c *FakeSchedulers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Scheduler, err error) {
- emptyResult := &v1.Scheduler{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(schedulersResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Scheduler), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied scheduler.
-func (c *FakeSchedulers) Apply(ctx context.Context, scheduler *configv1.SchedulerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Scheduler, err error) {
- if scheduler == nil {
- return nil, fmt.Errorf("scheduler provided to Apply must not be nil")
- }
- data, err := json.Marshal(scheduler)
- if err != nil {
- return nil, err
- }
- name := scheduler.Name
- if name == nil {
- return nil, fmt.Errorf("scheduler.Name must be provided to Apply")
- }
- emptyResult := &v1.Scheduler{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(schedulersResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Scheduler), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeSchedulers) ApplyStatus(ctx context.Context, scheduler *configv1.SchedulerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Scheduler, err error) {
- if scheduler == nil {
- return nil, fmt.Errorf("scheduler provided to Apply must not be nil")
- }
- data, err := json.Marshal(scheduler)
- if err != nil {
- return nil, err
- }
- name := scheduler.Name
- if name == nil {
- return nil, fmt.Errorf("scheduler.Name must be provided to Apply")
- }
- emptyResult := &v1.Scheduler{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(schedulersResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeSchedulers(fake *FakeConfigV1) typedconfigv1.SchedulerInterface {
+ return &fakeSchedulers{
+ gentype.NewFakeClientWithListAndApply[*v1.Scheduler, *v1.SchedulerList, *configv1.SchedulerApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("schedulers"),
+ v1.SchemeGroupVersion.WithKind("Scheduler"),
+ func() *v1.Scheduler { return &v1.Scheduler{} },
+ func() *v1.SchedulerList { return &v1.SchedulerList{} },
+ func(dst, src *v1.SchedulerList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.SchedulerList) []*v1.Scheduler { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.SchedulerList, items []*v1.Scheduler) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.Scheduler), err
}
diff --git a/config/clientset/versioned/typed/config/v1/featuregate.go b/config/clientset/versioned/typed/config/v1/featuregate.go
index fcbfe3577..2a41c2e73 100644
--- a/config/clientset/versioned/typed/config/v1/featuregate.go
+++ b/config/clientset/versioned/typed/config/v1/featuregate.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/config/v1"
- configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
+ applyconfigurationsconfigv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
scheme "github.com/openshift/client-go/config/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type FeatureGatesGetter interface {
// FeatureGateInterface has methods to work with FeatureGate resources.
type FeatureGateInterface interface {
- Create(ctx context.Context, featureGate *v1.FeatureGate, opts metav1.CreateOptions) (*v1.FeatureGate, error)
- Update(ctx context.Context, featureGate *v1.FeatureGate, opts metav1.UpdateOptions) (*v1.FeatureGate, error)
+ Create(ctx context.Context, featureGate *configv1.FeatureGate, opts metav1.CreateOptions) (*configv1.FeatureGate, error)
+ Update(ctx context.Context, featureGate *configv1.FeatureGate, opts metav1.UpdateOptions) (*configv1.FeatureGate, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, featureGate *v1.FeatureGate, opts metav1.UpdateOptions) (*v1.FeatureGate, error)
+ UpdateStatus(ctx context.Context, featureGate *configv1.FeatureGate, opts metav1.UpdateOptions) (*configv1.FeatureGate, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.FeatureGate, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.FeatureGateList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*configv1.FeatureGate, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*configv1.FeatureGateList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.FeatureGate, err error)
- Apply(ctx context.Context, featureGate *configv1.FeatureGateApplyConfiguration, opts metav1.ApplyOptions) (result *v1.FeatureGate, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *configv1.FeatureGate, err error)
+ Apply(ctx context.Context, featureGate *applyconfigurationsconfigv1.FeatureGateApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.FeatureGate, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, featureGate *configv1.FeatureGateApplyConfiguration, opts metav1.ApplyOptions) (result *v1.FeatureGate, err error)
+ ApplyStatus(ctx context.Context, featureGate *applyconfigurationsconfigv1.FeatureGateApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.FeatureGate, err error)
FeatureGateExpansion
}
// featureGates implements FeatureGateInterface
type featureGates struct {
- *gentype.ClientWithListAndApply[*v1.FeatureGate, *v1.FeatureGateList, *configv1.FeatureGateApplyConfiguration]
+ *gentype.ClientWithListAndApply[*configv1.FeatureGate, *configv1.FeatureGateList, *applyconfigurationsconfigv1.FeatureGateApplyConfiguration]
}
// newFeatureGates returns a FeatureGates
func newFeatureGates(c *ConfigV1Client) *featureGates {
return &featureGates{
- gentype.NewClientWithListAndApply[*v1.FeatureGate, *v1.FeatureGateList, *configv1.FeatureGateApplyConfiguration](
+ gentype.NewClientWithListAndApply[*configv1.FeatureGate, *configv1.FeatureGateList, *applyconfigurationsconfigv1.FeatureGateApplyConfiguration](
"featuregates",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.FeatureGate { return &v1.FeatureGate{} },
- func() *v1.FeatureGateList { return &v1.FeatureGateList{} }),
+ func() *configv1.FeatureGate { return &configv1.FeatureGate{} },
+ func() *configv1.FeatureGateList { return &configv1.FeatureGateList{} },
+ ),
}
}
diff --git a/config/clientset/versioned/typed/config/v1/generated_expansion.go b/config/clientset/versioned/typed/config/v1/generated_expansion.go
index acaec6b2c..a56721ba9 100644
--- a/config/clientset/versioned/typed/config/v1/generated_expansion.go
+++ b/config/clientset/versioned/typed/config/v1/generated_expansion.go
@@ -8,8 +8,6 @@ type AuthenticationExpansion interface{}
type BuildExpansion interface{}
-type ClusterMonitoringExpansion interface{}
-
type ClusterOperatorExpansion interface{}
type ClusterVersionExpansion interface{}
diff --git a/config/clientset/versioned/typed/config/v1/image.go b/config/clientset/versioned/typed/config/v1/image.go
index 536693d3e..2950a19c6 100644
--- a/config/clientset/versioned/typed/config/v1/image.go
+++ b/config/clientset/versioned/typed/config/v1/image.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/config/v1"
- configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
+ applyconfigurationsconfigv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
scheme "github.com/openshift/client-go/config/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type ImagesGetter interface {
// ImageInterface has methods to work with Image resources.
type ImageInterface interface {
- Create(ctx context.Context, image *v1.Image, opts metav1.CreateOptions) (*v1.Image, error)
- Update(ctx context.Context, image *v1.Image, opts metav1.UpdateOptions) (*v1.Image, error)
+ Create(ctx context.Context, image *configv1.Image, opts metav1.CreateOptions) (*configv1.Image, error)
+ Update(ctx context.Context, image *configv1.Image, opts metav1.UpdateOptions) (*configv1.Image, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, image *v1.Image, opts metav1.UpdateOptions) (*v1.Image, error)
+ UpdateStatus(ctx context.Context, image *configv1.Image, opts metav1.UpdateOptions) (*configv1.Image, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Image, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.ImageList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*configv1.Image, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*configv1.ImageList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Image, err error)
- Apply(ctx context.Context, image *configv1.ImageApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Image, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *configv1.Image, err error)
+ Apply(ctx context.Context, image *applyconfigurationsconfigv1.ImageApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.Image, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, image *configv1.ImageApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Image, err error)
+ ApplyStatus(ctx context.Context, image *applyconfigurationsconfigv1.ImageApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.Image, err error)
ImageExpansion
}
// images implements ImageInterface
type images struct {
- *gentype.ClientWithListAndApply[*v1.Image, *v1.ImageList, *configv1.ImageApplyConfiguration]
+ *gentype.ClientWithListAndApply[*configv1.Image, *configv1.ImageList, *applyconfigurationsconfigv1.ImageApplyConfiguration]
}
// newImages returns a Images
func newImages(c *ConfigV1Client) *images {
return &images{
- gentype.NewClientWithListAndApply[*v1.Image, *v1.ImageList, *configv1.ImageApplyConfiguration](
+ gentype.NewClientWithListAndApply[*configv1.Image, *configv1.ImageList, *applyconfigurationsconfigv1.ImageApplyConfiguration](
"images",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.Image { return &v1.Image{} },
- func() *v1.ImageList { return &v1.ImageList{} }),
+ func() *configv1.Image { return &configv1.Image{} },
+ func() *configv1.ImageList { return &configv1.ImageList{} },
+ ),
}
}
diff --git a/config/clientset/versioned/typed/config/v1/imagecontentpolicy.go b/config/clientset/versioned/typed/config/v1/imagecontentpolicy.go
index bc8a8b342..ce52d6c81 100644
--- a/config/clientset/versioned/typed/config/v1/imagecontentpolicy.go
+++ b/config/clientset/versioned/typed/config/v1/imagecontentpolicy.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/config/v1"
- configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
+ applyconfigurationsconfigv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
scheme "github.com/openshift/client-go/config/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,32 +22,33 @@ type ImageContentPoliciesGetter interface {
// ImageContentPolicyInterface has methods to work with ImageContentPolicy resources.
type ImageContentPolicyInterface interface {
- Create(ctx context.Context, imageContentPolicy *v1.ImageContentPolicy, opts metav1.CreateOptions) (*v1.ImageContentPolicy, error)
- Update(ctx context.Context, imageContentPolicy *v1.ImageContentPolicy, opts metav1.UpdateOptions) (*v1.ImageContentPolicy, error)
+ Create(ctx context.Context, imageContentPolicy *configv1.ImageContentPolicy, opts metav1.CreateOptions) (*configv1.ImageContentPolicy, error)
+ Update(ctx context.Context, imageContentPolicy *configv1.ImageContentPolicy, opts metav1.UpdateOptions) (*configv1.ImageContentPolicy, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ImageContentPolicy, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.ImageContentPolicyList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*configv1.ImageContentPolicy, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*configv1.ImageContentPolicyList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ImageContentPolicy, err error)
- Apply(ctx context.Context, imageContentPolicy *configv1.ImageContentPolicyApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ImageContentPolicy, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *configv1.ImageContentPolicy, err error)
+ Apply(ctx context.Context, imageContentPolicy *applyconfigurationsconfigv1.ImageContentPolicyApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.ImageContentPolicy, err error)
ImageContentPolicyExpansion
}
// imageContentPolicies implements ImageContentPolicyInterface
type imageContentPolicies struct {
- *gentype.ClientWithListAndApply[*v1.ImageContentPolicy, *v1.ImageContentPolicyList, *configv1.ImageContentPolicyApplyConfiguration]
+ *gentype.ClientWithListAndApply[*configv1.ImageContentPolicy, *configv1.ImageContentPolicyList, *applyconfigurationsconfigv1.ImageContentPolicyApplyConfiguration]
}
// newImageContentPolicies returns a ImageContentPolicies
func newImageContentPolicies(c *ConfigV1Client) *imageContentPolicies {
return &imageContentPolicies{
- gentype.NewClientWithListAndApply[*v1.ImageContentPolicy, *v1.ImageContentPolicyList, *configv1.ImageContentPolicyApplyConfiguration](
+ gentype.NewClientWithListAndApply[*configv1.ImageContentPolicy, *configv1.ImageContentPolicyList, *applyconfigurationsconfigv1.ImageContentPolicyApplyConfiguration](
"imagecontentpolicies",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.ImageContentPolicy { return &v1.ImageContentPolicy{} },
- func() *v1.ImageContentPolicyList { return &v1.ImageContentPolicyList{} }),
+ func() *configv1.ImageContentPolicy { return &configv1.ImageContentPolicy{} },
+ func() *configv1.ImageContentPolicyList { return &configv1.ImageContentPolicyList{} },
+ ),
}
}
diff --git a/config/clientset/versioned/typed/config/v1/imagedigestmirrorset.go b/config/clientset/versioned/typed/config/v1/imagedigestmirrorset.go
index eca9b95b6..70018dd7f 100644
--- a/config/clientset/versioned/typed/config/v1/imagedigestmirrorset.go
+++ b/config/clientset/versioned/typed/config/v1/imagedigestmirrorset.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/config/v1"
- configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
+ applyconfigurationsconfigv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
scheme "github.com/openshift/client-go/config/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type ImageDigestMirrorSetsGetter interface {
// ImageDigestMirrorSetInterface has methods to work with ImageDigestMirrorSet resources.
type ImageDigestMirrorSetInterface interface {
- Create(ctx context.Context, imageDigestMirrorSet *v1.ImageDigestMirrorSet, opts metav1.CreateOptions) (*v1.ImageDigestMirrorSet, error)
- Update(ctx context.Context, imageDigestMirrorSet *v1.ImageDigestMirrorSet, opts metav1.UpdateOptions) (*v1.ImageDigestMirrorSet, error)
+ Create(ctx context.Context, imageDigestMirrorSet *configv1.ImageDigestMirrorSet, opts metav1.CreateOptions) (*configv1.ImageDigestMirrorSet, error)
+ Update(ctx context.Context, imageDigestMirrorSet *configv1.ImageDigestMirrorSet, opts metav1.UpdateOptions) (*configv1.ImageDigestMirrorSet, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, imageDigestMirrorSet *v1.ImageDigestMirrorSet, opts metav1.UpdateOptions) (*v1.ImageDigestMirrorSet, error)
+ UpdateStatus(ctx context.Context, imageDigestMirrorSet *configv1.ImageDigestMirrorSet, opts metav1.UpdateOptions) (*configv1.ImageDigestMirrorSet, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ImageDigestMirrorSet, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.ImageDigestMirrorSetList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*configv1.ImageDigestMirrorSet, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*configv1.ImageDigestMirrorSetList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ImageDigestMirrorSet, err error)
- Apply(ctx context.Context, imageDigestMirrorSet *configv1.ImageDigestMirrorSetApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ImageDigestMirrorSet, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *configv1.ImageDigestMirrorSet, err error)
+ Apply(ctx context.Context, imageDigestMirrorSet *applyconfigurationsconfigv1.ImageDigestMirrorSetApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.ImageDigestMirrorSet, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, imageDigestMirrorSet *configv1.ImageDigestMirrorSetApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ImageDigestMirrorSet, err error)
+ ApplyStatus(ctx context.Context, imageDigestMirrorSet *applyconfigurationsconfigv1.ImageDigestMirrorSetApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.ImageDigestMirrorSet, err error)
ImageDigestMirrorSetExpansion
}
// imageDigestMirrorSets implements ImageDigestMirrorSetInterface
type imageDigestMirrorSets struct {
- *gentype.ClientWithListAndApply[*v1.ImageDigestMirrorSet, *v1.ImageDigestMirrorSetList, *configv1.ImageDigestMirrorSetApplyConfiguration]
+ *gentype.ClientWithListAndApply[*configv1.ImageDigestMirrorSet, *configv1.ImageDigestMirrorSetList, *applyconfigurationsconfigv1.ImageDigestMirrorSetApplyConfiguration]
}
// newImageDigestMirrorSets returns a ImageDigestMirrorSets
func newImageDigestMirrorSets(c *ConfigV1Client) *imageDigestMirrorSets {
return &imageDigestMirrorSets{
- gentype.NewClientWithListAndApply[*v1.ImageDigestMirrorSet, *v1.ImageDigestMirrorSetList, *configv1.ImageDigestMirrorSetApplyConfiguration](
+ gentype.NewClientWithListAndApply[*configv1.ImageDigestMirrorSet, *configv1.ImageDigestMirrorSetList, *applyconfigurationsconfigv1.ImageDigestMirrorSetApplyConfiguration](
"imagedigestmirrorsets",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.ImageDigestMirrorSet { return &v1.ImageDigestMirrorSet{} },
- func() *v1.ImageDigestMirrorSetList { return &v1.ImageDigestMirrorSetList{} }),
+ func() *configv1.ImageDigestMirrorSet { return &configv1.ImageDigestMirrorSet{} },
+ func() *configv1.ImageDigestMirrorSetList { return &configv1.ImageDigestMirrorSetList{} },
+ ),
}
}
diff --git a/config/clientset/versioned/typed/config/v1/imagetagmirrorset.go b/config/clientset/versioned/typed/config/v1/imagetagmirrorset.go
index add148a55..ca3c6e0be 100644
--- a/config/clientset/versioned/typed/config/v1/imagetagmirrorset.go
+++ b/config/clientset/versioned/typed/config/v1/imagetagmirrorset.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/config/v1"
- configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
+ applyconfigurationsconfigv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
scheme "github.com/openshift/client-go/config/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type ImageTagMirrorSetsGetter interface {
// ImageTagMirrorSetInterface has methods to work with ImageTagMirrorSet resources.
type ImageTagMirrorSetInterface interface {
- Create(ctx context.Context, imageTagMirrorSet *v1.ImageTagMirrorSet, opts metav1.CreateOptions) (*v1.ImageTagMirrorSet, error)
- Update(ctx context.Context, imageTagMirrorSet *v1.ImageTagMirrorSet, opts metav1.UpdateOptions) (*v1.ImageTagMirrorSet, error)
+ Create(ctx context.Context, imageTagMirrorSet *configv1.ImageTagMirrorSet, opts metav1.CreateOptions) (*configv1.ImageTagMirrorSet, error)
+ Update(ctx context.Context, imageTagMirrorSet *configv1.ImageTagMirrorSet, opts metav1.UpdateOptions) (*configv1.ImageTagMirrorSet, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, imageTagMirrorSet *v1.ImageTagMirrorSet, opts metav1.UpdateOptions) (*v1.ImageTagMirrorSet, error)
+ UpdateStatus(ctx context.Context, imageTagMirrorSet *configv1.ImageTagMirrorSet, opts metav1.UpdateOptions) (*configv1.ImageTagMirrorSet, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ImageTagMirrorSet, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.ImageTagMirrorSetList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*configv1.ImageTagMirrorSet, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*configv1.ImageTagMirrorSetList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ImageTagMirrorSet, err error)
- Apply(ctx context.Context, imageTagMirrorSet *configv1.ImageTagMirrorSetApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ImageTagMirrorSet, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *configv1.ImageTagMirrorSet, err error)
+ Apply(ctx context.Context, imageTagMirrorSet *applyconfigurationsconfigv1.ImageTagMirrorSetApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.ImageTagMirrorSet, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, imageTagMirrorSet *configv1.ImageTagMirrorSetApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ImageTagMirrorSet, err error)
+ ApplyStatus(ctx context.Context, imageTagMirrorSet *applyconfigurationsconfigv1.ImageTagMirrorSetApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.ImageTagMirrorSet, err error)
ImageTagMirrorSetExpansion
}
// imageTagMirrorSets implements ImageTagMirrorSetInterface
type imageTagMirrorSets struct {
- *gentype.ClientWithListAndApply[*v1.ImageTagMirrorSet, *v1.ImageTagMirrorSetList, *configv1.ImageTagMirrorSetApplyConfiguration]
+ *gentype.ClientWithListAndApply[*configv1.ImageTagMirrorSet, *configv1.ImageTagMirrorSetList, *applyconfigurationsconfigv1.ImageTagMirrorSetApplyConfiguration]
}
// newImageTagMirrorSets returns a ImageTagMirrorSets
func newImageTagMirrorSets(c *ConfigV1Client) *imageTagMirrorSets {
return &imageTagMirrorSets{
- gentype.NewClientWithListAndApply[*v1.ImageTagMirrorSet, *v1.ImageTagMirrorSetList, *configv1.ImageTagMirrorSetApplyConfiguration](
+ gentype.NewClientWithListAndApply[*configv1.ImageTagMirrorSet, *configv1.ImageTagMirrorSetList, *applyconfigurationsconfigv1.ImageTagMirrorSetApplyConfiguration](
"imagetagmirrorsets",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.ImageTagMirrorSet { return &v1.ImageTagMirrorSet{} },
- func() *v1.ImageTagMirrorSetList { return &v1.ImageTagMirrorSetList{} }),
+ func() *configv1.ImageTagMirrorSet { return &configv1.ImageTagMirrorSet{} },
+ func() *configv1.ImageTagMirrorSetList { return &configv1.ImageTagMirrorSetList{} },
+ ),
}
}
diff --git a/config/clientset/versioned/typed/config/v1/infrastructure.go b/config/clientset/versioned/typed/config/v1/infrastructure.go
index 4d8550833..eb307026c 100644
--- a/config/clientset/versioned/typed/config/v1/infrastructure.go
+++ b/config/clientset/versioned/typed/config/v1/infrastructure.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/config/v1"
- configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
+ applyconfigurationsconfigv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
scheme "github.com/openshift/client-go/config/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type InfrastructuresGetter interface {
// InfrastructureInterface has methods to work with Infrastructure resources.
type InfrastructureInterface interface {
- Create(ctx context.Context, infrastructure *v1.Infrastructure, opts metav1.CreateOptions) (*v1.Infrastructure, error)
- Update(ctx context.Context, infrastructure *v1.Infrastructure, opts metav1.UpdateOptions) (*v1.Infrastructure, error)
+ Create(ctx context.Context, infrastructure *configv1.Infrastructure, opts metav1.CreateOptions) (*configv1.Infrastructure, error)
+ Update(ctx context.Context, infrastructure *configv1.Infrastructure, opts metav1.UpdateOptions) (*configv1.Infrastructure, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, infrastructure *v1.Infrastructure, opts metav1.UpdateOptions) (*v1.Infrastructure, error)
+ UpdateStatus(ctx context.Context, infrastructure *configv1.Infrastructure, opts metav1.UpdateOptions) (*configv1.Infrastructure, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Infrastructure, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.InfrastructureList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*configv1.Infrastructure, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*configv1.InfrastructureList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Infrastructure, err error)
- Apply(ctx context.Context, infrastructure *configv1.InfrastructureApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Infrastructure, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *configv1.Infrastructure, err error)
+ Apply(ctx context.Context, infrastructure *applyconfigurationsconfigv1.InfrastructureApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.Infrastructure, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, infrastructure *configv1.InfrastructureApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Infrastructure, err error)
+ ApplyStatus(ctx context.Context, infrastructure *applyconfigurationsconfigv1.InfrastructureApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.Infrastructure, err error)
InfrastructureExpansion
}
// infrastructures implements InfrastructureInterface
type infrastructures struct {
- *gentype.ClientWithListAndApply[*v1.Infrastructure, *v1.InfrastructureList, *configv1.InfrastructureApplyConfiguration]
+ *gentype.ClientWithListAndApply[*configv1.Infrastructure, *configv1.InfrastructureList, *applyconfigurationsconfigv1.InfrastructureApplyConfiguration]
}
// newInfrastructures returns a Infrastructures
func newInfrastructures(c *ConfigV1Client) *infrastructures {
return &infrastructures{
- gentype.NewClientWithListAndApply[*v1.Infrastructure, *v1.InfrastructureList, *configv1.InfrastructureApplyConfiguration](
+ gentype.NewClientWithListAndApply[*configv1.Infrastructure, *configv1.InfrastructureList, *applyconfigurationsconfigv1.InfrastructureApplyConfiguration](
"infrastructures",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.Infrastructure { return &v1.Infrastructure{} },
- func() *v1.InfrastructureList { return &v1.InfrastructureList{} }),
+ func() *configv1.Infrastructure { return &configv1.Infrastructure{} },
+ func() *configv1.InfrastructureList { return &configv1.InfrastructureList{} },
+ ),
}
}
diff --git a/config/clientset/versioned/typed/config/v1/ingress.go b/config/clientset/versioned/typed/config/v1/ingress.go
index cc4fa53c4..81057042d 100644
--- a/config/clientset/versioned/typed/config/v1/ingress.go
+++ b/config/clientset/versioned/typed/config/v1/ingress.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/config/v1"
- configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
+ applyconfigurationsconfigv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
scheme "github.com/openshift/client-go/config/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type IngressesGetter interface {
// IngressInterface has methods to work with Ingress resources.
type IngressInterface interface {
- Create(ctx context.Context, ingress *v1.Ingress, opts metav1.CreateOptions) (*v1.Ingress, error)
- Update(ctx context.Context, ingress *v1.Ingress, opts metav1.UpdateOptions) (*v1.Ingress, error)
+ Create(ctx context.Context, ingress *configv1.Ingress, opts metav1.CreateOptions) (*configv1.Ingress, error)
+ Update(ctx context.Context, ingress *configv1.Ingress, opts metav1.UpdateOptions) (*configv1.Ingress, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, ingress *v1.Ingress, opts metav1.UpdateOptions) (*v1.Ingress, error)
+ UpdateStatus(ctx context.Context, ingress *configv1.Ingress, opts metav1.UpdateOptions) (*configv1.Ingress, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Ingress, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.IngressList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*configv1.Ingress, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*configv1.IngressList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Ingress, err error)
- Apply(ctx context.Context, ingress *configv1.IngressApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Ingress, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *configv1.Ingress, err error)
+ Apply(ctx context.Context, ingress *applyconfigurationsconfigv1.IngressApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.Ingress, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, ingress *configv1.IngressApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Ingress, err error)
+ ApplyStatus(ctx context.Context, ingress *applyconfigurationsconfigv1.IngressApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.Ingress, err error)
IngressExpansion
}
// ingresses implements IngressInterface
type ingresses struct {
- *gentype.ClientWithListAndApply[*v1.Ingress, *v1.IngressList, *configv1.IngressApplyConfiguration]
+ *gentype.ClientWithListAndApply[*configv1.Ingress, *configv1.IngressList, *applyconfigurationsconfigv1.IngressApplyConfiguration]
}
// newIngresses returns a Ingresses
func newIngresses(c *ConfigV1Client) *ingresses {
return &ingresses{
- gentype.NewClientWithListAndApply[*v1.Ingress, *v1.IngressList, *configv1.IngressApplyConfiguration](
+ gentype.NewClientWithListAndApply[*configv1.Ingress, *configv1.IngressList, *applyconfigurationsconfigv1.IngressApplyConfiguration](
"ingresses",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.Ingress { return &v1.Ingress{} },
- func() *v1.IngressList { return &v1.IngressList{} }),
+ func() *configv1.Ingress { return &configv1.Ingress{} },
+ func() *configv1.IngressList { return &configv1.IngressList{} },
+ ),
}
}
diff --git a/config/clientset/versioned/typed/config/v1/network.go b/config/clientset/versioned/typed/config/v1/network.go
index ca61ca93a..c58e0f211 100644
--- a/config/clientset/versioned/typed/config/v1/network.go
+++ b/config/clientset/versioned/typed/config/v1/network.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/config/v1"
- configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
+ applyconfigurationsconfigv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
scheme "github.com/openshift/client-go/config/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type NetworksGetter interface {
// NetworkInterface has methods to work with Network resources.
type NetworkInterface interface {
- Create(ctx context.Context, network *v1.Network, opts metav1.CreateOptions) (*v1.Network, error)
- Update(ctx context.Context, network *v1.Network, opts metav1.UpdateOptions) (*v1.Network, error)
+ Create(ctx context.Context, network *configv1.Network, opts metav1.CreateOptions) (*configv1.Network, error)
+ Update(ctx context.Context, network *configv1.Network, opts metav1.UpdateOptions) (*configv1.Network, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, network *v1.Network, opts metav1.UpdateOptions) (*v1.Network, error)
+ UpdateStatus(ctx context.Context, network *configv1.Network, opts metav1.UpdateOptions) (*configv1.Network, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Network, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.NetworkList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*configv1.Network, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*configv1.NetworkList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Network, err error)
- Apply(ctx context.Context, network *configv1.NetworkApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Network, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *configv1.Network, err error)
+ Apply(ctx context.Context, network *applyconfigurationsconfigv1.NetworkApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.Network, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, network *configv1.NetworkApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Network, err error)
+ ApplyStatus(ctx context.Context, network *applyconfigurationsconfigv1.NetworkApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.Network, err error)
NetworkExpansion
}
// networks implements NetworkInterface
type networks struct {
- *gentype.ClientWithListAndApply[*v1.Network, *v1.NetworkList, *configv1.NetworkApplyConfiguration]
+ *gentype.ClientWithListAndApply[*configv1.Network, *configv1.NetworkList, *applyconfigurationsconfigv1.NetworkApplyConfiguration]
}
// newNetworks returns a Networks
func newNetworks(c *ConfigV1Client) *networks {
return &networks{
- gentype.NewClientWithListAndApply[*v1.Network, *v1.NetworkList, *configv1.NetworkApplyConfiguration](
+ gentype.NewClientWithListAndApply[*configv1.Network, *configv1.NetworkList, *applyconfigurationsconfigv1.NetworkApplyConfiguration](
"networks",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.Network { return &v1.Network{} },
- func() *v1.NetworkList { return &v1.NetworkList{} }),
+ func() *configv1.Network { return &configv1.Network{} },
+ func() *configv1.NetworkList { return &configv1.NetworkList{} },
+ ),
}
}
diff --git a/config/clientset/versioned/typed/config/v1/node.go b/config/clientset/versioned/typed/config/v1/node.go
index 0ec0e5e5a..b573b1598 100644
--- a/config/clientset/versioned/typed/config/v1/node.go
+++ b/config/clientset/versioned/typed/config/v1/node.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/config/v1"
- configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
+ applyconfigurationsconfigv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
scheme "github.com/openshift/client-go/config/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type NodesGetter interface {
// NodeInterface has methods to work with Node resources.
type NodeInterface interface {
- Create(ctx context.Context, node *v1.Node, opts metav1.CreateOptions) (*v1.Node, error)
- Update(ctx context.Context, node *v1.Node, opts metav1.UpdateOptions) (*v1.Node, error)
+ Create(ctx context.Context, node *configv1.Node, opts metav1.CreateOptions) (*configv1.Node, error)
+ Update(ctx context.Context, node *configv1.Node, opts metav1.UpdateOptions) (*configv1.Node, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, node *v1.Node, opts metav1.UpdateOptions) (*v1.Node, error)
+ UpdateStatus(ctx context.Context, node *configv1.Node, opts metav1.UpdateOptions) (*configv1.Node, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Node, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.NodeList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*configv1.Node, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*configv1.NodeList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Node, err error)
- Apply(ctx context.Context, node *configv1.NodeApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Node, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *configv1.Node, err error)
+ Apply(ctx context.Context, node *applyconfigurationsconfigv1.NodeApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.Node, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, node *configv1.NodeApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Node, err error)
+ ApplyStatus(ctx context.Context, node *applyconfigurationsconfigv1.NodeApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.Node, err error)
NodeExpansion
}
// nodes implements NodeInterface
type nodes struct {
- *gentype.ClientWithListAndApply[*v1.Node, *v1.NodeList, *configv1.NodeApplyConfiguration]
+ *gentype.ClientWithListAndApply[*configv1.Node, *configv1.NodeList, *applyconfigurationsconfigv1.NodeApplyConfiguration]
}
// newNodes returns a Nodes
func newNodes(c *ConfigV1Client) *nodes {
return &nodes{
- gentype.NewClientWithListAndApply[*v1.Node, *v1.NodeList, *configv1.NodeApplyConfiguration](
+ gentype.NewClientWithListAndApply[*configv1.Node, *configv1.NodeList, *applyconfigurationsconfigv1.NodeApplyConfiguration](
"nodes",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.Node { return &v1.Node{} },
- func() *v1.NodeList { return &v1.NodeList{} }),
+ func() *configv1.Node { return &configv1.Node{} },
+ func() *configv1.NodeList { return &configv1.NodeList{} },
+ ),
}
}
diff --git a/config/clientset/versioned/typed/config/v1/oauth.go b/config/clientset/versioned/typed/config/v1/oauth.go
index d6f7814aa..755a93873 100644
--- a/config/clientset/versioned/typed/config/v1/oauth.go
+++ b/config/clientset/versioned/typed/config/v1/oauth.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/config/v1"
- configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
+ applyconfigurationsconfigv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
scheme "github.com/openshift/client-go/config/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type OAuthsGetter interface {
// OAuthInterface has methods to work with OAuth resources.
type OAuthInterface interface {
- Create(ctx context.Context, oAuth *v1.OAuth, opts metav1.CreateOptions) (*v1.OAuth, error)
- Update(ctx context.Context, oAuth *v1.OAuth, opts metav1.UpdateOptions) (*v1.OAuth, error)
+ Create(ctx context.Context, oAuth *configv1.OAuth, opts metav1.CreateOptions) (*configv1.OAuth, error)
+ Update(ctx context.Context, oAuth *configv1.OAuth, opts metav1.UpdateOptions) (*configv1.OAuth, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, oAuth *v1.OAuth, opts metav1.UpdateOptions) (*v1.OAuth, error)
+ UpdateStatus(ctx context.Context, oAuth *configv1.OAuth, opts metav1.UpdateOptions) (*configv1.OAuth, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.OAuth, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.OAuthList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*configv1.OAuth, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*configv1.OAuthList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.OAuth, err error)
- Apply(ctx context.Context, oAuth *configv1.OAuthApplyConfiguration, opts metav1.ApplyOptions) (result *v1.OAuth, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *configv1.OAuth, err error)
+ Apply(ctx context.Context, oAuth *applyconfigurationsconfigv1.OAuthApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.OAuth, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, oAuth *configv1.OAuthApplyConfiguration, opts metav1.ApplyOptions) (result *v1.OAuth, err error)
+ ApplyStatus(ctx context.Context, oAuth *applyconfigurationsconfigv1.OAuthApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.OAuth, err error)
OAuthExpansion
}
// oAuths implements OAuthInterface
type oAuths struct {
- *gentype.ClientWithListAndApply[*v1.OAuth, *v1.OAuthList, *configv1.OAuthApplyConfiguration]
+ *gentype.ClientWithListAndApply[*configv1.OAuth, *configv1.OAuthList, *applyconfigurationsconfigv1.OAuthApplyConfiguration]
}
// newOAuths returns a OAuths
func newOAuths(c *ConfigV1Client) *oAuths {
return &oAuths{
- gentype.NewClientWithListAndApply[*v1.OAuth, *v1.OAuthList, *configv1.OAuthApplyConfiguration](
+ gentype.NewClientWithListAndApply[*configv1.OAuth, *configv1.OAuthList, *applyconfigurationsconfigv1.OAuthApplyConfiguration](
"oauths",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.OAuth { return &v1.OAuth{} },
- func() *v1.OAuthList { return &v1.OAuthList{} }),
+ func() *configv1.OAuth { return &configv1.OAuth{} },
+ func() *configv1.OAuthList { return &configv1.OAuthList{} },
+ ),
}
}
diff --git a/config/clientset/versioned/typed/config/v1/operatorhub.go b/config/clientset/versioned/typed/config/v1/operatorhub.go
index c8a291486..e3ba1b8ab 100644
--- a/config/clientset/versioned/typed/config/v1/operatorhub.go
+++ b/config/clientset/versioned/typed/config/v1/operatorhub.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/config/v1"
- configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
+ applyconfigurationsconfigv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
scheme "github.com/openshift/client-go/config/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type OperatorHubsGetter interface {
// OperatorHubInterface has methods to work with OperatorHub resources.
type OperatorHubInterface interface {
- Create(ctx context.Context, operatorHub *v1.OperatorHub, opts metav1.CreateOptions) (*v1.OperatorHub, error)
- Update(ctx context.Context, operatorHub *v1.OperatorHub, opts metav1.UpdateOptions) (*v1.OperatorHub, error)
+ Create(ctx context.Context, operatorHub *configv1.OperatorHub, opts metav1.CreateOptions) (*configv1.OperatorHub, error)
+ Update(ctx context.Context, operatorHub *configv1.OperatorHub, opts metav1.UpdateOptions) (*configv1.OperatorHub, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, operatorHub *v1.OperatorHub, opts metav1.UpdateOptions) (*v1.OperatorHub, error)
+ UpdateStatus(ctx context.Context, operatorHub *configv1.OperatorHub, opts metav1.UpdateOptions) (*configv1.OperatorHub, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.OperatorHub, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.OperatorHubList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*configv1.OperatorHub, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*configv1.OperatorHubList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.OperatorHub, err error)
- Apply(ctx context.Context, operatorHub *configv1.OperatorHubApplyConfiguration, opts metav1.ApplyOptions) (result *v1.OperatorHub, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *configv1.OperatorHub, err error)
+ Apply(ctx context.Context, operatorHub *applyconfigurationsconfigv1.OperatorHubApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.OperatorHub, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, operatorHub *configv1.OperatorHubApplyConfiguration, opts metav1.ApplyOptions) (result *v1.OperatorHub, err error)
+ ApplyStatus(ctx context.Context, operatorHub *applyconfigurationsconfigv1.OperatorHubApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.OperatorHub, err error)
OperatorHubExpansion
}
// operatorHubs implements OperatorHubInterface
type operatorHubs struct {
- *gentype.ClientWithListAndApply[*v1.OperatorHub, *v1.OperatorHubList, *configv1.OperatorHubApplyConfiguration]
+ *gentype.ClientWithListAndApply[*configv1.OperatorHub, *configv1.OperatorHubList, *applyconfigurationsconfigv1.OperatorHubApplyConfiguration]
}
// newOperatorHubs returns a OperatorHubs
func newOperatorHubs(c *ConfigV1Client) *operatorHubs {
return &operatorHubs{
- gentype.NewClientWithListAndApply[*v1.OperatorHub, *v1.OperatorHubList, *configv1.OperatorHubApplyConfiguration](
+ gentype.NewClientWithListAndApply[*configv1.OperatorHub, *configv1.OperatorHubList, *applyconfigurationsconfigv1.OperatorHubApplyConfiguration](
"operatorhubs",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.OperatorHub { return &v1.OperatorHub{} },
- func() *v1.OperatorHubList { return &v1.OperatorHubList{} }),
+ func() *configv1.OperatorHub { return &configv1.OperatorHub{} },
+ func() *configv1.OperatorHubList { return &configv1.OperatorHubList{} },
+ ),
}
}
diff --git a/config/clientset/versioned/typed/config/v1/project.go b/config/clientset/versioned/typed/config/v1/project.go
index 75cd01ec1..5cde353a6 100644
--- a/config/clientset/versioned/typed/config/v1/project.go
+++ b/config/clientset/versioned/typed/config/v1/project.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/config/v1"
- configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
+ applyconfigurationsconfigv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
scheme "github.com/openshift/client-go/config/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type ProjectsGetter interface {
// ProjectInterface has methods to work with Project resources.
type ProjectInterface interface {
- Create(ctx context.Context, project *v1.Project, opts metav1.CreateOptions) (*v1.Project, error)
- Update(ctx context.Context, project *v1.Project, opts metav1.UpdateOptions) (*v1.Project, error)
+ Create(ctx context.Context, project *configv1.Project, opts metav1.CreateOptions) (*configv1.Project, error)
+ Update(ctx context.Context, project *configv1.Project, opts metav1.UpdateOptions) (*configv1.Project, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, project *v1.Project, opts metav1.UpdateOptions) (*v1.Project, error)
+ UpdateStatus(ctx context.Context, project *configv1.Project, opts metav1.UpdateOptions) (*configv1.Project, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Project, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.ProjectList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*configv1.Project, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*configv1.ProjectList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Project, err error)
- Apply(ctx context.Context, project *configv1.ProjectApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Project, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *configv1.Project, err error)
+ Apply(ctx context.Context, project *applyconfigurationsconfigv1.ProjectApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.Project, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, project *configv1.ProjectApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Project, err error)
+ ApplyStatus(ctx context.Context, project *applyconfigurationsconfigv1.ProjectApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.Project, err error)
ProjectExpansion
}
// projects implements ProjectInterface
type projects struct {
- *gentype.ClientWithListAndApply[*v1.Project, *v1.ProjectList, *configv1.ProjectApplyConfiguration]
+ *gentype.ClientWithListAndApply[*configv1.Project, *configv1.ProjectList, *applyconfigurationsconfigv1.ProjectApplyConfiguration]
}
// newProjects returns a Projects
func newProjects(c *ConfigV1Client) *projects {
return &projects{
- gentype.NewClientWithListAndApply[*v1.Project, *v1.ProjectList, *configv1.ProjectApplyConfiguration](
+ gentype.NewClientWithListAndApply[*configv1.Project, *configv1.ProjectList, *applyconfigurationsconfigv1.ProjectApplyConfiguration](
"projects",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.Project { return &v1.Project{} },
- func() *v1.ProjectList { return &v1.ProjectList{} }),
+ func() *configv1.Project { return &configv1.Project{} },
+ func() *configv1.ProjectList { return &configv1.ProjectList{} },
+ ),
}
}
diff --git a/config/clientset/versioned/typed/config/v1/proxy.go b/config/clientset/versioned/typed/config/v1/proxy.go
index dfa2b4d19..55374ecfe 100644
--- a/config/clientset/versioned/typed/config/v1/proxy.go
+++ b/config/clientset/versioned/typed/config/v1/proxy.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/config/v1"
- configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
+ applyconfigurationsconfigv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
scheme "github.com/openshift/client-go/config/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type ProxiesGetter interface {
// ProxyInterface has methods to work with Proxy resources.
type ProxyInterface interface {
- Create(ctx context.Context, proxy *v1.Proxy, opts metav1.CreateOptions) (*v1.Proxy, error)
- Update(ctx context.Context, proxy *v1.Proxy, opts metav1.UpdateOptions) (*v1.Proxy, error)
+ Create(ctx context.Context, proxy *configv1.Proxy, opts metav1.CreateOptions) (*configv1.Proxy, error)
+ Update(ctx context.Context, proxy *configv1.Proxy, opts metav1.UpdateOptions) (*configv1.Proxy, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, proxy *v1.Proxy, opts metav1.UpdateOptions) (*v1.Proxy, error)
+ UpdateStatus(ctx context.Context, proxy *configv1.Proxy, opts metav1.UpdateOptions) (*configv1.Proxy, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Proxy, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.ProxyList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*configv1.Proxy, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*configv1.ProxyList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Proxy, err error)
- Apply(ctx context.Context, proxy *configv1.ProxyApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Proxy, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *configv1.Proxy, err error)
+ Apply(ctx context.Context, proxy *applyconfigurationsconfigv1.ProxyApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.Proxy, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, proxy *configv1.ProxyApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Proxy, err error)
+ ApplyStatus(ctx context.Context, proxy *applyconfigurationsconfigv1.ProxyApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.Proxy, err error)
ProxyExpansion
}
// proxies implements ProxyInterface
type proxies struct {
- *gentype.ClientWithListAndApply[*v1.Proxy, *v1.ProxyList, *configv1.ProxyApplyConfiguration]
+ *gentype.ClientWithListAndApply[*configv1.Proxy, *configv1.ProxyList, *applyconfigurationsconfigv1.ProxyApplyConfiguration]
}
// newProxies returns a Proxies
func newProxies(c *ConfigV1Client) *proxies {
return &proxies{
- gentype.NewClientWithListAndApply[*v1.Proxy, *v1.ProxyList, *configv1.ProxyApplyConfiguration](
+ gentype.NewClientWithListAndApply[*configv1.Proxy, *configv1.ProxyList, *applyconfigurationsconfigv1.ProxyApplyConfiguration](
"proxies",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.Proxy { return &v1.Proxy{} },
- func() *v1.ProxyList { return &v1.ProxyList{} }),
+ func() *configv1.Proxy { return &configv1.Proxy{} },
+ func() *configv1.ProxyList { return &configv1.ProxyList{} },
+ ),
}
}
diff --git a/config/clientset/versioned/typed/config/v1/scheduler.go b/config/clientset/versioned/typed/config/v1/scheduler.go
index 7d459060e..3bdc27dbc 100644
--- a/config/clientset/versioned/typed/config/v1/scheduler.go
+++ b/config/clientset/versioned/typed/config/v1/scheduler.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/config/v1"
- configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
+ applyconfigurationsconfigv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
scheme "github.com/openshift/client-go/config/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type SchedulersGetter interface {
// SchedulerInterface has methods to work with Scheduler resources.
type SchedulerInterface interface {
- Create(ctx context.Context, scheduler *v1.Scheduler, opts metav1.CreateOptions) (*v1.Scheduler, error)
- Update(ctx context.Context, scheduler *v1.Scheduler, opts metav1.UpdateOptions) (*v1.Scheduler, error)
+ Create(ctx context.Context, scheduler *configv1.Scheduler, opts metav1.CreateOptions) (*configv1.Scheduler, error)
+ Update(ctx context.Context, scheduler *configv1.Scheduler, opts metav1.UpdateOptions) (*configv1.Scheduler, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, scheduler *v1.Scheduler, opts metav1.UpdateOptions) (*v1.Scheduler, error)
+ UpdateStatus(ctx context.Context, scheduler *configv1.Scheduler, opts metav1.UpdateOptions) (*configv1.Scheduler, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Scheduler, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.SchedulerList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*configv1.Scheduler, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*configv1.SchedulerList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Scheduler, err error)
- Apply(ctx context.Context, scheduler *configv1.SchedulerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Scheduler, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *configv1.Scheduler, err error)
+ Apply(ctx context.Context, scheduler *applyconfigurationsconfigv1.SchedulerApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.Scheduler, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, scheduler *configv1.SchedulerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Scheduler, err error)
+ ApplyStatus(ctx context.Context, scheduler *applyconfigurationsconfigv1.SchedulerApplyConfiguration, opts metav1.ApplyOptions) (result *configv1.Scheduler, err error)
SchedulerExpansion
}
// schedulers implements SchedulerInterface
type schedulers struct {
- *gentype.ClientWithListAndApply[*v1.Scheduler, *v1.SchedulerList, *configv1.SchedulerApplyConfiguration]
+ *gentype.ClientWithListAndApply[*configv1.Scheduler, *configv1.SchedulerList, *applyconfigurationsconfigv1.SchedulerApplyConfiguration]
}
// newSchedulers returns a Schedulers
func newSchedulers(c *ConfigV1Client) *schedulers {
return &schedulers{
- gentype.NewClientWithListAndApply[*v1.Scheduler, *v1.SchedulerList, *configv1.SchedulerApplyConfiguration](
+ gentype.NewClientWithListAndApply[*configv1.Scheduler, *configv1.SchedulerList, *applyconfigurationsconfigv1.SchedulerApplyConfiguration](
"schedulers",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.Scheduler { return &v1.Scheduler{} },
- func() *v1.SchedulerList { return &v1.SchedulerList{} }),
+ func() *configv1.Scheduler { return &configv1.Scheduler{} },
+ func() *configv1.SchedulerList { return &configv1.SchedulerList{} },
+ ),
}
}
diff --git a/config/clientset/versioned/typed/config/v1alpha1/backup.go b/config/clientset/versioned/typed/config/v1alpha1/backup.go
index 40ade8391..89c7b176e 100644
--- a/config/clientset/versioned/typed/config/v1alpha1/backup.go
+++ b/config/clientset/versioned/typed/config/v1alpha1/backup.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- "context"
+ context "context"
- v1alpha1 "github.com/openshift/api/config/v1alpha1"
- configv1alpha1 "github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1"
+ configv1alpha1 "github.com/openshift/api/config/v1alpha1"
+ applyconfigurationsconfigv1alpha1 "github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1"
scheme "github.com/openshift/client-go/config/clientset/versioned/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type BackupsGetter interface {
// BackupInterface has methods to work with Backup resources.
type BackupInterface interface {
- Create(ctx context.Context, backup *v1alpha1.Backup, opts v1.CreateOptions) (*v1alpha1.Backup, error)
- Update(ctx context.Context, backup *v1alpha1.Backup, opts v1.UpdateOptions) (*v1alpha1.Backup, error)
+ Create(ctx context.Context, backup *configv1alpha1.Backup, opts v1.CreateOptions) (*configv1alpha1.Backup, error)
+ Update(ctx context.Context, backup *configv1alpha1.Backup, opts v1.UpdateOptions) (*configv1alpha1.Backup, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, backup *v1alpha1.Backup, opts v1.UpdateOptions) (*v1alpha1.Backup, error)
+ UpdateStatus(ctx context.Context, backup *configv1alpha1.Backup, opts v1.UpdateOptions) (*configv1alpha1.Backup, error)
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.Backup, error)
- List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.BackupList, error)
+ Get(ctx context.Context, name string, opts v1.GetOptions) (*configv1alpha1.Backup, error)
+ List(ctx context.Context, opts v1.ListOptions) (*configv1alpha1.BackupList, error)
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Backup, err error)
- Apply(ctx context.Context, backup *configv1alpha1.BackupApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Backup, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *configv1alpha1.Backup, err error)
+ Apply(ctx context.Context, backup *applyconfigurationsconfigv1alpha1.BackupApplyConfiguration, opts v1.ApplyOptions) (result *configv1alpha1.Backup, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, backup *configv1alpha1.BackupApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Backup, err error)
+ ApplyStatus(ctx context.Context, backup *applyconfigurationsconfigv1alpha1.BackupApplyConfiguration, opts v1.ApplyOptions) (result *configv1alpha1.Backup, err error)
BackupExpansion
}
// backups implements BackupInterface
type backups struct {
- *gentype.ClientWithListAndApply[*v1alpha1.Backup, *v1alpha1.BackupList, *configv1alpha1.BackupApplyConfiguration]
+ *gentype.ClientWithListAndApply[*configv1alpha1.Backup, *configv1alpha1.BackupList, *applyconfigurationsconfigv1alpha1.BackupApplyConfiguration]
}
// newBackups returns a Backups
func newBackups(c *ConfigV1alpha1Client) *backups {
return &backups{
- gentype.NewClientWithListAndApply[*v1alpha1.Backup, *v1alpha1.BackupList, *configv1alpha1.BackupApplyConfiguration](
+ gentype.NewClientWithListAndApply[*configv1alpha1.Backup, *configv1alpha1.BackupList, *applyconfigurationsconfigv1alpha1.BackupApplyConfiguration](
"backups",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1alpha1.Backup { return &v1alpha1.Backup{} },
- func() *v1alpha1.BackupList { return &v1alpha1.BackupList{} }),
+ func() *configv1alpha1.Backup { return &configv1alpha1.Backup{} },
+ func() *configv1alpha1.BackupList { return &configv1alpha1.BackupList{} },
+ ),
}
}
diff --git a/config/clientset/versioned/typed/config/v1alpha1/clusterimagepolicy.go b/config/clientset/versioned/typed/config/v1alpha1/clusterimagepolicy.go
index 508b3604b..8391f7b40 100644
--- a/config/clientset/versioned/typed/config/v1alpha1/clusterimagepolicy.go
+++ b/config/clientset/versioned/typed/config/v1alpha1/clusterimagepolicy.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- "context"
+ context "context"
- v1alpha1 "github.com/openshift/api/config/v1alpha1"
- configv1alpha1 "github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1"
+ configv1alpha1 "github.com/openshift/api/config/v1alpha1"
+ applyconfigurationsconfigv1alpha1 "github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1"
scheme "github.com/openshift/client-go/config/clientset/versioned/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type ClusterImagePoliciesGetter interface {
// ClusterImagePolicyInterface has methods to work with ClusterImagePolicy resources.
type ClusterImagePolicyInterface interface {
- Create(ctx context.Context, clusterImagePolicy *v1alpha1.ClusterImagePolicy, opts v1.CreateOptions) (*v1alpha1.ClusterImagePolicy, error)
- Update(ctx context.Context, clusterImagePolicy *v1alpha1.ClusterImagePolicy, opts v1.UpdateOptions) (*v1alpha1.ClusterImagePolicy, error)
+ Create(ctx context.Context, clusterImagePolicy *configv1alpha1.ClusterImagePolicy, opts v1.CreateOptions) (*configv1alpha1.ClusterImagePolicy, error)
+ Update(ctx context.Context, clusterImagePolicy *configv1alpha1.ClusterImagePolicy, opts v1.UpdateOptions) (*configv1alpha1.ClusterImagePolicy, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, clusterImagePolicy *v1alpha1.ClusterImagePolicy, opts v1.UpdateOptions) (*v1alpha1.ClusterImagePolicy, error)
+ UpdateStatus(ctx context.Context, clusterImagePolicy *configv1alpha1.ClusterImagePolicy, opts v1.UpdateOptions) (*configv1alpha1.ClusterImagePolicy, error)
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.ClusterImagePolicy, error)
- List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.ClusterImagePolicyList, error)
+ Get(ctx context.Context, name string, opts v1.GetOptions) (*configv1alpha1.ClusterImagePolicy, error)
+ List(ctx context.Context, opts v1.ListOptions) (*configv1alpha1.ClusterImagePolicyList, error)
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ClusterImagePolicy, err error)
- Apply(ctx context.Context, clusterImagePolicy *configv1alpha1.ClusterImagePolicyApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.ClusterImagePolicy, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *configv1alpha1.ClusterImagePolicy, err error)
+ Apply(ctx context.Context, clusterImagePolicy *applyconfigurationsconfigv1alpha1.ClusterImagePolicyApplyConfiguration, opts v1.ApplyOptions) (result *configv1alpha1.ClusterImagePolicy, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, clusterImagePolicy *configv1alpha1.ClusterImagePolicyApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.ClusterImagePolicy, err error)
+ ApplyStatus(ctx context.Context, clusterImagePolicy *applyconfigurationsconfigv1alpha1.ClusterImagePolicyApplyConfiguration, opts v1.ApplyOptions) (result *configv1alpha1.ClusterImagePolicy, err error)
ClusterImagePolicyExpansion
}
// clusterImagePolicies implements ClusterImagePolicyInterface
type clusterImagePolicies struct {
- *gentype.ClientWithListAndApply[*v1alpha1.ClusterImagePolicy, *v1alpha1.ClusterImagePolicyList, *configv1alpha1.ClusterImagePolicyApplyConfiguration]
+ *gentype.ClientWithListAndApply[*configv1alpha1.ClusterImagePolicy, *configv1alpha1.ClusterImagePolicyList, *applyconfigurationsconfigv1alpha1.ClusterImagePolicyApplyConfiguration]
}
// newClusterImagePolicies returns a ClusterImagePolicies
func newClusterImagePolicies(c *ConfigV1alpha1Client) *clusterImagePolicies {
return &clusterImagePolicies{
- gentype.NewClientWithListAndApply[*v1alpha1.ClusterImagePolicy, *v1alpha1.ClusterImagePolicyList, *configv1alpha1.ClusterImagePolicyApplyConfiguration](
+ gentype.NewClientWithListAndApply[*configv1alpha1.ClusterImagePolicy, *configv1alpha1.ClusterImagePolicyList, *applyconfigurationsconfigv1alpha1.ClusterImagePolicyApplyConfiguration](
"clusterimagepolicies",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1alpha1.ClusterImagePolicy { return &v1alpha1.ClusterImagePolicy{} },
- func() *v1alpha1.ClusterImagePolicyList { return &v1alpha1.ClusterImagePolicyList{} }),
+ func() *configv1alpha1.ClusterImagePolicy { return &configv1alpha1.ClusterImagePolicy{} },
+ func() *configv1alpha1.ClusterImagePolicyList { return &configv1alpha1.ClusterImagePolicyList{} },
+ ),
}
}
diff --git a/config/clientset/versioned/typed/config/v1alpha1/clustermonitoring.go b/config/clientset/versioned/typed/config/v1alpha1/clustermonitoring.go
new file mode 100644
index 000000000..8d02fc6c2
--- /dev/null
+++ b/config/clientset/versioned/typed/config/v1alpha1/clustermonitoring.go
@@ -0,0 +1,58 @@
+// Code generated by client-gen. DO NOT EDIT.
+
+package v1alpha1
+
+import (
+ context "context"
+
+ configv1alpha1 "github.com/openshift/api/config/v1alpha1"
+ applyconfigurationsconfigv1alpha1 "github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1"
+ scheme "github.com/openshift/client-go/config/clientset/versioned/scheme"
+ v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ types "k8s.io/apimachinery/pkg/types"
+ watch "k8s.io/apimachinery/pkg/watch"
+ gentype "k8s.io/client-go/gentype"
+)
+
+// ClusterMonitoringsGetter has a method to return a ClusterMonitoringInterface.
+// A group's client should implement this interface.
+type ClusterMonitoringsGetter interface {
+ ClusterMonitorings() ClusterMonitoringInterface
+}
+
+// ClusterMonitoringInterface has methods to work with ClusterMonitoring resources.
+type ClusterMonitoringInterface interface {
+ Create(ctx context.Context, clusterMonitoring *configv1alpha1.ClusterMonitoring, opts v1.CreateOptions) (*configv1alpha1.ClusterMonitoring, error)
+ Update(ctx context.Context, clusterMonitoring *configv1alpha1.ClusterMonitoring, opts v1.UpdateOptions) (*configv1alpha1.ClusterMonitoring, error)
+ // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
+ UpdateStatus(ctx context.Context, clusterMonitoring *configv1alpha1.ClusterMonitoring, opts v1.UpdateOptions) (*configv1alpha1.ClusterMonitoring, error)
+ Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
+ DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
+ Get(ctx context.Context, name string, opts v1.GetOptions) (*configv1alpha1.ClusterMonitoring, error)
+ List(ctx context.Context, opts v1.ListOptions) (*configv1alpha1.ClusterMonitoringList, error)
+ Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *configv1alpha1.ClusterMonitoring, err error)
+ Apply(ctx context.Context, clusterMonitoring *applyconfigurationsconfigv1alpha1.ClusterMonitoringApplyConfiguration, opts v1.ApplyOptions) (result *configv1alpha1.ClusterMonitoring, err error)
+ // Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
+ ApplyStatus(ctx context.Context, clusterMonitoring *applyconfigurationsconfigv1alpha1.ClusterMonitoringApplyConfiguration, opts v1.ApplyOptions) (result *configv1alpha1.ClusterMonitoring, err error)
+ ClusterMonitoringExpansion
+}
+
+// clusterMonitorings implements ClusterMonitoringInterface
+type clusterMonitorings struct {
+ *gentype.ClientWithListAndApply[*configv1alpha1.ClusterMonitoring, *configv1alpha1.ClusterMonitoringList, *applyconfigurationsconfigv1alpha1.ClusterMonitoringApplyConfiguration]
+}
+
+// newClusterMonitorings returns a ClusterMonitorings
+func newClusterMonitorings(c *ConfigV1alpha1Client) *clusterMonitorings {
+ return &clusterMonitorings{
+ gentype.NewClientWithListAndApply[*configv1alpha1.ClusterMonitoring, *configv1alpha1.ClusterMonitoringList, *applyconfigurationsconfigv1alpha1.ClusterMonitoringApplyConfiguration](
+ "clustermonitorings",
+ c.RESTClient(),
+ scheme.ParameterCodec,
+ "",
+ func() *configv1alpha1.ClusterMonitoring { return &configv1alpha1.ClusterMonitoring{} },
+ func() *configv1alpha1.ClusterMonitoringList { return &configv1alpha1.ClusterMonitoringList{} },
+ ),
+ }
+}
diff --git a/config/clientset/versioned/typed/config/v1alpha1/config_client.go b/config/clientset/versioned/typed/config/v1alpha1/config_client.go
index cfbbd848b..70ebfa3cd 100644
--- a/config/clientset/versioned/typed/config/v1alpha1/config_client.go
+++ b/config/clientset/versioned/typed/config/v1alpha1/config_client.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- "net/http"
+ http "net/http"
- v1alpha1 "github.com/openshift/api/config/v1alpha1"
- "github.com/openshift/client-go/config/clientset/versioned/scheme"
+ configv1alpha1 "github.com/openshift/api/config/v1alpha1"
+ scheme "github.com/openshift/client-go/config/clientset/versioned/scheme"
rest "k8s.io/client-go/rest"
)
@@ -14,6 +14,7 @@ type ConfigV1alpha1Interface interface {
RESTClient() rest.Interface
BackupsGetter
ClusterImagePoliciesGetter
+ ClusterMonitoringsGetter
ImagePoliciesGetter
InsightsDataGathersGetter
}
@@ -31,6 +32,10 @@ func (c *ConfigV1alpha1Client) ClusterImagePolicies() ClusterImagePolicyInterfac
return newClusterImagePolicies(c)
}
+func (c *ConfigV1alpha1Client) ClusterMonitorings() ClusterMonitoringInterface {
+ return newClusterMonitorings(c)
+}
+
func (c *ConfigV1alpha1Client) ImagePolicies(namespace string) ImagePolicyInterface {
return newImagePolicies(c, namespace)
}
@@ -84,10 +89,10 @@ func New(c rest.Interface) *ConfigV1alpha1Client {
}
func setConfigDefaults(config *rest.Config) error {
- gv := v1alpha1.SchemeGroupVersion
+ gv := configv1alpha1.SchemeGroupVersion
config.GroupVersion = &gv
config.APIPath = "/apis"
- config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
+ config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion()
if config.UserAgent == "" {
config.UserAgent = rest.DefaultKubernetesUserAgent()
diff --git a/config/clientset/versioned/typed/config/v1alpha1/fake/fake_backup.go b/config/clientset/versioned/typed/config/v1alpha1/fake/fake_backup.go
index 22e83601e..91db422ac 100644
--- a/config/clientset/versioned/typed/config/v1alpha1/fake/fake_backup.go
+++ b/config/clientset/versioned/typed/config/v1alpha1/fake/fake_backup.go
@@ -3,168 +3,33 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1alpha1 "github.com/openshift/api/config/v1alpha1"
configv1alpha1 "github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedconfigv1alpha1 "github.com/openshift/client-go/config/clientset/versioned/typed/config/v1alpha1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeBackups implements BackupInterface
-type FakeBackups struct {
+// fakeBackups implements BackupInterface
+type fakeBackups struct {
+ *gentype.FakeClientWithListAndApply[*v1alpha1.Backup, *v1alpha1.BackupList, *configv1alpha1.BackupApplyConfiguration]
Fake *FakeConfigV1alpha1
}
-var backupsResource = v1alpha1.SchemeGroupVersion.WithResource("backups")
-
-var backupsKind = v1alpha1.SchemeGroupVersion.WithKind("Backup")
-
-// Get takes name of the backup, and returns the corresponding backup object, and an error if there is any.
-func (c *FakeBackups) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Backup, err error) {
- emptyResult := &v1alpha1.Backup{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(backupsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.Backup), err
-}
-
-// List takes label and field selectors, and returns the list of Backups that match those selectors.
-func (c *FakeBackups) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.BackupList, err error) {
- emptyResult := &v1alpha1.BackupList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(backupsResource, backupsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1alpha1.BackupList{ListMeta: obj.(*v1alpha1.BackupList).ListMeta}
- for _, item := range obj.(*v1alpha1.BackupList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested backups.
-func (c *FakeBackups) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(backupsResource, opts))
-}
-
-// Create takes the representation of a backup and creates it. Returns the server's representation of the backup, and an error, if there is any.
-func (c *FakeBackups) Create(ctx context.Context, backup *v1alpha1.Backup, opts v1.CreateOptions) (result *v1alpha1.Backup, err error) {
- emptyResult := &v1alpha1.Backup{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(backupsResource, backup, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.Backup), err
-}
-
-// Update takes the representation of a backup and updates it. Returns the server's representation of the backup, and an error, if there is any.
-func (c *FakeBackups) Update(ctx context.Context, backup *v1alpha1.Backup, opts v1.UpdateOptions) (result *v1alpha1.Backup, err error) {
- emptyResult := &v1alpha1.Backup{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(backupsResource, backup, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.Backup), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeBackups) UpdateStatus(ctx context.Context, backup *v1alpha1.Backup, opts v1.UpdateOptions) (result *v1alpha1.Backup, err error) {
- emptyResult := &v1alpha1.Backup{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(backupsResource, "status", backup, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.Backup), err
-}
-
-// Delete takes name of the backup and deletes it. Returns an error if one occurs.
-func (c *FakeBackups) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(backupsResource, name, opts), &v1alpha1.Backup{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeBackups) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(backupsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1alpha1.BackupList{})
- return err
-}
-
-// Patch applies the patch and returns the patched backup.
-func (c *FakeBackups) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Backup, err error) {
- emptyResult := &v1alpha1.Backup{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(backupsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.Backup), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied backup.
-func (c *FakeBackups) Apply(ctx context.Context, backup *configv1alpha1.BackupApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Backup, err error) {
- if backup == nil {
- return nil, fmt.Errorf("backup provided to Apply must not be nil")
- }
- data, err := json.Marshal(backup)
- if err != nil {
- return nil, err
- }
- name := backup.Name
- if name == nil {
- return nil, fmt.Errorf("backup.Name must be provided to Apply")
- }
- emptyResult := &v1alpha1.Backup{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(backupsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.Backup), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeBackups) ApplyStatus(ctx context.Context, backup *configv1alpha1.BackupApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Backup, err error) {
- if backup == nil {
- return nil, fmt.Errorf("backup provided to Apply must not be nil")
- }
- data, err := json.Marshal(backup)
- if err != nil {
- return nil, err
- }
- name := backup.Name
- if name == nil {
- return nil, fmt.Errorf("backup.Name must be provided to Apply")
- }
- emptyResult := &v1alpha1.Backup{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(backupsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeBackups(fake *FakeConfigV1alpha1) typedconfigv1alpha1.BackupInterface {
+ return &fakeBackups{
+ gentype.NewFakeClientWithListAndApply[*v1alpha1.Backup, *v1alpha1.BackupList, *configv1alpha1.BackupApplyConfiguration](
+ fake.Fake,
+ "",
+ v1alpha1.SchemeGroupVersion.WithResource("backups"),
+ v1alpha1.SchemeGroupVersion.WithKind("Backup"),
+ func() *v1alpha1.Backup { return &v1alpha1.Backup{} },
+ func() *v1alpha1.BackupList { return &v1alpha1.BackupList{} },
+ func(dst, src *v1alpha1.BackupList) { dst.ListMeta = src.ListMeta },
+ func(list *v1alpha1.BackupList) []*v1alpha1.Backup { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1alpha1.BackupList, items []*v1alpha1.Backup) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1alpha1.Backup), err
}
diff --git a/config/clientset/versioned/typed/config/v1alpha1/fake/fake_clusterimagepolicy.go b/config/clientset/versioned/typed/config/v1alpha1/fake/fake_clusterimagepolicy.go
index 886f25a25..50d94e1a9 100644
--- a/config/clientset/versioned/typed/config/v1alpha1/fake/fake_clusterimagepolicy.go
+++ b/config/clientset/versioned/typed/config/v1alpha1/fake/fake_clusterimagepolicy.go
@@ -3,168 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1alpha1 "github.com/openshift/api/config/v1alpha1"
configv1alpha1 "github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedconfigv1alpha1 "github.com/openshift/client-go/config/clientset/versioned/typed/config/v1alpha1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeClusterImagePolicies implements ClusterImagePolicyInterface
-type FakeClusterImagePolicies struct {
+// fakeClusterImagePolicies implements ClusterImagePolicyInterface
+type fakeClusterImagePolicies struct {
+ *gentype.FakeClientWithListAndApply[*v1alpha1.ClusterImagePolicy, *v1alpha1.ClusterImagePolicyList, *configv1alpha1.ClusterImagePolicyApplyConfiguration]
Fake *FakeConfigV1alpha1
}
-var clusterimagepoliciesResource = v1alpha1.SchemeGroupVersion.WithResource("clusterimagepolicies")
-
-var clusterimagepoliciesKind = v1alpha1.SchemeGroupVersion.WithKind("ClusterImagePolicy")
-
-// Get takes name of the clusterImagePolicy, and returns the corresponding clusterImagePolicy object, and an error if there is any.
-func (c *FakeClusterImagePolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ClusterImagePolicy, err error) {
- emptyResult := &v1alpha1.ClusterImagePolicy{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(clusterimagepoliciesResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.ClusterImagePolicy), err
-}
-
-// List takes label and field selectors, and returns the list of ClusterImagePolicies that match those selectors.
-func (c *FakeClusterImagePolicies) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ClusterImagePolicyList, err error) {
- emptyResult := &v1alpha1.ClusterImagePolicyList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(clusterimagepoliciesResource, clusterimagepoliciesKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1alpha1.ClusterImagePolicyList{ListMeta: obj.(*v1alpha1.ClusterImagePolicyList).ListMeta}
- for _, item := range obj.(*v1alpha1.ClusterImagePolicyList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested clusterImagePolicies.
-func (c *FakeClusterImagePolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(clusterimagepoliciesResource, opts))
-}
-
-// Create takes the representation of a clusterImagePolicy and creates it. Returns the server's representation of the clusterImagePolicy, and an error, if there is any.
-func (c *FakeClusterImagePolicies) Create(ctx context.Context, clusterImagePolicy *v1alpha1.ClusterImagePolicy, opts v1.CreateOptions) (result *v1alpha1.ClusterImagePolicy, err error) {
- emptyResult := &v1alpha1.ClusterImagePolicy{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(clusterimagepoliciesResource, clusterImagePolicy, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.ClusterImagePolicy), err
-}
-
-// Update takes the representation of a clusterImagePolicy and updates it. Returns the server's representation of the clusterImagePolicy, and an error, if there is any.
-func (c *FakeClusterImagePolicies) Update(ctx context.Context, clusterImagePolicy *v1alpha1.ClusterImagePolicy, opts v1.UpdateOptions) (result *v1alpha1.ClusterImagePolicy, err error) {
- emptyResult := &v1alpha1.ClusterImagePolicy{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(clusterimagepoliciesResource, clusterImagePolicy, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.ClusterImagePolicy), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeClusterImagePolicies) UpdateStatus(ctx context.Context, clusterImagePolicy *v1alpha1.ClusterImagePolicy, opts v1.UpdateOptions) (result *v1alpha1.ClusterImagePolicy, err error) {
- emptyResult := &v1alpha1.ClusterImagePolicy{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(clusterimagepoliciesResource, "status", clusterImagePolicy, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.ClusterImagePolicy), err
-}
-
-// Delete takes name of the clusterImagePolicy and deletes it. Returns an error if one occurs.
-func (c *FakeClusterImagePolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(clusterimagepoliciesResource, name, opts), &v1alpha1.ClusterImagePolicy{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeClusterImagePolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(clusterimagepoliciesResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1alpha1.ClusterImagePolicyList{})
- return err
-}
-
-// Patch applies the patch and returns the patched clusterImagePolicy.
-func (c *FakeClusterImagePolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ClusterImagePolicy, err error) {
- emptyResult := &v1alpha1.ClusterImagePolicy{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(clusterimagepoliciesResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.ClusterImagePolicy), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied clusterImagePolicy.
-func (c *FakeClusterImagePolicies) Apply(ctx context.Context, clusterImagePolicy *configv1alpha1.ClusterImagePolicyApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.ClusterImagePolicy, err error) {
- if clusterImagePolicy == nil {
- return nil, fmt.Errorf("clusterImagePolicy provided to Apply must not be nil")
- }
- data, err := json.Marshal(clusterImagePolicy)
- if err != nil {
- return nil, err
- }
- name := clusterImagePolicy.Name
- if name == nil {
- return nil, fmt.Errorf("clusterImagePolicy.Name must be provided to Apply")
- }
- emptyResult := &v1alpha1.ClusterImagePolicy{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(clusterimagepoliciesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.ClusterImagePolicy), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeClusterImagePolicies) ApplyStatus(ctx context.Context, clusterImagePolicy *configv1alpha1.ClusterImagePolicyApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.ClusterImagePolicy, err error) {
- if clusterImagePolicy == nil {
- return nil, fmt.Errorf("clusterImagePolicy provided to Apply must not be nil")
- }
- data, err := json.Marshal(clusterImagePolicy)
- if err != nil {
- return nil, err
- }
- name := clusterImagePolicy.Name
- if name == nil {
- return nil, fmt.Errorf("clusterImagePolicy.Name must be provided to Apply")
- }
- emptyResult := &v1alpha1.ClusterImagePolicy{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(clusterimagepoliciesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeClusterImagePolicies(fake *FakeConfigV1alpha1) typedconfigv1alpha1.ClusterImagePolicyInterface {
+ return &fakeClusterImagePolicies{
+ gentype.NewFakeClientWithListAndApply[*v1alpha1.ClusterImagePolicy, *v1alpha1.ClusterImagePolicyList, *configv1alpha1.ClusterImagePolicyApplyConfiguration](
+ fake.Fake,
+ "",
+ v1alpha1.SchemeGroupVersion.WithResource("clusterimagepolicies"),
+ v1alpha1.SchemeGroupVersion.WithKind("ClusterImagePolicy"),
+ func() *v1alpha1.ClusterImagePolicy { return &v1alpha1.ClusterImagePolicy{} },
+ func() *v1alpha1.ClusterImagePolicyList { return &v1alpha1.ClusterImagePolicyList{} },
+ func(dst, src *v1alpha1.ClusterImagePolicyList) { dst.ListMeta = src.ListMeta },
+ func(list *v1alpha1.ClusterImagePolicyList) []*v1alpha1.ClusterImagePolicy {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1alpha1.ClusterImagePolicyList, items []*v1alpha1.ClusterImagePolicy) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1alpha1.ClusterImagePolicy), err
}
diff --git a/config/clientset/versioned/typed/config/v1alpha1/fake/fake_clustermonitoring.go b/config/clientset/versioned/typed/config/v1alpha1/fake/fake_clustermonitoring.go
new file mode 100644
index 000000000..666d60335
--- /dev/null
+++ b/config/clientset/versioned/typed/config/v1alpha1/fake/fake_clustermonitoring.go
@@ -0,0 +1,37 @@
+// Code generated by client-gen. DO NOT EDIT.
+
+package fake
+
+import (
+ v1alpha1 "github.com/openshift/api/config/v1alpha1"
+ configv1alpha1 "github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1"
+ typedconfigv1alpha1 "github.com/openshift/client-go/config/clientset/versioned/typed/config/v1alpha1"
+ gentype "k8s.io/client-go/gentype"
+)
+
+// fakeClusterMonitorings implements ClusterMonitoringInterface
+type fakeClusterMonitorings struct {
+ *gentype.FakeClientWithListAndApply[*v1alpha1.ClusterMonitoring, *v1alpha1.ClusterMonitoringList, *configv1alpha1.ClusterMonitoringApplyConfiguration]
+ Fake *FakeConfigV1alpha1
+}
+
+func newFakeClusterMonitorings(fake *FakeConfigV1alpha1) typedconfigv1alpha1.ClusterMonitoringInterface {
+ return &fakeClusterMonitorings{
+ gentype.NewFakeClientWithListAndApply[*v1alpha1.ClusterMonitoring, *v1alpha1.ClusterMonitoringList, *configv1alpha1.ClusterMonitoringApplyConfiguration](
+ fake.Fake,
+ "",
+ v1alpha1.SchemeGroupVersion.WithResource("clustermonitorings"),
+ v1alpha1.SchemeGroupVersion.WithKind("ClusterMonitoring"),
+ func() *v1alpha1.ClusterMonitoring { return &v1alpha1.ClusterMonitoring{} },
+ func() *v1alpha1.ClusterMonitoringList { return &v1alpha1.ClusterMonitoringList{} },
+ func(dst, src *v1alpha1.ClusterMonitoringList) { dst.ListMeta = src.ListMeta },
+ func(list *v1alpha1.ClusterMonitoringList) []*v1alpha1.ClusterMonitoring {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1alpha1.ClusterMonitoringList, items []*v1alpha1.ClusterMonitoring) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
+ }
+}
diff --git a/config/clientset/versioned/typed/config/v1alpha1/fake/fake_config_client.go b/config/clientset/versioned/typed/config/v1alpha1/fake/fake_config_client.go
index c720aa837..dd57e4a2c 100644
--- a/config/clientset/versioned/typed/config/v1alpha1/fake/fake_config_client.go
+++ b/config/clientset/versioned/typed/config/v1alpha1/fake/fake_config_client.go
@@ -13,19 +13,23 @@ type FakeConfigV1alpha1 struct {
}
func (c *FakeConfigV1alpha1) Backups() v1alpha1.BackupInterface {
- return &FakeBackups{c}
+ return newFakeBackups(c)
}
func (c *FakeConfigV1alpha1) ClusterImagePolicies() v1alpha1.ClusterImagePolicyInterface {
- return &FakeClusterImagePolicies{c}
+ return newFakeClusterImagePolicies(c)
+}
+
+func (c *FakeConfigV1alpha1) ClusterMonitorings() v1alpha1.ClusterMonitoringInterface {
+ return newFakeClusterMonitorings(c)
}
func (c *FakeConfigV1alpha1) ImagePolicies(namespace string) v1alpha1.ImagePolicyInterface {
- return &FakeImagePolicies{c, namespace}
+ return newFakeImagePolicies(c, namespace)
}
func (c *FakeConfigV1alpha1) InsightsDataGathers() v1alpha1.InsightsDataGatherInterface {
- return &FakeInsightsDataGathers{c}
+ return newFakeInsightsDataGathers(c)
}
// RESTClient returns a RESTClient that is used to communicate
diff --git a/config/clientset/versioned/typed/config/v1alpha1/fake/fake_imagepolicy.go b/config/clientset/versioned/typed/config/v1alpha1/fake/fake_imagepolicy.go
index c7bf7d9e1..9bf6cb9c0 100644
--- a/config/clientset/versioned/typed/config/v1alpha1/fake/fake_imagepolicy.go
+++ b/config/clientset/versioned/typed/config/v1alpha1/fake/fake_imagepolicy.go
@@ -3,179 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1alpha1 "github.com/openshift/api/config/v1alpha1"
configv1alpha1 "github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedconfigv1alpha1 "github.com/openshift/client-go/config/clientset/versioned/typed/config/v1alpha1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeImagePolicies implements ImagePolicyInterface
-type FakeImagePolicies struct {
+// fakeImagePolicies implements ImagePolicyInterface
+type fakeImagePolicies struct {
+ *gentype.FakeClientWithListAndApply[*v1alpha1.ImagePolicy, *v1alpha1.ImagePolicyList, *configv1alpha1.ImagePolicyApplyConfiguration]
Fake *FakeConfigV1alpha1
- ns string
-}
-
-var imagepoliciesResource = v1alpha1.SchemeGroupVersion.WithResource("imagepolicies")
-
-var imagepoliciesKind = v1alpha1.SchemeGroupVersion.WithKind("ImagePolicy")
-
-// Get takes name of the imagePolicy, and returns the corresponding imagePolicy object, and an error if there is any.
-func (c *FakeImagePolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ImagePolicy, err error) {
- emptyResult := &v1alpha1.ImagePolicy{}
- obj, err := c.Fake.
- Invokes(testing.NewGetActionWithOptions(imagepoliciesResource, c.ns, name, options), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.ImagePolicy), err
-}
-
-// List takes label and field selectors, and returns the list of ImagePolicies that match those selectors.
-func (c *FakeImagePolicies) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ImagePolicyList, err error) {
- emptyResult := &v1alpha1.ImagePolicyList{}
- obj, err := c.Fake.
- Invokes(testing.NewListActionWithOptions(imagepoliciesResource, imagepoliciesKind, c.ns, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1alpha1.ImagePolicyList{ListMeta: obj.(*v1alpha1.ImagePolicyList).ListMeta}
- for _, item := range obj.(*v1alpha1.ImagePolicyList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested imagePolicies.
-func (c *FakeImagePolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewWatchActionWithOptions(imagepoliciesResource, c.ns, opts))
-
-}
-
-// Create takes the representation of a imagePolicy and creates it. Returns the server's representation of the imagePolicy, and an error, if there is any.
-func (c *FakeImagePolicies) Create(ctx context.Context, imagePolicy *v1alpha1.ImagePolicy, opts v1.CreateOptions) (result *v1alpha1.ImagePolicy, err error) {
- emptyResult := &v1alpha1.ImagePolicy{}
- obj, err := c.Fake.
- Invokes(testing.NewCreateActionWithOptions(imagepoliciesResource, c.ns, imagePolicy, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.ImagePolicy), err
-}
-
-// Update takes the representation of a imagePolicy and updates it. Returns the server's representation of the imagePolicy, and an error, if there is any.
-func (c *FakeImagePolicies) Update(ctx context.Context, imagePolicy *v1alpha1.ImagePolicy, opts v1.UpdateOptions) (result *v1alpha1.ImagePolicy, err error) {
- emptyResult := &v1alpha1.ImagePolicy{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateActionWithOptions(imagepoliciesResource, c.ns, imagePolicy, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.ImagePolicy), err
}
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeImagePolicies) UpdateStatus(ctx context.Context, imagePolicy *v1alpha1.ImagePolicy, opts v1.UpdateOptions) (result *v1alpha1.ImagePolicy, err error) {
- emptyResult := &v1alpha1.ImagePolicy{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateSubresourceActionWithOptions(imagepoliciesResource, "status", c.ns, imagePolicy, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.ImagePolicy), err
-}
-
-// Delete takes name of the imagePolicy and deletes it. Returns an error if one occurs.
-func (c *FakeImagePolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewDeleteActionWithOptions(imagepoliciesResource, c.ns, name, opts), &v1alpha1.ImagePolicy{})
-
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeImagePolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewDeleteCollectionActionWithOptions(imagepoliciesResource, c.ns, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1alpha1.ImagePolicyList{})
- return err
-}
-
-// Patch applies the patch and returns the patched imagePolicy.
-func (c *FakeImagePolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ImagePolicy, err error) {
- emptyResult := &v1alpha1.ImagePolicy{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(imagepoliciesResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.ImagePolicy), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied imagePolicy.
-func (c *FakeImagePolicies) Apply(ctx context.Context, imagePolicy *configv1alpha1.ImagePolicyApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.ImagePolicy, err error) {
- if imagePolicy == nil {
- return nil, fmt.Errorf("imagePolicy provided to Apply must not be nil")
- }
- data, err := json.Marshal(imagePolicy)
- if err != nil {
- return nil, err
- }
- name := imagePolicy.Name
- if name == nil {
- return nil, fmt.Errorf("imagePolicy.Name must be provided to Apply")
- }
- emptyResult := &v1alpha1.ImagePolicy{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(imagepoliciesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.ImagePolicy), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeImagePolicies) ApplyStatus(ctx context.Context, imagePolicy *configv1alpha1.ImagePolicyApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.ImagePolicy, err error) {
- if imagePolicy == nil {
- return nil, fmt.Errorf("imagePolicy provided to Apply must not be nil")
- }
- data, err := json.Marshal(imagePolicy)
- if err != nil {
- return nil, err
- }
- name := imagePolicy.Name
- if name == nil {
- return nil, fmt.Errorf("imagePolicy.Name must be provided to Apply")
- }
- emptyResult := &v1alpha1.ImagePolicy{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(imagepoliciesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
-
- if obj == nil {
- return emptyResult, err
+func newFakeImagePolicies(fake *FakeConfigV1alpha1, namespace string) typedconfigv1alpha1.ImagePolicyInterface {
+ return &fakeImagePolicies{
+ gentype.NewFakeClientWithListAndApply[*v1alpha1.ImagePolicy, *v1alpha1.ImagePolicyList, *configv1alpha1.ImagePolicyApplyConfiguration](
+ fake.Fake,
+ namespace,
+ v1alpha1.SchemeGroupVersion.WithResource("imagepolicies"),
+ v1alpha1.SchemeGroupVersion.WithKind("ImagePolicy"),
+ func() *v1alpha1.ImagePolicy { return &v1alpha1.ImagePolicy{} },
+ func() *v1alpha1.ImagePolicyList { return &v1alpha1.ImagePolicyList{} },
+ func(dst, src *v1alpha1.ImagePolicyList) { dst.ListMeta = src.ListMeta },
+ func(list *v1alpha1.ImagePolicyList) []*v1alpha1.ImagePolicy {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1alpha1.ImagePolicyList, items []*v1alpha1.ImagePolicy) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1alpha1.ImagePolicy), err
}
diff --git a/config/clientset/versioned/typed/config/v1alpha1/fake/fake_insightsdatagather.go b/config/clientset/versioned/typed/config/v1alpha1/fake/fake_insightsdatagather.go
index d3405fbce..fc68d168e 100644
--- a/config/clientset/versioned/typed/config/v1alpha1/fake/fake_insightsdatagather.go
+++ b/config/clientset/versioned/typed/config/v1alpha1/fake/fake_insightsdatagather.go
@@ -3,168 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1alpha1 "github.com/openshift/api/config/v1alpha1"
configv1alpha1 "github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedconfigv1alpha1 "github.com/openshift/client-go/config/clientset/versioned/typed/config/v1alpha1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeInsightsDataGathers implements InsightsDataGatherInterface
-type FakeInsightsDataGathers struct {
+// fakeInsightsDataGathers implements InsightsDataGatherInterface
+type fakeInsightsDataGathers struct {
+ *gentype.FakeClientWithListAndApply[*v1alpha1.InsightsDataGather, *v1alpha1.InsightsDataGatherList, *configv1alpha1.InsightsDataGatherApplyConfiguration]
Fake *FakeConfigV1alpha1
}
-var insightsdatagathersResource = v1alpha1.SchemeGroupVersion.WithResource("insightsdatagathers")
-
-var insightsdatagathersKind = v1alpha1.SchemeGroupVersion.WithKind("InsightsDataGather")
-
-// Get takes name of the insightsDataGather, and returns the corresponding insightsDataGather object, and an error if there is any.
-func (c *FakeInsightsDataGathers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.InsightsDataGather, err error) {
- emptyResult := &v1alpha1.InsightsDataGather{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(insightsdatagathersResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.InsightsDataGather), err
-}
-
-// List takes label and field selectors, and returns the list of InsightsDataGathers that match those selectors.
-func (c *FakeInsightsDataGathers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.InsightsDataGatherList, err error) {
- emptyResult := &v1alpha1.InsightsDataGatherList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(insightsdatagathersResource, insightsdatagathersKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1alpha1.InsightsDataGatherList{ListMeta: obj.(*v1alpha1.InsightsDataGatherList).ListMeta}
- for _, item := range obj.(*v1alpha1.InsightsDataGatherList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested insightsDataGathers.
-func (c *FakeInsightsDataGathers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(insightsdatagathersResource, opts))
-}
-
-// Create takes the representation of a insightsDataGather and creates it. Returns the server's representation of the insightsDataGather, and an error, if there is any.
-func (c *FakeInsightsDataGathers) Create(ctx context.Context, insightsDataGather *v1alpha1.InsightsDataGather, opts v1.CreateOptions) (result *v1alpha1.InsightsDataGather, err error) {
- emptyResult := &v1alpha1.InsightsDataGather{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(insightsdatagathersResource, insightsDataGather, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.InsightsDataGather), err
-}
-
-// Update takes the representation of a insightsDataGather and updates it. Returns the server's representation of the insightsDataGather, and an error, if there is any.
-func (c *FakeInsightsDataGathers) Update(ctx context.Context, insightsDataGather *v1alpha1.InsightsDataGather, opts v1.UpdateOptions) (result *v1alpha1.InsightsDataGather, err error) {
- emptyResult := &v1alpha1.InsightsDataGather{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(insightsdatagathersResource, insightsDataGather, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.InsightsDataGather), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeInsightsDataGathers) UpdateStatus(ctx context.Context, insightsDataGather *v1alpha1.InsightsDataGather, opts v1.UpdateOptions) (result *v1alpha1.InsightsDataGather, err error) {
- emptyResult := &v1alpha1.InsightsDataGather{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(insightsdatagathersResource, "status", insightsDataGather, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.InsightsDataGather), err
-}
-
-// Delete takes name of the insightsDataGather and deletes it. Returns an error if one occurs.
-func (c *FakeInsightsDataGathers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(insightsdatagathersResource, name, opts), &v1alpha1.InsightsDataGather{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeInsightsDataGathers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(insightsdatagathersResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1alpha1.InsightsDataGatherList{})
- return err
-}
-
-// Patch applies the patch and returns the patched insightsDataGather.
-func (c *FakeInsightsDataGathers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.InsightsDataGather, err error) {
- emptyResult := &v1alpha1.InsightsDataGather{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(insightsdatagathersResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.InsightsDataGather), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied insightsDataGather.
-func (c *FakeInsightsDataGathers) Apply(ctx context.Context, insightsDataGather *configv1alpha1.InsightsDataGatherApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.InsightsDataGather, err error) {
- if insightsDataGather == nil {
- return nil, fmt.Errorf("insightsDataGather provided to Apply must not be nil")
- }
- data, err := json.Marshal(insightsDataGather)
- if err != nil {
- return nil, err
- }
- name := insightsDataGather.Name
- if name == nil {
- return nil, fmt.Errorf("insightsDataGather.Name must be provided to Apply")
- }
- emptyResult := &v1alpha1.InsightsDataGather{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(insightsdatagathersResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.InsightsDataGather), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeInsightsDataGathers) ApplyStatus(ctx context.Context, insightsDataGather *configv1alpha1.InsightsDataGatherApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.InsightsDataGather, err error) {
- if insightsDataGather == nil {
- return nil, fmt.Errorf("insightsDataGather provided to Apply must not be nil")
- }
- data, err := json.Marshal(insightsDataGather)
- if err != nil {
- return nil, err
- }
- name := insightsDataGather.Name
- if name == nil {
- return nil, fmt.Errorf("insightsDataGather.Name must be provided to Apply")
- }
- emptyResult := &v1alpha1.InsightsDataGather{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(insightsdatagathersResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeInsightsDataGathers(fake *FakeConfigV1alpha1) typedconfigv1alpha1.InsightsDataGatherInterface {
+ return &fakeInsightsDataGathers{
+ gentype.NewFakeClientWithListAndApply[*v1alpha1.InsightsDataGather, *v1alpha1.InsightsDataGatherList, *configv1alpha1.InsightsDataGatherApplyConfiguration](
+ fake.Fake,
+ "",
+ v1alpha1.SchemeGroupVersion.WithResource("insightsdatagathers"),
+ v1alpha1.SchemeGroupVersion.WithKind("InsightsDataGather"),
+ func() *v1alpha1.InsightsDataGather { return &v1alpha1.InsightsDataGather{} },
+ func() *v1alpha1.InsightsDataGatherList { return &v1alpha1.InsightsDataGatherList{} },
+ func(dst, src *v1alpha1.InsightsDataGatherList) { dst.ListMeta = src.ListMeta },
+ func(list *v1alpha1.InsightsDataGatherList) []*v1alpha1.InsightsDataGather {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1alpha1.InsightsDataGatherList, items []*v1alpha1.InsightsDataGather) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1alpha1.InsightsDataGather), err
}
diff --git a/config/clientset/versioned/typed/config/v1alpha1/generated_expansion.go b/config/clientset/versioned/typed/config/v1alpha1/generated_expansion.go
index 3a69741b1..ab5198cce 100644
--- a/config/clientset/versioned/typed/config/v1alpha1/generated_expansion.go
+++ b/config/clientset/versioned/typed/config/v1alpha1/generated_expansion.go
@@ -6,6 +6,8 @@ type BackupExpansion interface{}
type ClusterImagePolicyExpansion interface{}
+type ClusterMonitoringExpansion interface{}
+
type ImagePolicyExpansion interface{}
type InsightsDataGatherExpansion interface{}
diff --git a/config/clientset/versioned/typed/config/v1alpha1/imagepolicy.go b/config/clientset/versioned/typed/config/v1alpha1/imagepolicy.go
index 02caded7a..a893efeea 100644
--- a/config/clientset/versioned/typed/config/v1alpha1/imagepolicy.go
+++ b/config/clientset/versioned/typed/config/v1alpha1/imagepolicy.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- "context"
+ context "context"
- v1alpha1 "github.com/openshift/api/config/v1alpha1"
- configv1alpha1 "github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1"
+ configv1alpha1 "github.com/openshift/api/config/v1alpha1"
+ applyconfigurationsconfigv1alpha1 "github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1"
scheme "github.com/openshift/client-go/config/clientset/versioned/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type ImagePoliciesGetter interface {
// ImagePolicyInterface has methods to work with ImagePolicy resources.
type ImagePolicyInterface interface {
- Create(ctx context.Context, imagePolicy *v1alpha1.ImagePolicy, opts v1.CreateOptions) (*v1alpha1.ImagePolicy, error)
- Update(ctx context.Context, imagePolicy *v1alpha1.ImagePolicy, opts v1.UpdateOptions) (*v1alpha1.ImagePolicy, error)
+ Create(ctx context.Context, imagePolicy *configv1alpha1.ImagePolicy, opts v1.CreateOptions) (*configv1alpha1.ImagePolicy, error)
+ Update(ctx context.Context, imagePolicy *configv1alpha1.ImagePolicy, opts v1.UpdateOptions) (*configv1alpha1.ImagePolicy, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, imagePolicy *v1alpha1.ImagePolicy, opts v1.UpdateOptions) (*v1alpha1.ImagePolicy, error)
+ UpdateStatus(ctx context.Context, imagePolicy *configv1alpha1.ImagePolicy, opts v1.UpdateOptions) (*configv1alpha1.ImagePolicy, error)
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.ImagePolicy, error)
- List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.ImagePolicyList, error)
+ Get(ctx context.Context, name string, opts v1.GetOptions) (*configv1alpha1.ImagePolicy, error)
+ List(ctx context.Context, opts v1.ListOptions) (*configv1alpha1.ImagePolicyList, error)
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ImagePolicy, err error)
- Apply(ctx context.Context, imagePolicy *configv1alpha1.ImagePolicyApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.ImagePolicy, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *configv1alpha1.ImagePolicy, err error)
+ Apply(ctx context.Context, imagePolicy *applyconfigurationsconfigv1alpha1.ImagePolicyApplyConfiguration, opts v1.ApplyOptions) (result *configv1alpha1.ImagePolicy, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, imagePolicy *configv1alpha1.ImagePolicyApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.ImagePolicy, err error)
+ ApplyStatus(ctx context.Context, imagePolicy *applyconfigurationsconfigv1alpha1.ImagePolicyApplyConfiguration, opts v1.ApplyOptions) (result *configv1alpha1.ImagePolicy, err error)
ImagePolicyExpansion
}
// imagePolicies implements ImagePolicyInterface
type imagePolicies struct {
- *gentype.ClientWithListAndApply[*v1alpha1.ImagePolicy, *v1alpha1.ImagePolicyList, *configv1alpha1.ImagePolicyApplyConfiguration]
+ *gentype.ClientWithListAndApply[*configv1alpha1.ImagePolicy, *configv1alpha1.ImagePolicyList, *applyconfigurationsconfigv1alpha1.ImagePolicyApplyConfiguration]
}
// newImagePolicies returns a ImagePolicies
func newImagePolicies(c *ConfigV1alpha1Client, namespace string) *imagePolicies {
return &imagePolicies{
- gentype.NewClientWithListAndApply[*v1alpha1.ImagePolicy, *v1alpha1.ImagePolicyList, *configv1alpha1.ImagePolicyApplyConfiguration](
+ gentype.NewClientWithListAndApply[*configv1alpha1.ImagePolicy, *configv1alpha1.ImagePolicyList, *applyconfigurationsconfigv1alpha1.ImagePolicyApplyConfiguration](
"imagepolicies",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
- func() *v1alpha1.ImagePolicy { return &v1alpha1.ImagePolicy{} },
- func() *v1alpha1.ImagePolicyList { return &v1alpha1.ImagePolicyList{} }),
+ func() *configv1alpha1.ImagePolicy { return &configv1alpha1.ImagePolicy{} },
+ func() *configv1alpha1.ImagePolicyList { return &configv1alpha1.ImagePolicyList{} },
+ ),
}
}
diff --git a/config/clientset/versioned/typed/config/v1alpha1/insightsdatagather.go b/config/clientset/versioned/typed/config/v1alpha1/insightsdatagather.go
index 8f147bae1..cff76db8d 100644
--- a/config/clientset/versioned/typed/config/v1alpha1/insightsdatagather.go
+++ b/config/clientset/versioned/typed/config/v1alpha1/insightsdatagather.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- "context"
+ context "context"
- v1alpha1 "github.com/openshift/api/config/v1alpha1"
- configv1alpha1 "github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1"
+ configv1alpha1 "github.com/openshift/api/config/v1alpha1"
+ applyconfigurationsconfigv1alpha1 "github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1"
scheme "github.com/openshift/client-go/config/clientset/versioned/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type InsightsDataGathersGetter interface {
// InsightsDataGatherInterface has methods to work with InsightsDataGather resources.
type InsightsDataGatherInterface interface {
- Create(ctx context.Context, insightsDataGather *v1alpha1.InsightsDataGather, opts v1.CreateOptions) (*v1alpha1.InsightsDataGather, error)
- Update(ctx context.Context, insightsDataGather *v1alpha1.InsightsDataGather, opts v1.UpdateOptions) (*v1alpha1.InsightsDataGather, error)
+ Create(ctx context.Context, insightsDataGather *configv1alpha1.InsightsDataGather, opts v1.CreateOptions) (*configv1alpha1.InsightsDataGather, error)
+ Update(ctx context.Context, insightsDataGather *configv1alpha1.InsightsDataGather, opts v1.UpdateOptions) (*configv1alpha1.InsightsDataGather, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, insightsDataGather *v1alpha1.InsightsDataGather, opts v1.UpdateOptions) (*v1alpha1.InsightsDataGather, error)
+ UpdateStatus(ctx context.Context, insightsDataGather *configv1alpha1.InsightsDataGather, opts v1.UpdateOptions) (*configv1alpha1.InsightsDataGather, error)
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.InsightsDataGather, error)
- List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.InsightsDataGatherList, error)
+ Get(ctx context.Context, name string, opts v1.GetOptions) (*configv1alpha1.InsightsDataGather, error)
+ List(ctx context.Context, opts v1.ListOptions) (*configv1alpha1.InsightsDataGatherList, error)
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.InsightsDataGather, err error)
- Apply(ctx context.Context, insightsDataGather *configv1alpha1.InsightsDataGatherApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.InsightsDataGather, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *configv1alpha1.InsightsDataGather, err error)
+ Apply(ctx context.Context, insightsDataGather *applyconfigurationsconfigv1alpha1.InsightsDataGatherApplyConfiguration, opts v1.ApplyOptions) (result *configv1alpha1.InsightsDataGather, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, insightsDataGather *configv1alpha1.InsightsDataGatherApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.InsightsDataGather, err error)
+ ApplyStatus(ctx context.Context, insightsDataGather *applyconfigurationsconfigv1alpha1.InsightsDataGatherApplyConfiguration, opts v1.ApplyOptions) (result *configv1alpha1.InsightsDataGather, err error)
InsightsDataGatherExpansion
}
// insightsDataGathers implements InsightsDataGatherInterface
type insightsDataGathers struct {
- *gentype.ClientWithListAndApply[*v1alpha1.InsightsDataGather, *v1alpha1.InsightsDataGatherList, *configv1alpha1.InsightsDataGatherApplyConfiguration]
+ *gentype.ClientWithListAndApply[*configv1alpha1.InsightsDataGather, *configv1alpha1.InsightsDataGatherList, *applyconfigurationsconfigv1alpha1.InsightsDataGatherApplyConfiguration]
}
// newInsightsDataGathers returns a InsightsDataGathers
func newInsightsDataGathers(c *ConfigV1alpha1Client) *insightsDataGathers {
return &insightsDataGathers{
- gentype.NewClientWithListAndApply[*v1alpha1.InsightsDataGather, *v1alpha1.InsightsDataGatherList, *configv1alpha1.InsightsDataGatherApplyConfiguration](
+ gentype.NewClientWithListAndApply[*configv1alpha1.InsightsDataGather, *configv1alpha1.InsightsDataGatherList, *applyconfigurationsconfigv1alpha1.InsightsDataGatherApplyConfiguration](
"insightsdatagathers",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1alpha1.InsightsDataGather { return &v1alpha1.InsightsDataGather{} },
- func() *v1alpha1.InsightsDataGatherList { return &v1alpha1.InsightsDataGatherList{} }),
+ func() *configv1alpha1.InsightsDataGather { return &configv1alpha1.InsightsDataGather{} },
+ func() *configv1alpha1.InsightsDataGatherList { return &configv1alpha1.InsightsDataGatherList{} },
+ ),
}
}
diff --git a/config/informers/externalversions/config/v1/apiserver.go b/config/informers/externalversions/config/v1/apiserver.go
index 2fcff2312..262aa7b0a 100644
--- a/config/informers/externalversions/config/v1/apiserver.go
+++ b/config/informers/externalversions/config/v1/apiserver.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- configv1 "github.com/openshift/api/config/v1"
+ apiconfigv1 "github.com/openshift/api/config/v1"
versioned "github.com/openshift/client-go/config/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/config/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/config/listers/config/v1"
+ configv1 "github.com/openshift/client-go/config/listers/config/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// APIServers.
type APIServerInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.APIServerLister
+ Lister() configv1.APIServerLister
}
type aPIServerInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredAPIServerInformer(client versioned.Interface, resyncPeriod time.
return client.ConfigV1().APIServers().Watch(context.TODO(), options)
},
},
- &configv1.APIServer{},
+ &apiconfigv1.APIServer{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *aPIServerInformer) defaultInformer(client versioned.Interface, resyncPe
}
func (f *aPIServerInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&configv1.APIServer{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiconfigv1.APIServer{}, f.defaultInformer)
}
-func (f *aPIServerInformer) Lister() v1.APIServerLister {
- return v1.NewAPIServerLister(f.Informer().GetIndexer())
+func (f *aPIServerInformer) Lister() configv1.APIServerLister {
+ return configv1.NewAPIServerLister(f.Informer().GetIndexer())
}
diff --git a/config/informers/externalversions/config/v1/authentication.go b/config/informers/externalversions/config/v1/authentication.go
index c2792cf8f..efe2c253e 100644
--- a/config/informers/externalversions/config/v1/authentication.go
+++ b/config/informers/externalversions/config/v1/authentication.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- configv1 "github.com/openshift/api/config/v1"
+ apiconfigv1 "github.com/openshift/api/config/v1"
versioned "github.com/openshift/client-go/config/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/config/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/config/listers/config/v1"
+ configv1 "github.com/openshift/client-go/config/listers/config/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// Authentications.
type AuthenticationInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.AuthenticationLister
+ Lister() configv1.AuthenticationLister
}
type authenticationInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredAuthenticationInformer(client versioned.Interface, resyncPeriod
return client.ConfigV1().Authentications().Watch(context.TODO(), options)
},
},
- &configv1.Authentication{},
+ &apiconfigv1.Authentication{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *authenticationInformer) defaultInformer(client versioned.Interface, res
}
func (f *authenticationInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&configv1.Authentication{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiconfigv1.Authentication{}, f.defaultInformer)
}
-func (f *authenticationInformer) Lister() v1.AuthenticationLister {
- return v1.NewAuthenticationLister(f.Informer().GetIndexer())
+func (f *authenticationInformer) Lister() configv1.AuthenticationLister {
+ return configv1.NewAuthenticationLister(f.Informer().GetIndexer())
}
diff --git a/config/informers/externalversions/config/v1/build.go b/config/informers/externalversions/config/v1/build.go
index c944db065..451ba252d 100644
--- a/config/informers/externalversions/config/v1/build.go
+++ b/config/informers/externalversions/config/v1/build.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- configv1 "github.com/openshift/api/config/v1"
+ apiconfigv1 "github.com/openshift/api/config/v1"
versioned "github.com/openshift/client-go/config/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/config/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/config/listers/config/v1"
+ configv1 "github.com/openshift/client-go/config/listers/config/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// Builds.
type BuildInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.BuildLister
+ Lister() configv1.BuildLister
}
type buildInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredBuildInformer(client versioned.Interface, resyncPeriod time.Dura
return client.ConfigV1().Builds().Watch(context.TODO(), options)
},
},
- &configv1.Build{},
+ &apiconfigv1.Build{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *buildInformer) defaultInformer(client versioned.Interface, resyncPeriod
}
func (f *buildInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&configv1.Build{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiconfigv1.Build{}, f.defaultInformer)
}
-func (f *buildInformer) Lister() v1.BuildLister {
- return v1.NewBuildLister(f.Informer().GetIndexer())
+func (f *buildInformer) Lister() configv1.BuildLister {
+ return configv1.NewBuildLister(f.Informer().GetIndexer())
}
diff --git a/config/informers/externalversions/config/v1/clusteroperator.go b/config/informers/externalversions/config/v1/clusteroperator.go
index 4c81309fb..1eda53c8b 100644
--- a/config/informers/externalversions/config/v1/clusteroperator.go
+++ b/config/informers/externalversions/config/v1/clusteroperator.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- configv1 "github.com/openshift/api/config/v1"
+ apiconfigv1 "github.com/openshift/api/config/v1"
versioned "github.com/openshift/client-go/config/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/config/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/config/listers/config/v1"
+ configv1 "github.com/openshift/client-go/config/listers/config/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// ClusterOperators.
type ClusterOperatorInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.ClusterOperatorLister
+ Lister() configv1.ClusterOperatorLister
}
type clusterOperatorInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredClusterOperatorInformer(client versioned.Interface, resyncPeriod
return client.ConfigV1().ClusterOperators().Watch(context.TODO(), options)
},
},
- &configv1.ClusterOperator{},
+ &apiconfigv1.ClusterOperator{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *clusterOperatorInformer) defaultInformer(client versioned.Interface, re
}
func (f *clusterOperatorInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&configv1.ClusterOperator{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiconfigv1.ClusterOperator{}, f.defaultInformer)
}
-func (f *clusterOperatorInformer) Lister() v1.ClusterOperatorLister {
- return v1.NewClusterOperatorLister(f.Informer().GetIndexer())
+func (f *clusterOperatorInformer) Lister() configv1.ClusterOperatorLister {
+ return configv1.NewClusterOperatorLister(f.Informer().GetIndexer())
}
diff --git a/config/informers/externalversions/config/v1/clusterversion.go b/config/informers/externalversions/config/v1/clusterversion.go
index 8015d6eed..c3915175e 100644
--- a/config/informers/externalversions/config/v1/clusterversion.go
+++ b/config/informers/externalversions/config/v1/clusterversion.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- configv1 "github.com/openshift/api/config/v1"
+ apiconfigv1 "github.com/openshift/api/config/v1"
versioned "github.com/openshift/client-go/config/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/config/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/config/listers/config/v1"
+ configv1 "github.com/openshift/client-go/config/listers/config/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// ClusterVersions.
type ClusterVersionInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.ClusterVersionLister
+ Lister() configv1.ClusterVersionLister
}
type clusterVersionInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredClusterVersionInformer(client versioned.Interface, resyncPeriod
return client.ConfigV1().ClusterVersions().Watch(context.TODO(), options)
},
},
- &configv1.ClusterVersion{},
+ &apiconfigv1.ClusterVersion{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *clusterVersionInformer) defaultInformer(client versioned.Interface, res
}
func (f *clusterVersionInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&configv1.ClusterVersion{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiconfigv1.ClusterVersion{}, f.defaultInformer)
}
-func (f *clusterVersionInformer) Lister() v1.ClusterVersionLister {
- return v1.NewClusterVersionLister(f.Informer().GetIndexer())
+func (f *clusterVersionInformer) Lister() configv1.ClusterVersionLister {
+ return configv1.NewClusterVersionLister(f.Informer().GetIndexer())
}
diff --git a/config/informers/externalversions/config/v1/console.go b/config/informers/externalversions/config/v1/console.go
index 7d23130a4..05a36ec0a 100644
--- a/config/informers/externalversions/config/v1/console.go
+++ b/config/informers/externalversions/config/v1/console.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- configv1 "github.com/openshift/api/config/v1"
+ apiconfigv1 "github.com/openshift/api/config/v1"
versioned "github.com/openshift/client-go/config/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/config/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/config/listers/config/v1"
+ configv1 "github.com/openshift/client-go/config/listers/config/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// Consoles.
type ConsoleInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.ConsoleLister
+ Lister() configv1.ConsoleLister
}
type consoleInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredConsoleInformer(client versioned.Interface, resyncPeriod time.Du
return client.ConfigV1().Consoles().Watch(context.TODO(), options)
},
},
- &configv1.Console{},
+ &apiconfigv1.Console{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *consoleInformer) defaultInformer(client versioned.Interface, resyncPeri
}
func (f *consoleInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&configv1.Console{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiconfigv1.Console{}, f.defaultInformer)
}
-func (f *consoleInformer) Lister() v1.ConsoleLister {
- return v1.NewConsoleLister(f.Informer().GetIndexer())
+func (f *consoleInformer) Lister() configv1.ConsoleLister {
+ return configv1.NewConsoleLister(f.Informer().GetIndexer())
}
diff --git a/config/informers/externalversions/config/v1/dns.go b/config/informers/externalversions/config/v1/dns.go
index ddadf98cb..af44dfce9 100644
--- a/config/informers/externalversions/config/v1/dns.go
+++ b/config/informers/externalversions/config/v1/dns.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- configv1 "github.com/openshift/api/config/v1"
+ apiconfigv1 "github.com/openshift/api/config/v1"
versioned "github.com/openshift/client-go/config/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/config/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/config/listers/config/v1"
+ configv1 "github.com/openshift/client-go/config/listers/config/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// DNSes.
type DNSInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.DNSLister
+ Lister() configv1.DNSLister
}
type dNSInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredDNSInformer(client versioned.Interface, resyncPeriod time.Durati
return client.ConfigV1().DNSes().Watch(context.TODO(), options)
},
},
- &configv1.DNS{},
+ &apiconfigv1.DNS{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *dNSInformer) defaultInformer(client versioned.Interface, resyncPeriod t
}
func (f *dNSInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&configv1.DNS{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiconfigv1.DNS{}, f.defaultInformer)
}
-func (f *dNSInformer) Lister() v1.DNSLister {
- return v1.NewDNSLister(f.Informer().GetIndexer())
+func (f *dNSInformer) Lister() configv1.DNSLister {
+ return configv1.NewDNSLister(f.Informer().GetIndexer())
}
diff --git a/config/informers/externalversions/config/v1/featuregate.go b/config/informers/externalversions/config/v1/featuregate.go
index 84cec90af..dc1e20507 100644
--- a/config/informers/externalversions/config/v1/featuregate.go
+++ b/config/informers/externalversions/config/v1/featuregate.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- configv1 "github.com/openshift/api/config/v1"
+ apiconfigv1 "github.com/openshift/api/config/v1"
versioned "github.com/openshift/client-go/config/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/config/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/config/listers/config/v1"
+ configv1 "github.com/openshift/client-go/config/listers/config/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// FeatureGates.
type FeatureGateInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.FeatureGateLister
+ Lister() configv1.FeatureGateLister
}
type featureGateInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredFeatureGateInformer(client versioned.Interface, resyncPeriod tim
return client.ConfigV1().FeatureGates().Watch(context.TODO(), options)
},
},
- &configv1.FeatureGate{},
+ &apiconfigv1.FeatureGate{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *featureGateInformer) defaultInformer(client versioned.Interface, resync
}
func (f *featureGateInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&configv1.FeatureGate{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiconfigv1.FeatureGate{}, f.defaultInformer)
}
-func (f *featureGateInformer) Lister() v1.FeatureGateLister {
- return v1.NewFeatureGateLister(f.Informer().GetIndexer())
+func (f *featureGateInformer) Lister() configv1.FeatureGateLister {
+ return configv1.NewFeatureGateLister(f.Informer().GetIndexer())
}
diff --git a/config/informers/externalversions/config/v1/image.go b/config/informers/externalversions/config/v1/image.go
index e7a3ecc21..5f68a35ec 100644
--- a/config/informers/externalversions/config/v1/image.go
+++ b/config/informers/externalversions/config/v1/image.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- configv1 "github.com/openshift/api/config/v1"
+ apiconfigv1 "github.com/openshift/api/config/v1"
versioned "github.com/openshift/client-go/config/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/config/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/config/listers/config/v1"
+ configv1 "github.com/openshift/client-go/config/listers/config/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// Images.
type ImageInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.ImageLister
+ Lister() configv1.ImageLister
}
type imageInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredImageInformer(client versioned.Interface, resyncPeriod time.Dura
return client.ConfigV1().Images().Watch(context.TODO(), options)
},
},
- &configv1.Image{},
+ &apiconfigv1.Image{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *imageInformer) defaultInformer(client versioned.Interface, resyncPeriod
}
func (f *imageInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&configv1.Image{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiconfigv1.Image{}, f.defaultInformer)
}
-func (f *imageInformer) Lister() v1.ImageLister {
- return v1.NewImageLister(f.Informer().GetIndexer())
+func (f *imageInformer) Lister() configv1.ImageLister {
+ return configv1.NewImageLister(f.Informer().GetIndexer())
}
diff --git a/config/informers/externalversions/config/v1/imagecontentpolicy.go b/config/informers/externalversions/config/v1/imagecontentpolicy.go
index c50ea7b1b..e062099ea 100644
--- a/config/informers/externalversions/config/v1/imagecontentpolicy.go
+++ b/config/informers/externalversions/config/v1/imagecontentpolicy.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- configv1 "github.com/openshift/api/config/v1"
+ apiconfigv1 "github.com/openshift/api/config/v1"
versioned "github.com/openshift/client-go/config/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/config/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/config/listers/config/v1"
+ configv1 "github.com/openshift/client-go/config/listers/config/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// ImageContentPolicies.
type ImageContentPolicyInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.ImageContentPolicyLister
+ Lister() configv1.ImageContentPolicyLister
}
type imageContentPolicyInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredImageContentPolicyInformer(client versioned.Interface, resyncPer
return client.ConfigV1().ImageContentPolicies().Watch(context.TODO(), options)
},
},
- &configv1.ImageContentPolicy{},
+ &apiconfigv1.ImageContentPolicy{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *imageContentPolicyInformer) defaultInformer(client versioned.Interface,
}
func (f *imageContentPolicyInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&configv1.ImageContentPolicy{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiconfigv1.ImageContentPolicy{}, f.defaultInformer)
}
-func (f *imageContentPolicyInformer) Lister() v1.ImageContentPolicyLister {
- return v1.NewImageContentPolicyLister(f.Informer().GetIndexer())
+func (f *imageContentPolicyInformer) Lister() configv1.ImageContentPolicyLister {
+ return configv1.NewImageContentPolicyLister(f.Informer().GetIndexer())
}
diff --git a/config/informers/externalversions/config/v1/imagedigestmirrorset.go b/config/informers/externalversions/config/v1/imagedigestmirrorset.go
index 8953cfd89..0bdadff5b 100644
--- a/config/informers/externalversions/config/v1/imagedigestmirrorset.go
+++ b/config/informers/externalversions/config/v1/imagedigestmirrorset.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- configv1 "github.com/openshift/api/config/v1"
+ apiconfigv1 "github.com/openshift/api/config/v1"
versioned "github.com/openshift/client-go/config/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/config/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/config/listers/config/v1"
+ configv1 "github.com/openshift/client-go/config/listers/config/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// ImageDigestMirrorSets.
type ImageDigestMirrorSetInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.ImageDigestMirrorSetLister
+ Lister() configv1.ImageDigestMirrorSetLister
}
type imageDigestMirrorSetInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredImageDigestMirrorSetInformer(client versioned.Interface, resyncP
return client.ConfigV1().ImageDigestMirrorSets().Watch(context.TODO(), options)
},
},
- &configv1.ImageDigestMirrorSet{},
+ &apiconfigv1.ImageDigestMirrorSet{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *imageDigestMirrorSetInformer) defaultInformer(client versioned.Interfac
}
func (f *imageDigestMirrorSetInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&configv1.ImageDigestMirrorSet{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiconfigv1.ImageDigestMirrorSet{}, f.defaultInformer)
}
-func (f *imageDigestMirrorSetInformer) Lister() v1.ImageDigestMirrorSetLister {
- return v1.NewImageDigestMirrorSetLister(f.Informer().GetIndexer())
+func (f *imageDigestMirrorSetInformer) Lister() configv1.ImageDigestMirrorSetLister {
+ return configv1.NewImageDigestMirrorSetLister(f.Informer().GetIndexer())
}
diff --git a/config/informers/externalversions/config/v1/imagetagmirrorset.go b/config/informers/externalversions/config/v1/imagetagmirrorset.go
index a0951a190..92bf24f20 100644
--- a/config/informers/externalversions/config/v1/imagetagmirrorset.go
+++ b/config/informers/externalversions/config/v1/imagetagmirrorset.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- configv1 "github.com/openshift/api/config/v1"
+ apiconfigv1 "github.com/openshift/api/config/v1"
versioned "github.com/openshift/client-go/config/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/config/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/config/listers/config/v1"
+ configv1 "github.com/openshift/client-go/config/listers/config/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// ImageTagMirrorSets.
type ImageTagMirrorSetInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.ImageTagMirrorSetLister
+ Lister() configv1.ImageTagMirrorSetLister
}
type imageTagMirrorSetInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredImageTagMirrorSetInformer(client versioned.Interface, resyncPeri
return client.ConfigV1().ImageTagMirrorSets().Watch(context.TODO(), options)
},
},
- &configv1.ImageTagMirrorSet{},
+ &apiconfigv1.ImageTagMirrorSet{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *imageTagMirrorSetInformer) defaultInformer(client versioned.Interface,
}
func (f *imageTagMirrorSetInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&configv1.ImageTagMirrorSet{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiconfigv1.ImageTagMirrorSet{}, f.defaultInformer)
}
-func (f *imageTagMirrorSetInformer) Lister() v1.ImageTagMirrorSetLister {
- return v1.NewImageTagMirrorSetLister(f.Informer().GetIndexer())
+func (f *imageTagMirrorSetInformer) Lister() configv1.ImageTagMirrorSetLister {
+ return configv1.NewImageTagMirrorSetLister(f.Informer().GetIndexer())
}
diff --git a/config/informers/externalversions/config/v1/infrastructure.go b/config/informers/externalversions/config/v1/infrastructure.go
index 150ee6fe8..4891bd249 100644
--- a/config/informers/externalversions/config/v1/infrastructure.go
+++ b/config/informers/externalversions/config/v1/infrastructure.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- configv1 "github.com/openshift/api/config/v1"
+ apiconfigv1 "github.com/openshift/api/config/v1"
versioned "github.com/openshift/client-go/config/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/config/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/config/listers/config/v1"
+ configv1 "github.com/openshift/client-go/config/listers/config/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// Infrastructures.
type InfrastructureInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.InfrastructureLister
+ Lister() configv1.InfrastructureLister
}
type infrastructureInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredInfrastructureInformer(client versioned.Interface, resyncPeriod
return client.ConfigV1().Infrastructures().Watch(context.TODO(), options)
},
},
- &configv1.Infrastructure{},
+ &apiconfigv1.Infrastructure{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *infrastructureInformer) defaultInformer(client versioned.Interface, res
}
func (f *infrastructureInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&configv1.Infrastructure{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiconfigv1.Infrastructure{}, f.defaultInformer)
}
-func (f *infrastructureInformer) Lister() v1.InfrastructureLister {
- return v1.NewInfrastructureLister(f.Informer().GetIndexer())
+func (f *infrastructureInformer) Lister() configv1.InfrastructureLister {
+ return configv1.NewInfrastructureLister(f.Informer().GetIndexer())
}
diff --git a/config/informers/externalversions/config/v1/ingress.go b/config/informers/externalversions/config/v1/ingress.go
index 4452b1022..59ca11638 100644
--- a/config/informers/externalversions/config/v1/ingress.go
+++ b/config/informers/externalversions/config/v1/ingress.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- configv1 "github.com/openshift/api/config/v1"
+ apiconfigv1 "github.com/openshift/api/config/v1"
versioned "github.com/openshift/client-go/config/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/config/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/config/listers/config/v1"
+ configv1 "github.com/openshift/client-go/config/listers/config/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// Ingresses.
type IngressInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.IngressLister
+ Lister() configv1.IngressLister
}
type ingressInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredIngressInformer(client versioned.Interface, resyncPeriod time.Du
return client.ConfigV1().Ingresses().Watch(context.TODO(), options)
},
},
- &configv1.Ingress{},
+ &apiconfigv1.Ingress{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *ingressInformer) defaultInformer(client versioned.Interface, resyncPeri
}
func (f *ingressInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&configv1.Ingress{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiconfigv1.Ingress{}, f.defaultInformer)
}
-func (f *ingressInformer) Lister() v1.IngressLister {
- return v1.NewIngressLister(f.Informer().GetIndexer())
+func (f *ingressInformer) Lister() configv1.IngressLister {
+ return configv1.NewIngressLister(f.Informer().GetIndexer())
}
diff --git a/config/informers/externalversions/config/v1/interface.go b/config/informers/externalversions/config/v1/interface.go
index 1a027516a..f49b1d228 100644
--- a/config/informers/externalversions/config/v1/interface.go
+++ b/config/informers/externalversions/config/v1/interface.go
@@ -14,8 +14,6 @@ type Interface interface {
Authentications() AuthenticationInformer
// Builds returns a BuildInformer.
Builds() BuildInformer
- // ClusterMonitorings returns a ClusterMonitoringInformer.
- ClusterMonitorings() ClusterMonitoringInformer
// ClusterOperators returns a ClusterOperatorInformer.
ClusterOperators() ClusterOperatorInformer
// ClusterVersions returns a ClusterVersionInformer.
@@ -80,11 +78,6 @@ func (v *version) Builds() BuildInformer {
return &buildInformer{factory: v.factory, tweakListOptions: v.tweakListOptions}
}
-// ClusterMonitorings returns a ClusterMonitoringInformer.
-func (v *version) ClusterMonitorings() ClusterMonitoringInformer {
- return &clusterMonitoringInformer{factory: v.factory, tweakListOptions: v.tweakListOptions}
-}
-
// ClusterOperators returns a ClusterOperatorInformer.
func (v *version) ClusterOperators() ClusterOperatorInformer {
return &clusterOperatorInformer{factory: v.factory, tweakListOptions: v.tweakListOptions}
diff --git a/config/informers/externalversions/config/v1/network.go b/config/informers/externalversions/config/v1/network.go
index d05980759..48e4896de 100644
--- a/config/informers/externalversions/config/v1/network.go
+++ b/config/informers/externalversions/config/v1/network.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- configv1 "github.com/openshift/api/config/v1"
+ apiconfigv1 "github.com/openshift/api/config/v1"
versioned "github.com/openshift/client-go/config/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/config/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/config/listers/config/v1"
+ configv1 "github.com/openshift/client-go/config/listers/config/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// Networks.
type NetworkInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.NetworkLister
+ Lister() configv1.NetworkLister
}
type networkInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredNetworkInformer(client versioned.Interface, resyncPeriod time.Du
return client.ConfigV1().Networks().Watch(context.TODO(), options)
},
},
- &configv1.Network{},
+ &apiconfigv1.Network{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *networkInformer) defaultInformer(client versioned.Interface, resyncPeri
}
func (f *networkInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&configv1.Network{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiconfigv1.Network{}, f.defaultInformer)
}
-func (f *networkInformer) Lister() v1.NetworkLister {
- return v1.NewNetworkLister(f.Informer().GetIndexer())
+func (f *networkInformer) Lister() configv1.NetworkLister {
+ return configv1.NewNetworkLister(f.Informer().GetIndexer())
}
diff --git a/config/informers/externalversions/config/v1/node.go b/config/informers/externalversions/config/v1/node.go
index 6a9f806df..2cb791b00 100644
--- a/config/informers/externalversions/config/v1/node.go
+++ b/config/informers/externalversions/config/v1/node.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- configv1 "github.com/openshift/api/config/v1"
+ apiconfigv1 "github.com/openshift/api/config/v1"
versioned "github.com/openshift/client-go/config/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/config/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/config/listers/config/v1"
+ configv1 "github.com/openshift/client-go/config/listers/config/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// Nodes.
type NodeInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.NodeLister
+ Lister() configv1.NodeLister
}
type nodeInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredNodeInformer(client versioned.Interface, resyncPeriod time.Durat
return client.ConfigV1().Nodes().Watch(context.TODO(), options)
},
},
- &configv1.Node{},
+ &apiconfigv1.Node{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *nodeInformer) defaultInformer(client versioned.Interface, resyncPeriod
}
func (f *nodeInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&configv1.Node{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiconfigv1.Node{}, f.defaultInformer)
}
-func (f *nodeInformer) Lister() v1.NodeLister {
- return v1.NewNodeLister(f.Informer().GetIndexer())
+func (f *nodeInformer) Lister() configv1.NodeLister {
+ return configv1.NewNodeLister(f.Informer().GetIndexer())
}
diff --git a/config/informers/externalversions/config/v1/oauth.go b/config/informers/externalversions/config/v1/oauth.go
index 31b37b793..75128769f 100644
--- a/config/informers/externalversions/config/v1/oauth.go
+++ b/config/informers/externalversions/config/v1/oauth.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- configv1 "github.com/openshift/api/config/v1"
+ apiconfigv1 "github.com/openshift/api/config/v1"
versioned "github.com/openshift/client-go/config/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/config/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/config/listers/config/v1"
+ configv1 "github.com/openshift/client-go/config/listers/config/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// OAuths.
type OAuthInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.OAuthLister
+ Lister() configv1.OAuthLister
}
type oAuthInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredOAuthInformer(client versioned.Interface, resyncPeriod time.Dura
return client.ConfigV1().OAuths().Watch(context.TODO(), options)
},
},
- &configv1.OAuth{},
+ &apiconfigv1.OAuth{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *oAuthInformer) defaultInformer(client versioned.Interface, resyncPeriod
}
func (f *oAuthInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&configv1.OAuth{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiconfigv1.OAuth{}, f.defaultInformer)
}
-func (f *oAuthInformer) Lister() v1.OAuthLister {
- return v1.NewOAuthLister(f.Informer().GetIndexer())
+func (f *oAuthInformer) Lister() configv1.OAuthLister {
+ return configv1.NewOAuthLister(f.Informer().GetIndexer())
}
diff --git a/config/informers/externalversions/config/v1/operatorhub.go b/config/informers/externalversions/config/v1/operatorhub.go
index a2c8757fc..d2196b225 100644
--- a/config/informers/externalversions/config/v1/operatorhub.go
+++ b/config/informers/externalversions/config/v1/operatorhub.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- configv1 "github.com/openshift/api/config/v1"
+ apiconfigv1 "github.com/openshift/api/config/v1"
versioned "github.com/openshift/client-go/config/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/config/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/config/listers/config/v1"
+ configv1 "github.com/openshift/client-go/config/listers/config/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// OperatorHubs.
type OperatorHubInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.OperatorHubLister
+ Lister() configv1.OperatorHubLister
}
type operatorHubInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredOperatorHubInformer(client versioned.Interface, resyncPeriod tim
return client.ConfigV1().OperatorHubs().Watch(context.TODO(), options)
},
},
- &configv1.OperatorHub{},
+ &apiconfigv1.OperatorHub{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *operatorHubInformer) defaultInformer(client versioned.Interface, resync
}
func (f *operatorHubInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&configv1.OperatorHub{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiconfigv1.OperatorHub{}, f.defaultInformer)
}
-func (f *operatorHubInformer) Lister() v1.OperatorHubLister {
- return v1.NewOperatorHubLister(f.Informer().GetIndexer())
+func (f *operatorHubInformer) Lister() configv1.OperatorHubLister {
+ return configv1.NewOperatorHubLister(f.Informer().GetIndexer())
}
diff --git a/config/informers/externalversions/config/v1/project.go b/config/informers/externalversions/config/v1/project.go
index c9f5af1ec..0c5604e1e 100644
--- a/config/informers/externalversions/config/v1/project.go
+++ b/config/informers/externalversions/config/v1/project.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- configv1 "github.com/openshift/api/config/v1"
+ apiconfigv1 "github.com/openshift/api/config/v1"
versioned "github.com/openshift/client-go/config/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/config/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/config/listers/config/v1"
+ configv1 "github.com/openshift/client-go/config/listers/config/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// Projects.
type ProjectInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.ProjectLister
+ Lister() configv1.ProjectLister
}
type projectInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredProjectInformer(client versioned.Interface, resyncPeriod time.Du
return client.ConfigV1().Projects().Watch(context.TODO(), options)
},
},
- &configv1.Project{},
+ &apiconfigv1.Project{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *projectInformer) defaultInformer(client versioned.Interface, resyncPeri
}
func (f *projectInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&configv1.Project{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiconfigv1.Project{}, f.defaultInformer)
}
-func (f *projectInformer) Lister() v1.ProjectLister {
- return v1.NewProjectLister(f.Informer().GetIndexer())
+func (f *projectInformer) Lister() configv1.ProjectLister {
+ return configv1.NewProjectLister(f.Informer().GetIndexer())
}
diff --git a/config/informers/externalversions/config/v1/proxy.go b/config/informers/externalversions/config/v1/proxy.go
index cfbcd029e..aa1c2c551 100644
--- a/config/informers/externalversions/config/v1/proxy.go
+++ b/config/informers/externalversions/config/v1/proxy.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- configv1 "github.com/openshift/api/config/v1"
+ apiconfigv1 "github.com/openshift/api/config/v1"
versioned "github.com/openshift/client-go/config/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/config/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/config/listers/config/v1"
+ configv1 "github.com/openshift/client-go/config/listers/config/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// Proxies.
type ProxyInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.ProxyLister
+ Lister() configv1.ProxyLister
}
type proxyInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredProxyInformer(client versioned.Interface, resyncPeriod time.Dura
return client.ConfigV1().Proxies().Watch(context.TODO(), options)
},
},
- &configv1.Proxy{},
+ &apiconfigv1.Proxy{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *proxyInformer) defaultInformer(client versioned.Interface, resyncPeriod
}
func (f *proxyInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&configv1.Proxy{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiconfigv1.Proxy{}, f.defaultInformer)
}
-func (f *proxyInformer) Lister() v1.ProxyLister {
- return v1.NewProxyLister(f.Informer().GetIndexer())
+func (f *proxyInformer) Lister() configv1.ProxyLister {
+ return configv1.NewProxyLister(f.Informer().GetIndexer())
}
diff --git a/config/informers/externalversions/config/v1/scheduler.go b/config/informers/externalversions/config/v1/scheduler.go
index 104cdd76c..0117f2941 100644
--- a/config/informers/externalversions/config/v1/scheduler.go
+++ b/config/informers/externalversions/config/v1/scheduler.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- configv1 "github.com/openshift/api/config/v1"
+ apiconfigv1 "github.com/openshift/api/config/v1"
versioned "github.com/openshift/client-go/config/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/config/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/config/listers/config/v1"
+ configv1 "github.com/openshift/client-go/config/listers/config/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// Schedulers.
type SchedulerInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.SchedulerLister
+ Lister() configv1.SchedulerLister
}
type schedulerInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredSchedulerInformer(client versioned.Interface, resyncPeriod time.
return client.ConfigV1().Schedulers().Watch(context.TODO(), options)
},
},
- &configv1.Scheduler{},
+ &apiconfigv1.Scheduler{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *schedulerInformer) defaultInformer(client versioned.Interface, resyncPe
}
func (f *schedulerInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&configv1.Scheduler{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiconfigv1.Scheduler{}, f.defaultInformer)
}
-func (f *schedulerInformer) Lister() v1.SchedulerLister {
- return v1.NewSchedulerLister(f.Informer().GetIndexer())
+func (f *schedulerInformer) Lister() configv1.SchedulerLister {
+ return configv1.NewSchedulerLister(f.Informer().GetIndexer())
}
diff --git a/config/informers/externalversions/config/v1alpha1/backup.go b/config/informers/externalversions/config/v1alpha1/backup.go
index ae3013d42..bed1857ee 100644
--- a/config/informers/externalversions/config/v1alpha1/backup.go
+++ b/config/informers/externalversions/config/v1alpha1/backup.go
@@ -3,13 +3,13 @@
package v1alpha1
import (
- "context"
+ context "context"
time "time"
- configv1alpha1 "github.com/openshift/api/config/v1alpha1"
+ apiconfigv1alpha1 "github.com/openshift/api/config/v1alpha1"
versioned "github.com/openshift/client-go/config/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/config/informers/externalversions/internalinterfaces"
- v1alpha1 "github.com/openshift/client-go/config/listers/config/v1alpha1"
+ configv1alpha1 "github.com/openshift/client-go/config/listers/config/v1alpha1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// Backups.
type BackupInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1alpha1.BackupLister
+ Lister() configv1alpha1.BackupLister
}
type backupInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredBackupInformer(client versioned.Interface, resyncPeriod time.Dur
return client.ConfigV1alpha1().Backups().Watch(context.TODO(), options)
},
},
- &configv1alpha1.Backup{},
+ &apiconfigv1alpha1.Backup{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *backupInformer) defaultInformer(client versioned.Interface, resyncPerio
}
func (f *backupInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&configv1alpha1.Backup{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiconfigv1alpha1.Backup{}, f.defaultInformer)
}
-func (f *backupInformer) Lister() v1alpha1.BackupLister {
- return v1alpha1.NewBackupLister(f.Informer().GetIndexer())
+func (f *backupInformer) Lister() configv1alpha1.BackupLister {
+ return configv1alpha1.NewBackupLister(f.Informer().GetIndexer())
}
diff --git a/config/informers/externalversions/config/v1alpha1/clusterimagepolicy.go b/config/informers/externalversions/config/v1alpha1/clusterimagepolicy.go
index 2e71741a7..b11866c35 100644
--- a/config/informers/externalversions/config/v1alpha1/clusterimagepolicy.go
+++ b/config/informers/externalversions/config/v1alpha1/clusterimagepolicy.go
@@ -3,13 +3,13 @@
package v1alpha1
import (
- "context"
+ context "context"
time "time"
- configv1alpha1 "github.com/openshift/api/config/v1alpha1"
+ apiconfigv1alpha1 "github.com/openshift/api/config/v1alpha1"
versioned "github.com/openshift/client-go/config/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/config/informers/externalversions/internalinterfaces"
- v1alpha1 "github.com/openshift/client-go/config/listers/config/v1alpha1"
+ configv1alpha1 "github.com/openshift/client-go/config/listers/config/v1alpha1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// ClusterImagePolicies.
type ClusterImagePolicyInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1alpha1.ClusterImagePolicyLister
+ Lister() configv1alpha1.ClusterImagePolicyLister
}
type clusterImagePolicyInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredClusterImagePolicyInformer(client versioned.Interface, resyncPer
return client.ConfigV1alpha1().ClusterImagePolicies().Watch(context.TODO(), options)
},
},
- &configv1alpha1.ClusterImagePolicy{},
+ &apiconfigv1alpha1.ClusterImagePolicy{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *clusterImagePolicyInformer) defaultInformer(client versioned.Interface,
}
func (f *clusterImagePolicyInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&configv1alpha1.ClusterImagePolicy{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiconfigv1alpha1.ClusterImagePolicy{}, f.defaultInformer)
}
-func (f *clusterImagePolicyInformer) Lister() v1alpha1.ClusterImagePolicyLister {
- return v1alpha1.NewClusterImagePolicyLister(f.Informer().GetIndexer())
+func (f *clusterImagePolicyInformer) Lister() configv1alpha1.ClusterImagePolicyLister {
+ return configv1alpha1.NewClusterImagePolicyLister(f.Informer().GetIndexer())
}
diff --git a/config/informers/externalversions/config/v1/clustermonitoring.go b/config/informers/externalversions/config/v1alpha1/clustermonitoring.go
similarity index 72%
rename from config/informers/externalversions/config/v1/clustermonitoring.go
rename to config/informers/externalversions/config/v1alpha1/clustermonitoring.go
index d8314ac11..94a2ec3e4 100644
--- a/config/informers/externalversions/config/v1/clustermonitoring.go
+++ b/config/informers/externalversions/config/v1alpha1/clustermonitoring.go
@@ -1,16 +1,16 @@
// Code generated by informer-gen. DO NOT EDIT.
-package v1
+package v1alpha1
import (
- "context"
+ context "context"
time "time"
- configv1 "github.com/openshift/api/config/v1"
+ apiconfigv1alpha1 "github.com/openshift/api/config/v1alpha1"
versioned "github.com/openshift/client-go/config/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/config/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/config/listers/config/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ configv1alpha1 "github.com/openshift/client-go/config/listers/config/v1alpha1"
+ v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
cache "k8s.io/client-go/tools/cache"
@@ -20,7 +20,7 @@ import (
// ClusterMonitorings.
type ClusterMonitoringInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.ClusterMonitoringLister
+ Lister() configv1alpha1.ClusterMonitoringLister
}
type clusterMonitoringInformer struct {
@@ -41,20 +41,20 @@ func NewClusterMonitoringInformer(client versioned.Interface, resyncPeriod time.
func NewFilteredClusterMonitoringInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
return cache.NewSharedIndexInformer(
&cache.ListWatch{
- ListFunc: func(options metav1.ListOptions) (runtime.Object, error) {
+ ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
- return client.ConfigV1().ClusterMonitorings().List(context.TODO(), options)
+ return client.ConfigV1alpha1().ClusterMonitorings().List(context.TODO(), options)
},
- WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) {
+ WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
- return client.ConfigV1().ClusterMonitorings().Watch(context.TODO(), options)
+ return client.ConfigV1alpha1().ClusterMonitorings().Watch(context.TODO(), options)
},
},
- &configv1.ClusterMonitoring{},
+ &apiconfigv1alpha1.ClusterMonitoring{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *clusterMonitoringInformer) defaultInformer(client versioned.Interface,
}
func (f *clusterMonitoringInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&configv1.ClusterMonitoring{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiconfigv1alpha1.ClusterMonitoring{}, f.defaultInformer)
}
-func (f *clusterMonitoringInformer) Lister() v1.ClusterMonitoringLister {
- return v1.NewClusterMonitoringLister(f.Informer().GetIndexer())
+func (f *clusterMonitoringInformer) Lister() configv1alpha1.ClusterMonitoringLister {
+ return configv1alpha1.NewClusterMonitoringLister(f.Informer().GetIndexer())
}
diff --git a/config/informers/externalversions/config/v1alpha1/imagepolicy.go b/config/informers/externalversions/config/v1alpha1/imagepolicy.go
index ba72caedf..d6ab02a00 100644
--- a/config/informers/externalversions/config/v1alpha1/imagepolicy.go
+++ b/config/informers/externalversions/config/v1alpha1/imagepolicy.go
@@ -3,13 +3,13 @@
package v1alpha1
import (
- "context"
+ context "context"
time "time"
- configv1alpha1 "github.com/openshift/api/config/v1alpha1"
+ apiconfigv1alpha1 "github.com/openshift/api/config/v1alpha1"
versioned "github.com/openshift/client-go/config/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/config/informers/externalversions/internalinterfaces"
- v1alpha1 "github.com/openshift/client-go/config/listers/config/v1alpha1"
+ configv1alpha1 "github.com/openshift/client-go/config/listers/config/v1alpha1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// ImagePolicies.
type ImagePolicyInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1alpha1.ImagePolicyLister
+ Lister() configv1alpha1.ImagePolicyLister
}
type imagePolicyInformer struct {
@@ -55,7 +55,7 @@ func NewFilteredImagePolicyInformer(client versioned.Interface, namespace string
return client.ConfigV1alpha1().ImagePolicies(namespace).Watch(context.TODO(), options)
},
},
- &configv1alpha1.ImagePolicy{},
+ &apiconfigv1alpha1.ImagePolicy{},
resyncPeriod,
indexers,
)
@@ -66,9 +66,9 @@ func (f *imagePolicyInformer) defaultInformer(client versioned.Interface, resync
}
func (f *imagePolicyInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&configv1alpha1.ImagePolicy{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiconfigv1alpha1.ImagePolicy{}, f.defaultInformer)
}
-func (f *imagePolicyInformer) Lister() v1alpha1.ImagePolicyLister {
- return v1alpha1.NewImagePolicyLister(f.Informer().GetIndexer())
+func (f *imagePolicyInformer) Lister() configv1alpha1.ImagePolicyLister {
+ return configv1alpha1.NewImagePolicyLister(f.Informer().GetIndexer())
}
diff --git a/config/informers/externalversions/config/v1alpha1/insightsdatagather.go b/config/informers/externalversions/config/v1alpha1/insightsdatagather.go
index 22a41d363..51f09bad2 100644
--- a/config/informers/externalversions/config/v1alpha1/insightsdatagather.go
+++ b/config/informers/externalversions/config/v1alpha1/insightsdatagather.go
@@ -3,13 +3,13 @@
package v1alpha1
import (
- "context"
+ context "context"
time "time"
- configv1alpha1 "github.com/openshift/api/config/v1alpha1"
+ apiconfigv1alpha1 "github.com/openshift/api/config/v1alpha1"
versioned "github.com/openshift/client-go/config/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/config/informers/externalversions/internalinterfaces"
- v1alpha1 "github.com/openshift/client-go/config/listers/config/v1alpha1"
+ configv1alpha1 "github.com/openshift/client-go/config/listers/config/v1alpha1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// InsightsDataGathers.
type InsightsDataGatherInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1alpha1.InsightsDataGatherLister
+ Lister() configv1alpha1.InsightsDataGatherLister
}
type insightsDataGatherInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredInsightsDataGatherInformer(client versioned.Interface, resyncPer
return client.ConfigV1alpha1().InsightsDataGathers().Watch(context.TODO(), options)
},
},
- &configv1alpha1.InsightsDataGather{},
+ &apiconfigv1alpha1.InsightsDataGather{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *insightsDataGatherInformer) defaultInformer(client versioned.Interface,
}
func (f *insightsDataGatherInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&configv1alpha1.InsightsDataGather{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiconfigv1alpha1.InsightsDataGather{}, f.defaultInformer)
}
-func (f *insightsDataGatherInformer) Lister() v1alpha1.InsightsDataGatherLister {
- return v1alpha1.NewInsightsDataGatherLister(f.Informer().GetIndexer())
+func (f *insightsDataGatherInformer) Lister() configv1alpha1.InsightsDataGatherLister {
+ return configv1alpha1.NewInsightsDataGatherLister(f.Informer().GetIndexer())
}
diff --git a/config/informers/externalversions/config/v1alpha1/interface.go b/config/informers/externalversions/config/v1alpha1/interface.go
index 69b5569fa..893d2db0a 100644
--- a/config/informers/externalversions/config/v1alpha1/interface.go
+++ b/config/informers/externalversions/config/v1alpha1/interface.go
@@ -12,6 +12,8 @@ type Interface interface {
Backups() BackupInformer
// ClusterImagePolicies returns a ClusterImagePolicyInformer.
ClusterImagePolicies() ClusterImagePolicyInformer
+ // ClusterMonitorings returns a ClusterMonitoringInformer.
+ ClusterMonitorings() ClusterMonitoringInformer
// ImagePolicies returns a ImagePolicyInformer.
ImagePolicies() ImagePolicyInformer
// InsightsDataGathers returns a InsightsDataGatherInformer.
@@ -39,6 +41,11 @@ func (v *version) ClusterImagePolicies() ClusterImagePolicyInformer {
return &clusterImagePolicyInformer{factory: v.factory, tweakListOptions: v.tweakListOptions}
}
+// ClusterMonitorings returns a ClusterMonitoringInformer.
+func (v *version) ClusterMonitorings() ClusterMonitoringInformer {
+ return &clusterMonitoringInformer{factory: v.factory, tweakListOptions: v.tweakListOptions}
+}
+
// ImagePolicies returns a ImagePolicyInformer.
func (v *version) ImagePolicies() ImagePolicyInformer {
return &imagePolicyInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
diff --git a/config/informers/externalversions/generic.go b/config/informers/externalversions/generic.go
index aeb654005..9135d1fcc 100644
--- a/config/informers/externalversions/generic.go
+++ b/config/informers/externalversions/generic.go
@@ -3,7 +3,7 @@
package externalversions
import (
- "fmt"
+ fmt "fmt"
v1 "github.com/openshift/api/config/v1"
v1alpha1 "github.com/openshift/api/config/v1alpha1"
@@ -44,8 +44,6 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource
return &genericInformer{resource: resource.GroupResource(), informer: f.Config().V1().Authentications().Informer()}, nil
case v1.SchemeGroupVersion.WithResource("builds"):
return &genericInformer{resource: resource.GroupResource(), informer: f.Config().V1().Builds().Informer()}, nil
- case v1.SchemeGroupVersion.WithResource("clustermonitorings"):
- return &genericInformer{resource: resource.GroupResource(), informer: f.Config().V1().ClusterMonitorings().Informer()}, nil
case v1.SchemeGroupVersion.WithResource("clusteroperators"):
return &genericInformer{resource: resource.GroupResource(), informer: f.Config().V1().ClusterOperators().Informer()}, nil
case v1.SchemeGroupVersion.WithResource("clusterversions"):
@@ -88,6 +86,8 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource
return &genericInformer{resource: resource.GroupResource(), informer: f.Config().V1alpha1().Backups().Informer()}, nil
case v1alpha1.SchemeGroupVersion.WithResource("clusterimagepolicies"):
return &genericInformer{resource: resource.GroupResource(), informer: f.Config().V1alpha1().ClusterImagePolicies().Informer()}, nil
+ case v1alpha1.SchemeGroupVersion.WithResource("clustermonitorings"):
+ return &genericInformer{resource: resource.GroupResource(), informer: f.Config().V1alpha1().ClusterMonitorings().Informer()}, nil
case v1alpha1.SchemeGroupVersion.WithResource("imagepolicies"):
return &genericInformer{resource: resource.GroupResource(), informer: f.Config().V1alpha1().ImagePolicies().Informer()}, nil
case v1alpha1.SchemeGroupVersion.WithResource("insightsdatagathers"):
diff --git a/config/listers/config/v1/apiserver.go b/config/listers/config/v1/apiserver.go
index 456d54406..59c5faa8a 100644
--- a/config/listers/config/v1/apiserver.go
+++ b/config/listers/config/v1/apiserver.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ configv1 "github.com/openshift/api/config/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// APIServerLister helps list APIServers.
@@ -14,19 +14,19 @@ import (
type APIServerLister interface {
// List lists all APIServers in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.APIServer, err error)
+ List(selector labels.Selector) (ret []*configv1.APIServer, err error)
// Get retrieves the APIServer from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.APIServer, error)
+ Get(name string) (*configv1.APIServer, error)
APIServerListerExpansion
}
// aPIServerLister implements the APIServerLister interface.
type aPIServerLister struct {
- listers.ResourceIndexer[*v1.APIServer]
+ listers.ResourceIndexer[*configv1.APIServer]
}
// NewAPIServerLister returns a new APIServerLister.
func NewAPIServerLister(indexer cache.Indexer) APIServerLister {
- return &aPIServerLister{listers.New[*v1.APIServer](indexer, v1.Resource("apiserver"))}
+ return &aPIServerLister{listers.New[*configv1.APIServer](indexer, configv1.Resource("apiserver"))}
}
diff --git a/config/listers/config/v1/authentication.go b/config/listers/config/v1/authentication.go
index c048da0e1..242930e68 100644
--- a/config/listers/config/v1/authentication.go
+++ b/config/listers/config/v1/authentication.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ configv1 "github.com/openshift/api/config/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// AuthenticationLister helps list Authentications.
@@ -14,19 +14,19 @@ import (
type AuthenticationLister interface {
// List lists all Authentications in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.Authentication, err error)
+ List(selector labels.Selector) (ret []*configv1.Authentication, err error)
// Get retrieves the Authentication from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.Authentication, error)
+ Get(name string) (*configv1.Authentication, error)
AuthenticationListerExpansion
}
// authenticationLister implements the AuthenticationLister interface.
type authenticationLister struct {
- listers.ResourceIndexer[*v1.Authentication]
+ listers.ResourceIndexer[*configv1.Authentication]
}
// NewAuthenticationLister returns a new AuthenticationLister.
func NewAuthenticationLister(indexer cache.Indexer) AuthenticationLister {
- return &authenticationLister{listers.New[*v1.Authentication](indexer, v1.Resource("authentication"))}
+ return &authenticationLister{listers.New[*configv1.Authentication](indexer, configv1.Resource("authentication"))}
}
diff --git a/config/listers/config/v1/build.go b/config/listers/config/v1/build.go
index c4fcae5d9..b98accfee 100644
--- a/config/listers/config/v1/build.go
+++ b/config/listers/config/v1/build.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ configv1 "github.com/openshift/api/config/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// BuildLister helps list Builds.
@@ -14,19 +14,19 @@ import (
type BuildLister interface {
// List lists all Builds in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.Build, err error)
+ List(selector labels.Selector) (ret []*configv1.Build, err error)
// Get retrieves the Build from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.Build, error)
+ Get(name string) (*configv1.Build, error)
BuildListerExpansion
}
// buildLister implements the BuildLister interface.
type buildLister struct {
- listers.ResourceIndexer[*v1.Build]
+ listers.ResourceIndexer[*configv1.Build]
}
// NewBuildLister returns a new BuildLister.
func NewBuildLister(indexer cache.Indexer) BuildLister {
- return &buildLister{listers.New[*v1.Build](indexer, v1.Resource("build"))}
+ return &buildLister{listers.New[*configv1.Build](indexer, configv1.Resource("build"))}
}
diff --git a/config/listers/config/v1/clusteroperator.go b/config/listers/config/v1/clusteroperator.go
index d9ba7e8aa..a8eaacf78 100644
--- a/config/listers/config/v1/clusteroperator.go
+++ b/config/listers/config/v1/clusteroperator.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ configv1 "github.com/openshift/api/config/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ClusterOperatorLister helps list ClusterOperators.
@@ -14,19 +14,19 @@ import (
type ClusterOperatorLister interface {
// List lists all ClusterOperators in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.ClusterOperator, err error)
+ List(selector labels.Selector) (ret []*configv1.ClusterOperator, err error)
// Get retrieves the ClusterOperator from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.ClusterOperator, error)
+ Get(name string) (*configv1.ClusterOperator, error)
ClusterOperatorListerExpansion
}
// clusterOperatorLister implements the ClusterOperatorLister interface.
type clusterOperatorLister struct {
- listers.ResourceIndexer[*v1.ClusterOperator]
+ listers.ResourceIndexer[*configv1.ClusterOperator]
}
// NewClusterOperatorLister returns a new ClusterOperatorLister.
func NewClusterOperatorLister(indexer cache.Indexer) ClusterOperatorLister {
- return &clusterOperatorLister{listers.New[*v1.ClusterOperator](indexer, v1.Resource("clusteroperator"))}
+ return &clusterOperatorLister{listers.New[*configv1.ClusterOperator](indexer, configv1.Resource("clusteroperator"))}
}
diff --git a/config/listers/config/v1/clusterversion.go b/config/listers/config/v1/clusterversion.go
index d05248090..9f466ccb9 100644
--- a/config/listers/config/v1/clusterversion.go
+++ b/config/listers/config/v1/clusterversion.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ configv1 "github.com/openshift/api/config/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ClusterVersionLister helps list ClusterVersions.
@@ -14,19 +14,19 @@ import (
type ClusterVersionLister interface {
// List lists all ClusterVersions in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.ClusterVersion, err error)
+ List(selector labels.Selector) (ret []*configv1.ClusterVersion, err error)
// Get retrieves the ClusterVersion from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.ClusterVersion, error)
+ Get(name string) (*configv1.ClusterVersion, error)
ClusterVersionListerExpansion
}
// clusterVersionLister implements the ClusterVersionLister interface.
type clusterVersionLister struct {
- listers.ResourceIndexer[*v1.ClusterVersion]
+ listers.ResourceIndexer[*configv1.ClusterVersion]
}
// NewClusterVersionLister returns a new ClusterVersionLister.
func NewClusterVersionLister(indexer cache.Indexer) ClusterVersionLister {
- return &clusterVersionLister{listers.New[*v1.ClusterVersion](indexer, v1.Resource("clusterversion"))}
+ return &clusterVersionLister{listers.New[*configv1.ClusterVersion](indexer, configv1.Resource("clusterversion"))}
}
diff --git a/config/listers/config/v1/console.go b/config/listers/config/v1/console.go
index 192798555..e9d9558e7 100644
--- a/config/listers/config/v1/console.go
+++ b/config/listers/config/v1/console.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ configv1 "github.com/openshift/api/config/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ConsoleLister helps list Consoles.
@@ -14,19 +14,19 @@ import (
type ConsoleLister interface {
// List lists all Consoles in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.Console, err error)
+ List(selector labels.Selector) (ret []*configv1.Console, err error)
// Get retrieves the Console from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.Console, error)
+ Get(name string) (*configv1.Console, error)
ConsoleListerExpansion
}
// consoleLister implements the ConsoleLister interface.
type consoleLister struct {
- listers.ResourceIndexer[*v1.Console]
+ listers.ResourceIndexer[*configv1.Console]
}
// NewConsoleLister returns a new ConsoleLister.
func NewConsoleLister(indexer cache.Indexer) ConsoleLister {
- return &consoleLister{listers.New[*v1.Console](indexer, v1.Resource("console"))}
+ return &consoleLister{listers.New[*configv1.Console](indexer, configv1.Resource("console"))}
}
diff --git a/config/listers/config/v1/dns.go b/config/listers/config/v1/dns.go
index 85dd5e4ba..95dbcd082 100644
--- a/config/listers/config/v1/dns.go
+++ b/config/listers/config/v1/dns.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ configv1 "github.com/openshift/api/config/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// DNSLister helps list DNSes.
@@ -14,19 +14,19 @@ import (
type DNSLister interface {
// List lists all DNSes in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.DNS, err error)
+ List(selector labels.Selector) (ret []*configv1.DNS, err error)
// Get retrieves the DNS from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.DNS, error)
+ Get(name string) (*configv1.DNS, error)
DNSListerExpansion
}
// dNSLister implements the DNSLister interface.
type dNSLister struct {
- listers.ResourceIndexer[*v1.DNS]
+ listers.ResourceIndexer[*configv1.DNS]
}
// NewDNSLister returns a new DNSLister.
func NewDNSLister(indexer cache.Indexer) DNSLister {
- return &dNSLister{listers.New[*v1.DNS](indexer, v1.Resource("dns"))}
+ return &dNSLister{listers.New[*configv1.DNS](indexer, configv1.Resource("dns"))}
}
diff --git a/config/listers/config/v1/expansion_generated.go b/config/listers/config/v1/expansion_generated.go
index 58b7a032d..b5d6fc088 100644
--- a/config/listers/config/v1/expansion_generated.go
+++ b/config/listers/config/v1/expansion_generated.go
@@ -14,10 +14,6 @@ type AuthenticationListerExpansion interface{}
// BuildLister.
type BuildListerExpansion interface{}
-// ClusterMonitoringListerExpansion allows custom methods to be added to
-// ClusterMonitoringLister.
-type ClusterMonitoringListerExpansion interface{}
-
// ClusterOperatorListerExpansion allows custom methods to be added to
// ClusterOperatorLister.
type ClusterOperatorListerExpansion interface{}
diff --git a/config/listers/config/v1/featuregate.go b/config/listers/config/v1/featuregate.go
index a2bcacff6..7cedf7948 100644
--- a/config/listers/config/v1/featuregate.go
+++ b/config/listers/config/v1/featuregate.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ configv1 "github.com/openshift/api/config/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// FeatureGateLister helps list FeatureGates.
@@ -14,19 +14,19 @@ import (
type FeatureGateLister interface {
// List lists all FeatureGates in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.FeatureGate, err error)
+ List(selector labels.Selector) (ret []*configv1.FeatureGate, err error)
// Get retrieves the FeatureGate from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.FeatureGate, error)
+ Get(name string) (*configv1.FeatureGate, error)
FeatureGateListerExpansion
}
// featureGateLister implements the FeatureGateLister interface.
type featureGateLister struct {
- listers.ResourceIndexer[*v1.FeatureGate]
+ listers.ResourceIndexer[*configv1.FeatureGate]
}
// NewFeatureGateLister returns a new FeatureGateLister.
func NewFeatureGateLister(indexer cache.Indexer) FeatureGateLister {
- return &featureGateLister{listers.New[*v1.FeatureGate](indexer, v1.Resource("featuregate"))}
+ return &featureGateLister{listers.New[*configv1.FeatureGate](indexer, configv1.Resource("featuregate"))}
}
diff --git a/config/listers/config/v1/image.go b/config/listers/config/v1/image.go
index 908753f35..407415393 100644
--- a/config/listers/config/v1/image.go
+++ b/config/listers/config/v1/image.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ configv1 "github.com/openshift/api/config/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ImageLister helps list Images.
@@ -14,19 +14,19 @@ import (
type ImageLister interface {
// List lists all Images in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.Image, err error)
+ List(selector labels.Selector) (ret []*configv1.Image, err error)
// Get retrieves the Image from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.Image, error)
+ Get(name string) (*configv1.Image, error)
ImageListerExpansion
}
// imageLister implements the ImageLister interface.
type imageLister struct {
- listers.ResourceIndexer[*v1.Image]
+ listers.ResourceIndexer[*configv1.Image]
}
// NewImageLister returns a new ImageLister.
func NewImageLister(indexer cache.Indexer) ImageLister {
- return &imageLister{listers.New[*v1.Image](indexer, v1.Resource("image"))}
+ return &imageLister{listers.New[*configv1.Image](indexer, configv1.Resource("image"))}
}
diff --git a/config/listers/config/v1/imagecontentpolicy.go b/config/listers/config/v1/imagecontentpolicy.go
index edad83a7b..75607f918 100644
--- a/config/listers/config/v1/imagecontentpolicy.go
+++ b/config/listers/config/v1/imagecontentpolicy.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ configv1 "github.com/openshift/api/config/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ImageContentPolicyLister helps list ImageContentPolicies.
@@ -14,19 +14,19 @@ import (
type ImageContentPolicyLister interface {
// List lists all ImageContentPolicies in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.ImageContentPolicy, err error)
+ List(selector labels.Selector) (ret []*configv1.ImageContentPolicy, err error)
// Get retrieves the ImageContentPolicy from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.ImageContentPolicy, error)
+ Get(name string) (*configv1.ImageContentPolicy, error)
ImageContentPolicyListerExpansion
}
// imageContentPolicyLister implements the ImageContentPolicyLister interface.
type imageContentPolicyLister struct {
- listers.ResourceIndexer[*v1.ImageContentPolicy]
+ listers.ResourceIndexer[*configv1.ImageContentPolicy]
}
// NewImageContentPolicyLister returns a new ImageContentPolicyLister.
func NewImageContentPolicyLister(indexer cache.Indexer) ImageContentPolicyLister {
- return &imageContentPolicyLister{listers.New[*v1.ImageContentPolicy](indexer, v1.Resource("imagecontentpolicy"))}
+ return &imageContentPolicyLister{listers.New[*configv1.ImageContentPolicy](indexer, configv1.Resource("imagecontentpolicy"))}
}
diff --git a/config/listers/config/v1/imagedigestmirrorset.go b/config/listers/config/v1/imagedigestmirrorset.go
index 6639b7cc0..027ded8bb 100644
--- a/config/listers/config/v1/imagedigestmirrorset.go
+++ b/config/listers/config/v1/imagedigestmirrorset.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ configv1 "github.com/openshift/api/config/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ImageDigestMirrorSetLister helps list ImageDigestMirrorSets.
@@ -14,19 +14,19 @@ import (
type ImageDigestMirrorSetLister interface {
// List lists all ImageDigestMirrorSets in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.ImageDigestMirrorSet, err error)
+ List(selector labels.Selector) (ret []*configv1.ImageDigestMirrorSet, err error)
// Get retrieves the ImageDigestMirrorSet from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.ImageDigestMirrorSet, error)
+ Get(name string) (*configv1.ImageDigestMirrorSet, error)
ImageDigestMirrorSetListerExpansion
}
// imageDigestMirrorSetLister implements the ImageDigestMirrorSetLister interface.
type imageDigestMirrorSetLister struct {
- listers.ResourceIndexer[*v1.ImageDigestMirrorSet]
+ listers.ResourceIndexer[*configv1.ImageDigestMirrorSet]
}
// NewImageDigestMirrorSetLister returns a new ImageDigestMirrorSetLister.
func NewImageDigestMirrorSetLister(indexer cache.Indexer) ImageDigestMirrorSetLister {
- return &imageDigestMirrorSetLister{listers.New[*v1.ImageDigestMirrorSet](indexer, v1.Resource("imagedigestmirrorset"))}
+ return &imageDigestMirrorSetLister{listers.New[*configv1.ImageDigestMirrorSet](indexer, configv1.Resource("imagedigestmirrorset"))}
}
diff --git a/config/listers/config/v1/imagetagmirrorset.go b/config/listers/config/v1/imagetagmirrorset.go
index 8605b7e78..d390bc14e 100644
--- a/config/listers/config/v1/imagetagmirrorset.go
+++ b/config/listers/config/v1/imagetagmirrorset.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ configv1 "github.com/openshift/api/config/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ImageTagMirrorSetLister helps list ImageTagMirrorSets.
@@ -14,19 +14,19 @@ import (
type ImageTagMirrorSetLister interface {
// List lists all ImageTagMirrorSets in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.ImageTagMirrorSet, err error)
+ List(selector labels.Selector) (ret []*configv1.ImageTagMirrorSet, err error)
// Get retrieves the ImageTagMirrorSet from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.ImageTagMirrorSet, error)
+ Get(name string) (*configv1.ImageTagMirrorSet, error)
ImageTagMirrorSetListerExpansion
}
// imageTagMirrorSetLister implements the ImageTagMirrorSetLister interface.
type imageTagMirrorSetLister struct {
- listers.ResourceIndexer[*v1.ImageTagMirrorSet]
+ listers.ResourceIndexer[*configv1.ImageTagMirrorSet]
}
// NewImageTagMirrorSetLister returns a new ImageTagMirrorSetLister.
func NewImageTagMirrorSetLister(indexer cache.Indexer) ImageTagMirrorSetLister {
- return &imageTagMirrorSetLister{listers.New[*v1.ImageTagMirrorSet](indexer, v1.Resource("imagetagmirrorset"))}
+ return &imageTagMirrorSetLister{listers.New[*configv1.ImageTagMirrorSet](indexer, configv1.Resource("imagetagmirrorset"))}
}
diff --git a/config/listers/config/v1/infrastructure.go b/config/listers/config/v1/infrastructure.go
index db1e7725a..48d592a29 100644
--- a/config/listers/config/v1/infrastructure.go
+++ b/config/listers/config/v1/infrastructure.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ configv1 "github.com/openshift/api/config/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// InfrastructureLister helps list Infrastructures.
@@ -14,19 +14,19 @@ import (
type InfrastructureLister interface {
// List lists all Infrastructures in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.Infrastructure, err error)
+ List(selector labels.Selector) (ret []*configv1.Infrastructure, err error)
// Get retrieves the Infrastructure from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.Infrastructure, error)
+ Get(name string) (*configv1.Infrastructure, error)
InfrastructureListerExpansion
}
// infrastructureLister implements the InfrastructureLister interface.
type infrastructureLister struct {
- listers.ResourceIndexer[*v1.Infrastructure]
+ listers.ResourceIndexer[*configv1.Infrastructure]
}
// NewInfrastructureLister returns a new InfrastructureLister.
func NewInfrastructureLister(indexer cache.Indexer) InfrastructureLister {
- return &infrastructureLister{listers.New[*v1.Infrastructure](indexer, v1.Resource("infrastructure"))}
+ return &infrastructureLister{listers.New[*configv1.Infrastructure](indexer, configv1.Resource("infrastructure"))}
}
diff --git a/config/listers/config/v1/ingress.go b/config/listers/config/v1/ingress.go
index de29c3f1a..81538435f 100644
--- a/config/listers/config/v1/ingress.go
+++ b/config/listers/config/v1/ingress.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ configv1 "github.com/openshift/api/config/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// IngressLister helps list Ingresses.
@@ -14,19 +14,19 @@ import (
type IngressLister interface {
// List lists all Ingresses in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.Ingress, err error)
+ List(selector labels.Selector) (ret []*configv1.Ingress, err error)
// Get retrieves the Ingress from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.Ingress, error)
+ Get(name string) (*configv1.Ingress, error)
IngressListerExpansion
}
// ingressLister implements the IngressLister interface.
type ingressLister struct {
- listers.ResourceIndexer[*v1.Ingress]
+ listers.ResourceIndexer[*configv1.Ingress]
}
// NewIngressLister returns a new IngressLister.
func NewIngressLister(indexer cache.Indexer) IngressLister {
- return &ingressLister{listers.New[*v1.Ingress](indexer, v1.Resource("ingress"))}
+ return &ingressLister{listers.New[*configv1.Ingress](indexer, configv1.Resource("ingress"))}
}
diff --git a/config/listers/config/v1/network.go b/config/listers/config/v1/network.go
index d71892d6c..3376a46b1 100644
--- a/config/listers/config/v1/network.go
+++ b/config/listers/config/v1/network.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ configv1 "github.com/openshift/api/config/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// NetworkLister helps list Networks.
@@ -14,19 +14,19 @@ import (
type NetworkLister interface {
// List lists all Networks in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.Network, err error)
+ List(selector labels.Selector) (ret []*configv1.Network, err error)
// Get retrieves the Network from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.Network, error)
+ Get(name string) (*configv1.Network, error)
NetworkListerExpansion
}
// networkLister implements the NetworkLister interface.
type networkLister struct {
- listers.ResourceIndexer[*v1.Network]
+ listers.ResourceIndexer[*configv1.Network]
}
// NewNetworkLister returns a new NetworkLister.
func NewNetworkLister(indexer cache.Indexer) NetworkLister {
- return &networkLister{listers.New[*v1.Network](indexer, v1.Resource("network"))}
+ return &networkLister{listers.New[*configv1.Network](indexer, configv1.Resource("network"))}
}
diff --git a/config/listers/config/v1/node.go b/config/listers/config/v1/node.go
index 08e323670..2520016a5 100644
--- a/config/listers/config/v1/node.go
+++ b/config/listers/config/v1/node.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ configv1 "github.com/openshift/api/config/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// NodeLister helps list Nodes.
@@ -14,19 +14,19 @@ import (
type NodeLister interface {
// List lists all Nodes in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.Node, err error)
+ List(selector labels.Selector) (ret []*configv1.Node, err error)
// Get retrieves the Node from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.Node, error)
+ Get(name string) (*configv1.Node, error)
NodeListerExpansion
}
// nodeLister implements the NodeLister interface.
type nodeLister struct {
- listers.ResourceIndexer[*v1.Node]
+ listers.ResourceIndexer[*configv1.Node]
}
// NewNodeLister returns a new NodeLister.
func NewNodeLister(indexer cache.Indexer) NodeLister {
- return &nodeLister{listers.New[*v1.Node](indexer, v1.Resource("node"))}
+ return &nodeLister{listers.New[*configv1.Node](indexer, configv1.Resource("node"))}
}
diff --git a/config/listers/config/v1/oauth.go b/config/listers/config/v1/oauth.go
index abfa6cc2a..5cffcd7bf 100644
--- a/config/listers/config/v1/oauth.go
+++ b/config/listers/config/v1/oauth.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ configv1 "github.com/openshift/api/config/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// OAuthLister helps list OAuths.
@@ -14,19 +14,19 @@ import (
type OAuthLister interface {
// List lists all OAuths in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.OAuth, err error)
+ List(selector labels.Selector) (ret []*configv1.OAuth, err error)
// Get retrieves the OAuth from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.OAuth, error)
+ Get(name string) (*configv1.OAuth, error)
OAuthListerExpansion
}
// oAuthLister implements the OAuthLister interface.
type oAuthLister struct {
- listers.ResourceIndexer[*v1.OAuth]
+ listers.ResourceIndexer[*configv1.OAuth]
}
// NewOAuthLister returns a new OAuthLister.
func NewOAuthLister(indexer cache.Indexer) OAuthLister {
- return &oAuthLister{listers.New[*v1.OAuth](indexer, v1.Resource("oauth"))}
+ return &oAuthLister{listers.New[*configv1.OAuth](indexer, configv1.Resource("oauth"))}
}
diff --git a/config/listers/config/v1/operatorhub.go b/config/listers/config/v1/operatorhub.go
index e4b0e4712..a28f63f79 100644
--- a/config/listers/config/v1/operatorhub.go
+++ b/config/listers/config/v1/operatorhub.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ configv1 "github.com/openshift/api/config/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// OperatorHubLister helps list OperatorHubs.
@@ -14,19 +14,19 @@ import (
type OperatorHubLister interface {
// List lists all OperatorHubs in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.OperatorHub, err error)
+ List(selector labels.Selector) (ret []*configv1.OperatorHub, err error)
// Get retrieves the OperatorHub from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.OperatorHub, error)
+ Get(name string) (*configv1.OperatorHub, error)
OperatorHubListerExpansion
}
// operatorHubLister implements the OperatorHubLister interface.
type operatorHubLister struct {
- listers.ResourceIndexer[*v1.OperatorHub]
+ listers.ResourceIndexer[*configv1.OperatorHub]
}
// NewOperatorHubLister returns a new OperatorHubLister.
func NewOperatorHubLister(indexer cache.Indexer) OperatorHubLister {
- return &operatorHubLister{listers.New[*v1.OperatorHub](indexer, v1.Resource("operatorhub"))}
+ return &operatorHubLister{listers.New[*configv1.OperatorHub](indexer, configv1.Resource("operatorhub"))}
}
diff --git a/config/listers/config/v1/project.go b/config/listers/config/v1/project.go
index 67a1ee323..fbc57217f 100644
--- a/config/listers/config/v1/project.go
+++ b/config/listers/config/v1/project.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ configv1 "github.com/openshift/api/config/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ProjectLister helps list Projects.
@@ -14,19 +14,19 @@ import (
type ProjectLister interface {
// List lists all Projects in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.Project, err error)
+ List(selector labels.Selector) (ret []*configv1.Project, err error)
// Get retrieves the Project from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.Project, error)
+ Get(name string) (*configv1.Project, error)
ProjectListerExpansion
}
// projectLister implements the ProjectLister interface.
type projectLister struct {
- listers.ResourceIndexer[*v1.Project]
+ listers.ResourceIndexer[*configv1.Project]
}
// NewProjectLister returns a new ProjectLister.
func NewProjectLister(indexer cache.Indexer) ProjectLister {
- return &projectLister{listers.New[*v1.Project](indexer, v1.Resource("project"))}
+ return &projectLister{listers.New[*configv1.Project](indexer, configv1.Resource("project"))}
}
diff --git a/config/listers/config/v1/proxy.go b/config/listers/config/v1/proxy.go
index 39837c2f6..8edbd0fab 100644
--- a/config/listers/config/v1/proxy.go
+++ b/config/listers/config/v1/proxy.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ configv1 "github.com/openshift/api/config/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ProxyLister helps list Proxies.
@@ -14,19 +14,19 @@ import (
type ProxyLister interface {
// List lists all Proxies in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.Proxy, err error)
+ List(selector labels.Selector) (ret []*configv1.Proxy, err error)
// Get retrieves the Proxy from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.Proxy, error)
+ Get(name string) (*configv1.Proxy, error)
ProxyListerExpansion
}
// proxyLister implements the ProxyLister interface.
type proxyLister struct {
- listers.ResourceIndexer[*v1.Proxy]
+ listers.ResourceIndexer[*configv1.Proxy]
}
// NewProxyLister returns a new ProxyLister.
func NewProxyLister(indexer cache.Indexer) ProxyLister {
- return &proxyLister{listers.New[*v1.Proxy](indexer, v1.Resource("proxy"))}
+ return &proxyLister{listers.New[*configv1.Proxy](indexer, configv1.Resource("proxy"))}
}
diff --git a/config/listers/config/v1/scheduler.go b/config/listers/config/v1/scheduler.go
index 6f95e0254..a90829c8d 100644
--- a/config/listers/config/v1/scheduler.go
+++ b/config/listers/config/v1/scheduler.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ configv1 "github.com/openshift/api/config/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// SchedulerLister helps list Schedulers.
@@ -14,19 +14,19 @@ import (
type SchedulerLister interface {
// List lists all Schedulers in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.Scheduler, err error)
+ List(selector labels.Selector) (ret []*configv1.Scheduler, err error)
// Get retrieves the Scheduler from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.Scheduler, error)
+ Get(name string) (*configv1.Scheduler, error)
SchedulerListerExpansion
}
// schedulerLister implements the SchedulerLister interface.
type schedulerLister struct {
- listers.ResourceIndexer[*v1.Scheduler]
+ listers.ResourceIndexer[*configv1.Scheduler]
}
// NewSchedulerLister returns a new SchedulerLister.
func NewSchedulerLister(indexer cache.Indexer) SchedulerLister {
- return &schedulerLister{listers.New[*v1.Scheduler](indexer, v1.Resource("scheduler"))}
+ return &schedulerLister{listers.New[*configv1.Scheduler](indexer, configv1.Resource("scheduler"))}
}
diff --git a/config/listers/config/v1alpha1/backup.go b/config/listers/config/v1alpha1/backup.go
index c7d3ba546..6b992e0d0 100644
--- a/config/listers/config/v1alpha1/backup.go
+++ b/config/listers/config/v1alpha1/backup.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- v1alpha1 "github.com/openshift/api/config/v1alpha1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ configv1alpha1 "github.com/openshift/api/config/v1alpha1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// BackupLister helps list Backups.
@@ -14,19 +14,19 @@ import (
type BackupLister interface {
// List lists all Backups in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1alpha1.Backup, err error)
+ List(selector labels.Selector) (ret []*configv1alpha1.Backup, err error)
// Get retrieves the Backup from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1alpha1.Backup, error)
+ Get(name string) (*configv1alpha1.Backup, error)
BackupListerExpansion
}
// backupLister implements the BackupLister interface.
type backupLister struct {
- listers.ResourceIndexer[*v1alpha1.Backup]
+ listers.ResourceIndexer[*configv1alpha1.Backup]
}
// NewBackupLister returns a new BackupLister.
func NewBackupLister(indexer cache.Indexer) BackupLister {
- return &backupLister{listers.New[*v1alpha1.Backup](indexer, v1alpha1.Resource("backup"))}
+ return &backupLister{listers.New[*configv1alpha1.Backup](indexer, configv1alpha1.Resource("backup"))}
}
diff --git a/config/listers/config/v1alpha1/clusterimagepolicy.go b/config/listers/config/v1alpha1/clusterimagepolicy.go
index ab909818e..0512d3682 100644
--- a/config/listers/config/v1alpha1/clusterimagepolicy.go
+++ b/config/listers/config/v1alpha1/clusterimagepolicy.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- v1alpha1 "github.com/openshift/api/config/v1alpha1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ configv1alpha1 "github.com/openshift/api/config/v1alpha1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ClusterImagePolicyLister helps list ClusterImagePolicies.
@@ -14,19 +14,19 @@ import (
type ClusterImagePolicyLister interface {
// List lists all ClusterImagePolicies in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1alpha1.ClusterImagePolicy, err error)
+ List(selector labels.Selector) (ret []*configv1alpha1.ClusterImagePolicy, err error)
// Get retrieves the ClusterImagePolicy from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1alpha1.ClusterImagePolicy, error)
+ Get(name string) (*configv1alpha1.ClusterImagePolicy, error)
ClusterImagePolicyListerExpansion
}
// clusterImagePolicyLister implements the ClusterImagePolicyLister interface.
type clusterImagePolicyLister struct {
- listers.ResourceIndexer[*v1alpha1.ClusterImagePolicy]
+ listers.ResourceIndexer[*configv1alpha1.ClusterImagePolicy]
}
// NewClusterImagePolicyLister returns a new ClusterImagePolicyLister.
func NewClusterImagePolicyLister(indexer cache.Indexer) ClusterImagePolicyLister {
- return &clusterImagePolicyLister{listers.New[*v1alpha1.ClusterImagePolicy](indexer, v1alpha1.Resource("clusterimagepolicy"))}
+ return &clusterImagePolicyLister{listers.New[*configv1alpha1.ClusterImagePolicy](indexer, configv1alpha1.Resource("clusterimagepolicy"))}
}
diff --git a/config/listers/config/v1/clustermonitoring.go b/config/listers/config/v1alpha1/clustermonitoring.go
similarity index 58%
rename from config/listers/config/v1/clustermonitoring.go
rename to config/listers/config/v1alpha1/clustermonitoring.go
index e9ed085c1..50beb3f98 100644
--- a/config/listers/config/v1/clustermonitoring.go
+++ b/config/listers/config/v1alpha1/clustermonitoring.go
@@ -1,12 +1,12 @@
// Code generated by lister-gen. DO NOT EDIT.
-package v1
+package v1alpha1
import (
- v1 "github.com/openshift/api/config/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ configv1alpha1 "github.com/openshift/api/config/v1alpha1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ClusterMonitoringLister helps list ClusterMonitorings.
@@ -14,19 +14,19 @@ import (
type ClusterMonitoringLister interface {
// List lists all ClusterMonitorings in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.ClusterMonitoring, err error)
+ List(selector labels.Selector) (ret []*configv1alpha1.ClusterMonitoring, err error)
// Get retrieves the ClusterMonitoring from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.ClusterMonitoring, error)
+ Get(name string) (*configv1alpha1.ClusterMonitoring, error)
ClusterMonitoringListerExpansion
}
// clusterMonitoringLister implements the ClusterMonitoringLister interface.
type clusterMonitoringLister struct {
- listers.ResourceIndexer[*v1.ClusterMonitoring]
+ listers.ResourceIndexer[*configv1alpha1.ClusterMonitoring]
}
// NewClusterMonitoringLister returns a new ClusterMonitoringLister.
func NewClusterMonitoringLister(indexer cache.Indexer) ClusterMonitoringLister {
- return &clusterMonitoringLister{listers.New[*v1.ClusterMonitoring](indexer, v1.Resource("clustermonitoring"))}
+ return &clusterMonitoringLister{listers.New[*configv1alpha1.ClusterMonitoring](indexer, configv1alpha1.Resource("clustermonitoring"))}
}
diff --git a/config/listers/config/v1alpha1/expansion_generated.go b/config/listers/config/v1alpha1/expansion_generated.go
index 97e64a7cc..09b4d206d 100644
--- a/config/listers/config/v1alpha1/expansion_generated.go
+++ b/config/listers/config/v1alpha1/expansion_generated.go
@@ -10,6 +10,10 @@ type BackupListerExpansion interface{}
// ClusterImagePolicyLister.
type ClusterImagePolicyListerExpansion interface{}
+// ClusterMonitoringListerExpansion allows custom methods to be added to
+// ClusterMonitoringLister.
+type ClusterMonitoringListerExpansion interface{}
+
// ImagePolicyListerExpansion allows custom methods to be added to
// ImagePolicyLister.
type ImagePolicyListerExpansion interface{}
diff --git a/config/listers/config/v1alpha1/imagepolicy.go b/config/listers/config/v1alpha1/imagepolicy.go
index e5aa27161..7050c5771 100644
--- a/config/listers/config/v1alpha1/imagepolicy.go
+++ b/config/listers/config/v1alpha1/imagepolicy.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- v1alpha1 "github.com/openshift/api/config/v1alpha1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ configv1alpha1 "github.com/openshift/api/config/v1alpha1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ImagePolicyLister helps list ImagePolicies.
@@ -14,7 +14,7 @@ import (
type ImagePolicyLister interface {
// List lists all ImagePolicies in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1alpha1.ImagePolicy, err error)
+ List(selector labels.Selector) (ret []*configv1alpha1.ImagePolicy, err error)
// ImagePolicies returns an object that can list and get ImagePolicies.
ImagePolicies(namespace string) ImagePolicyNamespaceLister
ImagePolicyListerExpansion
@@ -22,17 +22,17 @@ type ImagePolicyLister interface {
// imagePolicyLister implements the ImagePolicyLister interface.
type imagePolicyLister struct {
- listers.ResourceIndexer[*v1alpha1.ImagePolicy]
+ listers.ResourceIndexer[*configv1alpha1.ImagePolicy]
}
// NewImagePolicyLister returns a new ImagePolicyLister.
func NewImagePolicyLister(indexer cache.Indexer) ImagePolicyLister {
- return &imagePolicyLister{listers.New[*v1alpha1.ImagePolicy](indexer, v1alpha1.Resource("imagepolicy"))}
+ return &imagePolicyLister{listers.New[*configv1alpha1.ImagePolicy](indexer, configv1alpha1.Resource("imagepolicy"))}
}
// ImagePolicies returns an object that can list and get ImagePolicies.
func (s *imagePolicyLister) ImagePolicies(namespace string) ImagePolicyNamespaceLister {
- return imagePolicyNamespaceLister{listers.NewNamespaced[*v1alpha1.ImagePolicy](s.ResourceIndexer, namespace)}
+ return imagePolicyNamespaceLister{listers.NewNamespaced[*configv1alpha1.ImagePolicy](s.ResourceIndexer, namespace)}
}
// ImagePolicyNamespaceLister helps list and get ImagePolicies.
@@ -40,15 +40,15 @@ func (s *imagePolicyLister) ImagePolicies(namespace string) ImagePolicyNamespace
type ImagePolicyNamespaceLister interface {
// List lists all ImagePolicies in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1alpha1.ImagePolicy, err error)
+ List(selector labels.Selector) (ret []*configv1alpha1.ImagePolicy, err error)
// Get retrieves the ImagePolicy from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1alpha1.ImagePolicy, error)
+ Get(name string) (*configv1alpha1.ImagePolicy, error)
ImagePolicyNamespaceListerExpansion
}
// imagePolicyNamespaceLister implements the ImagePolicyNamespaceLister
// interface.
type imagePolicyNamespaceLister struct {
- listers.ResourceIndexer[*v1alpha1.ImagePolicy]
+ listers.ResourceIndexer[*configv1alpha1.ImagePolicy]
}
diff --git a/config/listers/config/v1alpha1/insightsdatagather.go b/config/listers/config/v1alpha1/insightsdatagather.go
index 4885030b9..9328022a4 100644
--- a/config/listers/config/v1alpha1/insightsdatagather.go
+++ b/config/listers/config/v1alpha1/insightsdatagather.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- v1alpha1 "github.com/openshift/api/config/v1alpha1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ configv1alpha1 "github.com/openshift/api/config/v1alpha1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// InsightsDataGatherLister helps list InsightsDataGathers.
@@ -14,19 +14,19 @@ import (
type InsightsDataGatherLister interface {
// List lists all InsightsDataGathers in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1alpha1.InsightsDataGather, err error)
+ List(selector labels.Selector) (ret []*configv1alpha1.InsightsDataGather, err error)
// Get retrieves the InsightsDataGather from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1alpha1.InsightsDataGather, error)
+ Get(name string) (*configv1alpha1.InsightsDataGather, error)
InsightsDataGatherListerExpansion
}
// insightsDataGatherLister implements the InsightsDataGatherLister interface.
type insightsDataGatherLister struct {
- listers.ResourceIndexer[*v1alpha1.InsightsDataGather]
+ listers.ResourceIndexer[*configv1alpha1.InsightsDataGather]
}
// NewInsightsDataGatherLister returns a new InsightsDataGatherLister.
func NewInsightsDataGatherLister(indexer cache.Indexer) InsightsDataGatherLister {
- return &insightsDataGatherLister{listers.New[*v1alpha1.InsightsDataGather](indexer, v1alpha1.Resource("insightsdatagather"))}
+ return &insightsDataGatherLister{listers.New[*configv1alpha1.InsightsDataGather](indexer, configv1alpha1.Resource("insightsdatagather"))}
}
diff --git a/console/applyconfigurations/console/v1/consoleclidownload.go b/console/applyconfigurations/console/v1/consoleclidownload.go
index 8560cb614..295f8256e 100644
--- a/console/applyconfigurations/console/v1/consoleclidownload.go
+++ b/console/applyconfigurations/console/v1/consoleclidownload.go
@@ -3,20 +3,20 @@
package v1
import (
- apiconsolev1 "github.com/openshift/api/console/v1"
+ consolev1 "github.com/openshift/api/console/v1"
internal "github.com/openshift/client-go/console/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ConsoleCLIDownloadApplyConfiguration represents a declarative configuration of the ConsoleCLIDownload type for use
// with apply.
type ConsoleCLIDownloadApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *ConsoleCLIDownloadSpecApplyConfiguration `json:"spec,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *ConsoleCLIDownloadSpecApplyConfiguration `json:"spec,omitempty"`
}
// ConsoleCLIDownload constructs a declarative configuration of the ConsoleCLIDownload type for use with
@@ -40,18 +40,18 @@ func ConsoleCLIDownload(name string) *ConsoleCLIDownloadApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractConsoleCLIDownload(consoleCLIDownload *apiconsolev1.ConsoleCLIDownload, fieldManager string) (*ConsoleCLIDownloadApplyConfiguration, error) {
+func ExtractConsoleCLIDownload(consoleCLIDownload *consolev1.ConsoleCLIDownload, fieldManager string) (*ConsoleCLIDownloadApplyConfiguration, error) {
return extractConsoleCLIDownload(consoleCLIDownload, fieldManager, "")
}
// ExtractConsoleCLIDownloadStatus is the same as ExtractConsoleCLIDownload except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractConsoleCLIDownloadStatus(consoleCLIDownload *apiconsolev1.ConsoleCLIDownload, fieldManager string) (*ConsoleCLIDownloadApplyConfiguration, error) {
+func ExtractConsoleCLIDownloadStatus(consoleCLIDownload *consolev1.ConsoleCLIDownload, fieldManager string) (*ConsoleCLIDownloadApplyConfiguration, error) {
return extractConsoleCLIDownload(consoleCLIDownload, fieldManager, "status")
}
-func extractConsoleCLIDownload(consoleCLIDownload *apiconsolev1.ConsoleCLIDownload, fieldManager string, subresource string) (*ConsoleCLIDownloadApplyConfiguration, error) {
+func extractConsoleCLIDownload(consoleCLIDownload *consolev1.ConsoleCLIDownload, fieldManager string, subresource string) (*ConsoleCLIDownloadApplyConfiguration, error) {
b := &ConsoleCLIDownloadApplyConfiguration{}
err := managedfields.ExtractInto(consoleCLIDownload, internal.Parser().Type("com.github.openshift.api.console.v1.ConsoleCLIDownload"), fieldManager, b, subresource)
if err != nil {
@@ -68,7 +68,7 @@ func extractConsoleCLIDownload(consoleCLIDownload *apiconsolev1.ConsoleCLIDownlo
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ConsoleCLIDownloadApplyConfiguration) WithKind(value string) *ConsoleCLIDownloadApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -76,7 +76,7 @@ func (b *ConsoleCLIDownloadApplyConfiguration) WithKind(value string) *ConsoleCL
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ConsoleCLIDownloadApplyConfiguration) WithAPIVersion(value string) *ConsoleCLIDownloadApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -85,7 +85,7 @@ func (b *ConsoleCLIDownloadApplyConfiguration) WithAPIVersion(value string) *Con
// If called multiple times, the Name field is set to the value of the last call.
func (b *ConsoleCLIDownloadApplyConfiguration) WithName(value string) *ConsoleCLIDownloadApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -94,7 +94,7 @@ func (b *ConsoleCLIDownloadApplyConfiguration) WithName(value string) *ConsoleCL
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ConsoleCLIDownloadApplyConfiguration) WithGenerateName(value string) *ConsoleCLIDownloadApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -103,7 +103,7 @@ func (b *ConsoleCLIDownloadApplyConfiguration) WithGenerateName(value string) *C
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ConsoleCLIDownloadApplyConfiguration) WithNamespace(value string) *ConsoleCLIDownloadApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -112,7 +112,7 @@ func (b *ConsoleCLIDownloadApplyConfiguration) WithNamespace(value string) *Cons
// If called multiple times, the UID field is set to the value of the last call.
func (b *ConsoleCLIDownloadApplyConfiguration) WithUID(value types.UID) *ConsoleCLIDownloadApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -121,7 +121,7 @@ func (b *ConsoleCLIDownloadApplyConfiguration) WithUID(value types.UID) *Console
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ConsoleCLIDownloadApplyConfiguration) WithResourceVersion(value string) *ConsoleCLIDownloadApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -130,25 +130,25 @@ func (b *ConsoleCLIDownloadApplyConfiguration) WithResourceVersion(value string)
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ConsoleCLIDownloadApplyConfiguration) WithGeneration(value int64) *ConsoleCLIDownloadApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *ConsoleCLIDownloadApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ConsoleCLIDownloadApplyConfiguration {
+func (b *ConsoleCLIDownloadApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ConsoleCLIDownloadApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *ConsoleCLIDownloadApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ConsoleCLIDownloadApplyConfiguration {
+func (b *ConsoleCLIDownloadApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ConsoleCLIDownloadApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -157,7 +157,7 @@ func (b *ConsoleCLIDownloadApplyConfiguration) WithDeletionTimestamp(value metav
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ConsoleCLIDownloadApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ConsoleCLIDownloadApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -167,11 +167,11 @@ func (b *ConsoleCLIDownloadApplyConfiguration) WithDeletionGracePeriodSeconds(va
// overwriting an existing map entries in Labels field with the same key.
func (b *ConsoleCLIDownloadApplyConfiguration) WithLabels(entries map[string]string) *ConsoleCLIDownloadApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -182,11 +182,11 @@ func (b *ConsoleCLIDownloadApplyConfiguration) WithLabels(entries map[string]str
// overwriting an existing map entries in Annotations field with the same key.
func (b *ConsoleCLIDownloadApplyConfiguration) WithAnnotations(entries map[string]string) *ConsoleCLIDownloadApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -194,13 +194,13 @@ func (b *ConsoleCLIDownloadApplyConfiguration) WithAnnotations(entries map[strin
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *ConsoleCLIDownloadApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ConsoleCLIDownloadApplyConfiguration {
+func (b *ConsoleCLIDownloadApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ConsoleCLIDownloadApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -211,14 +211,14 @@ func (b *ConsoleCLIDownloadApplyConfiguration) WithOwnerReferences(values ...*v1
func (b *ConsoleCLIDownloadApplyConfiguration) WithFinalizers(values ...string) *ConsoleCLIDownloadApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *ConsoleCLIDownloadApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -233,5 +233,5 @@ func (b *ConsoleCLIDownloadApplyConfiguration) WithSpec(value *ConsoleCLIDownloa
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ConsoleCLIDownloadApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/console/applyconfigurations/console/v1/consoleexternalloglink.go b/console/applyconfigurations/console/v1/consoleexternalloglink.go
index 222b7c192..35998307b 100644
--- a/console/applyconfigurations/console/v1/consoleexternalloglink.go
+++ b/console/applyconfigurations/console/v1/consoleexternalloglink.go
@@ -3,20 +3,20 @@
package v1
import (
- apiconsolev1 "github.com/openshift/api/console/v1"
+ consolev1 "github.com/openshift/api/console/v1"
internal "github.com/openshift/client-go/console/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ConsoleExternalLogLinkApplyConfiguration represents a declarative configuration of the ConsoleExternalLogLink type for use
// with apply.
type ConsoleExternalLogLinkApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *ConsoleExternalLogLinkSpecApplyConfiguration `json:"spec,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *ConsoleExternalLogLinkSpecApplyConfiguration `json:"spec,omitempty"`
}
// ConsoleExternalLogLink constructs a declarative configuration of the ConsoleExternalLogLink type for use with
@@ -40,18 +40,18 @@ func ConsoleExternalLogLink(name string) *ConsoleExternalLogLinkApplyConfigurati
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractConsoleExternalLogLink(consoleExternalLogLink *apiconsolev1.ConsoleExternalLogLink, fieldManager string) (*ConsoleExternalLogLinkApplyConfiguration, error) {
+func ExtractConsoleExternalLogLink(consoleExternalLogLink *consolev1.ConsoleExternalLogLink, fieldManager string) (*ConsoleExternalLogLinkApplyConfiguration, error) {
return extractConsoleExternalLogLink(consoleExternalLogLink, fieldManager, "")
}
// ExtractConsoleExternalLogLinkStatus is the same as ExtractConsoleExternalLogLink except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractConsoleExternalLogLinkStatus(consoleExternalLogLink *apiconsolev1.ConsoleExternalLogLink, fieldManager string) (*ConsoleExternalLogLinkApplyConfiguration, error) {
+func ExtractConsoleExternalLogLinkStatus(consoleExternalLogLink *consolev1.ConsoleExternalLogLink, fieldManager string) (*ConsoleExternalLogLinkApplyConfiguration, error) {
return extractConsoleExternalLogLink(consoleExternalLogLink, fieldManager, "status")
}
-func extractConsoleExternalLogLink(consoleExternalLogLink *apiconsolev1.ConsoleExternalLogLink, fieldManager string, subresource string) (*ConsoleExternalLogLinkApplyConfiguration, error) {
+func extractConsoleExternalLogLink(consoleExternalLogLink *consolev1.ConsoleExternalLogLink, fieldManager string, subresource string) (*ConsoleExternalLogLinkApplyConfiguration, error) {
b := &ConsoleExternalLogLinkApplyConfiguration{}
err := managedfields.ExtractInto(consoleExternalLogLink, internal.Parser().Type("com.github.openshift.api.console.v1.ConsoleExternalLogLink"), fieldManager, b, subresource)
if err != nil {
@@ -68,7 +68,7 @@ func extractConsoleExternalLogLink(consoleExternalLogLink *apiconsolev1.ConsoleE
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ConsoleExternalLogLinkApplyConfiguration) WithKind(value string) *ConsoleExternalLogLinkApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -76,7 +76,7 @@ func (b *ConsoleExternalLogLinkApplyConfiguration) WithKind(value string) *Conso
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ConsoleExternalLogLinkApplyConfiguration) WithAPIVersion(value string) *ConsoleExternalLogLinkApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -85,7 +85,7 @@ func (b *ConsoleExternalLogLinkApplyConfiguration) WithAPIVersion(value string)
// If called multiple times, the Name field is set to the value of the last call.
func (b *ConsoleExternalLogLinkApplyConfiguration) WithName(value string) *ConsoleExternalLogLinkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -94,7 +94,7 @@ func (b *ConsoleExternalLogLinkApplyConfiguration) WithName(value string) *Conso
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ConsoleExternalLogLinkApplyConfiguration) WithGenerateName(value string) *ConsoleExternalLogLinkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -103,7 +103,7 @@ func (b *ConsoleExternalLogLinkApplyConfiguration) WithGenerateName(value string
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ConsoleExternalLogLinkApplyConfiguration) WithNamespace(value string) *ConsoleExternalLogLinkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -112,7 +112,7 @@ func (b *ConsoleExternalLogLinkApplyConfiguration) WithNamespace(value string) *
// If called multiple times, the UID field is set to the value of the last call.
func (b *ConsoleExternalLogLinkApplyConfiguration) WithUID(value types.UID) *ConsoleExternalLogLinkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -121,7 +121,7 @@ func (b *ConsoleExternalLogLinkApplyConfiguration) WithUID(value types.UID) *Con
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ConsoleExternalLogLinkApplyConfiguration) WithResourceVersion(value string) *ConsoleExternalLogLinkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -130,25 +130,25 @@ func (b *ConsoleExternalLogLinkApplyConfiguration) WithResourceVersion(value str
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ConsoleExternalLogLinkApplyConfiguration) WithGeneration(value int64) *ConsoleExternalLogLinkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *ConsoleExternalLogLinkApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ConsoleExternalLogLinkApplyConfiguration {
+func (b *ConsoleExternalLogLinkApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ConsoleExternalLogLinkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *ConsoleExternalLogLinkApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ConsoleExternalLogLinkApplyConfiguration {
+func (b *ConsoleExternalLogLinkApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ConsoleExternalLogLinkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -157,7 +157,7 @@ func (b *ConsoleExternalLogLinkApplyConfiguration) WithDeletionTimestamp(value m
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ConsoleExternalLogLinkApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ConsoleExternalLogLinkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -167,11 +167,11 @@ func (b *ConsoleExternalLogLinkApplyConfiguration) WithDeletionGracePeriodSecond
// overwriting an existing map entries in Labels field with the same key.
func (b *ConsoleExternalLogLinkApplyConfiguration) WithLabels(entries map[string]string) *ConsoleExternalLogLinkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -182,11 +182,11 @@ func (b *ConsoleExternalLogLinkApplyConfiguration) WithLabels(entries map[string
// overwriting an existing map entries in Annotations field with the same key.
func (b *ConsoleExternalLogLinkApplyConfiguration) WithAnnotations(entries map[string]string) *ConsoleExternalLogLinkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -194,13 +194,13 @@ func (b *ConsoleExternalLogLinkApplyConfiguration) WithAnnotations(entries map[s
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *ConsoleExternalLogLinkApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ConsoleExternalLogLinkApplyConfiguration {
+func (b *ConsoleExternalLogLinkApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ConsoleExternalLogLinkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -211,14 +211,14 @@ func (b *ConsoleExternalLogLinkApplyConfiguration) WithOwnerReferences(values ..
func (b *ConsoleExternalLogLinkApplyConfiguration) WithFinalizers(values ...string) *ConsoleExternalLogLinkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *ConsoleExternalLogLinkApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -233,5 +233,5 @@ func (b *ConsoleExternalLogLinkApplyConfiguration) WithSpec(value *ConsoleExtern
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ConsoleExternalLogLinkApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/console/applyconfigurations/console/v1/consolelink.go b/console/applyconfigurations/console/v1/consolelink.go
index 401827412..c3cd07d45 100644
--- a/console/applyconfigurations/console/v1/consolelink.go
+++ b/console/applyconfigurations/console/v1/consolelink.go
@@ -3,20 +3,20 @@
package v1
import (
- apiconsolev1 "github.com/openshift/api/console/v1"
+ consolev1 "github.com/openshift/api/console/v1"
internal "github.com/openshift/client-go/console/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ConsoleLinkApplyConfiguration represents a declarative configuration of the ConsoleLink type for use
// with apply.
type ConsoleLinkApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *ConsoleLinkSpecApplyConfiguration `json:"spec,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *ConsoleLinkSpecApplyConfiguration `json:"spec,omitempty"`
}
// ConsoleLink constructs a declarative configuration of the ConsoleLink type for use with
@@ -40,18 +40,18 @@ func ConsoleLink(name string) *ConsoleLinkApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractConsoleLink(consoleLink *apiconsolev1.ConsoleLink, fieldManager string) (*ConsoleLinkApplyConfiguration, error) {
+func ExtractConsoleLink(consoleLink *consolev1.ConsoleLink, fieldManager string) (*ConsoleLinkApplyConfiguration, error) {
return extractConsoleLink(consoleLink, fieldManager, "")
}
// ExtractConsoleLinkStatus is the same as ExtractConsoleLink except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractConsoleLinkStatus(consoleLink *apiconsolev1.ConsoleLink, fieldManager string) (*ConsoleLinkApplyConfiguration, error) {
+func ExtractConsoleLinkStatus(consoleLink *consolev1.ConsoleLink, fieldManager string) (*ConsoleLinkApplyConfiguration, error) {
return extractConsoleLink(consoleLink, fieldManager, "status")
}
-func extractConsoleLink(consoleLink *apiconsolev1.ConsoleLink, fieldManager string, subresource string) (*ConsoleLinkApplyConfiguration, error) {
+func extractConsoleLink(consoleLink *consolev1.ConsoleLink, fieldManager string, subresource string) (*ConsoleLinkApplyConfiguration, error) {
b := &ConsoleLinkApplyConfiguration{}
err := managedfields.ExtractInto(consoleLink, internal.Parser().Type("com.github.openshift.api.console.v1.ConsoleLink"), fieldManager, b, subresource)
if err != nil {
@@ -68,7 +68,7 @@ func extractConsoleLink(consoleLink *apiconsolev1.ConsoleLink, fieldManager stri
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ConsoleLinkApplyConfiguration) WithKind(value string) *ConsoleLinkApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -76,7 +76,7 @@ func (b *ConsoleLinkApplyConfiguration) WithKind(value string) *ConsoleLinkApply
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ConsoleLinkApplyConfiguration) WithAPIVersion(value string) *ConsoleLinkApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -85,7 +85,7 @@ func (b *ConsoleLinkApplyConfiguration) WithAPIVersion(value string) *ConsoleLin
// If called multiple times, the Name field is set to the value of the last call.
func (b *ConsoleLinkApplyConfiguration) WithName(value string) *ConsoleLinkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -94,7 +94,7 @@ func (b *ConsoleLinkApplyConfiguration) WithName(value string) *ConsoleLinkApply
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ConsoleLinkApplyConfiguration) WithGenerateName(value string) *ConsoleLinkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -103,7 +103,7 @@ func (b *ConsoleLinkApplyConfiguration) WithGenerateName(value string) *ConsoleL
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ConsoleLinkApplyConfiguration) WithNamespace(value string) *ConsoleLinkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -112,7 +112,7 @@ func (b *ConsoleLinkApplyConfiguration) WithNamespace(value string) *ConsoleLink
// If called multiple times, the UID field is set to the value of the last call.
func (b *ConsoleLinkApplyConfiguration) WithUID(value types.UID) *ConsoleLinkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -121,7 +121,7 @@ func (b *ConsoleLinkApplyConfiguration) WithUID(value types.UID) *ConsoleLinkApp
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ConsoleLinkApplyConfiguration) WithResourceVersion(value string) *ConsoleLinkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -130,25 +130,25 @@ func (b *ConsoleLinkApplyConfiguration) WithResourceVersion(value string) *Conso
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ConsoleLinkApplyConfiguration) WithGeneration(value int64) *ConsoleLinkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *ConsoleLinkApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ConsoleLinkApplyConfiguration {
+func (b *ConsoleLinkApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ConsoleLinkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *ConsoleLinkApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ConsoleLinkApplyConfiguration {
+func (b *ConsoleLinkApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ConsoleLinkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -157,7 +157,7 @@ func (b *ConsoleLinkApplyConfiguration) WithDeletionTimestamp(value metav1.Time)
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ConsoleLinkApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ConsoleLinkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -167,11 +167,11 @@ func (b *ConsoleLinkApplyConfiguration) WithDeletionGracePeriodSeconds(value int
// overwriting an existing map entries in Labels field with the same key.
func (b *ConsoleLinkApplyConfiguration) WithLabels(entries map[string]string) *ConsoleLinkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -182,11 +182,11 @@ func (b *ConsoleLinkApplyConfiguration) WithLabels(entries map[string]string) *C
// overwriting an existing map entries in Annotations field with the same key.
func (b *ConsoleLinkApplyConfiguration) WithAnnotations(entries map[string]string) *ConsoleLinkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -194,13 +194,13 @@ func (b *ConsoleLinkApplyConfiguration) WithAnnotations(entries map[string]strin
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *ConsoleLinkApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ConsoleLinkApplyConfiguration {
+func (b *ConsoleLinkApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ConsoleLinkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -211,14 +211,14 @@ func (b *ConsoleLinkApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerR
func (b *ConsoleLinkApplyConfiguration) WithFinalizers(values ...string) *ConsoleLinkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *ConsoleLinkApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -233,5 +233,5 @@ func (b *ConsoleLinkApplyConfiguration) WithSpec(value *ConsoleLinkSpecApplyConf
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ConsoleLinkApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/console/applyconfigurations/console/v1/consolelinkspec.go b/console/applyconfigurations/console/v1/consolelinkspec.go
index 9913966f4..151aaacfc 100644
--- a/console/applyconfigurations/console/v1/consolelinkspec.go
+++ b/console/applyconfigurations/console/v1/consolelinkspec.go
@@ -25,7 +25,7 @@ func ConsoleLinkSpec() *ConsoleLinkSpecApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Text field is set to the value of the last call.
func (b *ConsoleLinkSpecApplyConfiguration) WithText(value string) *ConsoleLinkSpecApplyConfiguration {
- b.Text = &value
+ b.LinkApplyConfiguration.Text = &value
return b
}
@@ -33,7 +33,7 @@ func (b *ConsoleLinkSpecApplyConfiguration) WithText(value string) *ConsoleLinkS
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Href field is set to the value of the last call.
func (b *ConsoleLinkSpecApplyConfiguration) WithHref(value string) *ConsoleLinkSpecApplyConfiguration {
- b.Href = &value
+ b.LinkApplyConfiguration.Href = &value
return b
}
diff --git a/console/applyconfigurations/console/v1/consolenotification.go b/console/applyconfigurations/console/v1/consolenotification.go
index b64384cdc..4d28c5902 100644
--- a/console/applyconfigurations/console/v1/consolenotification.go
+++ b/console/applyconfigurations/console/v1/consolenotification.go
@@ -3,20 +3,20 @@
package v1
import (
- apiconsolev1 "github.com/openshift/api/console/v1"
+ consolev1 "github.com/openshift/api/console/v1"
internal "github.com/openshift/client-go/console/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ConsoleNotificationApplyConfiguration represents a declarative configuration of the ConsoleNotification type for use
// with apply.
type ConsoleNotificationApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *ConsoleNotificationSpecApplyConfiguration `json:"spec,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *ConsoleNotificationSpecApplyConfiguration `json:"spec,omitempty"`
}
// ConsoleNotification constructs a declarative configuration of the ConsoleNotification type for use with
@@ -40,18 +40,18 @@ func ConsoleNotification(name string) *ConsoleNotificationApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractConsoleNotification(consoleNotification *apiconsolev1.ConsoleNotification, fieldManager string) (*ConsoleNotificationApplyConfiguration, error) {
+func ExtractConsoleNotification(consoleNotification *consolev1.ConsoleNotification, fieldManager string) (*ConsoleNotificationApplyConfiguration, error) {
return extractConsoleNotification(consoleNotification, fieldManager, "")
}
// ExtractConsoleNotificationStatus is the same as ExtractConsoleNotification except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractConsoleNotificationStatus(consoleNotification *apiconsolev1.ConsoleNotification, fieldManager string) (*ConsoleNotificationApplyConfiguration, error) {
+func ExtractConsoleNotificationStatus(consoleNotification *consolev1.ConsoleNotification, fieldManager string) (*ConsoleNotificationApplyConfiguration, error) {
return extractConsoleNotification(consoleNotification, fieldManager, "status")
}
-func extractConsoleNotification(consoleNotification *apiconsolev1.ConsoleNotification, fieldManager string, subresource string) (*ConsoleNotificationApplyConfiguration, error) {
+func extractConsoleNotification(consoleNotification *consolev1.ConsoleNotification, fieldManager string, subresource string) (*ConsoleNotificationApplyConfiguration, error) {
b := &ConsoleNotificationApplyConfiguration{}
err := managedfields.ExtractInto(consoleNotification, internal.Parser().Type("com.github.openshift.api.console.v1.ConsoleNotification"), fieldManager, b, subresource)
if err != nil {
@@ -68,7 +68,7 @@ func extractConsoleNotification(consoleNotification *apiconsolev1.ConsoleNotific
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ConsoleNotificationApplyConfiguration) WithKind(value string) *ConsoleNotificationApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -76,7 +76,7 @@ func (b *ConsoleNotificationApplyConfiguration) WithKind(value string) *ConsoleN
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ConsoleNotificationApplyConfiguration) WithAPIVersion(value string) *ConsoleNotificationApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -85,7 +85,7 @@ func (b *ConsoleNotificationApplyConfiguration) WithAPIVersion(value string) *Co
// If called multiple times, the Name field is set to the value of the last call.
func (b *ConsoleNotificationApplyConfiguration) WithName(value string) *ConsoleNotificationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -94,7 +94,7 @@ func (b *ConsoleNotificationApplyConfiguration) WithName(value string) *ConsoleN
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ConsoleNotificationApplyConfiguration) WithGenerateName(value string) *ConsoleNotificationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -103,7 +103,7 @@ func (b *ConsoleNotificationApplyConfiguration) WithGenerateName(value string) *
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ConsoleNotificationApplyConfiguration) WithNamespace(value string) *ConsoleNotificationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -112,7 +112,7 @@ func (b *ConsoleNotificationApplyConfiguration) WithNamespace(value string) *Con
// If called multiple times, the UID field is set to the value of the last call.
func (b *ConsoleNotificationApplyConfiguration) WithUID(value types.UID) *ConsoleNotificationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -121,7 +121,7 @@ func (b *ConsoleNotificationApplyConfiguration) WithUID(value types.UID) *Consol
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ConsoleNotificationApplyConfiguration) WithResourceVersion(value string) *ConsoleNotificationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -130,25 +130,25 @@ func (b *ConsoleNotificationApplyConfiguration) WithResourceVersion(value string
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ConsoleNotificationApplyConfiguration) WithGeneration(value int64) *ConsoleNotificationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *ConsoleNotificationApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ConsoleNotificationApplyConfiguration {
+func (b *ConsoleNotificationApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ConsoleNotificationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *ConsoleNotificationApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ConsoleNotificationApplyConfiguration {
+func (b *ConsoleNotificationApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ConsoleNotificationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -157,7 +157,7 @@ func (b *ConsoleNotificationApplyConfiguration) WithDeletionTimestamp(value meta
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ConsoleNotificationApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ConsoleNotificationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -167,11 +167,11 @@ func (b *ConsoleNotificationApplyConfiguration) WithDeletionGracePeriodSeconds(v
// overwriting an existing map entries in Labels field with the same key.
func (b *ConsoleNotificationApplyConfiguration) WithLabels(entries map[string]string) *ConsoleNotificationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -182,11 +182,11 @@ func (b *ConsoleNotificationApplyConfiguration) WithLabels(entries map[string]st
// overwriting an existing map entries in Annotations field with the same key.
func (b *ConsoleNotificationApplyConfiguration) WithAnnotations(entries map[string]string) *ConsoleNotificationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -194,13 +194,13 @@ func (b *ConsoleNotificationApplyConfiguration) WithAnnotations(entries map[stri
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *ConsoleNotificationApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ConsoleNotificationApplyConfiguration {
+func (b *ConsoleNotificationApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ConsoleNotificationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -211,14 +211,14 @@ func (b *ConsoleNotificationApplyConfiguration) WithOwnerReferences(values ...*v
func (b *ConsoleNotificationApplyConfiguration) WithFinalizers(values ...string) *ConsoleNotificationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *ConsoleNotificationApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -233,5 +233,5 @@ func (b *ConsoleNotificationApplyConfiguration) WithSpec(value *ConsoleNotificat
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ConsoleNotificationApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/console/applyconfigurations/console/v1/consolenotificationspec.go b/console/applyconfigurations/console/v1/consolenotificationspec.go
index 9735e7d9e..1f06e50ac 100644
--- a/console/applyconfigurations/console/v1/consolenotificationspec.go
+++ b/console/applyconfigurations/console/v1/consolenotificationspec.go
@@ -3,17 +3,17 @@
package v1
import (
- v1 "github.com/openshift/api/console/v1"
+ consolev1 "github.com/openshift/api/console/v1"
)
// ConsoleNotificationSpecApplyConfiguration represents a declarative configuration of the ConsoleNotificationSpec type for use
// with apply.
type ConsoleNotificationSpecApplyConfiguration struct {
- Text *string `json:"text,omitempty"`
- Location *v1.ConsoleNotificationLocation `json:"location,omitempty"`
- Link *LinkApplyConfiguration `json:"link,omitempty"`
- Color *string `json:"color,omitempty"`
- BackgroundColor *string `json:"backgroundColor,omitempty"`
+ Text *string `json:"text,omitempty"`
+ Location *consolev1.ConsoleNotificationLocation `json:"location,omitempty"`
+ Link *LinkApplyConfiguration `json:"link,omitempty"`
+ Color *string `json:"color,omitempty"`
+ BackgroundColor *string `json:"backgroundColor,omitempty"`
}
// ConsoleNotificationSpecApplyConfiguration constructs a declarative configuration of the ConsoleNotificationSpec type for use with
@@ -33,7 +33,7 @@ func (b *ConsoleNotificationSpecApplyConfiguration) WithText(value string) *Cons
// WithLocation sets the Location field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Location field is set to the value of the last call.
-func (b *ConsoleNotificationSpecApplyConfiguration) WithLocation(value v1.ConsoleNotificationLocation) *ConsoleNotificationSpecApplyConfiguration {
+func (b *ConsoleNotificationSpecApplyConfiguration) WithLocation(value consolev1.ConsoleNotificationLocation) *ConsoleNotificationSpecApplyConfiguration {
b.Location = &value
return b
}
diff --git a/console/applyconfigurations/console/v1/consoleplugin.go b/console/applyconfigurations/console/v1/consoleplugin.go
index 920cbd710..fd4bcc538 100644
--- a/console/applyconfigurations/console/v1/consoleplugin.go
+++ b/console/applyconfigurations/console/v1/consoleplugin.go
@@ -3,20 +3,20 @@
package v1
import (
- apiconsolev1 "github.com/openshift/api/console/v1"
+ consolev1 "github.com/openshift/api/console/v1"
internal "github.com/openshift/client-go/console/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ConsolePluginApplyConfiguration represents a declarative configuration of the ConsolePlugin type for use
// with apply.
type ConsolePluginApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *ConsolePluginSpecApplyConfiguration `json:"spec,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *ConsolePluginSpecApplyConfiguration `json:"spec,omitempty"`
}
// ConsolePlugin constructs a declarative configuration of the ConsolePlugin type for use with
@@ -40,18 +40,18 @@ func ConsolePlugin(name string) *ConsolePluginApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractConsolePlugin(consolePlugin *apiconsolev1.ConsolePlugin, fieldManager string) (*ConsolePluginApplyConfiguration, error) {
+func ExtractConsolePlugin(consolePlugin *consolev1.ConsolePlugin, fieldManager string) (*ConsolePluginApplyConfiguration, error) {
return extractConsolePlugin(consolePlugin, fieldManager, "")
}
// ExtractConsolePluginStatus is the same as ExtractConsolePlugin except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractConsolePluginStatus(consolePlugin *apiconsolev1.ConsolePlugin, fieldManager string) (*ConsolePluginApplyConfiguration, error) {
+func ExtractConsolePluginStatus(consolePlugin *consolev1.ConsolePlugin, fieldManager string) (*ConsolePluginApplyConfiguration, error) {
return extractConsolePlugin(consolePlugin, fieldManager, "status")
}
-func extractConsolePlugin(consolePlugin *apiconsolev1.ConsolePlugin, fieldManager string, subresource string) (*ConsolePluginApplyConfiguration, error) {
+func extractConsolePlugin(consolePlugin *consolev1.ConsolePlugin, fieldManager string, subresource string) (*ConsolePluginApplyConfiguration, error) {
b := &ConsolePluginApplyConfiguration{}
err := managedfields.ExtractInto(consolePlugin, internal.Parser().Type("com.github.openshift.api.console.v1.ConsolePlugin"), fieldManager, b, subresource)
if err != nil {
@@ -68,7 +68,7 @@ func extractConsolePlugin(consolePlugin *apiconsolev1.ConsolePlugin, fieldManage
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ConsolePluginApplyConfiguration) WithKind(value string) *ConsolePluginApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -76,7 +76,7 @@ func (b *ConsolePluginApplyConfiguration) WithKind(value string) *ConsolePluginA
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ConsolePluginApplyConfiguration) WithAPIVersion(value string) *ConsolePluginApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -85,7 +85,7 @@ func (b *ConsolePluginApplyConfiguration) WithAPIVersion(value string) *ConsoleP
// If called multiple times, the Name field is set to the value of the last call.
func (b *ConsolePluginApplyConfiguration) WithName(value string) *ConsolePluginApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -94,7 +94,7 @@ func (b *ConsolePluginApplyConfiguration) WithName(value string) *ConsolePluginA
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ConsolePluginApplyConfiguration) WithGenerateName(value string) *ConsolePluginApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -103,7 +103,7 @@ func (b *ConsolePluginApplyConfiguration) WithGenerateName(value string) *Consol
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ConsolePluginApplyConfiguration) WithNamespace(value string) *ConsolePluginApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -112,7 +112,7 @@ func (b *ConsolePluginApplyConfiguration) WithNamespace(value string) *ConsolePl
// If called multiple times, the UID field is set to the value of the last call.
func (b *ConsolePluginApplyConfiguration) WithUID(value types.UID) *ConsolePluginApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -121,7 +121,7 @@ func (b *ConsolePluginApplyConfiguration) WithUID(value types.UID) *ConsolePlugi
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ConsolePluginApplyConfiguration) WithResourceVersion(value string) *ConsolePluginApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -130,25 +130,25 @@ func (b *ConsolePluginApplyConfiguration) WithResourceVersion(value string) *Con
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ConsolePluginApplyConfiguration) WithGeneration(value int64) *ConsolePluginApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *ConsolePluginApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ConsolePluginApplyConfiguration {
+func (b *ConsolePluginApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ConsolePluginApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *ConsolePluginApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ConsolePluginApplyConfiguration {
+func (b *ConsolePluginApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ConsolePluginApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -157,7 +157,7 @@ func (b *ConsolePluginApplyConfiguration) WithDeletionTimestamp(value metav1.Tim
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ConsolePluginApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ConsolePluginApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -167,11 +167,11 @@ func (b *ConsolePluginApplyConfiguration) WithDeletionGracePeriodSeconds(value i
// overwriting an existing map entries in Labels field with the same key.
func (b *ConsolePluginApplyConfiguration) WithLabels(entries map[string]string) *ConsolePluginApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -182,11 +182,11 @@ func (b *ConsolePluginApplyConfiguration) WithLabels(entries map[string]string)
// overwriting an existing map entries in Annotations field with the same key.
func (b *ConsolePluginApplyConfiguration) WithAnnotations(entries map[string]string) *ConsolePluginApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -194,13 +194,13 @@ func (b *ConsolePluginApplyConfiguration) WithAnnotations(entries map[string]str
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *ConsolePluginApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ConsolePluginApplyConfiguration {
+func (b *ConsolePluginApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ConsolePluginApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -211,14 +211,14 @@ func (b *ConsolePluginApplyConfiguration) WithOwnerReferences(values ...*v1.Owne
func (b *ConsolePluginApplyConfiguration) WithFinalizers(values ...string) *ConsolePluginApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *ConsolePluginApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -233,5 +233,5 @@ func (b *ConsolePluginApplyConfiguration) WithSpec(value *ConsolePluginSpecApply
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ConsolePluginApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/console/applyconfigurations/console/v1/consolepluginbackend.go b/console/applyconfigurations/console/v1/consolepluginbackend.go
index 79c643561..03fe8ac93 100644
--- a/console/applyconfigurations/console/v1/consolepluginbackend.go
+++ b/console/applyconfigurations/console/v1/consolepluginbackend.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/console/v1"
+ consolev1 "github.com/openshift/api/console/v1"
)
// ConsolePluginBackendApplyConfiguration represents a declarative configuration of the ConsolePluginBackend type for use
// with apply.
type ConsolePluginBackendApplyConfiguration struct {
- Type *v1.ConsolePluginBackendType `json:"type,omitempty"`
+ Type *consolev1.ConsolePluginBackendType `json:"type,omitempty"`
Service *ConsolePluginServiceApplyConfiguration `json:"service,omitempty"`
}
@@ -22,7 +22,7 @@ func ConsolePluginBackend() *ConsolePluginBackendApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *ConsolePluginBackendApplyConfiguration) WithType(value v1.ConsolePluginBackendType) *ConsolePluginBackendApplyConfiguration {
+func (b *ConsolePluginBackendApplyConfiguration) WithType(value consolev1.ConsolePluginBackendType) *ConsolePluginBackendApplyConfiguration {
b.Type = &value
return b
}
diff --git a/console/applyconfigurations/console/v1/consoleplugincsp.go b/console/applyconfigurations/console/v1/consoleplugincsp.go
index d32c1dcbc..a837b06b7 100644
--- a/console/applyconfigurations/console/v1/consoleplugincsp.go
+++ b/console/applyconfigurations/console/v1/consoleplugincsp.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "github.com/openshift/api/console/v1"
+ consolev1 "github.com/openshift/api/console/v1"
)
// ConsolePluginCSPApplyConfiguration represents a declarative configuration of the ConsolePluginCSP type for use
// with apply.
type ConsolePluginCSPApplyConfiguration struct {
- Directive *v1.DirectiveType `json:"directive,omitempty"`
- Values []v1.CSPDirectiveValue `json:"values,omitempty"`
+ Directive *consolev1.DirectiveType `json:"directive,omitempty"`
+ Values []consolev1.CSPDirectiveValue `json:"values,omitempty"`
}
// ConsolePluginCSPApplyConfiguration constructs a declarative configuration of the ConsolePluginCSP type for use with
@@ -22,7 +22,7 @@ func ConsolePluginCSP() *ConsolePluginCSPApplyConfiguration {
// WithDirective sets the Directive field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Directive field is set to the value of the last call.
-func (b *ConsolePluginCSPApplyConfiguration) WithDirective(value v1.DirectiveType) *ConsolePluginCSPApplyConfiguration {
+func (b *ConsolePluginCSPApplyConfiguration) WithDirective(value consolev1.DirectiveType) *ConsolePluginCSPApplyConfiguration {
b.Directive = &value
return b
}
@@ -30,7 +30,7 @@ func (b *ConsolePluginCSPApplyConfiguration) WithDirective(value v1.DirectiveTyp
// WithValues adds the given value to the Values field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Values field.
-func (b *ConsolePluginCSPApplyConfiguration) WithValues(values ...v1.CSPDirectiveValue) *ConsolePluginCSPApplyConfiguration {
+func (b *ConsolePluginCSPApplyConfiguration) WithValues(values ...consolev1.CSPDirectiveValue) *ConsolePluginCSPApplyConfiguration {
for i := range values {
b.Values = append(b.Values, values[i])
}
diff --git a/console/applyconfigurations/console/v1/consoleplugini18n.go b/console/applyconfigurations/console/v1/consoleplugini18n.go
index 2928e6269..050b3bbd7 100644
--- a/console/applyconfigurations/console/v1/consoleplugini18n.go
+++ b/console/applyconfigurations/console/v1/consoleplugini18n.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/console/v1"
+ consolev1 "github.com/openshift/api/console/v1"
)
// ConsolePluginI18nApplyConfiguration represents a declarative configuration of the ConsolePluginI18n type for use
// with apply.
type ConsolePluginI18nApplyConfiguration struct {
- LoadType *v1.LoadType `json:"loadType,omitempty"`
+ LoadType *consolev1.LoadType `json:"loadType,omitempty"`
}
// ConsolePluginI18nApplyConfiguration constructs a declarative configuration of the ConsolePluginI18n type for use with
@@ -21,7 +21,7 @@ func ConsolePluginI18n() *ConsolePluginI18nApplyConfiguration {
// WithLoadType sets the LoadType field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LoadType field is set to the value of the last call.
-func (b *ConsolePluginI18nApplyConfiguration) WithLoadType(value v1.LoadType) *ConsolePluginI18nApplyConfiguration {
+func (b *ConsolePluginI18nApplyConfiguration) WithLoadType(value consolev1.LoadType) *ConsolePluginI18nApplyConfiguration {
b.LoadType = &value
return b
}
diff --git a/console/applyconfigurations/console/v1/consolepluginproxyendpoint.go b/console/applyconfigurations/console/v1/consolepluginproxyendpoint.go
index ef7944a06..2a6b8bad5 100644
--- a/console/applyconfigurations/console/v1/consolepluginproxyendpoint.go
+++ b/console/applyconfigurations/console/v1/consolepluginproxyendpoint.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/console/v1"
+ consolev1 "github.com/openshift/api/console/v1"
)
// ConsolePluginProxyEndpointApplyConfiguration represents a declarative configuration of the ConsolePluginProxyEndpoint type for use
// with apply.
type ConsolePluginProxyEndpointApplyConfiguration struct {
- Type *v1.ConsolePluginProxyType `json:"type,omitempty"`
+ Type *consolev1.ConsolePluginProxyType `json:"type,omitempty"`
Service *ConsolePluginProxyServiceConfigApplyConfiguration `json:"service,omitempty"`
}
@@ -22,7 +22,7 @@ func ConsolePluginProxyEndpoint() *ConsolePluginProxyEndpointApplyConfiguration
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *ConsolePluginProxyEndpointApplyConfiguration) WithType(value v1.ConsolePluginProxyType) *ConsolePluginProxyEndpointApplyConfiguration {
+func (b *ConsolePluginProxyEndpointApplyConfiguration) WithType(value consolev1.ConsolePluginProxyType) *ConsolePluginProxyEndpointApplyConfiguration {
b.Type = &value
return b
}
diff --git a/console/applyconfigurations/console/v1/consolequickstart.go b/console/applyconfigurations/console/v1/consolequickstart.go
index 319287c7c..290c83ec8 100644
--- a/console/applyconfigurations/console/v1/consolequickstart.go
+++ b/console/applyconfigurations/console/v1/consolequickstart.go
@@ -3,20 +3,20 @@
package v1
import (
- apiconsolev1 "github.com/openshift/api/console/v1"
+ consolev1 "github.com/openshift/api/console/v1"
internal "github.com/openshift/client-go/console/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ConsoleQuickStartApplyConfiguration represents a declarative configuration of the ConsoleQuickStart type for use
// with apply.
type ConsoleQuickStartApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *ConsoleQuickStartSpecApplyConfiguration `json:"spec,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *ConsoleQuickStartSpecApplyConfiguration `json:"spec,omitempty"`
}
// ConsoleQuickStart constructs a declarative configuration of the ConsoleQuickStart type for use with
@@ -40,18 +40,18 @@ func ConsoleQuickStart(name string) *ConsoleQuickStartApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractConsoleQuickStart(consoleQuickStart *apiconsolev1.ConsoleQuickStart, fieldManager string) (*ConsoleQuickStartApplyConfiguration, error) {
+func ExtractConsoleQuickStart(consoleQuickStart *consolev1.ConsoleQuickStart, fieldManager string) (*ConsoleQuickStartApplyConfiguration, error) {
return extractConsoleQuickStart(consoleQuickStart, fieldManager, "")
}
// ExtractConsoleQuickStartStatus is the same as ExtractConsoleQuickStart except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractConsoleQuickStartStatus(consoleQuickStart *apiconsolev1.ConsoleQuickStart, fieldManager string) (*ConsoleQuickStartApplyConfiguration, error) {
+func ExtractConsoleQuickStartStatus(consoleQuickStart *consolev1.ConsoleQuickStart, fieldManager string) (*ConsoleQuickStartApplyConfiguration, error) {
return extractConsoleQuickStart(consoleQuickStart, fieldManager, "status")
}
-func extractConsoleQuickStart(consoleQuickStart *apiconsolev1.ConsoleQuickStart, fieldManager string, subresource string) (*ConsoleQuickStartApplyConfiguration, error) {
+func extractConsoleQuickStart(consoleQuickStart *consolev1.ConsoleQuickStart, fieldManager string, subresource string) (*ConsoleQuickStartApplyConfiguration, error) {
b := &ConsoleQuickStartApplyConfiguration{}
err := managedfields.ExtractInto(consoleQuickStart, internal.Parser().Type("com.github.openshift.api.console.v1.ConsoleQuickStart"), fieldManager, b, subresource)
if err != nil {
@@ -68,7 +68,7 @@ func extractConsoleQuickStart(consoleQuickStart *apiconsolev1.ConsoleQuickStart,
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ConsoleQuickStartApplyConfiguration) WithKind(value string) *ConsoleQuickStartApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -76,7 +76,7 @@ func (b *ConsoleQuickStartApplyConfiguration) WithKind(value string) *ConsoleQui
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ConsoleQuickStartApplyConfiguration) WithAPIVersion(value string) *ConsoleQuickStartApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -85,7 +85,7 @@ func (b *ConsoleQuickStartApplyConfiguration) WithAPIVersion(value string) *Cons
// If called multiple times, the Name field is set to the value of the last call.
func (b *ConsoleQuickStartApplyConfiguration) WithName(value string) *ConsoleQuickStartApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -94,7 +94,7 @@ func (b *ConsoleQuickStartApplyConfiguration) WithName(value string) *ConsoleQui
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ConsoleQuickStartApplyConfiguration) WithGenerateName(value string) *ConsoleQuickStartApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -103,7 +103,7 @@ func (b *ConsoleQuickStartApplyConfiguration) WithGenerateName(value string) *Co
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ConsoleQuickStartApplyConfiguration) WithNamespace(value string) *ConsoleQuickStartApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -112,7 +112,7 @@ func (b *ConsoleQuickStartApplyConfiguration) WithNamespace(value string) *Conso
// If called multiple times, the UID field is set to the value of the last call.
func (b *ConsoleQuickStartApplyConfiguration) WithUID(value types.UID) *ConsoleQuickStartApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -121,7 +121,7 @@ func (b *ConsoleQuickStartApplyConfiguration) WithUID(value types.UID) *ConsoleQ
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ConsoleQuickStartApplyConfiguration) WithResourceVersion(value string) *ConsoleQuickStartApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -130,25 +130,25 @@ func (b *ConsoleQuickStartApplyConfiguration) WithResourceVersion(value string)
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ConsoleQuickStartApplyConfiguration) WithGeneration(value int64) *ConsoleQuickStartApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *ConsoleQuickStartApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ConsoleQuickStartApplyConfiguration {
+func (b *ConsoleQuickStartApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ConsoleQuickStartApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *ConsoleQuickStartApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ConsoleQuickStartApplyConfiguration {
+func (b *ConsoleQuickStartApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ConsoleQuickStartApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -157,7 +157,7 @@ func (b *ConsoleQuickStartApplyConfiguration) WithDeletionTimestamp(value metav1
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ConsoleQuickStartApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ConsoleQuickStartApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -167,11 +167,11 @@ func (b *ConsoleQuickStartApplyConfiguration) WithDeletionGracePeriodSeconds(val
// overwriting an existing map entries in Labels field with the same key.
func (b *ConsoleQuickStartApplyConfiguration) WithLabels(entries map[string]string) *ConsoleQuickStartApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -182,11 +182,11 @@ func (b *ConsoleQuickStartApplyConfiguration) WithLabels(entries map[string]stri
// overwriting an existing map entries in Annotations field with the same key.
func (b *ConsoleQuickStartApplyConfiguration) WithAnnotations(entries map[string]string) *ConsoleQuickStartApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -194,13 +194,13 @@ func (b *ConsoleQuickStartApplyConfiguration) WithAnnotations(entries map[string
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *ConsoleQuickStartApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ConsoleQuickStartApplyConfiguration {
+func (b *ConsoleQuickStartApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ConsoleQuickStartApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -211,14 +211,14 @@ func (b *ConsoleQuickStartApplyConfiguration) WithOwnerReferences(values ...*v1.
func (b *ConsoleQuickStartApplyConfiguration) WithFinalizers(values ...string) *ConsoleQuickStartApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *ConsoleQuickStartApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -233,5 +233,5 @@ func (b *ConsoleQuickStartApplyConfiguration) WithSpec(value *ConsoleQuickStartS
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ConsoleQuickStartApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/console/applyconfigurations/console/v1/consolesample.go b/console/applyconfigurations/console/v1/consolesample.go
index fccc1c478..1d9d99fcd 100644
--- a/console/applyconfigurations/console/v1/consolesample.go
+++ b/console/applyconfigurations/console/v1/consolesample.go
@@ -3,20 +3,20 @@
package v1
import (
- apiconsolev1 "github.com/openshift/api/console/v1"
+ consolev1 "github.com/openshift/api/console/v1"
internal "github.com/openshift/client-go/console/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ConsoleSampleApplyConfiguration represents a declarative configuration of the ConsoleSample type for use
// with apply.
type ConsoleSampleApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *ConsoleSampleSpecApplyConfiguration `json:"spec,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *ConsoleSampleSpecApplyConfiguration `json:"spec,omitempty"`
}
// ConsoleSample constructs a declarative configuration of the ConsoleSample type for use with
@@ -40,18 +40,18 @@ func ConsoleSample(name string) *ConsoleSampleApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractConsoleSample(consoleSample *apiconsolev1.ConsoleSample, fieldManager string) (*ConsoleSampleApplyConfiguration, error) {
+func ExtractConsoleSample(consoleSample *consolev1.ConsoleSample, fieldManager string) (*ConsoleSampleApplyConfiguration, error) {
return extractConsoleSample(consoleSample, fieldManager, "")
}
// ExtractConsoleSampleStatus is the same as ExtractConsoleSample except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractConsoleSampleStatus(consoleSample *apiconsolev1.ConsoleSample, fieldManager string) (*ConsoleSampleApplyConfiguration, error) {
+func ExtractConsoleSampleStatus(consoleSample *consolev1.ConsoleSample, fieldManager string) (*ConsoleSampleApplyConfiguration, error) {
return extractConsoleSample(consoleSample, fieldManager, "status")
}
-func extractConsoleSample(consoleSample *apiconsolev1.ConsoleSample, fieldManager string, subresource string) (*ConsoleSampleApplyConfiguration, error) {
+func extractConsoleSample(consoleSample *consolev1.ConsoleSample, fieldManager string, subresource string) (*ConsoleSampleApplyConfiguration, error) {
b := &ConsoleSampleApplyConfiguration{}
err := managedfields.ExtractInto(consoleSample, internal.Parser().Type("com.github.openshift.api.console.v1.ConsoleSample"), fieldManager, b, subresource)
if err != nil {
@@ -68,7 +68,7 @@ func extractConsoleSample(consoleSample *apiconsolev1.ConsoleSample, fieldManage
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ConsoleSampleApplyConfiguration) WithKind(value string) *ConsoleSampleApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -76,7 +76,7 @@ func (b *ConsoleSampleApplyConfiguration) WithKind(value string) *ConsoleSampleA
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ConsoleSampleApplyConfiguration) WithAPIVersion(value string) *ConsoleSampleApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -85,7 +85,7 @@ func (b *ConsoleSampleApplyConfiguration) WithAPIVersion(value string) *ConsoleS
// If called multiple times, the Name field is set to the value of the last call.
func (b *ConsoleSampleApplyConfiguration) WithName(value string) *ConsoleSampleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -94,7 +94,7 @@ func (b *ConsoleSampleApplyConfiguration) WithName(value string) *ConsoleSampleA
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ConsoleSampleApplyConfiguration) WithGenerateName(value string) *ConsoleSampleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -103,7 +103,7 @@ func (b *ConsoleSampleApplyConfiguration) WithGenerateName(value string) *Consol
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ConsoleSampleApplyConfiguration) WithNamespace(value string) *ConsoleSampleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -112,7 +112,7 @@ func (b *ConsoleSampleApplyConfiguration) WithNamespace(value string) *ConsoleSa
// If called multiple times, the UID field is set to the value of the last call.
func (b *ConsoleSampleApplyConfiguration) WithUID(value types.UID) *ConsoleSampleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -121,7 +121,7 @@ func (b *ConsoleSampleApplyConfiguration) WithUID(value types.UID) *ConsoleSampl
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ConsoleSampleApplyConfiguration) WithResourceVersion(value string) *ConsoleSampleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -130,25 +130,25 @@ func (b *ConsoleSampleApplyConfiguration) WithResourceVersion(value string) *Con
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ConsoleSampleApplyConfiguration) WithGeneration(value int64) *ConsoleSampleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *ConsoleSampleApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ConsoleSampleApplyConfiguration {
+func (b *ConsoleSampleApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ConsoleSampleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *ConsoleSampleApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ConsoleSampleApplyConfiguration {
+func (b *ConsoleSampleApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ConsoleSampleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -157,7 +157,7 @@ func (b *ConsoleSampleApplyConfiguration) WithDeletionTimestamp(value metav1.Tim
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ConsoleSampleApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ConsoleSampleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -167,11 +167,11 @@ func (b *ConsoleSampleApplyConfiguration) WithDeletionGracePeriodSeconds(value i
// overwriting an existing map entries in Labels field with the same key.
func (b *ConsoleSampleApplyConfiguration) WithLabels(entries map[string]string) *ConsoleSampleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -182,11 +182,11 @@ func (b *ConsoleSampleApplyConfiguration) WithLabels(entries map[string]string)
// overwriting an existing map entries in Annotations field with the same key.
func (b *ConsoleSampleApplyConfiguration) WithAnnotations(entries map[string]string) *ConsoleSampleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -194,13 +194,13 @@ func (b *ConsoleSampleApplyConfiguration) WithAnnotations(entries map[string]str
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *ConsoleSampleApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ConsoleSampleApplyConfiguration {
+func (b *ConsoleSampleApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ConsoleSampleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -211,14 +211,14 @@ func (b *ConsoleSampleApplyConfiguration) WithOwnerReferences(values ...*v1.Owne
func (b *ConsoleSampleApplyConfiguration) WithFinalizers(values ...string) *ConsoleSampleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *ConsoleSampleApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -233,5 +233,5 @@ func (b *ConsoleSampleApplyConfiguration) WithSpec(value *ConsoleSampleSpecApply
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ConsoleSampleApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/console/applyconfigurations/console/v1/consolesamplesource.go b/console/applyconfigurations/console/v1/consolesamplesource.go
index 9aa774ef0..372a6c7d7 100644
--- a/console/applyconfigurations/console/v1/consolesamplesource.go
+++ b/console/applyconfigurations/console/v1/consolesamplesource.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/console/v1"
+ consolev1 "github.com/openshift/api/console/v1"
)
// ConsoleSampleSourceApplyConfiguration represents a declarative configuration of the ConsoleSampleSource type for use
// with apply.
type ConsoleSampleSourceApplyConfiguration struct {
- Type *v1.ConsoleSampleSourceType `json:"type,omitempty"`
+ Type *consolev1.ConsoleSampleSourceType `json:"type,omitempty"`
GitImport *ConsoleSampleGitImportSourceApplyConfiguration `json:"gitImport,omitempty"`
ContainerImport *ConsoleSampleContainerImportSourceApplyConfiguration `json:"containerImport,omitempty"`
}
@@ -23,7 +23,7 @@ func ConsoleSampleSource() *ConsoleSampleSourceApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *ConsoleSampleSourceApplyConfiguration) WithType(value v1.ConsoleSampleSourceType) *ConsoleSampleSourceApplyConfiguration {
+func (b *ConsoleSampleSourceApplyConfiguration) WithType(value consolev1.ConsoleSampleSourceType) *ConsoleSampleSourceApplyConfiguration {
b.Type = &value
return b
}
diff --git a/console/applyconfigurations/console/v1/consoleyamlsample.go b/console/applyconfigurations/console/v1/consoleyamlsample.go
index 3b096d155..c9a7c7282 100644
--- a/console/applyconfigurations/console/v1/consoleyamlsample.go
+++ b/console/applyconfigurations/console/v1/consoleyamlsample.go
@@ -3,20 +3,20 @@
package v1
import (
- apiconsolev1 "github.com/openshift/api/console/v1"
+ consolev1 "github.com/openshift/api/console/v1"
internal "github.com/openshift/client-go/console/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ConsoleYAMLSampleApplyConfiguration represents a declarative configuration of the ConsoleYAMLSample type for use
// with apply.
type ConsoleYAMLSampleApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *ConsoleYAMLSampleSpecApplyConfiguration `json:"spec,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *ConsoleYAMLSampleSpecApplyConfiguration `json:"spec,omitempty"`
}
// ConsoleYAMLSample constructs a declarative configuration of the ConsoleYAMLSample type for use with
@@ -40,18 +40,18 @@ func ConsoleYAMLSample(name string) *ConsoleYAMLSampleApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractConsoleYAMLSample(consoleYAMLSample *apiconsolev1.ConsoleYAMLSample, fieldManager string) (*ConsoleYAMLSampleApplyConfiguration, error) {
+func ExtractConsoleYAMLSample(consoleYAMLSample *consolev1.ConsoleYAMLSample, fieldManager string) (*ConsoleYAMLSampleApplyConfiguration, error) {
return extractConsoleYAMLSample(consoleYAMLSample, fieldManager, "")
}
// ExtractConsoleYAMLSampleStatus is the same as ExtractConsoleYAMLSample except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractConsoleYAMLSampleStatus(consoleYAMLSample *apiconsolev1.ConsoleYAMLSample, fieldManager string) (*ConsoleYAMLSampleApplyConfiguration, error) {
+func ExtractConsoleYAMLSampleStatus(consoleYAMLSample *consolev1.ConsoleYAMLSample, fieldManager string) (*ConsoleYAMLSampleApplyConfiguration, error) {
return extractConsoleYAMLSample(consoleYAMLSample, fieldManager, "status")
}
-func extractConsoleYAMLSample(consoleYAMLSample *apiconsolev1.ConsoleYAMLSample, fieldManager string, subresource string) (*ConsoleYAMLSampleApplyConfiguration, error) {
+func extractConsoleYAMLSample(consoleYAMLSample *consolev1.ConsoleYAMLSample, fieldManager string, subresource string) (*ConsoleYAMLSampleApplyConfiguration, error) {
b := &ConsoleYAMLSampleApplyConfiguration{}
err := managedfields.ExtractInto(consoleYAMLSample, internal.Parser().Type("com.github.openshift.api.console.v1.ConsoleYAMLSample"), fieldManager, b, subresource)
if err != nil {
@@ -68,7 +68,7 @@ func extractConsoleYAMLSample(consoleYAMLSample *apiconsolev1.ConsoleYAMLSample,
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ConsoleYAMLSampleApplyConfiguration) WithKind(value string) *ConsoleYAMLSampleApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -76,7 +76,7 @@ func (b *ConsoleYAMLSampleApplyConfiguration) WithKind(value string) *ConsoleYAM
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ConsoleYAMLSampleApplyConfiguration) WithAPIVersion(value string) *ConsoleYAMLSampleApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -85,7 +85,7 @@ func (b *ConsoleYAMLSampleApplyConfiguration) WithAPIVersion(value string) *Cons
// If called multiple times, the Name field is set to the value of the last call.
func (b *ConsoleYAMLSampleApplyConfiguration) WithName(value string) *ConsoleYAMLSampleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -94,7 +94,7 @@ func (b *ConsoleYAMLSampleApplyConfiguration) WithName(value string) *ConsoleYAM
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ConsoleYAMLSampleApplyConfiguration) WithGenerateName(value string) *ConsoleYAMLSampleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -103,7 +103,7 @@ func (b *ConsoleYAMLSampleApplyConfiguration) WithGenerateName(value string) *Co
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ConsoleYAMLSampleApplyConfiguration) WithNamespace(value string) *ConsoleYAMLSampleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -112,7 +112,7 @@ func (b *ConsoleYAMLSampleApplyConfiguration) WithNamespace(value string) *Conso
// If called multiple times, the UID field is set to the value of the last call.
func (b *ConsoleYAMLSampleApplyConfiguration) WithUID(value types.UID) *ConsoleYAMLSampleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -121,7 +121,7 @@ func (b *ConsoleYAMLSampleApplyConfiguration) WithUID(value types.UID) *ConsoleY
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ConsoleYAMLSampleApplyConfiguration) WithResourceVersion(value string) *ConsoleYAMLSampleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -130,25 +130,25 @@ func (b *ConsoleYAMLSampleApplyConfiguration) WithResourceVersion(value string)
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ConsoleYAMLSampleApplyConfiguration) WithGeneration(value int64) *ConsoleYAMLSampleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *ConsoleYAMLSampleApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ConsoleYAMLSampleApplyConfiguration {
+func (b *ConsoleYAMLSampleApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ConsoleYAMLSampleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *ConsoleYAMLSampleApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ConsoleYAMLSampleApplyConfiguration {
+func (b *ConsoleYAMLSampleApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ConsoleYAMLSampleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -157,7 +157,7 @@ func (b *ConsoleYAMLSampleApplyConfiguration) WithDeletionTimestamp(value metav1
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ConsoleYAMLSampleApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ConsoleYAMLSampleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -167,11 +167,11 @@ func (b *ConsoleYAMLSampleApplyConfiguration) WithDeletionGracePeriodSeconds(val
// overwriting an existing map entries in Labels field with the same key.
func (b *ConsoleYAMLSampleApplyConfiguration) WithLabels(entries map[string]string) *ConsoleYAMLSampleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -182,11 +182,11 @@ func (b *ConsoleYAMLSampleApplyConfiguration) WithLabels(entries map[string]stri
// overwriting an existing map entries in Annotations field with the same key.
func (b *ConsoleYAMLSampleApplyConfiguration) WithAnnotations(entries map[string]string) *ConsoleYAMLSampleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -194,13 +194,13 @@ func (b *ConsoleYAMLSampleApplyConfiguration) WithAnnotations(entries map[string
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *ConsoleYAMLSampleApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ConsoleYAMLSampleApplyConfiguration {
+func (b *ConsoleYAMLSampleApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ConsoleYAMLSampleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -211,14 +211,14 @@ func (b *ConsoleYAMLSampleApplyConfiguration) WithOwnerReferences(values ...*v1.
func (b *ConsoleYAMLSampleApplyConfiguration) WithFinalizers(values ...string) *ConsoleYAMLSampleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *ConsoleYAMLSampleApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -233,5 +233,5 @@ func (b *ConsoleYAMLSampleApplyConfiguration) WithSpec(value *ConsoleYAMLSampleS
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ConsoleYAMLSampleApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/console/applyconfigurations/console/v1/consoleyamlsamplespec.go b/console/applyconfigurations/console/v1/consoleyamlsamplespec.go
index c2b1384cb..d5fee7bc1 100644
--- a/console/applyconfigurations/console/v1/consoleyamlsamplespec.go
+++ b/console/applyconfigurations/console/v1/consoleyamlsamplespec.go
@@ -4,13 +4,13 @@ package v1
import (
consolev1 "github.com/openshift/api/console/v1"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ConsoleYAMLSampleSpecApplyConfiguration represents a declarative configuration of the ConsoleYAMLSampleSpec type for use
// with apply.
type ConsoleYAMLSampleSpecApplyConfiguration struct {
- TargetResource *v1.TypeMetaApplyConfiguration `json:"targetResource,omitempty"`
+ TargetResource *metav1.TypeMetaApplyConfiguration `json:"targetResource,omitempty"`
Title *consolev1.ConsoleYAMLSampleTitle `json:"title,omitempty"`
Description *consolev1.ConsoleYAMLSampleDescription `json:"description,omitempty"`
YAML *consolev1.ConsoleYAMLSampleYAML `json:"yaml,omitempty"`
@@ -26,7 +26,7 @@ func ConsoleYAMLSampleSpec() *ConsoleYAMLSampleSpecApplyConfiguration {
// WithTargetResource sets the TargetResource field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the TargetResource field is set to the value of the last call.
-func (b *ConsoleYAMLSampleSpecApplyConfiguration) WithTargetResource(value *v1.TypeMetaApplyConfiguration) *ConsoleYAMLSampleSpecApplyConfiguration {
+func (b *ConsoleYAMLSampleSpecApplyConfiguration) WithTargetResource(value *metav1.TypeMetaApplyConfiguration) *ConsoleYAMLSampleSpecApplyConfiguration {
b.TargetResource = value
return b
}
diff --git a/console/applyconfigurations/console/v1/namespacedashboardspec.go b/console/applyconfigurations/console/v1/namespacedashboardspec.go
index f310ae46d..6731ab5a2 100644
--- a/console/applyconfigurations/console/v1/namespacedashboardspec.go
+++ b/console/applyconfigurations/console/v1/namespacedashboardspec.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// NamespaceDashboardSpecApplyConfiguration represents a declarative configuration of the NamespaceDashboardSpec type for use
// with apply.
type NamespaceDashboardSpecApplyConfiguration struct {
- Namespaces []string `json:"namespaces,omitempty"`
- NamespaceSelector *v1.LabelSelectorApplyConfiguration `json:"namespaceSelector,omitempty"`
+ Namespaces []string `json:"namespaces,omitempty"`
+ NamespaceSelector *metav1.LabelSelectorApplyConfiguration `json:"namespaceSelector,omitempty"`
}
// NamespaceDashboardSpecApplyConfiguration constructs a declarative configuration of the NamespaceDashboardSpec type for use with
@@ -32,7 +32,7 @@ func (b *NamespaceDashboardSpecApplyConfiguration) WithNamespaces(values ...stri
// WithNamespaceSelector sets the NamespaceSelector field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the NamespaceSelector field is set to the value of the last call.
-func (b *NamespaceDashboardSpecApplyConfiguration) WithNamespaceSelector(value *v1.LabelSelectorApplyConfiguration) *NamespaceDashboardSpecApplyConfiguration {
+func (b *NamespaceDashboardSpecApplyConfiguration) WithNamespaceSelector(value *metav1.LabelSelectorApplyConfiguration) *NamespaceDashboardSpecApplyConfiguration {
b.NamespaceSelector = value
return b
}
diff --git a/console/applyconfigurations/internal/internal.go b/console/applyconfigurations/internal/internal.go
index efa08520a..d60d9e0cf 100644
--- a/console/applyconfigurations/internal/internal.go
+++ b/console/applyconfigurations/internal/internal.go
@@ -3,8 +3,8 @@
package internal
import (
- "fmt"
- "sync"
+ fmt "fmt"
+ sync "sync"
typed "sigs.k8s.io/structured-merge-diff/v4/typed"
)
diff --git a/console/clientset/versioned/clientset.go b/console/clientset/versioned/clientset.go
index 7ff9fcc1e..a03b79be0 100644
--- a/console/clientset/versioned/clientset.go
+++ b/console/clientset/versioned/clientset.go
@@ -3,8 +3,8 @@
package versioned
import (
- "fmt"
- "net/http"
+ fmt "fmt"
+ http "net/http"
consolev1 "github.com/openshift/client-go/console/clientset/versioned/typed/console/v1"
discovery "k8s.io/client-go/discovery"
diff --git a/console/clientset/versioned/typed/console/v1/console_client.go b/console/clientset/versioned/typed/console/v1/console_client.go
index eaf99076e..660b9b48d 100644
--- a/console/clientset/versioned/typed/console/v1/console_client.go
+++ b/console/clientset/versioned/typed/console/v1/console_client.go
@@ -3,10 +3,10 @@
package v1
import (
- "net/http"
+ http "net/http"
- v1 "github.com/openshift/api/console/v1"
- "github.com/openshift/client-go/console/clientset/versioned/scheme"
+ consolev1 "github.com/openshift/api/console/v1"
+ scheme "github.com/openshift/client-go/console/clientset/versioned/scheme"
rest "k8s.io/client-go/rest"
)
@@ -104,10 +104,10 @@ func New(c rest.Interface) *ConsoleV1Client {
}
func setConfigDefaults(config *rest.Config) error {
- gv := v1.SchemeGroupVersion
+ gv := consolev1.SchemeGroupVersion
config.GroupVersion = &gv
config.APIPath = "/apis"
- config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
+ config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion()
if config.UserAgent == "" {
config.UserAgent = rest.DefaultKubernetesUserAgent()
diff --git a/console/clientset/versioned/typed/console/v1/consoleclidownload.go b/console/clientset/versioned/typed/console/v1/consoleclidownload.go
index 93b0692dd..0081fd62a 100644
--- a/console/clientset/versioned/typed/console/v1/consoleclidownload.go
+++ b/console/clientset/versioned/typed/console/v1/consoleclidownload.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/console/v1"
- consolev1 "github.com/openshift/client-go/console/applyconfigurations/console/v1"
+ consolev1 "github.com/openshift/api/console/v1"
+ applyconfigurationsconsolev1 "github.com/openshift/client-go/console/applyconfigurations/console/v1"
scheme "github.com/openshift/client-go/console/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,32 +22,33 @@ type ConsoleCLIDownloadsGetter interface {
// ConsoleCLIDownloadInterface has methods to work with ConsoleCLIDownload resources.
type ConsoleCLIDownloadInterface interface {
- Create(ctx context.Context, consoleCLIDownload *v1.ConsoleCLIDownload, opts metav1.CreateOptions) (*v1.ConsoleCLIDownload, error)
- Update(ctx context.Context, consoleCLIDownload *v1.ConsoleCLIDownload, opts metav1.UpdateOptions) (*v1.ConsoleCLIDownload, error)
+ Create(ctx context.Context, consoleCLIDownload *consolev1.ConsoleCLIDownload, opts metav1.CreateOptions) (*consolev1.ConsoleCLIDownload, error)
+ Update(ctx context.Context, consoleCLIDownload *consolev1.ConsoleCLIDownload, opts metav1.UpdateOptions) (*consolev1.ConsoleCLIDownload, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ConsoleCLIDownload, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.ConsoleCLIDownloadList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*consolev1.ConsoleCLIDownload, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*consolev1.ConsoleCLIDownloadList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ConsoleCLIDownload, err error)
- Apply(ctx context.Context, consoleCLIDownload *consolev1.ConsoleCLIDownloadApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ConsoleCLIDownload, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *consolev1.ConsoleCLIDownload, err error)
+ Apply(ctx context.Context, consoleCLIDownload *applyconfigurationsconsolev1.ConsoleCLIDownloadApplyConfiguration, opts metav1.ApplyOptions) (result *consolev1.ConsoleCLIDownload, err error)
ConsoleCLIDownloadExpansion
}
// consoleCLIDownloads implements ConsoleCLIDownloadInterface
type consoleCLIDownloads struct {
- *gentype.ClientWithListAndApply[*v1.ConsoleCLIDownload, *v1.ConsoleCLIDownloadList, *consolev1.ConsoleCLIDownloadApplyConfiguration]
+ *gentype.ClientWithListAndApply[*consolev1.ConsoleCLIDownload, *consolev1.ConsoleCLIDownloadList, *applyconfigurationsconsolev1.ConsoleCLIDownloadApplyConfiguration]
}
// newConsoleCLIDownloads returns a ConsoleCLIDownloads
func newConsoleCLIDownloads(c *ConsoleV1Client) *consoleCLIDownloads {
return &consoleCLIDownloads{
- gentype.NewClientWithListAndApply[*v1.ConsoleCLIDownload, *v1.ConsoleCLIDownloadList, *consolev1.ConsoleCLIDownloadApplyConfiguration](
+ gentype.NewClientWithListAndApply[*consolev1.ConsoleCLIDownload, *consolev1.ConsoleCLIDownloadList, *applyconfigurationsconsolev1.ConsoleCLIDownloadApplyConfiguration](
"consoleclidownloads",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.ConsoleCLIDownload { return &v1.ConsoleCLIDownload{} },
- func() *v1.ConsoleCLIDownloadList { return &v1.ConsoleCLIDownloadList{} }),
+ func() *consolev1.ConsoleCLIDownload { return &consolev1.ConsoleCLIDownload{} },
+ func() *consolev1.ConsoleCLIDownloadList { return &consolev1.ConsoleCLIDownloadList{} },
+ ),
}
}
diff --git a/console/clientset/versioned/typed/console/v1/consoleexternalloglink.go b/console/clientset/versioned/typed/console/v1/consoleexternalloglink.go
index d5c6ec68d..08e467dd9 100644
--- a/console/clientset/versioned/typed/console/v1/consoleexternalloglink.go
+++ b/console/clientset/versioned/typed/console/v1/consoleexternalloglink.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/console/v1"
- consolev1 "github.com/openshift/client-go/console/applyconfigurations/console/v1"
+ consolev1 "github.com/openshift/api/console/v1"
+ applyconfigurationsconsolev1 "github.com/openshift/client-go/console/applyconfigurations/console/v1"
scheme "github.com/openshift/client-go/console/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,32 +22,33 @@ type ConsoleExternalLogLinksGetter interface {
// ConsoleExternalLogLinkInterface has methods to work with ConsoleExternalLogLink resources.
type ConsoleExternalLogLinkInterface interface {
- Create(ctx context.Context, consoleExternalLogLink *v1.ConsoleExternalLogLink, opts metav1.CreateOptions) (*v1.ConsoleExternalLogLink, error)
- Update(ctx context.Context, consoleExternalLogLink *v1.ConsoleExternalLogLink, opts metav1.UpdateOptions) (*v1.ConsoleExternalLogLink, error)
+ Create(ctx context.Context, consoleExternalLogLink *consolev1.ConsoleExternalLogLink, opts metav1.CreateOptions) (*consolev1.ConsoleExternalLogLink, error)
+ Update(ctx context.Context, consoleExternalLogLink *consolev1.ConsoleExternalLogLink, opts metav1.UpdateOptions) (*consolev1.ConsoleExternalLogLink, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ConsoleExternalLogLink, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.ConsoleExternalLogLinkList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*consolev1.ConsoleExternalLogLink, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*consolev1.ConsoleExternalLogLinkList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ConsoleExternalLogLink, err error)
- Apply(ctx context.Context, consoleExternalLogLink *consolev1.ConsoleExternalLogLinkApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ConsoleExternalLogLink, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *consolev1.ConsoleExternalLogLink, err error)
+ Apply(ctx context.Context, consoleExternalLogLink *applyconfigurationsconsolev1.ConsoleExternalLogLinkApplyConfiguration, opts metav1.ApplyOptions) (result *consolev1.ConsoleExternalLogLink, err error)
ConsoleExternalLogLinkExpansion
}
// consoleExternalLogLinks implements ConsoleExternalLogLinkInterface
type consoleExternalLogLinks struct {
- *gentype.ClientWithListAndApply[*v1.ConsoleExternalLogLink, *v1.ConsoleExternalLogLinkList, *consolev1.ConsoleExternalLogLinkApplyConfiguration]
+ *gentype.ClientWithListAndApply[*consolev1.ConsoleExternalLogLink, *consolev1.ConsoleExternalLogLinkList, *applyconfigurationsconsolev1.ConsoleExternalLogLinkApplyConfiguration]
}
// newConsoleExternalLogLinks returns a ConsoleExternalLogLinks
func newConsoleExternalLogLinks(c *ConsoleV1Client) *consoleExternalLogLinks {
return &consoleExternalLogLinks{
- gentype.NewClientWithListAndApply[*v1.ConsoleExternalLogLink, *v1.ConsoleExternalLogLinkList, *consolev1.ConsoleExternalLogLinkApplyConfiguration](
+ gentype.NewClientWithListAndApply[*consolev1.ConsoleExternalLogLink, *consolev1.ConsoleExternalLogLinkList, *applyconfigurationsconsolev1.ConsoleExternalLogLinkApplyConfiguration](
"consoleexternalloglinks",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.ConsoleExternalLogLink { return &v1.ConsoleExternalLogLink{} },
- func() *v1.ConsoleExternalLogLinkList { return &v1.ConsoleExternalLogLinkList{} }),
+ func() *consolev1.ConsoleExternalLogLink { return &consolev1.ConsoleExternalLogLink{} },
+ func() *consolev1.ConsoleExternalLogLinkList { return &consolev1.ConsoleExternalLogLinkList{} },
+ ),
}
}
diff --git a/console/clientset/versioned/typed/console/v1/consolelink.go b/console/clientset/versioned/typed/console/v1/consolelink.go
index afb54d970..6acc51995 100644
--- a/console/clientset/versioned/typed/console/v1/consolelink.go
+++ b/console/clientset/versioned/typed/console/v1/consolelink.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/console/v1"
- consolev1 "github.com/openshift/client-go/console/applyconfigurations/console/v1"
+ consolev1 "github.com/openshift/api/console/v1"
+ applyconfigurationsconsolev1 "github.com/openshift/client-go/console/applyconfigurations/console/v1"
scheme "github.com/openshift/client-go/console/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,32 +22,33 @@ type ConsoleLinksGetter interface {
// ConsoleLinkInterface has methods to work with ConsoleLink resources.
type ConsoleLinkInterface interface {
- Create(ctx context.Context, consoleLink *v1.ConsoleLink, opts metav1.CreateOptions) (*v1.ConsoleLink, error)
- Update(ctx context.Context, consoleLink *v1.ConsoleLink, opts metav1.UpdateOptions) (*v1.ConsoleLink, error)
+ Create(ctx context.Context, consoleLink *consolev1.ConsoleLink, opts metav1.CreateOptions) (*consolev1.ConsoleLink, error)
+ Update(ctx context.Context, consoleLink *consolev1.ConsoleLink, opts metav1.UpdateOptions) (*consolev1.ConsoleLink, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ConsoleLink, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.ConsoleLinkList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*consolev1.ConsoleLink, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*consolev1.ConsoleLinkList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ConsoleLink, err error)
- Apply(ctx context.Context, consoleLink *consolev1.ConsoleLinkApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ConsoleLink, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *consolev1.ConsoleLink, err error)
+ Apply(ctx context.Context, consoleLink *applyconfigurationsconsolev1.ConsoleLinkApplyConfiguration, opts metav1.ApplyOptions) (result *consolev1.ConsoleLink, err error)
ConsoleLinkExpansion
}
// consoleLinks implements ConsoleLinkInterface
type consoleLinks struct {
- *gentype.ClientWithListAndApply[*v1.ConsoleLink, *v1.ConsoleLinkList, *consolev1.ConsoleLinkApplyConfiguration]
+ *gentype.ClientWithListAndApply[*consolev1.ConsoleLink, *consolev1.ConsoleLinkList, *applyconfigurationsconsolev1.ConsoleLinkApplyConfiguration]
}
// newConsoleLinks returns a ConsoleLinks
func newConsoleLinks(c *ConsoleV1Client) *consoleLinks {
return &consoleLinks{
- gentype.NewClientWithListAndApply[*v1.ConsoleLink, *v1.ConsoleLinkList, *consolev1.ConsoleLinkApplyConfiguration](
+ gentype.NewClientWithListAndApply[*consolev1.ConsoleLink, *consolev1.ConsoleLinkList, *applyconfigurationsconsolev1.ConsoleLinkApplyConfiguration](
"consolelinks",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.ConsoleLink { return &v1.ConsoleLink{} },
- func() *v1.ConsoleLinkList { return &v1.ConsoleLinkList{} }),
+ func() *consolev1.ConsoleLink { return &consolev1.ConsoleLink{} },
+ func() *consolev1.ConsoleLinkList { return &consolev1.ConsoleLinkList{} },
+ ),
}
}
diff --git a/console/clientset/versioned/typed/console/v1/consolenotification.go b/console/clientset/versioned/typed/console/v1/consolenotification.go
index 30ef4ec5b..bf46fa43d 100644
--- a/console/clientset/versioned/typed/console/v1/consolenotification.go
+++ b/console/clientset/versioned/typed/console/v1/consolenotification.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/console/v1"
- consolev1 "github.com/openshift/client-go/console/applyconfigurations/console/v1"
+ consolev1 "github.com/openshift/api/console/v1"
+ applyconfigurationsconsolev1 "github.com/openshift/client-go/console/applyconfigurations/console/v1"
scheme "github.com/openshift/client-go/console/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,32 +22,33 @@ type ConsoleNotificationsGetter interface {
// ConsoleNotificationInterface has methods to work with ConsoleNotification resources.
type ConsoleNotificationInterface interface {
- Create(ctx context.Context, consoleNotification *v1.ConsoleNotification, opts metav1.CreateOptions) (*v1.ConsoleNotification, error)
- Update(ctx context.Context, consoleNotification *v1.ConsoleNotification, opts metav1.UpdateOptions) (*v1.ConsoleNotification, error)
+ Create(ctx context.Context, consoleNotification *consolev1.ConsoleNotification, opts metav1.CreateOptions) (*consolev1.ConsoleNotification, error)
+ Update(ctx context.Context, consoleNotification *consolev1.ConsoleNotification, opts metav1.UpdateOptions) (*consolev1.ConsoleNotification, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ConsoleNotification, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.ConsoleNotificationList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*consolev1.ConsoleNotification, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*consolev1.ConsoleNotificationList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ConsoleNotification, err error)
- Apply(ctx context.Context, consoleNotification *consolev1.ConsoleNotificationApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ConsoleNotification, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *consolev1.ConsoleNotification, err error)
+ Apply(ctx context.Context, consoleNotification *applyconfigurationsconsolev1.ConsoleNotificationApplyConfiguration, opts metav1.ApplyOptions) (result *consolev1.ConsoleNotification, err error)
ConsoleNotificationExpansion
}
// consoleNotifications implements ConsoleNotificationInterface
type consoleNotifications struct {
- *gentype.ClientWithListAndApply[*v1.ConsoleNotification, *v1.ConsoleNotificationList, *consolev1.ConsoleNotificationApplyConfiguration]
+ *gentype.ClientWithListAndApply[*consolev1.ConsoleNotification, *consolev1.ConsoleNotificationList, *applyconfigurationsconsolev1.ConsoleNotificationApplyConfiguration]
}
// newConsoleNotifications returns a ConsoleNotifications
func newConsoleNotifications(c *ConsoleV1Client) *consoleNotifications {
return &consoleNotifications{
- gentype.NewClientWithListAndApply[*v1.ConsoleNotification, *v1.ConsoleNotificationList, *consolev1.ConsoleNotificationApplyConfiguration](
+ gentype.NewClientWithListAndApply[*consolev1.ConsoleNotification, *consolev1.ConsoleNotificationList, *applyconfigurationsconsolev1.ConsoleNotificationApplyConfiguration](
"consolenotifications",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.ConsoleNotification { return &v1.ConsoleNotification{} },
- func() *v1.ConsoleNotificationList { return &v1.ConsoleNotificationList{} }),
+ func() *consolev1.ConsoleNotification { return &consolev1.ConsoleNotification{} },
+ func() *consolev1.ConsoleNotificationList { return &consolev1.ConsoleNotificationList{} },
+ ),
}
}
diff --git a/console/clientset/versioned/typed/console/v1/consoleplugin.go b/console/clientset/versioned/typed/console/v1/consoleplugin.go
index 650524d98..d592717e9 100644
--- a/console/clientset/versioned/typed/console/v1/consoleplugin.go
+++ b/console/clientset/versioned/typed/console/v1/consoleplugin.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/console/v1"
- consolev1 "github.com/openshift/client-go/console/applyconfigurations/console/v1"
+ consolev1 "github.com/openshift/api/console/v1"
+ applyconfigurationsconsolev1 "github.com/openshift/client-go/console/applyconfigurations/console/v1"
scheme "github.com/openshift/client-go/console/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,32 +22,33 @@ type ConsolePluginsGetter interface {
// ConsolePluginInterface has methods to work with ConsolePlugin resources.
type ConsolePluginInterface interface {
- Create(ctx context.Context, consolePlugin *v1.ConsolePlugin, opts metav1.CreateOptions) (*v1.ConsolePlugin, error)
- Update(ctx context.Context, consolePlugin *v1.ConsolePlugin, opts metav1.UpdateOptions) (*v1.ConsolePlugin, error)
+ Create(ctx context.Context, consolePlugin *consolev1.ConsolePlugin, opts metav1.CreateOptions) (*consolev1.ConsolePlugin, error)
+ Update(ctx context.Context, consolePlugin *consolev1.ConsolePlugin, opts metav1.UpdateOptions) (*consolev1.ConsolePlugin, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ConsolePlugin, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.ConsolePluginList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*consolev1.ConsolePlugin, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*consolev1.ConsolePluginList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ConsolePlugin, err error)
- Apply(ctx context.Context, consolePlugin *consolev1.ConsolePluginApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ConsolePlugin, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *consolev1.ConsolePlugin, err error)
+ Apply(ctx context.Context, consolePlugin *applyconfigurationsconsolev1.ConsolePluginApplyConfiguration, opts metav1.ApplyOptions) (result *consolev1.ConsolePlugin, err error)
ConsolePluginExpansion
}
// consolePlugins implements ConsolePluginInterface
type consolePlugins struct {
- *gentype.ClientWithListAndApply[*v1.ConsolePlugin, *v1.ConsolePluginList, *consolev1.ConsolePluginApplyConfiguration]
+ *gentype.ClientWithListAndApply[*consolev1.ConsolePlugin, *consolev1.ConsolePluginList, *applyconfigurationsconsolev1.ConsolePluginApplyConfiguration]
}
// newConsolePlugins returns a ConsolePlugins
func newConsolePlugins(c *ConsoleV1Client) *consolePlugins {
return &consolePlugins{
- gentype.NewClientWithListAndApply[*v1.ConsolePlugin, *v1.ConsolePluginList, *consolev1.ConsolePluginApplyConfiguration](
+ gentype.NewClientWithListAndApply[*consolev1.ConsolePlugin, *consolev1.ConsolePluginList, *applyconfigurationsconsolev1.ConsolePluginApplyConfiguration](
"consoleplugins",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.ConsolePlugin { return &v1.ConsolePlugin{} },
- func() *v1.ConsolePluginList { return &v1.ConsolePluginList{} }),
+ func() *consolev1.ConsolePlugin { return &consolev1.ConsolePlugin{} },
+ func() *consolev1.ConsolePluginList { return &consolev1.ConsolePluginList{} },
+ ),
}
}
diff --git a/console/clientset/versioned/typed/console/v1/consolequickstart.go b/console/clientset/versioned/typed/console/v1/consolequickstart.go
index 330ccb230..7c69b11aa 100644
--- a/console/clientset/versioned/typed/console/v1/consolequickstart.go
+++ b/console/clientset/versioned/typed/console/v1/consolequickstart.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/console/v1"
- consolev1 "github.com/openshift/client-go/console/applyconfigurations/console/v1"
+ consolev1 "github.com/openshift/api/console/v1"
+ applyconfigurationsconsolev1 "github.com/openshift/client-go/console/applyconfigurations/console/v1"
scheme "github.com/openshift/client-go/console/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,32 +22,33 @@ type ConsoleQuickStartsGetter interface {
// ConsoleQuickStartInterface has methods to work with ConsoleQuickStart resources.
type ConsoleQuickStartInterface interface {
- Create(ctx context.Context, consoleQuickStart *v1.ConsoleQuickStart, opts metav1.CreateOptions) (*v1.ConsoleQuickStart, error)
- Update(ctx context.Context, consoleQuickStart *v1.ConsoleQuickStart, opts metav1.UpdateOptions) (*v1.ConsoleQuickStart, error)
+ Create(ctx context.Context, consoleQuickStart *consolev1.ConsoleQuickStart, opts metav1.CreateOptions) (*consolev1.ConsoleQuickStart, error)
+ Update(ctx context.Context, consoleQuickStart *consolev1.ConsoleQuickStart, opts metav1.UpdateOptions) (*consolev1.ConsoleQuickStart, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ConsoleQuickStart, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.ConsoleQuickStartList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*consolev1.ConsoleQuickStart, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*consolev1.ConsoleQuickStartList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ConsoleQuickStart, err error)
- Apply(ctx context.Context, consoleQuickStart *consolev1.ConsoleQuickStartApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ConsoleQuickStart, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *consolev1.ConsoleQuickStart, err error)
+ Apply(ctx context.Context, consoleQuickStart *applyconfigurationsconsolev1.ConsoleQuickStartApplyConfiguration, opts metav1.ApplyOptions) (result *consolev1.ConsoleQuickStart, err error)
ConsoleQuickStartExpansion
}
// consoleQuickStarts implements ConsoleQuickStartInterface
type consoleQuickStarts struct {
- *gentype.ClientWithListAndApply[*v1.ConsoleQuickStart, *v1.ConsoleQuickStartList, *consolev1.ConsoleQuickStartApplyConfiguration]
+ *gentype.ClientWithListAndApply[*consolev1.ConsoleQuickStart, *consolev1.ConsoleQuickStartList, *applyconfigurationsconsolev1.ConsoleQuickStartApplyConfiguration]
}
// newConsoleQuickStarts returns a ConsoleQuickStarts
func newConsoleQuickStarts(c *ConsoleV1Client) *consoleQuickStarts {
return &consoleQuickStarts{
- gentype.NewClientWithListAndApply[*v1.ConsoleQuickStart, *v1.ConsoleQuickStartList, *consolev1.ConsoleQuickStartApplyConfiguration](
+ gentype.NewClientWithListAndApply[*consolev1.ConsoleQuickStart, *consolev1.ConsoleQuickStartList, *applyconfigurationsconsolev1.ConsoleQuickStartApplyConfiguration](
"consolequickstarts",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.ConsoleQuickStart { return &v1.ConsoleQuickStart{} },
- func() *v1.ConsoleQuickStartList { return &v1.ConsoleQuickStartList{} }),
+ func() *consolev1.ConsoleQuickStart { return &consolev1.ConsoleQuickStart{} },
+ func() *consolev1.ConsoleQuickStartList { return &consolev1.ConsoleQuickStartList{} },
+ ),
}
}
diff --git a/console/clientset/versioned/typed/console/v1/consolesample.go b/console/clientset/versioned/typed/console/v1/consolesample.go
index 2eb96aa54..629812954 100644
--- a/console/clientset/versioned/typed/console/v1/consolesample.go
+++ b/console/clientset/versioned/typed/console/v1/consolesample.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/console/v1"
- consolev1 "github.com/openshift/client-go/console/applyconfigurations/console/v1"
+ consolev1 "github.com/openshift/api/console/v1"
+ applyconfigurationsconsolev1 "github.com/openshift/client-go/console/applyconfigurations/console/v1"
scheme "github.com/openshift/client-go/console/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,32 +22,33 @@ type ConsoleSamplesGetter interface {
// ConsoleSampleInterface has methods to work with ConsoleSample resources.
type ConsoleSampleInterface interface {
- Create(ctx context.Context, consoleSample *v1.ConsoleSample, opts metav1.CreateOptions) (*v1.ConsoleSample, error)
- Update(ctx context.Context, consoleSample *v1.ConsoleSample, opts metav1.UpdateOptions) (*v1.ConsoleSample, error)
+ Create(ctx context.Context, consoleSample *consolev1.ConsoleSample, opts metav1.CreateOptions) (*consolev1.ConsoleSample, error)
+ Update(ctx context.Context, consoleSample *consolev1.ConsoleSample, opts metav1.UpdateOptions) (*consolev1.ConsoleSample, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ConsoleSample, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.ConsoleSampleList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*consolev1.ConsoleSample, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*consolev1.ConsoleSampleList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ConsoleSample, err error)
- Apply(ctx context.Context, consoleSample *consolev1.ConsoleSampleApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ConsoleSample, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *consolev1.ConsoleSample, err error)
+ Apply(ctx context.Context, consoleSample *applyconfigurationsconsolev1.ConsoleSampleApplyConfiguration, opts metav1.ApplyOptions) (result *consolev1.ConsoleSample, err error)
ConsoleSampleExpansion
}
// consoleSamples implements ConsoleSampleInterface
type consoleSamples struct {
- *gentype.ClientWithListAndApply[*v1.ConsoleSample, *v1.ConsoleSampleList, *consolev1.ConsoleSampleApplyConfiguration]
+ *gentype.ClientWithListAndApply[*consolev1.ConsoleSample, *consolev1.ConsoleSampleList, *applyconfigurationsconsolev1.ConsoleSampleApplyConfiguration]
}
// newConsoleSamples returns a ConsoleSamples
func newConsoleSamples(c *ConsoleV1Client) *consoleSamples {
return &consoleSamples{
- gentype.NewClientWithListAndApply[*v1.ConsoleSample, *v1.ConsoleSampleList, *consolev1.ConsoleSampleApplyConfiguration](
+ gentype.NewClientWithListAndApply[*consolev1.ConsoleSample, *consolev1.ConsoleSampleList, *applyconfigurationsconsolev1.ConsoleSampleApplyConfiguration](
"consolesamples",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.ConsoleSample { return &v1.ConsoleSample{} },
- func() *v1.ConsoleSampleList { return &v1.ConsoleSampleList{} }),
+ func() *consolev1.ConsoleSample { return &consolev1.ConsoleSample{} },
+ func() *consolev1.ConsoleSampleList { return &consolev1.ConsoleSampleList{} },
+ ),
}
}
diff --git a/console/clientset/versioned/typed/console/v1/consoleyamlsample.go b/console/clientset/versioned/typed/console/v1/consoleyamlsample.go
index b12d3a7e8..32c07d856 100644
--- a/console/clientset/versioned/typed/console/v1/consoleyamlsample.go
+++ b/console/clientset/versioned/typed/console/v1/consoleyamlsample.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/console/v1"
- consolev1 "github.com/openshift/client-go/console/applyconfigurations/console/v1"
+ consolev1 "github.com/openshift/api/console/v1"
+ applyconfigurationsconsolev1 "github.com/openshift/client-go/console/applyconfigurations/console/v1"
scheme "github.com/openshift/client-go/console/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,32 +22,33 @@ type ConsoleYAMLSamplesGetter interface {
// ConsoleYAMLSampleInterface has methods to work with ConsoleYAMLSample resources.
type ConsoleYAMLSampleInterface interface {
- Create(ctx context.Context, consoleYAMLSample *v1.ConsoleYAMLSample, opts metav1.CreateOptions) (*v1.ConsoleYAMLSample, error)
- Update(ctx context.Context, consoleYAMLSample *v1.ConsoleYAMLSample, opts metav1.UpdateOptions) (*v1.ConsoleYAMLSample, error)
+ Create(ctx context.Context, consoleYAMLSample *consolev1.ConsoleYAMLSample, opts metav1.CreateOptions) (*consolev1.ConsoleYAMLSample, error)
+ Update(ctx context.Context, consoleYAMLSample *consolev1.ConsoleYAMLSample, opts metav1.UpdateOptions) (*consolev1.ConsoleYAMLSample, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ConsoleYAMLSample, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.ConsoleYAMLSampleList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*consolev1.ConsoleYAMLSample, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*consolev1.ConsoleYAMLSampleList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ConsoleYAMLSample, err error)
- Apply(ctx context.Context, consoleYAMLSample *consolev1.ConsoleYAMLSampleApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ConsoleYAMLSample, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *consolev1.ConsoleYAMLSample, err error)
+ Apply(ctx context.Context, consoleYAMLSample *applyconfigurationsconsolev1.ConsoleYAMLSampleApplyConfiguration, opts metav1.ApplyOptions) (result *consolev1.ConsoleYAMLSample, err error)
ConsoleYAMLSampleExpansion
}
// consoleYAMLSamples implements ConsoleYAMLSampleInterface
type consoleYAMLSamples struct {
- *gentype.ClientWithListAndApply[*v1.ConsoleYAMLSample, *v1.ConsoleYAMLSampleList, *consolev1.ConsoleYAMLSampleApplyConfiguration]
+ *gentype.ClientWithListAndApply[*consolev1.ConsoleYAMLSample, *consolev1.ConsoleYAMLSampleList, *applyconfigurationsconsolev1.ConsoleYAMLSampleApplyConfiguration]
}
// newConsoleYAMLSamples returns a ConsoleYAMLSamples
func newConsoleYAMLSamples(c *ConsoleV1Client) *consoleYAMLSamples {
return &consoleYAMLSamples{
- gentype.NewClientWithListAndApply[*v1.ConsoleYAMLSample, *v1.ConsoleYAMLSampleList, *consolev1.ConsoleYAMLSampleApplyConfiguration](
+ gentype.NewClientWithListAndApply[*consolev1.ConsoleYAMLSample, *consolev1.ConsoleYAMLSampleList, *applyconfigurationsconsolev1.ConsoleYAMLSampleApplyConfiguration](
"consoleyamlsamples",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.ConsoleYAMLSample { return &v1.ConsoleYAMLSample{} },
- func() *v1.ConsoleYAMLSampleList { return &v1.ConsoleYAMLSampleList{} }),
+ func() *consolev1.ConsoleYAMLSample { return &consolev1.ConsoleYAMLSample{} },
+ func() *consolev1.ConsoleYAMLSampleList { return &consolev1.ConsoleYAMLSampleList{} },
+ ),
}
}
diff --git a/console/clientset/versioned/typed/console/v1/fake/fake_console_client.go b/console/clientset/versioned/typed/console/v1/fake/fake_console_client.go
index b213a34c2..05fd1edeb 100644
--- a/console/clientset/versioned/typed/console/v1/fake/fake_console_client.go
+++ b/console/clientset/versioned/typed/console/v1/fake/fake_console_client.go
@@ -13,35 +13,35 @@ type FakeConsoleV1 struct {
}
func (c *FakeConsoleV1) ConsoleCLIDownloads() v1.ConsoleCLIDownloadInterface {
- return &FakeConsoleCLIDownloads{c}
+ return newFakeConsoleCLIDownloads(c)
}
func (c *FakeConsoleV1) ConsoleExternalLogLinks() v1.ConsoleExternalLogLinkInterface {
- return &FakeConsoleExternalLogLinks{c}
+ return newFakeConsoleExternalLogLinks(c)
}
func (c *FakeConsoleV1) ConsoleLinks() v1.ConsoleLinkInterface {
- return &FakeConsoleLinks{c}
+ return newFakeConsoleLinks(c)
}
func (c *FakeConsoleV1) ConsoleNotifications() v1.ConsoleNotificationInterface {
- return &FakeConsoleNotifications{c}
+ return newFakeConsoleNotifications(c)
}
func (c *FakeConsoleV1) ConsolePlugins() v1.ConsolePluginInterface {
- return &FakeConsolePlugins{c}
+ return newFakeConsolePlugins(c)
}
func (c *FakeConsoleV1) ConsoleQuickStarts() v1.ConsoleQuickStartInterface {
- return &FakeConsoleQuickStarts{c}
+ return newFakeConsoleQuickStarts(c)
}
func (c *FakeConsoleV1) ConsoleSamples() v1.ConsoleSampleInterface {
- return &FakeConsoleSamples{c}
+ return newFakeConsoleSamples(c)
}
func (c *FakeConsoleV1) ConsoleYAMLSamples() v1.ConsoleYAMLSampleInterface {
- return &FakeConsoleYAMLSamples{c}
+ return newFakeConsoleYAMLSamples(c)
}
// RESTClient returns a RESTClient that is used to communicate
diff --git a/console/clientset/versioned/typed/console/v1/fake/fake_consoleclidownload.go b/console/clientset/versioned/typed/console/v1/fake/fake_consoleclidownload.go
index c3d5e6d2d..c4f35849d 100644
--- a/console/clientset/versioned/typed/console/v1/fake/fake_consoleclidownload.go
+++ b/console/clientset/versioned/typed/console/v1/fake/fake_consoleclidownload.go
@@ -3,133 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/console/v1"
consolev1 "github.com/openshift/client-go/console/applyconfigurations/console/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedconsolev1 "github.com/openshift/client-go/console/clientset/versioned/typed/console/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeConsoleCLIDownloads implements ConsoleCLIDownloadInterface
-type FakeConsoleCLIDownloads struct {
+// fakeConsoleCLIDownloads implements ConsoleCLIDownloadInterface
+type fakeConsoleCLIDownloads struct {
+ *gentype.FakeClientWithListAndApply[*v1.ConsoleCLIDownload, *v1.ConsoleCLIDownloadList, *consolev1.ConsoleCLIDownloadApplyConfiguration]
Fake *FakeConsoleV1
}
-var consoleclidownloadsResource = v1.SchemeGroupVersion.WithResource("consoleclidownloads")
-
-var consoleclidownloadsKind = v1.SchemeGroupVersion.WithKind("ConsoleCLIDownload")
-
-// Get takes name of the consoleCLIDownload, and returns the corresponding consoleCLIDownload object, and an error if there is any.
-func (c *FakeConsoleCLIDownloads) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ConsoleCLIDownload, err error) {
- emptyResult := &v1.ConsoleCLIDownload{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(consoleclidownloadsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ConsoleCLIDownload), err
-}
-
-// List takes label and field selectors, and returns the list of ConsoleCLIDownloads that match those selectors.
-func (c *FakeConsoleCLIDownloads) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ConsoleCLIDownloadList, err error) {
- emptyResult := &v1.ConsoleCLIDownloadList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(consoleclidownloadsResource, consoleclidownloadsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.ConsoleCLIDownloadList{ListMeta: obj.(*v1.ConsoleCLIDownloadList).ListMeta}
- for _, item := range obj.(*v1.ConsoleCLIDownloadList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested consoleCLIDownloads.
-func (c *FakeConsoleCLIDownloads) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(consoleclidownloadsResource, opts))
-}
-
-// Create takes the representation of a consoleCLIDownload and creates it. Returns the server's representation of the consoleCLIDownload, and an error, if there is any.
-func (c *FakeConsoleCLIDownloads) Create(ctx context.Context, consoleCLIDownload *v1.ConsoleCLIDownload, opts metav1.CreateOptions) (result *v1.ConsoleCLIDownload, err error) {
- emptyResult := &v1.ConsoleCLIDownload{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(consoleclidownloadsResource, consoleCLIDownload, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ConsoleCLIDownload), err
-}
-
-// Update takes the representation of a consoleCLIDownload and updates it. Returns the server's representation of the consoleCLIDownload, and an error, if there is any.
-func (c *FakeConsoleCLIDownloads) Update(ctx context.Context, consoleCLIDownload *v1.ConsoleCLIDownload, opts metav1.UpdateOptions) (result *v1.ConsoleCLIDownload, err error) {
- emptyResult := &v1.ConsoleCLIDownload{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(consoleclidownloadsResource, consoleCLIDownload, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ConsoleCLIDownload), err
-}
-
-// Delete takes name of the consoleCLIDownload and deletes it. Returns an error if one occurs.
-func (c *FakeConsoleCLIDownloads) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(consoleclidownloadsResource, name, opts), &v1.ConsoleCLIDownload{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeConsoleCLIDownloads) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(consoleclidownloadsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.ConsoleCLIDownloadList{})
- return err
-}
-
-// Patch applies the patch and returns the patched consoleCLIDownload.
-func (c *FakeConsoleCLIDownloads) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ConsoleCLIDownload, err error) {
- emptyResult := &v1.ConsoleCLIDownload{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(consoleclidownloadsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ConsoleCLIDownload), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied consoleCLIDownload.
-func (c *FakeConsoleCLIDownloads) Apply(ctx context.Context, consoleCLIDownload *consolev1.ConsoleCLIDownloadApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ConsoleCLIDownload, err error) {
- if consoleCLIDownload == nil {
- return nil, fmt.Errorf("consoleCLIDownload provided to Apply must not be nil")
- }
- data, err := json.Marshal(consoleCLIDownload)
- if err != nil {
- return nil, err
- }
- name := consoleCLIDownload.Name
- if name == nil {
- return nil, fmt.Errorf("consoleCLIDownload.Name must be provided to Apply")
- }
- emptyResult := &v1.ConsoleCLIDownload{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(consoleclidownloadsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeConsoleCLIDownloads(fake *FakeConsoleV1) typedconsolev1.ConsoleCLIDownloadInterface {
+ return &fakeConsoleCLIDownloads{
+ gentype.NewFakeClientWithListAndApply[*v1.ConsoleCLIDownload, *v1.ConsoleCLIDownloadList, *consolev1.ConsoleCLIDownloadApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("consoleclidownloads"),
+ v1.SchemeGroupVersion.WithKind("ConsoleCLIDownload"),
+ func() *v1.ConsoleCLIDownload { return &v1.ConsoleCLIDownload{} },
+ func() *v1.ConsoleCLIDownloadList { return &v1.ConsoleCLIDownloadList{} },
+ func(dst, src *v1.ConsoleCLIDownloadList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.ConsoleCLIDownloadList) []*v1.ConsoleCLIDownload {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1.ConsoleCLIDownloadList, items []*v1.ConsoleCLIDownload) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.ConsoleCLIDownload), err
}
diff --git a/console/clientset/versioned/typed/console/v1/fake/fake_consoleexternalloglink.go b/console/clientset/versioned/typed/console/v1/fake/fake_consoleexternalloglink.go
index 5250f639e..c48acf872 100644
--- a/console/clientset/versioned/typed/console/v1/fake/fake_consoleexternalloglink.go
+++ b/console/clientset/versioned/typed/console/v1/fake/fake_consoleexternalloglink.go
@@ -3,133 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/console/v1"
consolev1 "github.com/openshift/client-go/console/applyconfigurations/console/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedconsolev1 "github.com/openshift/client-go/console/clientset/versioned/typed/console/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeConsoleExternalLogLinks implements ConsoleExternalLogLinkInterface
-type FakeConsoleExternalLogLinks struct {
+// fakeConsoleExternalLogLinks implements ConsoleExternalLogLinkInterface
+type fakeConsoleExternalLogLinks struct {
+ *gentype.FakeClientWithListAndApply[*v1.ConsoleExternalLogLink, *v1.ConsoleExternalLogLinkList, *consolev1.ConsoleExternalLogLinkApplyConfiguration]
Fake *FakeConsoleV1
}
-var consoleexternalloglinksResource = v1.SchemeGroupVersion.WithResource("consoleexternalloglinks")
-
-var consoleexternalloglinksKind = v1.SchemeGroupVersion.WithKind("ConsoleExternalLogLink")
-
-// Get takes name of the consoleExternalLogLink, and returns the corresponding consoleExternalLogLink object, and an error if there is any.
-func (c *FakeConsoleExternalLogLinks) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ConsoleExternalLogLink, err error) {
- emptyResult := &v1.ConsoleExternalLogLink{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(consoleexternalloglinksResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ConsoleExternalLogLink), err
-}
-
-// List takes label and field selectors, and returns the list of ConsoleExternalLogLinks that match those selectors.
-func (c *FakeConsoleExternalLogLinks) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ConsoleExternalLogLinkList, err error) {
- emptyResult := &v1.ConsoleExternalLogLinkList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(consoleexternalloglinksResource, consoleexternalloglinksKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.ConsoleExternalLogLinkList{ListMeta: obj.(*v1.ConsoleExternalLogLinkList).ListMeta}
- for _, item := range obj.(*v1.ConsoleExternalLogLinkList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested consoleExternalLogLinks.
-func (c *FakeConsoleExternalLogLinks) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(consoleexternalloglinksResource, opts))
-}
-
-// Create takes the representation of a consoleExternalLogLink and creates it. Returns the server's representation of the consoleExternalLogLink, and an error, if there is any.
-func (c *FakeConsoleExternalLogLinks) Create(ctx context.Context, consoleExternalLogLink *v1.ConsoleExternalLogLink, opts metav1.CreateOptions) (result *v1.ConsoleExternalLogLink, err error) {
- emptyResult := &v1.ConsoleExternalLogLink{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(consoleexternalloglinksResource, consoleExternalLogLink, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ConsoleExternalLogLink), err
-}
-
-// Update takes the representation of a consoleExternalLogLink and updates it. Returns the server's representation of the consoleExternalLogLink, and an error, if there is any.
-func (c *FakeConsoleExternalLogLinks) Update(ctx context.Context, consoleExternalLogLink *v1.ConsoleExternalLogLink, opts metav1.UpdateOptions) (result *v1.ConsoleExternalLogLink, err error) {
- emptyResult := &v1.ConsoleExternalLogLink{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(consoleexternalloglinksResource, consoleExternalLogLink, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ConsoleExternalLogLink), err
-}
-
-// Delete takes name of the consoleExternalLogLink and deletes it. Returns an error if one occurs.
-func (c *FakeConsoleExternalLogLinks) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(consoleexternalloglinksResource, name, opts), &v1.ConsoleExternalLogLink{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeConsoleExternalLogLinks) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(consoleexternalloglinksResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.ConsoleExternalLogLinkList{})
- return err
-}
-
-// Patch applies the patch and returns the patched consoleExternalLogLink.
-func (c *FakeConsoleExternalLogLinks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ConsoleExternalLogLink, err error) {
- emptyResult := &v1.ConsoleExternalLogLink{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(consoleexternalloglinksResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ConsoleExternalLogLink), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied consoleExternalLogLink.
-func (c *FakeConsoleExternalLogLinks) Apply(ctx context.Context, consoleExternalLogLink *consolev1.ConsoleExternalLogLinkApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ConsoleExternalLogLink, err error) {
- if consoleExternalLogLink == nil {
- return nil, fmt.Errorf("consoleExternalLogLink provided to Apply must not be nil")
- }
- data, err := json.Marshal(consoleExternalLogLink)
- if err != nil {
- return nil, err
- }
- name := consoleExternalLogLink.Name
- if name == nil {
- return nil, fmt.Errorf("consoleExternalLogLink.Name must be provided to Apply")
- }
- emptyResult := &v1.ConsoleExternalLogLink{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(consoleexternalloglinksResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeConsoleExternalLogLinks(fake *FakeConsoleV1) typedconsolev1.ConsoleExternalLogLinkInterface {
+ return &fakeConsoleExternalLogLinks{
+ gentype.NewFakeClientWithListAndApply[*v1.ConsoleExternalLogLink, *v1.ConsoleExternalLogLinkList, *consolev1.ConsoleExternalLogLinkApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("consoleexternalloglinks"),
+ v1.SchemeGroupVersion.WithKind("ConsoleExternalLogLink"),
+ func() *v1.ConsoleExternalLogLink { return &v1.ConsoleExternalLogLink{} },
+ func() *v1.ConsoleExternalLogLinkList { return &v1.ConsoleExternalLogLinkList{} },
+ func(dst, src *v1.ConsoleExternalLogLinkList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.ConsoleExternalLogLinkList) []*v1.ConsoleExternalLogLink {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1.ConsoleExternalLogLinkList, items []*v1.ConsoleExternalLogLink) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.ConsoleExternalLogLink), err
}
diff --git a/console/clientset/versioned/typed/console/v1/fake/fake_consolelink.go b/console/clientset/versioned/typed/console/v1/fake/fake_consolelink.go
index 343200f6b..fdcc2c3d1 100644
--- a/console/clientset/versioned/typed/console/v1/fake/fake_consolelink.go
+++ b/console/clientset/versioned/typed/console/v1/fake/fake_consolelink.go
@@ -3,133 +3,31 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/console/v1"
consolev1 "github.com/openshift/client-go/console/applyconfigurations/console/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedconsolev1 "github.com/openshift/client-go/console/clientset/versioned/typed/console/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeConsoleLinks implements ConsoleLinkInterface
-type FakeConsoleLinks struct {
+// fakeConsoleLinks implements ConsoleLinkInterface
+type fakeConsoleLinks struct {
+ *gentype.FakeClientWithListAndApply[*v1.ConsoleLink, *v1.ConsoleLinkList, *consolev1.ConsoleLinkApplyConfiguration]
Fake *FakeConsoleV1
}
-var consolelinksResource = v1.SchemeGroupVersion.WithResource("consolelinks")
-
-var consolelinksKind = v1.SchemeGroupVersion.WithKind("ConsoleLink")
-
-// Get takes name of the consoleLink, and returns the corresponding consoleLink object, and an error if there is any.
-func (c *FakeConsoleLinks) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ConsoleLink, err error) {
- emptyResult := &v1.ConsoleLink{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(consolelinksResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ConsoleLink), err
-}
-
-// List takes label and field selectors, and returns the list of ConsoleLinks that match those selectors.
-func (c *FakeConsoleLinks) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ConsoleLinkList, err error) {
- emptyResult := &v1.ConsoleLinkList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(consolelinksResource, consolelinksKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.ConsoleLinkList{ListMeta: obj.(*v1.ConsoleLinkList).ListMeta}
- for _, item := range obj.(*v1.ConsoleLinkList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested consoleLinks.
-func (c *FakeConsoleLinks) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(consolelinksResource, opts))
-}
-
-// Create takes the representation of a consoleLink and creates it. Returns the server's representation of the consoleLink, and an error, if there is any.
-func (c *FakeConsoleLinks) Create(ctx context.Context, consoleLink *v1.ConsoleLink, opts metav1.CreateOptions) (result *v1.ConsoleLink, err error) {
- emptyResult := &v1.ConsoleLink{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(consolelinksResource, consoleLink, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ConsoleLink), err
-}
-
-// Update takes the representation of a consoleLink and updates it. Returns the server's representation of the consoleLink, and an error, if there is any.
-func (c *FakeConsoleLinks) Update(ctx context.Context, consoleLink *v1.ConsoleLink, opts metav1.UpdateOptions) (result *v1.ConsoleLink, err error) {
- emptyResult := &v1.ConsoleLink{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(consolelinksResource, consoleLink, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ConsoleLink), err
-}
-
-// Delete takes name of the consoleLink and deletes it. Returns an error if one occurs.
-func (c *FakeConsoleLinks) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(consolelinksResource, name, opts), &v1.ConsoleLink{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeConsoleLinks) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(consolelinksResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.ConsoleLinkList{})
- return err
-}
-
-// Patch applies the patch and returns the patched consoleLink.
-func (c *FakeConsoleLinks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ConsoleLink, err error) {
- emptyResult := &v1.ConsoleLink{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(consolelinksResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ConsoleLink), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied consoleLink.
-func (c *FakeConsoleLinks) Apply(ctx context.Context, consoleLink *consolev1.ConsoleLinkApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ConsoleLink, err error) {
- if consoleLink == nil {
- return nil, fmt.Errorf("consoleLink provided to Apply must not be nil")
- }
- data, err := json.Marshal(consoleLink)
- if err != nil {
- return nil, err
- }
- name := consoleLink.Name
- if name == nil {
- return nil, fmt.Errorf("consoleLink.Name must be provided to Apply")
- }
- emptyResult := &v1.ConsoleLink{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(consolelinksResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeConsoleLinks(fake *FakeConsoleV1) typedconsolev1.ConsoleLinkInterface {
+ return &fakeConsoleLinks{
+ gentype.NewFakeClientWithListAndApply[*v1.ConsoleLink, *v1.ConsoleLinkList, *consolev1.ConsoleLinkApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("consolelinks"),
+ v1.SchemeGroupVersion.WithKind("ConsoleLink"),
+ func() *v1.ConsoleLink { return &v1.ConsoleLink{} },
+ func() *v1.ConsoleLinkList { return &v1.ConsoleLinkList{} },
+ func(dst, src *v1.ConsoleLinkList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.ConsoleLinkList) []*v1.ConsoleLink { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.ConsoleLinkList, items []*v1.ConsoleLink) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.ConsoleLink), err
}
diff --git a/console/clientset/versioned/typed/console/v1/fake/fake_consolenotification.go b/console/clientset/versioned/typed/console/v1/fake/fake_consolenotification.go
index 1ca4b7a89..09229375d 100644
--- a/console/clientset/versioned/typed/console/v1/fake/fake_consolenotification.go
+++ b/console/clientset/versioned/typed/console/v1/fake/fake_consolenotification.go
@@ -3,133 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/console/v1"
consolev1 "github.com/openshift/client-go/console/applyconfigurations/console/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedconsolev1 "github.com/openshift/client-go/console/clientset/versioned/typed/console/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeConsoleNotifications implements ConsoleNotificationInterface
-type FakeConsoleNotifications struct {
+// fakeConsoleNotifications implements ConsoleNotificationInterface
+type fakeConsoleNotifications struct {
+ *gentype.FakeClientWithListAndApply[*v1.ConsoleNotification, *v1.ConsoleNotificationList, *consolev1.ConsoleNotificationApplyConfiguration]
Fake *FakeConsoleV1
}
-var consolenotificationsResource = v1.SchemeGroupVersion.WithResource("consolenotifications")
-
-var consolenotificationsKind = v1.SchemeGroupVersion.WithKind("ConsoleNotification")
-
-// Get takes name of the consoleNotification, and returns the corresponding consoleNotification object, and an error if there is any.
-func (c *FakeConsoleNotifications) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ConsoleNotification, err error) {
- emptyResult := &v1.ConsoleNotification{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(consolenotificationsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ConsoleNotification), err
-}
-
-// List takes label and field selectors, and returns the list of ConsoleNotifications that match those selectors.
-func (c *FakeConsoleNotifications) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ConsoleNotificationList, err error) {
- emptyResult := &v1.ConsoleNotificationList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(consolenotificationsResource, consolenotificationsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.ConsoleNotificationList{ListMeta: obj.(*v1.ConsoleNotificationList).ListMeta}
- for _, item := range obj.(*v1.ConsoleNotificationList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested consoleNotifications.
-func (c *FakeConsoleNotifications) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(consolenotificationsResource, opts))
-}
-
-// Create takes the representation of a consoleNotification and creates it. Returns the server's representation of the consoleNotification, and an error, if there is any.
-func (c *FakeConsoleNotifications) Create(ctx context.Context, consoleNotification *v1.ConsoleNotification, opts metav1.CreateOptions) (result *v1.ConsoleNotification, err error) {
- emptyResult := &v1.ConsoleNotification{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(consolenotificationsResource, consoleNotification, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ConsoleNotification), err
-}
-
-// Update takes the representation of a consoleNotification and updates it. Returns the server's representation of the consoleNotification, and an error, if there is any.
-func (c *FakeConsoleNotifications) Update(ctx context.Context, consoleNotification *v1.ConsoleNotification, opts metav1.UpdateOptions) (result *v1.ConsoleNotification, err error) {
- emptyResult := &v1.ConsoleNotification{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(consolenotificationsResource, consoleNotification, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ConsoleNotification), err
-}
-
-// Delete takes name of the consoleNotification and deletes it. Returns an error if one occurs.
-func (c *FakeConsoleNotifications) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(consolenotificationsResource, name, opts), &v1.ConsoleNotification{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeConsoleNotifications) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(consolenotificationsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.ConsoleNotificationList{})
- return err
-}
-
-// Patch applies the patch and returns the patched consoleNotification.
-func (c *FakeConsoleNotifications) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ConsoleNotification, err error) {
- emptyResult := &v1.ConsoleNotification{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(consolenotificationsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ConsoleNotification), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied consoleNotification.
-func (c *FakeConsoleNotifications) Apply(ctx context.Context, consoleNotification *consolev1.ConsoleNotificationApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ConsoleNotification, err error) {
- if consoleNotification == nil {
- return nil, fmt.Errorf("consoleNotification provided to Apply must not be nil")
- }
- data, err := json.Marshal(consoleNotification)
- if err != nil {
- return nil, err
- }
- name := consoleNotification.Name
- if name == nil {
- return nil, fmt.Errorf("consoleNotification.Name must be provided to Apply")
- }
- emptyResult := &v1.ConsoleNotification{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(consolenotificationsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeConsoleNotifications(fake *FakeConsoleV1) typedconsolev1.ConsoleNotificationInterface {
+ return &fakeConsoleNotifications{
+ gentype.NewFakeClientWithListAndApply[*v1.ConsoleNotification, *v1.ConsoleNotificationList, *consolev1.ConsoleNotificationApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("consolenotifications"),
+ v1.SchemeGroupVersion.WithKind("ConsoleNotification"),
+ func() *v1.ConsoleNotification { return &v1.ConsoleNotification{} },
+ func() *v1.ConsoleNotificationList { return &v1.ConsoleNotificationList{} },
+ func(dst, src *v1.ConsoleNotificationList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.ConsoleNotificationList) []*v1.ConsoleNotification {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1.ConsoleNotificationList, items []*v1.ConsoleNotification) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.ConsoleNotification), err
}
diff --git a/console/clientset/versioned/typed/console/v1/fake/fake_consoleplugin.go b/console/clientset/versioned/typed/console/v1/fake/fake_consoleplugin.go
index 0643f54f2..ae8618367 100644
--- a/console/clientset/versioned/typed/console/v1/fake/fake_consoleplugin.go
+++ b/console/clientset/versioned/typed/console/v1/fake/fake_consoleplugin.go
@@ -3,133 +3,33 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/console/v1"
consolev1 "github.com/openshift/client-go/console/applyconfigurations/console/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedconsolev1 "github.com/openshift/client-go/console/clientset/versioned/typed/console/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeConsolePlugins implements ConsolePluginInterface
-type FakeConsolePlugins struct {
+// fakeConsolePlugins implements ConsolePluginInterface
+type fakeConsolePlugins struct {
+ *gentype.FakeClientWithListAndApply[*v1.ConsolePlugin, *v1.ConsolePluginList, *consolev1.ConsolePluginApplyConfiguration]
Fake *FakeConsoleV1
}
-var consolepluginsResource = v1.SchemeGroupVersion.WithResource("consoleplugins")
-
-var consolepluginsKind = v1.SchemeGroupVersion.WithKind("ConsolePlugin")
-
-// Get takes name of the consolePlugin, and returns the corresponding consolePlugin object, and an error if there is any.
-func (c *FakeConsolePlugins) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ConsolePlugin, err error) {
- emptyResult := &v1.ConsolePlugin{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(consolepluginsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ConsolePlugin), err
-}
-
-// List takes label and field selectors, and returns the list of ConsolePlugins that match those selectors.
-func (c *FakeConsolePlugins) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ConsolePluginList, err error) {
- emptyResult := &v1.ConsolePluginList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(consolepluginsResource, consolepluginsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.ConsolePluginList{ListMeta: obj.(*v1.ConsolePluginList).ListMeta}
- for _, item := range obj.(*v1.ConsolePluginList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested consolePlugins.
-func (c *FakeConsolePlugins) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(consolepluginsResource, opts))
-}
-
-// Create takes the representation of a consolePlugin and creates it. Returns the server's representation of the consolePlugin, and an error, if there is any.
-func (c *FakeConsolePlugins) Create(ctx context.Context, consolePlugin *v1.ConsolePlugin, opts metav1.CreateOptions) (result *v1.ConsolePlugin, err error) {
- emptyResult := &v1.ConsolePlugin{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(consolepluginsResource, consolePlugin, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ConsolePlugin), err
-}
-
-// Update takes the representation of a consolePlugin and updates it. Returns the server's representation of the consolePlugin, and an error, if there is any.
-func (c *FakeConsolePlugins) Update(ctx context.Context, consolePlugin *v1.ConsolePlugin, opts metav1.UpdateOptions) (result *v1.ConsolePlugin, err error) {
- emptyResult := &v1.ConsolePlugin{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(consolepluginsResource, consolePlugin, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ConsolePlugin), err
-}
-
-// Delete takes name of the consolePlugin and deletes it. Returns an error if one occurs.
-func (c *FakeConsolePlugins) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(consolepluginsResource, name, opts), &v1.ConsolePlugin{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeConsolePlugins) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(consolepluginsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.ConsolePluginList{})
- return err
-}
-
-// Patch applies the patch and returns the patched consolePlugin.
-func (c *FakeConsolePlugins) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ConsolePlugin, err error) {
- emptyResult := &v1.ConsolePlugin{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(consolepluginsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ConsolePlugin), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied consolePlugin.
-func (c *FakeConsolePlugins) Apply(ctx context.Context, consolePlugin *consolev1.ConsolePluginApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ConsolePlugin, err error) {
- if consolePlugin == nil {
- return nil, fmt.Errorf("consolePlugin provided to Apply must not be nil")
- }
- data, err := json.Marshal(consolePlugin)
- if err != nil {
- return nil, err
- }
- name := consolePlugin.Name
- if name == nil {
- return nil, fmt.Errorf("consolePlugin.Name must be provided to Apply")
- }
- emptyResult := &v1.ConsolePlugin{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(consolepluginsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeConsolePlugins(fake *FakeConsoleV1) typedconsolev1.ConsolePluginInterface {
+ return &fakeConsolePlugins{
+ gentype.NewFakeClientWithListAndApply[*v1.ConsolePlugin, *v1.ConsolePluginList, *consolev1.ConsolePluginApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("consoleplugins"),
+ v1.SchemeGroupVersion.WithKind("ConsolePlugin"),
+ func() *v1.ConsolePlugin { return &v1.ConsolePlugin{} },
+ func() *v1.ConsolePluginList { return &v1.ConsolePluginList{} },
+ func(dst, src *v1.ConsolePluginList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.ConsolePluginList) []*v1.ConsolePlugin { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.ConsolePluginList, items []*v1.ConsolePlugin) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.ConsolePlugin), err
}
diff --git a/console/clientset/versioned/typed/console/v1/fake/fake_consolequickstart.go b/console/clientset/versioned/typed/console/v1/fake/fake_consolequickstart.go
index 66324695e..ea8afc470 100644
--- a/console/clientset/versioned/typed/console/v1/fake/fake_consolequickstart.go
+++ b/console/clientset/versioned/typed/console/v1/fake/fake_consolequickstart.go
@@ -3,133 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/console/v1"
consolev1 "github.com/openshift/client-go/console/applyconfigurations/console/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedconsolev1 "github.com/openshift/client-go/console/clientset/versioned/typed/console/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeConsoleQuickStarts implements ConsoleQuickStartInterface
-type FakeConsoleQuickStarts struct {
+// fakeConsoleQuickStarts implements ConsoleQuickStartInterface
+type fakeConsoleQuickStarts struct {
+ *gentype.FakeClientWithListAndApply[*v1.ConsoleQuickStart, *v1.ConsoleQuickStartList, *consolev1.ConsoleQuickStartApplyConfiguration]
Fake *FakeConsoleV1
}
-var consolequickstartsResource = v1.SchemeGroupVersion.WithResource("consolequickstarts")
-
-var consolequickstartsKind = v1.SchemeGroupVersion.WithKind("ConsoleQuickStart")
-
-// Get takes name of the consoleQuickStart, and returns the corresponding consoleQuickStart object, and an error if there is any.
-func (c *FakeConsoleQuickStarts) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ConsoleQuickStart, err error) {
- emptyResult := &v1.ConsoleQuickStart{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(consolequickstartsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ConsoleQuickStart), err
-}
-
-// List takes label and field selectors, and returns the list of ConsoleQuickStarts that match those selectors.
-func (c *FakeConsoleQuickStarts) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ConsoleQuickStartList, err error) {
- emptyResult := &v1.ConsoleQuickStartList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(consolequickstartsResource, consolequickstartsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.ConsoleQuickStartList{ListMeta: obj.(*v1.ConsoleQuickStartList).ListMeta}
- for _, item := range obj.(*v1.ConsoleQuickStartList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested consoleQuickStarts.
-func (c *FakeConsoleQuickStarts) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(consolequickstartsResource, opts))
-}
-
-// Create takes the representation of a consoleQuickStart and creates it. Returns the server's representation of the consoleQuickStart, and an error, if there is any.
-func (c *FakeConsoleQuickStarts) Create(ctx context.Context, consoleQuickStart *v1.ConsoleQuickStart, opts metav1.CreateOptions) (result *v1.ConsoleQuickStart, err error) {
- emptyResult := &v1.ConsoleQuickStart{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(consolequickstartsResource, consoleQuickStart, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ConsoleQuickStart), err
-}
-
-// Update takes the representation of a consoleQuickStart and updates it. Returns the server's representation of the consoleQuickStart, and an error, if there is any.
-func (c *FakeConsoleQuickStarts) Update(ctx context.Context, consoleQuickStart *v1.ConsoleQuickStart, opts metav1.UpdateOptions) (result *v1.ConsoleQuickStart, err error) {
- emptyResult := &v1.ConsoleQuickStart{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(consolequickstartsResource, consoleQuickStart, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ConsoleQuickStart), err
-}
-
-// Delete takes name of the consoleQuickStart and deletes it. Returns an error if one occurs.
-func (c *FakeConsoleQuickStarts) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(consolequickstartsResource, name, opts), &v1.ConsoleQuickStart{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeConsoleQuickStarts) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(consolequickstartsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.ConsoleQuickStartList{})
- return err
-}
-
-// Patch applies the patch and returns the patched consoleQuickStart.
-func (c *FakeConsoleQuickStarts) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ConsoleQuickStart, err error) {
- emptyResult := &v1.ConsoleQuickStart{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(consolequickstartsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ConsoleQuickStart), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied consoleQuickStart.
-func (c *FakeConsoleQuickStarts) Apply(ctx context.Context, consoleQuickStart *consolev1.ConsoleQuickStartApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ConsoleQuickStart, err error) {
- if consoleQuickStart == nil {
- return nil, fmt.Errorf("consoleQuickStart provided to Apply must not be nil")
- }
- data, err := json.Marshal(consoleQuickStart)
- if err != nil {
- return nil, err
- }
- name := consoleQuickStart.Name
- if name == nil {
- return nil, fmt.Errorf("consoleQuickStart.Name must be provided to Apply")
- }
- emptyResult := &v1.ConsoleQuickStart{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(consolequickstartsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeConsoleQuickStarts(fake *FakeConsoleV1) typedconsolev1.ConsoleQuickStartInterface {
+ return &fakeConsoleQuickStarts{
+ gentype.NewFakeClientWithListAndApply[*v1.ConsoleQuickStart, *v1.ConsoleQuickStartList, *consolev1.ConsoleQuickStartApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("consolequickstarts"),
+ v1.SchemeGroupVersion.WithKind("ConsoleQuickStart"),
+ func() *v1.ConsoleQuickStart { return &v1.ConsoleQuickStart{} },
+ func() *v1.ConsoleQuickStartList { return &v1.ConsoleQuickStartList{} },
+ func(dst, src *v1.ConsoleQuickStartList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.ConsoleQuickStartList) []*v1.ConsoleQuickStart {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1.ConsoleQuickStartList, items []*v1.ConsoleQuickStart) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.ConsoleQuickStart), err
}
diff --git a/console/clientset/versioned/typed/console/v1/fake/fake_consolesample.go b/console/clientset/versioned/typed/console/v1/fake/fake_consolesample.go
index 8d204966c..55e67ac31 100644
--- a/console/clientset/versioned/typed/console/v1/fake/fake_consolesample.go
+++ b/console/clientset/versioned/typed/console/v1/fake/fake_consolesample.go
@@ -3,133 +3,33 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/console/v1"
consolev1 "github.com/openshift/client-go/console/applyconfigurations/console/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedconsolev1 "github.com/openshift/client-go/console/clientset/versioned/typed/console/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeConsoleSamples implements ConsoleSampleInterface
-type FakeConsoleSamples struct {
+// fakeConsoleSamples implements ConsoleSampleInterface
+type fakeConsoleSamples struct {
+ *gentype.FakeClientWithListAndApply[*v1.ConsoleSample, *v1.ConsoleSampleList, *consolev1.ConsoleSampleApplyConfiguration]
Fake *FakeConsoleV1
}
-var consolesamplesResource = v1.SchemeGroupVersion.WithResource("consolesamples")
-
-var consolesamplesKind = v1.SchemeGroupVersion.WithKind("ConsoleSample")
-
-// Get takes name of the consoleSample, and returns the corresponding consoleSample object, and an error if there is any.
-func (c *FakeConsoleSamples) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ConsoleSample, err error) {
- emptyResult := &v1.ConsoleSample{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(consolesamplesResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ConsoleSample), err
-}
-
-// List takes label and field selectors, and returns the list of ConsoleSamples that match those selectors.
-func (c *FakeConsoleSamples) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ConsoleSampleList, err error) {
- emptyResult := &v1.ConsoleSampleList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(consolesamplesResource, consolesamplesKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.ConsoleSampleList{ListMeta: obj.(*v1.ConsoleSampleList).ListMeta}
- for _, item := range obj.(*v1.ConsoleSampleList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested consoleSamples.
-func (c *FakeConsoleSamples) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(consolesamplesResource, opts))
-}
-
-// Create takes the representation of a consoleSample and creates it. Returns the server's representation of the consoleSample, and an error, if there is any.
-func (c *FakeConsoleSamples) Create(ctx context.Context, consoleSample *v1.ConsoleSample, opts metav1.CreateOptions) (result *v1.ConsoleSample, err error) {
- emptyResult := &v1.ConsoleSample{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(consolesamplesResource, consoleSample, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ConsoleSample), err
-}
-
-// Update takes the representation of a consoleSample and updates it. Returns the server's representation of the consoleSample, and an error, if there is any.
-func (c *FakeConsoleSamples) Update(ctx context.Context, consoleSample *v1.ConsoleSample, opts metav1.UpdateOptions) (result *v1.ConsoleSample, err error) {
- emptyResult := &v1.ConsoleSample{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(consolesamplesResource, consoleSample, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ConsoleSample), err
-}
-
-// Delete takes name of the consoleSample and deletes it. Returns an error if one occurs.
-func (c *FakeConsoleSamples) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(consolesamplesResource, name, opts), &v1.ConsoleSample{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeConsoleSamples) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(consolesamplesResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.ConsoleSampleList{})
- return err
-}
-
-// Patch applies the patch and returns the patched consoleSample.
-func (c *FakeConsoleSamples) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ConsoleSample, err error) {
- emptyResult := &v1.ConsoleSample{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(consolesamplesResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ConsoleSample), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied consoleSample.
-func (c *FakeConsoleSamples) Apply(ctx context.Context, consoleSample *consolev1.ConsoleSampleApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ConsoleSample, err error) {
- if consoleSample == nil {
- return nil, fmt.Errorf("consoleSample provided to Apply must not be nil")
- }
- data, err := json.Marshal(consoleSample)
- if err != nil {
- return nil, err
- }
- name := consoleSample.Name
- if name == nil {
- return nil, fmt.Errorf("consoleSample.Name must be provided to Apply")
- }
- emptyResult := &v1.ConsoleSample{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(consolesamplesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeConsoleSamples(fake *FakeConsoleV1) typedconsolev1.ConsoleSampleInterface {
+ return &fakeConsoleSamples{
+ gentype.NewFakeClientWithListAndApply[*v1.ConsoleSample, *v1.ConsoleSampleList, *consolev1.ConsoleSampleApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("consolesamples"),
+ v1.SchemeGroupVersion.WithKind("ConsoleSample"),
+ func() *v1.ConsoleSample { return &v1.ConsoleSample{} },
+ func() *v1.ConsoleSampleList { return &v1.ConsoleSampleList{} },
+ func(dst, src *v1.ConsoleSampleList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.ConsoleSampleList) []*v1.ConsoleSample { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.ConsoleSampleList, items []*v1.ConsoleSample) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.ConsoleSample), err
}
diff --git a/console/clientset/versioned/typed/console/v1/fake/fake_consoleyamlsample.go b/console/clientset/versioned/typed/console/v1/fake/fake_consoleyamlsample.go
index cd4343a3d..fe399cd57 100644
--- a/console/clientset/versioned/typed/console/v1/fake/fake_consoleyamlsample.go
+++ b/console/clientset/versioned/typed/console/v1/fake/fake_consoleyamlsample.go
@@ -3,133 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/console/v1"
consolev1 "github.com/openshift/client-go/console/applyconfigurations/console/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedconsolev1 "github.com/openshift/client-go/console/clientset/versioned/typed/console/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeConsoleYAMLSamples implements ConsoleYAMLSampleInterface
-type FakeConsoleYAMLSamples struct {
+// fakeConsoleYAMLSamples implements ConsoleYAMLSampleInterface
+type fakeConsoleYAMLSamples struct {
+ *gentype.FakeClientWithListAndApply[*v1.ConsoleYAMLSample, *v1.ConsoleYAMLSampleList, *consolev1.ConsoleYAMLSampleApplyConfiguration]
Fake *FakeConsoleV1
}
-var consoleyamlsamplesResource = v1.SchemeGroupVersion.WithResource("consoleyamlsamples")
-
-var consoleyamlsamplesKind = v1.SchemeGroupVersion.WithKind("ConsoleYAMLSample")
-
-// Get takes name of the consoleYAMLSample, and returns the corresponding consoleYAMLSample object, and an error if there is any.
-func (c *FakeConsoleYAMLSamples) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ConsoleYAMLSample, err error) {
- emptyResult := &v1.ConsoleYAMLSample{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(consoleyamlsamplesResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ConsoleYAMLSample), err
-}
-
-// List takes label and field selectors, and returns the list of ConsoleYAMLSamples that match those selectors.
-func (c *FakeConsoleYAMLSamples) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ConsoleYAMLSampleList, err error) {
- emptyResult := &v1.ConsoleYAMLSampleList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(consoleyamlsamplesResource, consoleyamlsamplesKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.ConsoleYAMLSampleList{ListMeta: obj.(*v1.ConsoleYAMLSampleList).ListMeta}
- for _, item := range obj.(*v1.ConsoleYAMLSampleList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested consoleYAMLSamples.
-func (c *FakeConsoleYAMLSamples) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(consoleyamlsamplesResource, opts))
-}
-
-// Create takes the representation of a consoleYAMLSample and creates it. Returns the server's representation of the consoleYAMLSample, and an error, if there is any.
-func (c *FakeConsoleYAMLSamples) Create(ctx context.Context, consoleYAMLSample *v1.ConsoleYAMLSample, opts metav1.CreateOptions) (result *v1.ConsoleYAMLSample, err error) {
- emptyResult := &v1.ConsoleYAMLSample{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(consoleyamlsamplesResource, consoleYAMLSample, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ConsoleYAMLSample), err
-}
-
-// Update takes the representation of a consoleYAMLSample and updates it. Returns the server's representation of the consoleYAMLSample, and an error, if there is any.
-func (c *FakeConsoleYAMLSamples) Update(ctx context.Context, consoleYAMLSample *v1.ConsoleYAMLSample, opts metav1.UpdateOptions) (result *v1.ConsoleYAMLSample, err error) {
- emptyResult := &v1.ConsoleYAMLSample{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(consoleyamlsamplesResource, consoleYAMLSample, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ConsoleYAMLSample), err
-}
-
-// Delete takes name of the consoleYAMLSample and deletes it. Returns an error if one occurs.
-func (c *FakeConsoleYAMLSamples) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(consoleyamlsamplesResource, name, opts), &v1.ConsoleYAMLSample{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeConsoleYAMLSamples) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(consoleyamlsamplesResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.ConsoleYAMLSampleList{})
- return err
-}
-
-// Patch applies the patch and returns the patched consoleYAMLSample.
-func (c *FakeConsoleYAMLSamples) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ConsoleYAMLSample, err error) {
- emptyResult := &v1.ConsoleYAMLSample{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(consoleyamlsamplesResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ConsoleYAMLSample), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied consoleYAMLSample.
-func (c *FakeConsoleYAMLSamples) Apply(ctx context.Context, consoleYAMLSample *consolev1.ConsoleYAMLSampleApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ConsoleYAMLSample, err error) {
- if consoleYAMLSample == nil {
- return nil, fmt.Errorf("consoleYAMLSample provided to Apply must not be nil")
- }
- data, err := json.Marshal(consoleYAMLSample)
- if err != nil {
- return nil, err
- }
- name := consoleYAMLSample.Name
- if name == nil {
- return nil, fmt.Errorf("consoleYAMLSample.Name must be provided to Apply")
- }
- emptyResult := &v1.ConsoleYAMLSample{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(consoleyamlsamplesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeConsoleYAMLSamples(fake *FakeConsoleV1) typedconsolev1.ConsoleYAMLSampleInterface {
+ return &fakeConsoleYAMLSamples{
+ gentype.NewFakeClientWithListAndApply[*v1.ConsoleYAMLSample, *v1.ConsoleYAMLSampleList, *consolev1.ConsoleYAMLSampleApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("consoleyamlsamples"),
+ v1.SchemeGroupVersion.WithKind("ConsoleYAMLSample"),
+ func() *v1.ConsoleYAMLSample { return &v1.ConsoleYAMLSample{} },
+ func() *v1.ConsoleYAMLSampleList { return &v1.ConsoleYAMLSampleList{} },
+ func(dst, src *v1.ConsoleYAMLSampleList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.ConsoleYAMLSampleList) []*v1.ConsoleYAMLSample {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1.ConsoleYAMLSampleList, items []*v1.ConsoleYAMLSample) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.ConsoleYAMLSample), err
}
diff --git a/console/informers/externalversions/console/v1/consoleclidownload.go b/console/informers/externalversions/console/v1/consoleclidownload.go
index 756b15207..7023d3635 100644
--- a/console/informers/externalversions/console/v1/consoleclidownload.go
+++ b/console/informers/externalversions/console/v1/consoleclidownload.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- consolev1 "github.com/openshift/api/console/v1"
+ apiconsolev1 "github.com/openshift/api/console/v1"
versioned "github.com/openshift/client-go/console/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/console/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/console/listers/console/v1"
+ consolev1 "github.com/openshift/client-go/console/listers/console/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// ConsoleCLIDownloads.
type ConsoleCLIDownloadInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.ConsoleCLIDownloadLister
+ Lister() consolev1.ConsoleCLIDownloadLister
}
type consoleCLIDownloadInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredConsoleCLIDownloadInformer(client versioned.Interface, resyncPer
return client.ConsoleV1().ConsoleCLIDownloads().Watch(context.TODO(), options)
},
},
- &consolev1.ConsoleCLIDownload{},
+ &apiconsolev1.ConsoleCLIDownload{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *consoleCLIDownloadInformer) defaultInformer(client versioned.Interface,
}
func (f *consoleCLIDownloadInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&consolev1.ConsoleCLIDownload{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiconsolev1.ConsoleCLIDownload{}, f.defaultInformer)
}
-func (f *consoleCLIDownloadInformer) Lister() v1.ConsoleCLIDownloadLister {
- return v1.NewConsoleCLIDownloadLister(f.Informer().GetIndexer())
+func (f *consoleCLIDownloadInformer) Lister() consolev1.ConsoleCLIDownloadLister {
+ return consolev1.NewConsoleCLIDownloadLister(f.Informer().GetIndexer())
}
diff --git a/console/informers/externalversions/console/v1/consoleexternalloglink.go b/console/informers/externalversions/console/v1/consoleexternalloglink.go
index bf933d912..23f335665 100644
--- a/console/informers/externalversions/console/v1/consoleexternalloglink.go
+++ b/console/informers/externalversions/console/v1/consoleexternalloglink.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- consolev1 "github.com/openshift/api/console/v1"
+ apiconsolev1 "github.com/openshift/api/console/v1"
versioned "github.com/openshift/client-go/console/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/console/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/console/listers/console/v1"
+ consolev1 "github.com/openshift/client-go/console/listers/console/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// ConsoleExternalLogLinks.
type ConsoleExternalLogLinkInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.ConsoleExternalLogLinkLister
+ Lister() consolev1.ConsoleExternalLogLinkLister
}
type consoleExternalLogLinkInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredConsoleExternalLogLinkInformer(client versioned.Interface, resyn
return client.ConsoleV1().ConsoleExternalLogLinks().Watch(context.TODO(), options)
},
},
- &consolev1.ConsoleExternalLogLink{},
+ &apiconsolev1.ConsoleExternalLogLink{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *consoleExternalLogLinkInformer) defaultInformer(client versioned.Interf
}
func (f *consoleExternalLogLinkInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&consolev1.ConsoleExternalLogLink{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiconsolev1.ConsoleExternalLogLink{}, f.defaultInformer)
}
-func (f *consoleExternalLogLinkInformer) Lister() v1.ConsoleExternalLogLinkLister {
- return v1.NewConsoleExternalLogLinkLister(f.Informer().GetIndexer())
+func (f *consoleExternalLogLinkInformer) Lister() consolev1.ConsoleExternalLogLinkLister {
+ return consolev1.NewConsoleExternalLogLinkLister(f.Informer().GetIndexer())
}
diff --git a/console/informers/externalversions/console/v1/consolelink.go b/console/informers/externalversions/console/v1/consolelink.go
index 5ff2a50b4..887c3de0e 100644
--- a/console/informers/externalversions/console/v1/consolelink.go
+++ b/console/informers/externalversions/console/v1/consolelink.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- consolev1 "github.com/openshift/api/console/v1"
+ apiconsolev1 "github.com/openshift/api/console/v1"
versioned "github.com/openshift/client-go/console/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/console/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/console/listers/console/v1"
+ consolev1 "github.com/openshift/client-go/console/listers/console/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// ConsoleLinks.
type ConsoleLinkInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.ConsoleLinkLister
+ Lister() consolev1.ConsoleLinkLister
}
type consoleLinkInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredConsoleLinkInformer(client versioned.Interface, resyncPeriod tim
return client.ConsoleV1().ConsoleLinks().Watch(context.TODO(), options)
},
},
- &consolev1.ConsoleLink{},
+ &apiconsolev1.ConsoleLink{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *consoleLinkInformer) defaultInformer(client versioned.Interface, resync
}
func (f *consoleLinkInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&consolev1.ConsoleLink{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiconsolev1.ConsoleLink{}, f.defaultInformer)
}
-func (f *consoleLinkInformer) Lister() v1.ConsoleLinkLister {
- return v1.NewConsoleLinkLister(f.Informer().GetIndexer())
+func (f *consoleLinkInformer) Lister() consolev1.ConsoleLinkLister {
+ return consolev1.NewConsoleLinkLister(f.Informer().GetIndexer())
}
diff --git a/console/informers/externalversions/console/v1/consolenotification.go b/console/informers/externalversions/console/v1/consolenotification.go
index 6941719bb..c93aa648b 100644
--- a/console/informers/externalversions/console/v1/consolenotification.go
+++ b/console/informers/externalversions/console/v1/consolenotification.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- consolev1 "github.com/openshift/api/console/v1"
+ apiconsolev1 "github.com/openshift/api/console/v1"
versioned "github.com/openshift/client-go/console/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/console/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/console/listers/console/v1"
+ consolev1 "github.com/openshift/client-go/console/listers/console/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// ConsoleNotifications.
type ConsoleNotificationInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.ConsoleNotificationLister
+ Lister() consolev1.ConsoleNotificationLister
}
type consoleNotificationInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredConsoleNotificationInformer(client versioned.Interface, resyncPe
return client.ConsoleV1().ConsoleNotifications().Watch(context.TODO(), options)
},
},
- &consolev1.ConsoleNotification{},
+ &apiconsolev1.ConsoleNotification{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *consoleNotificationInformer) defaultInformer(client versioned.Interface
}
func (f *consoleNotificationInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&consolev1.ConsoleNotification{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiconsolev1.ConsoleNotification{}, f.defaultInformer)
}
-func (f *consoleNotificationInformer) Lister() v1.ConsoleNotificationLister {
- return v1.NewConsoleNotificationLister(f.Informer().GetIndexer())
+func (f *consoleNotificationInformer) Lister() consolev1.ConsoleNotificationLister {
+ return consolev1.NewConsoleNotificationLister(f.Informer().GetIndexer())
}
diff --git a/console/informers/externalversions/console/v1/consoleplugin.go b/console/informers/externalversions/console/v1/consoleplugin.go
index 67090b06c..dd5d81521 100644
--- a/console/informers/externalversions/console/v1/consoleplugin.go
+++ b/console/informers/externalversions/console/v1/consoleplugin.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- consolev1 "github.com/openshift/api/console/v1"
+ apiconsolev1 "github.com/openshift/api/console/v1"
versioned "github.com/openshift/client-go/console/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/console/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/console/listers/console/v1"
+ consolev1 "github.com/openshift/client-go/console/listers/console/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// ConsolePlugins.
type ConsolePluginInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.ConsolePluginLister
+ Lister() consolev1.ConsolePluginLister
}
type consolePluginInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredConsolePluginInformer(client versioned.Interface, resyncPeriod t
return client.ConsoleV1().ConsolePlugins().Watch(context.TODO(), options)
},
},
- &consolev1.ConsolePlugin{},
+ &apiconsolev1.ConsolePlugin{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *consolePluginInformer) defaultInformer(client versioned.Interface, resy
}
func (f *consolePluginInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&consolev1.ConsolePlugin{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiconsolev1.ConsolePlugin{}, f.defaultInformer)
}
-func (f *consolePluginInformer) Lister() v1.ConsolePluginLister {
- return v1.NewConsolePluginLister(f.Informer().GetIndexer())
+func (f *consolePluginInformer) Lister() consolev1.ConsolePluginLister {
+ return consolev1.NewConsolePluginLister(f.Informer().GetIndexer())
}
diff --git a/console/informers/externalversions/console/v1/consolequickstart.go b/console/informers/externalversions/console/v1/consolequickstart.go
index da4befa02..21c82ec4b 100644
--- a/console/informers/externalversions/console/v1/consolequickstart.go
+++ b/console/informers/externalversions/console/v1/consolequickstart.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- consolev1 "github.com/openshift/api/console/v1"
+ apiconsolev1 "github.com/openshift/api/console/v1"
versioned "github.com/openshift/client-go/console/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/console/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/console/listers/console/v1"
+ consolev1 "github.com/openshift/client-go/console/listers/console/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// ConsoleQuickStarts.
type ConsoleQuickStartInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.ConsoleQuickStartLister
+ Lister() consolev1.ConsoleQuickStartLister
}
type consoleQuickStartInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredConsoleQuickStartInformer(client versioned.Interface, resyncPeri
return client.ConsoleV1().ConsoleQuickStarts().Watch(context.TODO(), options)
},
},
- &consolev1.ConsoleQuickStart{},
+ &apiconsolev1.ConsoleQuickStart{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *consoleQuickStartInformer) defaultInformer(client versioned.Interface,
}
func (f *consoleQuickStartInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&consolev1.ConsoleQuickStart{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiconsolev1.ConsoleQuickStart{}, f.defaultInformer)
}
-func (f *consoleQuickStartInformer) Lister() v1.ConsoleQuickStartLister {
- return v1.NewConsoleQuickStartLister(f.Informer().GetIndexer())
+func (f *consoleQuickStartInformer) Lister() consolev1.ConsoleQuickStartLister {
+ return consolev1.NewConsoleQuickStartLister(f.Informer().GetIndexer())
}
diff --git a/console/informers/externalversions/console/v1/consolesample.go b/console/informers/externalversions/console/v1/consolesample.go
index e0ef30065..3311f3102 100644
--- a/console/informers/externalversions/console/v1/consolesample.go
+++ b/console/informers/externalversions/console/v1/consolesample.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- consolev1 "github.com/openshift/api/console/v1"
+ apiconsolev1 "github.com/openshift/api/console/v1"
versioned "github.com/openshift/client-go/console/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/console/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/console/listers/console/v1"
+ consolev1 "github.com/openshift/client-go/console/listers/console/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// ConsoleSamples.
type ConsoleSampleInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.ConsoleSampleLister
+ Lister() consolev1.ConsoleSampleLister
}
type consoleSampleInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredConsoleSampleInformer(client versioned.Interface, resyncPeriod t
return client.ConsoleV1().ConsoleSamples().Watch(context.TODO(), options)
},
},
- &consolev1.ConsoleSample{},
+ &apiconsolev1.ConsoleSample{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *consoleSampleInformer) defaultInformer(client versioned.Interface, resy
}
func (f *consoleSampleInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&consolev1.ConsoleSample{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiconsolev1.ConsoleSample{}, f.defaultInformer)
}
-func (f *consoleSampleInformer) Lister() v1.ConsoleSampleLister {
- return v1.NewConsoleSampleLister(f.Informer().GetIndexer())
+func (f *consoleSampleInformer) Lister() consolev1.ConsoleSampleLister {
+ return consolev1.NewConsoleSampleLister(f.Informer().GetIndexer())
}
diff --git a/console/informers/externalversions/console/v1/consoleyamlsample.go b/console/informers/externalversions/console/v1/consoleyamlsample.go
index f3c6dc9b4..1edfefb9f 100644
--- a/console/informers/externalversions/console/v1/consoleyamlsample.go
+++ b/console/informers/externalversions/console/v1/consoleyamlsample.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- consolev1 "github.com/openshift/api/console/v1"
+ apiconsolev1 "github.com/openshift/api/console/v1"
versioned "github.com/openshift/client-go/console/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/console/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/console/listers/console/v1"
+ consolev1 "github.com/openshift/client-go/console/listers/console/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// ConsoleYAMLSamples.
type ConsoleYAMLSampleInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.ConsoleYAMLSampleLister
+ Lister() consolev1.ConsoleYAMLSampleLister
}
type consoleYAMLSampleInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredConsoleYAMLSampleInformer(client versioned.Interface, resyncPeri
return client.ConsoleV1().ConsoleYAMLSamples().Watch(context.TODO(), options)
},
},
- &consolev1.ConsoleYAMLSample{},
+ &apiconsolev1.ConsoleYAMLSample{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *consoleYAMLSampleInformer) defaultInformer(client versioned.Interface,
}
func (f *consoleYAMLSampleInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&consolev1.ConsoleYAMLSample{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiconsolev1.ConsoleYAMLSample{}, f.defaultInformer)
}
-func (f *consoleYAMLSampleInformer) Lister() v1.ConsoleYAMLSampleLister {
- return v1.NewConsoleYAMLSampleLister(f.Informer().GetIndexer())
+func (f *consoleYAMLSampleInformer) Lister() consolev1.ConsoleYAMLSampleLister {
+ return consolev1.NewConsoleYAMLSampleLister(f.Informer().GetIndexer())
}
diff --git a/console/informers/externalversions/generic.go b/console/informers/externalversions/generic.go
index f1d22cf09..ba4e79d83 100644
--- a/console/informers/externalversions/generic.go
+++ b/console/informers/externalversions/generic.go
@@ -3,7 +3,7 @@
package externalversions
import (
- "fmt"
+ fmt "fmt"
v1 "github.com/openshift/api/console/v1"
schema "k8s.io/apimachinery/pkg/runtime/schema"
diff --git a/console/listers/console/v1/consoleclidownload.go b/console/listers/console/v1/consoleclidownload.go
index f0a93782a..3e99efd57 100644
--- a/console/listers/console/v1/consoleclidownload.go
+++ b/console/listers/console/v1/consoleclidownload.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/console/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ consolev1 "github.com/openshift/api/console/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ConsoleCLIDownloadLister helps list ConsoleCLIDownloads.
@@ -14,19 +14,19 @@ import (
type ConsoleCLIDownloadLister interface {
// List lists all ConsoleCLIDownloads in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.ConsoleCLIDownload, err error)
+ List(selector labels.Selector) (ret []*consolev1.ConsoleCLIDownload, err error)
// Get retrieves the ConsoleCLIDownload from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.ConsoleCLIDownload, error)
+ Get(name string) (*consolev1.ConsoleCLIDownload, error)
ConsoleCLIDownloadListerExpansion
}
// consoleCLIDownloadLister implements the ConsoleCLIDownloadLister interface.
type consoleCLIDownloadLister struct {
- listers.ResourceIndexer[*v1.ConsoleCLIDownload]
+ listers.ResourceIndexer[*consolev1.ConsoleCLIDownload]
}
// NewConsoleCLIDownloadLister returns a new ConsoleCLIDownloadLister.
func NewConsoleCLIDownloadLister(indexer cache.Indexer) ConsoleCLIDownloadLister {
- return &consoleCLIDownloadLister{listers.New[*v1.ConsoleCLIDownload](indexer, v1.Resource("consoleclidownload"))}
+ return &consoleCLIDownloadLister{listers.New[*consolev1.ConsoleCLIDownload](indexer, consolev1.Resource("consoleclidownload"))}
}
diff --git a/console/listers/console/v1/consoleexternalloglink.go b/console/listers/console/v1/consoleexternalloglink.go
index 43adfed2f..c5a2a0ccb 100644
--- a/console/listers/console/v1/consoleexternalloglink.go
+++ b/console/listers/console/v1/consoleexternalloglink.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/console/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ consolev1 "github.com/openshift/api/console/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ConsoleExternalLogLinkLister helps list ConsoleExternalLogLinks.
@@ -14,19 +14,19 @@ import (
type ConsoleExternalLogLinkLister interface {
// List lists all ConsoleExternalLogLinks in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.ConsoleExternalLogLink, err error)
+ List(selector labels.Selector) (ret []*consolev1.ConsoleExternalLogLink, err error)
// Get retrieves the ConsoleExternalLogLink from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.ConsoleExternalLogLink, error)
+ Get(name string) (*consolev1.ConsoleExternalLogLink, error)
ConsoleExternalLogLinkListerExpansion
}
// consoleExternalLogLinkLister implements the ConsoleExternalLogLinkLister interface.
type consoleExternalLogLinkLister struct {
- listers.ResourceIndexer[*v1.ConsoleExternalLogLink]
+ listers.ResourceIndexer[*consolev1.ConsoleExternalLogLink]
}
// NewConsoleExternalLogLinkLister returns a new ConsoleExternalLogLinkLister.
func NewConsoleExternalLogLinkLister(indexer cache.Indexer) ConsoleExternalLogLinkLister {
- return &consoleExternalLogLinkLister{listers.New[*v1.ConsoleExternalLogLink](indexer, v1.Resource("consoleexternalloglink"))}
+ return &consoleExternalLogLinkLister{listers.New[*consolev1.ConsoleExternalLogLink](indexer, consolev1.Resource("consoleexternalloglink"))}
}
diff --git a/console/listers/console/v1/consolelink.go b/console/listers/console/v1/consolelink.go
index a09595d63..20d4945e1 100644
--- a/console/listers/console/v1/consolelink.go
+++ b/console/listers/console/v1/consolelink.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/console/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ consolev1 "github.com/openshift/api/console/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ConsoleLinkLister helps list ConsoleLinks.
@@ -14,19 +14,19 @@ import (
type ConsoleLinkLister interface {
// List lists all ConsoleLinks in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.ConsoleLink, err error)
+ List(selector labels.Selector) (ret []*consolev1.ConsoleLink, err error)
// Get retrieves the ConsoleLink from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.ConsoleLink, error)
+ Get(name string) (*consolev1.ConsoleLink, error)
ConsoleLinkListerExpansion
}
// consoleLinkLister implements the ConsoleLinkLister interface.
type consoleLinkLister struct {
- listers.ResourceIndexer[*v1.ConsoleLink]
+ listers.ResourceIndexer[*consolev1.ConsoleLink]
}
// NewConsoleLinkLister returns a new ConsoleLinkLister.
func NewConsoleLinkLister(indexer cache.Indexer) ConsoleLinkLister {
- return &consoleLinkLister{listers.New[*v1.ConsoleLink](indexer, v1.Resource("consolelink"))}
+ return &consoleLinkLister{listers.New[*consolev1.ConsoleLink](indexer, consolev1.Resource("consolelink"))}
}
diff --git a/console/listers/console/v1/consolenotification.go b/console/listers/console/v1/consolenotification.go
index 366be23cd..133a2f866 100644
--- a/console/listers/console/v1/consolenotification.go
+++ b/console/listers/console/v1/consolenotification.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/console/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ consolev1 "github.com/openshift/api/console/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ConsoleNotificationLister helps list ConsoleNotifications.
@@ -14,19 +14,19 @@ import (
type ConsoleNotificationLister interface {
// List lists all ConsoleNotifications in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.ConsoleNotification, err error)
+ List(selector labels.Selector) (ret []*consolev1.ConsoleNotification, err error)
// Get retrieves the ConsoleNotification from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.ConsoleNotification, error)
+ Get(name string) (*consolev1.ConsoleNotification, error)
ConsoleNotificationListerExpansion
}
// consoleNotificationLister implements the ConsoleNotificationLister interface.
type consoleNotificationLister struct {
- listers.ResourceIndexer[*v1.ConsoleNotification]
+ listers.ResourceIndexer[*consolev1.ConsoleNotification]
}
// NewConsoleNotificationLister returns a new ConsoleNotificationLister.
func NewConsoleNotificationLister(indexer cache.Indexer) ConsoleNotificationLister {
- return &consoleNotificationLister{listers.New[*v1.ConsoleNotification](indexer, v1.Resource("consolenotification"))}
+ return &consoleNotificationLister{listers.New[*consolev1.ConsoleNotification](indexer, consolev1.Resource("consolenotification"))}
}
diff --git a/console/listers/console/v1/consoleplugin.go b/console/listers/console/v1/consoleplugin.go
index ba58e7ed9..13e407a52 100644
--- a/console/listers/console/v1/consoleplugin.go
+++ b/console/listers/console/v1/consoleplugin.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/console/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ consolev1 "github.com/openshift/api/console/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ConsolePluginLister helps list ConsolePlugins.
@@ -14,19 +14,19 @@ import (
type ConsolePluginLister interface {
// List lists all ConsolePlugins in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.ConsolePlugin, err error)
+ List(selector labels.Selector) (ret []*consolev1.ConsolePlugin, err error)
// Get retrieves the ConsolePlugin from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.ConsolePlugin, error)
+ Get(name string) (*consolev1.ConsolePlugin, error)
ConsolePluginListerExpansion
}
// consolePluginLister implements the ConsolePluginLister interface.
type consolePluginLister struct {
- listers.ResourceIndexer[*v1.ConsolePlugin]
+ listers.ResourceIndexer[*consolev1.ConsolePlugin]
}
// NewConsolePluginLister returns a new ConsolePluginLister.
func NewConsolePluginLister(indexer cache.Indexer) ConsolePluginLister {
- return &consolePluginLister{listers.New[*v1.ConsolePlugin](indexer, v1.Resource("consoleplugin"))}
+ return &consolePluginLister{listers.New[*consolev1.ConsolePlugin](indexer, consolev1.Resource("consoleplugin"))}
}
diff --git a/console/listers/console/v1/consolequickstart.go b/console/listers/console/v1/consolequickstart.go
index f32fe77d5..2269839ef 100644
--- a/console/listers/console/v1/consolequickstart.go
+++ b/console/listers/console/v1/consolequickstart.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/console/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ consolev1 "github.com/openshift/api/console/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ConsoleQuickStartLister helps list ConsoleQuickStarts.
@@ -14,19 +14,19 @@ import (
type ConsoleQuickStartLister interface {
// List lists all ConsoleQuickStarts in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.ConsoleQuickStart, err error)
+ List(selector labels.Selector) (ret []*consolev1.ConsoleQuickStart, err error)
// Get retrieves the ConsoleQuickStart from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.ConsoleQuickStart, error)
+ Get(name string) (*consolev1.ConsoleQuickStart, error)
ConsoleQuickStartListerExpansion
}
// consoleQuickStartLister implements the ConsoleQuickStartLister interface.
type consoleQuickStartLister struct {
- listers.ResourceIndexer[*v1.ConsoleQuickStart]
+ listers.ResourceIndexer[*consolev1.ConsoleQuickStart]
}
// NewConsoleQuickStartLister returns a new ConsoleQuickStartLister.
func NewConsoleQuickStartLister(indexer cache.Indexer) ConsoleQuickStartLister {
- return &consoleQuickStartLister{listers.New[*v1.ConsoleQuickStart](indexer, v1.Resource("consolequickstart"))}
+ return &consoleQuickStartLister{listers.New[*consolev1.ConsoleQuickStart](indexer, consolev1.Resource("consolequickstart"))}
}
diff --git a/console/listers/console/v1/consolesample.go b/console/listers/console/v1/consolesample.go
index 49559b2de..847ea547b 100644
--- a/console/listers/console/v1/consolesample.go
+++ b/console/listers/console/v1/consolesample.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/console/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ consolev1 "github.com/openshift/api/console/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ConsoleSampleLister helps list ConsoleSamples.
@@ -14,19 +14,19 @@ import (
type ConsoleSampleLister interface {
// List lists all ConsoleSamples in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.ConsoleSample, err error)
+ List(selector labels.Selector) (ret []*consolev1.ConsoleSample, err error)
// Get retrieves the ConsoleSample from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.ConsoleSample, error)
+ Get(name string) (*consolev1.ConsoleSample, error)
ConsoleSampleListerExpansion
}
// consoleSampleLister implements the ConsoleSampleLister interface.
type consoleSampleLister struct {
- listers.ResourceIndexer[*v1.ConsoleSample]
+ listers.ResourceIndexer[*consolev1.ConsoleSample]
}
// NewConsoleSampleLister returns a new ConsoleSampleLister.
func NewConsoleSampleLister(indexer cache.Indexer) ConsoleSampleLister {
- return &consoleSampleLister{listers.New[*v1.ConsoleSample](indexer, v1.Resource("consolesample"))}
+ return &consoleSampleLister{listers.New[*consolev1.ConsoleSample](indexer, consolev1.Resource("consolesample"))}
}
diff --git a/console/listers/console/v1/consoleyamlsample.go b/console/listers/console/v1/consoleyamlsample.go
index fa5d4c312..27ab822e8 100644
--- a/console/listers/console/v1/consoleyamlsample.go
+++ b/console/listers/console/v1/consoleyamlsample.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/console/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ consolev1 "github.com/openshift/api/console/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ConsoleYAMLSampleLister helps list ConsoleYAMLSamples.
@@ -14,19 +14,19 @@ import (
type ConsoleYAMLSampleLister interface {
// List lists all ConsoleYAMLSamples in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.ConsoleYAMLSample, err error)
+ List(selector labels.Selector) (ret []*consolev1.ConsoleYAMLSample, err error)
// Get retrieves the ConsoleYAMLSample from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.ConsoleYAMLSample, error)
+ Get(name string) (*consolev1.ConsoleYAMLSample, error)
ConsoleYAMLSampleListerExpansion
}
// consoleYAMLSampleLister implements the ConsoleYAMLSampleLister interface.
type consoleYAMLSampleLister struct {
- listers.ResourceIndexer[*v1.ConsoleYAMLSample]
+ listers.ResourceIndexer[*consolev1.ConsoleYAMLSample]
}
// NewConsoleYAMLSampleLister returns a new ConsoleYAMLSampleLister.
func NewConsoleYAMLSampleLister(indexer cache.Indexer) ConsoleYAMLSampleLister {
- return &consoleYAMLSampleLister{listers.New[*v1.ConsoleYAMLSample](indexer, v1.Resource("consoleyamlsample"))}
+ return &consoleYAMLSampleLister{listers.New[*consolev1.ConsoleYAMLSample](indexer, consolev1.Resource("consoleyamlsample"))}
}
diff --git a/go.mod b/go.mod
index 6f4ed1803..181a75d09 100644
--- a/go.mod
+++ b/go.mod
@@ -1,18 +1,18 @@
module github.com/openshift/client-go
-go 1.22.0
+go 1.23.0
-toolchain go1.22.1
+toolchain go1.23.3
require (
- github.com/openshift/api v0.0.0-20250102185430-d6d8306a24ec
+ github.com/openshift/api v0.0.0-20250124212313-a770960d61e0
github.com/openshift/build-machinery-go v0.0.0-20240613134303-8359781da660
github.com/spf13/pflag v1.0.5
- k8s.io/api v0.31.1
- k8s.io/apimachinery v0.31.1
- k8s.io/client-go v0.31.1
- k8s.io/code-generator v0.31.1
- sigs.k8s.io/structured-merge-diff/v4 v4.4.1
+ k8s.io/api v0.32.1
+ k8s.io/apimachinery v0.32.1
+ k8s.io/client-go v0.32.1
+ k8s.io/code-generator v0.32.1
+ sigs.k8s.io/structured-merge-diff/v4 v4.4.2
)
require (
@@ -20,16 +20,15 @@ require (
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
github.com/go-logr/logr v1.4.2 // indirect
- github.com/go-openapi/jsonpointer v0.19.6 // indirect
+ github.com/go-openapi/jsonpointer v0.21.0 // indirect
github.com/go-openapi/jsonreference v0.20.2 // indirect
- github.com/go-openapi/swag v0.22.4 // indirect
+ github.com/go-openapi/swag v0.23.0 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/google/gnostic-models v0.6.8 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/google/uuid v1.6.0 // indirect
- github.com/imdario/mergo v0.3.6 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
@@ -38,25 +37,24 @@ require (
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/x448/float16 v0.8.4 // indirect
- golang.org/x/mod v0.17.0 // indirect
- golang.org/x/net v0.29.0 // indirect
- golang.org/x/oauth2 v0.21.0 // indirect
+ golang.org/x/mod v0.21.0 // indirect
+ golang.org/x/net v0.30.0 // indirect
+ golang.org/x/oauth2 v0.23.0 // indirect
golang.org/x/sync v0.8.0 // indirect
- golang.org/x/sys v0.25.0 // indirect
- golang.org/x/term v0.24.0 // indirect
- golang.org/x/text v0.18.0 // indirect
- golang.org/x/time v0.3.0 // indirect
- golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect
- google.golang.org/protobuf v1.34.2 // indirect
+ golang.org/x/sys v0.26.0 // indirect
+ golang.org/x/term v0.25.0 // indirect
+ golang.org/x/text v0.19.0 // indirect
+ golang.org/x/time v0.7.0 // indirect
+ golang.org/x/tools v0.26.0 // indirect
+ google.golang.org/protobuf v1.35.1 // indirect
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
- gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
- k8s.io/gengo/v2 v2.0.0-20240228010128-51d4e06bde70 // indirect
+ k8s.io/gengo/v2 v2.0.0-20240911193312-2b36238f13e9 // indirect
k8s.io/klog/v2 v2.130.1 // indirect
- k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 // indirect
- k8s.io/utils v0.0.0-20240921022957-49e7df575cb6 // indirect
- sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
+ k8s.io/kube-openapi v0.0.0-20241105132330-32ad38e42d3f // indirect
+ k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 // indirect
+ sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 // indirect
sigs.k8s.io/yaml v1.4.0 // indirect
)
diff --git a/go.sum b/go.sum
index 8d9fecc5a..6456ee4d5 100644
--- a/go.sum
+++ b/go.sum
@@ -9,13 +9,14 @@ github.com/fxamacker/cbor/v2 v2.7.0 h1:iM5WgngdRBanHcxugY4JySA0nk1wZorNOpTgCMedv
github.com/fxamacker/cbor/v2 v2.7.0/go.mod h1:pxXPTn3joSm21Gbwsv0w9OSA2y1HFR9qXEeXQVeNoDQ=
github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY=
github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
-github.com/go-openapi/jsonpointer v0.19.6 h1:eCs3fxoIi3Wh6vtgmLTOjdhSpiqphQ+DaPn38N2ZdrE=
github.com/go-openapi/jsonpointer v0.19.6/go.mod h1:osyAmYz/mB/C3I+WsTTSgw1ONzaLJoLCyoi6/zppojs=
+github.com/go-openapi/jsonpointer v0.21.0 h1:YgdVicSA9vH5RiHs9TZW5oyafXZFc6+2Vc1rr/O9oNQ=
+github.com/go-openapi/jsonpointer v0.21.0/go.mod h1:IUyH9l/+uyhIYQ/PXVA41Rexl+kOkAPDdXEYns6fzUY=
github.com/go-openapi/jsonreference v0.20.2 h1:3sVjiK66+uXK/6oQ8xgcRKcFgQ5KXa2KvnJRumpMGbE=
github.com/go-openapi/jsonreference v0.20.2/go.mod h1:Bl1zwGIM8/wsvqjsOQLJ/SH+En5Ap4rVB5KVcIDZG2k=
github.com/go-openapi/swag v0.22.3/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+VcZ0yl14=
-github.com/go-openapi/swag v0.22.4 h1:QLMzNJnMGPRNDCbySlcj1x01tzU8/9LTTL9hZZZogBU=
-github.com/go-openapi/swag v0.22.4/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+VcZ0yl14=
+github.com/go-openapi/swag v0.23.0 h1:vsEVJDUo2hPJ2tu0/Xc+4noaxyEffXNIs3cOULZ+GrE=
+github.com/go-openapi/swag v0.23.0/go.mod h1:esZ8ITTYEsH1V2trKHjAN8Ai7xHb8RV+YSZ577vPjgQ=
github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1vB6EwHI=
github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8=
github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
@@ -30,12 +31,10 @@ github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0=
github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
-github.com/google/pprof v0.0.0-20240525223248-4bfdf5a9a2af h1:kmjWCqn2qkEml422C2Rrd27c3VGxi6a/6HNq8QmHRKM=
-github.com/google/pprof v0.0.0-20240525223248-4bfdf5a9a2af/go.mod h1:K1liHPHnj73Fdn/EKuT8nrFqBihUSKXoLYU0BuatOYo=
+github.com/google/pprof v0.0.0-20241029153458-d1b30febd7db h1:097atOisP2aRj7vFgYQBbFN4U4JNXUNYpxael3UzMyo=
+github.com/google/pprof v0.0.0-20241029153458-d1b30febd7db/go.mod h1:vavhavw2zAxS5dIdcRluK6cSGGPlZynqzFM8NdvU144=
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
-github.com/imdario/mergo v0.3.6 h1:xTNEAn+kxVO7dTZGu0CegyqKZmoWFI0rF8UxjlB2d28=
-github.com/imdario/mergo v0.3.6/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA=
github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY=
github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y=
github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM=
@@ -58,12 +57,12 @@ github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9G
github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA=
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ=
-github.com/onsi/ginkgo/v2 v2.19.0 h1:9Cnnf7UHo57Hy3k6/m5k3dRfGTMXGvxhHFvkDTCTpvA=
-github.com/onsi/ginkgo/v2 v2.19.0/go.mod h1:rlwLi9PilAFJ8jCg9UE1QP6VBpd6/xj3SRC0d6TU0To=
-github.com/onsi/gomega v1.33.1 h1:dsYjIxxSR755MDmKVsaFQTE22ChNBcuuTWgkUDSubOk=
-github.com/onsi/gomega v1.33.1/go.mod h1:U4R44UsT+9eLIaYRB2a5qajjtQYn0hauxvRm16AVYg0=
-github.com/openshift/api v0.0.0-20250102185430-d6d8306a24ec h1:VEDRGJmiYeN0V0xW1aI9wfzEMgaMZOVasy3FzEz27Lo=
-github.com/openshift/api v0.0.0-20250102185430-d6d8306a24ec/go.mod h1:Shkl4HanLwDiiBzakv+con/aMGnVE2MAGvoKp5oyYUo=
+github.com/onsi/ginkgo/v2 v2.21.0 h1:7rg/4f3rB88pb5obDgNZrNHrQ4e6WpjonchcpuBRnZM=
+github.com/onsi/ginkgo/v2 v2.21.0/go.mod h1:7Du3c42kxCUegi0IImZ1wUQzMBVecgIHjR1C+NkhLQo=
+github.com/onsi/gomega v1.35.1 h1:Cwbd75ZBPxFSuZ6T+rN/WCb/gOc6YgFBXLlZLhC7Ds4=
+github.com/onsi/gomega v1.35.1/go.mod h1:PvZbdDc8J6XJEpDK4HCuRBm8a6Fzp9/DmhC9C7yFlog=
+github.com/openshift/api v0.0.0-20250124212313-a770960d61e0 h1:dCvNfygMrPLVNQ06bpHXrxKfrXHiprO4+etHrRUqI8g=
+github.com/openshift/api v0.0.0-20250124212313-a770960d61e0/go.mod h1:yk60tHAmHhtVpJQo3TwVYq2zpuP70iJIFDCmeKMIzPw=
github.com/openshift/build-machinery-go v0.0.0-20240613134303-8359781da660 h1:F0zE2bmdVvaEd18VXuGYQdJJ1FYJu4MIDW9PYZWc9No=
github.com/openshift/build-machinery-go v0.0.0-20240613134303-8359781da660/go.mod h1:8jcm8UPtg2mCAsxfqKil1xrmRMI3a+XU2TZ9fF8A7TE=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
@@ -93,16 +92,16 @@ golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8U
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
-golang.org/x/mod v0.17.0 h1:zY54UmvipHiNd+pm+m0x9KhZ9hl1/7QNMyxXbc6ICqA=
-golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
+golang.org/x/mod v0.21.0 h1:vvrHzRwRfVKSiLrG+d4FMl/Qi4ukBCE6kZlTUkDYRT0=
+golang.org/x/mod v0.21.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
-golang.org/x/net v0.29.0 h1:5ORfpBpCs4HzDYoodCDBbwHzdR5UrLBZ3sOnUJmFoHo=
-golang.org/x/net v0.29.0/go.mod h1:gLkgy8jTGERgjzMic6DS9+SP0ajcu6Xu3Orq/SpETg0=
-golang.org/x/oauth2 v0.21.0 h1:tsimM75w1tF/uws5rbeHzIWxEqElMehnc+iW793zsZs=
-golang.org/x/oauth2 v0.21.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI=
+golang.org/x/net v0.30.0 h1:AcW1SDZMkb8IpzCdQUaIq2sP4sZ4zw+55h6ynffypl4=
+golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU=
+golang.org/x/oauth2 v0.23.0 h1:PbgcYx2W7i4LvjJWEbf0ngHV6qJYr86PkAV3bXdLEbs=
+golang.org/x/oauth2 v0.23.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
@@ -111,28 +110,28 @@ golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.25.0 h1:r+8e+loiHxRqhXVl6ML1nO3l1+oFoWbnlu2Ehimmi34=
-golang.org/x/sys v0.25.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
-golang.org/x/term v0.24.0 h1:Mh5cbb+Zk2hqqXNO7S1iTjEphVL+jb8ZWaqh/g+JWkM=
-golang.org/x/term v0.24.0/go.mod h1:lOBK/LVxemqiMij05LGJ0tzNr8xlmwBRJ81PX6wVLH8=
+golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo=
+golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
+golang.org/x/term v0.25.0 h1:WtHI/ltw4NvSUig5KARz9h521QvRC8RmF/cuYqifU24=
+golang.org/x/term v0.25.0/go.mod h1:RPyXicDX+6vLxogjjRxjgD2TKtmAO6NZBsBRfrOLu7M=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
-golang.org/x/text v0.18.0 h1:XvMDiNzPAl0jr17s6W9lcaIhGUfUORdGCNsuLmPG224=
-golang.org/x/text v0.18.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY=
-golang.org/x/time v0.3.0 h1:rg5rLMjNzMS1RkNLzCG38eapWhnYLFYXDXj2gOlr8j4=
-golang.org/x/time v0.3.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
+golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM=
+golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY=
+golang.org/x/time v0.7.0 h1:ntUhktv3OPE6TgYxXWv9vKvUSJyIFJlyohwbkEwPrKQ=
+golang.org/x/time v0.7.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
-golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d h1:vU5i/LfpvrRCpgM/VPfJLg5KjxD3E+hfT1SH+d9zLwg=
-golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk=
+golang.org/x/tools v0.26.0 h1:v/60pFQmzmT9ExmjDv2gGIfi3OqfKoEP6I5+umXlbnQ=
+golang.org/x/tools v0.26.0/go.mod h1:TPVVj70c7JJ3WCazhD8OdXcZg/og+b9+tH/KxylGwH0=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
-google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg=
-google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw=
+google.golang.org/protobuf v1.35.1 h1:m3LfL6/Ca+fqnjnlqQXNpFPABW1UD7mjh8KO2mKFytA=
+google.golang.org/protobuf v1.35.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
@@ -140,31 +139,28 @@ gopkg.in/evanphx/json-patch.v4 v4.12.0 h1:n6jtcsulIzXPJaxegRbvFNNrZDjbij7ny3gmSP
gopkg.in/evanphx/json-patch.v4 v4.12.0/go.mod h1:p8EYWUEYMpynmqDbY58zCKCFZw8pRWMG4EsWvDvM72M=
gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc=
gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw=
-gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
-gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
-gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
-k8s.io/api v0.31.1 h1:Xe1hX/fPW3PXYYv8BlozYqw63ytA92snr96zMW9gWTU=
-k8s.io/api v0.31.1/go.mod h1:sbN1g6eY6XVLeqNsZGLnI5FwVseTrZX7Fv3O26rhAaI=
-k8s.io/apimachinery v0.31.1 h1:mhcUBbj7KUjaVhyXILglcVjuS4nYXiwC+KKFBgIVy7U=
-k8s.io/apimachinery v0.31.1/go.mod h1:rsPdaZJfTfLsNJSQzNHQvYoTmxhoOEofxtOsF3rtsMo=
-k8s.io/client-go v0.31.1 h1:f0ugtWSbWpxHR7sjVpQwuvw9a3ZKLXX0u0itkFXufb0=
-k8s.io/client-go v0.31.1/go.mod h1:sKI8871MJN2OyeqRlmA4W4KM9KBdBUpDLu/43eGemCg=
-k8s.io/code-generator v0.31.1 h1:GvkRZEP2g2UnB2QKT2Dgc/kYxIkDxCHENv2Q1itioVs=
-k8s.io/code-generator v0.31.1/go.mod h1:oL2ky46L48osNqqZAeOcWWy0S5BXj50vVdwOtTefqIs=
-k8s.io/gengo/v2 v2.0.0-20240228010128-51d4e06bde70 h1:NGrVE502P0s0/1hudf8zjgwki1X/TByhmAoILTarmzo=
-k8s.io/gengo/v2 v2.0.0-20240228010128-51d4e06bde70/go.mod h1:VH3AT8AaQOqiGjMF9p0/IM1Dj+82ZwjfxUP1IxaHE+8=
+k8s.io/api v0.32.1 h1:f562zw9cy+GvXzXf0CKlVQ7yHJVYzLfL6JAS4kOAaOc=
+k8s.io/api v0.32.1/go.mod h1:/Yi/BqkuueW1BgpoePYBRdDYfjPF5sgTr5+YqDZra5k=
+k8s.io/apimachinery v0.32.1 h1:683ENpaCBjma4CYqsmZyhEzrGz6cjn1MY/X2jB2hkZs=
+k8s.io/apimachinery v0.32.1/go.mod h1:GpHVgxoKlTxClKcteaeuF1Ul/lDVb74KpZcxcmLDElE=
+k8s.io/client-go v0.32.1 h1:otM0AxdhdBIaQh7l1Q0jQpmo7WOFIk5FFa4bg6YMdUU=
+k8s.io/client-go v0.32.1/go.mod h1:aTTKZY7MdxUaJ/KiUs8D+GssR9zJZi77ZqtzcGXIiDg=
+k8s.io/code-generator v0.32.1 h1:4lw1kFNDuFYXquTkB7Sl5EwPMUP2yyW9hh6BnFfRZFY=
+k8s.io/code-generator v0.32.1/go.mod h1:zaILfm00CVyP/6/pJMJ3zxRepXkxyDfUV5SNG4CjZI4=
+k8s.io/gengo/v2 v2.0.0-20240911193312-2b36238f13e9 h1:si3PfKm8dDYxgfbeA6orqrtLkvvIeH8UqffFJDl0bz4=
+k8s.io/gengo/v2 v2.0.0-20240911193312-2b36238f13e9/go.mod h1:EJykeLsmFC60UQbYJezXkEsG2FLrt0GPNkU5iK5GWxU=
k8s.io/klog/v2 v2.130.1 h1:n9Xl7H1Xvksem4KFG4PYbdQCQxqc/tTUyrgXaOhHSzk=
k8s.io/klog/v2 v2.130.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE=
-k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 h1:BZqlfIlq5YbRMFko6/PM7FjZpUb45WallggurYhKGag=
-k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340/go.mod h1:yD4MZYeKMBwQKVht279WycxKyM84kkAx2DPrTXaeb98=
-k8s.io/utils v0.0.0-20240921022957-49e7df575cb6 h1:MDF6h2H/h4tbzmtIKTuctcwZmY0tY9mD9fNT47QO6HI=
-k8s.io/utils v0.0.0-20240921022957-49e7df575cb6/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
-sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd h1:EDPBXCAspyGV4jQlpZSudPeMmr1bNJefnuqLsRAsHZo=
-sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd/go.mod h1:B8JuhiUyNFVKdsE8h686QcCxMaH6HrOAZj4vswFpcB0=
-sigs.k8s.io/structured-merge-diff/v4 v4.4.1 h1:150L+0vs/8DA78h1u02ooW1/fFq/Lwr+sGiqlzvrtq4=
-sigs.k8s.io/structured-merge-diff/v4 v4.4.1/go.mod h1:N8hJocpFajUSSeSJ9bOZ77VzejKZaXsTtZo4/u7Io08=
+k8s.io/kube-openapi v0.0.0-20241105132330-32ad38e42d3f h1:GA7//TjRY9yWGy1poLzYYJJ4JRdzg3+O6e8I+e+8T5Y=
+k8s.io/kube-openapi v0.0.0-20241105132330-32ad38e42d3f/go.mod h1:R/HEjbvWI0qdfb8viZUeVZm0X6IZnxAydC7YU42CMw4=
+k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 h1:M3sRQVHv7vB20Xc2ybTt7ODCeFj6JSWYFzOFnYeS6Ro=
+k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
+sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 h1:/Rv+M11QRah1itp8VhT6HoVx1Ray9eB4DBr+K+/sCJ8=
+sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3/go.mod h1:18nIHnGi6636UCz6m8i4DhaJ65T6EruyzmoQqI2BVDo=
+sigs.k8s.io/structured-merge-diff/v4 v4.4.2 h1:MdmvkGuXi/8io6ixD5wud3vOLwc1rj0aNqRlpuvjmwA=
+sigs.k8s.io/structured-merge-diff/v4 v4.4.2/go.mod h1:N8f93tFZh9U6vpxwRArLiikrE5/2tiu1w1AGfACIGE4=
sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E=
sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY=
diff --git a/helm/applyconfigurations/helm/v1beta1/helmchartrepository.go b/helm/applyconfigurations/helm/v1beta1/helmchartrepository.go
index bae785a37..45447bc0a 100644
--- a/helm/applyconfigurations/helm/v1beta1/helmchartrepository.go
+++ b/helm/applyconfigurations/helm/v1beta1/helmchartrepository.go
@@ -69,7 +69,7 @@ func extractHelmChartRepository(helmChartRepository *helmv1beta1.HelmChartReposi
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *HelmChartRepositoryApplyConfiguration) WithKind(value string) *HelmChartRepositoryApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *HelmChartRepositoryApplyConfiguration) WithKind(value string) *HelmChar
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *HelmChartRepositoryApplyConfiguration) WithAPIVersion(value string) *HelmChartRepositoryApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *HelmChartRepositoryApplyConfiguration) WithAPIVersion(value string) *He
// If called multiple times, the Name field is set to the value of the last call.
func (b *HelmChartRepositoryApplyConfiguration) WithName(value string) *HelmChartRepositoryApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *HelmChartRepositoryApplyConfiguration) WithName(value string) *HelmChar
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *HelmChartRepositoryApplyConfiguration) WithGenerateName(value string) *HelmChartRepositoryApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *HelmChartRepositoryApplyConfiguration) WithGenerateName(value string) *
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *HelmChartRepositoryApplyConfiguration) WithNamespace(value string) *HelmChartRepositoryApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *HelmChartRepositoryApplyConfiguration) WithNamespace(value string) *Hel
// If called multiple times, the UID field is set to the value of the last call.
func (b *HelmChartRepositoryApplyConfiguration) WithUID(value types.UID) *HelmChartRepositoryApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *HelmChartRepositoryApplyConfiguration) WithUID(value types.UID) *HelmCh
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *HelmChartRepositoryApplyConfiguration) WithResourceVersion(value string) *HelmChartRepositoryApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,7 +131,7 @@ func (b *HelmChartRepositoryApplyConfiguration) WithResourceVersion(value string
// If called multiple times, the Generation field is set to the value of the last call.
func (b *HelmChartRepositoryApplyConfiguration) WithGeneration(value int64) *HelmChartRepositoryApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
@@ -140,7 +140,7 @@ func (b *HelmChartRepositoryApplyConfiguration) WithGeneration(value int64) *Hel
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
func (b *HelmChartRepositoryApplyConfiguration) WithCreationTimestamp(value metav1.Time) *HelmChartRepositoryApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
@@ -149,7 +149,7 @@ func (b *HelmChartRepositoryApplyConfiguration) WithCreationTimestamp(value meta
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
func (b *HelmChartRepositoryApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *HelmChartRepositoryApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *HelmChartRepositoryApplyConfiguration) WithDeletionTimestamp(value meta
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *HelmChartRepositoryApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *HelmChartRepositoryApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *HelmChartRepositoryApplyConfiguration) WithDeletionGracePeriodSeconds(v
// overwriting an existing map entries in Labels field with the same key.
func (b *HelmChartRepositoryApplyConfiguration) WithLabels(entries map[string]string) *HelmChartRepositoryApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *HelmChartRepositoryApplyConfiguration) WithLabels(entries map[string]st
// overwriting an existing map entries in Annotations field with the same key.
func (b *HelmChartRepositoryApplyConfiguration) WithAnnotations(entries map[string]string) *HelmChartRepositoryApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -201,7 +201,7 @@ func (b *HelmChartRepositoryApplyConfiguration) WithOwnerReferences(values ...*v
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,7 +212,7 @@ func (b *HelmChartRepositoryApplyConfiguration) WithOwnerReferences(values ...*v
func (b *HelmChartRepositoryApplyConfiguration) WithFinalizers(values ...string) *HelmChartRepositoryApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
@@ -242,5 +242,5 @@ func (b *HelmChartRepositoryApplyConfiguration) WithStatus(value *HelmChartRepos
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *HelmChartRepositoryApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/helm/applyconfigurations/helm/v1beta1/projecthelmchartrepository.go b/helm/applyconfigurations/helm/v1beta1/projecthelmchartrepository.go
index 23635566a..2f1533f02 100644
--- a/helm/applyconfigurations/helm/v1beta1/projecthelmchartrepository.go
+++ b/helm/applyconfigurations/helm/v1beta1/projecthelmchartrepository.go
@@ -71,7 +71,7 @@ func extractProjectHelmChartRepository(projectHelmChartRepository *helmv1beta1.P
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ProjectHelmChartRepositoryApplyConfiguration) WithKind(value string) *ProjectHelmChartRepositoryApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -79,7 +79,7 @@ func (b *ProjectHelmChartRepositoryApplyConfiguration) WithKind(value string) *P
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ProjectHelmChartRepositoryApplyConfiguration) WithAPIVersion(value string) *ProjectHelmChartRepositoryApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -88,7 +88,7 @@ func (b *ProjectHelmChartRepositoryApplyConfiguration) WithAPIVersion(value stri
// If called multiple times, the Name field is set to the value of the last call.
func (b *ProjectHelmChartRepositoryApplyConfiguration) WithName(value string) *ProjectHelmChartRepositoryApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -97,7 +97,7 @@ func (b *ProjectHelmChartRepositoryApplyConfiguration) WithName(value string) *P
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ProjectHelmChartRepositoryApplyConfiguration) WithGenerateName(value string) *ProjectHelmChartRepositoryApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -106,7 +106,7 @@ func (b *ProjectHelmChartRepositoryApplyConfiguration) WithGenerateName(value st
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ProjectHelmChartRepositoryApplyConfiguration) WithNamespace(value string) *ProjectHelmChartRepositoryApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -115,7 +115,7 @@ func (b *ProjectHelmChartRepositoryApplyConfiguration) WithNamespace(value strin
// If called multiple times, the UID field is set to the value of the last call.
func (b *ProjectHelmChartRepositoryApplyConfiguration) WithUID(value types.UID) *ProjectHelmChartRepositoryApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -124,7 +124,7 @@ func (b *ProjectHelmChartRepositoryApplyConfiguration) WithUID(value types.UID)
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ProjectHelmChartRepositoryApplyConfiguration) WithResourceVersion(value string) *ProjectHelmChartRepositoryApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -133,7 +133,7 @@ func (b *ProjectHelmChartRepositoryApplyConfiguration) WithResourceVersion(value
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ProjectHelmChartRepositoryApplyConfiguration) WithGeneration(value int64) *ProjectHelmChartRepositoryApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
@@ -142,7 +142,7 @@ func (b *ProjectHelmChartRepositoryApplyConfiguration) WithGeneration(value int6
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
func (b *ProjectHelmChartRepositoryApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ProjectHelmChartRepositoryApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
@@ -151,7 +151,7 @@ func (b *ProjectHelmChartRepositoryApplyConfiguration) WithCreationTimestamp(val
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
func (b *ProjectHelmChartRepositoryApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ProjectHelmChartRepositoryApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -160,7 +160,7 @@ func (b *ProjectHelmChartRepositoryApplyConfiguration) WithDeletionTimestamp(val
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ProjectHelmChartRepositoryApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ProjectHelmChartRepositoryApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -170,11 +170,11 @@ func (b *ProjectHelmChartRepositoryApplyConfiguration) WithDeletionGracePeriodSe
// overwriting an existing map entries in Labels field with the same key.
func (b *ProjectHelmChartRepositoryApplyConfiguration) WithLabels(entries map[string]string) *ProjectHelmChartRepositoryApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -185,11 +185,11 @@ func (b *ProjectHelmChartRepositoryApplyConfiguration) WithLabels(entries map[st
// overwriting an existing map entries in Annotations field with the same key.
func (b *ProjectHelmChartRepositoryApplyConfiguration) WithAnnotations(entries map[string]string) *ProjectHelmChartRepositoryApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -203,7 +203,7 @@ func (b *ProjectHelmChartRepositoryApplyConfiguration) WithOwnerReferences(value
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -214,7 +214,7 @@ func (b *ProjectHelmChartRepositoryApplyConfiguration) WithOwnerReferences(value
func (b *ProjectHelmChartRepositoryApplyConfiguration) WithFinalizers(values ...string) *ProjectHelmChartRepositoryApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
@@ -244,5 +244,5 @@ func (b *ProjectHelmChartRepositoryApplyConfiguration) WithStatus(value *HelmCha
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ProjectHelmChartRepositoryApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/helm/applyconfigurations/internal/internal.go b/helm/applyconfigurations/internal/internal.go
index 81478f5af..9855e7222 100644
--- a/helm/applyconfigurations/internal/internal.go
+++ b/helm/applyconfigurations/internal/internal.go
@@ -3,8 +3,8 @@
package internal
import (
- "fmt"
- "sync"
+ fmt "fmt"
+ sync "sync"
typed "sigs.k8s.io/structured-merge-diff/v4/typed"
)
diff --git a/helm/clientset/versioned/clientset.go b/helm/clientset/versioned/clientset.go
index bd4658a60..e74f89b81 100644
--- a/helm/clientset/versioned/clientset.go
+++ b/helm/clientset/versioned/clientset.go
@@ -3,8 +3,8 @@
package versioned
import (
- "fmt"
- "net/http"
+ fmt "fmt"
+ http "net/http"
helmv1beta1 "github.com/openshift/client-go/helm/clientset/versioned/typed/helm/v1beta1"
discovery "k8s.io/client-go/discovery"
diff --git a/helm/clientset/versioned/typed/helm/v1beta1/fake/fake_helm_client.go b/helm/clientset/versioned/typed/helm/v1beta1/fake/fake_helm_client.go
index 13c32356c..0aab8c0d0 100644
--- a/helm/clientset/versioned/typed/helm/v1beta1/fake/fake_helm_client.go
+++ b/helm/clientset/versioned/typed/helm/v1beta1/fake/fake_helm_client.go
@@ -13,11 +13,11 @@ type FakeHelmV1beta1 struct {
}
func (c *FakeHelmV1beta1) HelmChartRepositories() v1beta1.HelmChartRepositoryInterface {
- return &FakeHelmChartRepositories{c}
+ return newFakeHelmChartRepositories(c)
}
func (c *FakeHelmV1beta1) ProjectHelmChartRepositories(namespace string) v1beta1.ProjectHelmChartRepositoryInterface {
- return &FakeProjectHelmChartRepositories{c, namespace}
+ return newFakeProjectHelmChartRepositories(c, namespace)
}
// RESTClient returns a RESTClient that is used to communicate
diff --git a/helm/clientset/versioned/typed/helm/v1beta1/fake/fake_helmchartrepository.go b/helm/clientset/versioned/typed/helm/v1beta1/fake/fake_helmchartrepository.go
index 13b7207dd..65d57a982 100644
--- a/helm/clientset/versioned/typed/helm/v1beta1/fake/fake_helmchartrepository.go
+++ b/helm/clientset/versioned/typed/helm/v1beta1/fake/fake_helmchartrepository.go
@@ -3,168 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1beta1 "github.com/openshift/api/helm/v1beta1"
helmv1beta1 "github.com/openshift/client-go/helm/applyconfigurations/helm/v1beta1"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedhelmv1beta1 "github.com/openshift/client-go/helm/clientset/versioned/typed/helm/v1beta1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeHelmChartRepositories implements HelmChartRepositoryInterface
-type FakeHelmChartRepositories struct {
+// fakeHelmChartRepositories implements HelmChartRepositoryInterface
+type fakeHelmChartRepositories struct {
+ *gentype.FakeClientWithListAndApply[*v1beta1.HelmChartRepository, *v1beta1.HelmChartRepositoryList, *helmv1beta1.HelmChartRepositoryApplyConfiguration]
Fake *FakeHelmV1beta1
}
-var helmchartrepositoriesResource = v1beta1.SchemeGroupVersion.WithResource("helmchartrepositories")
-
-var helmchartrepositoriesKind = v1beta1.SchemeGroupVersion.WithKind("HelmChartRepository")
-
-// Get takes name of the helmChartRepository, and returns the corresponding helmChartRepository object, and an error if there is any.
-func (c *FakeHelmChartRepositories) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.HelmChartRepository, err error) {
- emptyResult := &v1beta1.HelmChartRepository{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(helmchartrepositoriesResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1beta1.HelmChartRepository), err
-}
-
-// List takes label and field selectors, and returns the list of HelmChartRepositories that match those selectors.
-func (c *FakeHelmChartRepositories) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.HelmChartRepositoryList, err error) {
- emptyResult := &v1beta1.HelmChartRepositoryList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(helmchartrepositoriesResource, helmchartrepositoriesKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1beta1.HelmChartRepositoryList{ListMeta: obj.(*v1beta1.HelmChartRepositoryList).ListMeta}
- for _, item := range obj.(*v1beta1.HelmChartRepositoryList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested helmChartRepositories.
-func (c *FakeHelmChartRepositories) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(helmchartrepositoriesResource, opts))
-}
-
-// Create takes the representation of a helmChartRepository and creates it. Returns the server's representation of the helmChartRepository, and an error, if there is any.
-func (c *FakeHelmChartRepositories) Create(ctx context.Context, helmChartRepository *v1beta1.HelmChartRepository, opts v1.CreateOptions) (result *v1beta1.HelmChartRepository, err error) {
- emptyResult := &v1beta1.HelmChartRepository{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(helmchartrepositoriesResource, helmChartRepository, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1beta1.HelmChartRepository), err
-}
-
-// Update takes the representation of a helmChartRepository and updates it. Returns the server's representation of the helmChartRepository, and an error, if there is any.
-func (c *FakeHelmChartRepositories) Update(ctx context.Context, helmChartRepository *v1beta1.HelmChartRepository, opts v1.UpdateOptions) (result *v1beta1.HelmChartRepository, err error) {
- emptyResult := &v1beta1.HelmChartRepository{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(helmchartrepositoriesResource, helmChartRepository, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1beta1.HelmChartRepository), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeHelmChartRepositories) UpdateStatus(ctx context.Context, helmChartRepository *v1beta1.HelmChartRepository, opts v1.UpdateOptions) (result *v1beta1.HelmChartRepository, err error) {
- emptyResult := &v1beta1.HelmChartRepository{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(helmchartrepositoriesResource, "status", helmChartRepository, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1beta1.HelmChartRepository), err
-}
-
-// Delete takes name of the helmChartRepository and deletes it. Returns an error if one occurs.
-func (c *FakeHelmChartRepositories) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(helmchartrepositoriesResource, name, opts), &v1beta1.HelmChartRepository{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeHelmChartRepositories) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(helmchartrepositoriesResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1beta1.HelmChartRepositoryList{})
- return err
-}
-
-// Patch applies the patch and returns the patched helmChartRepository.
-func (c *FakeHelmChartRepositories) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.HelmChartRepository, err error) {
- emptyResult := &v1beta1.HelmChartRepository{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(helmchartrepositoriesResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1beta1.HelmChartRepository), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied helmChartRepository.
-func (c *FakeHelmChartRepositories) Apply(ctx context.Context, helmChartRepository *helmv1beta1.HelmChartRepositoryApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.HelmChartRepository, err error) {
- if helmChartRepository == nil {
- return nil, fmt.Errorf("helmChartRepository provided to Apply must not be nil")
- }
- data, err := json.Marshal(helmChartRepository)
- if err != nil {
- return nil, err
- }
- name := helmChartRepository.Name
- if name == nil {
- return nil, fmt.Errorf("helmChartRepository.Name must be provided to Apply")
- }
- emptyResult := &v1beta1.HelmChartRepository{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(helmchartrepositoriesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1beta1.HelmChartRepository), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeHelmChartRepositories) ApplyStatus(ctx context.Context, helmChartRepository *helmv1beta1.HelmChartRepositoryApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.HelmChartRepository, err error) {
- if helmChartRepository == nil {
- return nil, fmt.Errorf("helmChartRepository provided to Apply must not be nil")
- }
- data, err := json.Marshal(helmChartRepository)
- if err != nil {
- return nil, err
- }
- name := helmChartRepository.Name
- if name == nil {
- return nil, fmt.Errorf("helmChartRepository.Name must be provided to Apply")
- }
- emptyResult := &v1beta1.HelmChartRepository{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(helmchartrepositoriesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeHelmChartRepositories(fake *FakeHelmV1beta1) typedhelmv1beta1.HelmChartRepositoryInterface {
+ return &fakeHelmChartRepositories{
+ gentype.NewFakeClientWithListAndApply[*v1beta1.HelmChartRepository, *v1beta1.HelmChartRepositoryList, *helmv1beta1.HelmChartRepositoryApplyConfiguration](
+ fake.Fake,
+ "",
+ v1beta1.SchemeGroupVersion.WithResource("helmchartrepositories"),
+ v1beta1.SchemeGroupVersion.WithKind("HelmChartRepository"),
+ func() *v1beta1.HelmChartRepository { return &v1beta1.HelmChartRepository{} },
+ func() *v1beta1.HelmChartRepositoryList { return &v1beta1.HelmChartRepositoryList{} },
+ func(dst, src *v1beta1.HelmChartRepositoryList) { dst.ListMeta = src.ListMeta },
+ func(list *v1beta1.HelmChartRepositoryList) []*v1beta1.HelmChartRepository {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1beta1.HelmChartRepositoryList, items []*v1beta1.HelmChartRepository) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1beta1.HelmChartRepository), err
}
diff --git a/helm/clientset/versioned/typed/helm/v1beta1/fake/fake_projecthelmchartrepository.go b/helm/clientset/versioned/typed/helm/v1beta1/fake/fake_projecthelmchartrepository.go
index 40921ec2a..9e3f8e48e 100644
--- a/helm/clientset/versioned/typed/helm/v1beta1/fake/fake_projecthelmchartrepository.go
+++ b/helm/clientset/versioned/typed/helm/v1beta1/fake/fake_projecthelmchartrepository.go
@@ -3,179 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1beta1 "github.com/openshift/api/helm/v1beta1"
helmv1beta1 "github.com/openshift/client-go/helm/applyconfigurations/helm/v1beta1"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedhelmv1beta1 "github.com/openshift/client-go/helm/clientset/versioned/typed/helm/v1beta1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeProjectHelmChartRepositories implements ProjectHelmChartRepositoryInterface
-type FakeProjectHelmChartRepositories struct {
+// fakeProjectHelmChartRepositories implements ProjectHelmChartRepositoryInterface
+type fakeProjectHelmChartRepositories struct {
+ *gentype.FakeClientWithListAndApply[*v1beta1.ProjectHelmChartRepository, *v1beta1.ProjectHelmChartRepositoryList, *helmv1beta1.ProjectHelmChartRepositoryApplyConfiguration]
Fake *FakeHelmV1beta1
- ns string
-}
-
-var projecthelmchartrepositoriesResource = v1beta1.SchemeGroupVersion.WithResource("projecthelmchartrepositories")
-
-var projecthelmchartrepositoriesKind = v1beta1.SchemeGroupVersion.WithKind("ProjectHelmChartRepository")
-
-// Get takes name of the projectHelmChartRepository, and returns the corresponding projectHelmChartRepository object, and an error if there is any.
-func (c *FakeProjectHelmChartRepositories) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.ProjectHelmChartRepository, err error) {
- emptyResult := &v1beta1.ProjectHelmChartRepository{}
- obj, err := c.Fake.
- Invokes(testing.NewGetActionWithOptions(projecthelmchartrepositoriesResource, c.ns, name, options), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1beta1.ProjectHelmChartRepository), err
-}
-
-// List takes label and field selectors, and returns the list of ProjectHelmChartRepositories that match those selectors.
-func (c *FakeProjectHelmChartRepositories) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ProjectHelmChartRepositoryList, err error) {
- emptyResult := &v1beta1.ProjectHelmChartRepositoryList{}
- obj, err := c.Fake.
- Invokes(testing.NewListActionWithOptions(projecthelmchartrepositoriesResource, projecthelmchartrepositoriesKind, c.ns, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1beta1.ProjectHelmChartRepositoryList{ListMeta: obj.(*v1beta1.ProjectHelmChartRepositoryList).ListMeta}
- for _, item := range obj.(*v1beta1.ProjectHelmChartRepositoryList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested projectHelmChartRepositories.
-func (c *FakeProjectHelmChartRepositories) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewWatchActionWithOptions(projecthelmchartrepositoriesResource, c.ns, opts))
-
-}
-
-// Create takes the representation of a projectHelmChartRepository and creates it. Returns the server's representation of the projectHelmChartRepository, and an error, if there is any.
-func (c *FakeProjectHelmChartRepositories) Create(ctx context.Context, projectHelmChartRepository *v1beta1.ProjectHelmChartRepository, opts v1.CreateOptions) (result *v1beta1.ProjectHelmChartRepository, err error) {
- emptyResult := &v1beta1.ProjectHelmChartRepository{}
- obj, err := c.Fake.
- Invokes(testing.NewCreateActionWithOptions(projecthelmchartrepositoriesResource, c.ns, projectHelmChartRepository, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1beta1.ProjectHelmChartRepository), err
-}
-
-// Update takes the representation of a projectHelmChartRepository and updates it. Returns the server's representation of the projectHelmChartRepository, and an error, if there is any.
-func (c *FakeProjectHelmChartRepositories) Update(ctx context.Context, projectHelmChartRepository *v1beta1.ProjectHelmChartRepository, opts v1.UpdateOptions) (result *v1beta1.ProjectHelmChartRepository, err error) {
- emptyResult := &v1beta1.ProjectHelmChartRepository{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateActionWithOptions(projecthelmchartrepositoriesResource, c.ns, projectHelmChartRepository, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1beta1.ProjectHelmChartRepository), err
}
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeProjectHelmChartRepositories) UpdateStatus(ctx context.Context, projectHelmChartRepository *v1beta1.ProjectHelmChartRepository, opts v1.UpdateOptions) (result *v1beta1.ProjectHelmChartRepository, err error) {
- emptyResult := &v1beta1.ProjectHelmChartRepository{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateSubresourceActionWithOptions(projecthelmchartrepositoriesResource, "status", c.ns, projectHelmChartRepository, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1beta1.ProjectHelmChartRepository), err
-}
-
-// Delete takes name of the projectHelmChartRepository and deletes it. Returns an error if one occurs.
-func (c *FakeProjectHelmChartRepositories) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewDeleteActionWithOptions(projecthelmchartrepositoriesResource, c.ns, name, opts), &v1beta1.ProjectHelmChartRepository{})
-
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeProjectHelmChartRepositories) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewDeleteCollectionActionWithOptions(projecthelmchartrepositoriesResource, c.ns, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1beta1.ProjectHelmChartRepositoryList{})
- return err
-}
-
-// Patch applies the patch and returns the patched projectHelmChartRepository.
-func (c *FakeProjectHelmChartRepositories) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.ProjectHelmChartRepository, err error) {
- emptyResult := &v1beta1.ProjectHelmChartRepository{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(projecthelmchartrepositoriesResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1beta1.ProjectHelmChartRepository), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied projectHelmChartRepository.
-func (c *FakeProjectHelmChartRepositories) Apply(ctx context.Context, projectHelmChartRepository *helmv1beta1.ProjectHelmChartRepositoryApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.ProjectHelmChartRepository, err error) {
- if projectHelmChartRepository == nil {
- return nil, fmt.Errorf("projectHelmChartRepository provided to Apply must not be nil")
- }
- data, err := json.Marshal(projectHelmChartRepository)
- if err != nil {
- return nil, err
- }
- name := projectHelmChartRepository.Name
- if name == nil {
- return nil, fmt.Errorf("projectHelmChartRepository.Name must be provided to Apply")
- }
- emptyResult := &v1beta1.ProjectHelmChartRepository{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(projecthelmchartrepositoriesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1beta1.ProjectHelmChartRepository), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeProjectHelmChartRepositories) ApplyStatus(ctx context.Context, projectHelmChartRepository *helmv1beta1.ProjectHelmChartRepositoryApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.ProjectHelmChartRepository, err error) {
- if projectHelmChartRepository == nil {
- return nil, fmt.Errorf("projectHelmChartRepository provided to Apply must not be nil")
- }
- data, err := json.Marshal(projectHelmChartRepository)
- if err != nil {
- return nil, err
- }
- name := projectHelmChartRepository.Name
- if name == nil {
- return nil, fmt.Errorf("projectHelmChartRepository.Name must be provided to Apply")
- }
- emptyResult := &v1beta1.ProjectHelmChartRepository{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(projecthelmchartrepositoriesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
-
- if obj == nil {
- return emptyResult, err
+func newFakeProjectHelmChartRepositories(fake *FakeHelmV1beta1, namespace string) typedhelmv1beta1.ProjectHelmChartRepositoryInterface {
+ return &fakeProjectHelmChartRepositories{
+ gentype.NewFakeClientWithListAndApply[*v1beta1.ProjectHelmChartRepository, *v1beta1.ProjectHelmChartRepositoryList, *helmv1beta1.ProjectHelmChartRepositoryApplyConfiguration](
+ fake.Fake,
+ namespace,
+ v1beta1.SchemeGroupVersion.WithResource("projecthelmchartrepositories"),
+ v1beta1.SchemeGroupVersion.WithKind("ProjectHelmChartRepository"),
+ func() *v1beta1.ProjectHelmChartRepository { return &v1beta1.ProjectHelmChartRepository{} },
+ func() *v1beta1.ProjectHelmChartRepositoryList { return &v1beta1.ProjectHelmChartRepositoryList{} },
+ func(dst, src *v1beta1.ProjectHelmChartRepositoryList) { dst.ListMeta = src.ListMeta },
+ func(list *v1beta1.ProjectHelmChartRepositoryList) []*v1beta1.ProjectHelmChartRepository {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1beta1.ProjectHelmChartRepositoryList, items []*v1beta1.ProjectHelmChartRepository) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1beta1.ProjectHelmChartRepository), err
}
diff --git a/helm/clientset/versioned/typed/helm/v1beta1/helm_client.go b/helm/clientset/versioned/typed/helm/v1beta1/helm_client.go
index 1162f31f8..ebfa9bea9 100644
--- a/helm/clientset/versioned/typed/helm/v1beta1/helm_client.go
+++ b/helm/clientset/versioned/typed/helm/v1beta1/helm_client.go
@@ -3,10 +3,10 @@
package v1beta1
import (
- "net/http"
+ http "net/http"
- v1beta1 "github.com/openshift/api/helm/v1beta1"
- "github.com/openshift/client-go/helm/clientset/versioned/scheme"
+ helmv1beta1 "github.com/openshift/api/helm/v1beta1"
+ scheme "github.com/openshift/client-go/helm/clientset/versioned/scheme"
rest "k8s.io/client-go/rest"
)
@@ -74,10 +74,10 @@ func New(c rest.Interface) *HelmV1beta1Client {
}
func setConfigDefaults(config *rest.Config) error {
- gv := v1beta1.SchemeGroupVersion
+ gv := helmv1beta1.SchemeGroupVersion
config.GroupVersion = &gv
config.APIPath = "/apis"
- config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
+ config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion()
if config.UserAgent == "" {
config.UserAgent = rest.DefaultKubernetesUserAgent()
diff --git a/helm/clientset/versioned/typed/helm/v1beta1/helmchartrepository.go b/helm/clientset/versioned/typed/helm/v1beta1/helmchartrepository.go
index 31747b99f..ee94b84a3 100644
--- a/helm/clientset/versioned/typed/helm/v1beta1/helmchartrepository.go
+++ b/helm/clientset/versioned/typed/helm/v1beta1/helmchartrepository.go
@@ -3,10 +3,10 @@
package v1beta1
import (
- "context"
+ context "context"
- v1beta1 "github.com/openshift/api/helm/v1beta1"
- helmv1beta1 "github.com/openshift/client-go/helm/applyconfigurations/helm/v1beta1"
+ helmv1beta1 "github.com/openshift/api/helm/v1beta1"
+ applyconfigurationshelmv1beta1 "github.com/openshift/client-go/helm/applyconfigurations/helm/v1beta1"
scheme "github.com/openshift/client-go/helm/clientset/versioned/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type HelmChartRepositoriesGetter interface {
// HelmChartRepositoryInterface has methods to work with HelmChartRepository resources.
type HelmChartRepositoryInterface interface {
- Create(ctx context.Context, helmChartRepository *v1beta1.HelmChartRepository, opts v1.CreateOptions) (*v1beta1.HelmChartRepository, error)
- Update(ctx context.Context, helmChartRepository *v1beta1.HelmChartRepository, opts v1.UpdateOptions) (*v1beta1.HelmChartRepository, error)
+ Create(ctx context.Context, helmChartRepository *helmv1beta1.HelmChartRepository, opts v1.CreateOptions) (*helmv1beta1.HelmChartRepository, error)
+ Update(ctx context.Context, helmChartRepository *helmv1beta1.HelmChartRepository, opts v1.UpdateOptions) (*helmv1beta1.HelmChartRepository, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, helmChartRepository *v1beta1.HelmChartRepository, opts v1.UpdateOptions) (*v1beta1.HelmChartRepository, error)
+ UpdateStatus(ctx context.Context, helmChartRepository *helmv1beta1.HelmChartRepository, opts v1.UpdateOptions) (*helmv1beta1.HelmChartRepository, error)
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*v1beta1.HelmChartRepository, error)
- List(ctx context.Context, opts v1.ListOptions) (*v1beta1.HelmChartRepositoryList, error)
+ Get(ctx context.Context, name string, opts v1.GetOptions) (*helmv1beta1.HelmChartRepository, error)
+ List(ctx context.Context, opts v1.ListOptions) (*helmv1beta1.HelmChartRepositoryList, error)
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.HelmChartRepository, err error)
- Apply(ctx context.Context, helmChartRepository *helmv1beta1.HelmChartRepositoryApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.HelmChartRepository, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *helmv1beta1.HelmChartRepository, err error)
+ Apply(ctx context.Context, helmChartRepository *applyconfigurationshelmv1beta1.HelmChartRepositoryApplyConfiguration, opts v1.ApplyOptions) (result *helmv1beta1.HelmChartRepository, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, helmChartRepository *helmv1beta1.HelmChartRepositoryApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.HelmChartRepository, err error)
+ ApplyStatus(ctx context.Context, helmChartRepository *applyconfigurationshelmv1beta1.HelmChartRepositoryApplyConfiguration, opts v1.ApplyOptions) (result *helmv1beta1.HelmChartRepository, err error)
HelmChartRepositoryExpansion
}
// helmChartRepositories implements HelmChartRepositoryInterface
type helmChartRepositories struct {
- *gentype.ClientWithListAndApply[*v1beta1.HelmChartRepository, *v1beta1.HelmChartRepositoryList, *helmv1beta1.HelmChartRepositoryApplyConfiguration]
+ *gentype.ClientWithListAndApply[*helmv1beta1.HelmChartRepository, *helmv1beta1.HelmChartRepositoryList, *applyconfigurationshelmv1beta1.HelmChartRepositoryApplyConfiguration]
}
// newHelmChartRepositories returns a HelmChartRepositories
func newHelmChartRepositories(c *HelmV1beta1Client) *helmChartRepositories {
return &helmChartRepositories{
- gentype.NewClientWithListAndApply[*v1beta1.HelmChartRepository, *v1beta1.HelmChartRepositoryList, *helmv1beta1.HelmChartRepositoryApplyConfiguration](
+ gentype.NewClientWithListAndApply[*helmv1beta1.HelmChartRepository, *helmv1beta1.HelmChartRepositoryList, *applyconfigurationshelmv1beta1.HelmChartRepositoryApplyConfiguration](
"helmchartrepositories",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1beta1.HelmChartRepository { return &v1beta1.HelmChartRepository{} },
- func() *v1beta1.HelmChartRepositoryList { return &v1beta1.HelmChartRepositoryList{} }),
+ func() *helmv1beta1.HelmChartRepository { return &helmv1beta1.HelmChartRepository{} },
+ func() *helmv1beta1.HelmChartRepositoryList { return &helmv1beta1.HelmChartRepositoryList{} },
+ ),
}
}
diff --git a/helm/clientset/versioned/typed/helm/v1beta1/projecthelmchartrepository.go b/helm/clientset/versioned/typed/helm/v1beta1/projecthelmchartrepository.go
index fb502ee7a..425df22eb 100644
--- a/helm/clientset/versioned/typed/helm/v1beta1/projecthelmchartrepository.go
+++ b/helm/clientset/versioned/typed/helm/v1beta1/projecthelmchartrepository.go
@@ -3,10 +3,10 @@
package v1beta1
import (
- "context"
+ context "context"
- v1beta1 "github.com/openshift/api/helm/v1beta1"
- helmv1beta1 "github.com/openshift/client-go/helm/applyconfigurations/helm/v1beta1"
+ helmv1beta1 "github.com/openshift/api/helm/v1beta1"
+ applyconfigurationshelmv1beta1 "github.com/openshift/client-go/helm/applyconfigurations/helm/v1beta1"
scheme "github.com/openshift/client-go/helm/clientset/versioned/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,39 @@ type ProjectHelmChartRepositoriesGetter interface {
// ProjectHelmChartRepositoryInterface has methods to work with ProjectHelmChartRepository resources.
type ProjectHelmChartRepositoryInterface interface {
- Create(ctx context.Context, projectHelmChartRepository *v1beta1.ProjectHelmChartRepository, opts v1.CreateOptions) (*v1beta1.ProjectHelmChartRepository, error)
- Update(ctx context.Context, projectHelmChartRepository *v1beta1.ProjectHelmChartRepository, opts v1.UpdateOptions) (*v1beta1.ProjectHelmChartRepository, error)
+ Create(ctx context.Context, projectHelmChartRepository *helmv1beta1.ProjectHelmChartRepository, opts v1.CreateOptions) (*helmv1beta1.ProjectHelmChartRepository, error)
+ Update(ctx context.Context, projectHelmChartRepository *helmv1beta1.ProjectHelmChartRepository, opts v1.UpdateOptions) (*helmv1beta1.ProjectHelmChartRepository, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, projectHelmChartRepository *v1beta1.ProjectHelmChartRepository, opts v1.UpdateOptions) (*v1beta1.ProjectHelmChartRepository, error)
+ UpdateStatus(ctx context.Context, projectHelmChartRepository *helmv1beta1.ProjectHelmChartRepository, opts v1.UpdateOptions) (*helmv1beta1.ProjectHelmChartRepository, error)
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*v1beta1.ProjectHelmChartRepository, error)
- List(ctx context.Context, opts v1.ListOptions) (*v1beta1.ProjectHelmChartRepositoryList, error)
+ Get(ctx context.Context, name string, opts v1.GetOptions) (*helmv1beta1.ProjectHelmChartRepository, error)
+ List(ctx context.Context, opts v1.ListOptions) (*helmv1beta1.ProjectHelmChartRepositoryList, error)
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.ProjectHelmChartRepository, err error)
- Apply(ctx context.Context, projectHelmChartRepository *helmv1beta1.ProjectHelmChartRepositoryApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.ProjectHelmChartRepository, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *helmv1beta1.ProjectHelmChartRepository, err error)
+ Apply(ctx context.Context, projectHelmChartRepository *applyconfigurationshelmv1beta1.ProjectHelmChartRepositoryApplyConfiguration, opts v1.ApplyOptions) (result *helmv1beta1.ProjectHelmChartRepository, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, projectHelmChartRepository *helmv1beta1.ProjectHelmChartRepositoryApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.ProjectHelmChartRepository, err error)
+ ApplyStatus(ctx context.Context, projectHelmChartRepository *applyconfigurationshelmv1beta1.ProjectHelmChartRepositoryApplyConfiguration, opts v1.ApplyOptions) (result *helmv1beta1.ProjectHelmChartRepository, err error)
ProjectHelmChartRepositoryExpansion
}
// projectHelmChartRepositories implements ProjectHelmChartRepositoryInterface
type projectHelmChartRepositories struct {
- *gentype.ClientWithListAndApply[*v1beta1.ProjectHelmChartRepository, *v1beta1.ProjectHelmChartRepositoryList, *helmv1beta1.ProjectHelmChartRepositoryApplyConfiguration]
+ *gentype.ClientWithListAndApply[*helmv1beta1.ProjectHelmChartRepository, *helmv1beta1.ProjectHelmChartRepositoryList, *applyconfigurationshelmv1beta1.ProjectHelmChartRepositoryApplyConfiguration]
}
// newProjectHelmChartRepositories returns a ProjectHelmChartRepositories
func newProjectHelmChartRepositories(c *HelmV1beta1Client, namespace string) *projectHelmChartRepositories {
return &projectHelmChartRepositories{
- gentype.NewClientWithListAndApply[*v1beta1.ProjectHelmChartRepository, *v1beta1.ProjectHelmChartRepositoryList, *helmv1beta1.ProjectHelmChartRepositoryApplyConfiguration](
+ gentype.NewClientWithListAndApply[*helmv1beta1.ProjectHelmChartRepository, *helmv1beta1.ProjectHelmChartRepositoryList, *applyconfigurationshelmv1beta1.ProjectHelmChartRepositoryApplyConfiguration](
"projecthelmchartrepositories",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
- func() *v1beta1.ProjectHelmChartRepository { return &v1beta1.ProjectHelmChartRepository{} },
- func() *v1beta1.ProjectHelmChartRepositoryList { return &v1beta1.ProjectHelmChartRepositoryList{} }),
+ func() *helmv1beta1.ProjectHelmChartRepository { return &helmv1beta1.ProjectHelmChartRepository{} },
+ func() *helmv1beta1.ProjectHelmChartRepositoryList {
+ return &helmv1beta1.ProjectHelmChartRepositoryList{}
+ },
+ ),
}
}
diff --git a/helm/informers/externalversions/generic.go b/helm/informers/externalversions/generic.go
index e624b5473..e54f8e9ad 100644
--- a/helm/informers/externalversions/generic.go
+++ b/helm/informers/externalversions/generic.go
@@ -3,7 +3,7 @@
package externalversions
import (
- "fmt"
+ fmt "fmt"
v1beta1 "github.com/openshift/api/helm/v1beta1"
schema "k8s.io/apimachinery/pkg/runtime/schema"
diff --git a/helm/informers/externalversions/helm/v1beta1/helmchartrepository.go b/helm/informers/externalversions/helm/v1beta1/helmchartrepository.go
index 5fb54e25c..6934c9d58 100644
--- a/helm/informers/externalversions/helm/v1beta1/helmchartrepository.go
+++ b/helm/informers/externalversions/helm/v1beta1/helmchartrepository.go
@@ -3,13 +3,13 @@
package v1beta1
import (
- "context"
+ context "context"
time "time"
- helmv1beta1 "github.com/openshift/api/helm/v1beta1"
+ apihelmv1beta1 "github.com/openshift/api/helm/v1beta1"
versioned "github.com/openshift/client-go/helm/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/helm/informers/externalversions/internalinterfaces"
- v1beta1 "github.com/openshift/client-go/helm/listers/helm/v1beta1"
+ helmv1beta1 "github.com/openshift/client-go/helm/listers/helm/v1beta1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// HelmChartRepositories.
type HelmChartRepositoryInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1beta1.HelmChartRepositoryLister
+ Lister() helmv1beta1.HelmChartRepositoryLister
}
type helmChartRepositoryInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredHelmChartRepositoryInformer(client versioned.Interface, resyncPe
return client.HelmV1beta1().HelmChartRepositories().Watch(context.TODO(), options)
},
},
- &helmv1beta1.HelmChartRepository{},
+ &apihelmv1beta1.HelmChartRepository{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *helmChartRepositoryInformer) defaultInformer(client versioned.Interface
}
func (f *helmChartRepositoryInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&helmv1beta1.HelmChartRepository{}, f.defaultInformer)
+ return f.factory.InformerFor(&apihelmv1beta1.HelmChartRepository{}, f.defaultInformer)
}
-func (f *helmChartRepositoryInformer) Lister() v1beta1.HelmChartRepositoryLister {
- return v1beta1.NewHelmChartRepositoryLister(f.Informer().GetIndexer())
+func (f *helmChartRepositoryInformer) Lister() helmv1beta1.HelmChartRepositoryLister {
+ return helmv1beta1.NewHelmChartRepositoryLister(f.Informer().GetIndexer())
}
diff --git a/helm/informers/externalversions/helm/v1beta1/projecthelmchartrepository.go b/helm/informers/externalversions/helm/v1beta1/projecthelmchartrepository.go
index c5bf32db1..0f6455452 100644
--- a/helm/informers/externalversions/helm/v1beta1/projecthelmchartrepository.go
+++ b/helm/informers/externalversions/helm/v1beta1/projecthelmchartrepository.go
@@ -3,13 +3,13 @@
package v1beta1
import (
- "context"
+ context "context"
time "time"
- helmv1beta1 "github.com/openshift/api/helm/v1beta1"
+ apihelmv1beta1 "github.com/openshift/api/helm/v1beta1"
versioned "github.com/openshift/client-go/helm/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/helm/informers/externalversions/internalinterfaces"
- v1beta1 "github.com/openshift/client-go/helm/listers/helm/v1beta1"
+ helmv1beta1 "github.com/openshift/client-go/helm/listers/helm/v1beta1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// ProjectHelmChartRepositories.
type ProjectHelmChartRepositoryInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1beta1.ProjectHelmChartRepositoryLister
+ Lister() helmv1beta1.ProjectHelmChartRepositoryLister
}
type projectHelmChartRepositoryInformer struct {
@@ -55,7 +55,7 @@ func NewFilteredProjectHelmChartRepositoryInformer(client versioned.Interface, n
return client.HelmV1beta1().ProjectHelmChartRepositories(namespace).Watch(context.TODO(), options)
},
},
- &helmv1beta1.ProjectHelmChartRepository{},
+ &apihelmv1beta1.ProjectHelmChartRepository{},
resyncPeriod,
indexers,
)
@@ -66,9 +66,9 @@ func (f *projectHelmChartRepositoryInformer) defaultInformer(client versioned.In
}
func (f *projectHelmChartRepositoryInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&helmv1beta1.ProjectHelmChartRepository{}, f.defaultInformer)
+ return f.factory.InformerFor(&apihelmv1beta1.ProjectHelmChartRepository{}, f.defaultInformer)
}
-func (f *projectHelmChartRepositoryInformer) Lister() v1beta1.ProjectHelmChartRepositoryLister {
- return v1beta1.NewProjectHelmChartRepositoryLister(f.Informer().GetIndexer())
+func (f *projectHelmChartRepositoryInformer) Lister() helmv1beta1.ProjectHelmChartRepositoryLister {
+ return helmv1beta1.NewProjectHelmChartRepositoryLister(f.Informer().GetIndexer())
}
diff --git a/helm/listers/helm/v1beta1/helmchartrepository.go b/helm/listers/helm/v1beta1/helmchartrepository.go
index 4a54d62ec..88fcdebe5 100644
--- a/helm/listers/helm/v1beta1/helmchartrepository.go
+++ b/helm/listers/helm/v1beta1/helmchartrepository.go
@@ -3,10 +3,10 @@
package v1beta1
import (
- v1beta1 "github.com/openshift/api/helm/v1beta1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ helmv1beta1 "github.com/openshift/api/helm/v1beta1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// HelmChartRepositoryLister helps list HelmChartRepositories.
@@ -14,19 +14,19 @@ import (
type HelmChartRepositoryLister interface {
// List lists all HelmChartRepositories in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1beta1.HelmChartRepository, err error)
+ List(selector labels.Selector) (ret []*helmv1beta1.HelmChartRepository, err error)
// Get retrieves the HelmChartRepository from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1beta1.HelmChartRepository, error)
+ Get(name string) (*helmv1beta1.HelmChartRepository, error)
HelmChartRepositoryListerExpansion
}
// helmChartRepositoryLister implements the HelmChartRepositoryLister interface.
type helmChartRepositoryLister struct {
- listers.ResourceIndexer[*v1beta1.HelmChartRepository]
+ listers.ResourceIndexer[*helmv1beta1.HelmChartRepository]
}
// NewHelmChartRepositoryLister returns a new HelmChartRepositoryLister.
func NewHelmChartRepositoryLister(indexer cache.Indexer) HelmChartRepositoryLister {
- return &helmChartRepositoryLister{listers.New[*v1beta1.HelmChartRepository](indexer, v1beta1.Resource("helmchartrepository"))}
+ return &helmChartRepositoryLister{listers.New[*helmv1beta1.HelmChartRepository](indexer, helmv1beta1.Resource("helmchartrepository"))}
}
diff --git a/helm/listers/helm/v1beta1/projecthelmchartrepository.go b/helm/listers/helm/v1beta1/projecthelmchartrepository.go
index 146808098..7c0a90bee 100644
--- a/helm/listers/helm/v1beta1/projecthelmchartrepository.go
+++ b/helm/listers/helm/v1beta1/projecthelmchartrepository.go
@@ -3,10 +3,10 @@
package v1beta1
import (
- v1beta1 "github.com/openshift/api/helm/v1beta1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ helmv1beta1 "github.com/openshift/api/helm/v1beta1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ProjectHelmChartRepositoryLister helps list ProjectHelmChartRepositories.
@@ -14,7 +14,7 @@ import (
type ProjectHelmChartRepositoryLister interface {
// List lists all ProjectHelmChartRepositories in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1beta1.ProjectHelmChartRepository, err error)
+ List(selector labels.Selector) (ret []*helmv1beta1.ProjectHelmChartRepository, err error)
// ProjectHelmChartRepositories returns an object that can list and get ProjectHelmChartRepositories.
ProjectHelmChartRepositories(namespace string) ProjectHelmChartRepositoryNamespaceLister
ProjectHelmChartRepositoryListerExpansion
@@ -22,17 +22,17 @@ type ProjectHelmChartRepositoryLister interface {
// projectHelmChartRepositoryLister implements the ProjectHelmChartRepositoryLister interface.
type projectHelmChartRepositoryLister struct {
- listers.ResourceIndexer[*v1beta1.ProjectHelmChartRepository]
+ listers.ResourceIndexer[*helmv1beta1.ProjectHelmChartRepository]
}
// NewProjectHelmChartRepositoryLister returns a new ProjectHelmChartRepositoryLister.
func NewProjectHelmChartRepositoryLister(indexer cache.Indexer) ProjectHelmChartRepositoryLister {
- return &projectHelmChartRepositoryLister{listers.New[*v1beta1.ProjectHelmChartRepository](indexer, v1beta1.Resource("projecthelmchartrepository"))}
+ return &projectHelmChartRepositoryLister{listers.New[*helmv1beta1.ProjectHelmChartRepository](indexer, helmv1beta1.Resource("projecthelmchartrepository"))}
}
// ProjectHelmChartRepositories returns an object that can list and get ProjectHelmChartRepositories.
func (s *projectHelmChartRepositoryLister) ProjectHelmChartRepositories(namespace string) ProjectHelmChartRepositoryNamespaceLister {
- return projectHelmChartRepositoryNamespaceLister{listers.NewNamespaced[*v1beta1.ProjectHelmChartRepository](s.ResourceIndexer, namespace)}
+ return projectHelmChartRepositoryNamespaceLister{listers.NewNamespaced[*helmv1beta1.ProjectHelmChartRepository](s.ResourceIndexer, namespace)}
}
// ProjectHelmChartRepositoryNamespaceLister helps list and get ProjectHelmChartRepositories.
@@ -40,15 +40,15 @@ func (s *projectHelmChartRepositoryLister) ProjectHelmChartRepositories(namespac
type ProjectHelmChartRepositoryNamespaceLister interface {
// List lists all ProjectHelmChartRepositories in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1beta1.ProjectHelmChartRepository, err error)
+ List(selector labels.Selector) (ret []*helmv1beta1.ProjectHelmChartRepository, err error)
// Get retrieves the ProjectHelmChartRepository from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1beta1.ProjectHelmChartRepository, error)
+ Get(name string) (*helmv1beta1.ProjectHelmChartRepository, error)
ProjectHelmChartRepositoryNamespaceListerExpansion
}
// projectHelmChartRepositoryNamespaceLister implements the ProjectHelmChartRepositoryNamespaceLister
// interface.
type projectHelmChartRepositoryNamespaceLister struct {
- listers.ResourceIndexer[*v1beta1.ProjectHelmChartRepository]
+ listers.ResourceIndexer[*helmv1beta1.ProjectHelmChartRepository]
}
diff --git a/image/applyconfigurations/image/v1/image.go b/image/applyconfigurations/image/v1/image.go
index baddceac6..d3110a3e6 100644
--- a/image/applyconfigurations/image/v1/image.go
+++ b/image/applyconfigurations/image/v1/image.go
@@ -3,30 +3,30 @@
package v1
import (
- apiimagev1 "github.com/openshift/api/image/v1"
+ imagev1 "github.com/openshift/api/image/v1"
internal "github.com/openshift/client-go/image/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ImageApplyConfiguration represents a declarative configuration of the Image type for use
// with apply.
type ImageApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- DockerImageReference *string `json:"dockerImageReference,omitempty"`
- DockerImageMetadata *runtime.RawExtension `json:"dockerImageMetadata,omitempty"`
- DockerImageMetadataVersion *string `json:"dockerImageMetadataVersion,omitempty"`
- DockerImageManifest *string `json:"dockerImageManifest,omitempty"`
- DockerImageLayers []ImageLayerApplyConfiguration `json:"dockerImageLayers,omitempty"`
- Signatures []ImageSignatureApplyConfiguration `json:"signatures,omitempty"`
- DockerImageSignatures [][]byte `json:"dockerImageSignatures,omitempty"`
- DockerImageManifestMediaType *string `json:"dockerImageManifestMediaType,omitempty"`
- DockerImageConfig *string `json:"dockerImageConfig,omitempty"`
- DockerImageManifests []ImageManifestApplyConfiguration `json:"dockerImageManifests,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ DockerImageReference *string `json:"dockerImageReference,omitempty"`
+ DockerImageMetadata *runtime.RawExtension `json:"dockerImageMetadata,omitempty"`
+ DockerImageMetadataVersion *string `json:"dockerImageMetadataVersion,omitempty"`
+ DockerImageManifest *string `json:"dockerImageManifest,omitempty"`
+ DockerImageLayers []ImageLayerApplyConfiguration `json:"dockerImageLayers,omitempty"`
+ Signatures []ImageSignatureApplyConfiguration `json:"signatures,omitempty"`
+ DockerImageSignatures [][]byte `json:"dockerImageSignatures,omitempty"`
+ DockerImageManifestMediaType *string `json:"dockerImageManifestMediaType,omitempty"`
+ DockerImageConfig *string `json:"dockerImageConfig,omitempty"`
+ DockerImageManifests []ImageManifestApplyConfiguration `json:"dockerImageManifests,omitempty"`
}
// Image constructs a declarative configuration of the Image type for use with
@@ -50,18 +50,18 @@ func Image(name string) *ImageApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractImage(image *apiimagev1.Image, fieldManager string) (*ImageApplyConfiguration, error) {
+func ExtractImage(image *imagev1.Image, fieldManager string) (*ImageApplyConfiguration, error) {
return extractImage(image, fieldManager, "")
}
// ExtractImageStatus is the same as ExtractImage except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractImageStatus(image *apiimagev1.Image, fieldManager string) (*ImageApplyConfiguration, error) {
+func ExtractImageStatus(image *imagev1.Image, fieldManager string) (*ImageApplyConfiguration, error) {
return extractImage(image, fieldManager, "status")
}
-func extractImage(image *apiimagev1.Image, fieldManager string, subresource string) (*ImageApplyConfiguration, error) {
+func extractImage(image *imagev1.Image, fieldManager string, subresource string) (*ImageApplyConfiguration, error) {
b := &ImageApplyConfiguration{}
err := managedfields.ExtractInto(image, internal.Parser().Type("com.github.openshift.api.image.v1.Image"), fieldManager, b, subresource)
if err != nil {
@@ -78,7 +78,7 @@ func extractImage(image *apiimagev1.Image, fieldManager string, subresource stri
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ImageApplyConfiguration) WithKind(value string) *ImageApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -86,7 +86,7 @@ func (b *ImageApplyConfiguration) WithKind(value string) *ImageApplyConfiguratio
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ImageApplyConfiguration) WithAPIVersion(value string) *ImageApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -95,7 +95,7 @@ func (b *ImageApplyConfiguration) WithAPIVersion(value string) *ImageApplyConfig
// If called multiple times, the Name field is set to the value of the last call.
func (b *ImageApplyConfiguration) WithName(value string) *ImageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -104,7 +104,7 @@ func (b *ImageApplyConfiguration) WithName(value string) *ImageApplyConfiguratio
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ImageApplyConfiguration) WithGenerateName(value string) *ImageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -113,7 +113,7 @@ func (b *ImageApplyConfiguration) WithGenerateName(value string) *ImageApplyConf
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ImageApplyConfiguration) WithNamespace(value string) *ImageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -122,7 +122,7 @@ func (b *ImageApplyConfiguration) WithNamespace(value string) *ImageApplyConfigu
// If called multiple times, the UID field is set to the value of the last call.
func (b *ImageApplyConfiguration) WithUID(value types.UID) *ImageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -131,7 +131,7 @@ func (b *ImageApplyConfiguration) WithUID(value types.UID) *ImageApplyConfigurat
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ImageApplyConfiguration) WithResourceVersion(value string) *ImageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -140,25 +140,25 @@ func (b *ImageApplyConfiguration) WithResourceVersion(value string) *ImageApplyC
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ImageApplyConfiguration) WithGeneration(value int64) *ImageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *ImageApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ImageApplyConfiguration {
+func (b *ImageApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ImageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *ImageApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ImageApplyConfiguration {
+func (b *ImageApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ImageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -167,7 +167,7 @@ func (b *ImageApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *Imag
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ImageApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ImageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -177,11 +177,11 @@ func (b *ImageApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *I
// overwriting an existing map entries in Labels field with the same key.
func (b *ImageApplyConfiguration) WithLabels(entries map[string]string) *ImageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -192,11 +192,11 @@ func (b *ImageApplyConfiguration) WithLabels(entries map[string]string) *ImageAp
// overwriting an existing map entries in Annotations field with the same key.
func (b *ImageApplyConfiguration) WithAnnotations(entries map[string]string) *ImageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -204,13 +204,13 @@ func (b *ImageApplyConfiguration) WithAnnotations(entries map[string]string) *Im
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *ImageApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ImageApplyConfiguration {
+func (b *ImageApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ImageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -221,14 +221,14 @@ func (b *ImageApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferen
func (b *ImageApplyConfiguration) WithFinalizers(values ...string) *ImageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *ImageApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -332,5 +332,5 @@ func (b *ImageApplyConfiguration) WithDockerImageManifests(values ...*ImageManif
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ImageApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/image/applyconfigurations/image/v1/imagesignature.go b/image/applyconfigurations/image/v1/imagesignature.go
index d12f83266..93e5abc04 100644
--- a/image/applyconfigurations/image/v1/imagesignature.go
+++ b/image/applyconfigurations/image/v1/imagesignature.go
@@ -3,24 +3,24 @@
package v1
import (
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ImageSignatureApplyConfiguration represents a declarative configuration of the ImageSignature type for use
// with apply.
type ImageSignatureApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Type *string `json:"type,omitempty"`
- Content []byte `json:"content,omitempty"`
- Conditions []SignatureConditionApplyConfiguration `json:"conditions,omitempty"`
- ImageIdentity *string `json:"imageIdentity,omitempty"`
- SignedClaims map[string]string `json:"signedClaims,omitempty"`
- Created *metav1.Time `json:"created,omitempty"`
- IssuedBy *SignatureIssuerApplyConfiguration `json:"issuedBy,omitempty"`
- IssuedTo *SignatureSubjectApplyConfiguration `json:"issuedTo,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Type *string `json:"type,omitempty"`
+ Content []byte `json:"content,omitempty"`
+ Conditions []SignatureConditionApplyConfiguration `json:"conditions,omitempty"`
+ ImageIdentity *string `json:"imageIdentity,omitempty"`
+ SignedClaims map[string]string `json:"signedClaims,omitempty"`
+ Created *apismetav1.Time `json:"created,omitempty"`
+ IssuedBy *SignatureIssuerApplyConfiguration `json:"issuedBy,omitempty"`
+ IssuedTo *SignatureSubjectApplyConfiguration `json:"issuedTo,omitempty"`
}
// ImageSignature constructs a declarative configuration of the ImageSignature type for use with
@@ -37,7 +37,7 @@ func ImageSignature(name string) *ImageSignatureApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ImageSignatureApplyConfiguration) WithKind(value string) *ImageSignatureApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -45,7 +45,7 @@ func (b *ImageSignatureApplyConfiguration) WithKind(value string) *ImageSignatur
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ImageSignatureApplyConfiguration) WithAPIVersion(value string) *ImageSignatureApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -54,7 +54,7 @@ func (b *ImageSignatureApplyConfiguration) WithAPIVersion(value string) *ImageSi
// If called multiple times, the Name field is set to the value of the last call.
func (b *ImageSignatureApplyConfiguration) WithName(value string) *ImageSignatureApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -63,7 +63,7 @@ func (b *ImageSignatureApplyConfiguration) WithName(value string) *ImageSignatur
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ImageSignatureApplyConfiguration) WithGenerateName(value string) *ImageSignatureApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -72,7 +72,7 @@ func (b *ImageSignatureApplyConfiguration) WithGenerateName(value string) *Image
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ImageSignatureApplyConfiguration) WithNamespace(value string) *ImageSignatureApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -81,7 +81,7 @@ func (b *ImageSignatureApplyConfiguration) WithNamespace(value string) *ImageSig
// If called multiple times, the UID field is set to the value of the last call.
func (b *ImageSignatureApplyConfiguration) WithUID(value types.UID) *ImageSignatureApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -90,7 +90,7 @@ func (b *ImageSignatureApplyConfiguration) WithUID(value types.UID) *ImageSignat
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ImageSignatureApplyConfiguration) WithResourceVersion(value string) *ImageSignatureApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -99,25 +99,25 @@ func (b *ImageSignatureApplyConfiguration) WithResourceVersion(value string) *Im
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ImageSignatureApplyConfiguration) WithGeneration(value int64) *ImageSignatureApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *ImageSignatureApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ImageSignatureApplyConfiguration {
+func (b *ImageSignatureApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ImageSignatureApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *ImageSignatureApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ImageSignatureApplyConfiguration {
+func (b *ImageSignatureApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ImageSignatureApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -126,7 +126,7 @@ func (b *ImageSignatureApplyConfiguration) WithDeletionTimestamp(value metav1.Ti
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ImageSignatureApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ImageSignatureApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -136,11 +136,11 @@ func (b *ImageSignatureApplyConfiguration) WithDeletionGracePeriodSeconds(value
// overwriting an existing map entries in Labels field with the same key.
func (b *ImageSignatureApplyConfiguration) WithLabels(entries map[string]string) *ImageSignatureApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -151,11 +151,11 @@ func (b *ImageSignatureApplyConfiguration) WithLabels(entries map[string]string)
// overwriting an existing map entries in Annotations field with the same key.
func (b *ImageSignatureApplyConfiguration) WithAnnotations(entries map[string]string) *ImageSignatureApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -163,13 +163,13 @@ func (b *ImageSignatureApplyConfiguration) WithAnnotations(entries map[string]st
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *ImageSignatureApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ImageSignatureApplyConfiguration {
+func (b *ImageSignatureApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ImageSignatureApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -180,14 +180,14 @@ func (b *ImageSignatureApplyConfiguration) WithOwnerReferences(values ...*v1.Own
func (b *ImageSignatureApplyConfiguration) WithFinalizers(values ...string) *ImageSignatureApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *ImageSignatureApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -247,7 +247,7 @@ func (b *ImageSignatureApplyConfiguration) WithSignedClaims(entries map[string]s
// WithCreated sets the Created field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Created field is set to the value of the last call.
-func (b *ImageSignatureApplyConfiguration) WithCreated(value metav1.Time) *ImageSignatureApplyConfiguration {
+func (b *ImageSignatureApplyConfiguration) WithCreated(value apismetav1.Time) *ImageSignatureApplyConfiguration {
b.Created = &value
return b
}
@@ -271,5 +271,5 @@ func (b *ImageSignatureApplyConfiguration) WithIssuedTo(value *SignatureSubjectA
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ImageSignatureApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/image/applyconfigurations/image/v1/imagestream.go b/image/applyconfigurations/image/v1/imagestream.go
index d00345585..ad895e190 100644
--- a/image/applyconfigurations/image/v1/imagestream.go
+++ b/image/applyconfigurations/image/v1/imagestream.go
@@ -3,21 +3,21 @@
package v1
import (
- apiimagev1 "github.com/openshift/api/image/v1"
+ imagev1 "github.com/openshift/api/image/v1"
internal "github.com/openshift/client-go/image/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ImageStreamApplyConfiguration represents a declarative configuration of the ImageStream type for use
// with apply.
type ImageStreamApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *ImageStreamSpecApplyConfiguration `json:"spec,omitempty"`
- Status *ImageStreamStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *ImageStreamSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *ImageStreamStatusApplyConfiguration `json:"status,omitempty"`
}
// ImageStream constructs a declarative configuration of the ImageStream type for use with
@@ -42,18 +42,18 @@ func ImageStream(name, namespace string) *ImageStreamApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractImageStream(imageStream *apiimagev1.ImageStream, fieldManager string) (*ImageStreamApplyConfiguration, error) {
+func ExtractImageStream(imageStream *imagev1.ImageStream, fieldManager string) (*ImageStreamApplyConfiguration, error) {
return extractImageStream(imageStream, fieldManager, "")
}
// ExtractImageStreamStatus is the same as ExtractImageStream except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractImageStreamStatus(imageStream *apiimagev1.ImageStream, fieldManager string) (*ImageStreamApplyConfiguration, error) {
+func ExtractImageStreamStatus(imageStream *imagev1.ImageStream, fieldManager string) (*ImageStreamApplyConfiguration, error) {
return extractImageStream(imageStream, fieldManager, "status")
}
-func extractImageStream(imageStream *apiimagev1.ImageStream, fieldManager string, subresource string) (*ImageStreamApplyConfiguration, error) {
+func extractImageStream(imageStream *imagev1.ImageStream, fieldManager string, subresource string) (*ImageStreamApplyConfiguration, error) {
b := &ImageStreamApplyConfiguration{}
err := managedfields.ExtractInto(imageStream, internal.Parser().Type("com.github.openshift.api.image.v1.ImageStream"), fieldManager, b, subresource)
if err != nil {
@@ -71,7 +71,7 @@ func extractImageStream(imageStream *apiimagev1.ImageStream, fieldManager string
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ImageStreamApplyConfiguration) WithKind(value string) *ImageStreamApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -79,7 +79,7 @@ func (b *ImageStreamApplyConfiguration) WithKind(value string) *ImageStreamApply
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ImageStreamApplyConfiguration) WithAPIVersion(value string) *ImageStreamApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -88,7 +88,7 @@ func (b *ImageStreamApplyConfiguration) WithAPIVersion(value string) *ImageStrea
// If called multiple times, the Name field is set to the value of the last call.
func (b *ImageStreamApplyConfiguration) WithName(value string) *ImageStreamApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -97,7 +97,7 @@ func (b *ImageStreamApplyConfiguration) WithName(value string) *ImageStreamApply
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ImageStreamApplyConfiguration) WithGenerateName(value string) *ImageStreamApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -106,7 +106,7 @@ func (b *ImageStreamApplyConfiguration) WithGenerateName(value string) *ImageStr
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ImageStreamApplyConfiguration) WithNamespace(value string) *ImageStreamApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -115,7 +115,7 @@ func (b *ImageStreamApplyConfiguration) WithNamespace(value string) *ImageStream
// If called multiple times, the UID field is set to the value of the last call.
func (b *ImageStreamApplyConfiguration) WithUID(value types.UID) *ImageStreamApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -124,7 +124,7 @@ func (b *ImageStreamApplyConfiguration) WithUID(value types.UID) *ImageStreamApp
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ImageStreamApplyConfiguration) WithResourceVersion(value string) *ImageStreamApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -133,25 +133,25 @@ func (b *ImageStreamApplyConfiguration) WithResourceVersion(value string) *Image
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ImageStreamApplyConfiguration) WithGeneration(value int64) *ImageStreamApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *ImageStreamApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ImageStreamApplyConfiguration {
+func (b *ImageStreamApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ImageStreamApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *ImageStreamApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ImageStreamApplyConfiguration {
+func (b *ImageStreamApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ImageStreamApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -160,7 +160,7 @@ func (b *ImageStreamApplyConfiguration) WithDeletionTimestamp(value metav1.Time)
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ImageStreamApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ImageStreamApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -170,11 +170,11 @@ func (b *ImageStreamApplyConfiguration) WithDeletionGracePeriodSeconds(value int
// overwriting an existing map entries in Labels field with the same key.
func (b *ImageStreamApplyConfiguration) WithLabels(entries map[string]string) *ImageStreamApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -185,11 +185,11 @@ func (b *ImageStreamApplyConfiguration) WithLabels(entries map[string]string) *I
// overwriting an existing map entries in Annotations field with the same key.
func (b *ImageStreamApplyConfiguration) WithAnnotations(entries map[string]string) *ImageStreamApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -197,13 +197,13 @@ func (b *ImageStreamApplyConfiguration) WithAnnotations(entries map[string]strin
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *ImageStreamApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ImageStreamApplyConfiguration {
+func (b *ImageStreamApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ImageStreamApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -214,14 +214,14 @@ func (b *ImageStreamApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerR
func (b *ImageStreamApplyConfiguration) WithFinalizers(values ...string) *ImageStreamApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *ImageStreamApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -244,5 +244,5 @@ func (b *ImageStreamApplyConfiguration) WithStatus(value *ImageStreamStatusApply
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ImageStreamApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/image/applyconfigurations/image/v1/imagestreammapping.go b/image/applyconfigurations/image/v1/imagestreammapping.go
index 56a1e24fc..97e99ff08 100644
--- a/image/applyconfigurations/image/v1/imagestreammapping.go
+++ b/image/applyconfigurations/image/v1/imagestreammapping.go
@@ -3,21 +3,21 @@
package v1
import (
- apiimagev1 "github.com/openshift/api/image/v1"
+ imagev1 "github.com/openshift/api/image/v1"
internal "github.com/openshift/client-go/image/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ImageStreamMappingApplyConfiguration represents a declarative configuration of the ImageStreamMapping type for use
// with apply.
type ImageStreamMappingApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Image *ImageApplyConfiguration `json:"image,omitempty"`
- Tag *string `json:"tag,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Image *ImageApplyConfiguration `json:"image,omitempty"`
+ Tag *string `json:"tag,omitempty"`
}
// ImageStreamMapping constructs a declarative configuration of the ImageStreamMapping type for use with
@@ -42,18 +42,18 @@ func ImageStreamMapping(name, namespace string) *ImageStreamMappingApplyConfigur
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractImageStreamMapping(imageStreamMapping *apiimagev1.ImageStreamMapping, fieldManager string) (*ImageStreamMappingApplyConfiguration, error) {
+func ExtractImageStreamMapping(imageStreamMapping *imagev1.ImageStreamMapping, fieldManager string) (*ImageStreamMappingApplyConfiguration, error) {
return extractImageStreamMapping(imageStreamMapping, fieldManager, "")
}
// ExtractImageStreamMappingStatus is the same as ExtractImageStreamMapping except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractImageStreamMappingStatus(imageStreamMapping *apiimagev1.ImageStreamMapping, fieldManager string) (*ImageStreamMappingApplyConfiguration, error) {
+func ExtractImageStreamMappingStatus(imageStreamMapping *imagev1.ImageStreamMapping, fieldManager string) (*ImageStreamMappingApplyConfiguration, error) {
return extractImageStreamMapping(imageStreamMapping, fieldManager, "status")
}
-func extractImageStreamMapping(imageStreamMapping *apiimagev1.ImageStreamMapping, fieldManager string, subresource string) (*ImageStreamMappingApplyConfiguration, error) {
+func extractImageStreamMapping(imageStreamMapping *imagev1.ImageStreamMapping, fieldManager string, subresource string) (*ImageStreamMappingApplyConfiguration, error) {
b := &ImageStreamMappingApplyConfiguration{}
err := managedfields.ExtractInto(imageStreamMapping, internal.Parser().Type("com.github.openshift.api.image.v1.ImageStreamMapping"), fieldManager, b, subresource)
if err != nil {
@@ -71,7 +71,7 @@ func extractImageStreamMapping(imageStreamMapping *apiimagev1.ImageStreamMapping
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ImageStreamMappingApplyConfiguration) WithKind(value string) *ImageStreamMappingApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -79,7 +79,7 @@ func (b *ImageStreamMappingApplyConfiguration) WithKind(value string) *ImageStre
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ImageStreamMappingApplyConfiguration) WithAPIVersion(value string) *ImageStreamMappingApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -88,7 +88,7 @@ func (b *ImageStreamMappingApplyConfiguration) WithAPIVersion(value string) *Ima
// If called multiple times, the Name field is set to the value of the last call.
func (b *ImageStreamMappingApplyConfiguration) WithName(value string) *ImageStreamMappingApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -97,7 +97,7 @@ func (b *ImageStreamMappingApplyConfiguration) WithName(value string) *ImageStre
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ImageStreamMappingApplyConfiguration) WithGenerateName(value string) *ImageStreamMappingApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -106,7 +106,7 @@ func (b *ImageStreamMappingApplyConfiguration) WithGenerateName(value string) *I
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ImageStreamMappingApplyConfiguration) WithNamespace(value string) *ImageStreamMappingApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -115,7 +115,7 @@ func (b *ImageStreamMappingApplyConfiguration) WithNamespace(value string) *Imag
// If called multiple times, the UID field is set to the value of the last call.
func (b *ImageStreamMappingApplyConfiguration) WithUID(value types.UID) *ImageStreamMappingApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -124,7 +124,7 @@ func (b *ImageStreamMappingApplyConfiguration) WithUID(value types.UID) *ImageSt
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ImageStreamMappingApplyConfiguration) WithResourceVersion(value string) *ImageStreamMappingApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -133,25 +133,25 @@ func (b *ImageStreamMappingApplyConfiguration) WithResourceVersion(value string)
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ImageStreamMappingApplyConfiguration) WithGeneration(value int64) *ImageStreamMappingApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *ImageStreamMappingApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ImageStreamMappingApplyConfiguration {
+func (b *ImageStreamMappingApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ImageStreamMappingApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *ImageStreamMappingApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ImageStreamMappingApplyConfiguration {
+func (b *ImageStreamMappingApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ImageStreamMappingApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -160,7 +160,7 @@ func (b *ImageStreamMappingApplyConfiguration) WithDeletionTimestamp(value metav
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ImageStreamMappingApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ImageStreamMappingApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -170,11 +170,11 @@ func (b *ImageStreamMappingApplyConfiguration) WithDeletionGracePeriodSeconds(va
// overwriting an existing map entries in Labels field with the same key.
func (b *ImageStreamMappingApplyConfiguration) WithLabels(entries map[string]string) *ImageStreamMappingApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -185,11 +185,11 @@ func (b *ImageStreamMappingApplyConfiguration) WithLabels(entries map[string]str
// overwriting an existing map entries in Annotations field with the same key.
func (b *ImageStreamMappingApplyConfiguration) WithAnnotations(entries map[string]string) *ImageStreamMappingApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -197,13 +197,13 @@ func (b *ImageStreamMappingApplyConfiguration) WithAnnotations(entries map[strin
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *ImageStreamMappingApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ImageStreamMappingApplyConfiguration {
+func (b *ImageStreamMappingApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ImageStreamMappingApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -214,14 +214,14 @@ func (b *ImageStreamMappingApplyConfiguration) WithOwnerReferences(values ...*v1
func (b *ImageStreamMappingApplyConfiguration) WithFinalizers(values ...string) *ImageStreamMappingApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *ImageStreamMappingApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -244,5 +244,5 @@ func (b *ImageStreamMappingApplyConfiguration) WithTag(value string) *ImageStrea
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ImageStreamMappingApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/image/applyconfigurations/image/v1/signaturecondition.go b/image/applyconfigurations/image/v1/signaturecondition.go
index 23f05b9c4..232bf7bf9 100644
--- a/image/applyconfigurations/image/v1/signaturecondition.go
+++ b/image/applyconfigurations/image/v1/signaturecondition.go
@@ -3,7 +3,7 @@
package v1
import (
- v1 "github.com/openshift/api/image/v1"
+ imagev1 "github.com/openshift/api/image/v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
@@ -11,12 +11,12 @@ import (
// SignatureConditionApplyConfiguration represents a declarative configuration of the SignatureCondition type for use
// with apply.
type SignatureConditionApplyConfiguration struct {
- Type *v1.SignatureConditionType `json:"type,omitempty"`
- Status *corev1.ConditionStatus `json:"status,omitempty"`
- LastProbeTime *metav1.Time `json:"lastProbeTime,omitempty"`
- LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
- Reason *string `json:"reason,omitempty"`
- Message *string `json:"message,omitempty"`
+ Type *imagev1.SignatureConditionType `json:"type,omitempty"`
+ Status *corev1.ConditionStatus `json:"status,omitempty"`
+ LastProbeTime *metav1.Time `json:"lastProbeTime,omitempty"`
+ LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
+ Reason *string `json:"reason,omitempty"`
+ Message *string `json:"message,omitempty"`
}
// SignatureConditionApplyConfiguration constructs a declarative configuration of the SignatureCondition type for use with
@@ -28,7 +28,7 @@ func SignatureCondition() *SignatureConditionApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *SignatureConditionApplyConfiguration) WithType(value v1.SignatureConditionType) *SignatureConditionApplyConfiguration {
+func (b *SignatureConditionApplyConfiguration) WithType(value imagev1.SignatureConditionType) *SignatureConditionApplyConfiguration {
b.Type = &value
return b
}
diff --git a/image/applyconfigurations/image/v1/signatureissuer.go b/image/applyconfigurations/image/v1/signatureissuer.go
index 3ec7c7bbd..68564dd5f 100644
--- a/image/applyconfigurations/image/v1/signatureissuer.go
+++ b/image/applyconfigurations/image/v1/signatureissuer.go
@@ -18,7 +18,7 @@ func SignatureIssuer() *SignatureIssuerApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Organization field is set to the value of the last call.
func (b *SignatureIssuerApplyConfiguration) WithOrganization(value string) *SignatureIssuerApplyConfiguration {
- b.Organization = &value
+ b.SignatureGenericEntityApplyConfiguration.Organization = &value
return b
}
@@ -26,6 +26,6 @@ func (b *SignatureIssuerApplyConfiguration) WithOrganization(value string) *Sign
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CommonName field is set to the value of the last call.
func (b *SignatureIssuerApplyConfiguration) WithCommonName(value string) *SignatureIssuerApplyConfiguration {
- b.CommonName = &value
+ b.SignatureGenericEntityApplyConfiguration.CommonName = &value
return b
}
diff --git a/image/applyconfigurations/image/v1/signaturesubject.go b/image/applyconfigurations/image/v1/signaturesubject.go
index 3506d98a8..bc15e4f37 100644
--- a/image/applyconfigurations/image/v1/signaturesubject.go
+++ b/image/applyconfigurations/image/v1/signaturesubject.go
@@ -19,7 +19,7 @@ func SignatureSubject() *SignatureSubjectApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Organization field is set to the value of the last call.
func (b *SignatureSubjectApplyConfiguration) WithOrganization(value string) *SignatureSubjectApplyConfiguration {
- b.Organization = &value
+ b.SignatureGenericEntityApplyConfiguration.Organization = &value
return b
}
@@ -27,7 +27,7 @@ func (b *SignatureSubjectApplyConfiguration) WithOrganization(value string) *Sig
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CommonName field is set to the value of the last call.
func (b *SignatureSubjectApplyConfiguration) WithCommonName(value string) *SignatureSubjectApplyConfiguration {
- b.CommonName = &value
+ b.SignatureGenericEntityApplyConfiguration.CommonName = &value
return b
}
diff --git a/image/applyconfigurations/image/v1/tagevent.go b/image/applyconfigurations/image/v1/tagevent.go
index 0187ab87a..d123e74cb 100644
--- a/image/applyconfigurations/image/v1/tagevent.go
+++ b/image/applyconfigurations/image/v1/tagevent.go
@@ -3,16 +3,16 @@
package v1
import (
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// TagEventApplyConfiguration represents a declarative configuration of the TagEvent type for use
// with apply.
type TagEventApplyConfiguration struct {
- Created *v1.Time `json:"created,omitempty"`
- DockerImageReference *string `json:"dockerImageReference,omitempty"`
- Image *string `json:"image,omitempty"`
- Generation *int64 `json:"generation,omitempty"`
+ Created *metav1.Time `json:"created,omitempty"`
+ DockerImageReference *string `json:"dockerImageReference,omitempty"`
+ Image *string `json:"image,omitempty"`
+ Generation *int64 `json:"generation,omitempty"`
}
// TagEventApplyConfiguration constructs a declarative configuration of the TagEvent type for use with
@@ -24,7 +24,7 @@ func TagEvent() *TagEventApplyConfiguration {
// WithCreated sets the Created field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Created field is set to the value of the last call.
-func (b *TagEventApplyConfiguration) WithCreated(value v1.Time) *TagEventApplyConfiguration {
+func (b *TagEventApplyConfiguration) WithCreated(value metav1.Time) *TagEventApplyConfiguration {
b.Created = &value
return b
}
diff --git a/image/applyconfigurations/image/v1/tageventcondition.go b/image/applyconfigurations/image/v1/tageventcondition.go
index b25af8645..ba6193fc3 100644
--- a/image/applyconfigurations/image/v1/tageventcondition.go
+++ b/image/applyconfigurations/image/v1/tageventcondition.go
@@ -3,7 +3,7 @@
package v1
import (
- v1 "github.com/openshift/api/image/v1"
+ imagev1 "github.com/openshift/api/image/v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
@@ -11,12 +11,12 @@ import (
// TagEventConditionApplyConfiguration represents a declarative configuration of the TagEventCondition type for use
// with apply.
type TagEventConditionApplyConfiguration struct {
- Type *v1.TagEventConditionType `json:"type,omitempty"`
- Status *corev1.ConditionStatus `json:"status,omitempty"`
- LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
- Reason *string `json:"reason,omitempty"`
- Message *string `json:"message,omitempty"`
- Generation *int64 `json:"generation,omitempty"`
+ Type *imagev1.TagEventConditionType `json:"type,omitempty"`
+ Status *corev1.ConditionStatus `json:"status,omitempty"`
+ LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
+ Reason *string `json:"reason,omitempty"`
+ Message *string `json:"message,omitempty"`
+ Generation *int64 `json:"generation,omitempty"`
}
// TagEventConditionApplyConfiguration constructs a declarative configuration of the TagEventCondition type for use with
@@ -28,7 +28,7 @@ func TagEventCondition() *TagEventConditionApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *TagEventConditionApplyConfiguration) WithType(value v1.TagEventConditionType) *TagEventConditionApplyConfiguration {
+func (b *TagEventConditionApplyConfiguration) WithType(value imagev1.TagEventConditionType) *TagEventConditionApplyConfiguration {
b.Type = &value
return b
}
diff --git a/image/applyconfigurations/image/v1/tagimportpolicy.go b/image/applyconfigurations/image/v1/tagimportpolicy.go
index 1ce15353d..996690343 100644
--- a/image/applyconfigurations/image/v1/tagimportpolicy.go
+++ b/image/applyconfigurations/image/v1/tagimportpolicy.go
@@ -3,15 +3,15 @@
package v1
import (
- v1 "github.com/openshift/api/image/v1"
+ imagev1 "github.com/openshift/api/image/v1"
)
// TagImportPolicyApplyConfiguration represents a declarative configuration of the TagImportPolicy type for use
// with apply.
type TagImportPolicyApplyConfiguration struct {
- Insecure *bool `json:"insecure,omitempty"`
- Scheduled *bool `json:"scheduled,omitempty"`
- ImportMode *v1.ImportModeType `json:"importMode,omitempty"`
+ Insecure *bool `json:"insecure,omitempty"`
+ Scheduled *bool `json:"scheduled,omitempty"`
+ ImportMode *imagev1.ImportModeType `json:"importMode,omitempty"`
}
// TagImportPolicyApplyConfiguration constructs a declarative configuration of the TagImportPolicy type for use with
@@ -39,7 +39,7 @@ func (b *TagImportPolicyApplyConfiguration) WithScheduled(value bool) *TagImport
// WithImportMode sets the ImportMode field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ImportMode field is set to the value of the last call.
-func (b *TagImportPolicyApplyConfiguration) WithImportMode(value v1.ImportModeType) *TagImportPolicyApplyConfiguration {
+func (b *TagImportPolicyApplyConfiguration) WithImportMode(value imagev1.ImportModeType) *TagImportPolicyApplyConfiguration {
b.ImportMode = &value
return b
}
diff --git a/image/applyconfigurations/image/v1/tagreference.go b/image/applyconfigurations/image/v1/tagreference.go
index 3ec958d37..648f30e31 100644
--- a/image/applyconfigurations/image/v1/tagreference.go
+++ b/image/applyconfigurations/image/v1/tagreference.go
@@ -3,7 +3,7 @@
package v1
import (
- v1 "k8s.io/api/core/v1"
+ corev1 "k8s.io/api/core/v1"
)
// TagReferenceApplyConfiguration represents a declarative configuration of the TagReference type for use
@@ -11,7 +11,7 @@ import (
type TagReferenceApplyConfiguration struct {
Name *string `json:"name,omitempty"`
Annotations map[string]string `json:"annotations,omitempty"`
- From *v1.ObjectReference `json:"from,omitempty"`
+ From *corev1.ObjectReference `json:"from,omitempty"`
Reference *bool `json:"reference,omitempty"`
Generation *int64 `json:"generation,omitempty"`
ImportPolicy *TagImportPolicyApplyConfiguration `json:"importPolicy,omitempty"`
@@ -49,7 +49,7 @@ func (b *TagReferenceApplyConfiguration) WithAnnotations(entries map[string]stri
// WithFrom sets the From field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the From field is set to the value of the last call.
-func (b *TagReferenceApplyConfiguration) WithFrom(value v1.ObjectReference) *TagReferenceApplyConfiguration {
+func (b *TagReferenceApplyConfiguration) WithFrom(value corev1.ObjectReference) *TagReferenceApplyConfiguration {
b.From = &value
return b
}
diff --git a/image/applyconfigurations/image/v1/tagreferencepolicy.go b/image/applyconfigurations/image/v1/tagreferencepolicy.go
index 06d739753..d010d3ac0 100644
--- a/image/applyconfigurations/image/v1/tagreferencepolicy.go
+++ b/image/applyconfigurations/image/v1/tagreferencepolicy.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/image/v1"
+ imagev1 "github.com/openshift/api/image/v1"
)
// TagReferencePolicyApplyConfiguration represents a declarative configuration of the TagReferencePolicy type for use
// with apply.
type TagReferencePolicyApplyConfiguration struct {
- Type *v1.TagReferencePolicyType `json:"type,omitempty"`
+ Type *imagev1.TagReferencePolicyType `json:"type,omitempty"`
}
// TagReferencePolicyApplyConfiguration constructs a declarative configuration of the TagReferencePolicy type for use with
@@ -21,7 +21,7 @@ func TagReferencePolicy() *TagReferencePolicyApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *TagReferencePolicyApplyConfiguration) WithType(value v1.TagReferencePolicyType) *TagReferencePolicyApplyConfiguration {
+func (b *TagReferencePolicyApplyConfiguration) WithType(value imagev1.TagReferencePolicyType) *TagReferencePolicyApplyConfiguration {
b.Type = &value
return b
}
diff --git a/image/applyconfigurations/internal/internal.go b/image/applyconfigurations/internal/internal.go
index a66912f38..8c46c4a5e 100644
--- a/image/applyconfigurations/internal/internal.go
+++ b/image/applyconfigurations/internal/internal.go
@@ -3,8 +3,8 @@
package internal
import (
- "fmt"
- "sync"
+ fmt "fmt"
+ sync "sync"
typed "sigs.k8s.io/structured-merge-diff/v4/typed"
)
diff --git a/image/clientset/versioned/clientset.go b/image/clientset/versioned/clientset.go
index fc810cbc5..982409785 100644
--- a/image/clientset/versioned/clientset.go
+++ b/image/clientset/versioned/clientset.go
@@ -3,8 +3,8 @@
package versioned
import (
- "fmt"
- "net/http"
+ fmt "fmt"
+ http "net/http"
imagev1 "github.com/openshift/client-go/image/clientset/versioned/typed/image/v1"
discovery "k8s.io/client-go/discovery"
diff --git a/image/clientset/versioned/typed/image/v1/fake/fake_image.go b/image/clientset/versioned/typed/image/v1/fake/fake_image.go
index e4da2a3e9..6144aefe9 100644
--- a/image/clientset/versioned/typed/image/v1/fake/fake_image.go
+++ b/image/clientset/versioned/typed/image/v1/fake/fake_image.go
@@ -3,133 +3,31 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/image/v1"
imagev1 "github.com/openshift/client-go/image/applyconfigurations/image/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedimagev1 "github.com/openshift/client-go/image/clientset/versioned/typed/image/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeImages implements ImageInterface
-type FakeImages struct {
+// fakeImages implements ImageInterface
+type fakeImages struct {
+ *gentype.FakeClientWithListAndApply[*v1.Image, *v1.ImageList, *imagev1.ImageApplyConfiguration]
Fake *FakeImageV1
}
-var imagesResource = v1.SchemeGroupVersion.WithResource("images")
-
-var imagesKind = v1.SchemeGroupVersion.WithKind("Image")
-
-// Get takes name of the image, and returns the corresponding image object, and an error if there is any.
-func (c *FakeImages) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Image, err error) {
- emptyResult := &v1.Image{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(imagesResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Image), err
-}
-
-// List takes label and field selectors, and returns the list of Images that match those selectors.
-func (c *FakeImages) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ImageList, err error) {
- emptyResult := &v1.ImageList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(imagesResource, imagesKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.ImageList{ListMeta: obj.(*v1.ImageList).ListMeta}
- for _, item := range obj.(*v1.ImageList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested images.
-func (c *FakeImages) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(imagesResource, opts))
-}
-
-// Create takes the representation of a image and creates it. Returns the server's representation of the image, and an error, if there is any.
-func (c *FakeImages) Create(ctx context.Context, image *v1.Image, opts metav1.CreateOptions) (result *v1.Image, err error) {
- emptyResult := &v1.Image{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(imagesResource, image, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Image), err
-}
-
-// Update takes the representation of a image and updates it. Returns the server's representation of the image, and an error, if there is any.
-func (c *FakeImages) Update(ctx context.Context, image *v1.Image, opts metav1.UpdateOptions) (result *v1.Image, err error) {
- emptyResult := &v1.Image{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(imagesResource, image, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Image), err
-}
-
-// Delete takes name of the image and deletes it. Returns an error if one occurs.
-func (c *FakeImages) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(imagesResource, name, opts), &v1.Image{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeImages) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(imagesResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.ImageList{})
- return err
-}
-
-// Patch applies the patch and returns the patched image.
-func (c *FakeImages) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Image, err error) {
- emptyResult := &v1.Image{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(imagesResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Image), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied image.
-func (c *FakeImages) Apply(ctx context.Context, image *imagev1.ImageApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Image, err error) {
- if image == nil {
- return nil, fmt.Errorf("image provided to Apply must not be nil")
- }
- data, err := json.Marshal(image)
- if err != nil {
- return nil, err
- }
- name := image.Name
- if name == nil {
- return nil, fmt.Errorf("image.Name must be provided to Apply")
- }
- emptyResult := &v1.Image{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(imagesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeImages(fake *FakeImageV1) typedimagev1.ImageInterface {
+ return &fakeImages{
+ gentype.NewFakeClientWithListAndApply[*v1.Image, *v1.ImageList, *imagev1.ImageApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("images"),
+ v1.SchemeGroupVersion.WithKind("Image"),
+ func() *v1.Image { return &v1.Image{} },
+ func() *v1.ImageList { return &v1.ImageList{} },
+ func(dst, src *v1.ImageList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.ImageList) []*v1.Image { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.ImageList, items []*v1.Image) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.Image), err
}
diff --git a/image/clientset/versioned/typed/image/v1/fake/fake_image_client.go b/image/clientset/versioned/typed/image/v1/fake/fake_image_client.go
index c135a79bb..521c72c03 100644
--- a/image/clientset/versioned/typed/image/v1/fake/fake_image_client.go
+++ b/image/clientset/versioned/typed/image/v1/fake/fake_image_client.go
@@ -13,35 +13,35 @@ type FakeImageV1 struct {
}
func (c *FakeImageV1) Images() v1.ImageInterface {
- return &FakeImages{c}
+ return newFakeImages(c)
}
func (c *FakeImageV1) ImageSignatures() v1.ImageSignatureInterface {
- return &FakeImageSignatures{c}
+ return newFakeImageSignatures(c)
}
func (c *FakeImageV1) ImageStreams(namespace string) v1.ImageStreamInterface {
- return &FakeImageStreams{c, namespace}
+ return newFakeImageStreams(c, namespace)
}
func (c *FakeImageV1) ImageStreamImages(namespace string) v1.ImageStreamImageInterface {
- return &FakeImageStreamImages{c, namespace}
+ return newFakeImageStreamImages(c, namespace)
}
func (c *FakeImageV1) ImageStreamImports(namespace string) v1.ImageStreamImportInterface {
- return &FakeImageStreamImports{c, namespace}
+ return newFakeImageStreamImports(c, namespace)
}
func (c *FakeImageV1) ImageStreamMappings(namespace string) v1.ImageStreamMappingInterface {
- return &FakeImageStreamMappings{c, namespace}
+ return newFakeImageStreamMappings(c, namespace)
}
func (c *FakeImageV1) ImageStreamTags(namespace string) v1.ImageStreamTagInterface {
- return &FakeImageStreamTags{c, namespace}
+ return newFakeImageStreamTags(c, namespace)
}
func (c *FakeImageV1) ImageTags(namespace string) v1.ImageTagInterface {
- return &FakeImageTags{c, namespace}
+ return newFakeImageTags(c, namespace)
}
// RESTClient returns a RESTClient that is used to communicate
diff --git a/image/clientset/versioned/typed/image/v1/fake/fake_imagesignature.go b/image/clientset/versioned/typed/image/v1/fake/fake_imagesignature.go
index 0a186b2ff..1a37da991 100644
--- a/image/clientset/versioned/typed/image/v1/fake/fake_imagesignature.go
+++ b/image/clientset/versioned/typed/image/v1/fake/fake_imagesignature.go
@@ -3,36 +3,26 @@
package fake
import (
- "context"
-
v1 "github.com/openshift/api/image/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- testing "k8s.io/client-go/testing"
+ imagev1 "github.com/openshift/client-go/image/clientset/versioned/typed/image/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeImageSignatures implements ImageSignatureInterface
-type FakeImageSignatures struct {
+// fakeImageSignatures implements ImageSignatureInterface
+type fakeImageSignatures struct {
+ *gentype.FakeClient[*v1.ImageSignature]
Fake *FakeImageV1
}
-var imagesignaturesResource = v1.SchemeGroupVersion.WithResource("imagesignatures")
-
-var imagesignaturesKind = v1.SchemeGroupVersion.WithKind("ImageSignature")
-
-// Create takes the representation of a imageSignature and creates it. Returns the server's representation of the imageSignature, and an error, if there is any.
-func (c *FakeImageSignatures) Create(ctx context.Context, imageSignature *v1.ImageSignature, opts metav1.CreateOptions) (result *v1.ImageSignature, err error) {
- emptyResult := &v1.ImageSignature{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(imagesignaturesResource, imageSignature, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeImageSignatures(fake *FakeImageV1) imagev1.ImageSignatureInterface {
+ return &fakeImageSignatures{
+ gentype.NewFakeClient[*v1.ImageSignature](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("imagesignatures"),
+ v1.SchemeGroupVersion.WithKind("ImageSignature"),
+ func() *v1.ImageSignature { return &v1.ImageSignature{} },
+ ),
+ fake,
}
- return obj.(*v1.ImageSignature), err
-}
-
-// Delete takes name of the imageSignature and deletes it. Returns an error if one occurs.
-func (c *FakeImageSignatures) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(imagesignaturesResource, name, opts), &v1.ImageSignature{})
- return err
}
diff --git a/image/clientset/versioned/typed/image/v1/fake/fake_imagestream.go b/image/clientset/versioned/typed/image/v1/fake/fake_imagestream.go
index 3ba173567..bb9f2f14f 100644
--- a/image/clientset/versioned/typed/image/v1/fake/fake_imagestream.go
+++ b/image/clientset/versioned/typed/image/v1/fake/fake_imagestream.go
@@ -3,188 +3,44 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
+ context "context"
v1 "github.com/openshift/api/image/v1"
imagev1 "github.com/openshift/client-go/image/applyconfigurations/image/v1"
+ typedimagev1 "github.com/openshift/client-go/image/clientset/versioned/typed/image/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
+ gentype "k8s.io/client-go/gentype"
testing "k8s.io/client-go/testing"
)
-// FakeImageStreams implements ImageStreamInterface
-type FakeImageStreams struct {
+// fakeImageStreams implements ImageStreamInterface
+type fakeImageStreams struct {
+ *gentype.FakeClientWithListAndApply[*v1.ImageStream, *v1.ImageStreamList, *imagev1.ImageStreamApplyConfiguration]
Fake *FakeImageV1
- ns string
}
-var imagestreamsResource = v1.SchemeGroupVersion.WithResource("imagestreams")
-
-var imagestreamsKind = v1.SchemeGroupVersion.WithKind("ImageStream")
-
-// Get takes name of the imageStream, and returns the corresponding imageStream object, and an error if there is any.
-func (c *FakeImageStreams) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ImageStream, err error) {
- emptyResult := &v1.ImageStream{}
- obj, err := c.Fake.
- Invokes(testing.NewGetActionWithOptions(imagestreamsResource, c.ns, name, options), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ImageStream), err
-}
-
-// List takes label and field selectors, and returns the list of ImageStreams that match those selectors.
-func (c *FakeImageStreams) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ImageStreamList, err error) {
- emptyResult := &v1.ImageStreamList{}
- obj, err := c.Fake.
- Invokes(testing.NewListActionWithOptions(imagestreamsResource, imagestreamsKind, c.ns, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.ImageStreamList{ListMeta: obj.(*v1.ImageStreamList).ListMeta}
- for _, item := range obj.(*v1.ImageStreamList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested imageStreams.
-func (c *FakeImageStreams) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewWatchActionWithOptions(imagestreamsResource, c.ns, opts))
-
-}
-
-// Create takes the representation of a imageStream and creates it. Returns the server's representation of the imageStream, and an error, if there is any.
-func (c *FakeImageStreams) Create(ctx context.Context, imageStream *v1.ImageStream, opts metav1.CreateOptions) (result *v1.ImageStream, err error) {
- emptyResult := &v1.ImageStream{}
- obj, err := c.Fake.
- Invokes(testing.NewCreateActionWithOptions(imagestreamsResource, c.ns, imageStream, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ImageStream), err
-}
-
-// Update takes the representation of a imageStream and updates it. Returns the server's representation of the imageStream, and an error, if there is any.
-func (c *FakeImageStreams) Update(ctx context.Context, imageStream *v1.ImageStream, opts metav1.UpdateOptions) (result *v1.ImageStream, err error) {
- emptyResult := &v1.ImageStream{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateActionWithOptions(imagestreamsResource, c.ns, imageStream, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ImageStream), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeImageStreams) UpdateStatus(ctx context.Context, imageStream *v1.ImageStream, opts metav1.UpdateOptions) (result *v1.ImageStream, err error) {
- emptyResult := &v1.ImageStream{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateSubresourceActionWithOptions(imagestreamsResource, "status", c.ns, imageStream, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ImageStream), err
-}
-
-// Delete takes name of the imageStream and deletes it. Returns an error if one occurs.
-func (c *FakeImageStreams) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewDeleteActionWithOptions(imagestreamsResource, c.ns, name, opts), &v1.ImageStream{})
-
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeImageStreams) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewDeleteCollectionActionWithOptions(imagestreamsResource, c.ns, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.ImageStreamList{})
- return err
-}
-
-// Patch applies the patch and returns the patched imageStream.
-func (c *FakeImageStreams) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ImageStream, err error) {
- emptyResult := &v1.ImageStream{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(imagestreamsResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ImageStream), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied imageStream.
-func (c *FakeImageStreams) Apply(ctx context.Context, imageStream *imagev1.ImageStreamApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ImageStream, err error) {
- if imageStream == nil {
- return nil, fmt.Errorf("imageStream provided to Apply must not be nil")
- }
- data, err := json.Marshal(imageStream)
- if err != nil {
- return nil, err
- }
- name := imageStream.Name
- if name == nil {
- return nil, fmt.Errorf("imageStream.Name must be provided to Apply")
- }
- emptyResult := &v1.ImageStream{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(imagestreamsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ImageStream), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeImageStreams) ApplyStatus(ctx context.Context, imageStream *imagev1.ImageStreamApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ImageStream, err error) {
- if imageStream == nil {
- return nil, fmt.Errorf("imageStream provided to Apply must not be nil")
- }
- data, err := json.Marshal(imageStream)
- if err != nil {
- return nil, err
- }
- name := imageStream.Name
- if name == nil {
- return nil, fmt.Errorf("imageStream.Name must be provided to Apply")
- }
- emptyResult := &v1.ImageStream{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(imagestreamsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
-
- if obj == nil {
- return emptyResult, err
+func newFakeImageStreams(fake *FakeImageV1, namespace string) typedimagev1.ImageStreamInterface {
+ return &fakeImageStreams{
+ gentype.NewFakeClientWithListAndApply[*v1.ImageStream, *v1.ImageStreamList, *imagev1.ImageStreamApplyConfiguration](
+ fake.Fake,
+ namespace,
+ v1.SchemeGroupVersion.WithResource("imagestreams"),
+ v1.SchemeGroupVersion.WithKind("ImageStream"),
+ func() *v1.ImageStream { return &v1.ImageStream{} },
+ func() *v1.ImageStreamList { return &v1.ImageStreamList{} },
+ func(dst, src *v1.ImageStreamList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.ImageStreamList) []*v1.ImageStream { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.ImageStreamList, items []*v1.ImageStream) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.ImageStream), err
}
// Secrets takes name of the imageStream, and returns the corresponding secretList object, and an error if there is any.
-func (c *FakeImageStreams) Secrets(ctx context.Context, imageStreamName string, options metav1.GetOptions) (result *v1.SecretList, err error) {
+func (c *fakeImageStreams) Secrets(ctx context.Context, imageStreamName string, options metav1.GetOptions) (result *v1.SecretList, err error) {
emptyResult := &v1.SecretList{}
obj, err := c.Fake.
- Invokes(testing.NewGetSubresourceActionWithOptions(imagestreamsResource, c.ns, "secrets", imageStreamName, options), emptyResult)
+ Invokes(testing.NewGetSubresourceActionWithOptions(c.Resource(), c.Namespace(), "secrets", imageStreamName, options), emptyResult)
if obj == nil {
return emptyResult, err
@@ -193,10 +49,10 @@ func (c *FakeImageStreams) Secrets(ctx context.Context, imageStreamName string,
}
// Layers takes name of the imageStream, and returns the corresponding imageStreamLayers object, and an error if there is any.
-func (c *FakeImageStreams) Layers(ctx context.Context, imageStreamName string, options metav1.GetOptions) (result *v1.ImageStreamLayers, err error) {
+func (c *fakeImageStreams) Layers(ctx context.Context, imageStreamName string, options metav1.GetOptions) (result *v1.ImageStreamLayers, err error) {
emptyResult := &v1.ImageStreamLayers{}
obj, err := c.Fake.
- Invokes(testing.NewGetSubresourceActionWithOptions(imagestreamsResource, c.ns, "layers", imageStreamName, options), emptyResult)
+ Invokes(testing.NewGetSubresourceActionWithOptions(c.Resource(), c.Namespace(), "layers", imageStreamName, options), emptyResult)
if obj == nil {
return emptyResult, err
diff --git a/image/clientset/versioned/typed/image/v1/fake/fake_imagestreamimage.go b/image/clientset/versioned/typed/image/v1/fake/fake_imagestreamimage.go
index 4b3949eb5..d95827392 100644
--- a/image/clientset/versioned/typed/image/v1/fake/fake_imagestreamimage.go
+++ b/image/clientset/versioned/typed/image/v1/fake/fake_imagestreamimage.go
@@ -3,31 +3,26 @@
package fake
import (
- "context"
-
v1 "github.com/openshift/api/image/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- testing "k8s.io/client-go/testing"
+ imagev1 "github.com/openshift/client-go/image/clientset/versioned/typed/image/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeImageStreamImages implements ImageStreamImageInterface
-type FakeImageStreamImages struct {
+// fakeImageStreamImages implements ImageStreamImageInterface
+type fakeImageStreamImages struct {
+ *gentype.FakeClient[*v1.ImageStreamImage]
Fake *FakeImageV1
- ns string
}
-var imagestreamimagesResource = v1.SchemeGroupVersion.WithResource("imagestreamimages")
-
-var imagestreamimagesKind = v1.SchemeGroupVersion.WithKind("ImageStreamImage")
-
-// Get takes name of the imageStreamImage, and returns the corresponding imageStreamImage object, and an error if there is any.
-func (c *FakeImageStreamImages) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ImageStreamImage, err error) {
- emptyResult := &v1.ImageStreamImage{}
- obj, err := c.Fake.
- Invokes(testing.NewGetActionWithOptions(imagestreamimagesResource, c.ns, name, options), emptyResult)
-
- if obj == nil {
- return emptyResult, err
+func newFakeImageStreamImages(fake *FakeImageV1, namespace string) imagev1.ImageStreamImageInterface {
+ return &fakeImageStreamImages{
+ gentype.NewFakeClient[*v1.ImageStreamImage](
+ fake.Fake,
+ namespace,
+ v1.SchemeGroupVersion.WithResource("imagestreamimages"),
+ v1.SchemeGroupVersion.WithKind("ImageStreamImage"),
+ func() *v1.ImageStreamImage { return &v1.ImageStreamImage{} },
+ ),
+ fake,
}
- return obj.(*v1.ImageStreamImage), err
}
diff --git a/image/clientset/versioned/typed/image/v1/fake/fake_imagestreamimport.go b/image/clientset/versioned/typed/image/v1/fake/fake_imagestreamimport.go
index 07fea7563..be51c112d 100644
--- a/image/clientset/versioned/typed/image/v1/fake/fake_imagestreamimport.go
+++ b/image/clientset/versioned/typed/image/v1/fake/fake_imagestreamimport.go
@@ -3,31 +3,26 @@
package fake
import (
- "context"
-
v1 "github.com/openshift/api/image/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- testing "k8s.io/client-go/testing"
+ imagev1 "github.com/openshift/client-go/image/clientset/versioned/typed/image/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeImageStreamImports implements ImageStreamImportInterface
-type FakeImageStreamImports struct {
+// fakeImageStreamImports implements ImageStreamImportInterface
+type fakeImageStreamImports struct {
+ *gentype.FakeClient[*v1.ImageStreamImport]
Fake *FakeImageV1
- ns string
}
-var imagestreamimportsResource = v1.SchemeGroupVersion.WithResource("imagestreamimports")
-
-var imagestreamimportsKind = v1.SchemeGroupVersion.WithKind("ImageStreamImport")
-
-// Create takes the representation of a imageStreamImport and creates it. Returns the server's representation of the imageStreamImport, and an error, if there is any.
-func (c *FakeImageStreamImports) Create(ctx context.Context, imageStreamImport *v1.ImageStreamImport, opts metav1.CreateOptions) (result *v1.ImageStreamImport, err error) {
- emptyResult := &v1.ImageStreamImport{}
- obj, err := c.Fake.
- Invokes(testing.NewCreateActionWithOptions(imagestreamimportsResource, c.ns, imageStreamImport, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
+func newFakeImageStreamImports(fake *FakeImageV1, namespace string) imagev1.ImageStreamImportInterface {
+ return &fakeImageStreamImports{
+ gentype.NewFakeClient[*v1.ImageStreamImport](
+ fake.Fake,
+ namespace,
+ v1.SchemeGroupVersion.WithResource("imagestreamimports"),
+ v1.SchemeGroupVersion.WithKind("ImageStreamImport"),
+ func() *v1.ImageStreamImport { return &v1.ImageStreamImport{} },
+ ),
+ fake,
}
- return obj.(*v1.ImageStreamImport), err
}
diff --git a/image/clientset/versioned/typed/image/v1/fake/fake_imagestreammapping.go b/image/clientset/versioned/typed/image/v1/fake/fake_imagestreammapping.go
index 74c405d76..66648fe1e 100644
--- a/image/clientset/versioned/typed/image/v1/fake/fake_imagestreammapping.go
+++ b/image/clientset/versioned/typed/image/v1/fake/fake_imagestreammapping.go
@@ -3,55 +3,40 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
+ context "context"
v1 "github.com/openshift/api/image/v1"
imagev1 "github.com/openshift/client-go/image/applyconfigurations/image/v1"
+ typedimagev1 "github.com/openshift/client-go/image/clientset/versioned/typed/image/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- types "k8s.io/apimachinery/pkg/types"
+ gentype "k8s.io/client-go/gentype"
testing "k8s.io/client-go/testing"
)
-// FakeImageStreamMappings implements ImageStreamMappingInterface
-type FakeImageStreamMappings struct {
+// fakeImageStreamMappings implements ImageStreamMappingInterface
+type fakeImageStreamMappings struct {
+ *gentype.FakeClientWithApply[*v1.ImageStreamMapping, *imagev1.ImageStreamMappingApplyConfiguration]
Fake *FakeImageV1
- ns string
}
-var imagestreammappingsResource = v1.SchemeGroupVersion.WithResource("imagestreammappings")
-
-var imagestreammappingsKind = v1.SchemeGroupVersion.WithKind("ImageStreamMapping")
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied imageStreamMapping.
-func (c *FakeImageStreamMappings) Apply(ctx context.Context, imageStreamMapping *imagev1.ImageStreamMappingApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ImageStreamMapping, err error) {
- if imageStreamMapping == nil {
- return nil, fmt.Errorf("imageStreamMapping provided to Apply must not be nil")
- }
- data, err := json.Marshal(imageStreamMapping)
- if err != nil {
- return nil, err
- }
- name := imageStreamMapping.Name
- if name == nil {
- return nil, fmt.Errorf("imageStreamMapping.Name must be provided to Apply")
- }
- emptyResult := &v1.ImageStreamMapping{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(imagestreammappingsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
-
- if obj == nil {
- return emptyResult, err
+func newFakeImageStreamMappings(fake *FakeImageV1, namespace string) typedimagev1.ImageStreamMappingInterface {
+ return &fakeImageStreamMappings{
+ gentype.NewFakeClientWithApply[*v1.ImageStreamMapping, *imagev1.ImageStreamMappingApplyConfiguration](
+ fake.Fake,
+ namespace,
+ v1.SchemeGroupVersion.WithResource("imagestreammappings"),
+ v1.SchemeGroupVersion.WithKind("ImageStreamMapping"),
+ func() *v1.ImageStreamMapping { return &v1.ImageStreamMapping{} },
+ ),
+ fake,
}
- return obj.(*v1.ImageStreamMapping), err
}
// Create takes the representation of a imageStreamMapping and creates it. Returns the server's representation of the status, and an error, if there is any.
-func (c *FakeImageStreamMappings) Create(ctx context.Context, imageStreamMapping *v1.ImageStreamMapping, opts metav1.CreateOptions) (result *metav1.Status, err error) {
+func (c *fakeImageStreamMappings) Create(ctx context.Context, imageStreamMapping *v1.ImageStreamMapping, opts metav1.CreateOptions) (result *metav1.Status, err error) {
emptyResult := &metav1.Status{}
obj, err := c.Fake.
- Invokes(testing.NewCreateActionWithOptions(imagestreammappingsResource, c.ns, imageStreamMapping, opts), emptyResult)
+ Invokes(testing.NewCreateActionWithOptions(c.Resource(), c.Namespace(), imageStreamMapping, opts), emptyResult)
if obj == nil {
return emptyResult, err
diff --git a/image/clientset/versioned/typed/image/v1/fake/fake_imagestreamtag.go b/image/clientset/versioned/typed/image/v1/fake/fake_imagestreamtag.go
index ddabe4bfd..13a101d4a 100644
--- a/image/clientset/versioned/typed/image/v1/fake/fake_imagestreamtag.go
+++ b/image/clientset/versioned/typed/image/v1/fake/fake_imagestreamtag.go
@@ -3,87 +3,32 @@
package fake
import (
- "context"
-
v1 "github.com/openshift/api/image/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- testing "k8s.io/client-go/testing"
+ imagev1 "github.com/openshift/client-go/image/clientset/versioned/typed/image/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeImageStreamTags implements ImageStreamTagInterface
-type FakeImageStreamTags struct {
+// fakeImageStreamTags implements ImageStreamTagInterface
+type fakeImageStreamTags struct {
+ *gentype.FakeClientWithList[*v1.ImageStreamTag, *v1.ImageStreamTagList]
Fake *FakeImageV1
- ns string
-}
-
-var imagestreamtagsResource = v1.SchemeGroupVersion.WithResource("imagestreamtags")
-
-var imagestreamtagsKind = v1.SchemeGroupVersion.WithKind("ImageStreamTag")
-
-// Get takes name of the imageStreamTag, and returns the corresponding imageStreamTag object, and an error if there is any.
-func (c *FakeImageStreamTags) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ImageStreamTag, err error) {
- emptyResult := &v1.ImageStreamTag{}
- obj, err := c.Fake.
- Invokes(testing.NewGetActionWithOptions(imagestreamtagsResource, c.ns, name, options), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ImageStreamTag), err
-}
-
-// List takes label and field selectors, and returns the list of ImageStreamTags that match those selectors.
-func (c *FakeImageStreamTags) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ImageStreamTagList, err error) {
- emptyResult := &v1.ImageStreamTagList{}
- obj, err := c.Fake.
- Invokes(testing.NewListActionWithOptions(imagestreamtagsResource, imagestreamtagsKind, c.ns, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.ImageStreamTagList{ListMeta: obj.(*v1.ImageStreamTagList).ListMeta}
- for _, item := range obj.(*v1.ImageStreamTagList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
}
-// Create takes the representation of a imageStreamTag and creates it. Returns the server's representation of the imageStreamTag, and an error, if there is any.
-func (c *FakeImageStreamTags) Create(ctx context.Context, imageStreamTag *v1.ImageStreamTag, opts metav1.CreateOptions) (result *v1.ImageStreamTag, err error) {
- emptyResult := &v1.ImageStreamTag{}
- obj, err := c.Fake.
- Invokes(testing.NewCreateActionWithOptions(imagestreamtagsResource, c.ns, imageStreamTag, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
+func newFakeImageStreamTags(fake *FakeImageV1, namespace string) imagev1.ImageStreamTagInterface {
+ return &fakeImageStreamTags{
+ gentype.NewFakeClientWithList[*v1.ImageStreamTag, *v1.ImageStreamTagList](
+ fake.Fake,
+ namespace,
+ v1.SchemeGroupVersion.WithResource("imagestreamtags"),
+ v1.SchemeGroupVersion.WithKind("ImageStreamTag"),
+ func() *v1.ImageStreamTag { return &v1.ImageStreamTag{} },
+ func() *v1.ImageStreamTagList { return &v1.ImageStreamTagList{} },
+ func(dst, src *v1.ImageStreamTagList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.ImageStreamTagList) []*v1.ImageStreamTag { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.ImageStreamTagList, items []*v1.ImageStreamTag) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.ImageStreamTag), err
-}
-
-// Update takes the representation of a imageStreamTag and updates it. Returns the server's representation of the imageStreamTag, and an error, if there is any.
-func (c *FakeImageStreamTags) Update(ctx context.Context, imageStreamTag *v1.ImageStreamTag, opts metav1.UpdateOptions) (result *v1.ImageStreamTag, err error) {
- emptyResult := &v1.ImageStreamTag{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateActionWithOptions(imagestreamtagsResource, c.ns, imageStreamTag, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ImageStreamTag), err
-}
-
-// Delete takes name of the imageStreamTag and deletes it. Returns an error if one occurs.
-func (c *FakeImageStreamTags) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewDeleteActionWithOptions(imagestreamtagsResource, c.ns, name, opts), &v1.ImageStreamTag{})
-
- return err
}
diff --git a/image/clientset/versioned/typed/image/v1/fake/fake_imagetag.go b/image/clientset/versioned/typed/image/v1/fake/fake_imagetag.go
index 06bd9b02c..24507fc6d 100644
--- a/image/clientset/versioned/typed/image/v1/fake/fake_imagetag.go
+++ b/image/clientset/versioned/typed/image/v1/fake/fake_imagetag.go
@@ -3,87 +3,30 @@
package fake
import (
- "context"
-
v1 "github.com/openshift/api/image/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- testing "k8s.io/client-go/testing"
+ imagev1 "github.com/openshift/client-go/image/clientset/versioned/typed/image/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeImageTags implements ImageTagInterface
-type FakeImageTags struct {
+// fakeImageTags implements ImageTagInterface
+type fakeImageTags struct {
+ *gentype.FakeClientWithList[*v1.ImageTag, *v1.ImageTagList]
Fake *FakeImageV1
- ns string
-}
-
-var imagetagsResource = v1.SchemeGroupVersion.WithResource("imagetags")
-
-var imagetagsKind = v1.SchemeGroupVersion.WithKind("ImageTag")
-
-// Get takes name of the imageTag, and returns the corresponding imageTag object, and an error if there is any.
-func (c *FakeImageTags) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ImageTag, err error) {
- emptyResult := &v1.ImageTag{}
- obj, err := c.Fake.
- Invokes(testing.NewGetActionWithOptions(imagetagsResource, c.ns, name, options), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ImageTag), err
-}
-
-// List takes label and field selectors, and returns the list of ImageTags that match those selectors.
-func (c *FakeImageTags) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ImageTagList, err error) {
- emptyResult := &v1.ImageTagList{}
- obj, err := c.Fake.
- Invokes(testing.NewListActionWithOptions(imagetagsResource, imagetagsKind, c.ns, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.ImageTagList{ListMeta: obj.(*v1.ImageTagList).ListMeta}
- for _, item := range obj.(*v1.ImageTagList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
}
-// Create takes the representation of a imageTag and creates it. Returns the server's representation of the imageTag, and an error, if there is any.
-func (c *FakeImageTags) Create(ctx context.Context, imageTag *v1.ImageTag, opts metav1.CreateOptions) (result *v1.ImageTag, err error) {
- emptyResult := &v1.ImageTag{}
- obj, err := c.Fake.
- Invokes(testing.NewCreateActionWithOptions(imagetagsResource, c.ns, imageTag, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
+func newFakeImageTags(fake *FakeImageV1, namespace string) imagev1.ImageTagInterface {
+ return &fakeImageTags{
+ gentype.NewFakeClientWithList[*v1.ImageTag, *v1.ImageTagList](
+ fake.Fake,
+ namespace,
+ v1.SchemeGroupVersion.WithResource("imagetags"),
+ v1.SchemeGroupVersion.WithKind("ImageTag"),
+ func() *v1.ImageTag { return &v1.ImageTag{} },
+ func() *v1.ImageTagList { return &v1.ImageTagList{} },
+ func(dst, src *v1.ImageTagList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.ImageTagList) []*v1.ImageTag { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.ImageTagList, items []*v1.ImageTag) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.ImageTag), err
-}
-
-// Update takes the representation of a imageTag and updates it. Returns the server's representation of the imageTag, and an error, if there is any.
-func (c *FakeImageTags) Update(ctx context.Context, imageTag *v1.ImageTag, opts metav1.UpdateOptions) (result *v1.ImageTag, err error) {
- emptyResult := &v1.ImageTag{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateActionWithOptions(imagetagsResource, c.ns, imageTag, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ImageTag), err
-}
-
-// Delete takes name of the imageTag and deletes it. Returns an error if one occurs.
-func (c *FakeImageTags) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewDeleteActionWithOptions(imagetagsResource, c.ns, name, opts), &v1.ImageTag{})
-
- return err
}
diff --git a/image/clientset/versioned/typed/image/v1/image.go b/image/clientset/versioned/typed/image/v1/image.go
index 5cf011812..6976e8deb 100644
--- a/image/clientset/versioned/typed/image/v1/image.go
+++ b/image/clientset/versioned/typed/image/v1/image.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/image/v1"
- imagev1 "github.com/openshift/client-go/image/applyconfigurations/image/v1"
+ imagev1 "github.com/openshift/api/image/v1"
+ applyconfigurationsimagev1 "github.com/openshift/client-go/image/applyconfigurations/image/v1"
scheme "github.com/openshift/client-go/image/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,32 +22,33 @@ type ImagesGetter interface {
// ImageInterface has methods to work with Image resources.
type ImageInterface interface {
- Create(ctx context.Context, image *v1.Image, opts metav1.CreateOptions) (*v1.Image, error)
- Update(ctx context.Context, image *v1.Image, opts metav1.UpdateOptions) (*v1.Image, error)
+ Create(ctx context.Context, image *imagev1.Image, opts metav1.CreateOptions) (*imagev1.Image, error)
+ Update(ctx context.Context, image *imagev1.Image, opts metav1.UpdateOptions) (*imagev1.Image, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Image, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.ImageList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*imagev1.Image, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*imagev1.ImageList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Image, err error)
- Apply(ctx context.Context, image *imagev1.ImageApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Image, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *imagev1.Image, err error)
+ Apply(ctx context.Context, image *applyconfigurationsimagev1.ImageApplyConfiguration, opts metav1.ApplyOptions) (result *imagev1.Image, err error)
ImageExpansion
}
// images implements ImageInterface
type images struct {
- *gentype.ClientWithListAndApply[*v1.Image, *v1.ImageList, *imagev1.ImageApplyConfiguration]
+ *gentype.ClientWithListAndApply[*imagev1.Image, *imagev1.ImageList, *applyconfigurationsimagev1.ImageApplyConfiguration]
}
// newImages returns a Images
func newImages(c *ImageV1Client) *images {
return &images{
- gentype.NewClientWithListAndApply[*v1.Image, *v1.ImageList, *imagev1.ImageApplyConfiguration](
+ gentype.NewClientWithListAndApply[*imagev1.Image, *imagev1.ImageList, *applyconfigurationsimagev1.ImageApplyConfiguration](
"images",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.Image { return &v1.Image{} },
- func() *v1.ImageList { return &v1.ImageList{} }),
+ func() *imagev1.Image { return &imagev1.Image{} },
+ func() *imagev1.ImageList { return &imagev1.ImageList{} },
+ ),
}
}
diff --git a/image/clientset/versioned/typed/image/v1/image_client.go b/image/clientset/versioned/typed/image/v1/image_client.go
index dfd147108..7c93797a5 100644
--- a/image/clientset/versioned/typed/image/v1/image_client.go
+++ b/image/clientset/versioned/typed/image/v1/image_client.go
@@ -3,10 +3,10 @@
package v1
import (
- "net/http"
+ http "net/http"
- v1 "github.com/openshift/api/image/v1"
- "github.com/openshift/client-go/image/clientset/versioned/scheme"
+ imagev1 "github.com/openshift/api/image/v1"
+ scheme "github.com/openshift/client-go/image/clientset/versioned/scheme"
rest "k8s.io/client-go/rest"
)
@@ -104,10 +104,10 @@ func New(c rest.Interface) *ImageV1Client {
}
func setConfigDefaults(config *rest.Config) error {
- gv := v1.SchemeGroupVersion
+ gv := imagev1.SchemeGroupVersion
config.GroupVersion = &gv
config.APIPath = "/apis"
- config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
+ config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion()
if config.UserAgent == "" {
config.UserAgent = rest.DefaultKubernetesUserAgent()
diff --git a/image/clientset/versioned/typed/image/v1/imagesignature.go b/image/clientset/versioned/typed/image/v1/imagesignature.go
index 8e643c924..a53b63c62 100644
--- a/image/clientset/versioned/typed/image/v1/imagesignature.go
+++ b/image/clientset/versioned/typed/image/v1/imagesignature.go
@@ -3,9 +3,9 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/image/v1"
+ imagev1 "github.com/openshift/api/image/v1"
scheme "github.com/openshift/client-go/image/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
gentype "k8s.io/client-go/gentype"
@@ -19,24 +19,25 @@ type ImageSignaturesGetter interface {
// ImageSignatureInterface has methods to work with ImageSignature resources.
type ImageSignatureInterface interface {
- Create(ctx context.Context, imageSignature *v1.ImageSignature, opts metav1.CreateOptions) (*v1.ImageSignature, error)
+ Create(ctx context.Context, imageSignature *imagev1.ImageSignature, opts metav1.CreateOptions) (*imagev1.ImageSignature, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
ImageSignatureExpansion
}
// imageSignatures implements ImageSignatureInterface
type imageSignatures struct {
- *gentype.Client[*v1.ImageSignature]
+ *gentype.Client[*imagev1.ImageSignature]
}
// newImageSignatures returns a ImageSignatures
func newImageSignatures(c *ImageV1Client) *imageSignatures {
return &imageSignatures{
- gentype.NewClient[*v1.ImageSignature](
+ gentype.NewClient[*imagev1.ImageSignature](
"imagesignatures",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.ImageSignature { return &v1.ImageSignature{} }),
+ func() *imagev1.ImageSignature { return &imagev1.ImageSignature{} },
+ ),
}
}
diff --git a/image/clientset/versioned/typed/image/v1/imagestream.go b/image/clientset/versioned/typed/image/v1/imagestream.go
index 49c841e2b..90fc21df2 100644
--- a/image/clientset/versioned/typed/image/v1/imagestream.go
+++ b/image/clientset/versioned/typed/image/v1/imagestream.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/image/v1"
- imagev1 "github.com/openshift/client-go/image/applyconfigurations/image/v1"
+ imagev1 "github.com/openshift/api/image/v1"
+ applyconfigurationsimagev1 "github.com/openshift/client-go/image/applyconfigurations/image/v1"
scheme "github.com/openshift/client-go/image/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,46 +22,47 @@ type ImageStreamsGetter interface {
// ImageStreamInterface has methods to work with ImageStream resources.
type ImageStreamInterface interface {
- Create(ctx context.Context, imageStream *v1.ImageStream, opts metav1.CreateOptions) (*v1.ImageStream, error)
- Update(ctx context.Context, imageStream *v1.ImageStream, opts metav1.UpdateOptions) (*v1.ImageStream, error)
+ Create(ctx context.Context, imageStream *imagev1.ImageStream, opts metav1.CreateOptions) (*imagev1.ImageStream, error)
+ Update(ctx context.Context, imageStream *imagev1.ImageStream, opts metav1.UpdateOptions) (*imagev1.ImageStream, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, imageStream *v1.ImageStream, opts metav1.UpdateOptions) (*v1.ImageStream, error)
+ UpdateStatus(ctx context.Context, imageStream *imagev1.ImageStream, opts metav1.UpdateOptions) (*imagev1.ImageStream, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ImageStream, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.ImageStreamList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*imagev1.ImageStream, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*imagev1.ImageStreamList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ImageStream, err error)
- Apply(ctx context.Context, imageStream *imagev1.ImageStreamApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ImageStream, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *imagev1.ImageStream, err error)
+ Apply(ctx context.Context, imageStream *applyconfigurationsimagev1.ImageStreamApplyConfiguration, opts metav1.ApplyOptions) (result *imagev1.ImageStream, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, imageStream *imagev1.ImageStreamApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ImageStream, err error)
- Secrets(ctx context.Context, imageStreamName string, options metav1.GetOptions) (*v1.SecretList, error)
- Layers(ctx context.Context, imageStreamName string, options metav1.GetOptions) (*v1.ImageStreamLayers, error)
+ ApplyStatus(ctx context.Context, imageStream *applyconfigurationsimagev1.ImageStreamApplyConfiguration, opts metav1.ApplyOptions) (result *imagev1.ImageStream, err error)
+ Secrets(ctx context.Context, imageStreamName string, options metav1.GetOptions) (*imagev1.SecretList, error)
+ Layers(ctx context.Context, imageStreamName string, options metav1.GetOptions) (*imagev1.ImageStreamLayers, error)
ImageStreamExpansion
}
// imageStreams implements ImageStreamInterface
type imageStreams struct {
- *gentype.ClientWithListAndApply[*v1.ImageStream, *v1.ImageStreamList, *imagev1.ImageStreamApplyConfiguration]
+ *gentype.ClientWithListAndApply[*imagev1.ImageStream, *imagev1.ImageStreamList, *applyconfigurationsimagev1.ImageStreamApplyConfiguration]
}
// newImageStreams returns a ImageStreams
func newImageStreams(c *ImageV1Client, namespace string) *imageStreams {
return &imageStreams{
- gentype.NewClientWithListAndApply[*v1.ImageStream, *v1.ImageStreamList, *imagev1.ImageStreamApplyConfiguration](
+ gentype.NewClientWithListAndApply[*imagev1.ImageStream, *imagev1.ImageStreamList, *applyconfigurationsimagev1.ImageStreamApplyConfiguration](
"imagestreams",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
- func() *v1.ImageStream { return &v1.ImageStream{} },
- func() *v1.ImageStreamList { return &v1.ImageStreamList{} }),
+ func() *imagev1.ImageStream { return &imagev1.ImageStream{} },
+ func() *imagev1.ImageStreamList { return &imagev1.ImageStreamList{} },
+ ),
}
}
-// Secrets takes name of the imageStream, and returns the corresponding v1.SecretList object, and an error if there is any.
-func (c *imageStreams) Secrets(ctx context.Context, imageStreamName string, options metav1.GetOptions) (result *v1.SecretList, err error) {
- result = &v1.SecretList{}
+// Secrets takes name of the imageStream, and returns the corresponding imagev1.SecretList object, and an error if there is any.
+func (c *imageStreams) Secrets(ctx context.Context, imageStreamName string, options metav1.GetOptions) (result *imagev1.SecretList, err error) {
+ result = &imagev1.SecretList{}
err = c.GetClient().Get().
Namespace(c.GetNamespace()).
Resource("imagestreams").
@@ -73,9 +74,9 @@ func (c *imageStreams) Secrets(ctx context.Context, imageStreamName string, opti
return
}
-// Layers takes name of the imageStream, and returns the corresponding v1.ImageStreamLayers object, and an error if there is any.
-func (c *imageStreams) Layers(ctx context.Context, imageStreamName string, options metav1.GetOptions) (result *v1.ImageStreamLayers, err error) {
- result = &v1.ImageStreamLayers{}
+// Layers takes name of the imageStream, and returns the corresponding imagev1.ImageStreamLayers object, and an error if there is any.
+func (c *imageStreams) Layers(ctx context.Context, imageStreamName string, options metav1.GetOptions) (result *imagev1.ImageStreamLayers, err error) {
+ result = &imagev1.ImageStreamLayers{}
err = c.GetClient().Get().
Namespace(c.GetNamespace()).
Resource("imagestreams").
diff --git a/image/clientset/versioned/typed/image/v1/imagestreamimage.go b/image/clientset/versioned/typed/image/v1/imagestreamimage.go
index 947240b12..ea329220b 100644
--- a/image/clientset/versioned/typed/image/v1/imagestreamimage.go
+++ b/image/clientset/versioned/typed/image/v1/imagestreamimage.go
@@ -3,11 +3,11 @@
package v1
import (
- "context"
+ context "context"
imagev1 "github.com/openshift/api/image/v1"
scheme "github.com/openshift/client-go/image/clientset/versioned/scheme"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
gentype "k8s.io/client-go/gentype"
)
@@ -19,7 +19,7 @@ type ImageStreamImagesGetter interface {
// ImageStreamImageInterface has methods to work with ImageStreamImage resources.
type ImageStreamImageInterface interface {
- Get(ctx context.Context, name string, opts v1.GetOptions) (*imagev1.ImageStreamImage, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*imagev1.ImageStreamImage, error)
ImageStreamImageExpansion
}
@@ -36,6 +36,7 @@ func newImageStreamImages(c *ImageV1Client, namespace string) *imageStreamImages
c.RESTClient(),
scheme.ParameterCodec,
namespace,
- func() *imagev1.ImageStreamImage { return &imagev1.ImageStreamImage{} }),
+ func() *imagev1.ImageStreamImage { return &imagev1.ImageStreamImage{} },
+ ),
}
}
diff --git a/image/clientset/versioned/typed/image/v1/imagestreamimport.go b/image/clientset/versioned/typed/image/v1/imagestreamimport.go
index 730bff723..7fbd420a4 100644
--- a/image/clientset/versioned/typed/image/v1/imagestreamimport.go
+++ b/image/clientset/versioned/typed/image/v1/imagestreamimport.go
@@ -3,9 +3,9 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/image/v1"
+ imagev1 "github.com/openshift/api/image/v1"
scheme "github.com/openshift/client-go/image/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
gentype "k8s.io/client-go/gentype"
@@ -19,23 +19,24 @@ type ImageStreamImportsGetter interface {
// ImageStreamImportInterface has methods to work with ImageStreamImport resources.
type ImageStreamImportInterface interface {
- Create(ctx context.Context, imageStreamImport *v1.ImageStreamImport, opts metav1.CreateOptions) (*v1.ImageStreamImport, error)
+ Create(ctx context.Context, imageStreamImport *imagev1.ImageStreamImport, opts metav1.CreateOptions) (*imagev1.ImageStreamImport, error)
ImageStreamImportExpansion
}
// imageStreamImports implements ImageStreamImportInterface
type imageStreamImports struct {
- *gentype.Client[*v1.ImageStreamImport]
+ *gentype.Client[*imagev1.ImageStreamImport]
}
// newImageStreamImports returns a ImageStreamImports
func newImageStreamImports(c *ImageV1Client, namespace string) *imageStreamImports {
return &imageStreamImports{
- gentype.NewClient[*v1.ImageStreamImport](
+ gentype.NewClient[*imagev1.ImageStreamImport](
"imagestreamimports",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
- func() *v1.ImageStreamImport { return &v1.ImageStreamImport{} }),
+ func() *imagev1.ImageStreamImport { return &imagev1.ImageStreamImport{} },
+ ),
}
}
diff --git a/image/clientset/versioned/typed/image/v1/imagestreammapping.go b/image/clientset/versioned/typed/image/v1/imagestreammapping.go
index 840553797..eae9d77df 100644
--- a/image/clientset/versioned/typed/image/v1/imagestreammapping.go
+++ b/image/clientset/versioned/typed/image/v1/imagestreammapping.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- imagev1 "github.com/openshift/api/image/v1"
- v1 "github.com/openshift/client-go/image/applyconfigurations/image/v1"
+ apiimagev1 "github.com/openshift/api/image/v1"
+ imagev1 "github.com/openshift/client-go/image/applyconfigurations/image/v1"
scheme "github.com/openshift/client-go/image/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
gentype "k8s.io/client-go/gentype"
@@ -20,31 +20,32 @@ type ImageStreamMappingsGetter interface {
// ImageStreamMappingInterface has methods to work with ImageStreamMapping resources.
type ImageStreamMappingInterface interface {
- Apply(ctx context.Context, imageStreamMapping *v1.ImageStreamMappingApplyConfiguration, opts metav1.ApplyOptions) (result *imagev1.ImageStreamMapping, err error)
- Create(ctx context.Context, imageStreamMapping *imagev1.ImageStreamMapping, opts metav1.CreateOptions) (*metav1.Status, error)
+ Apply(ctx context.Context, imageStreamMapping *imagev1.ImageStreamMappingApplyConfiguration, opts metav1.ApplyOptions) (result *apiimagev1.ImageStreamMapping, err error)
+ Create(ctx context.Context, imageStreamMapping *apiimagev1.ImageStreamMapping, opts metav1.CreateOptions) (*metav1.Status, error)
ImageStreamMappingExpansion
}
// imageStreamMappings implements ImageStreamMappingInterface
type imageStreamMappings struct {
- *gentype.ClientWithApply[*imagev1.ImageStreamMapping, *v1.ImageStreamMappingApplyConfiguration]
+ *gentype.ClientWithApply[*apiimagev1.ImageStreamMapping, *imagev1.ImageStreamMappingApplyConfiguration]
}
// newImageStreamMappings returns a ImageStreamMappings
func newImageStreamMappings(c *ImageV1Client, namespace string) *imageStreamMappings {
return &imageStreamMappings{
- gentype.NewClientWithApply[*imagev1.ImageStreamMapping, *v1.ImageStreamMappingApplyConfiguration](
+ gentype.NewClientWithApply[*apiimagev1.ImageStreamMapping, *imagev1.ImageStreamMappingApplyConfiguration](
"imagestreammappings",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
- func() *imagev1.ImageStreamMapping { return &imagev1.ImageStreamMapping{} }),
+ func() *apiimagev1.ImageStreamMapping { return &apiimagev1.ImageStreamMapping{} },
+ ),
}
}
// Create takes the representation of a imageStreamMapping and creates it. Returns the server's representation of the status, and an error, if there is any.
-func (c *imageStreamMappings) Create(ctx context.Context, imageStreamMapping *imagev1.ImageStreamMapping, opts metav1.CreateOptions) (result *metav1.Status, err error) {
+func (c *imageStreamMappings) Create(ctx context.Context, imageStreamMapping *apiimagev1.ImageStreamMapping, opts metav1.CreateOptions) (result *metav1.Status, err error) {
result = &metav1.Status{}
err = c.GetClient().Post().
Namespace(c.GetNamespace()).
diff --git a/image/clientset/versioned/typed/image/v1/imagestreamtag.go b/image/clientset/versioned/typed/image/v1/imagestreamtag.go
index 8029bc15d..2f09ab86c 100644
--- a/image/clientset/versioned/typed/image/v1/imagestreamtag.go
+++ b/image/clientset/versioned/typed/image/v1/imagestreamtag.go
@@ -3,9 +3,9 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/image/v1"
+ imagev1 "github.com/openshift/api/image/v1"
scheme "github.com/openshift/client-go/image/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
gentype "k8s.io/client-go/gentype"
@@ -19,28 +19,29 @@ type ImageStreamTagsGetter interface {
// ImageStreamTagInterface has methods to work with ImageStreamTag resources.
type ImageStreamTagInterface interface {
- Create(ctx context.Context, imageStreamTag *v1.ImageStreamTag, opts metav1.CreateOptions) (*v1.ImageStreamTag, error)
- Update(ctx context.Context, imageStreamTag *v1.ImageStreamTag, opts metav1.UpdateOptions) (*v1.ImageStreamTag, error)
+ Create(ctx context.Context, imageStreamTag *imagev1.ImageStreamTag, opts metav1.CreateOptions) (*imagev1.ImageStreamTag, error)
+ Update(ctx context.Context, imageStreamTag *imagev1.ImageStreamTag, opts metav1.UpdateOptions) (*imagev1.ImageStreamTag, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ImageStreamTag, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.ImageStreamTagList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*imagev1.ImageStreamTag, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*imagev1.ImageStreamTagList, error)
ImageStreamTagExpansion
}
// imageStreamTags implements ImageStreamTagInterface
type imageStreamTags struct {
- *gentype.ClientWithList[*v1.ImageStreamTag, *v1.ImageStreamTagList]
+ *gentype.ClientWithList[*imagev1.ImageStreamTag, *imagev1.ImageStreamTagList]
}
// newImageStreamTags returns a ImageStreamTags
func newImageStreamTags(c *ImageV1Client, namespace string) *imageStreamTags {
return &imageStreamTags{
- gentype.NewClientWithList[*v1.ImageStreamTag, *v1.ImageStreamTagList](
+ gentype.NewClientWithList[*imagev1.ImageStreamTag, *imagev1.ImageStreamTagList](
"imagestreamtags",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
- func() *v1.ImageStreamTag { return &v1.ImageStreamTag{} },
- func() *v1.ImageStreamTagList { return &v1.ImageStreamTagList{} }),
+ func() *imagev1.ImageStreamTag { return &imagev1.ImageStreamTag{} },
+ func() *imagev1.ImageStreamTagList { return &imagev1.ImageStreamTagList{} },
+ ),
}
}
diff --git a/image/clientset/versioned/typed/image/v1/imagetag.go b/image/clientset/versioned/typed/image/v1/imagetag.go
index f56c8b804..1d69b558d 100644
--- a/image/clientset/versioned/typed/image/v1/imagetag.go
+++ b/image/clientset/versioned/typed/image/v1/imagetag.go
@@ -3,9 +3,9 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/image/v1"
+ imagev1 "github.com/openshift/api/image/v1"
scheme "github.com/openshift/client-go/image/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
gentype "k8s.io/client-go/gentype"
@@ -19,28 +19,29 @@ type ImageTagsGetter interface {
// ImageTagInterface has methods to work with ImageTag resources.
type ImageTagInterface interface {
- Create(ctx context.Context, imageTag *v1.ImageTag, opts metav1.CreateOptions) (*v1.ImageTag, error)
- Update(ctx context.Context, imageTag *v1.ImageTag, opts metav1.UpdateOptions) (*v1.ImageTag, error)
+ Create(ctx context.Context, imageTag *imagev1.ImageTag, opts metav1.CreateOptions) (*imagev1.ImageTag, error)
+ Update(ctx context.Context, imageTag *imagev1.ImageTag, opts metav1.UpdateOptions) (*imagev1.ImageTag, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ImageTag, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.ImageTagList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*imagev1.ImageTag, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*imagev1.ImageTagList, error)
ImageTagExpansion
}
// imageTags implements ImageTagInterface
type imageTags struct {
- *gentype.ClientWithList[*v1.ImageTag, *v1.ImageTagList]
+ *gentype.ClientWithList[*imagev1.ImageTag, *imagev1.ImageTagList]
}
// newImageTags returns a ImageTags
func newImageTags(c *ImageV1Client, namespace string) *imageTags {
return &imageTags{
- gentype.NewClientWithList[*v1.ImageTag, *v1.ImageTagList](
+ gentype.NewClientWithList[*imagev1.ImageTag, *imagev1.ImageTagList](
"imagetags",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
- func() *v1.ImageTag { return &v1.ImageTag{} },
- func() *v1.ImageTagList { return &v1.ImageTagList{} }),
+ func() *imagev1.ImageTag { return &imagev1.ImageTag{} },
+ func() *imagev1.ImageTagList { return &imagev1.ImageTagList{} },
+ ),
}
}
diff --git a/image/informers/externalversions/generic.go b/image/informers/externalversions/generic.go
index 55f59dede..2f1bda6d8 100644
--- a/image/informers/externalversions/generic.go
+++ b/image/informers/externalversions/generic.go
@@ -3,7 +3,7 @@
package externalversions
import (
- "fmt"
+ fmt "fmt"
v1 "github.com/openshift/api/image/v1"
schema "k8s.io/apimachinery/pkg/runtime/schema"
diff --git a/image/informers/externalversions/image/v1/image.go b/image/informers/externalversions/image/v1/image.go
index ee2d0a706..63cf355ff 100644
--- a/image/informers/externalversions/image/v1/image.go
+++ b/image/informers/externalversions/image/v1/image.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- imagev1 "github.com/openshift/api/image/v1"
+ apiimagev1 "github.com/openshift/api/image/v1"
versioned "github.com/openshift/client-go/image/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/image/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/image/listers/image/v1"
+ imagev1 "github.com/openshift/client-go/image/listers/image/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// Images.
type ImageInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.ImageLister
+ Lister() imagev1.ImageLister
}
type imageInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredImageInformer(client versioned.Interface, resyncPeriod time.Dura
return client.ImageV1().Images().Watch(context.TODO(), options)
},
},
- &imagev1.Image{},
+ &apiimagev1.Image{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *imageInformer) defaultInformer(client versioned.Interface, resyncPeriod
}
func (f *imageInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&imagev1.Image{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiimagev1.Image{}, f.defaultInformer)
}
-func (f *imageInformer) Lister() v1.ImageLister {
- return v1.NewImageLister(f.Informer().GetIndexer())
+func (f *imageInformer) Lister() imagev1.ImageLister {
+ return imagev1.NewImageLister(f.Informer().GetIndexer())
}
diff --git a/image/informers/externalversions/image/v1/imagestream.go b/image/informers/externalversions/image/v1/imagestream.go
index 4a94cc5c7..5c2c8295a 100644
--- a/image/informers/externalversions/image/v1/imagestream.go
+++ b/image/informers/externalversions/image/v1/imagestream.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- imagev1 "github.com/openshift/api/image/v1"
+ apiimagev1 "github.com/openshift/api/image/v1"
versioned "github.com/openshift/client-go/image/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/image/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/image/listers/image/v1"
+ imagev1 "github.com/openshift/client-go/image/listers/image/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// ImageStreams.
type ImageStreamInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.ImageStreamLister
+ Lister() imagev1.ImageStreamLister
}
type imageStreamInformer struct {
@@ -55,7 +55,7 @@ func NewFilteredImageStreamInformer(client versioned.Interface, namespace string
return client.ImageV1().ImageStreams(namespace).Watch(context.TODO(), options)
},
},
- &imagev1.ImageStream{},
+ &apiimagev1.ImageStream{},
resyncPeriod,
indexers,
)
@@ -66,9 +66,9 @@ func (f *imageStreamInformer) defaultInformer(client versioned.Interface, resync
}
func (f *imageStreamInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&imagev1.ImageStream{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiimagev1.ImageStream{}, f.defaultInformer)
}
-func (f *imageStreamInformer) Lister() v1.ImageStreamLister {
- return v1.NewImageStreamLister(f.Informer().GetIndexer())
+func (f *imageStreamInformer) Lister() imagev1.ImageStreamLister {
+ return imagev1.NewImageStreamLister(f.Informer().GetIndexer())
}
diff --git a/image/listers/image/v1/image.go b/image/listers/image/v1/image.go
index 1a4cb748a..9ac1044d9 100644
--- a/image/listers/image/v1/image.go
+++ b/image/listers/image/v1/image.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/image/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ imagev1 "github.com/openshift/api/image/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ImageLister helps list Images.
@@ -14,19 +14,19 @@ import (
type ImageLister interface {
// List lists all Images in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.Image, err error)
+ List(selector labels.Selector) (ret []*imagev1.Image, err error)
// Get retrieves the Image from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.Image, error)
+ Get(name string) (*imagev1.Image, error)
ImageListerExpansion
}
// imageLister implements the ImageLister interface.
type imageLister struct {
- listers.ResourceIndexer[*v1.Image]
+ listers.ResourceIndexer[*imagev1.Image]
}
// NewImageLister returns a new ImageLister.
func NewImageLister(indexer cache.Indexer) ImageLister {
- return &imageLister{listers.New[*v1.Image](indexer, v1.Resource("image"))}
+ return &imageLister{listers.New[*imagev1.Image](indexer, imagev1.Resource("image"))}
}
diff --git a/image/listers/image/v1/imagestream.go b/image/listers/image/v1/imagestream.go
index b2a567c55..e9f147450 100644
--- a/image/listers/image/v1/imagestream.go
+++ b/image/listers/image/v1/imagestream.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/image/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ imagev1 "github.com/openshift/api/image/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ImageStreamLister helps list ImageStreams.
@@ -14,7 +14,7 @@ import (
type ImageStreamLister interface {
// List lists all ImageStreams in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.ImageStream, err error)
+ List(selector labels.Selector) (ret []*imagev1.ImageStream, err error)
// ImageStreams returns an object that can list and get ImageStreams.
ImageStreams(namespace string) ImageStreamNamespaceLister
ImageStreamListerExpansion
@@ -22,17 +22,17 @@ type ImageStreamLister interface {
// imageStreamLister implements the ImageStreamLister interface.
type imageStreamLister struct {
- listers.ResourceIndexer[*v1.ImageStream]
+ listers.ResourceIndexer[*imagev1.ImageStream]
}
// NewImageStreamLister returns a new ImageStreamLister.
func NewImageStreamLister(indexer cache.Indexer) ImageStreamLister {
- return &imageStreamLister{listers.New[*v1.ImageStream](indexer, v1.Resource("imagestream"))}
+ return &imageStreamLister{listers.New[*imagev1.ImageStream](indexer, imagev1.Resource("imagestream"))}
}
// ImageStreams returns an object that can list and get ImageStreams.
func (s *imageStreamLister) ImageStreams(namespace string) ImageStreamNamespaceLister {
- return imageStreamNamespaceLister{listers.NewNamespaced[*v1.ImageStream](s.ResourceIndexer, namespace)}
+ return imageStreamNamespaceLister{listers.NewNamespaced[*imagev1.ImageStream](s.ResourceIndexer, namespace)}
}
// ImageStreamNamespaceLister helps list and get ImageStreams.
@@ -40,15 +40,15 @@ func (s *imageStreamLister) ImageStreams(namespace string) ImageStreamNamespaceL
type ImageStreamNamespaceLister interface {
// List lists all ImageStreams in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.ImageStream, err error)
+ List(selector labels.Selector) (ret []*imagev1.ImageStream, err error)
// Get retrieves the ImageStream from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.ImageStream, error)
+ Get(name string) (*imagev1.ImageStream, error)
ImageStreamNamespaceListerExpansion
}
// imageStreamNamespaceLister implements the ImageStreamNamespaceLister
// interface.
type imageStreamNamespaceLister struct {
- listers.ResourceIndexer[*v1.ImageStream]
+ listers.ResourceIndexer[*imagev1.ImageStream]
}
diff --git a/image/listers/image/v1/imagestreamtag.go b/image/listers/image/v1/imagestreamtag.go
index 1e227c220..5e7742850 100644
--- a/image/listers/image/v1/imagestreamtag.go
+++ b/image/listers/image/v1/imagestreamtag.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/image/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ imagev1 "github.com/openshift/api/image/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ImageStreamTagLister helps list ImageStreamTags.
@@ -14,7 +14,7 @@ import (
type ImageStreamTagLister interface {
// List lists all ImageStreamTags in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.ImageStreamTag, err error)
+ List(selector labels.Selector) (ret []*imagev1.ImageStreamTag, err error)
// ImageStreamTags returns an object that can list and get ImageStreamTags.
ImageStreamTags(namespace string) ImageStreamTagNamespaceLister
ImageStreamTagListerExpansion
@@ -22,17 +22,17 @@ type ImageStreamTagLister interface {
// imageStreamTagLister implements the ImageStreamTagLister interface.
type imageStreamTagLister struct {
- listers.ResourceIndexer[*v1.ImageStreamTag]
+ listers.ResourceIndexer[*imagev1.ImageStreamTag]
}
// NewImageStreamTagLister returns a new ImageStreamTagLister.
func NewImageStreamTagLister(indexer cache.Indexer) ImageStreamTagLister {
- return &imageStreamTagLister{listers.New[*v1.ImageStreamTag](indexer, v1.Resource("imagestreamtag"))}
+ return &imageStreamTagLister{listers.New[*imagev1.ImageStreamTag](indexer, imagev1.Resource("imagestreamtag"))}
}
// ImageStreamTags returns an object that can list and get ImageStreamTags.
func (s *imageStreamTagLister) ImageStreamTags(namespace string) ImageStreamTagNamespaceLister {
- return imageStreamTagNamespaceLister{listers.NewNamespaced[*v1.ImageStreamTag](s.ResourceIndexer, namespace)}
+ return imageStreamTagNamespaceLister{listers.NewNamespaced[*imagev1.ImageStreamTag](s.ResourceIndexer, namespace)}
}
// ImageStreamTagNamespaceLister helps list and get ImageStreamTags.
@@ -40,15 +40,15 @@ func (s *imageStreamTagLister) ImageStreamTags(namespace string) ImageStreamTagN
type ImageStreamTagNamespaceLister interface {
// List lists all ImageStreamTags in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.ImageStreamTag, err error)
+ List(selector labels.Selector) (ret []*imagev1.ImageStreamTag, err error)
// Get retrieves the ImageStreamTag from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.ImageStreamTag, error)
+ Get(name string) (*imagev1.ImageStreamTag, error)
ImageStreamTagNamespaceListerExpansion
}
// imageStreamTagNamespaceLister implements the ImageStreamTagNamespaceLister
// interface.
type imageStreamTagNamespaceLister struct {
- listers.ResourceIndexer[*v1.ImageStreamTag]
+ listers.ResourceIndexer[*imagev1.ImageStreamTag]
}
diff --git a/image/listers/image/v1/imagetag.go b/image/listers/image/v1/imagetag.go
index 8cb9dc0d9..511e2aae3 100644
--- a/image/listers/image/v1/imagetag.go
+++ b/image/listers/image/v1/imagetag.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/image/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ imagev1 "github.com/openshift/api/image/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ImageTagLister helps list ImageTags.
@@ -14,7 +14,7 @@ import (
type ImageTagLister interface {
// List lists all ImageTags in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.ImageTag, err error)
+ List(selector labels.Selector) (ret []*imagev1.ImageTag, err error)
// ImageTags returns an object that can list and get ImageTags.
ImageTags(namespace string) ImageTagNamespaceLister
ImageTagListerExpansion
@@ -22,17 +22,17 @@ type ImageTagLister interface {
// imageTagLister implements the ImageTagLister interface.
type imageTagLister struct {
- listers.ResourceIndexer[*v1.ImageTag]
+ listers.ResourceIndexer[*imagev1.ImageTag]
}
// NewImageTagLister returns a new ImageTagLister.
func NewImageTagLister(indexer cache.Indexer) ImageTagLister {
- return &imageTagLister{listers.New[*v1.ImageTag](indexer, v1.Resource("imagetag"))}
+ return &imageTagLister{listers.New[*imagev1.ImageTag](indexer, imagev1.Resource("imagetag"))}
}
// ImageTags returns an object that can list and get ImageTags.
func (s *imageTagLister) ImageTags(namespace string) ImageTagNamespaceLister {
- return imageTagNamespaceLister{listers.NewNamespaced[*v1.ImageTag](s.ResourceIndexer, namespace)}
+ return imageTagNamespaceLister{listers.NewNamespaced[*imagev1.ImageTag](s.ResourceIndexer, namespace)}
}
// ImageTagNamespaceLister helps list and get ImageTags.
@@ -40,15 +40,15 @@ func (s *imageTagLister) ImageTags(namespace string) ImageTagNamespaceLister {
type ImageTagNamespaceLister interface {
// List lists all ImageTags in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.ImageTag, err error)
+ List(selector labels.Selector) (ret []*imagev1.ImageTag, err error)
// Get retrieves the ImageTag from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.ImageTag, error)
+ Get(name string) (*imagev1.ImageTag, error)
ImageTagNamespaceListerExpansion
}
// imageTagNamespaceLister implements the ImageTagNamespaceLister
// interface.
type imageTagNamespaceLister struct {
- listers.ResourceIndexer[*v1.ImageTag]
+ listers.ResourceIndexer[*imagev1.ImageTag]
}
diff --git a/imageregistry/applyconfigurations/imageregistry/v1/azurenetworkaccess.go b/imageregistry/applyconfigurations/imageregistry/v1/azurenetworkaccess.go
index 91cade56c..b68361a67 100644
--- a/imageregistry/applyconfigurations/imageregistry/v1/azurenetworkaccess.go
+++ b/imageregistry/applyconfigurations/imageregistry/v1/azurenetworkaccess.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/imageregistry/v1"
+ imageregistryv1 "github.com/openshift/api/imageregistry/v1"
)
// AzureNetworkAccessApplyConfiguration represents a declarative configuration of the AzureNetworkAccess type for use
// with apply.
type AzureNetworkAccessApplyConfiguration struct {
- Type *v1.AzureNetworkAccessType `json:"type,omitempty"`
+ Type *imageregistryv1.AzureNetworkAccessType `json:"type,omitempty"`
Internal *AzureNetworkAccessInternalApplyConfiguration `json:"internal,omitempty"`
}
@@ -22,7 +22,7 @@ func AzureNetworkAccess() *AzureNetworkAccessApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *AzureNetworkAccessApplyConfiguration) WithType(value v1.AzureNetworkAccessType) *AzureNetworkAccessApplyConfiguration {
+func (b *AzureNetworkAccessApplyConfiguration) WithType(value imageregistryv1.AzureNetworkAccessType) *AzureNetworkAccessApplyConfiguration {
b.Type = &value
return b
}
diff --git a/imageregistry/applyconfigurations/imageregistry/v1/config.go b/imageregistry/applyconfigurations/imageregistry/v1/config.go
index 3bb051501..926bab638 100644
--- a/imageregistry/applyconfigurations/imageregistry/v1/config.go
+++ b/imageregistry/applyconfigurations/imageregistry/v1/config.go
@@ -3,21 +3,21 @@
package v1
import (
- apiimageregistryv1 "github.com/openshift/api/imageregistry/v1"
+ imageregistryv1 "github.com/openshift/api/imageregistry/v1"
internal "github.com/openshift/client-go/imageregistry/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ConfigApplyConfiguration represents a declarative configuration of the Config type for use
// with apply.
type ConfigApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *ImageRegistrySpecApplyConfiguration `json:"spec,omitempty"`
- Status *ImageRegistryStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *ImageRegistrySpecApplyConfiguration `json:"spec,omitempty"`
+ Status *ImageRegistryStatusApplyConfiguration `json:"status,omitempty"`
}
// Config constructs a declarative configuration of the Config type for use with
@@ -41,18 +41,18 @@ func Config(name string) *ConfigApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractConfig(config *apiimageregistryv1.Config, fieldManager string) (*ConfigApplyConfiguration, error) {
+func ExtractConfig(config *imageregistryv1.Config, fieldManager string) (*ConfigApplyConfiguration, error) {
return extractConfig(config, fieldManager, "")
}
// ExtractConfigStatus is the same as ExtractConfig except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractConfigStatus(config *apiimageregistryv1.Config, fieldManager string) (*ConfigApplyConfiguration, error) {
+func ExtractConfigStatus(config *imageregistryv1.Config, fieldManager string) (*ConfigApplyConfiguration, error) {
return extractConfig(config, fieldManager, "status")
}
-func extractConfig(config *apiimageregistryv1.Config, fieldManager string, subresource string) (*ConfigApplyConfiguration, error) {
+func extractConfig(config *imageregistryv1.Config, fieldManager string, subresource string) (*ConfigApplyConfiguration, error) {
b := &ConfigApplyConfiguration{}
err := managedfields.ExtractInto(config, internal.Parser().Type("com.github.openshift.api.imageregistry.v1.Config"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractConfig(config *apiimageregistryv1.Config, fieldManager string, subre
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ConfigApplyConfiguration) WithKind(value string) *ConfigApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *ConfigApplyConfiguration) WithKind(value string) *ConfigApplyConfigurat
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ConfigApplyConfiguration) WithAPIVersion(value string) *ConfigApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *ConfigApplyConfiguration) WithAPIVersion(value string) *ConfigApplyConf
// If called multiple times, the Name field is set to the value of the last call.
func (b *ConfigApplyConfiguration) WithName(value string) *ConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *ConfigApplyConfiguration) WithName(value string) *ConfigApplyConfigurat
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ConfigApplyConfiguration) WithGenerateName(value string) *ConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *ConfigApplyConfiguration) WithGenerateName(value string) *ConfigApplyCo
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ConfigApplyConfiguration) WithNamespace(value string) *ConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *ConfigApplyConfiguration) WithNamespace(value string) *ConfigApplyConfi
// If called multiple times, the UID field is set to the value of the last call.
func (b *ConfigApplyConfiguration) WithUID(value types.UID) *ConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *ConfigApplyConfiguration) WithUID(value types.UID) *ConfigApplyConfigur
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ConfigApplyConfiguration) WithResourceVersion(value string) *ConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *ConfigApplyConfiguration) WithResourceVersion(value string) *ConfigAppl
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ConfigApplyConfiguration) WithGeneration(value int64) *ConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *ConfigApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ConfigApplyConfiguration {
+func (b *ConfigApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *ConfigApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ConfigApplyConfiguration {
+func (b *ConfigApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *ConfigApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *Con
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ConfigApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *ConfigApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *
// overwriting an existing map entries in Labels field with the same key.
func (b *ConfigApplyConfiguration) WithLabels(entries map[string]string) *ConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *ConfigApplyConfiguration) WithLabels(entries map[string]string) *Config
// overwriting an existing map entries in Annotations field with the same key.
func (b *ConfigApplyConfiguration) WithAnnotations(entries map[string]string) *ConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *ConfigApplyConfiguration) WithAnnotations(entries map[string]string) *C
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *ConfigApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ConfigApplyConfiguration {
+func (b *ConfigApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *ConfigApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefere
func (b *ConfigApplyConfiguration) WithFinalizers(values ...string) *ConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *ConfigApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *ConfigApplyConfiguration) WithStatus(value *ImageRegistryStatusApplyCon
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ConfigApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/imageregistry/applyconfigurations/imageregistry/v1/encryptionalibaba.go b/imageregistry/applyconfigurations/imageregistry/v1/encryptionalibaba.go
index 1dd639b11..43701ed7d 100644
--- a/imageregistry/applyconfigurations/imageregistry/v1/encryptionalibaba.go
+++ b/imageregistry/applyconfigurations/imageregistry/v1/encryptionalibaba.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "github.com/openshift/api/imageregistry/v1"
+ imageregistryv1 "github.com/openshift/api/imageregistry/v1"
)
// EncryptionAlibabaApplyConfiguration represents a declarative configuration of the EncryptionAlibaba type for use
// with apply.
type EncryptionAlibabaApplyConfiguration struct {
- Method *v1.AlibabaEncryptionMethod `json:"method,omitempty"`
- KMS *KMSEncryptionAlibabaApplyConfiguration `json:"kms,omitempty"`
+ Method *imageregistryv1.AlibabaEncryptionMethod `json:"method,omitempty"`
+ KMS *KMSEncryptionAlibabaApplyConfiguration `json:"kms,omitempty"`
}
// EncryptionAlibabaApplyConfiguration constructs a declarative configuration of the EncryptionAlibaba type for use with
@@ -22,7 +22,7 @@ func EncryptionAlibaba() *EncryptionAlibabaApplyConfiguration {
// WithMethod sets the Method field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Method field is set to the value of the last call.
-func (b *EncryptionAlibabaApplyConfiguration) WithMethod(value v1.AlibabaEncryptionMethod) *EncryptionAlibabaApplyConfiguration {
+func (b *EncryptionAlibabaApplyConfiguration) WithMethod(value imageregistryv1.AlibabaEncryptionMethod) *EncryptionAlibabaApplyConfiguration {
b.Method = &value
return b
}
diff --git a/imageregistry/applyconfigurations/imageregistry/v1/imagepruner.go b/imageregistry/applyconfigurations/imageregistry/v1/imagepruner.go
index af669d0a7..8a2b01a57 100644
--- a/imageregistry/applyconfigurations/imageregistry/v1/imagepruner.go
+++ b/imageregistry/applyconfigurations/imageregistry/v1/imagepruner.go
@@ -3,21 +3,21 @@
package v1
import (
- apiimageregistryv1 "github.com/openshift/api/imageregistry/v1"
+ imageregistryv1 "github.com/openshift/api/imageregistry/v1"
internal "github.com/openshift/client-go/imageregistry/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ImagePrunerApplyConfiguration represents a declarative configuration of the ImagePruner type for use
// with apply.
type ImagePrunerApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *ImagePrunerSpecApplyConfiguration `json:"spec,omitempty"`
- Status *ImagePrunerStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *ImagePrunerSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *ImagePrunerStatusApplyConfiguration `json:"status,omitempty"`
}
// ImagePruner constructs a declarative configuration of the ImagePruner type for use with
@@ -41,18 +41,18 @@ func ImagePruner(name string) *ImagePrunerApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractImagePruner(imagePruner *apiimageregistryv1.ImagePruner, fieldManager string) (*ImagePrunerApplyConfiguration, error) {
+func ExtractImagePruner(imagePruner *imageregistryv1.ImagePruner, fieldManager string) (*ImagePrunerApplyConfiguration, error) {
return extractImagePruner(imagePruner, fieldManager, "")
}
// ExtractImagePrunerStatus is the same as ExtractImagePruner except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractImagePrunerStatus(imagePruner *apiimageregistryv1.ImagePruner, fieldManager string) (*ImagePrunerApplyConfiguration, error) {
+func ExtractImagePrunerStatus(imagePruner *imageregistryv1.ImagePruner, fieldManager string) (*ImagePrunerApplyConfiguration, error) {
return extractImagePruner(imagePruner, fieldManager, "status")
}
-func extractImagePruner(imagePruner *apiimageregistryv1.ImagePruner, fieldManager string, subresource string) (*ImagePrunerApplyConfiguration, error) {
+func extractImagePruner(imagePruner *imageregistryv1.ImagePruner, fieldManager string, subresource string) (*ImagePrunerApplyConfiguration, error) {
b := &ImagePrunerApplyConfiguration{}
err := managedfields.ExtractInto(imagePruner, internal.Parser().Type("com.github.openshift.api.imageregistry.v1.ImagePruner"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractImagePruner(imagePruner *apiimageregistryv1.ImagePruner, fieldManage
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ImagePrunerApplyConfiguration) WithKind(value string) *ImagePrunerApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *ImagePrunerApplyConfiguration) WithKind(value string) *ImagePrunerApply
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ImagePrunerApplyConfiguration) WithAPIVersion(value string) *ImagePrunerApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *ImagePrunerApplyConfiguration) WithAPIVersion(value string) *ImagePrune
// If called multiple times, the Name field is set to the value of the last call.
func (b *ImagePrunerApplyConfiguration) WithName(value string) *ImagePrunerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *ImagePrunerApplyConfiguration) WithName(value string) *ImagePrunerApply
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ImagePrunerApplyConfiguration) WithGenerateName(value string) *ImagePrunerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *ImagePrunerApplyConfiguration) WithGenerateName(value string) *ImagePru
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ImagePrunerApplyConfiguration) WithNamespace(value string) *ImagePrunerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *ImagePrunerApplyConfiguration) WithNamespace(value string) *ImagePruner
// If called multiple times, the UID field is set to the value of the last call.
func (b *ImagePrunerApplyConfiguration) WithUID(value types.UID) *ImagePrunerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *ImagePrunerApplyConfiguration) WithUID(value types.UID) *ImagePrunerApp
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ImagePrunerApplyConfiguration) WithResourceVersion(value string) *ImagePrunerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *ImagePrunerApplyConfiguration) WithResourceVersion(value string) *Image
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ImagePrunerApplyConfiguration) WithGeneration(value int64) *ImagePrunerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *ImagePrunerApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ImagePrunerApplyConfiguration {
+func (b *ImagePrunerApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ImagePrunerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *ImagePrunerApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ImagePrunerApplyConfiguration {
+func (b *ImagePrunerApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ImagePrunerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *ImagePrunerApplyConfiguration) WithDeletionTimestamp(value metav1.Time)
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ImagePrunerApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ImagePrunerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *ImagePrunerApplyConfiguration) WithDeletionGracePeriodSeconds(value int
// overwriting an existing map entries in Labels field with the same key.
func (b *ImagePrunerApplyConfiguration) WithLabels(entries map[string]string) *ImagePrunerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *ImagePrunerApplyConfiguration) WithLabels(entries map[string]string) *I
// overwriting an existing map entries in Annotations field with the same key.
func (b *ImagePrunerApplyConfiguration) WithAnnotations(entries map[string]string) *ImagePrunerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *ImagePrunerApplyConfiguration) WithAnnotations(entries map[string]strin
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *ImagePrunerApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ImagePrunerApplyConfiguration {
+func (b *ImagePrunerApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ImagePrunerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *ImagePrunerApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerR
func (b *ImagePrunerApplyConfiguration) WithFinalizers(values ...string) *ImagePrunerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *ImagePrunerApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *ImagePrunerApplyConfiguration) WithStatus(value *ImagePrunerStatusApply
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ImagePrunerApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/imageregistry/applyconfigurations/imageregistry/v1/imageprunerspec.go b/imageregistry/applyconfigurations/imageregistry/v1/imageprunerspec.go
index 5874c6792..d0f1a98ae 100644
--- a/imageregistry/applyconfigurations/imageregistry/v1/imageprunerspec.go
+++ b/imageregistry/applyconfigurations/imageregistry/v1/imageprunerspec.go
@@ -7,7 +7,7 @@ import (
operatorv1 "github.com/openshift/api/operator/v1"
corev1 "k8s.io/api/core/v1"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// ImagePrunerSpecApplyConfiguration represents a declarative configuration of the ImagePrunerSpec type for use
@@ -17,7 +17,7 @@ type ImagePrunerSpecApplyConfiguration struct {
Suspend *bool `json:"suspend,omitempty"`
KeepTagRevisions *int `json:"keepTagRevisions,omitempty"`
KeepYoungerThan *time.Duration `json:"keepYoungerThan,omitempty"`
- KeepYoungerThanDuration *v1.Duration `json:"keepYoungerThanDuration,omitempty"`
+ KeepYoungerThanDuration *metav1.Duration `json:"keepYoungerThanDuration,omitempty"`
Resources *corev1.ResourceRequirements `json:"resources,omitempty"`
Affinity *corev1.Affinity `json:"affinity,omitempty"`
NodeSelector map[string]string `json:"nodeSelector,omitempty"`
@@ -69,7 +69,7 @@ func (b *ImagePrunerSpecApplyConfiguration) WithKeepYoungerThan(value time.Durat
// WithKeepYoungerThanDuration sets the KeepYoungerThanDuration field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the KeepYoungerThanDuration field is set to the value of the last call.
-func (b *ImagePrunerSpecApplyConfiguration) WithKeepYoungerThanDuration(value v1.Duration) *ImagePrunerSpecApplyConfiguration {
+func (b *ImagePrunerSpecApplyConfiguration) WithKeepYoungerThanDuration(value metav1.Duration) *ImagePrunerSpecApplyConfiguration {
b.KeepYoungerThanDuration = &value
return b
}
diff --git a/imageregistry/applyconfigurations/imageregistry/v1/imageprunerstatus.go b/imageregistry/applyconfigurations/imageregistry/v1/imageprunerstatus.go
index 24715f2bb..bd63423e5 100644
--- a/imageregistry/applyconfigurations/imageregistry/v1/imageprunerstatus.go
+++ b/imageregistry/applyconfigurations/imageregistry/v1/imageprunerstatus.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
+ operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
)
// ImagePrunerStatusApplyConfiguration represents a declarative configuration of the ImagePrunerStatus type for use
// with apply.
type ImagePrunerStatusApplyConfiguration struct {
- ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
- Conditions []v1.OperatorConditionApplyConfiguration `json:"conditions,omitempty"`
+ ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
+ Conditions []operatorv1.OperatorConditionApplyConfiguration `json:"conditions,omitempty"`
}
// ImagePrunerStatusApplyConfiguration constructs a declarative configuration of the ImagePrunerStatus type for use with
@@ -30,7 +30,7 @@ func (b *ImagePrunerStatusApplyConfiguration) WithObservedGeneration(value int64
// WithConditions adds the given value to the Conditions field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Conditions field.
-func (b *ImagePrunerStatusApplyConfiguration) WithConditions(values ...*v1.OperatorConditionApplyConfiguration) *ImagePrunerStatusApplyConfiguration {
+func (b *ImagePrunerStatusApplyConfiguration) WithConditions(values ...*operatorv1.OperatorConditionApplyConfiguration) *ImagePrunerStatusApplyConfiguration {
for i := range values {
if values[i] == nil {
panic("nil value passed to WithConditions")
diff --git a/imageregistry/applyconfigurations/imageregistry/v1/imageregistryconfigrequestslimits.go b/imageregistry/applyconfigurations/imageregistry/v1/imageregistryconfigrequestslimits.go
index 19033ef20..0712bb5fa 100644
--- a/imageregistry/applyconfigurations/imageregistry/v1/imageregistryconfigrequestslimits.go
+++ b/imageregistry/applyconfigurations/imageregistry/v1/imageregistryconfigrequestslimits.go
@@ -3,15 +3,15 @@
package v1
import (
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// ImageRegistryConfigRequestsLimitsApplyConfiguration represents a declarative configuration of the ImageRegistryConfigRequestsLimits type for use
// with apply.
type ImageRegistryConfigRequestsLimitsApplyConfiguration struct {
- MaxRunning *int `json:"maxRunning,omitempty"`
- MaxInQueue *int `json:"maxInQueue,omitempty"`
- MaxWaitInQueue *v1.Duration `json:"maxWaitInQueue,omitempty"`
+ MaxRunning *int `json:"maxRunning,omitempty"`
+ MaxInQueue *int `json:"maxInQueue,omitempty"`
+ MaxWaitInQueue *metav1.Duration `json:"maxWaitInQueue,omitempty"`
}
// ImageRegistryConfigRequestsLimitsApplyConfiguration constructs a declarative configuration of the ImageRegistryConfigRequestsLimits type for use with
@@ -39,7 +39,7 @@ func (b *ImageRegistryConfigRequestsLimitsApplyConfiguration) WithMaxInQueue(val
// WithMaxWaitInQueue sets the MaxWaitInQueue field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the MaxWaitInQueue field is set to the value of the last call.
-func (b *ImageRegistryConfigRequestsLimitsApplyConfiguration) WithMaxWaitInQueue(value v1.Duration) *ImageRegistryConfigRequestsLimitsApplyConfiguration {
+func (b *ImageRegistryConfigRequestsLimitsApplyConfiguration) WithMaxWaitInQueue(value metav1.Duration) *ImageRegistryConfigRequestsLimitsApplyConfiguration {
b.MaxWaitInQueue = &value
return b
}
diff --git a/imageregistry/applyconfigurations/imageregistry/v1/imageregistryconfigstorage.go b/imageregistry/applyconfigurations/imageregistry/v1/imageregistryconfigstorage.go
index 76c3cf868..a89b4d11d 100644
--- a/imageregistry/applyconfigurations/imageregistry/v1/imageregistryconfigstorage.go
+++ b/imageregistry/applyconfigurations/imageregistry/v1/imageregistryconfigstorage.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/imageregistry/v1"
+ imageregistryv1 "github.com/openshift/api/imageregistry/v1"
)
// ImageRegistryConfigStorageApplyConfiguration represents a declarative configuration of the ImageRegistryConfigStorage type for use
// with apply.
type ImageRegistryConfigStorageApplyConfiguration struct {
- EmptyDir *v1.ImageRegistryConfigStorageEmptyDir `json:"emptyDir,omitempty"`
+ EmptyDir *imageregistryv1.ImageRegistryConfigStorageEmptyDir `json:"emptyDir,omitempty"`
S3 *ImageRegistryConfigStorageS3ApplyConfiguration `json:"s3,omitempty"`
GCS *ImageRegistryConfigStorageGCSApplyConfiguration `json:"gcs,omitempty"`
Swift *ImageRegistryConfigStorageSwiftApplyConfiguration `json:"swift,omitempty"`
@@ -29,7 +29,7 @@ func ImageRegistryConfigStorage() *ImageRegistryConfigStorageApplyConfiguration
// WithEmptyDir sets the EmptyDir field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the EmptyDir field is set to the value of the last call.
-func (b *ImageRegistryConfigStorageApplyConfiguration) WithEmptyDir(value v1.ImageRegistryConfigStorageEmptyDir) *ImageRegistryConfigStorageApplyConfiguration {
+func (b *ImageRegistryConfigStorageApplyConfiguration) WithEmptyDir(value imageregistryv1.ImageRegistryConfigStorageEmptyDir) *ImageRegistryConfigStorageApplyConfiguration {
b.EmptyDir = &value
return b
}
diff --git a/imageregistry/applyconfigurations/imageregistry/v1/imageregistryconfigstoragealibabaoss.go b/imageregistry/applyconfigurations/imageregistry/v1/imageregistryconfigstoragealibabaoss.go
index 5b0192720..bd8278532 100644
--- a/imageregistry/applyconfigurations/imageregistry/v1/imageregistryconfigstoragealibabaoss.go
+++ b/imageregistry/applyconfigurations/imageregistry/v1/imageregistryconfigstoragealibabaoss.go
@@ -3,16 +3,16 @@
package v1
import (
- v1 "github.com/openshift/api/imageregistry/v1"
+ imageregistryv1 "github.com/openshift/api/imageregistry/v1"
)
// ImageRegistryConfigStorageAlibabaOSSApplyConfiguration represents a declarative configuration of the ImageRegistryConfigStorageAlibabaOSS type for use
// with apply.
type ImageRegistryConfigStorageAlibabaOSSApplyConfiguration struct {
- Bucket *string `json:"bucket,omitempty"`
- Region *string `json:"region,omitempty"`
- EndpointAccessibility *v1.EndpointAccessibility `json:"endpointAccessibility,omitempty"`
- Encryption *EncryptionAlibabaApplyConfiguration `json:"encryption,omitempty"`
+ Bucket *string `json:"bucket,omitempty"`
+ Region *string `json:"region,omitempty"`
+ EndpointAccessibility *imageregistryv1.EndpointAccessibility `json:"endpointAccessibility,omitempty"`
+ Encryption *EncryptionAlibabaApplyConfiguration `json:"encryption,omitempty"`
}
// ImageRegistryConfigStorageAlibabaOSSApplyConfiguration constructs a declarative configuration of the ImageRegistryConfigStorageAlibabaOSS type for use with
@@ -40,7 +40,7 @@ func (b *ImageRegistryConfigStorageAlibabaOSSApplyConfiguration) WithRegion(valu
// WithEndpointAccessibility sets the EndpointAccessibility field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the EndpointAccessibility field is set to the value of the last call.
-func (b *ImageRegistryConfigStorageAlibabaOSSApplyConfiguration) WithEndpointAccessibility(value v1.EndpointAccessibility) *ImageRegistryConfigStorageAlibabaOSSApplyConfiguration {
+func (b *ImageRegistryConfigStorageAlibabaOSSApplyConfiguration) WithEndpointAccessibility(value imageregistryv1.EndpointAccessibility) *ImageRegistryConfigStorageAlibabaOSSApplyConfiguration {
b.EndpointAccessibility = &value
return b
}
diff --git a/imageregistry/applyconfigurations/imageregistry/v1/imageregistryconfigstorages3cloudfront.go b/imageregistry/applyconfigurations/imageregistry/v1/imageregistryconfigstorages3cloudfront.go
index d5b0231ed..001cfff4b 100644
--- a/imageregistry/applyconfigurations/imageregistry/v1/imageregistryconfigstorages3cloudfront.go
+++ b/imageregistry/applyconfigurations/imageregistry/v1/imageregistryconfigstorages3cloudfront.go
@@ -3,17 +3,17 @@
package v1
import (
- v1 "k8s.io/api/core/v1"
+ corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// ImageRegistryConfigStorageS3CloudFrontApplyConfiguration represents a declarative configuration of the ImageRegistryConfigStorageS3CloudFront type for use
// with apply.
type ImageRegistryConfigStorageS3CloudFrontApplyConfiguration struct {
- BaseURL *string `json:"baseURL,omitempty"`
- PrivateKey *v1.SecretKeySelector `json:"privateKey,omitempty"`
- KeypairID *string `json:"keypairID,omitempty"`
- Duration *metav1.Duration `json:"duration,omitempty"`
+ BaseURL *string `json:"baseURL,omitempty"`
+ PrivateKey *corev1.SecretKeySelector `json:"privateKey,omitempty"`
+ KeypairID *string `json:"keypairID,omitempty"`
+ Duration *metav1.Duration `json:"duration,omitempty"`
}
// ImageRegistryConfigStorageS3CloudFrontApplyConfiguration constructs a declarative configuration of the ImageRegistryConfigStorageS3CloudFront type for use with
@@ -33,7 +33,7 @@ func (b *ImageRegistryConfigStorageS3CloudFrontApplyConfiguration) WithBaseURL(v
// WithPrivateKey sets the PrivateKey field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the PrivateKey field is set to the value of the last call.
-func (b *ImageRegistryConfigStorageS3CloudFrontApplyConfiguration) WithPrivateKey(value v1.SecretKeySelector) *ImageRegistryConfigStorageS3CloudFrontApplyConfiguration {
+func (b *ImageRegistryConfigStorageS3CloudFrontApplyConfiguration) WithPrivateKey(value corev1.SecretKeySelector) *ImageRegistryConfigStorageS3CloudFrontApplyConfiguration {
b.PrivateKey = &value
return b
}
diff --git a/imageregistry/applyconfigurations/imageregistry/v1/imageregistryspec.go b/imageregistry/applyconfigurations/imageregistry/v1/imageregistryspec.go
index 8a0673841..53474ff0b 100644
--- a/imageregistry/applyconfigurations/imageregistry/v1/imageregistryspec.go
+++ b/imageregistry/applyconfigurations/imageregistry/v1/imageregistryspec.go
@@ -3,8 +3,8 @@
package v1
import (
- operatorv1 "github.com/openshift/api/operator/v1"
- v1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
+ apioperatorv1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
corev1 "k8s.io/api/core/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
)
@@ -12,23 +12,23 @@ import (
// ImageRegistrySpecApplyConfiguration represents a declarative configuration of the ImageRegistrySpec type for use
// with apply.
type ImageRegistrySpecApplyConfiguration struct {
- v1.OperatorSpecApplyConfiguration `json:",inline"`
- HTTPSecret *string `json:"httpSecret,omitempty"`
- Proxy *ImageRegistryConfigProxyApplyConfiguration `json:"proxy,omitempty"`
- Storage *ImageRegistryConfigStorageApplyConfiguration `json:"storage,omitempty"`
- ReadOnly *bool `json:"readOnly,omitempty"`
- DisableRedirect *bool `json:"disableRedirect,omitempty"`
- Requests *ImageRegistryConfigRequestsApplyConfiguration `json:"requests,omitempty"`
- DefaultRoute *bool `json:"defaultRoute,omitempty"`
- Routes []ImageRegistryConfigRouteApplyConfiguration `json:"routes,omitempty"`
- Replicas *int32 `json:"replicas,omitempty"`
- Logging *int64 `json:"logging,omitempty"`
- Resources *corev1.ResourceRequirements `json:"resources,omitempty"`
- NodeSelector map[string]string `json:"nodeSelector,omitempty"`
- Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
- RolloutStrategy *string `json:"rolloutStrategy,omitempty"`
- Affinity *corev1.Affinity `json:"affinity,omitempty"`
- TopologySpreadConstraints []corev1.TopologySpreadConstraint `json:"topologySpreadConstraints,omitempty"`
+ operatorv1.OperatorSpecApplyConfiguration `json:",inline"`
+ HTTPSecret *string `json:"httpSecret,omitempty"`
+ Proxy *ImageRegistryConfigProxyApplyConfiguration `json:"proxy,omitempty"`
+ Storage *ImageRegistryConfigStorageApplyConfiguration `json:"storage,omitempty"`
+ ReadOnly *bool `json:"readOnly,omitempty"`
+ DisableRedirect *bool `json:"disableRedirect,omitempty"`
+ Requests *ImageRegistryConfigRequestsApplyConfiguration `json:"requests,omitempty"`
+ DefaultRoute *bool `json:"defaultRoute,omitempty"`
+ Routes []ImageRegistryConfigRouteApplyConfiguration `json:"routes,omitempty"`
+ Replicas *int32 `json:"replicas,omitempty"`
+ Logging *int64 `json:"logging,omitempty"`
+ Resources *corev1.ResourceRequirements `json:"resources,omitempty"`
+ NodeSelector map[string]string `json:"nodeSelector,omitempty"`
+ Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
+ RolloutStrategy *string `json:"rolloutStrategy,omitempty"`
+ Affinity *corev1.Affinity `json:"affinity,omitempty"`
+ TopologySpreadConstraints []corev1.TopologySpreadConstraint `json:"topologySpreadConstraints,omitempty"`
}
// ImageRegistrySpecApplyConfiguration constructs a declarative configuration of the ImageRegistrySpec type for use with
@@ -40,24 +40,24 @@ func ImageRegistrySpec() *ImageRegistrySpecApplyConfiguration {
// WithManagementState sets the ManagementState field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ManagementState field is set to the value of the last call.
-func (b *ImageRegistrySpecApplyConfiguration) WithManagementState(value operatorv1.ManagementState) *ImageRegistrySpecApplyConfiguration {
- b.ManagementState = &value
+func (b *ImageRegistrySpecApplyConfiguration) WithManagementState(value apioperatorv1.ManagementState) *ImageRegistrySpecApplyConfiguration {
+ b.OperatorSpecApplyConfiguration.ManagementState = &value
return b
}
// WithLogLevel sets the LogLevel field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LogLevel field is set to the value of the last call.
-func (b *ImageRegistrySpecApplyConfiguration) WithLogLevel(value operatorv1.LogLevel) *ImageRegistrySpecApplyConfiguration {
- b.LogLevel = &value
+func (b *ImageRegistrySpecApplyConfiguration) WithLogLevel(value apioperatorv1.LogLevel) *ImageRegistrySpecApplyConfiguration {
+ b.OperatorSpecApplyConfiguration.LogLevel = &value
return b
}
// WithOperatorLogLevel sets the OperatorLogLevel field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the OperatorLogLevel field is set to the value of the last call.
-func (b *ImageRegistrySpecApplyConfiguration) WithOperatorLogLevel(value operatorv1.LogLevel) *ImageRegistrySpecApplyConfiguration {
- b.OperatorLogLevel = &value
+func (b *ImageRegistrySpecApplyConfiguration) WithOperatorLogLevel(value apioperatorv1.LogLevel) *ImageRegistrySpecApplyConfiguration {
+ b.OperatorSpecApplyConfiguration.OperatorLogLevel = &value
return b
}
@@ -65,7 +65,7 @@ func (b *ImageRegistrySpecApplyConfiguration) WithOperatorLogLevel(value operato
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the UnsupportedConfigOverrides field is set to the value of the last call.
func (b *ImageRegistrySpecApplyConfiguration) WithUnsupportedConfigOverrides(value runtime.RawExtension) *ImageRegistrySpecApplyConfiguration {
- b.UnsupportedConfigOverrides = &value
+ b.OperatorSpecApplyConfiguration.UnsupportedConfigOverrides = &value
return b
}
@@ -73,7 +73,7 @@ func (b *ImageRegistrySpecApplyConfiguration) WithUnsupportedConfigOverrides(val
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedConfig field is set to the value of the last call.
func (b *ImageRegistrySpecApplyConfiguration) WithObservedConfig(value runtime.RawExtension) *ImageRegistrySpecApplyConfiguration {
- b.ObservedConfig = &value
+ b.OperatorSpecApplyConfiguration.ObservedConfig = &value
return b
}
diff --git a/imageregistry/applyconfigurations/imageregistry/v1/imageregistrystatus.go b/imageregistry/applyconfigurations/imageregistry/v1/imageregistrystatus.go
index 65d5ad9e3..da4440079 100644
--- a/imageregistry/applyconfigurations/imageregistry/v1/imageregistrystatus.go
+++ b/imageregistry/applyconfigurations/imageregistry/v1/imageregistrystatus.go
@@ -3,15 +3,15 @@
package v1
import (
- v1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
+ operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
)
// ImageRegistryStatusApplyConfiguration represents a declarative configuration of the ImageRegistryStatus type for use
// with apply.
type ImageRegistryStatusApplyConfiguration struct {
- v1.OperatorStatusApplyConfiguration `json:",inline"`
- StorageManaged *bool `json:"storageManaged,omitempty"`
- Storage *ImageRegistryConfigStorageApplyConfiguration `json:"storage,omitempty"`
+ operatorv1.OperatorStatusApplyConfiguration `json:",inline"`
+ StorageManaged *bool `json:"storageManaged,omitempty"`
+ Storage *ImageRegistryConfigStorageApplyConfiguration `json:"storage,omitempty"`
}
// ImageRegistryStatusApplyConfiguration constructs a declarative configuration of the ImageRegistryStatus type for use with
@@ -24,19 +24,19 @@ func ImageRegistryStatus() *ImageRegistryStatusApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedGeneration field is set to the value of the last call.
func (b *ImageRegistryStatusApplyConfiguration) WithObservedGeneration(value int64) *ImageRegistryStatusApplyConfiguration {
- b.ObservedGeneration = &value
+ b.OperatorStatusApplyConfiguration.ObservedGeneration = &value
return b
}
// WithConditions adds the given value to the Conditions field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Conditions field.
-func (b *ImageRegistryStatusApplyConfiguration) WithConditions(values ...*v1.OperatorConditionApplyConfiguration) *ImageRegistryStatusApplyConfiguration {
+func (b *ImageRegistryStatusApplyConfiguration) WithConditions(values ...*operatorv1.OperatorConditionApplyConfiguration) *ImageRegistryStatusApplyConfiguration {
for i := range values {
if values[i] == nil {
panic("nil value passed to WithConditions")
}
- b.Conditions = append(b.Conditions, *values[i])
+ b.OperatorStatusApplyConfiguration.Conditions = append(b.OperatorStatusApplyConfiguration.Conditions, *values[i])
}
return b
}
@@ -45,7 +45,7 @@ func (b *ImageRegistryStatusApplyConfiguration) WithConditions(values ...*v1.Ope
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Version field is set to the value of the last call.
func (b *ImageRegistryStatusApplyConfiguration) WithVersion(value string) *ImageRegistryStatusApplyConfiguration {
- b.Version = &value
+ b.OperatorStatusApplyConfiguration.Version = &value
return b
}
@@ -53,7 +53,7 @@ func (b *ImageRegistryStatusApplyConfiguration) WithVersion(value string) *Image
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ReadyReplicas field is set to the value of the last call.
func (b *ImageRegistryStatusApplyConfiguration) WithReadyReplicas(value int32) *ImageRegistryStatusApplyConfiguration {
- b.ReadyReplicas = &value
+ b.OperatorStatusApplyConfiguration.ReadyReplicas = &value
return b
}
@@ -61,19 +61,19 @@ func (b *ImageRegistryStatusApplyConfiguration) WithReadyReplicas(value int32) *
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LatestAvailableRevision field is set to the value of the last call.
func (b *ImageRegistryStatusApplyConfiguration) WithLatestAvailableRevision(value int32) *ImageRegistryStatusApplyConfiguration {
- b.LatestAvailableRevision = &value
+ b.OperatorStatusApplyConfiguration.LatestAvailableRevision = &value
return b
}
// WithGenerations adds the given value to the Generations field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Generations field.
-func (b *ImageRegistryStatusApplyConfiguration) WithGenerations(values ...*v1.GenerationStatusApplyConfiguration) *ImageRegistryStatusApplyConfiguration {
+func (b *ImageRegistryStatusApplyConfiguration) WithGenerations(values ...*operatorv1.GenerationStatusApplyConfiguration) *ImageRegistryStatusApplyConfiguration {
for i := range values {
if values[i] == nil {
panic("nil value passed to WithGenerations")
}
- b.Generations = append(b.Generations, *values[i])
+ b.OperatorStatusApplyConfiguration.Generations = append(b.OperatorStatusApplyConfiguration.Generations, *values[i])
}
return b
}
diff --git a/imageregistry/applyconfigurations/internal/internal.go b/imageregistry/applyconfigurations/internal/internal.go
index 6da07dc8e..c7ee7da38 100644
--- a/imageregistry/applyconfigurations/internal/internal.go
+++ b/imageregistry/applyconfigurations/internal/internal.go
@@ -3,8 +3,8 @@
package internal
import (
- "fmt"
- "sync"
+ fmt "fmt"
+ sync "sync"
typed "sigs.k8s.io/structured-merge-diff/v4/typed"
)
diff --git a/imageregistry/clientset/versioned/clientset.go b/imageregistry/clientset/versioned/clientset.go
index 9c8a95109..c7b1959a7 100644
--- a/imageregistry/clientset/versioned/clientset.go
+++ b/imageregistry/clientset/versioned/clientset.go
@@ -3,8 +3,8 @@
package versioned
import (
- "fmt"
- "net/http"
+ fmt "fmt"
+ http "net/http"
imageregistryv1 "github.com/openshift/client-go/imageregistry/clientset/versioned/typed/imageregistry/v1"
discovery "k8s.io/client-go/discovery"
diff --git a/imageregistry/clientset/versioned/typed/imageregistry/v1/config.go b/imageregistry/clientset/versioned/typed/imageregistry/v1/config.go
index cb35d0ab8..6c77a63e9 100644
--- a/imageregistry/clientset/versioned/typed/imageregistry/v1/config.go
+++ b/imageregistry/clientset/versioned/typed/imageregistry/v1/config.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/imageregistry/v1"
- imageregistryv1 "github.com/openshift/client-go/imageregistry/applyconfigurations/imageregistry/v1"
+ imageregistryv1 "github.com/openshift/api/imageregistry/v1"
+ applyconfigurationsimageregistryv1 "github.com/openshift/client-go/imageregistry/applyconfigurations/imageregistry/v1"
scheme "github.com/openshift/client-go/imageregistry/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type ConfigsGetter interface {
// ConfigInterface has methods to work with Config resources.
type ConfigInterface interface {
- Create(ctx context.Context, config *v1.Config, opts metav1.CreateOptions) (*v1.Config, error)
- Update(ctx context.Context, config *v1.Config, opts metav1.UpdateOptions) (*v1.Config, error)
+ Create(ctx context.Context, config *imageregistryv1.Config, opts metav1.CreateOptions) (*imageregistryv1.Config, error)
+ Update(ctx context.Context, config *imageregistryv1.Config, opts metav1.UpdateOptions) (*imageregistryv1.Config, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, config *v1.Config, opts metav1.UpdateOptions) (*v1.Config, error)
+ UpdateStatus(ctx context.Context, config *imageregistryv1.Config, opts metav1.UpdateOptions) (*imageregistryv1.Config, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Config, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.ConfigList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*imageregistryv1.Config, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*imageregistryv1.ConfigList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Config, err error)
- Apply(ctx context.Context, config *imageregistryv1.ConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Config, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *imageregistryv1.Config, err error)
+ Apply(ctx context.Context, config *applyconfigurationsimageregistryv1.ConfigApplyConfiguration, opts metav1.ApplyOptions) (result *imageregistryv1.Config, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, config *imageregistryv1.ConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Config, err error)
+ ApplyStatus(ctx context.Context, config *applyconfigurationsimageregistryv1.ConfigApplyConfiguration, opts metav1.ApplyOptions) (result *imageregistryv1.Config, err error)
ConfigExpansion
}
// configs implements ConfigInterface
type configs struct {
- *gentype.ClientWithListAndApply[*v1.Config, *v1.ConfigList, *imageregistryv1.ConfigApplyConfiguration]
+ *gentype.ClientWithListAndApply[*imageregistryv1.Config, *imageregistryv1.ConfigList, *applyconfigurationsimageregistryv1.ConfigApplyConfiguration]
}
// newConfigs returns a Configs
func newConfigs(c *ImageregistryV1Client) *configs {
return &configs{
- gentype.NewClientWithListAndApply[*v1.Config, *v1.ConfigList, *imageregistryv1.ConfigApplyConfiguration](
+ gentype.NewClientWithListAndApply[*imageregistryv1.Config, *imageregistryv1.ConfigList, *applyconfigurationsimageregistryv1.ConfigApplyConfiguration](
"configs",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.Config { return &v1.Config{} },
- func() *v1.ConfigList { return &v1.ConfigList{} }),
+ func() *imageregistryv1.Config { return &imageregistryv1.Config{} },
+ func() *imageregistryv1.ConfigList { return &imageregistryv1.ConfigList{} },
+ ),
}
}
diff --git a/imageregistry/clientset/versioned/typed/imageregistry/v1/fake/fake_config.go b/imageregistry/clientset/versioned/typed/imageregistry/v1/fake/fake_config.go
index 0cbca76ed..b06768d52 100644
--- a/imageregistry/clientset/versioned/typed/imageregistry/v1/fake/fake_config.go
+++ b/imageregistry/clientset/versioned/typed/imageregistry/v1/fake/fake_config.go
@@ -3,168 +3,31 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/imageregistry/v1"
imageregistryv1 "github.com/openshift/client-go/imageregistry/applyconfigurations/imageregistry/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedimageregistryv1 "github.com/openshift/client-go/imageregistry/clientset/versioned/typed/imageregistry/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeConfigs implements ConfigInterface
-type FakeConfigs struct {
+// fakeConfigs implements ConfigInterface
+type fakeConfigs struct {
+ *gentype.FakeClientWithListAndApply[*v1.Config, *v1.ConfigList, *imageregistryv1.ConfigApplyConfiguration]
Fake *FakeImageregistryV1
}
-var configsResource = v1.SchemeGroupVersion.WithResource("configs")
-
-var configsKind = v1.SchemeGroupVersion.WithKind("Config")
-
-// Get takes name of the config, and returns the corresponding config object, and an error if there is any.
-func (c *FakeConfigs) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Config, err error) {
- emptyResult := &v1.Config{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(configsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Config), err
-}
-
-// List takes label and field selectors, and returns the list of Configs that match those selectors.
-func (c *FakeConfigs) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ConfigList, err error) {
- emptyResult := &v1.ConfigList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(configsResource, configsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.ConfigList{ListMeta: obj.(*v1.ConfigList).ListMeta}
- for _, item := range obj.(*v1.ConfigList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested configs.
-func (c *FakeConfigs) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(configsResource, opts))
-}
-
-// Create takes the representation of a config and creates it. Returns the server's representation of the config, and an error, if there is any.
-func (c *FakeConfigs) Create(ctx context.Context, config *v1.Config, opts metav1.CreateOptions) (result *v1.Config, err error) {
- emptyResult := &v1.Config{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(configsResource, config, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Config), err
-}
-
-// Update takes the representation of a config and updates it. Returns the server's representation of the config, and an error, if there is any.
-func (c *FakeConfigs) Update(ctx context.Context, config *v1.Config, opts metav1.UpdateOptions) (result *v1.Config, err error) {
- emptyResult := &v1.Config{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(configsResource, config, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Config), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeConfigs) UpdateStatus(ctx context.Context, config *v1.Config, opts metav1.UpdateOptions) (result *v1.Config, err error) {
- emptyResult := &v1.Config{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(configsResource, "status", config, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Config), err
-}
-
-// Delete takes name of the config and deletes it. Returns an error if one occurs.
-func (c *FakeConfigs) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(configsResource, name, opts), &v1.Config{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeConfigs) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(configsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.ConfigList{})
- return err
-}
-
-// Patch applies the patch and returns the patched config.
-func (c *FakeConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Config, err error) {
- emptyResult := &v1.Config{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(configsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Config), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied config.
-func (c *FakeConfigs) Apply(ctx context.Context, config *imageregistryv1.ConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Config, err error) {
- if config == nil {
- return nil, fmt.Errorf("config provided to Apply must not be nil")
- }
- data, err := json.Marshal(config)
- if err != nil {
- return nil, err
- }
- name := config.Name
- if name == nil {
- return nil, fmt.Errorf("config.Name must be provided to Apply")
- }
- emptyResult := &v1.Config{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(configsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Config), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeConfigs) ApplyStatus(ctx context.Context, config *imageregistryv1.ConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Config, err error) {
- if config == nil {
- return nil, fmt.Errorf("config provided to Apply must not be nil")
- }
- data, err := json.Marshal(config)
- if err != nil {
- return nil, err
- }
- name := config.Name
- if name == nil {
- return nil, fmt.Errorf("config.Name must be provided to Apply")
- }
- emptyResult := &v1.Config{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(configsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeConfigs(fake *FakeImageregistryV1) typedimageregistryv1.ConfigInterface {
+ return &fakeConfigs{
+ gentype.NewFakeClientWithListAndApply[*v1.Config, *v1.ConfigList, *imageregistryv1.ConfigApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("configs"),
+ v1.SchemeGroupVersion.WithKind("Config"),
+ func() *v1.Config { return &v1.Config{} },
+ func() *v1.ConfigList { return &v1.ConfigList{} },
+ func(dst, src *v1.ConfigList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.ConfigList) []*v1.Config { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.ConfigList, items []*v1.Config) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.Config), err
}
diff --git a/imageregistry/clientset/versioned/typed/imageregistry/v1/fake/fake_imagepruner.go b/imageregistry/clientset/versioned/typed/imageregistry/v1/fake/fake_imagepruner.go
index 4772392ab..cb1916612 100644
--- a/imageregistry/clientset/versioned/typed/imageregistry/v1/fake/fake_imagepruner.go
+++ b/imageregistry/clientset/versioned/typed/imageregistry/v1/fake/fake_imagepruner.go
@@ -3,168 +3,31 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/imageregistry/v1"
imageregistryv1 "github.com/openshift/client-go/imageregistry/applyconfigurations/imageregistry/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedimageregistryv1 "github.com/openshift/client-go/imageregistry/clientset/versioned/typed/imageregistry/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeImagePruners implements ImagePrunerInterface
-type FakeImagePruners struct {
+// fakeImagePruners implements ImagePrunerInterface
+type fakeImagePruners struct {
+ *gentype.FakeClientWithListAndApply[*v1.ImagePruner, *v1.ImagePrunerList, *imageregistryv1.ImagePrunerApplyConfiguration]
Fake *FakeImageregistryV1
}
-var imageprunersResource = v1.SchemeGroupVersion.WithResource("imagepruners")
-
-var imageprunersKind = v1.SchemeGroupVersion.WithKind("ImagePruner")
-
-// Get takes name of the imagePruner, and returns the corresponding imagePruner object, and an error if there is any.
-func (c *FakeImagePruners) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ImagePruner, err error) {
- emptyResult := &v1.ImagePruner{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(imageprunersResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ImagePruner), err
-}
-
-// List takes label and field selectors, and returns the list of ImagePruners that match those selectors.
-func (c *FakeImagePruners) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ImagePrunerList, err error) {
- emptyResult := &v1.ImagePrunerList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(imageprunersResource, imageprunersKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.ImagePrunerList{ListMeta: obj.(*v1.ImagePrunerList).ListMeta}
- for _, item := range obj.(*v1.ImagePrunerList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested imagePruners.
-func (c *FakeImagePruners) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(imageprunersResource, opts))
-}
-
-// Create takes the representation of a imagePruner and creates it. Returns the server's representation of the imagePruner, and an error, if there is any.
-func (c *FakeImagePruners) Create(ctx context.Context, imagePruner *v1.ImagePruner, opts metav1.CreateOptions) (result *v1.ImagePruner, err error) {
- emptyResult := &v1.ImagePruner{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(imageprunersResource, imagePruner, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ImagePruner), err
-}
-
-// Update takes the representation of a imagePruner and updates it. Returns the server's representation of the imagePruner, and an error, if there is any.
-func (c *FakeImagePruners) Update(ctx context.Context, imagePruner *v1.ImagePruner, opts metav1.UpdateOptions) (result *v1.ImagePruner, err error) {
- emptyResult := &v1.ImagePruner{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(imageprunersResource, imagePruner, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ImagePruner), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeImagePruners) UpdateStatus(ctx context.Context, imagePruner *v1.ImagePruner, opts metav1.UpdateOptions) (result *v1.ImagePruner, err error) {
- emptyResult := &v1.ImagePruner{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(imageprunersResource, "status", imagePruner, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ImagePruner), err
-}
-
-// Delete takes name of the imagePruner and deletes it. Returns an error if one occurs.
-func (c *FakeImagePruners) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(imageprunersResource, name, opts), &v1.ImagePruner{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeImagePruners) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(imageprunersResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.ImagePrunerList{})
- return err
-}
-
-// Patch applies the patch and returns the patched imagePruner.
-func (c *FakeImagePruners) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ImagePruner, err error) {
- emptyResult := &v1.ImagePruner{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(imageprunersResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ImagePruner), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied imagePruner.
-func (c *FakeImagePruners) Apply(ctx context.Context, imagePruner *imageregistryv1.ImagePrunerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ImagePruner, err error) {
- if imagePruner == nil {
- return nil, fmt.Errorf("imagePruner provided to Apply must not be nil")
- }
- data, err := json.Marshal(imagePruner)
- if err != nil {
- return nil, err
- }
- name := imagePruner.Name
- if name == nil {
- return nil, fmt.Errorf("imagePruner.Name must be provided to Apply")
- }
- emptyResult := &v1.ImagePruner{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(imageprunersResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ImagePruner), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeImagePruners) ApplyStatus(ctx context.Context, imagePruner *imageregistryv1.ImagePrunerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ImagePruner, err error) {
- if imagePruner == nil {
- return nil, fmt.Errorf("imagePruner provided to Apply must not be nil")
- }
- data, err := json.Marshal(imagePruner)
- if err != nil {
- return nil, err
- }
- name := imagePruner.Name
- if name == nil {
- return nil, fmt.Errorf("imagePruner.Name must be provided to Apply")
- }
- emptyResult := &v1.ImagePruner{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(imageprunersResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeImagePruners(fake *FakeImageregistryV1) typedimageregistryv1.ImagePrunerInterface {
+ return &fakeImagePruners{
+ gentype.NewFakeClientWithListAndApply[*v1.ImagePruner, *v1.ImagePrunerList, *imageregistryv1.ImagePrunerApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("imagepruners"),
+ v1.SchemeGroupVersion.WithKind("ImagePruner"),
+ func() *v1.ImagePruner { return &v1.ImagePruner{} },
+ func() *v1.ImagePrunerList { return &v1.ImagePrunerList{} },
+ func(dst, src *v1.ImagePrunerList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.ImagePrunerList) []*v1.ImagePruner { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.ImagePrunerList, items []*v1.ImagePruner) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.ImagePruner), err
}
diff --git a/imageregistry/clientset/versioned/typed/imageregistry/v1/fake/fake_imageregistry_client.go b/imageregistry/clientset/versioned/typed/imageregistry/v1/fake/fake_imageregistry_client.go
index 4c384a346..b8ca4d1e0 100644
--- a/imageregistry/clientset/versioned/typed/imageregistry/v1/fake/fake_imageregistry_client.go
+++ b/imageregistry/clientset/versioned/typed/imageregistry/v1/fake/fake_imageregistry_client.go
@@ -13,11 +13,11 @@ type FakeImageregistryV1 struct {
}
func (c *FakeImageregistryV1) Configs() v1.ConfigInterface {
- return &FakeConfigs{c}
+ return newFakeConfigs(c)
}
func (c *FakeImageregistryV1) ImagePruners() v1.ImagePrunerInterface {
- return &FakeImagePruners{c}
+ return newFakeImagePruners(c)
}
// RESTClient returns a RESTClient that is used to communicate
diff --git a/imageregistry/clientset/versioned/typed/imageregistry/v1/imagepruner.go b/imageregistry/clientset/versioned/typed/imageregistry/v1/imagepruner.go
index 12557488f..c922be75d 100644
--- a/imageregistry/clientset/versioned/typed/imageregistry/v1/imagepruner.go
+++ b/imageregistry/clientset/versioned/typed/imageregistry/v1/imagepruner.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/imageregistry/v1"
- imageregistryv1 "github.com/openshift/client-go/imageregistry/applyconfigurations/imageregistry/v1"
+ imageregistryv1 "github.com/openshift/api/imageregistry/v1"
+ applyconfigurationsimageregistryv1 "github.com/openshift/client-go/imageregistry/applyconfigurations/imageregistry/v1"
scheme "github.com/openshift/client-go/imageregistry/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type ImagePrunersGetter interface {
// ImagePrunerInterface has methods to work with ImagePruner resources.
type ImagePrunerInterface interface {
- Create(ctx context.Context, imagePruner *v1.ImagePruner, opts metav1.CreateOptions) (*v1.ImagePruner, error)
- Update(ctx context.Context, imagePruner *v1.ImagePruner, opts metav1.UpdateOptions) (*v1.ImagePruner, error)
+ Create(ctx context.Context, imagePruner *imageregistryv1.ImagePruner, opts metav1.CreateOptions) (*imageregistryv1.ImagePruner, error)
+ Update(ctx context.Context, imagePruner *imageregistryv1.ImagePruner, opts metav1.UpdateOptions) (*imageregistryv1.ImagePruner, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, imagePruner *v1.ImagePruner, opts metav1.UpdateOptions) (*v1.ImagePruner, error)
+ UpdateStatus(ctx context.Context, imagePruner *imageregistryv1.ImagePruner, opts metav1.UpdateOptions) (*imageregistryv1.ImagePruner, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ImagePruner, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.ImagePrunerList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*imageregistryv1.ImagePruner, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*imageregistryv1.ImagePrunerList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ImagePruner, err error)
- Apply(ctx context.Context, imagePruner *imageregistryv1.ImagePrunerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ImagePruner, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *imageregistryv1.ImagePruner, err error)
+ Apply(ctx context.Context, imagePruner *applyconfigurationsimageregistryv1.ImagePrunerApplyConfiguration, opts metav1.ApplyOptions) (result *imageregistryv1.ImagePruner, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, imagePruner *imageregistryv1.ImagePrunerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ImagePruner, err error)
+ ApplyStatus(ctx context.Context, imagePruner *applyconfigurationsimageregistryv1.ImagePrunerApplyConfiguration, opts metav1.ApplyOptions) (result *imageregistryv1.ImagePruner, err error)
ImagePrunerExpansion
}
// imagePruners implements ImagePrunerInterface
type imagePruners struct {
- *gentype.ClientWithListAndApply[*v1.ImagePruner, *v1.ImagePrunerList, *imageregistryv1.ImagePrunerApplyConfiguration]
+ *gentype.ClientWithListAndApply[*imageregistryv1.ImagePruner, *imageregistryv1.ImagePrunerList, *applyconfigurationsimageregistryv1.ImagePrunerApplyConfiguration]
}
// newImagePruners returns a ImagePruners
func newImagePruners(c *ImageregistryV1Client) *imagePruners {
return &imagePruners{
- gentype.NewClientWithListAndApply[*v1.ImagePruner, *v1.ImagePrunerList, *imageregistryv1.ImagePrunerApplyConfiguration](
+ gentype.NewClientWithListAndApply[*imageregistryv1.ImagePruner, *imageregistryv1.ImagePrunerList, *applyconfigurationsimageregistryv1.ImagePrunerApplyConfiguration](
"imagepruners",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.ImagePruner { return &v1.ImagePruner{} },
- func() *v1.ImagePrunerList { return &v1.ImagePrunerList{} }),
+ func() *imageregistryv1.ImagePruner { return &imageregistryv1.ImagePruner{} },
+ func() *imageregistryv1.ImagePrunerList { return &imageregistryv1.ImagePrunerList{} },
+ ),
}
}
diff --git a/imageregistry/clientset/versioned/typed/imageregistry/v1/imageregistry_client.go b/imageregistry/clientset/versioned/typed/imageregistry/v1/imageregistry_client.go
index b5ecf5843..2b8f386df 100644
--- a/imageregistry/clientset/versioned/typed/imageregistry/v1/imageregistry_client.go
+++ b/imageregistry/clientset/versioned/typed/imageregistry/v1/imageregistry_client.go
@@ -3,10 +3,10 @@
package v1
import (
- "net/http"
+ http "net/http"
- v1 "github.com/openshift/api/imageregistry/v1"
- "github.com/openshift/client-go/imageregistry/clientset/versioned/scheme"
+ imageregistryv1 "github.com/openshift/api/imageregistry/v1"
+ scheme "github.com/openshift/client-go/imageregistry/clientset/versioned/scheme"
rest "k8s.io/client-go/rest"
)
@@ -74,10 +74,10 @@ func New(c rest.Interface) *ImageregistryV1Client {
}
func setConfigDefaults(config *rest.Config) error {
- gv := v1.SchemeGroupVersion
+ gv := imageregistryv1.SchemeGroupVersion
config.GroupVersion = &gv
config.APIPath = "/apis"
- config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
+ config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion()
if config.UserAgent == "" {
config.UserAgent = rest.DefaultKubernetesUserAgent()
diff --git a/imageregistry/informers/externalversions/generic.go b/imageregistry/informers/externalversions/generic.go
index aa2db9bb3..3aa8ec11e 100644
--- a/imageregistry/informers/externalversions/generic.go
+++ b/imageregistry/informers/externalversions/generic.go
@@ -3,7 +3,7 @@
package externalversions
import (
- "fmt"
+ fmt "fmt"
v1 "github.com/openshift/api/imageregistry/v1"
schema "k8s.io/apimachinery/pkg/runtime/schema"
diff --git a/imageregistry/informers/externalversions/imageregistry/v1/config.go b/imageregistry/informers/externalversions/imageregistry/v1/config.go
index e9fb7a087..65674f210 100644
--- a/imageregistry/informers/externalversions/imageregistry/v1/config.go
+++ b/imageregistry/informers/externalversions/imageregistry/v1/config.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- imageregistryv1 "github.com/openshift/api/imageregistry/v1"
+ apiimageregistryv1 "github.com/openshift/api/imageregistry/v1"
versioned "github.com/openshift/client-go/imageregistry/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/imageregistry/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/imageregistry/listers/imageregistry/v1"
+ imageregistryv1 "github.com/openshift/client-go/imageregistry/listers/imageregistry/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// Configs.
type ConfigInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.ConfigLister
+ Lister() imageregistryv1.ConfigLister
}
type configInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredConfigInformer(client versioned.Interface, resyncPeriod time.Dur
return client.ImageregistryV1().Configs().Watch(context.TODO(), options)
},
},
- &imageregistryv1.Config{},
+ &apiimageregistryv1.Config{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *configInformer) defaultInformer(client versioned.Interface, resyncPerio
}
func (f *configInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&imageregistryv1.Config{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiimageregistryv1.Config{}, f.defaultInformer)
}
-func (f *configInformer) Lister() v1.ConfigLister {
- return v1.NewConfigLister(f.Informer().GetIndexer())
+func (f *configInformer) Lister() imageregistryv1.ConfigLister {
+ return imageregistryv1.NewConfigLister(f.Informer().GetIndexer())
}
diff --git a/imageregistry/informers/externalversions/imageregistry/v1/imagepruner.go b/imageregistry/informers/externalversions/imageregistry/v1/imagepruner.go
index 899067569..8513b2ad6 100644
--- a/imageregistry/informers/externalversions/imageregistry/v1/imagepruner.go
+++ b/imageregistry/informers/externalversions/imageregistry/v1/imagepruner.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- imageregistryv1 "github.com/openshift/api/imageregistry/v1"
+ apiimageregistryv1 "github.com/openshift/api/imageregistry/v1"
versioned "github.com/openshift/client-go/imageregistry/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/imageregistry/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/imageregistry/listers/imageregistry/v1"
+ imageregistryv1 "github.com/openshift/client-go/imageregistry/listers/imageregistry/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// ImagePruners.
type ImagePrunerInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.ImagePrunerLister
+ Lister() imageregistryv1.ImagePrunerLister
}
type imagePrunerInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredImagePrunerInformer(client versioned.Interface, resyncPeriod tim
return client.ImageregistryV1().ImagePruners().Watch(context.TODO(), options)
},
},
- &imageregistryv1.ImagePruner{},
+ &apiimageregistryv1.ImagePruner{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *imagePrunerInformer) defaultInformer(client versioned.Interface, resync
}
func (f *imagePrunerInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&imageregistryv1.ImagePruner{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiimageregistryv1.ImagePruner{}, f.defaultInformer)
}
-func (f *imagePrunerInformer) Lister() v1.ImagePrunerLister {
- return v1.NewImagePrunerLister(f.Informer().GetIndexer())
+func (f *imagePrunerInformer) Lister() imageregistryv1.ImagePrunerLister {
+ return imageregistryv1.NewImagePrunerLister(f.Informer().GetIndexer())
}
diff --git a/imageregistry/listers/imageregistry/v1/config.go b/imageregistry/listers/imageregistry/v1/config.go
index edaea1c4b..edc4af760 100644
--- a/imageregistry/listers/imageregistry/v1/config.go
+++ b/imageregistry/listers/imageregistry/v1/config.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/imageregistry/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ imageregistryv1 "github.com/openshift/api/imageregistry/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ConfigLister helps list Configs.
@@ -14,19 +14,19 @@ import (
type ConfigLister interface {
// List lists all Configs in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.Config, err error)
+ List(selector labels.Selector) (ret []*imageregistryv1.Config, err error)
// Get retrieves the Config from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.Config, error)
+ Get(name string) (*imageregistryv1.Config, error)
ConfigListerExpansion
}
// configLister implements the ConfigLister interface.
type configLister struct {
- listers.ResourceIndexer[*v1.Config]
+ listers.ResourceIndexer[*imageregistryv1.Config]
}
// NewConfigLister returns a new ConfigLister.
func NewConfigLister(indexer cache.Indexer) ConfigLister {
- return &configLister{listers.New[*v1.Config](indexer, v1.Resource("config"))}
+ return &configLister{listers.New[*imageregistryv1.Config](indexer, imageregistryv1.Resource("config"))}
}
diff --git a/imageregistry/listers/imageregistry/v1/imagepruner.go b/imageregistry/listers/imageregistry/v1/imagepruner.go
index 7f797399f..bf81828a9 100644
--- a/imageregistry/listers/imageregistry/v1/imagepruner.go
+++ b/imageregistry/listers/imageregistry/v1/imagepruner.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/imageregistry/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ imageregistryv1 "github.com/openshift/api/imageregistry/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ImagePrunerLister helps list ImagePruners.
@@ -14,19 +14,19 @@ import (
type ImagePrunerLister interface {
// List lists all ImagePruners in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.ImagePruner, err error)
+ List(selector labels.Selector) (ret []*imageregistryv1.ImagePruner, err error)
// Get retrieves the ImagePruner from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.ImagePruner, error)
+ Get(name string) (*imageregistryv1.ImagePruner, error)
ImagePrunerListerExpansion
}
// imagePrunerLister implements the ImagePrunerLister interface.
type imagePrunerLister struct {
- listers.ResourceIndexer[*v1.ImagePruner]
+ listers.ResourceIndexer[*imageregistryv1.ImagePruner]
}
// NewImagePrunerLister returns a new ImagePrunerLister.
func NewImagePrunerLister(indexer cache.Indexer) ImagePrunerLister {
- return &imagePrunerLister{listers.New[*v1.ImagePruner](indexer, v1.Resource("imagepruner"))}
+ return &imagePrunerLister{listers.New[*imageregistryv1.ImagePruner](indexer, imageregistryv1.Resource("imagepruner"))}
}
diff --git a/insights/applyconfigurations/insights/v1alpha1/datagather.go b/insights/applyconfigurations/insights/v1alpha1/datagather.go
index db404bc05..c3f1bd496 100644
--- a/insights/applyconfigurations/insights/v1alpha1/datagather.go
+++ b/insights/applyconfigurations/insights/v1alpha1/datagather.go
@@ -69,7 +69,7 @@ func extractDataGather(dataGather *insightsv1alpha1.DataGather, fieldManager str
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *DataGatherApplyConfiguration) WithKind(value string) *DataGatherApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *DataGatherApplyConfiguration) WithKind(value string) *DataGatherApplyCo
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *DataGatherApplyConfiguration) WithAPIVersion(value string) *DataGatherApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *DataGatherApplyConfiguration) WithAPIVersion(value string) *DataGatherA
// If called multiple times, the Name field is set to the value of the last call.
func (b *DataGatherApplyConfiguration) WithName(value string) *DataGatherApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *DataGatherApplyConfiguration) WithName(value string) *DataGatherApplyCo
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *DataGatherApplyConfiguration) WithGenerateName(value string) *DataGatherApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *DataGatherApplyConfiguration) WithGenerateName(value string) *DataGathe
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *DataGatherApplyConfiguration) WithNamespace(value string) *DataGatherApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *DataGatherApplyConfiguration) WithNamespace(value string) *DataGatherAp
// If called multiple times, the UID field is set to the value of the last call.
func (b *DataGatherApplyConfiguration) WithUID(value types.UID) *DataGatherApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *DataGatherApplyConfiguration) WithUID(value types.UID) *DataGatherApply
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *DataGatherApplyConfiguration) WithResourceVersion(value string) *DataGatherApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,7 +131,7 @@ func (b *DataGatherApplyConfiguration) WithResourceVersion(value string) *DataGa
// If called multiple times, the Generation field is set to the value of the last call.
func (b *DataGatherApplyConfiguration) WithGeneration(value int64) *DataGatherApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
@@ -140,7 +140,7 @@ func (b *DataGatherApplyConfiguration) WithGeneration(value int64) *DataGatherAp
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
func (b *DataGatherApplyConfiguration) WithCreationTimestamp(value metav1.Time) *DataGatherApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
@@ -149,7 +149,7 @@ func (b *DataGatherApplyConfiguration) WithCreationTimestamp(value metav1.Time)
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
func (b *DataGatherApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *DataGatherApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *DataGatherApplyConfiguration) WithDeletionTimestamp(value metav1.Time)
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *DataGatherApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *DataGatherApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *DataGatherApplyConfiguration) WithDeletionGracePeriodSeconds(value int6
// overwriting an existing map entries in Labels field with the same key.
func (b *DataGatherApplyConfiguration) WithLabels(entries map[string]string) *DataGatherApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *DataGatherApplyConfiguration) WithLabels(entries map[string]string) *Da
// overwriting an existing map entries in Annotations field with the same key.
func (b *DataGatherApplyConfiguration) WithAnnotations(entries map[string]string) *DataGatherApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -201,7 +201,7 @@ func (b *DataGatherApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRe
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,7 +212,7 @@ func (b *DataGatherApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRe
func (b *DataGatherApplyConfiguration) WithFinalizers(values ...string) *DataGatherApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
@@ -242,5 +242,5 @@ func (b *DataGatherApplyConfiguration) WithStatus(value *DataGatherStatusApplyCo
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *DataGatherApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/insights/applyconfigurations/insights/v1alpha1/datagatherspec.go b/insights/applyconfigurations/insights/v1alpha1/datagatherspec.go
index fdd26a12e..96a017bad 100644
--- a/insights/applyconfigurations/insights/v1alpha1/datagatherspec.go
+++ b/insights/applyconfigurations/insights/v1alpha1/datagatherspec.go
@@ -3,13 +3,13 @@
package v1alpha1
import (
- v1alpha1 "github.com/openshift/api/insights/v1alpha1"
+ insightsv1alpha1 "github.com/openshift/api/insights/v1alpha1"
)
// DataGatherSpecApplyConfiguration represents a declarative configuration of the DataGatherSpec type for use
// with apply.
type DataGatherSpecApplyConfiguration struct {
- DataPolicy *v1alpha1.DataPolicy `json:"dataPolicy,omitempty"`
+ DataPolicy *insightsv1alpha1.DataPolicy `json:"dataPolicy,omitempty"`
Gatherers []GathererConfigApplyConfiguration `json:"gatherers,omitempty"`
}
@@ -22,7 +22,7 @@ func DataGatherSpec() *DataGatherSpecApplyConfiguration {
// WithDataPolicy sets the DataPolicy field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DataPolicy field is set to the value of the last call.
-func (b *DataGatherSpecApplyConfiguration) WithDataPolicy(value v1alpha1.DataPolicy) *DataGatherSpecApplyConfiguration {
+func (b *DataGatherSpecApplyConfiguration) WithDataPolicy(value insightsv1alpha1.DataPolicy) *DataGatherSpecApplyConfiguration {
b.DataPolicy = &value
return b
}
diff --git a/insights/applyconfigurations/insights/v1alpha1/datagatherstatus.go b/insights/applyconfigurations/insights/v1alpha1/datagatherstatus.go
index 0ffb0c58f..ede8dd5d3 100644
--- a/insights/applyconfigurations/insights/v1alpha1/datagatherstatus.go
+++ b/insights/applyconfigurations/insights/v1alpha1/datagatherstatus.go
@@ -3,7 +3,7 @@
package v1alpha1
import (
- v1alpha1 "github.com/openshift/api/insights/v1alpha1"
+ insightsv1alpha1 "github.com/openshift/api/insights/v1alpha1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
@@ -12,7 +12,7 @@ import (
// with apply.
type DataGatherStatusApplyConfiguration struct {
Conditions []v1.ConditionApplyConfiguration `json:"conditions,omitempty"`
- State *v1alpha1.DataGatherState `json:"dataGatherState,omitempty"`
+ State *insightsv1alpha1.DataGatherState `json:"dataGatherState,omitempty"`
Gatherers []GathererStatusApplyConfiguration `json:"gatherers,omitempty"`
StartTime *metav1.Time `json:"startTime,omitempty"`
FinishTime *metav1.Time `json:"finishTime,omitempty"`
@@ -43,7 +43,7 @@ func (b *DataGatherStatusApplyConfiguration) WithConditions(values ...*v1.Condit
// WithState sets the State field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the State field is set to the value of the last call.
-func (b *DataGatherStatusApplyConfiguration) WithState(value v1alpha1.DataGatherState) *DataGatherStatusApplyConfiguration {
+func (b *DataGatherStatusApplyConfiguration) WithState(value insightsv1alpha1.DataGatherState) *DataGatherStatusApplyConfiguration {
b.State = &value
return b
}
diff --git a/insights/applyconfigurations/insights/v1alpha1/gathererconfig.go b/insights/applyconfigurations/insights/v1alpha1/gathererconfig.go
index cfbbb3516..09ac24469 100644
--- a/insights/applyconfigurations/insights/v1alpha1/gathererconfig.go
+++ b/insights/applyconfigurations/insights/v1alpha1/gathererconfig.go
@@ -3,14 +3,14 @@
package v1alpha1
import (
- v1alpha1 "github.com/openshift/api/insights/v1alpha1"
+ insightsv1alpha1 "github.com/openshift/api/insights/v1alpha1"
)
// GathererConfigApplyConfiguration represents a declarative configuration of the GathererConfig type for use
// with apply.
type GathererConfigApplyConfiguration struct {
- Name *string `json:"name,omitempty"`
- State *v1alpha1.GathererState `json:"state,omitempty"`
+ Name *string `json:"name,omitempty"`
+ State *insightsv1alpha1.GathererState `json:"state,omitempty"`
}
// GathererConfigApplyConfiguration constructs a declarative configuration of the GathererConfig type for use with
@@ -30,7 +30,7 @@ func (b *GathererConfigApplyConfiguration) WithName(value string) *GathererConfi
// WithState sets the State field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the State field is set to the value of the last call.
-func (b *GathererConfigApplyConfiguration) WithState(value v1alpha1.GathererState) *GathererConfigApplyConfiguration {
+func (b *GathererConfigApplyConfiguration) WithState(value insightsv1alpha1.GathererState) *GathererConfigApplyConfiguration {
b.State = &value
return b
}
diff --git a/insights/applyconfigurations/insights/v1alpha1/healthcheck.go b/insights/applyconfigurations/insights/v1alpha1/healthcheck.go
index 7c382ed01..5267b86b1 100644
--- a/insights/applyconfigurations/insights/v1alpha1/healthcheck.go
+++ b/insights/applyconfigurations/insights/v1alpha1/healthcheck.go
@@ -3,16 +3,16 @@
package v1alpha1
import (
- v1alpha1 "github.com/openshift/api/insights/v1alpha1"
+ insightsv1alpha1 "github.com/openshift/api/insights/v1alpha1"
)
// HealthCheckApplyConfiguration represents a declarative configuration of the HealthCheck type for use
// with apply.
type HealthCheckApplyConfiguration struct {
- Description *string `json:"description,omitempty"`
- TotalRisk *int32 `json:"totalRisk,omitempty"`
- AdvisorURI *string `json:"advisorURI,omitempty"`
- State *v1alpha1.HealthCheckState `json:"state,omitempty"`
+ Description *string `json:"description,omitempty"`
+ TotalRisk *int32 `json:"totalRisk,omitempty"`
+ AdvisorURI *string `json:"advisorURI,omitempty"`
+ State *insightsv1alpha1.HealthCheckState `json:"state,omitempty"`
}
// HealthCheckApplyConfiguration constructs a declarative configuration of the HealthCheck type for use with
@@ -48,7 +48,7 @@ func (b *HealthCheckApplyConfiguration) WithAdvisorURI(value string) *HealthChec
// WithState sets the State field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the State field is set to the value of the last call.
-func (b *HealthCheckApplyConfiguration) WithState(value v1alpha1.HealthCheckState) *HealthCheckApplyConfiguration {
+func (b *HealthCheckApplyConfiguration) WithState(value insightsv1alpha1.HealthCheckState) *HealthCheckApplyConfiguration {
b.State = &value
return b
}
diff --git a/insights/applyconfigurations/internal/internal.go b/insights/applyconfigurations/internal/internal.go
index 5992c3a53..4272a7636 100644
--- a/insights/applyconfigurations/internal/internal.go
+++ b/insights/applyconfigurations/internal/internal.go
@@ -3,8 +3,8 @@
package internal
import (
- "fmt"
- "sync"
+ fmt "fmt"
+ sync "sync"
typed "sigs.k8s.io/structured-merge-diff/v4/typed"
)
diff --git a/insights/clientset/versioned/clientset.go b/insights/clientset/versioned/clientset.go
index 8bec9f99c..231531b42 100644
--- a/insights/clientset/versioned/clientset.go
+++ b/insights/clientset/versioned/clientset.go
@@ -3,8 +3,8 @@
package versioned
import (
- "fmt"
- "net/http"
+ fmt "fmt"
+ http "net/http"
insightsv1alpha1 "github.com/openshift/client-go/insights/clientset/versioned/typed/insights/v1alpha1"
discovery "k8s.io/client-go/discovery"
diff --git a/insights/clientset/versioned/typed/insights/v1alpha1/datagather.go b/insights/clientset/versioned/typed/insights/v1alpha1/datagather.go
index e6f100691..6574cdea0 100644
--- a/insights/clientset/versioned/typed/insights/v1alpha1/datagather.go
+++ b/insights/clientset/versioned/typed/insights/v1alpha1/datagather.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- "context"
+ context "context"
- v1alpha1 "github.com/openshift/api/insights/v1alpha1"
- insightsv1alpha1 "github.com/openshift/client-go/insights/applyconfigurations/insights/v1alpha1"
+ insightsv1alpha1 "github.com/openshift/api/insights/v1alpha1"
+ applyconfigurationsinsightsv1alpha1 "github.com/openshift/client-go/insights/applyconfigurations/insights/v1alpha1"
scheme "github.com/openshift/client-go/insights/clientset/versioned/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type DataGathersGetter interface {
// DataGatherInterface has methods to work with DataGather resources.
type DataGatherInterface interface {
- Create(ctx context.Context, dataGather *v1alpha1.DataGather, opts v1.CreateOptions) (*v1alpha1.DataGather, error)
- Update(ctx context.Context, dataGather *v1alpha1.DataGather, opts v1.UpdateOptions) (*v1alpha1.DataGather, error)
+ Create(ctx context.Context, dataGather *insightsv1alpha1.DataGather, opts v1.CreateOptions) (*insightsv1alpha1.DataGather, error)
+ Update(ctx context.Context, dataGather *insightsv1alpha1.DataGather, opts v1.UpdateOptions) (*insightsv1alpha1.DataGather, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, dataGather *v1alpha1.DataGather, opts v1.UpdateOptions) (*v1alpha1.DataGather, error)
+ UpdateStatus(ctx context.Context, dataGather *insightsv1alpha1.DataGather, opts v1.UpdateOptions) (*insightsv1alpha1.DataGather, error)
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.DataGather, error)
- List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.DataGatherList, error)
+ Get(ctx context.Context, name string, opts v1.GetOptions) (*insightsv1alpha1.DataGather, error)
+ List(ctx context.Context, opts v1.ListOptions) (*insightsv1alpha1.DataGatherList, error)
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.DataGather, err error)
- Apply(ctx context.Context, dataGather *insightsv1alpha1.DataGatherApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.DataGather, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *insightsv1alpha1.DataGather, err error)
+ Apply(ctx context.Context, dataGather *applyconfigurationsinsightsv1alpha1.DataGatherApplyConfiguration, opts v1.ApplyOptions) (result *insightsv1alpha1.DataGather, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, dataGather *insightsv1alpha1.DataGatherApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.DataGather, err error)
+ ApplyStatus(ctx context.Context, dataGather *applyconfigurationsinsightsv1alpha1.DataGatherApplyConfiguration, opts v1.ApplyOptions) (result *insightsv1alpha1.DataGather, err error)
DataGatherExpansion
}
// dataGathers implements DataGatherInterface
type dataGathers struct {
- *gentype.ClientWithListAndApply[*v1alpha1.DataGather, *v1alpha1.DataGatherList, *insightsv1alpha1.DataGatherApplyConfiguration]
+ *gentype.ClientWithListAndApply[*insightsv1alpha1.DataGather, *insightsv1alpha1.DataGatherList, *applyconfigurationsinsightsv1alpha1.DataGatherApplyConfiguration]
}
// newDataGathers returns a DataGathers
func newDataGathers(c *InsightsV1alpha1Client) *dataGathers {
return &dataGathers{
- gentype.NewClientWithListAndApply[*v1alpha1.DataGather, *v1alpha1.DataGatherList, *insightsv1alpha1.DataGatherApplyConfiguration](
+ gentype.NewClientWithListAndApply[*insightsv1alpha1.DataGather, *insightsv1alpha1.DataGatherList, *applyconfigurationsinsightsv1alpha1.DataGatherApplyConfiguration](
"datagathers",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1alpha1.DataGather { return &v1alpha1.DataGather{} },
- func() *v1alpha1.DataGatherList { return &v1alpha1.DataGatherList{} }),
+ func() *insightsv1alpha1.DataGather { return &insightsv1alpha1.DataGather{} },
+ func() *insightsv1alpha1.DataGatherList { return &insightsv1alpha1.DataGatherList{} },
+ ),
}
}
diff --git a/insights/clientset/versioned/typed/insights/v1alpha1/fake/fake_datagather.go b/insights/clientset/versioned/typed/insights/v1alpha1/fake/fake_datagather.go
index 0ebd32e7d..e04886274 100644
--- a/insights/clientset/versioned/typed/insights/v1alpha1/fake/fake_datagather.go
+++ b/insights/clientset/versioned/typed/insights/v1alpha1/fake/fake_datagather.go
@@ -3,168 +3,33 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1alpha1 "github.com/openshift/api/insights/v1alpha1"
insightsv1alpha1 "github.com/openshift/client-go/insights/applyconfigurations/insights/v1alpha1"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedinsightsv1alpha1 "github.com/openshift/client-go/insights/clientset/versioned/typed/insights/v1alpha1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeDataGathers implements DataGatherInterface
-type FakeDataGathers struct {
+// fakeDataGathers implements DataGatherInterface
+type fakeDataGathers struct {
+ *gentype.FakeClientWithListAndApply[*v1alpha1.DataGather, *v1alpha1.DataGatherList, *insightsv1alpha1.DataGatherApplyConfiguration]
Fake *FakeInsightsV1alpha1
}
-var datagathersResource = v1alpha1.SchemeGroupVersion.WithResource("datagathers")
-
-var datagathersKind = v1alpha1.SchemeGroupVersion.WithKind("DataGather")
-
-// Get takes name of the dataGather, and returns the corresponding dataGather object, and an error if there is any.
-func (c *FakeDataGathers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.DataGather, err error) {
- emptyResult := &v1alpha1.DataGather{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(datagathersResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.DataGather), err
-}
-
-// List takes label and field selectors, and returns the list of DataGathers that match those selectors.
-func (c *FakeDataGathers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.DataGatherList, err error) {
- emptyResult := &v1alpha1.DataGatherList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(datagathersResource, datagathersKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1alpha1.DataGatherList{ListMeta: obj.(*v1alpha1.DataGatherList).ListMeta}
- for _, item := range obj.(*v1alpha1.DataGatherList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested dataGathers.
-func (c *FakeDataGathers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(datagathersResource, opts))
-}
-
-// Create takes the representation of a dataGather and creates it. Returns the server's representation of the dataGather, and an error, if there is any.
-func (c *FakeDataGathers) Create(ctx context.Context, dataGather *v1alpha1.DataGather, opts v1.CreateOptions) (result *v1alpha1.DataGather, err error) {
- emptyResult := &v1alpha1.DataGather{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(datagathersResource, dataGather, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.DataGather), err
-}
-
-// Update takes the representation of a dataGather and updates it. Returns the server's representation of the dataGather, and an error, if there is any.
-func (c *FakeDataGathers) Update(ctx context.Context, dataGather *v1alpha1.DataGather, opts v1.UpdateOptions) (result *v1alpha1.DataGather, err error) {
- emptyResult := &v1alpha1.DataGather{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(datagathersResource, dataGather, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.DataGather), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeDataGathers) UpdateStatus(ctx context.Context, dataGather *v1alpha1.DataGather, opts v1.UpdateOptions) (result *v1alpha1.DataGather, err error) {
- emptyResult := &v1alpha1.DataGather{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(datagathersResource, "status", dataGather, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.DataGather), err
-}
-
-// Delete takes name of the dataGather and deletes it. Returns an error if one occurs.
-func (c *FakeDataGathers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(datagathersResource, name, opts), &v1alpha1.DataGather{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeDataGathers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(datagathersResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1alpha1.DataGatherList{})
- return err
-}
-
-// Patch applies the patch and returns the patched dataGather.
-func (c *FakeDataGathers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.DataGather, err error) {
- emptyResult := &v1alpha1.DataGather{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(datagathersResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.DataGather), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied dataGather.
-func (c *FakeDataGathers) Apply(ctx context.Context, dataGather *insightsv1alpha1.DataGatherApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.DataGather, err error) {
- if dataGather == nil {
- return nil, fmt.Errorf("dataGather provided to Apply must not be nil")
- }
- data, err := json.Marshal(dataGather)
- if err != nil {
- return nil, err
- }
- name := dataGather.Name
- if name == nil {
- return nil, fmt.Errorf("dataGather.Name must be provided to Apply")
- }
- emptyResult := &v1alpha1.DataGather{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(datagathersResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.DataGather), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeDataGathers) ApplyStatus(ctx context.Context, dataGather *insightsv1alpha1.DataGatherApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.DataGather, err error) {
- if dataGather == nil {
- return nil, fmt.Errorf("dataGather provided to Apply must not be nil")
- }
- data, err := json.Marshal(dataGather)
- if err != nil {
- return nil, err
- }
- name := dataGather.Name
- if name == nil {
- return nil, fmt.Errorf("dataGather.Name must be provided to Apply")
- }
- emptyResult := &v1alpha1.DataGather{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(datagathersResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeDataGathers(fake *FakeInsightsV1alpha1) typedinsightsv1alpha1.DataGatherInterface {
+ return &fakeDataGathers{
+ gentype.NewFakeClientWithListAndApply[*v1alpha1.DataGather, *v1alpha1.DataGatherList, *insightsv1alpha1.DataGatherApplyConfiguration](
+ fake.Fake,
+ "",
+ v1alpha1.SchemeGroupVersion.WithResource("datagathers"),
+ v1alpha1.SchemeGroupVersion.WithKind("DataGather"),
+ func() *v1alpha1.DataGather { return &v1alpha1.DataGather{} },
+ func() *v1alpha1.DataGatherList { return &v1alpha1.DataGatherList{} },
+ func(dst, src *v1alpha1.DataGatherList) { dst.ListMeta = src.ListMeta },
+ func(list *v1alpha1.DataGatherList) []*v1alpha1.DataGather { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1alpha1.DataGatherList, items []*v1alpha1.DataGather) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1alpha1.DataGather), err
}
diff --git a/insights/clientset/versioned/typed/insights/v1alpha1/fake/fake_insights_client.go b/insights/clientset/versioned/typed/insights/v1alpha1/fake/fake_insights_client.go
index 8c272ce1f..46d56f112 100644
--- a/insights/clientset/versioned/typed/insights/v1alpha1/fake/fake_insights_client.go
+++ b/insights/clientset/versioned/typed/insights/v1alpha1/fake/fake_insights_client.go
@@ -13,7 +13,7 @@ type FakeInsightsV1alpha1 struct {
}
func (c *FakeInsightsV1alpha1) DataGathers() v1alpha1.DataGatherInterface {
- return &FakeDataGathers{c}
+ return newFakeDataGathers(c)
}
// RESTClient returns a RESTClient that is used to communicate
diff --git a/insights/clientset/versioned/typed/insights/v1alpha1/insights_client.go b/insights/clientset/versioned/typed/insights/v1alpha1/insights_client.go
index 020bb5a39..8ca16c0d5 100644
--- a/insights/clientset/versioned/typed/insights/v1alpha1/insights_client.go
+++ b/insights/clientset/versioned/typed/insights/v1alpha1/insights_client.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- "net/http"
+ http "net/http"
- v1alpha1 "github.com/openshift/api/insights/v1alpha1"
- "github.com/openshift/client-go/insights/clientset/versioned/scheme"
+ insightsv1alpha1 "github.com/openshift/api/insights/v1alpha1"
+ scheme "github.com/openshift/client-go/insights/clientset/versioned/scheme"
rest "k8s.io/client-go/rest"
)
@@ -69,10 +69,10 @@ func New(c rest.Interface) *InsightsV1alpha1Client {
}
func setConfigDefaults(config *rest.Config) error {
- gv := v1alpha1.SchemeGroupVersion
+ gv := insightsv1alpha1.SchemeGroupVersion
config.GroupVersion = &gv
config.APIPath = "/apis"
- config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
+ config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion()
if config.UserAgent == "" {
config.UserAgent = rest.DefaultKubernetesUserAgent()
diff --git a/insights/informers/externalversions/generic.go b/insights/informers/externalversions/generic.go
index 55908d950..cab0470e3 100644
--- a/insights/informers/externalversions/generic.go
+++ b/insights/informers/externalversions/generic.go
@@ -3,7 +3,7 @@
package externalversions
import (
- "fmt"
+ fmt "fmt"
v1alpha1 "github.com/openshift/api/insights/v1alpha1"
schema "k8s.io/apimachinery/pkg/runtime/schema"
diff --git a/insights/informers/externalversions/insights/v1alpha1/datagather.go b/insights/informers/externalversions/insights/v1alpha1/datagather.go
index bcb2b25eb..a667a4b31 100644
--- a/insights/informers/externalversions/insights/v1alpha1/datagather.go
+++ b/insights/informers/externalversions/insights/v1alpha1/datagather.go
@@ -3,13 +3,13 @@
package v1alpha1
import (
- "context"
+ context "context"
time "time"
- insightsv1alpha1 "github.com/openshift/api/insights/v1alpha1"
+ apiinsightsv1alpha1 "github.com/openshift/api/insights/v1alpha1"
versioned "github.com/openshift/client-go/insights/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/insights/informers/externalversions/internalinterfaces"
- v1alpha1 "github.com/openshift/client-go/insights/listers/insights/v1alpha1"
+ insightsv1alpha1 "github.com/openshift/client-go/insights/listers/insights/v1alpha1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// DataGathers.
type DataGatherInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1alpha1.DataGatherLister
+ Lister() insightsv1alpha1.DataGatherLister
}
type dataGatherInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredDataGatherInformer(client versioned.Interface, resyncPeriod time
return client.InsightsV1alpha1().DataGathers().Watch(context.TODO(), options)
},
},
- &insightsv1alpha1.DataGather{},
+ &apiinsightsv1alpha1.DataGather{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *dataGatherInformer) defaultInformer(client versioned.Interface, resyncP
}
func (f *dataGatherInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&insightsv1alpha1.DataGather{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiinsightsv1alpha1.DataGather{}, f.defaultInformer)
}
-func (f *dataGatherInformer) Lister() v1alpha1.DataGatherLister {
- return v1alpha1.NewDataGatherLister(f.Informer().GetIndexer())
+func (f *dataGatherInformer) Lister() insightsv1alpha1.DataGatherLister {
+ return insightsv1alpha1.NewDataGatherLister(f.Informer().GetIndexer())
}
diff --git a/insights/listers/insights/v1alpha1/datagather.go b/insights/listers/insights/v1alpha1/datagather.go
index fe5e008dc..846d8ee23 100644
--- a/insights/listers/insights/v1alpha1/datagather.go
+++ b/insights/listers/insights/v1alpha1/datagather.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- v1alpha1 "github.com/openshift/api/insights/v1alpha1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ insightsv1alpha1 "github.com/openshift/api/insights/v1alpha1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// DataGatherLister helps list DataGathers.
@@ -14,19 +14,19 @@ import (
type DataGatherLister interface {
// List lists all DataGathers in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1alpha1.DataGather, err error)
+ List(selector labels.Selector) (ret []*insightsv1alpha1.DataGather, err error)
// Get retrieves the DataGather from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1alpha1.DataGather, error)
+ Get(name string) (*insightsv1alpha1.DataGather, error)
DataGatherListerExpansion
}
// dataGatherLister implements the DataGatherLister interface.
type dataGatherLister struct {
- listers.ResourceIndexer[*v1alpha1.DataGather]
+ listers.ResourceIndexer[*insightsv1alpha1.DataGather]
}
// NewDataGatherLister returns a new DataGatherLister.
func NewDataGatherLister(indexer cache.Indexer) DataGatherLister {
- return &dataGatherLister{listers.New[*v1alpha1.DataGather](indexer, v1alpha1.Resource("datagather"))}
+ return &dataGatherLister{listers.New[*insightsv1alpha1.DataGather](indexer, insightsv1alpha1.Resource("datagather"))}
}
diff --git a/machine/applyconfigurations/internal/internal.go b/machine/applyconfigurations/internal/internal.go
index 2141bcab2..227d9aeea 100644
--- a/machine/applyconfigurations/internal/internal.go
+++ b/machine/applyconfigurations/internal/internal.go
@@ -3,8 +3,8 @@
package internal
import (
- "fmt"
- "sync"
+ fmt "fmt"
+ sync "sync"
typed "sigs.k8s.io/structured-merge-diff/v4/typed"
)
diff --git a/machine/applyconfigurations/machine/v1/awsresourcereference.go b/machine/applyconfigurations/machine/v1/awsresourcereference.go
index 84df3f381..8ff173c13 100644
--- a/machine/applyconfigurations/machine/v1/awsresourcereference.go
+++ b/machine/applyconfigurations/machine/v1/awsresourcereference.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/machine/v1"
+ machinev1 "github.com/openshift/api/machine/v1"
)
// AWSResourceReferenceApplyConfiguration represents a declarative configuration of the AWSResourceReference type for use
// with apply.
type AWSResourceReferenceApplyConfiguration struct {
- Type *v1.AWSResourceReferenceType `json:"type,omitempty"`
+ Type *machinev1.AWSResourceReferenceType `json:"type,omitempty"`
ID *string `json:"id,omitempty"`
ARN *string `json:"arn,omitempty"`
Filters *[]AWSResourceFilterApplyConfiguration `json:"filters,omitempty"`
@@ -24,7 +24,7 @@ func AWSResourceReference() *AWSResourceReferenceApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *AWSResourceReferenceApplyConfiguration) WithType(value v1.AWSResourceReferenceType) *AWSResourceReferenceApplyConfiguration {
+func (b *AWSResourceReferenceApplyConfiguration) WithType(value machinev1.AWSResourceReferenceType) *AWSResourceReferenceApplyConfiguration {
b.Type = &value
return b
}
diff --git a/machine/applyconfigurations/machine/v1/controlplanemachineset.go b/machine/applyconfigurations/machine/v1/controlplanemachineset.go
index e8bb7e930..aabd99b08 100644
--- a/machine/applyconfigurations/machine/v1/controlplanemachineset.go
+++ b/machine/applyconfigurations/machine/v1/controlplanemachineset.go
@@ -3,21 +3,21 @@
package v1
import (
- apimachinev1 "github.com/openshift/api/machine/v1"
+ machinev1 "github.com/openshift/api/machine/v1"
internal "github.com/openshift/client-go/machine/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ControlPlaneMachineSetApplyConfiguration represents a declarative configuration of the ControlPlaneMachineSet type for use
// with apply.
type ControlPlaneMachineSetApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *ControlPlaneMachineSetSpecApplyConfiguration `json:"spec,omitempty"`
- Status *ControlPlaneMachineSetStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *ControlPlaneMachineSetSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *ControlPlaneMachineSetStatusApplyConfiguration `json:"status,omitempty"`
}
// ControlPlaneMachineSet constructs a declarative configuration of the ControlPlaneMachineSet type for use with
@@ -42,18 +42,18 @@ func ControlPlaneMachineSet(name, namespace string) *ControlPlaneMachineSetApply
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractControlPlaneMachineSet(controlPlaneMachineSet *apimachinev1.ControlPlaneMachineSet, fieldManager string) (*ControlPlaneMachineSetApplyConfiguration, error) {
+func ExtractControlPlaneMachineSet(controlPlaneMachineSet *machinev1.ControlPlaneMachineSet, fieldManager string) (*ControlPlaneMachineSetApplyConfiguration, error) {
return extractControlPlaneMachineSet(controlPlaneMachineSet, fieldManager, "")
}
// ExtractControlPlaneMachineSetStatus is the same as ExtractControlPlaneMachineSet except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractControlPlaneMachineSetStatus(controlPlaneMachineSet *apimachinev1.ControlPlaneMachineSet, fieldManager string) (*ControlPlaneMachineSetApplyConfiguration, error) {
+func ExtractControlPlaneMachineSetStatus(controlPlaneMachineSet *machinev1.ControlPlaneMachineSet, fieldManager string) (*ControlPlaneMachineSetApplyConfiguration, error) {
return extractControlPlaneMachineSet(controlPlaneMachineSet, fieldManager, "status")
}
-func extractControlPlaneMachineSet(controlPlaneMachineSet *apimachinev1.ControlPlaneMachineSet, fieldManager string, subresource string) (*ControlPlaneMachineSetApplyConfiguration, error) {
+func extractControlPlaneMachineSet(controlPlaneMachineSet *machinev1.ControlPlaneMachineSet, fieldManager string, subresource string) (*ControlPlaneMachineSetApplyConfiguration, error) {
b := &ControlPlaneMachineSetApplyConfiguration{}
err := managedfields.ExtractInto(controlPlaneMachineSet, internal.Parser().Type("com.github.openshift.api.machine.v1.ControlPlaneMachineSet"), fieldManager, b, subresource)
if err != nil {
@@ -71,7 +71,7 @@ func extractControlPlaneMachineSet(controlPlaneMachineSet *apimachinev1.ControlP
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ControlPlaneMachineSetApplyConfiguration) WithKind(value string) *ControlPlaneMachineSetApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -79,7 +79,7 @@ func (b *ControlPlaneMachineSetApplyConfiguration) WithKind(value string) *Contr
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ControlPlaneMachineSetApplyConfiguration) WithAPIVersion(value string) *ControlPlaneMachineSetApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -88,7 +88,7 @@ func (b *ControlPlaneMachineSetApplyConfiguration) WithAPIVersion(value string)
// If called multiple times, the Name field is set to the value of the last call.
func (b *ControlPlaneMachineSetApplyConfiguration) WithName(value string) *ControlPlaneMachineSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -97,7 +97,7 @@ func (b *ControlPlaneMachineSetApplyConfiguration) WithName(value string) *Contr
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ControlPlaneMachineSetApplyConfiguration) WithGenerateName(value string) *ControlPlaneMachineSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -106,7 +106,7 @@ func (b *ControlPlaneMachineSetApplyConfiguration) WithGenerateName(value string
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ControlPlaneMachineSetApplyConfiguration) WithNamespace(value string) *ControlPlaneMachineSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -115,7 +115,7 @@ func (b *ControlPlaneMachineSetApplyConfiguration) WithNamespace(value string) *
// If called multiple times, the UID field is set to the value of the last call.
func (b *ControlPlaneMachineSetApplyConfiguration) WithUID(value types.UID) *ControlPlaneMachineSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -124,7 +124,7 @@ func (b *ControlPlaneMachineSetApplyConfiguration) WithUID(value types.UID) *Con
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ControlPlaneMachineSetApplyConfiguration) WithResourceVersion(value string) *ControlPlaneMachineSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -133,25 +133,25 @@ func (b *ControlPlaneMachineSetApplyConfiguration) WithResourceVersion(value str
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ControlPlaneMachineSetApplyConfiguration) WithGeneration(value int64) *ControlPlaneMachineSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *ControlPlaneMachineSetApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ControlPlaneMachineSetApplyConfiguration {
+func (b *ControlPlaneMachineSetApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ControlPlaneMachineSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *ControlPlaneMachineSetApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ControlPlaneMachineSetApplyConfiguration {
+func (b *ControlPlaneMachineSetApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ControlPlaneMachineSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -160,7 +160,7 @@ func (b *ControlPlaneMachineSetApplyConfiguration) WithDeletionTimestamp(value m
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ControlPlaneMachineSetApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ControlPlaneMachineSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -170,11 +170,11 @@ func (b *ControlPlaneMachineSetApplyConfiguration) WithDeletionGracePeriodSecond
// overwriting an existing map entries in Labels field with the same key.
func (b *ControlPlaneMachineSetApplyConfiguration) WithLabels(entries map[string]string) *ControlPlaneMachineSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -185,11 +185,11 @@ func (b *ControlPlaneMachineSetApplyConfiguration) WithLabels(entries map[string
// overwriting an existing map entries in Annotations field with the same key.
func (b *ControlPlaneMachineSetApplyConfiguration) WithAnnotations(entries map[string]string) *ControlPlaneMachineSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -197,13 +197,13 @@ func (b *ControlPlaneMachineSetApplyConfiguration) WithAnnotations(entries map[s
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *ControlPlaneMachineSetApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ControlPlaneMachineSetApplyConfiguration {
+func (b *ControlPlaneMachineSetApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ControlPlaneMachineSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -214,14 +214,14 @@ func (b *ControlPlaneMachineSetApplyConfiguration) WithOwnerReferences(values ..
func (b *ControlPlaneMachineSetApplyConfiguration) WithFinalizers(values ...string) *ControlPlaneMachineSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *ControlPlaneMachineSetApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -244,5 +244,5 @@ func (b *ControlPlaneMachineSetApplyConfiguration) WithStatus(value *ControlPlan
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ControlPlaneMachineSetApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/machine/applyconfigurations/machine/v1/controlplanemachinesetspec.go b/machine/applyconfigurations/machine/v1/controlplanemachinesetspec.go
index fe2e2159b..f03a1058c 100644
--- a/machine/applyconfigurations/machine/v1/controlplanemachinesetspec.go
+++ b/machine/applyconfigurations/machine/v1/controlplanemachinesetspec.go
@@ -3,7 +3,7 @@
package v1
import (
- v1 "github.com/openshift/api/machine/v1"
+ machinev1 "github.com/openshift/api/machine/v1"
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
@@ -11,7 +11,7 @@ import (
// with apply.
type ControlPlaneMachineSetSpecApplyConfiguration struct {
MachineNamePrefix *string `json:"machineNamePrefix,omitempty"`
- State *v1.ControlPlaneMachineSetState `json:"state,omitempty"`
+ State *machinev1.ControlPlaneMachineSetState `json:"state,omitempty"`
Replicas *int32 `json:"replicas,omitempty"`
Strategy *ControlPlaneMachineSetStrategyApplyConfiguration `json:"strategy,omitempty"`
Selector *metav1.LabelSelectorApplyConfiguration `json:"selector,omitempty"`
@@ -35,7 +35,7 @@ func (b *ControlPlaneMachineSetSpecApplyConfiguration) WithMachineNamePrefix(val
// WithState sets the State field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the State field is set to the value of the last call.
-func (b *ControlPlaneMachineSetSpecApplyConfiguration) WithState(value v1.ControlPlaneMachineSetState) *ControlPlaneMachineSetSpecApplyConfiguration {
+func (b *ControlPlaneMachineSetSpecApplyConfiguration) WithState(value machinev1.ControlPlaneMachineSetState) *ControlPlaneMachineSetSpecApplyConfiguration {
b.State = &value
return b
}
diff --git a/machine/applyconfigurations/machine/v1/controlplanemachinesetstatus.go b/machine/applyconfigurations/machine/v1/controlplanemachinesetstatus.go
index bf342282a..ae2d6f91f 100644
--- a/machine/applyconfigurations/machine/v1/controlplanemachinesetstatus.go
+++ b/machine/applyconfigurations/machine/v1/controlplanemachinesetstatus.go
@@ -3,18 +3,18 @@
package v1
import (
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ControlPlaneMachineSetStatusApplyConfiguration represents a declarative configuration of the ControlPlaneMachineSetStatus type for use
// with apply.
type ControlPlaneMachineSetStatusApplyConfiguration struct {
- Conditions []v1.ConditionApplyConfiguration `json:"conditions,omitempty"`
- ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
- Replicas *int32 `json:"replicas,omitempty"`
- ReadyReplicas *int32 `json:"readyReplicas,omitempty"`
- UpdatedReplicas *int32 `json:"updatedReplicas,omitempty"`
- UnavailableReplicas *int32 `json:"unavailableReplicas,omitempty"`
+ Conditions []metav1.ConditionApplyConfiguration `json:"conditions,omitempty"`
+ ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
+ Replicas *int32 `json:"replicas,omitempty"`
+ ReadyReplicas *int32 `json:"readyReplicas,omitempty"`
+ UpdatedReplicas *int32 `json:"updatedReplicas,omitempty"`
+ UnavailableReplicas *int32 `json:"unavailableReplicas,omitempty"`
}
// ControlPlaneMachineSetStatusApplyConfiguration constructs a declarative configuration of the ControlPlaneMachineSetStatus type for use with
@@ -26,7 +26,7 @@ func ControlPlaneMachineSetStatus() *ControlPlaneMachineSetStatusApplyConfigurat
// WithConditions adds the given value to the Conditions field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Conditions field.
-func (b *ControlPlaneMachineSetStatusApplyConfiguration) WithConditions(values ...*v1.ConditionApplyConfiguration) *ControlPlaneMachineSetStatusApplyConfiguration {
+func (b *ControlPlaneMachineSetStatusApplyConfiguration) WithConditions(values ...*metav1.ConditionApplyConfiguration) *ControlPlaneMachineSetStatusApplyConfiguration {
for i := range values {
if values[i] == nil {
panic("nil value passed to WithConditions")
diff --git a/machine/applyconfigurations/machine/v1/controlplanemachinesetstrategy.go b/machine/applyconfigurations/machine/v1/controlplanemachinesetstrategy.go
index e2f6c81f1..87b977954 100644
--- a/machine/applyconfigurations/machine/v1/controlplanemachinesetstrategy.go
+++ b/machine/applyconfigurations/machine/v1/controlplanemachinesetstrategy.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/machine/v1"
+ machinev1 "github.com/openshift/api/machine/v1"
)
// ControlPlaneMachineSetStrategyApplyConfiguration represents a declarative configuration of the ControlPlaneMachineSetStrategy type for use
// with apply.
type ControlPlaneMachineSetStrategyApplyConfiguration struct {
- Type *v1.ControlPlaneMachineSetStrategyType `json:"type,omitempty"`
+ Type *machinev1.ControlPlaneMachineSetStrategyType `json:"type,omitempty"`
}
// ControlPlaneMachineSetStrategyApplyConfiguration constructs a declarative configuration of the ControlPlaneMachineSetStrategy type for use with
@@ -21,7 +21,7 @@ func ControlPlaneMachineSetStrategy() *ControlPlaneMachineSetStrategyApplyConfig
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *ControlPlaneMachineSetStrategyApplyConfiguration) WithType(value v1.ControlPlaneMachineSetStrategyType) *ControlPlaneMachineSetStrategyApplyConfiguration {
+func (b *ControlPlaneMachineSetStrategyApplyConfiguration) WithType(value machinev1.ControlPlaneMachineSetStrategyType) *ControlPlaneMachineSetStrategyApplyConfiguration {
b.Type = &value
return b
}
diff --git a/machine/applyconfigurations/machine/v1/controlplanemachinesettemplate.go b/machine/applyconfigurations/machine/v1/controlplanemachinesettemplate.go
index 869caa3ab..99a89638b 100644
--- a/machine/applyconfigurations/machine/v1/controlplanemachinesettemplate.go
+++ b/machine/applyconfigurations/machine/v1/controlplanemachinesettemplate.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/machine/v1"
+ machinev1 "github.com/openshift/api/machine/v1"
)
// ControlPlaneMachineSetTemplateApplyConfiguration represents a declarative configuration of the ControlPlaneMachineSetTemplate type for use
// with apply.
type ControlPlaneMachineSetTemplateApplyConfiguration struct {
- MachineType *v1.ControlPlaneMachineSetMachineType `json:"machineType,omitempty"`
+ MachineType *machinev1.ControlPlaneMachineSetMachineType `json:"machineType,omitempty"`
OpenShiftMachineV1Beta1Machine *OpenShiftMachineV1Beta1MachineTemplateApplyConfiguration `json:"machines_v1beta1_machine_openshift_io,omitempty"`
}
@@ -22,7 +22,7 @@ func ControlPlaneMachineSetTemplate() *ControlPlaneMachineSetTemplateApplyConfig
// WithMachineType sets the MachineType field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the MachineType field is set to the value of the last call.
-func (b *ControlPlaneMachineSetTemplateApplyConfiguration) WithMachineType(value v1.ControlPlaneMachineSetMachineType) *ControlPlaneMachineSetTemplateApplyConfiguration {
+func (b *ControlPlaneMachineSetTemplateApplyConfiguration) WithMachineType(value machinev1.ControlPlaneMachineSetMachineType) *ControlPlaneMachineSetTemplateApplyConfiguration {
b.MachineType = &value
return b
}
diff --git a/machine/applyconfigurations/machine/v1/failuredomains.go b/machine/applyconfigurations/machine/v1/failuredomains.go
index 2672231d0..0a013687f 100644
--- a/machine/applyconfigurations/machine/v1/failuredomains.go
+++ b/machine/applyconfigurations/machine/v1/failuredomains.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// FailureDomainsApplyConfiguration represents a declarative configuration of the FailureDomains type for use
// with apply.
type FailureDomainsApplyConfiguration struct {
- Platform *v1.PlatformType `json:"platform,omitempty"`
+ Platform *configv1.PlatformType `json:"platform,omitempty"`
AWS *[]AWSFailureDomainApplyConfiguration `json:"aws,omitempty"`
Azure *[]AzureFailureDomainApplyConfiguration `json:"azure,omitempty"`
GCP *[]GCPFailureDomainApplyConfiguration `json:"gcp,omitempty"`
@@ -27,7 +27,7 @@ func FailureDomains() *FailureDomainsApplyConfiguration {
// WithPlatform sets the Platform field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Platform field is set to the value of the last call.
-func (b *FailureDomainsApplyConfiguration) WithPlatform(value v1.PlatformType) *FailureDomainsApplyConfiguration {
+func (b *FailureDomainsApplyConfiguration) WithPlatform(value configv1.PlatformType) *FailureDomainsApplyConfiguration {
b.Platform = &value
return b
}
diff --git a/machine/applyconfigurations/machine/v1beta1/condition.go b/machine/applyconfigurations/machine/v1beta1/condition.go
index 49e898dcb..5798b9913 100644
--- a/machine/applyconfigurations/machine/v1beta1/condition.go
+++ b/machine/applyconfigurations/machine/v1beta1/condition.go
@@ -3,7 +3,7 @@
package v1beta1
import (
- v1beta1 "github.com/openshift/api/machine/v1beta1"
+ machinev1beta1 "github.com/openshift/api/machine/v1beta1"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
@@ -11,12 +11,12 @@ import (
// ConditionApplyConfiguration represents a declarative configuration of the Condition type for use
// with apply.
type ConditionApplyConfiguration struct {
- Type *v1beta1.ConditionType `json:"type,omitempty"`
- Status *v1.ConditionStatus `json:"status,omitempty"`
- Severity *v1beta1.ConditionSeverity `json:"severity,omitempty"`
- LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
- Reason *string `json:"reason,omitempty"`
- Message *string `json:"message,omitempty"`
+ Type *machinev1beta1.ConditionType `json:"type,omitempty"`
+ Status *v1.ConditionStatus `json:"status,omitempty"`
+ Severity *machinev1beta1.ConditionSeverity `json:"severity,omitempty"`
+ LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
+ Reason *string `json:"reason,omitempty"`
+ Message *string `json:"message,omitempty"`
}
// ConditionApplyConfiguration constructs a declarative configuration of the Condition type for use with
@@ -28,7 +28,7 @@ func Condition() *ConditionApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *ConditionApplyConfiguration) WithType(value v1beta1.ConditionType) *ConditionApplyConfiguration {
+func (b *ConditionApplyConfiguration) WithType(value machinev1beta1.ConditionType) *ConditionApplyConfiguration {
b.Type = &value
return b
}
@@ -44,7 +44,7 @@ func (b *ConditionApplyConfiguration) WithStatus(value v1.ConditionStatus) *Cond
// WithSeverity sets the Severity field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Severity field is set to the value of the last call.
-func (b *ConditionApplyConfiguration) WithSeverity(value v1beta1.ConditionSeverity) *ConditionApplyConfiguration {
+func (b *ConditionApplyConfiguration) WithSeverity(value machinev1beta1.ConditionSeverity) *ConditionApplyConfiguration {
b.Severity = &value
return b
}
diff --git a/machine/applyconfigurations/machine/v1beta1/machine.go b/machine/applyconfigurations/machine/v1beta1/machine.go
index 4ac6311a3..8076a2624 100644
--- a/machine/applyconfigurations/machine/v1beta1/machine.go
+++ b/machine/applyconfigurations/machine/v1beta1/machine.go
@@ -71,7 +71,7 @@ func extractMachine(machine *machinev1beta1.Machine, fieldManager string, subres
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *MachineApplyConfiguration) WithKind(value string) *MachineApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -79,7 +79,7 @@ func (b *MachineApplyConfiguration) WithKind(value string) *MachineApplyConfigur
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *MachineApplyConfiguration) WithAPIVersion(value string) *MachineApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -88,7 +88,7 @@ func (b *MachineApplyConfiguration) WithAPIVersion(value string) *MachineApplyCo
// If called multiple times, the Name field is set to the value of the last call.
func (b *MachineApplyConfiguration) WithName(value string) *MachineApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -97,7 +97,7 @@ func (b *MachineApplyConfiguration) WithName(value string) *MachineApplyConfigur
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *MachineApplyConfiguration) WithGenerateName(value string) *MachineApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -106,7 +106,7 @@ func (b *MachineApplyConfiguration) WithGenerateName(value string) *MachineApply
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *MachineApplyConfiguration) WithNamespace(value string) *MachineApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -115,7 +115,7 @@ func (b *MachineApplyConfiguration) WithNamespace(value string) *MachineApplyCon
// If called multiple times, the UID field is set to the value of the last call.
func (b *MachineApplyConfiguration) WithUID(value types.UID) *MachineApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -124,7 +124,7 @@ func (b *MachineApplyConfiguration) WithUID(value types.UID) *MachineApplyConfig
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *MachineApplyConfiguration) WithResourceVersion(value string) *MachineApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -133,7 +133,7 @@ func (b *MachineApplyConfiguration) WithResourceVersion(value string) *MachineAp
// If called multiple times, the Generation field is set to the value of the last call.
func (b *MachineApplyConfiguration) WithGeneration(value int64) *MachineApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
@@ -142,7 +142,7 @@ func (b *MachineApplyConfiguration) WithGeneration(value int64) *MachineApplyCon
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
func (b *MachineApplyConfiguration) WithCreationTimestamp(value metav1.Time) *MachineApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
@@ -151,7 +151,7 @@ func (b *MachineApplyConfiguration) WithCreationTimestamp(value metav1.Time) *Ma
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
func (b *MachineApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *MachineApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -160,7 +160,7 @@ func (b *MachineApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *Ma
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *MachineApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *MachineApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -170,11 +170,11 @@ func (b *MachineApplyConfiguration) WithDeletionGracePeriodSeconds(value int64)
// overwriting an existing map entries in Labels field with the same key.
func (b *MachineApplyConfiguration) WithLabels(entries map[string]string) *MachineApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -185,11 +185,11 @@ func (b *MachineApplyConfiguration) WithLabels(entries map[string]string) *Machi
// overwriting an existing map entries in Annotations field with the same key.
func (b *MachineApplyConfiguration) WithAnnotations(entries map[string]string) *MachineApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -203,7 +203,7 @@ func (b *MachineApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefer
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -214,7 +214,7 @@ func (b *MachineApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefer
func (b *MachineApplyConfiguration) WithFinalizers(values ...string) *MachineApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
@@ -244,5 +244,5 @@ func (b *MachineApplyConfiguration) WithStatus(value *MachineStatusApplyConfigur
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *MachineApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/machine/applyconfigurations/machine/v1beta1/machinehealthcheck.go b/machine/applyconfigurations/machine/v1beta1/machinehealthcheck.go
index f81b469ee..1966d7835 100644
--- a/machine/applyconfigurations/machine/v1beta1/machinehealthcheck.go
+++ b/machine/applyconfigurations/machine/v1beta1/machinehealthcheck.go
@@ -71,7 +71,7 @@ func extractMachineHealthCheck(machineHealthCheck *machinev1beta1.MachineHealthC
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *MachineHealthCheckApplyConfiguration) WithKind(value string) *MachineHealthCheckApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -79,7 +79,7 @@ func (b *MachineHealthCheckApplyConfiguration) WithKind(value string) *MachineHe
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *MachineHealthCheckApplyConfiguration) WithAPIVersion(value string) *MachineHealthCheckApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -88,7 +88,7 @@ func (b *MachineHealthCheckApplyConfiguration) WithAPIVersion(value string) *Mac
// If called multiple times, the Name field is set to the value of the last call.
func (b *MachineHealthCheckApplyConfiguration) WithName(value string) *MachineHealthCheckApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -97,7 +97,7 @@ func (b *MachineHealthCheckApplyConfiguration) WithName(value string) *MachineHe
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *MachineHealthCheckApplyConfiguration) WithGenerateName(value string) *MachineHealthCheckApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -106,7 +106,7 @@ func (b *MachineHealthCheckApplyConfiguration) WithGenerateName(value string) *M
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *MachineHealthCheckApplyConfiguration) WithNamespace(value string) *MachineHealthCheckApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -115,7 +115,7 @@ func (b *MachineHealthCheckApplyConfiguration) WithNamespace(value string) *Mach
// If called multiple times, the UID field is set to the value of the last call.
func (b *MachineHealthCheckApplyConfiguration) WithUID(value types.UID) *MachineHealthCheckApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -124,7 +124,7 @@ func (b *MachineHealthCheckApplyConfiguration) WithUID(value types.UID) *Machine
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *MachineHealthCheckApplyConfiguration) WithResourceVersion(value string) *MachineHealthCheckApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -133,7 +133,7 @@ func (b *MachineHealthCheckApplyConfiguration) WithResourceVersion(value string)
// If called multiple times, the Generation field is set to the value of the last call.
func (b *MachineHealthCheckApplyConfiguration) WithGeneration(value int64) *MachineHealthCheckApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
@@ -142,7 +142,7 @@ func (b *MachineHealthCheckApplyConfiguration) WithGeneration(value int64) *Mach
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
func (b *MachineHealthCheckApplyConfiguration) WithCreationTimestamp(value metav1.Time) *MachineHealthCheckApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
@@ -151,7 +151,7 @@ func (b *MachineHealthCheckApplyConfiguration) WithCreationTimestamp(value metav
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
func (b *MachineHealthCheckApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *MachineHealthCheckApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -160,7 +160,7 @@ func (b *MachineHealthCheckApplyConfiguration) WithDeletionTimestamp(value metav
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *MachineHealthCheckApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *MachineHealthCheckApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -170,11 +170,11 @@ func (b *MachineHealthCheckApplyConfiguration) WithDeletionGracePeriodSeconds(va
// overwriting an existing map entries in Labels field with the same key.
func (b *MachineHealthCheckApplyConfiguration) WithLabels(entries map[string]string) *MachineHealthCheckApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -185,11 +185,11 @@ func (b *MachineHealthCheckApplyConfiguration) WithLabels(entries map[string]str
// overwriting an existing map entries in Annotations field with the same key.
func (b *MachineHealthCheckApplyConfiguration) WithAnnotations(entries map[string]string) *MachineHealthCheckApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -203,7 +203,7 @@ func (b *MachineHealthCheckApplyConfiguration) WithOwnerReferences(values ...*v1
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -214,7 +214,7 @@ func (b *MachineHealthCheckApplyConfiguration) WithOwnerReferences(values ...*v1
func (b *MachineHealthCheckApplyConfiguration) WithFinalizers(values ...string) *MachineHealthCheckApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
@@ -244,5 +244,5 @@ func (b *MachineHealthCheckApplyConfiguration) WithStatus(value *MachineHealthCh
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *MachineHealthCheckApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/machine/applyconfigurations/machine/v1beta1/machineset.go b/machine/applyconfigurations/machine/v1beta1/machineset.go
index ffbda1369..6d65c6256 100644
--- a/machine/applyconfigurations/machine/v1beta1/machineset.go
+++ b/machine/applyconfigurations/machine/v1beta1/machineset.go
@@ -71,7 +71,7 @@ func extractMachineSet(machineSet *machinev1beta1.MachineSet, fieldManager strin
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *MachineSetApplyConfiguration) WithKind(value string) *MachineSetApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -79,7 +79,7 @@ func (b *MachineSetApplyConfiguration) WithKind(value string) *MachineSetApplyCo
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *MachineSetApplyConfiguration) WithAPIVersion(value string) *MachineSetApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -88,7 +88,7 @@ func (b *MachineSetApplyConfiguration) WithAPIVersion(value string) *MachineSetA
// If called multiple times, the Name field is set to the value of the last call.
func (b *MachineSetApplyConfiguration) WithName(value string) *MachineSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -97,7 +97,7 @@ func (b *MachineSetApplyConfiguration) WithName(value string) *MachineSetApplyCo
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *MachineSetApplyConfiguration) WithGenerateName(value string) *MachineSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -106,7 +106,7 @@ func (b *MachineSetApplyConfiguration) WithGenerateName(value string) *MachineSe
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *MachineSetApplyConfiguration) WithNamespace(value string) *MachineSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -115,7 +115,7 @@ func (b *MachineSetApplyConfiguration) WithNamespace(value string) *MachineSetAp
// If called multiple times, the UID field is set to the value of the last call.
func (b *MachineSetApplyConfiguration) WithUID(value types.UID) *MachineSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -124,7 +124,7 @@ func (b *MachineSetApplyConfiguration) WithUID(value types.UID) *MachineSetApply
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *MachineSetApplyConfiguration) WithResourceVersion(value string) *MachineSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -133,7 +133,7 @@ func (b *MachineSetApplyConfiguration) WithResourceVersion(value string) *Machin
// If called multiple times, the Generation field is set to the value of the last call.
func (b *MachineSetApplyConfiguration) WithGeneration(value int64) *MachineSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
@@ -142,7 +142,7 @@ func (b *MachineSetApplyConfiguration) WithGeneration(value int64) *MachineSetAp
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
func (b *MachineSetApplyConfiguration) WithCreationTimestamp(value metav1.Time) *MachineSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
@@ -151,7 +151,7 @@ func (b *MachineSetApplyConfiguration) WithCreationTimestamp(value metav1.Time)
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
func (b *MachineSetApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *MachineSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -160,7 +160,7 @@ func (b *MachineSetApplyConfiguration) WithDeletionTimestamp(value metav1.Time)
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *MachineSetApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *MachineSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -170,11 +170,11 @@ func (b *MachineSetApplyConfiguration) WithDeletionGracePeriodSeconds(value int6
// overwriting an existing map entries in Labels field with the same key.
func (b *MachineSetApplyConfiguration) WithLabels(entries map[string]string) *MachineSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -185,11 +185,11 @@ func (b *MachineSetApplyConfiguration) WithLabels(entries map[string]string) *Ma
// overwriting an existing map entries in Annotations field with the same key.
func (b *MachineSetApplyConfiguration) WithAnnotations(entries map[string]string) *MachineSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -203,7 +203,7 @@ func (b *MachineSetApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRe
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -214,7 +214,7 @@ func (b *MachineSetApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRe
func (b *MachineSetApplyConfiguration) WithFinalizers(values ...string) *MachineSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
@@ -244,5 +244,5 @@ func (b *MachineSetApplyConfiguration) WithStatus(value *MachineSetStatusApplyCo
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *MachineSetApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/machine/applyconfigurations/machine/v1beta1/machinesetstatus.go b/machine/applyconfigurations/machine/v1beta1/machinesetstatus.go
index 11cf9bb14..583ee66b7 100644
--- a/machine/applyconfigurations/machine/v1beta1/machinesetstatus.go
+++ b/machine/applyconfigurations/machine/v1beta1/machinesetstatus.go
@@ -3,22 +3,22 @@
package v1beta1
import (
- v1beta1 "github.com/openshift/api/machine/v1beta1"
+ machinev1beta1 "github.com/openshift/api/machine/v1beta1"
)
// MachineSetStatusApplyConfiguration represents a declarative configuration of the MachineSetStatus type for use
// with apply.
type MachineSetStatusApplyConfiguration struct {
- Replicas *int32 `json:"replicas,omitempty"`
- FullyLabeledReplicas *int32 `json:"fullyLabeledReplicas,omitempty"`
- ReadyReplicas *int32 `json:"readyReplicas,omitempty"`
- AvailableReplicas *int32 `json:"availableReplicas,omitempty"`
- ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
- ErrorReason *v1beta1.MachineSetStatusError `json:"errorReason,omitempty"`
- ErrorMessage *string `json:"errorMessage,omitempty"`
- Conditions []ConditionApplyConfiguration `json:"conditions,omitempty"`
- AuthoritativeAPI *v1beta1.MachineAuthority `json:"authoritativeAPI,omitempty"`
- SynchronizedGeneration *int64 `json:"synchronizedGeneration,omitempty"`
+ Replicas *int32 `json:"replicas,omitempty"`
+ FullyLabeledReplicas *int32 `json:"fullyLabeledReplicas,omitempty"`
+ ReadyReplicas *int32 `json:"readyReplicas,omitempty"`
+ AvailableReplicas *int32 `json:"availableReplicas,omitempty"`
+ ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
+ ErrorReason *machinev1beta1.MachineSetStatusError `json:"errorReason,omitempty"`
+ ErrorMessage *string `json:"errorMessage,omitempty"`
+ Conditions []ConditionApplyConfiguration `json:"conditions,omitempty"`
+ AuthoritativeAPI *machinev1beta1.MachineAuthority `json:"authoritativeAPI,omitempty"`
+ SynchronizedGeneration *int64 `json:"synchronizedGeneration,omitempty"`
}
// MachineSetStatusApplyConfiguration constructs a declarative configuration of the MachineSetStatus type for use with
@@ -70,7 +70,7 @@ func (b *MachineSetStatusApplyConfiguration) WithObservedGeneration(value int64)
// WithErrorReason sets the ErrorReason field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ErrorReason field is set to the value of the last call.
-func (b *MachineSetStatusApplyConfiguration) WithErrorReason(value v1beta1.MachineSetStatusError) *MachineSetStatusApplyConfiguration {
+func (b *MachineSetStatusApplyConfiguration) WithErrorReason(value machinev1beta1.MachineSetStatusError) *MachineSetStatusApplyConfiguration {
b.ErrorReason = &value
return b
}
@@ -99,7 +99,7 @@ func (b *MachineSetStatusApplyConfiguration) WithConditions(values ...*Condition
// WithAuthoritativeAPI sets the AuthoritativeAPI field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the AuthoritativeAPI field is set to the value of the last call.
-func (b *MachineSetStatusApplyConfiguration) WithAuthoritativeAPI(value v1beta1.MachineAuthority) *MachineSetStatusApplyConfiguration {
+func (b *MachineSetStatusApplyConfiguration) WithAuthoritativeAPI(value machinev1beta1.MachineAuthority) *MachineSetStatusApplyConfiguration {
b.AuthoritativeAPI = &value
return b
}
diff --git a/machine/applyconfigurations/machine/v1beta1/machinespec.go b/machine/applyconfigurations/machine/v1beta1/machinespec.go
index 25e742c58..a2a1d91c6 100644
--- a/machine/applyconfigurations/machine/v1beta1/machinespec.go
+++ b/machine/applyconfigurations/machine/v1beta1/machinespec.go
@@ -30,7 +30,7 @@ func MachineSpec() *MachineSpecApplyConfiguration {
// If called multiple times, the Name field is set to the value of the last call.
func (b *MachineSpecApplyConfiguration) WithName(value string) *MachineSpecApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -39,7 +39,7 @@ func (b *MachineSpecApplyConfiguration) WithName(value string) *MachineSpecApply
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *MachineSpecApplyConfiguration) WithGenerateName(value string) *MachineSpecApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -48,7 +48,7 @@ func (b *MachineSpecApplyConfiguration) WithGenerateName(value string) *MachineS
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *MachineSpecApplyConfiguration) WithNamespace(value string) *MachineSpecApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -58,11 +58,11 @@ func (b *MachineSpecApplyConfiguration) WithNamespace(value string) *MachineSpec
// overwriting an existing map entries in Labels field with the same key.
func (b *MachineSpecApplyConfiguration) WithLabels(entries map[string]string) *MachineSpecApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -73,11 +73,11 @@ func (b *MachineSpecApplyConfiguration) WithLabels(entries map[string]string) *M
// overwriting an existing map entries in Annotations field with the same key.
func (b *MachineSpecApplyConfiguration) WithAnnotations(entries map[string]string) *MachineSpecApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -91,7 +91,7 @@ func (b *MachineSpecApplyConfiguration) WithOwnerReferences(values ...*metav1.Ow
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
diff --git a/machine/applyconfigurations/machine/v1beta1/machinestatus.go b/machine/applyconfigurations/machine/v1beta1/machinestatus.go
index acadb0b0d..ab4a2632c 100644
--- a/machine/applyconfigurations/machine/v1beta1/machinestatus.go
+++ b/machine/applyconfigurations/machine/v1beta1/machinestatus.go
@@ -3,7 +3,7 @@
package v1beta1
import (
- v1beta1 "github.com/openshift/api/machine/v1beta1"
+ machinev1beta1 "github.com/openshift/api/machine/v1beta1"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
@@ -12,17 +12,17 @@ import (
// MachineStatusApplyConfiguration represents a declarative configuration of the MachineStatus type for use
// with apply.
type MachineStatusApplyConfiguration struct {
- NodeRef *v1.ObjectReference `json:"nodeRef,omitempty"`
- LastUpdated *metav1.Time `json:"lastUpdated,omitempty"`
- ErrorReason *v1beta1.MachineStatusError `json:"errorReason,omitempty"`
- ErrorMessage *string `json:"errorMessage,omitempty"`
- ProviderStatus *runtime.RawExtension `json:"providerStatus,omitempty"`
- Addresses []v1.NodeAddress `json:"addresses,omitempty"`
- LastOperation *LastOperationApplyConfiguration `json:"lastOperation,omitempty"`
- Phase *string `json:"phase,omitempty"`
- Conditions []ConditionApplyConfiguration `json:"conditions,omitempty"`
- AuthoritativeAPI *v1beta1.MachineAuthority `json:"authoritativeAPI,omitempty"`
- SynchronizedGeneration *int64 `json:"synchronizedGeneration,omitempty"`
+ NodeRef *v1.ObjectReference `json:"nodeRef,omitempty"`
+ LastUpdated *metav1.Time `json:"lastUpdated,omitempty"`
+ ErrorReason *machinev1beta1.MachineStatusError `json:"errorReason,omitempty"`
+ ErrorMessage *string `json:"errorMessage,omitempty"`
+ ProviderStatus *runtime.RawExtension `json:"providerStatus,omitempty"`
+ Addresses []v1.NodeAddress `json:"addresses,omitempty"`
+ LastOperation *LastOperationApplyConfiguration `json:"lastOperation,omitempty"`
+ Phase *string `json:"phase,omitempty"`
+ Conditions []ConditionApplyConfiguration `json:"conditions,omitempty"`
+ AuthoritativeAPI *machinev1beta1.MachineAuthority `json:"authoritativeAPI,omitempty"`
+ SynchronizedGeneration *int64 `json:"synchronizedGeneration,omitempty"`
}
// MachineStatusApplyConfiguration constructs a declarative configuration of the MachineStatus type for use with
@@ -50,7 +50,7 @@ func (b *MachineStatusApplyConfiguration) WithLastUpdated(value metav1.Time) *Ma
// WithErrorReason sets the ErrorReason field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ErrorReason field is set to the value of the last call.
-func (b *MachineStatusApplyConfiguration) WithErrorReason(value v1beta1.MachineStatusError) *MachineStatusApplyConfiguration {
+func (b *MachineStatusApplyConfiguration) WithErrorReason(value machinev1beta1.MachineStatusError) *MachineStatusApplyConfiguration {
b.ErrorReason = &value
return b
}
@@ -113,7 +113,7 @@ func (b *MachineStatusApplyConfiguration) WithConditions(values ...*ConditionApp
// WithAuthoritativeAPI sets the AuthoritativeAPI field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the AuthoritativeAPI field is set to the value of the last call.
-func (b *MachineStatusApplyConfiguration) WithAuthoritativeAPI(value v1beta1.MachineAuthority) *MachineStatusApplyConfiguration {
+func (b *MachineStatusApplyConfiguration) WithAuthoritativeAPI(value machinev1beta1.MachineAuthority) *MachineStatusApplyConfiguration {
b.AuthoritativeAPI = &value
return b
}
diff --git a/machine/applyconfigurations/machine/v1beta1/machinetemplatespec.go b/machine/applyconfigurations/machine/v1beta1/machinetemplatespec.go
index 329b999eb..4045a3d4f 100644
--- a/machine/applyconfigurations/machine/v1beta1/machinetemplatespec.go
+++ b/machine/applyconfigurations/machine/v1beta1/machinetemplatespec.go
@@ -24,7 +24,7 @@ func MachineTemplateSpec() *MachineTemplateSpecApplyConfiguration {
// If called multiple times, the Name field is set to the value of the last call.
func (b *MachineTemplateSpecApplyConfiguration) WithName(value string) *MachineTemplateSpecApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -33,7 +33,7 @@ func (b *MachineTemplateSpecApplyConfiguration) WithName(value string) *MachineT
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *MachineTemplateSpecApplyConfiguration) WithGenerateName(value string) *MachineTemplateSpecApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -42,7 +42,7 @@ func (b *MachineTemplateSpecApplyConfiguration) WithGenerateName(value string) *
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *MachineTemplateSpecApplyConfiguration) WithNamespace(value string) *MachineTemplateSpecApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -52,11 +52,11 @@ func (b *MachineTemplateSpecApplyConfiguration) WithNamespace(value string) *Mac
// overwriting an existing map entries in Labels field with the same key.
func (b *MachineTemplateSpecApplyConfiguration) WithLabels(entries map[string]string) *MachineTemplateSpecApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -67,11 +67,11 @@ func (b *MachineTemplateSpecApplyConfiguration) WithLabels(entries map[string]st
// overwriting an existing map entries in Annotations field with the same key.
func (b *MachineTemplateSpecApplyConfiguration) WithAnnotations(entries map[string]string) *MachineTemplateSpecApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -85,7 +85,7 @@ func (b *MachineTemplateSpecApplyConfiguration) WithOwnerReferences(values ...*v
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
diff --git a/machine/clientset/versioned/clientset.go b/machine/clientset/versioned/clientset.go
index 327fc350f..dbfaf7d27 100644
--- a/machine/clientset/versioned/clientset.go
+++ b/machine/clientset/versioned/clientset.go
@@ -3,8 +3,8 @@
package versioned
import (
- "fmt"
- "net/http"
+ fmt "fmt"
+ http "net/http"
machinev1 "github.com/openshift/client-go/machine/clientset/versioned/typed/machine/v1"
machinev1beta1 "github.com/openshift/client-go/machine/clientset/versioned/typed/machine/v1beta1"
diff --git a/machine/clientset/versioned/typed/machine/v1/controlplanemachineset.go b/machine/clientset/versioned/typed/machine/v1/controlplanemachineset.go
index 97780cbe1..bd66c772f 100644
--- a/machine/clientset/versioned/typed/machine/v1/controlplanemachineset.go
+++ b/machine/clientset/versioned/typed/machine/v1/controlplanemachineset.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/machine/v1"
- machinev1 "github.com/openshift/client-go/machine/applyconfigurations/machine/v1"
+ machinev1 "github.com/openshift/api/machine/v1"
+ applyconfigurationsmachinev1 "github.com/openshift/client-go/machine/applyconfigurations/machine/v1"
scheme "github.com/openshift/client-go/machine/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type ControlPlaneMachineSetsGetter interface {
// ControlPlaneMachineSetInterface has methods to work with ControlPlaneMachineSet resources.
type ControlPlaneMachineSetInterface interface {
- Create(ctx context.Context, controlPlaneMachineSet *v1.ControlPlaneMachineSet, opts metav1.CreateOptions) (*v1.ControlPlaneMachineSet, error)
- Update(ctx context.Context, controlPlaneMachineSet *v1.ControlPlaneMachineSet, opts metav1.UpdateOptions) (*v1.ControlPlaneMachineSet, error)
+ Create(ctx context.Context, controlPlaneMachineSet *machinev1.ControlPlaneMachineSet, opts metav1.CreateOptions) (*machinev1.ControlPlaneMachineSet, error)
+ Update(ctx context.Context, controlPlaneMachineSet *machinev1.ControlPlaneMachineSet, opts metav1.UpdateOptions) (*machinev1.ControlPlaneMachineSet, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, controlPlaneMachineSet *v1.ControlPlaneMachineSet, opts metav1.UpdateOptions) (*v1.ControlPlaneMachineSet, error)
+ UpdateStatus(ctx context.Context, controlPlaneMachineSet *machinev1.ControlPlaneMachineSet, opts metav1.UpdateOptions) (*machinev1.ControlPlaneMachineSet, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ControlPlaneMachineSet, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.ControlPlaneMachineSetList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*machinev1.ControlPlaneMachineSet, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*machinev1.ControlPlaneMachineSetList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ControlPlaneMachineSet, err error)
- Apply(ctx context.Context, controlPlaneMachineSet *machinev1.ControlPlaneMachineSetApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ControlPlaneMachineSet, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *machinev1.ControlPlaneMachineSet, err error)
+ Apply(ctx context.Context, controlPlaneMachineSet *applyconfigurationsmachinev1.ControlPlaneMachineSetApplyConfiguration, opts metav1.ApplyOptions) (result *machinev1.ControlPlaneMachineSet, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, controlPlaneMachineSet *machinev1.ControlPlaneMachineSetApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ControlPlaneMachineSet, err error)
+ ApplyStatus(ctx context.Context, controlPlaneMachineSet *applyconfigurationsmachinev1.ControlPlaneMachineSetApplyConfiguration, opts metav1.ApplyOptions) (result *machinev1.ControlPlaneMachineSet, err error)
ControlPlaneMachineSetExpansion
}
// controlPlaneMachineSets implements ControlPlaneMachineSetInterface
type controlPlaneMachineSets struct {
- *gentype.ClientWithListAndApply[*v1.ControlPlaneMachineSet, *v1.ControlPlaneMachineSetList, *machinev1.ControlPlaneMachineSetApplyConfiguration]
+ *gentype.ClientWithListAndApply[*machinev1.ControlPlaneMachineSet, *machinev1.ControlPlaneMachineSetList, *applyconfigurationsmachinev1.ControlPlaneMachineSetApplyConfiguration]
}
// newControlPlaneMachineSets returns a ControlPlaneMachineSets
func newControlPlaneMachineSets(c *MachineV1Client, namespace string) *controlPlaneMachineSets {
return &controlPlaneMachineSets{
- gentype.NewClientWithListAndApply[*v1.ControlPlaneMachineSet, *v1.ControlPlaneMachineSetList, *machinev1.ControlPlaneMachineSetApplyConfiguration](
+ gentype.NewClientWithListAndApply[*machinev1.ControlPlaneMachineSet, *machinev1.ControlPlaneMachineSetList, *applyconfigurationsmachinev1.ControlPlaneMachineSetApplyConfiguration](
"controlplanemachinesets",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
- func() *v1.ControlPlaneMachineSet { return &v1.ControlPlaneMachineSet{} },
- func() *v1.ControlPlaneMachineSetList { return &v1.ControlPlaneMachineSetList{} }),
+ func() *machinev1.ControlPlaneMachineSet { return &machinev1.ControlPlaneMachineSet{} },
+ func() *machinev1.ControlPlaneMachineSetList { return &machinev1.ControlPlaneMachineSetList{} },
+ ),
}
}
diff --git a/machine/clientset/versioned/typed/machine/v1/fake/fake_controlplanemachineset.go b/machine/clientset/versioned/typed/machine/v1/fake/fake_controlplanemachineset.go
index 710b87b0f..f70c87741 100644
--- a/machine/clientset/versioned/typed/machine/v1/fake/fake_controlplanemachineset.go
+++ b/machine/clientset/versioned/typed/machine/v1/fake/fake_controlplanemachineset.go
@@ -3,179 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/machine/v1"
machinev1 "github.com/openshift/client-go/machine/applyconfigurations/machine/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedmachinev1 "github.com/openshift/client-go/machine/clientset/versioned/typed/machine/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeControlPlaneMachineSets implements ControlPlaneMachineSetInterface
-type FakeControlPlaneMachineSets struct {
+// fakeControlPlaneMachineSets implements ControlPlaneMachineSetInterface
+type fakeControlPlaneMachineSets struct {
+ *gentype.FakeClientWithListAndApply[*v1.ControlPlaneMachineSet, *v1.ControlPlaneMachineSetList, *machinev1.ControlPlaneMachineSetApplyConfiguration]
Fake *FakeMachineV1
- ns string
-}
-
-var controlplanemachinesetsResource = v1.SchemeGroupVersion.WithResource("controlplanemachinesets")
-
-var controlplanemachinesetsKind = v1.SchemeGroupVersion.WithKind("ControlPlaneMachineSet")
-
-// Get takes name of the controlPlaneMachineSet, and returns the corresponding controlPlaneMachineSet object, and an error if there is any.
-func (c *FakeControlPlaneMachineSets) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ControlPlaneMachineSet, err error) {
- emptyResult := &v1.ControlPlaneMachineSet{}
- obj, err := c.Fake.
- Invokes(testing.NewGetActionWithOptions(controlplanemachinesetsResource, c.ns, name, options), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ControlPlaneMachineSet), err
-}
-
-// List takes label and field selectors, and returns the list of ControlPlaneMachineSets that match those selectors.
-func (c *FakeControlPlaneMachineSets) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ControlPlaneMachineSetList, err error) {
- emptyResult := &v1.ControlPlaneMachineSetList{}
- obj, err := c.Fake.
- Invokes(testing.NewListActionWithOptions(controlplanemachinesetsResource, controlplanemachinesetsKind, c.ns, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.ControlPlaneMachineSetList{ListMeta: obj.(*v1.ControlPlaneMachineSetList).ListMeta}
- for _, item := range obj.(*v1.ControlPlaneMachineSetList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested controlPlaneMachineSets.
-func (c *FakeControlPlaneMachineSets) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewWatchActionWithOptions(controlplanemachinesetsResource, c.ns, opts))
-
-}
-
-// Create takes the representation of a controlPlaneMachineSet and creates it. Returns the server's representation of the controlPlaneMachineSet, and an error, if there is any.
-func (c *FakeControlPlaneMachineSets) Create(ctx context.Context, controlPlaneMachineSet *v1.ControlPlaneMachineSet, opts metav1.CreateOptions) (result *v1.ControlPlaneMachineSet, err error) {
- emptyResult := &v1.ControlPlaneMachineSet{}
- obj, err := c.Fake.
- Invokes(testing.NewCreateActionWithOptions(controlplanemachinesetsResource, c.ns, controlPlaneMachineSet, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ControlPlaneMachineSet), err
-}
-
-// Update takes the representation of a controlPlaneMachineSet and updates it. Returns the server's representation of the controlPlaneMachineSet, and an error, if there is any.
-func (c *FakeControlPlaneMachineSets) Update(ctx context.Context, controlPlaneMachineSet *v1.ControlPlaneMachineSet, opts metav1.UpdateOptions) (result *v1.ControlPlaneMachineSet, err error) {
- emptyResult := &v1.ControlPlaneMachineSet{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateActionWithOptions(controlplanemachinesetsResource, c.ns, controlPlaneMachineSet, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ControlPlaneMachineSet), err
}
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeControlPlaneMachineSets) UpdateStatus(ctx context.Context, controlPlaneMachineSet *v1.ControlPlaneMachineSet, opts metav1.UpdateOptions) (result *v1.ControlPlaneMachineSet, err error) {
- emptyResult := &v1.ControlPlaneMachineSet{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateSubresourceActionWithOptions(controlplanemachinesetsResource, "status", c.ns, controlPlaneMachineSet, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ControlPlaneMachineSet), err
-}
-
-// Delete takes name of the controlPlaneMachineSet and deletes it. Returns an error if one occurs.
-func (c *FakeControlPlaneMachineSets) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewDeleteActionWithOptions(controlplanemachinesetsResource, c.ns, name, opts), &v1.ControlPlaneMachineSet{})
-
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeControlPlaneMachineSets) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewDeleteCollectionActionWithOptions(controlplanemachinesetsResource, c.ns, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.ControlPlaneMachineSetList{})
- return err
-}
-
-// Patch applies the patch and returns the patched controlPlaneMachineSet.
-func (c *FakeControlPlaneMachineSets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ControlPlaneMachineSet, err error) {
- emptyResult := &v1.ControlPlaneMachineSet{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(controlplanemachinesetsResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ControlPlaneMachineSet), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied controlPlaneMachineSet.
-func (c *FakeControlPlaneMachineSets) Apply(ctx context.Context, controlPlaneMachineSet *machinev1.ControlPlaneMachineSetApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ControlPlaneMachineSet, err error) {
- if controlPlaneMachineSet == nil {
- return nil, fmt.Errorf("controlPlaneMachineSet provided to Apply must not be nil")
- }
- data, err := json.Marshal(controlPlaneMachineSet)
- if err != nil {
- return nil, err
- }
- name := controlPlaneMachineSet.Name
- if name == nil {
- return nil, fmt.Errorf("controlPlaneMachineSet.Name must be provided to Apply")
- }
- emptyResult := &v1.ControlPlaneMachineSet{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(controlplanemachinesetsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ControlPlaneMachineSet), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeControlPlaneMachineSets) ApplyStatus(ctx context.Context, controlPlaneMachineSet *machinev1.ControlPlaneMachineSetApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ControlPlaneMachineSet, err error) {
- if controlPlaneMachineSet == nil {
- return nil, fmt.Errorf("controlPlaneMachineSet provided to Apply must not be nil")
- }
- data, err := json.Marshal(controlPlaneMachineSet)
- if err != nil {
- return nil, err
- }
- name := controlPlaneMachineSet.Name
- if name == nil {
- return nil, fmt.Errorf("controlPlaneMachineSet.Name must be provided to Apply")
- }
- emptyResult := &v1.ControlPlaneMachineSet{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(controlplanemachinesetsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
-
- if obj == nil {
- return emptyResult, err
+func newFakeControlPlaneMachineSets(fake *FakeMachineV1, namespace string) typedmachinev1.ControlPlaneMachineSetInterface {
+ return &fakeControlPlaneMachineSets{
+ gentype.NewFakeClientWithListAndApply[*v1.ControlPlaneMachineSet, *v1.ControlPlaneMachineSetList, *machinev1.ControlPlaneMachineSetApplyConfiguration](
+ fake.Fake,
+ namespace,
+ v1.SchemeGroupVersion.WithResource("controlplanemachinesets"),
+ v1.SchemeGroupVersion.WithKind("ControlPlaneMachineSet"),
+ func() *v1.ControlPlaneMachineSet { return &v1.ControlPlaneMachineSet{} },
+ func() *v1.ControlPlaneMachineSetList { return &v1.ControlPlaneMachineSetList{} },
+ func(dst, src *v1.ControlPlaneMachineSetList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.ControlPlaneMachineSetList) []*v1.ControlPlaneMachineSet {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1.ControlPlaneMachineSetList, items []*v1.ControlPlaneMachineSet) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.ControlPlaneMachineSet), err
}
diff --git a/machine/clientset/versioned/typed/machine/v1/fake/fake_machine_client.go b/machine/clientset/versioned/typed/machine/v1/fake/fake_machine_client.go
index 8e4593545..d78dc16eb 100644
--- a/machine/clientset/versioned/typed/machine/v1/fake/fake_machine_client.go
+++ b/machine/clientset/versioned/typed/machine/v1/fake/fake_machine_client.go
@@ -13,7 +13,7 @@ type FakeMachineV1 struct {
}
func (c *FakeMachineV1) ControlPlaneMachineSets(namespace string) v1.ControlPlaneMachineSetInterface {
- return &FakeControlPlaneMachineSets{c, namespace}
+ return newFakeControlPlaneMachineSets(c, namespace)
}
// RESTClient returns a RESTClient that is used to communicate
diff --git a/machine/clientset/versioned/typed/machine/v1/machine_client.go b/machine/clientset/versioned/typed/machine/v1/machine_client.go
index cc8837e7b..7b25ef933 100644
--- a/machine/clientset/versioned/typed/machine/v1/machine_client.go
+++ b/machine/clientset/versioned/typed/machine/v1/machine_client.go
@@ -3,10 +3,10 @@
package v1
import (
- "net/http"
+ http "net/http"
- v1 "github.com/openshift/api/machine/v1"
- "github.com/openshift/client-go/machine/clientset/versioned/scheme"
+ machinev1 "github.com/openshift/api/machine/v1"
+ scheme "github.com/openshift/client-go/machine/clientset/versioned/scheme"
rest "k8s.io/client-go/rest"
)
@@ -69,10 +69,10 @@ func New(c rest.Interface) *MachineV1Client {
}
func setConfigDefaults(config *rest.Config) error {
- gv := v1.SchemeGroupVersion
+ gv := machinev1.SchemeGroupVersion
config.GroupVersion = &gv
config.APIPath = "/apis"
- config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
+ config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion()
if config.UserAgent == "" {
config.UserAgent = rest.DefaultKubernetesUserAgent()
diff --git a/machine/clientset/versioned/typed/machine/v1beta1/fake/fake_machine.go b/machine/clientset/versioned/typed/machine/v1beta1/fake/fake_machine.go
index cbc5cfaea..3659217ad 100644
--- a/machine/clientset/versioned/typed/machine/v1beta1/fake/fake_machine.go
+++ b/machine/clientset/versioned/typed/machine/v1beta1/fake/fake_machine.go
@@ -3,179 +3,33 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1beta1 "github.com/openshift/api/machine/v1beta1"
machinev1beta1 "github.com/openshift/client-go/machine/applyconfigurations/machine/v1beta1"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedmachinev1beta1 "github.com/openshift/client-go/machine/clientset/versioned/typed/machine/v1beta1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeMachines implements MachineInterface
-type FakeMachines struct {
+// fakeMachines implements MachineInterface
+type fakeMachines struct {
+ *gentype.FakeClientWithListAndApply[*v1beta1.Machine, *v1beta1.MachineList, *machinev1beta1.MachineApplyConfiguration]
Fake *FakeMachineV1beta1
- ns string
-}
-
-var machinesResource = v1beta1.SchemeGroupVersion.WithResource("machines")
-
-var machinesKind = v1beta1.SchemeGroupVersion.WithKind("Machine")
-
-// Get takes name of the machine, and returns the corresponding machine object, and an error if there is any.
-func (c *FakeMachines) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Machine, err error) {
- emptyResult := &v1beta1.Machine{}
- obj, err := c.Fake.
- Invokes(testing.NewGetActionWithOptions(machinesResource, c.ns, name, options), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1beta1.Machine), err
-}
-
-// List takes label and field selectors, and returns the list of Machines that match those selectors.
-func (c *FakeMachines) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.MachineList, err error) {
- emptyResult := &v1beta1.MachineList{}
- obj, err := c.Fake.
- Invokes(testing.NewListActionWithOptions(machinesResource, machinesKind, c.ns, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1beta1.MachineList{ListMeta: obj.(*v1beta1.MachineList).ListMeta}
- for _, item := range obj.(*v1beta1.MachineList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested machines.
-func (c *FakeMachines) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewWatchActionWithOptions(machinesResource, c.ns, opts))
-
-}
-
-// Create takes the representation of a machine and creates it. Returns the server's representation of the machine, and an error, if there is any.
-func (c *FakeMachines) Create(ctx context.Context, machine *v1beta1.Machine, opts v1.CreateOptions) (result *v1beta1.Machine, err error) {
- emptyResult := &v1beta1.Machine{}
- obj, err := c.Fake.
- Invokes(testing.NewCreateActionWithOptions(machinesResource, c.ns, machine, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1beta1.Machine), err
-}
-
-// Update takes the representation of a machine and updates it. Returns the server's representation of the machine, and an error, if there is any.
-func (c *FakeMachines) Update(ctx context.Context, machine *v1beta1.Machine, opts v1.UpdateOptions) (result *v1beta1.Machine, err error) {
- emptyResult := &v1beta1.Machine{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateActionWithOptions(machinesResource, c.ns, machine, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1beta1.Machine), err
}
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeMachines) UpdateStatus(ctx context.Context, machine *v1beta1.Machine, opts v1.UpdateOptions) (result *v1beta1.Machine, err error) {
- emptyResult := &v1beta1.Machine{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateSubresourceActionWithOptions(machinesResource, "status", c.ns, machine, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1beta1.Machine), err
-}
-
-// Delete takes name of the machine and deletes it. Returns an error if one occurs.
-func (c *FakeMachines) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewDeleteActionWithOptions(machinesResource, c.ns, name, opts), &v1beta1.Machine{})
-
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeMachines) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewDeleteCollectionActionWithOptions(machinesResource, c.ns, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1beta1.MachineList{})
- return err
-}
-
-// Patch applies the patch and returns the patched machine.
-func (c *FakeMachines) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.Machine, err error) {
- emptyResult := &v1beta1.Machine{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(machinesResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1beta1.Machine), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied machine.
-func (c *FakeMachines) Apply(ctx context.Context, machine *machinev1beta1.MachineApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.Machine, err error) {
- if machine == nil {
- return nil, fmt.Errorf("machine provided to Apply must not be nil")
- }
- data, err := json.Marshal(machine)
- if err != nil {
- return nil, err
- }
- name := machine.Name
- if name == nil {
- return nil, fmt.Errorf("machine.Name must be provided to Apply")
- }
- emptyResult := &v1beta1.Machine{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(machinesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1beta1.Machine), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeMachines) ApplyStatus(ctx context.Context, machine *machinev1beta1.MachineApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.Machine, err error) {
- if machine == nil {
- return nil, fmt.Errorf("machine provided to Apply must not be nil")
- }
- data, err := json.Marshal(machine)
- if err != nil {
- return nil, err
- }
- name := machine.Name
- if name == nil {
- return nil, fmt.Errorf("machine.Name must be provided to Apply")
- }
- emptyResult := &v1beta1.Machine{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(machinesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
-
- if obj == nil {
- return emptyResult, err
+func newFakeMachines(fake *FakeMachineV1beta1, namespace string) typedmachinev1beta1.MachineInterface {
+ return &fakeMachines{
+ gentype.NewFakeClientWithListAndApply[*v1beta1.Machine, *v1beta1.MachineList, *machinev1beta1.MachineApplyConfiguration](
+ fake.Fake,
+ namespace,
+ v1beta1.SchemeGroupVersion.WithResource("machines"),
+ v1beta1.SchemeGroupVersion.WithKind("Machine"),
+ func() *v1beta1.Machine { return &v1beta1.Machine{} },
+ func() *v1beta1.MachineList { return &v1beta1.MachineList{} },
+ func(dst, src *v1beta1.MachineList) { dst.ListMeta = src.ListMeta },
+ func(list *v1beta1.MachineList) []*v1beta1.Machine { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1beta1.MachineList, items []*v1beta1.Machine) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1beta1.Machine), err
}
diff --git a/machine/clientset/versioned/typed/machine/v1beta1/fake/fake_machine_client.go b/machine/clientset/versioned/typed/machine/v1beta1/fake/fake_machine_client.go
index f6dd022d4..205fe6f8a 100644
--- a/machine/clientset/versioned/typed/machine/v1beta1/fake/fake_machine_client.go
+++ b/machine/clientset/versioned/typed/machine/v1beta1/fake/fake_machine_client.go
@@ -13,15 +13,15 @@ type FakeMachineV1beta1 struct {
}
func (c *FakeMachineV1beta1) Machines(namespace string) v1beta1.MachineInterface {
- return &FakeMachines{c, namespace}
+ return newFakeMachines(c, namespace)
}
func (c *FakeMachineV1beta1) MachineHealthChecks(namespace string) v1beta1.MachineHealthCheckInterface {
- return &FakeMachineHealthChecks{c, namespace}
+ return newFakeMachineHealthChecks(c, namespace)
}
func (c *FakeMachineV1beta1) MachineSets(namespace string) v1beta1.MachineSetInterface {
- return &FakeMachineSets{c, namespace}
+ return newFakeMachineSets(c, namespace)
}
// RESTClient returns a RESTClient that is used to communicate
diff --git a/machine/clientset/versioned/typed/machine/v1beta1/fake/fake_machinehealthcheck.go b/machine/clientset/versioned/typed/machine/v1beta1/fake/fake_machinehealthcheck.go
index e8394abac..eccd715dd 100644
--- a/machine/clientset/versioned/typed/machine/v1beta1/fake/fake_machinehealthcheck.go
+++ b/machine/clientset/versioned/typed/machine/v1beta1/fake/fake_machinehealthcheck.go
@@ -3,179 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1beta1 "github.com/openshift/api/machine/v1beta1"
machinev1beta1 "github.com/openshift/client-go/machine/applyconfigurations/machine/v1beta1"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedmachinev1beta1 "github.com/openshift/client-go/machine/clientset/versioned/typed/machine/v1beta1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeMachineHealthChecks implements MachineHealthCheckInterface
-type FakeMachineHealthChecks struct {
+// fakeMachineHealthChecks implements MachineHealthCheckInterface
+type fakeMachineHealthChecks struct {
+ *gentype.FakeClientWithListAndApply[*v1beta1.MachineHealthCheck, *v1beta1.MachineHealthCheckList, *machinev1beta1.MachineHealthCheckApplyConfiguration]
Fake *FakeMachineV1beta1
- ns string
-}
-
-var machinehealthchecksResource = v1beta1.SchemeGroupVersion.WithResource("machinehealthchecks")
-
-var machinehealthchecksKind = v1beta1.SchemeGroupVersion.WithKind("MachineHealthCheck")
-
-// Get takes name of the machineHealthCheck, and returns the corresponding machineHealthCheck object, and an error if there is any.
-func (c *FakeMachineHealthChecks) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.MachineHealthCheck, err error) {
- emptyResult := &v1beta1.MachineHealthCheck{}
- obj, err := c.Fake.
- Invokes(testing.NewGetActionWithOptions(machinehealthchecksResource, c.ns, name, options), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1beta1.MachineHealthCheck), err
-}
-
-// List takes label and field selectors, and returns the list of MachineHealthChecks that match those selectors.
-func (c *FakeMachineHealthChecks) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.MachineHealthCheckList, err error) {
- emptyResult := &v1beta1.MachineHealthCheckList{}
- obj, err := c.Fake.
- Invokes(testing.NewListActionWithOptions(machinehealthchecksResource, machinehealthchecksKind, c.ns, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1beta1.MachineHealthCheckList{ListMeta: obj.(*v1beta1.MachineHealthCheckList).ListMeta}
- for _, item := range obj.(*v1beta1.MachineHealthCheckList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested machineHealthChecks.
-func (c *FakeMachineHealthChecks) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewWatchActionWithOptions(machinehealthchecksResource, c.ns, opts))
-
-}
-
-// Create takes the representation of a machineHealthCheck and creates it. Returns the server's representation of the machineHealthCheck, and an error, if there is any.
-func (c *FakeMachineHealthChecks) Create(ctx context.Context, machineHealthCheck *v1beta1.MachineHealthCheck, opts v1.CreateOptions) (result *v1beta1.MachineHealthCheck, err error) {
- emptyResult := &v1beta1.MachineHealthCheck{}
- obj, err := c.Fake.
- Invokes(testing.NewCreateActionWithOptions(machinehealthchecksResource, c.ns, machineHealthCheck, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1beta1.MachineHealthCheck), err
-}
-
-// Update takes the representation of a machineHealthCheck and updates it. Returns the server's representation of the machineHealthCheck, and an error, if there is any.
-func (c *FakeMachineHealthChecks) Update(ctx context.Context, machineHealthCheck *v1beta1.MachineHealthCheck, opts v1.UpdateOptions) (result *v1beta1.MachineHealthCheck, err error) {
- emptyResult := &v1beta1.MachineHealthCheck{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateActionWithOptions(machinehealthchecksResource, c.ns, machineHealthCheck, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1beta1.MachineHealthCheck), err
}
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeMachineHealthChecks) UpdateStatus(ctx context.Context, machineHealthCheck *v1beta1.MachineHealthCheck, opts v1.UpdateOptions) (result *v1beta1.MachineHealthCheck, err error) {
- emptyResult := &v1beta1.MachineHealthCheck{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateSubresourceActionWithOptions(machinehealthchecksResource, "status", c.ns, machineHealthCheck, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1beta1.MachineHealthCheck), err
-}
-
-// Delete takes name of the machineHealthCheck and deletes it. Returns an error if one occurs.
-func (c *FakeMachineHealthChecks) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewDeleteActionWithOptions(machinehealthchecksResource, c.ns, name, opts), &v1beta1.MachineHealthCheck{})
-
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeMachineHealthChecks) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewDeleteCollectionActionWithOptions(machinehealthchecksResource, c.ns, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1beta1.MachineHealthCheckList{})
- return err
-}
-
-// Patch applies the patch and returns the patched machineHealthCheck.
-func (c *FakeMachineHealthChecks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.MachineHealthCheck, err error) {
- emptyResult := &v1beta1.MachineHealthCheck{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(machinehealthchecksResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1beta1.MachineHealthCheck), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied machineHealthCheck.
-func (c *FakeMachineHealthChecks) Apply(ctx context.Context, machineHealthCheck *machinev1beta1.MachineHealthCheckApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.MachineHealthCheck, err error) {
- if machineHealthCheck == nil {
- return nil, fmt.Errorf("machineHealthCheck provided to Apply must not be nil")
- }
- data, err := json.Marshal(machineHealthCheck)
- if err != nil {
- return nil, err
- }
- name := machineHealthCheck.Name
- if name == nil {
- return nil, fmt.Errorf("machineHealthCheck.Name must be provided to Apply")
- }
- emptyResult := &v1beta1.MachineHealthCheck{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(machinehealthchecksResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1beta1.MachineHealthCheck), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeMachineHealthChecks) ApplyStatus(ctx context.Context, machineHealthCheck *machinev1beta1.MachineHealthCheckApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.MachineHealthCheck, err error) {
- if machineHealthCheck == nil {
- return nil, fmt.Errorf("machineHealthCheck provided to Apply must not be nil")
- }
- data, err := json.Marshal(machineHealthCheck)
- if err != nil {
- return nil, err
- }
- name := machineHealthCheck.Name
- if name == nil {
- return nil, fmt.Errorf("machineHealthCheck.Name must be provided to Apply")
- }
- emptyResult := &v1beta1.MachineHealthCheck{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(machinehealthchecksResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
-
- if obj == nil {
- return emptyResult, err
+func newFakeMachineHealthChecks(fake *FakeMachineV1beta1, namespace string) typedmachinev1beta1.MachineHealthCheckInterface {
+ return &fakeMachineHealthChecks{
+ gentype.NewFakeClientWithListAndApply[*v1beta1.MachineHealthCheck, *v1beta1.MachineHealthCheckList, *machinev1beta1.MachineHealthCheckApplyConfiguration](
+ fake.Fake,
+ namespace,
+ v1beta1.SchemeGroupVersion.WithResource("machinehealthchecks"),
+ v1beta1.SchemeGroupVersion.WithKind("MachineHealthCheck"),
+ func() *v1beta1.MachineHealthCheck { return &v1beta1.MachineHealthCheck{} },
+ func() *v1beta1.MachineHealthCheckList { return &v1beta1.MachineHealthCheckList{} },
+ func(dst, src *v1beta1.MachineHealthCheckList) { dst.ListMeta = src.ListMeta },
+ func(list *v1beta1.MachineHealthCheckList) []*v1beta1.MachineHealthCheck {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1beta1.MachineHealthCheckList, items []*v1beta1.MachineHealthCheck) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1beta1.MachineHealthCheck), err
}
diff --git a/machine/clientset/versioned/typed/machine/v1beta1/fake/fake_machineset.go b/machine/clientset/versioned/typed/machine/v1beta1/fake/fake_machineset.go
index 829683c5a..43b196ff2 100644
--- a/machine/clientset/versioned/typed/machine/v1beta1/fake/fake_machineset.go
+++ b/machine/clientset/versioned/typed/machine/v1beta1/fake/fake_machineset.go
@@ -3,179 +3,33 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1beta1 "github.com/openshift/api/machine/v1beta1"
machinev1beta1 "github.com/openshift/client-go/machine/applyconfigurations/machine/v1beta1"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedmachinev1beta1 "github.com/openshift/client-go/machine/clientset/versioned/typed/machine/v1beta1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeMachineSets implements MachineSetInterface
-type FakeMachineSets struct {
+// fakeMachineSets implements MachineSetInterface
+type fakeMachineSets struct {
+ *gentype.FakeClientWithListAndApply[*v1beta1.MachineSet, *v1beta1.MachineSetList, *machinev1beta1.MachineSetApplyConfiguration]
Fake *FakeMachineV1beta1
- ns string
-}
-
-var machinesetsResource = v1beta1.SchemeGroupVersion.WithResource("machinesets")
-
-var machinesetsKind = v1beta1.SchemeGroupVersion.WithKind("MachineSet")
-
-// Get takes name of the machineSet, and returns the corresponding machineSet object, and an error if there is any.
-func (c *FakeMachineSets) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.MachineSet, err error) {
- emptyResult := &v1beta1.MachineSet{}
- obj, err := c.Fake.
- Invokes(testing.NewGetActionWithOptions(machinesetsResource, c.ns, name, options), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1beta1.MachineSet), err
-}
-
-// List takes label and field selectors, and returns the list of MachineSets that match those selectors.
-func (c *FakeMachineSets) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.MachineSetList, err error) {
- emptyResult := &v1beta1.MachineSetList{}
- obj, err := c.Fake.
- Invokes(testing.NewListActionWithOptions(machinesetsResource, machinesetsKind, c.ns, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1beta1.MachineSetList{ListMeta: obj.(*v1beta1.MachineSetList).ListMeta}
- for _, item := range obj.(*v1beta1.MachineSetList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested machineSets.
-func (c *FakeMachineSets) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewWatchActionWithOptions(machinesetsResource, c.ns, opts))
-
-}
-
-// Create takes the representation of a machineSet and creates it. Returns the server's representation of the machineSet, and an error, if there is any.
-func (c *FakeMachineSets) Create(ctx context.Context, machineSet *v1beta1.MachineSet, opts v1.CreateOptions) (result *v1beta1.MachineSet, err error) {
- emptyResult := &v1beta1.MachineSet{}
- obj, err := c.Fake.
- Invokes(testing.NewCreateActionWithOptions(machinesetsResource, c.ns, machineSet, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1beta1.MachineSet), err
-}
-
-// Update takes the representation of a machineSet and updates it. Returns the server's representation of the machineSet, and an error, if there is any.
-func (c *FakeMachineSets) Update(ctx context.Context, machineSet *v1beta1.MachineSet, opts v1.UpdateOptions) (result *v1beta1.MachineSet, err error) {
- emptyResult := &v1beta1.MachineSet{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateActionWithOptions(machinesetsResource, c.ns, machineSet, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1beta1.MachineSet), err
}
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeMachineSets) UpdateStatus(ctx context.Context, machineSet *v1beta1.MachineSet, opts v1.UpdateOptions) (result *v1beta1.MachineSet, err error) {
- emptyResult := &v1beta1.MachineSet{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateSubresourceActionWithOptions(machinesetsResource, "status", c.ns, machineSet, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1beta1.MachineSet), err
-}
-
-// Delete takes name of the machineSet and deletes it. Returns an error if one occurs.
-func (c *FakeMachineSets) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewDeleteActionWithOptions(machinesetsResource, c.ns, name, opts), &v1beta1.MachineSet{})
-
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeMachineSets) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewDeleteCollectionActionWithOptions(machinesetsResource, c.ns, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1beta1.MachineSetList{})
- return err
-}
-
-// Patch applies the patch and returns the patched machineSet.
-func (c *FakeMachineSets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.MachineSet, err error) {
- emptyResult := &v1beta1.MachineSet{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(machinesetsResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1beta1.MachineSet), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied machineSet.
-func (c *FakeMachineSets) Apply(ctx context.Context, machineSet *machinev1beta1.MachineSetApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.MachineSet, err error) {
- if machineSet == nil {
- return nil, fmt.Errorf("machineSet provided to Apply must not be nil")
- }
- data, err := json.Marshal(machineSet)
- if err != nil {
- return nil, err
- }
- name := machineSet.Name
- if name == nil {
- return nil, fmt.Errorf("machineSet.Name must be provided to Apply")
- }
- emptyResult := &v1beta1.MachineSet{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(machinesetsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1beta1.MachineSet), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeMachineSets) ApplyStatus(ctx context.Context, machineSet *machinev1beta1.MachineSetApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.MachineSet, err error) {
- if machineSet == nil {
- return nil, fmt.Errorf("machineSet provided to Apply must not be nil")
- }
- data, err := json.Marshal(machineSet)
- if err != nil {
- return nil, err
- }
- name := machineSet.Name
- if name == nil {
- return nil, fmt.Errorf("machineSet.Name must be provided to Apply")
- }
- emptyResult := &v1beta1.MachineSet{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(machinesetsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
-
- if obj == nil {
- return emptyResult, err
+func newFakeMachineSets(fake *FakeMachineV1beta1, namespace string) typedmachinev1beta1.MachineSetInterface {
+ return &fakeMachineSets{
+ gentype.NewFakeClientWithListAndApply[*v1beta1.MachineSet, *v1beta1.MachineSetList, *machinev1beta1.MachineSetApplyConfiguration](
+ fake.Fake,
+ namespace,
+ v1beta1.SchemeGroupVersion.WithResource("machinesets"),
+ v1beta1.SchemeGroupVersion.WithKind("MachineSet"),
+ func() *v1beta1.MachineSet { return &v1beta1.MachineSet{} },
+ func() *v1beta1.MachineSetList { return &v1beta1.MachineSetList{} },
+ func(dst, src *v1beta1.MachineSetList) { dst.ListMeta = src.ListMeta },
+ func(list *v1beta1.MachineSetList) []*v1beta1.MachineSet { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1beta1.MachineSetList, items []*v1beta1.MachineSet) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1beta1.MachineSet), err
}
diff --git a/machine/clientset/versioned/typed/machine/v1beta1/machine.go b/machine/clientset/versioned/typed/machine/v1beta1/machine.go
index 7f48011a0..f847751c4 100644
--- a/machine/clientset/versioned/typed/machine/v1beta1/machine.go
+++ b/machine/clientset/versioned/typed/machine/v1beta1/machine.go
@@ -3,10 +3,10 @@
package v1beta1
import (
- "context"
+ context "context"
- v1beta1 "github.com/openshift/api/machine/v1beta1"
- machinev1beta1 "github.com/openshift/client-go/machine/applyconfigurations/machine/v1beta1"
+ machinev1beta1 "github.com/openshift/api/machine/v1beta1"
+ applyconfigurationsmachinev1beta1 "github.com/openshift/client-go/machine/applyconfigurations/machine/v1beta1"
scheme "github.com/openshift/client-go/machine/clientset/versioned/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type MachinesGetter interface {
// MachineInterface has methods to work with Machine resources.
type MachineInterface interface {
- Create(ctx context.Context, machine *v1beta1.Machine, opts v1.CreateOptions) (*v1beta1.Machine, error)
- Update(ctx context.Context, machine *v1beta1.Machine, opts v1.UpdateOptions) (*v1beta1.Machine, error)
+ Create(ctx context.Context, machine *machinev1beta1.Machine, opts v1.CreateOptions) (*machinev1beta1.Machine, error)
+ Update(ctx context.Context, machine *machinev1beta1.Machine, opts v1.UpdateOptions) (*machinev1beta1.Machine, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, machine *v1beta1.Machine, opts v1.UpdateOptions) (*v1beta1.Machine, error)
+ UpdateStatus(ctx context.Context, machine *machinev1beta1.Machine, opts v1.UpdateOptions) (*machinev1beta1.Machine, error)
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*v1beta1.Machine, error)
- List(ctx context.Context, opts v1.ListOptions) (*v1beta1.MachineList, error)
+ Get(ctx context.Context, name string, opts v1.GetOptions) (*machinev1beta1.Machine, error)
+ List(ctx context.Context, opts v1.ListOptions) (*machinev1beta1.MachineList, error)
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.Machine, err error)
- Apply(ctx context.Context, machine *machinev1beta1.MachineApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.Machine, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *machinev1beta1.Machine, err error)
+ Apply(ctx context.Context, machine *applyconfigurationsmachinev1beta1.MachineApplyConfiguration, opts v1.ApplyOptions) (result *machinev1beta1.Machine, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, machine *machinev1beta1.MachineApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.Machine, err error)
+ ApplyStatus(ctx context.Context, machine *applyconfigurationsmachinev1beta1.MachineApplyConfiguration, opts v1.ApplyOptions) (result *machinev1beta1.Machine, err error)
MachineExpansion
}
// machines implements MachineInterface
type machines struct {
- *gentype.ClientWithListAndApply[*v1beta1.Machine, *v1beta1.MachineList, *machinev1beta1.MachineApplyConfiguration]
+ *gentype.ClientWithListAndApply[*machinev1beta1.Machine, *machinev1beta1.MachineList, *applyconfigurationsmachinev1beta1.MachineApplyConfiguration]
}
// newMachines returns a Machines
func newMachines(c *MachineV1beta1Client, namespace string) *machines {
return &machines{
- gentype.NewClientWithListAndApply[*v1beta1.Machine, *v1beta1.MachineList, *machinev1beta1.MachineApplyConfiguration](
+ gentype.NewClientWithListAndApply[*machinev1beta1.Machine, *machinev1beta1.MachineList, *applyconfigurationsmachinev1beta1.MachineApplyConfiguration](
"machines",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
- func() *v1beta1.Machine { return &v1beta1.Machine{} },
- func() *v1beta1.MachineList { return &v1beta1.MachineList{} }),
+ func() *machinev1beta1.Machine { return &machinev1beta1.Machine{} },
+ func() *machinev1beta1.MachineList { return &machinev1beta1.MachineList{} },
+ ),
}
}
diff --git a/machine/clientset/versioned/typed/machine/v1beta1/machine_client.go b/machine/clientset/versioned/typed/machine/v1beta1/machine_client.go
index 0ccff6258..d9bea82eb 100644
--- a/machine/clientset/versioned/typed/machine/v1beta1/machine_client.go
+++ b/machine/clientset/versioned/typed/machine/v1beta1/machine_client.go
@@ -3,10 +3,10 @@
package v1beta1
import (
- "net/http"
+ http "net/http"
- v1beta1 "github.com/openshift/api/machine/v1beta1"
- "github.com/openshift/client-go/machine/clientset/versioned/scheme"
+ machinev1beta1 "github.com/openshift/api/machine/v1beta1"
+ scheme "github.com/openshift/client-go/machine/clientset/versioned/scheme"
rest "k8s.io/client-go/rest"
)
@@ -79,10 +79,10 @@ func New(c rest.Interface) *MachineV1beta1Client {
}
func setConfigDefaults(config *rest.Config) error {
- gv := v1beta1.SchemeGroupVersion
+ gv := machinev1beta1.SchemeGroupVersion
config.GroupVersion = &gv
config.APIPath = "/apis"
- config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
+ config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion()
if config.UserAgent == "" {
config.UserAgent = rest.DefaultKubernetesUserAgent()
diff --git a/machine/clientset/versioned/typed/machine/v1beta1/machinehealthcheck.go b/machine/clientset/versioned/typed/machine/v1beta1/machinehealthcheck.go
index 88eca7324..14900f109 100644
--- a/machine/clientset/versioned/typed/machine/v1beta1/machinehealthcheck.go
+++ b/machine/clientset/versioned/typed/machine/v1beta1/machinehealthcheck.go
@@ -3,10 +3,10 @@
package v1beta1
import (
- "context"
+ context "context"
- v1beta1 "github.com/openshift/api/machine/v1beta1"
- machinev1beta1 "github.com/openshift/client-go/machine/applyconfigurations/machine/v1beta1"
+ machinev1beta1 "github.com/openshift/api/machine/v1beta1"
+ applyconfigurationsmachinev1beta1 "github.com/openshift/client-go/machine/applyconfigurations/machine/v1beta1"
scheme "github.com/openshift/client-go/machine/clientset/versioned/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type MachineHealthChecksGetter interface {
// MachineHealthCheckInterface has methods to work with MachineHealthCheck resources.
type MachineHealthCheckInterface interface {
- Create(ctx context.Context, machineHealthCheck *v1beta1.MachineHealthCheck, opts v1.CreateOptions) (*v1beta1.MachineHealthCheck, error)
- Update(ctx context.Context, machineHealthCheck *v1beta1.MachineHealthCheck, opts v1.UpdateOptions) (*v1beta1.MachineHealthCheck, error)
+ Create(ctx context.Context, machineHealthCheck *machinev1beta1.MachineHealthCheck, opts v1.CreateOptions) (*machinev1beta1.MachineHealthCheck, error)
+ Update(ctx context.Context, machineHealthCheck *machinev1beta1.MachineHealthCheck, opts v1.UpdateOptions) (*machinev1beta1.MachineHealthCheck, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, machineHealthCheck *v1beta1.MachineHealthCheck, opts v1.UpdateOptions) (*v1beta1.MachineHealthCheck, error)
+ UpdateStatus(ctx context.Context, machineHealthCheck *machinev1beta1.MachineHealthCheck, opts v1.UpdateOptions) (*machinev1beta1.MachineHealthCheck, error)
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*v1beta1.MachineHealthCheck, error)
- List(ctx context.Context, opts v1.ListOptions) (*v1beta1.MachineHealthCheckList, error)
+ Get(ctx context.Context, name string, opts v1.GetOptions) (*machinev1beta1.MachineHealthCheck, error)
+ List(ctx context.Context, opts v1.ListOptions) (*machinev1beta1.MachineHealthCheckList, error)
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.MachineHealthCheck, err error)
- Apply(ctx context.Context, machineHealthCheck *machinev1beta1.MachineHealthCheckApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.MachineHealthCheck, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *machinev1beta1.MachineHealthCheck, err error)
+ Apply(ctx context.Context, machineHealthCheck *applyconfigurationsmachinev1beta1.MachineHealthCheckApplyConfiguration, opts v1.ApplyOptions) (result *machinev1beta1.MachineHealthCheck, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, machineHealthCheck *machinev1beta1.MachineHealthCheckApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.MachineHealthCheck, err error)
+ ApplyStatus(ctx context.Context, machineHealthCheck *applyconfigurationsmachinev1beta1.MachineHealthCheckApplyConfiguration, opts v1.ApplyOptions) (result *machinev1beta1.MachineHealthCheck, err error)
MachineHealthCheckExpansion
}
// machineHealthChecks implements MachineHealthCheckInterface
type machineHealthChecks struct {
- *gentype.ClientWithListAndApply[*v1beta1.MachineHealthCheck, *v1beta1.MachineHealthCheckList, *machinev1beta1.MachineHealthCheckApplyConfiguration]
+ *gentype.ClientWithListAndApply[*machinev1beta1.MachineHealthCheck, *machinev1beta1.MachineHealthCheckList, *applyconfigurationsmachinev1beta1.MachineHealthCheckApplyConfiguration]
}
// newMachineHealthChecks returns a MachineHealthChecks
func newMachineHealthChecks(c *MachineV1beta1Client, namespace string) *machineHealthChecks {
return &machineHealthChecks{
- gentype.NewClientWithListAndApply[*v1beta1.MachineHealthCheck, *v1beta1.MachineHealthCheckList, *machinev1beta1.MachineHealthCheckApplyConfiguration](
+ gentype.NewClientWithListAndApply[*machinev1beta1.MachineHealthCheck, *machinev1beta1.MachineHealthCheckList, *applyconfigurationsmachinev1beta1.MachineHealthCheckApplyConfiguration](
"machinehealthchecks",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
- func() *v1beta1.MachineHealthCheck { return &v1beta1.MachineHealthCheck{} },
- func() *v1beta1.MachineHealthCheckList { return &v1beta1.MachineHealthCheckList{} }),
+ func() *machinev1beta1.MachineHealthCheck { return &machinev1beta1.MachineHealthCheck{} },
+ func() *machinev1beta1.MachineHealthCheckList { return &machinev1beta1.MachineHealthCheckList{} },
+ ),
}
}
diff --git a/machine/clientset/versioned/typed/machine/v1beta1/machineset.go b/machine/clientset/versioned/typed/machine/v1beta1/machineset.go
index 34fd55b9d..070c0df76 100644
--- a/machine/clientset/versioned/typed/machine/v1beta1/machineset.go
+++ b/machine/clientset/versioned/typed/machine/v1beta1/machineset.go
@@ -3,10 +3,10 @@
package v1beta1
import (
- "context"
+ context "context"
- v1beta1 "github.com/openshift/api/machine/v1beta1"
- machinev1beta1 "github.com/openshift/client-go/machine/applyconfigurations/machine/v1beta1"
+ machinev1beta1 "github.com/openshift/api/machine/v1beta1"
+ applyconfigurationsmachinev1beta1 "github.com/openshift/client-go/machine/applyconfigurations/machine/v1beta1"
scheme "github.com/openshift/client-go/machine/clientset/versioned/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type MachineSetsGetter interface {
// MachineSetInterface has methods to work with MachineSet resources.
type MachineSetInterface interface {
- Create(ctx context.Context, machineSet *v1beta1.MachineSet, opts v1.CreateOptions) (*v1beta1.MachineSet, error)
- Update(ctx context.Context, machineSet *v1beta1.MachineSet, opts v1.UpdateOptions) (*v1beta1.MachineSet, error)
+ Create(ctx context.Context, machineSet *machinev1beta1.MachineSet, opts v1.CreateOptions) (*machinev1beta1.MachineSet, error)
+ Update(ctx context.Context, machineSet *machinev1beta1.MachineSet, opts v1.UpdateOptions) (*machinev1beta1.MachineSet, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, machineSet *v1beta1.MachineSet, opts v1.UpdateOptions) (*v1beta1.MachineSet, error)
+ UpdateStatus(ctx context.Context, machineSet *machinev1beta1.MachineSet, opts v1.UpdateOptions) (*machinev1beta1.MachineSet, error)
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*v1beta1.MachineSet, error)
- List(ctx context.Context, opts v1.ListOptions) (*v1beta1.MachineSetList, error)
+ Get(ctx context.Context, name string, opts v1.GetOptions) (*machinev1beta1.MachineSet, error)
+ List(ctx context.Context, opts v1.ListOptions) (*machinev1beta1.MachineSetList, error)
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.MachineSet, err error)
- Apply(ctx context.Context, machineSet *machinev1beta1.MachineSetApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.MachineSet, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *machinev1beta1.MachineSet, err error)
+ Apply(ctx context.Context, machineSet *applyconfigurationsmachinev1beta1.MachineSetApplyConfiguration, opts v1.ApplyOptions) (result *machinev1beta1.MachineSet, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, machineSet *machinev1beta1.MachineSetApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.MachineSet, err error)
+ ApplyStatus(ctx context.Context, machineSet *applyconfigurationsmachinev1beta1.MachineSetApplyConfiguration, opts v1.ApplyOptions) (result *machinev1beta1.MachineSet, err error)
MachineSetExpansion
}
// machineSets implements MachineSetInterface
type machineSets struct {
- *gentype.ClientWithListAndApply[*v1beta1.MachineSet, *v1beta1.MachineSetList, *machinev1beta1.MachineSetApplyConfiguration]
+ *gentype.ClientWithListAndApply[*machinev1beta1.MachineSet, *machinev1beta1.MachineSetList, *applyconfigurationsmachinev1beta1.MachineSetApplyConfiguration]
}
// newMachineSets returns a MachineSets
func newMachineSets(c *MachineV1beta1Client, namespace string) *machineSets {
return &machineSets{
- gentype.NewClientWithListAndApply[*v1beta1.MachineSet, *v1beta1.MachineSetList, *machinev1beta1.MachineSetApplyConfiguration](
+ gentype.NewClientWithListAndApply[*machinev1beta1.MachineSet, *machinev1beta1.MachineSetList, *applyconfigurationsmachinev1beta1.MachineSetApplyConfiguration](
"machinesets",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
- func() *v1beta1.MachineSet { return &v1beta1.MachineSet{} },
- func() *v1beta1.MachineSetList { return &v1beta1.MachineSetList{} }),
+ func() *machinev1beta1.MachineSet { return &machinev1beta1.MachineSet{} },
+ func() *machinev1beta1.MachineSetList { return &machinev1beta1.MachineSetList{} },
+ ),
}
}
diff --git a/machine/informers/externalversions/generic.go b/machine/informers/externalversions/generic.go
index 8e1118040..fdb4d37f9 100644
--- a/machine/informers/externalversions/generic.go
+++ b/machine/informers/externalversions/generic.go
@@ -3,7 +3,7 @@
package externalversions
import (
- "fmt"
+ fmt "fmt"
v1 "github.com/openshift/api/machine/v1"
v1beta1 "github.com/openshift/api/machine/v1beta1"
diff --git a/machine/informers/externalversions/machine/v1/controlplanemachineset.go b/machine/informers/externalversions/machine/v1/controlplanemachineset.go
index 04a67838c..1877db8a5 100644
--- a/machine/informers/externalversions/machine/v1/controlplanemachineset.go
+++ b/machine/informers/externalversions/machine/v1/controlplanemachineset.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- machinev1 "github.com/openshift/api/machine/v1"
+ apimachinev1 "github.com/openshift/api/machine/v1"
versioned "github.com/openshift/client-go/machine/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/machine/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/machine/listers/machine/v1"
+ machinev1 "github.com/openshift/client-go/machine/listers/machine/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// ControlPlaneMachineSets.
type ControlPlaneMachineSetInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.ControlPlaneMachineSetLister
+ Lister() machinev1.ControlPlaneMachineSetLister
}
type controlPlaneMachineSetInformer struct {
@@ -55,7 +55,7 @@ func NewFilteredControlPlaneMachineSetInformer(client versioned.Interface, names
return client.MachineV1().ControlPlaneMachineSets(namespace).Watch(context.TODO(), options)
},
},
- &machinev1.ControlPlaneMachineSet{},
+ &apimachinev1.ControlPlaneMachineSet{},
resyncPeriod,
indexers,
)
@@ -66,9 +66,9 @@ func (f *controlPlaneMachineSetInformer) defaultInformer(client versioned.Interf
}
func (f *controlPlaneMachineSetInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&machinev1.ControlPlaneMachineSet{}, f.defaultInformer)
+ return f.factory.InformerFor(&apimachinev1.ControlPlaneMachineSet{}, f.defaultInformer)
}
-func (f *controlPlaneMachineSetInformer) Lister() v1.ControlPlaneMachineSetLister {
- return v1.NewControlPlaneMachineSetLister(f.Informer().GetIndexer())
+func (f *controlPlaneMachineSetInformer) Lister() machinev1.ControlPlaneMachineSetLister {
+ return machinev1.NewControlPlaneMachineSetLister(f.Informer().GetIndexer())
}
diff --git a/machine/informers/externalversions/machine/v1beta1/machine.go b/machine/informers/externalversions/machine/v1beta1/machine.go
index c943acffb..dd649d2eb 100644
--- a/machine/informers/externalversions/machine/v1beta1/machine.go
+++ b/machine/informers/externalversions/machine/v1beta1/machine.go
@@ -3,13 +3,13 @@
package v1beta1
import (
- "context"
+ context "context"
time "time"
- machinev1beta1 "github.com/openshift/api/machine/v1beta1"
+ apimachinev1beta1 "github.com/openshift/api/machine/v1beta1"
versioned "github.com/openshift/client-go/machine/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/machine/informers/externalversions/internalinterfaces"
- v1beta1 "github.com/openshift/client-go/machine/listers/machine/v1beta1"
+ machinev1beta1 "github.com/openshift/client-go/machine/listers/machine/v1beta1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// Machines.
type MachineInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1beta1.MachineLister
+ Lister() machinev1beta1.MachineLister
}
type machineInformer struct {
@@ -55,7 +55,7 @@ func NewFilteredMachineInformer(client versioned.Interface, namespace string, re
return client.MachineV1beta1().Machines(namespace).Watch(context.TODO(), options)
},
},
- &machinev1beta1.Machine{},
+ &apimachinev1beta1.Machine{},
resyncPeriod,
indexers,
)
@@ -66,9 +66,9 @@ func (f *machineInformer) defaultInformer(client versioned.Interface, resyncPeri
}
func (f *machineInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&machinev1beta1.Machine{}, f.defaultInformer)
+ return f.factory.InformerFor(&apimachinev1beta1.Machine{}, f.defaultInformer)
}
-func (f *machineInformer) Lister() v1beta1.MachineLister {
- return v1beta1.NewMachineLister(f.Informer().GetIndexer())
+func (f *machineInformer) Lister() machinev1beta1.MachineLister {
+ return machinev1beta1.NewMachineLister(f.Informer().GetIndexer())
}
diff --git a/machine/informers/externalversions/machine/v1beta1/machinehealthcheck.go b/machine/informers/externalversions/machine/v1beta1/machinehealthcheck.go
index 534bcb373..82d288255 100644
--- a/machine/informers/externalversions/machine/v1beta1/machinehealthcheck.go
+++ b/machine/informers/externalversions/machine/v1beta1/machinehealthcheck.go
@@ -3,13 +3,13 @@
package v1beta1
import (
- "context"
+ context "context"
time "time"
- machinev1beta1 "github.com/openshift/api/machine/v1beta1"
+ apimachinev1beta1 "github.com/openshift/api/machine/v1beta1"
versioned "github.com/openshift/client-go/machine/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/machine/informers/externalversions/internalinterfaces"
- v1beta1 "github.com/openshift/client-go/machine/listers/machine/v1beta1"
+ machinev1beta1 "github.com/openshift/client-go/machine/listers/machine/v1beta1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// MachineHealthChecks.
type MachineHealthCheckInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1beta1.MachineHealthCheckLister
+ Lister() machinev1beta1.MachineHealthCheckLister
}
type machineHealthCheckInformer struct {
@@ -55,7 +55,7 @@ func NewFilteredMachineHealthCheckInformer(client versioned.Interface, namespace
return client.MachineV1beta1().MachineHealthChecks(namespace).Watch(context.TODO(), options)
},
},
- &machinev1beta1.MachineHealthCheck{},
+ &apimachinev1beta1.MachineHealthCheck{},
resyncPeriod,
indexers,
)
@@ -66,9 +66,9 @@ func (f *machineHealthCheckInformer) defaultInformer(client versioned.Interface,
}
func (f *machineHealthCheckInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&machinev1beta1.MachineHealthCheck{}, f.defaultInformer)
+ return f.factory.InformerFor(&apimachinev1beta1.MachineHealthCheck{}, f.defaultInformer)
}
-func (f *machineHealthCheckInformer) Lister() v1beta1.MachineHealthCheckLister {
- return v1beta1.NewMachineHealthCheckLister(f.Informer().GetIndexer())
+func (f *machineHealthCheckInformer) Lister() machinev1beta1.MachineHealthCheckLister {
+ return machinev1beta1.NewMachineHealthCheckLister(f.Informer().GetIndexer())
}
diff --git a/machine/informers/externalversions/machine/v1beta1/machineset.go b/machine/informers/externalversions/machine/v1beta1/machineset.go
index 62ffcfbc5..8e7d67f87 100644
--- a/machine/informers/externalversions/machine/v1beta1/machineset.go
+++ b/machine/informers/externalversions/machine/v1beta1/machineset.go
@@ -3,13 +3,13 @@
package v1beta1
import (
- "context"
+ context "context"
time "time"
- machinev1beta1 "github.com/openshift/api/machine/v1beta1"
+ apimachinev1beta1 "github.com/openshift/api/machine/v1beta1"
versioned "github.com/openshift/client-go/machine/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/machine/informers/externalversions/internalinterfaces"
- v1beta1 "github.com/openshift/client-go/machine/listers/machine/v1beta1"
+ machinev1beta1 "github.com/openshift/client-go/machine/listers/machine/v1beta1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// MachineSets.
type MachineSetInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1beta1.MachineSetLister
+ Lister() machinev1beta1.MachineSetLister
}
type machineSetInformer struct {
@@ -55,7 +55,7 @@ func NewFilteredMachineSetInformer(client versioned.Interface, namespace string,
return client.MachineV1beta1().MachineSets(namespace).Watch(context.TODO(), options)
},
},
- &machinev1beta1.MachineSet{},
+ &apimachinev1beta1.MachineSet{},
resyncPeriod,
indexers,
)
@@ -66,9 +66,9 @@ func (f *machineSetInformer) defaultInformer(client versioned.Interface, resyncP
}
func (f *machineSetInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&machinev1beta1.MachineSet{}, f.defaultInformer)
+ return f.factory.InformerFor(&apimachinev1beta1.MachineSet{}, f.defaultInformer)
}
-func (f *machineSetInformer) Lister() v1beta1.MachineSetLister {
- return v1beta1.NewMachineSetLister(f.Informer().GetIndexer())
+func (f *machineSetInformer) Lister() machinev1beta1.MachineSetLister {
+ return machinev1beta1.NewMachineSetLister(f.Informer().GetIndexer())
}
diff --git a/machine/listers/machine/v1/controlplanemachineset.go b/machine/listers/machine/v1/controlplanemachineset.go
index 10d595810..2eda554cb 100644
--- a/machine/listers/machine/v1/controlplanemachineset.go
+++ b/machine/listers/machine/v1/controlplanemachineset.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/machine/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ machinev1 "github.com/openshift/api/machine/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ControlPlaneMachineSetLister helps list ControlPlaneMachineSets.
@@ -14,7 +14,7 @@ import (
type ControlPlaneMachineSetLister interface {
// List lists all ControlPlaneMachineSets in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.ControlPlaneMachineSet, err error)
+ List(selector labels.Selector) (ret []*machinev1.ControlPlaneMachineSet, err error)
// ControlPlaneMachineSets returns an object that can list and get ControlPlaneMachineSets.
ControlPlaneMachineSets(namespace string) ControlPlaneMachineSetNamespaceLister
ControlPlaneMachineSetListerExpansion
@@ -22,17 +22,17 @@ type ControlPlaneMachineSetLister interface {
// controlPlaneMachineSetLister implements the ControlPlaneMachineSetLister interface.
type controlPlaneMachineSetLister struct {
- listers.ResourceIndexer[*v1.ControlPlaneMachineSet]
+ listers.ResourceIndexer[*machinev1.ControlPlaneMachineSet]
}
// NewControlPlaneMachineSetLister returns a new ControlPlaneMachineSetLister.
func NewControlPlaneMachineSetLister(indexer cache.Indexer) ControlPlaneMachineSetLister {
- return &controlPlaneMachineSetLister{listers.New[*v1.ControlPlaneMachineSet](indexer, v1.Resource("controlplanemachineset"))}
+ return &controlPlaneMachineSetLister{listers.New[*machinev1.ControlPlaneMachineSet](indexer, machinev1.Resource("controlplanemachineset"))}
}
// ControlPlaneMachineSets returns an object that can list and get ControlPlaneMachineSets.
func (s *controlPlaneMachineSetLister) ControlPlaneMachineSets(namespace string) ControlPlaneMachineSetNamespaceLister {
- return controlPlaneMachineSetNamespaceLister{listers.NewNamespaced[*v1.ControlPlaneMachineSet](s.ResourceIndexer, namespace)}
+ return controlPlaneMachineSetNamespaceLister{listers.NewNamespaced[*machinev1.ControlPlaneMachineSet](s.ResourceIndexer, namespace)}
}
// ControlPlaneMachineSetNamespaceLister helps list and get ControlPlaneMachineSets.
@@ -40,15 +40,15 @@ func (s *controlPlaneMachineSetLister) ControlPlaneMachineSets(namespace string)
type ControlPlaneMachineSetNamespaceLister interface {
// List lists all ControlPlaneMachineSets in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.ControlPlaneMachineSet, err error)
+ List(selector labels.Selector) (ret []*machinev1.ControlPlaneMachineSet, err error)
// Get retrieves the ControlPlaneMachineSet from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.ControlPlaneMachineSet, error)
+ Get(name string) (*machinev1.ControlPlaneMachineSet, error)
ControlPlaneMachineSetNamespaceListerExpansion
}
// controlPlaneMachineSetNamespaceLister implements the ControlPlaneMachineSetNamespaceLister
// interface.
type controlPlaneMachineSetNamespaceLister struct {
- listers.ResourceIndexer[*v1.ControlPlaneMachineSet]
+ listers.ResourceIndexer[*machinev1.ControlPlaneMachineSet]
}
diff --git a/machine/listers/machine/v1beta1/machine.go b/machine/listers/machine/v1beta1/machine.go
index 08cd965e3..9ac5d3c0a 100644
--- a/machine/listers/machine/v1beta1/machine.go
+++ b/machine/listers/machine/v1beta1/machine.go
@@ -3,10 +3,10 @@
package v1beta1
import (
- v1beta1 "github.com/openshift/api/machine/v1beta1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ machinev1beta1 "github.com/openshift/api/machine/v1beta1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// MachineLister helps list Machines.
@@ -14,7 +14,7 @@ import (
type MachineLister interface {
// List lists all Machines in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1beta1.Machine, err error)
+ List(selector labels.Selector) (ret []*machinev1beta1.Machine, err error)
// Machines returns an object that can list and get Machines.
Machines(namespace string) MachineNamespaceLister
MachineListerExpansion
@@ -22,17 +22,17 @@ type MachineLister interface {
// machineLister implements the MachineLister interface.
type machineLister struct {
- listers.ResourceIndexer[*v1beta1.Machine]
+ listers.ResourceIndexer[*machinev1beta1.Machine]
}
// NewMachineLister returns a new MachineLister.
func NewMachineLister(indexer cache.Indexer) MachineLister {
- return &machineLister{listers.New[*v1beta1.Machine](indexer, v1beta1.Resource("machine"))}
+ return &machineLister{listers.New[*machinev1beta1.Machine](indexer, machinev1beta1.Resource("machine"))}
}
// Machines returns an object that can list and get Machines.
func (s *machineLister) Machines(namespace string) MachineNamespaceLister {
- return machineNamespaceLister{listers.NewNamespaced[*v1beta1.Machine](s.ResourceIndexer, namespace)}
+ return machineNamespaceLister{listers.NewNamespaced[*machinev1beta1.Machine](s.ResourceIndexer, namespace)}
}
// MachineNamespaceLister helps list and get Machines.
@@ -40,15 +40,15 @@ func (s *machineLister) Machines(namespace string) MachineNamespaceLister {
type MachineNamespaceLister interface {
// List lists all Machines in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1beta1.Machine, err error)
+ List(selector labels.Selector) (ret []*machinev1beta1.Machine, err error)
// Get retrieves the Machine from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1beta1.Machine, error)
+ Get(name string) (*machinev1beta1.Machine, error)
MachineNamespaceListerExpansion
}
// machineNamespaceLister implements the MachineNamespaceLister
// interface.
type machineNamespaceLister struct {
- listers.ResourceIndexer[*v1beta1.Machine]
+ listers.ResourceIndexer[*machinev1beta1.Machine]
}
diff --git a/machine/listers/machine/v1beta1/machinehealthcheck.go b/machine/listers/machine/v1beta1/machinehealthcheck.go
index 294b554ab..782528f38 100644
--- a/machine/listers/machine/v1beta1/machinehealthcheck.go
+++ b/machine/listers/machine/v1beta1/machinehealthcheck.go
@@ -3,10 +3,10 @@
package v1beta1
import (
- v1beta1 "github.com/openshift/api/machine/v1beta1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ machinev1beta1 "github.com/openshift/api/machine/v1beta1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// MachineHealthCheckLister helps list MachineHealthChecks.
@@ -14,7 +14,7 @@ import (
type MachineHealthCheckLister interface {
// List lists all MachineHealthChecks in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1beta1.MachineHealthCheck, err error)
+ List(selector labels.Selector) (ret []*machinev1beta1.MachineHealthCheck, err error)
// MachineHealthChecks returns an object that can list and get MachineHealthChecks.
MachineHealthChecks(namespace string) MachineHealthCheckNamespaceLister
MachineHealthCheckListerExpansion
@@ -22,17 +22,17 @@ type MachineHealthCheckLister interface {
// machineHealthCheckLister implements the MachineHealthCheckLister interface.
type machineHealthCheckLister struct {
- listers.ResourceIndexer[*v1beta1.MachineHealthCheck]
+ listers.ResourceIndexer[*machinev1beta1.MachineHealthCheck]
}
// NewMachineHealthCheckLister returns a new MachineHealthCheckLister.
func NewMachineHealthCheckLister(indexer cache.Indexer) MachineHealthCheckLister {
- return &machineHealthCheckLister{listers.New[*v1beta1.MachineHealthCheck](indexer, v1beta1.Resource("machinehealthcheck"))}
+ return &machineHealthCheckLister{listers.New[*machinev1beta1.MachineHealthCheck](indexer, machinev1beta1.Resource("machinehealthcheck"))}
}
// MachineHealthChecks returns an object that can list and get MachineHealthChecks.
func (s *machineHealthCheckLister) MachineHealthChecks(namespace string) MachineHealthCheckNamespaceLister {
- return machineHealthCheckNamespaceLister{listers.NewNamespaced[*v1beta1.MachineHealthCheck](s.ResourceIndexer, namespace)}
+ return machineHealthCheckNamespaceLister{listers.NewNamespaced[*machinev1beta1.MachineHealthCheck](s.ResourceIndexer, namespace)}
}
// MachineHealthCheckNamespaceLister helps list and get MachineHealthChecks.
@@ -40,15 +40,15 @@ func (s *machineHealthCheckLister) MachineHealthChecks(namespace string) Machine
type MachineHealthCheckNamespaceLister interface {
// List lists all MachineHealthChecks in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1beta1.MachineHealthCheck, err error)
+ List(selector labels.Selector) (ret []*machinev1beta1.MachineHealthCheck, err error)
// Get retrieves the MachineHealthCheck from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1beta1.MachineHealthCheck, error)
+ Get(name string) (*machinev1beta1.MachineHealthCheck, error)
MachineHealthCheckNamespaceListerExpansion
}
// machineHealthCheckNamespaceLister implements the MachineHealthCheckNamespaceLister
// interface.
type machineHealthCheckNamespaceLister struct {
- listers.ResourceIndexer[*v1beta1.MachineHealthCheck]
+ listers.ResourceIndexer[*machinev1beta1.MachineHealthCheck]
}
diff --git a/machine/listers/machine/v1beta1/machineset.go b/machine/listers/machine/v1beta1/machineset.go
index 869e578af..e13201e9f 100644
--- a/machine/listers/machine/v1beta1/machineset.go
+++ b/machine/listers/machine/v1beta1/machineset.go
@@ -3,10 +3,10 @@
package v1beta1
import (
- v1beta1 "github.com/openshift/api/machine/v1beta1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ machinev1beta1 "github.com/openshift/api/machine/v1beta1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// MachineSetLister helps list MachineSets.
@@ -14,7 +14,7 @@ import (
type MachineSetLister interface {
// List lists all MachineSets in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1beta1.MachineSet, err error)
+ List(selector labels.Selector) (ret []*machinev1beta1.MachineSet, err error)
// MachineSets returns an object that can list and get MachineSets.
MachineSets(namespace string) MachineSetNamespaceLister
MachineSetListerExpansion
@@ -22,17 +22,17 @@ type MachineSetLister interface {
// machineSetLister implements the MachineSetLister interface.
type machineSetLister struct {
- listers.ResourceIndexer[*v1beta1.MachineSet]
+ listers.ResourceIndexer[*machinev1beta1.MachineSet]
}
// NewMachineSetLister returns a new MachineSetLister.
func NewMachineSetLister(indexer cache.Indexer) MachineSetLister {
- return &machineSetLister{listers.New[*v1beta1.MachineSet](indexer, v1beta1.Resource("machineset"))}
+ return &machineSetLister{listers.New[*machinev1beta1.MachineSet](indexer, machinev1beta1.Resource("machineset"))}
}
// MachineSets returns an object that can list and get MachineSets.
func (s *machineSetLister) MachineSets(namespace string) MachineSetNamespaceLister {
- return machineSetNamespaceLister{listers.NewNamespaced[*v1beta1.MachineSet](s.ResourceIndexer, namespace)}
+ return machineSetNamespaceLister{listers.NewNamespaced[*machinev1beta1.MachineSet](s.ResourceIndexer, namespace)}
}
// MachineSetNamespaceLister helps list and get MachineSets.
@@ -40,15 +40,15 @@ func (s *machineSetLister) MachineSets(namespace string) MachineSetNamespaceList
type MachineSetNamespaceLister interface {
// List lists all MachineSets in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1beta1.MachineSet, err error)
+ List(selector labels.Selector) (ret []*machinev1beta1.MachineSet, err error)
// Get retrieves the MachineSet from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1beta1.MachineSet, error)
+ Get(name string) (*machinev1beta1.MachineSet, error)
MachineSetNamespaceListerExpansion
}
// machineSetNamespaceLister implements the MachineSetNamespaceLister
// interface.
type machineSetNamespaceLister struct {
- listers.ResourceIndexer[*v1beta1.MachineSet]
+ listers.ResourceIndexer[*machinev1beta1.MachineSet]
}
diff --git a/machineconfiguration/applyconfigurations/internal/internal.go b/machineconfiguration/applyconfigurations/internal/internal.go
index da0071b08..658261f0d 100644
--- a/machineconfiguration/applyconfigurations/internal/internal.go
+++ b/machineconfiguration/applyconfigurations/internal/internal.go
@@ -3,8 +3,8 @@
package internal
import (
- "fmt"
- "sync"
+ fmt "fmt"
+ sync "sync"
typed "sigs.k8s.io/structured-merge-diff/v4/typed"
)
diff --git a/machineconfiguration/applyconfigurations/machineconfiguration/v1/certexpiry.go b/machineconfiguration/applyconfigurations/machineconfiguration/v1/certexpiry.go
index 64294969a..1abcad2e8 100644
--- a/machineconfiguration/applyconfigurations/machineconfiguration/v1/certexpiry.go
+++ b/machineconfiguration/applyconfigurations/machineconfiguration/v1/certexpiry.go
@@ -3,15 +3,15 @@
package v1
import (
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// CertExpiryApplyConfiguration represents a declarative configuration of the CertExpiry type for use
// with apply.
type CertExpiryApplyConfiguration struct {
- Bundle *string `json:"bundle,omitempty"`
- Subject *string `json:"subject,omitempty"`
- Expiry *v1.Time `json:"expiry,omitempty"`
+ Bundle *string `json:"bundle,omitempty"`
+ Subject *string `json:"subject,omitempty"`
+ Expiry *metav1.Time `json:"expiry,omitempty"`
}
// CertExpiryApplyConfiguration constructs a declarative configuration of the CertExpiry type for use with
@@ -39,7 +39,7 @@ func (b *CertExpiryApplyConfiguration) WithSubject(value string) *CertExpiryAppl
// WithExpiry sets the Expiry field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Expiry field is set to the value of the last call.
-func (b *CertExpiryApplyConfiguration) WithExpiry(value v1.Time) *CertExpiryApplyConfiguration {
+func (b *CertExpiryApplyConfiguration) WithExpiry(value metav1.Time) *CertExpiryApplyConfiguration {
b.Expiry = &value
return b
}
diff --git a/machineconfiguration/applyconfigurations/machineconfiguration/v1/containerruntimeconfig.go b/machineconfiguration/applyconfigurations/machineconfiguration/v1/containerruntimeconfig.go
index cc5979c1a..a4c0f9fd9 100644
--- a/machineconfiguration/applyconfigurations/machineconfiguration/v1/containerruntimeconfig.go
+++ b/machineconfiguration/applyconfigurations/machineconfiguration/v1/containerruntimeconfig.go
@@ -3,21 +3,21 @@
package v1
import (
- apimachineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
+ machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
internal "github.com/openshift/client-go/machineconfiguration/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ContainerRuntimeConfigApplyConfiguration represents a declarative configuration of the ContainerRuntimeConfig type for use
// with apply.
type ContainerRuntimeConfigApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *ContainerRuntimeConfigSpecApplyConfiguration `json:"spec,omitempty"`
- Status *ContainerRuntimeConfigStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *ContainerRuntimeConfigSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *ContainerRuntimeConfigStatusApplyConfiguration `json:"status,omitempty"`
}
// ContainerRuntimeConfig constructs a declarative configuration of the ContainerRuntimeConfig type for use with
@@ -41,18 +41,18 @@ func ContainerRuntimeConfig(name string) *ContainerRuntimeConfigApplyConfigurati
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractContainerRuntimeConfig(containerRuntimeConfig *apimachineconfigurationv1.ContainerRuntimeConfig, fieldManager string) (*ContainerRuntimeConfigApplyConfiguration, error) {
+func ExtractContainerRuntimeConfig(containerRuntimeConfig *machineconfigurationv1.ContainerRuntimeConfig, fieldManager string) (*ContainerRuntimeConfigApplyConfiguration, error) {
return extractContainerRuntimeConfig(containerRuntimeConfig, fieldManager, "")
}
// ExtractContainerRuntimeConfigStatus is the same as ExtractContainerRuntimeConfig except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractContainerRuntimeConfigStatus(containerRuntimeConfig *apimachineconfigurationv1.ContainerRuntimeConfig, fieldManager string) (*ContainerRuntimeConfigApplyConfiguration, error) {
+func ExtractContainerRuntimeConfigStatus(containerRuntimeConfig *machineconfigurationv1.ContainerRuntimeConfig, fieldManager string) (*ContainerRuntimeConfigApplyConfiguration, error) {
return extractContainerRuntimeConfig(containerRuntimeConfig, fieldManager, "status")
}
-func extractContainerRuntimeConfig(containerRuntimeConfig *apimachineconfigurationv1.ContainerRuntimeConfig, fieldManager string, subresource string) (*ContainerRuntimeConfigApplyConfiguration, error) {
+func extractContainerRuntimeConfig(containerRuntimeConfig *machineconfigurationv1.ContainerRuntimeConfig, fieldManager string, subresource string) (*ContainerRuntimeConfigApplyConfiguration, error) {
b := &ContainerRuntimeConfigApplyConfiguration{}
err := managedfields.ExtractInto(containerRuntimeConfig, internal.Parser().Type("com.github.openshift.api.machineconfiguration.v1.ContainerRuntimeConfig"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractContainerRuntimeConfig(containerRuntimeConfig *apimachineconfigurati
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ContainerRuntimeConfigApplyConfiguration) WithKind(value string) *ContainerRuntimeConfigApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *ContainerRuntimeConfigApplyConfiguration) WithKind(value string) *Conta
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ContainerRuntimeConfigApplyConfiguration) WithAPIVersion(value string) *ContainerRuntimeConfigApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *ContainerRuntimeConfigApplyConfiguration) WithAPIVersion(value string)
// If called multiple times, the Name field is set to the value of the last call.
func (b *ContainerRuntimeConfigApplyConfiguration) WithName(value string) *ContainerRuntimeConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *ContainerRuntimeConfigApplyConfiguration) WithName(value string) *Conta
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ContainerRuntimeConfigApplyConfiguration) WithGenerateName(value string) *ContainerRuntimeConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *ContainerRuntimeConfigApplyConfiguration) WithGenerateName(value string
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ContainerRuntimeConfigApplyConfiguration) WithNamespace(value string) *ContainerRuntimeConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *ContainerRuntimeConfigApplyConfiguration) WithNamespace(value string) *
// If called multiple times, the UID field is set to the value of the last call.
func (b *ContainerRuntimeConfigApplyConfiguration) WithUID(value types.UID) *ContainerRuntimeConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *ContainerRuntimeConfigApplyConfiguration) WithUID(value types.UID) *Con
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ContainerRuntimeConfigApplyConfiguration) WithResourceVersion(value string) *ContainerRuntimeConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *ContainerRuntimeConfigApplyConfiguration) WithResourceVersion(value str
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ContainerRuntimeConfigApplyConfiguration) WithGeneration(value int64) *ContainerRuntimeConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *ContainerRuntimeConfigApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ContainerRuntimeConfigApplyConfiguration {
+func (b *ContainerRuntimeConfigApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ContainerRuntimeConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *ContainerRuntimeConfigApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ContainerRuntimeConfigApplyConfiguration {
+func (b *ContainerRuntimeConfigApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ContainerRuntimeConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *ContainerRuntimeConfigApplyConfiguration) WithDeletionTimestamp(value m
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ContainerRuntimeConfigApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ContainerRuntimeConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *ContainerRuntimeConfigApplyConfiguration) WithDeletionGracePeriodSecond
// overwriting an existing map entries in Labels field with the same key.
func (b *ContainerRuntimeConfigApplyConfiguration) WithLabels(entries map[string]string) *ContainerRuntimeConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *ContainerRuntimeConfigApplyConfiguration) WithLabels(entries map[string
// overwriting an existing map entries in Annotations field with the same key.
func (b *ContainerRuntimeConfigApplyConfiguration) WithAnnotations(entries map[string]string) *ContainerRuntimeConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *ContainerRuntimeConfigApplyConfiguration) WithAnnotations(entries map[s
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *ContainerRuntimeConfigApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ContainerRuntimeConfigApplyConfiguration {
+func (b *ContainerRuntimeConfigApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ContainerRuntimeConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *ContainerRuntimeConfigApplyConfiguration) WithOwnerReferences(values ..
func (b *ContainerRuntimeConfigApplyConfiguration) WithFinalizers(values ...string) *ContainerRuntimeConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *ContainerRuntimeConfigApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *ContainerRuntimeConfigApplyConfiguration) WithStatus(value *ContainerRu
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ContainerRuntimeConfigApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/machineconfiguration/applyconfigurations/machineconfiguration/v1/containerruntimeconfigcondition.go b/machineconfiguration/applyconfigurations/machineconfiguration/v1/containerruntimeconfigcondition.go
index 8858ba1ac..8e73a5dc2 100644
--- a/machineconfiguration/applyconfigurations/machineconfiguration/v1/containerruntimeconfigcondition.go
+++ b/machineconfiguration/applyconfigurations/machineconfiguration/v1/containerruntimeconfigcondition.go
@@ -3,7 +3,7 @@
package v1
import (
- v1 "github.com/openshift/api/machineconfiguration/v1"
+ machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
@@ -11,11 +11,11 @@ import (
// ContainerRuntimeConfigConditionApplyConfiguration represents a declarative configuration of the ContainerRuntimeConfigCondition type for use
// with apply.
type ContainerRuntimeConfigConditionApplyConfiguration struct {
- Type *v1.ContainerRuntimeConfigStatusConditionType `json:"type,omitempty"`
- Status *corev1.ConditionStatus `json:"status,omitempty"`
- LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
- Reason *string `json:"reason,omitempty"`
- Message *string `json:"message,omitempty"`
+ Type *machineconfigurationv1.ContainerRuntimeConfigStatusConditionType `json:"type,omitempty"`
+ Status *corev1.ConditionStatus `json:"status,omitempty"`
+ LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
+ Reason *string `json:"reason,omitempty"`
+ Message *string `json:"message,omitempty"`
}
// ContainerRuntimeConfigConditionApplyConfiguration constructs a declarative configuration of the ContainerRuntimeConfigCondition type for use with
@@ -27,7 +27,7 @@ func ContainerRuntimeConfigCondition() *ContainerRuntimeConfigConditionApplyConf
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *ContainerRuntimeConfigConditionApplyConfiguration) WithType(value v1.ContainerRuntimeConfigStatusConditionType) *ContainerRuntimeConfigConditionApplyConfiguration {
+func (b *ContainerRuntimeConfigConditionApplyConfiguration) WithType(value machineconfigurationv1.ContainerRuntimeConfigStatusConditionType) *ContainerRuntimeConfigConditionApplyConfiguration {
b.Type = &value
return b
}
diff --git a/machineconfiguration/applyconfigurations/machineconfiguration/v1/containerruntimeconfigspec.go b/machineconfiguration/applyconfigurations/machineconfiguration/v1/containerruntimeconfigspec.go
index 39bb351c6..8e7a0a2a2 100644
--- a/machineconfiguration/applyconfigurations/machineconfiguration/v1/containerruntimeconfigspec.go
+++ b/machineconfiguration/applyconfigurations/machineconfiguration/v1/containerruntimeconfigspec.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ContainerRuntimeConfigSpecApplyConfiguration represents a declarative configuration of the ContainerRuntimeConfigSpec type for use
// with apply.
type ContainerRuntimeConfigSpecApplyConfiguration struct {
- MachineConfigPoolSelector *v1.LabelSelectorApplyConfiguration `json:"machineConfigPoolSelector,omitempty"`
+ MachineConfigPoolSelector *metav1.LabelSelectorApplyConfiguration `json:"machineConfigPoolSelector,omitempty"`
ContainerRuntimeConfig *ContainerRuntimeConfigurationApplyConfiguration `json:"containerRuntimeConfig,omitempty"`
}
@@ -22,7 +22,7 @@ func ContainerRuntimeConfigSpec() *ContainerRuntimeConfigSpecApplyConfiguration
// WithMachineConfigPoolSelector sets the MachineConfigPoolSelector field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the MachineConfigPoolSelector field is set to the value of the last call.
-func (b *ContainerRuntimeConfigSpecApplyConfiguration) WithMachineConfigPoolSelector(value *v1.LabelSelectorApplyConfiguration) *ContainerRuntimeConfigSpecApplyConfiguration {
+func (b *ContainerRuntimeConfigSpecApplyConfiguration) WithMachineConfigPoolSelector(value *metav1.LabelSelectorApplyConfiguration) *ContainerRuntimeConfigSpecApplyConfiguration {
b.MachineConfigPoolSelector = value
return b
}
diff --git a/machineconfiguration/applyconfigurations/machineconfiguration/v1/containerruntimeconfiguration.go b/machineconfiguration/applyconfigurations/machineconfiguration/v1/containerruntimeconfiguration.go
index f1a8d8f4f..5be7a98c0 100644
--- a/machineconfiguration/applyconfigurations/machineconfiguration/v1/containerruntimeconfiguration.go
+++ b/machineconfiguration/applyconfigurations/machineconfiguration/v1/containerruntimeconfiguration.go
@@ -3,18 +3,18 @@
package v1
import (
- v1 "github.com/openshift/api/machineconfiguration/v1"
+ machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
resource "k8s.io/apimachinery/pkg/api/resource"
)
// ContainerRuntimeConfigurationApplyConfiguration represents a declarative configuration of the ContainerRuntimeConfiguration type for use
// with apply.
type ContainerRuntimeConfigurationApplyConfiguration struct {
- PidsLimit *int64 `json:"pidsLimit,omitempty"`
- LogLevel *string `json:"logLevel,omitempty"`
- LogSizeMax *resource.Quantity `json:"logSizeMax,omitempty"`
- OverlaySize *resource.Quantity `json:"overlaySize,omitempty"`
- DefaultRuntime *v1.ContainerRuntimeDefaultRuntime `json:"defaultRuntime,omitempty"`
+ PidsLimit *int64 `json:"pidsLimit,omitempty"`
+ LogLevel *string `json:"logLevel,omitempty"`
+ LogSizeMax *resource.Quantity `json:"logSizeMax,omitempty"`
+ OverlaySize *resource.Quantity `json:"overlaySize,omitempty"`
+ DefaultRuntime *machineconfigurationv1.ContainerRuntimeDefaultRuntime `json:"defaultRuntime,omitempty"`
}
// ContainerRuntimeConfigurationApplyConfiguration constructs a declarative configuration of the ContainerRuntimeConfiguration type for use with
@@ -58,7 +58,7 @@ func (b *ContainerRuntimeConfigurationApplyConfiguration) WithOverlaySize(value
// WithDefaultRuntime sets the DefaultRuntime field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DefaultRuntime field is set to the value of the last call.
-func (b *ContainerRuntimeConfigurationApplyConfiguration) WithDefaultRuntime(value v1.ContainerRuntimeDefaultRuntime) *ContainerRuntimeConfigurationApplyConfiguration {
+func (b *ContainerRuntimeConfigurationApplyConfiguration) WithDefaultRuntime(value machineconfigurationv1.ContainerRuntimeDefaultRuntime) *ContainerRuntimeConfigurationApplyConfiguration {
b.DefaultRuntime = &value
return b
}
diff --git a/machineconfiguration/applyconfigurations/machineconfiguration/v1/controllercertificate.go b/machineconfiguration/applyconfigurations/machineconfiguration/v1/controllercertificate.go
index 56f20a64c..fbfa92b05 100644
--- a/machineconfiguration/applyconfigurations/machineconfiguration/v1/controllercertificate.go
+++ b/machineconfiguration/applyconfigurations/machineconfiguration/v1/controllercertificate.go
@@ -3,17 +3,17 @@
package v1
import (
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// ControllerCertificateApplyConfiguration represents a declarative configuration of the ControllerCertificate type for use
// with apply.
type ControllerCertificateApplyConfiguration struct {
- Subject *string `json:"subject,omitempty"`
- Signer *string `json:"signer,omitempty"`
- NotBefore *v1.Time `json:"notBefore,omitempty"`
- NotAfter *v1.Time `json:"notAfter,omitempty"`
- BundleFile *string `json:"bundleFile,omitempty"`
+ Subject *string `json:"subject,omitempty"`
+ Signer *string `json:"signer,omitempty"`
+ NotBefore *metav1.Time `json:"notBefore,omitempty"`
+ NotAfter *metav1.Time `json:"notAfter,omitempty"`
+ BundleFile *string `json:"bundleFile,omitempty"`
}
// ControllerCertificateApplyConfiguration constructs a declarative configuration of the ControllerCertificate type for use with
@@ -41,7 +41,7 @@ func (b *ControllerCertificateApplyConfiguration) WithSigner(value string) *Cont
// WithNotBefore sets the NotBefore field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the NotBefore field is set to the value of the last call.
-func (b *ControllerCertificateApplyConfiguration) WithNotBefore(value v1.Time) *ControllerCertificateApplyConfiguration {
+func (b *ControllerCertificateApplyConfiguration) WithNotBefore(value metav1.Time) *ControllerCertificateApplyConfiguration {
b.NotBefore = &value
return b
}
@@ -49,7 +49,7 @@ func (b *ControllerCertificateApplyConfiguration) WithNotBefore(value v1.Time) *
// WithNotAfter sets the NotAfter field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the NotAfter field is set to the value of the last call.
-func (b *ControllerCertificateApplyConfiguration) WithNotAfter(value v1.Time) *ControllerCertificateApplyConfiguration {
+func (b *ControllerCertificateApplyConfiguration) WithNotAfter(value metav1.Time) *ControllerCertificateApplyConfiguration {
b.NotAfter = &value
return b
}
diff --git a/machineconfiguration/applyconfigurations/machineconfiguration/v1/controllerconfig.go b/machineconfiguration/applyconfigurations/machineconfiguration/v1/controllerconfig.go
index 5638d3d01..3d622812b 100644
--- a/machineconfiguration/applyconfigurations/machineconfiguration/v1/controllerconfig.go
+++ b/machineconfiguration/applyconfigurations/machineconfiguration/v1/controllerconfig.go
@@ -3,21 +3,21 @@
package v1
import (
- apimachineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
+ machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
internal "github.com/openshift/client-go/machineconfiguration/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ControllerConfigApplyConfiguration represents a declarative configuration of the ControllerConfig type for use
// with apply.
type ControllerConfigApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *ControllerConfigSpecApplyConfiguration `json:"spec,omitempty"`
- Status *ControllerConfigStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *ControllerConfigSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *ControllerConfigStatusApplyConfiguration `json:"status,omitempty"`
}
// ControllerConfig constructs a declarative configuration of the ControllerConfig type for use with
@@ -41,18 +41,18 @@ func ControllerConfig(name string) *ControllerConfigApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractControllerConfig(controllerConfig *apimachineconfigurationv1.ControllerConfig, fieldManager string) (*ControllerConfigApplyConfiguration, error) {
+func ExtractControllerConfig(controllerConfig *machineconfigurationv1.ControllerConfig, fieldManager string) (*ControllerConfigApplyConfiguration, error) {
return extractControllerConfig(controllerConfig, fieldManager, "")
}
// ExtractControllerConfigStatus is the same as ExtractControllerConfig except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractControllerConfigStatus(controllerConfig *apimachineconfigurationv1.ControllerConfig, fieldManager string) (*ControllerConfigApplyConfiguration, error) {
+func ExtractControllerConfigStatus(controllerConfig *machineconfigurationv1.ControllerConfig, fieldManager string) (*ControllerConfigApplyConfiguration, error) {
return extractControllerConfig(controllerConfig, fieldManager, "status")
}
-func extractControllerConfig(controllerConfig *apimachineconfigurationv1.ControllerConfig, fieldManager string, subresource string) (*ControllerConfigApplyConfiguration, error) {
+func extractControllerConfig(controllerConfig *machineconfigurationv1.ControllerConfig, fieldManager string, subresource string) (*ControllerConfigApplyConfiguration, error) {
b := &ControllerConfigApplyConfiguration{}
err := managedfields.ExtractInto(controllerConfig, internal.Parser().Type("com.github.openshift.api.machineconfiguration.v1.ControllerConfig"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractControllerConfig(controllerConfig *apimachineconfigurationv1.Control
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ControllerConfigApplyConfiguration) WithKind(value string) *ControllerConfigApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *ControllerConfigApplyConfiguration) WithKind(value string) *ControllerC
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ControllerConfigApplyConfiguration) WithAPIVersion(value string) *ControllerConfigApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *ControllerConfigApplyConfiguration) WithAPIVersion(value string) *Contr
// If called multiple times, the Name field is set to the value of the last call.
func (b *ControllerConfigApplyConfiguration) WithName(value string) *ControllerConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *ControllerConfigApplyConfiguration) WithName(value string) *ControllerC
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ControllerConfigApplyConfiguration) WithGenerateName(value string) *ControllerConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *ControllerConfigApplyConfiguration) WithGenerateName(value string) *Con
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ControllerConfigApplyConfiguration) WithNamespace(value string) *ControllerConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *ControllerConfigApplyConfiguration) WithNamespace(value string) *Contro
// If called multiple times, the UID field is set to the value of the last call.
func (b *ControllerConfigApplyConfiguration) WithUID(value types.UID) *ControllerConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *ControllerConfigApplyConfiguration) WithUID(value types.UID) *Controlle
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ControllerConfigApplyConfiguration) WithResourceVersion(value string) *ControllerConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *ControllerConfigApplyConfiguration) WithResourceVersion(value string) *
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ControllerConfigApplyConfiguration) WithGeneration(value int64) *ControllerConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *ControllerConfigApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ControllerConfigApplyConfiguration {
+func (b *ControllerConfigApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ControllerConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *ControllerConfigApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ControllerConfigApplyConfiguration {
+func (b *ControllerConfigApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ControllerConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *ControllerConfigApplyConfiguration) WithDeletionTimestamp(value metav1.
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ControllerConfigApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ControllerConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *ControllerConfigApplyConfiguration) WithDeletionGracePeriodSeconds(valu
// overwriting an existing map entries in Labels field with the same key.
func (b *ControllerConfigApplyConfiguration) WithLabels(entries map[string]string) *ControllerConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *ControllerConfigApplyConfiguration) WithLabels(entries map[string]strin
// overwriting an existing map entries in Annotations field with the same key.
func (b *ControllerConfigApplyConfiguration) WithAnnotations(entries map[string]string) *ControllerConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *ControllerConfigApplyConfiguration) WithAnnotations(entries map[string]
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *ControllerConfigApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ControllerConfigApplyConfiguration {
+func (b *ControllerConfigApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ControllerConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *ControllerConfigApplyConfiguration) WithOwnerReferences(values ...*v1.O
func (b *ControllerConfigApplyConfiguration) WithFinalizers(values ...string) *ControllerConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *ControllerConfigApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *ControllerConfigApplyConfiguration) WithStatus(value *ControllerConfigS
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ControllerConfigApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/machineconfiguration/applyconfigurations/machineconfiguration/v1/controllerconfigstatuscondition.go b/machineconfiguration/applyconfigurations/machineconfiguration/v1/controllerconfigstatuscondition.go
index d44864fe8..25998b187 100644
--- a/machineconfiguration/applyconfigurations/machineconfiguration/v1/controllerconfigstatuscondition.go
+++ b/machineconfiguration/applyconfigurations/machineconfiguration/v1/controllerconfigstatuscondition.go
@@ -3,7 +3,7 @@
package v1
import (
- v1 "github.com/openshift/api/machineconfiguration/v1"
+ machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
@@ -11,11 +11,11 @@ import (
// ControllerConfigStatusConditionApplyConfiguration represents a declarative configuration of the ControllerConfigStatusCondition type for use
// with apply.
type ControllerConfigStatusConditionApplyConfiguration struct {
- Type *v1.ControllerConfigStatusConditionType `json:"type,omitempty"`
- Status *corev1.ConditionStatus `json:"status,omitempty"`
- LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
- Reason *string `json:"reason,omitempty"`
- Message *string `json:"message,omitempty"`
+ Type *machineconfigurationv1.ControllerConfigStatusConditionType `json:"type,omitempty"`
+ Status *corev1.ConditionStatus `json:"status,omitempty"`
+ LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
+ Reason *string `json:"reason,omitempty"`
+ Message *string `json:"message,omitempty"`
}
// ControllerConfigStatusConditionApplyConfiguration constructs a declarative configuration of the ControllerConfigStatusCondition type for use with
@@ -27,7 +27,7 @@ func ControllerConfigStatusCondition() *ControllerConfigStatusConditionApplyConf
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *ControllerConfigStatusConditionApplyConfiguration) WithType(value v1.ControllerConfigStatusConditionType) *ControllerConfigStatusConditionApplyConfiguration {
+func (b *ControllerConfigStatusConditionApplyConfiguration) WithType(value machineconfigurationv1.ControllerConfigStatusConditionType) *ControllerConfigStatusConditionApplyConfiguration {
b.Type = &value
return b
}
diff --git a/machineconfiguration/applyconfigurations/machineconfiguration/v1/kubeletconfig.go b/machineconfiguration/applyconfigurations/machineconfiguration/v1/kubeletconfig.go
index 748fc7bdf..65c3bf8eb 100644
--- a/machineconfiguration/applyconfigurations/machineconfiguration/v1/kubeletconfig.go
+++ b/machineconfiguration/applyconfigurations/machineconfiguration/v1/kubeletconfig.go
@@ -3,21 +3,21 @@
package v1
import (
- apimachineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
+ machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
internal "github.com/openshift/client-go/machineconfiguration/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// KubeletConfigApplyConfiguration represents a declarative configuration of the KubeletConfig type for use
// with apply.
type KubeletConfigApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *KubeletConfigSpecApplyConfiguration `json:"spec,omitempty"`
- Status *KubeletConfigStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *KubeletConfigSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *KubeletConfigStatusApplyConfiguration `json:"status,omitempty"`
}
// KubeletConfig constructs a declarative configuration of the KubeletConfig type for use with
@@ -41,18 +41,18 @@ func KubeletConfig(name string) *KubeletConfigApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractKubeletConfig(kubeletConfig *apimachineconfigurationv1.KubeletConfig, fieldManager string) (*KubeletConfigApplyConfiguration, error) {
+func ExtractKubeletConfig(kubeletConfig *machineconfigurationv1.KubeletConfig, fieldManager string) (*KubeletConfigApplyConfiguration, error) {
return extractKubeletConfig(kubeletConfig, fieldManager, "")
}
// ExtractKubeletConfigStatus is the same as ExtractKubeletConfig except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractKubeletConfigStatus(kubeletConfig *apimachineconfigurationv1.KubeletConfig, fieldManager string) (*KubeletConfigApplyConfiguration, error) {
+func ExtractKubeletConfigStatus(kubeletConfig *machineconfigurationv1.KubeletConfig, fieldManager string) (*KubeletConfigApplyConfiguration, error) {
return extractKubeletConfig(kubeletConfig, fieldManager, "status")
}
-func extractKubeletConfig(kubeletConfig *apimachineconfigurationv1.KubeletConfig, fieldManager string, subresource string) (*KubeletConfigApplyConfiguration, error) {
+func extractKubeletConfig(kubeletConfig *machineconfigurationv1.KubeletConfig, fieldManager string, subresource string) (*KubeletConfigApplyConfiguration, error) {
b := &KubeletConfigApplyConfiguration{}
err := managedfields.ExtractInto(kubeletConfig, internal.Parser().Type("com.github.openshift.api.machineconfiguration.v1.KubeletConfig"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractKubeletConfig(kubeletConfig *apimachineconfigurationv1.KubeletConfig
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *KubeletConfigApplyConfiguration) WithKind(value string) *KubeletConfigApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *KubeletConfigApplyConfiguration) WithKind(value string) *KubeletConfigA
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *KubeletConfigApplyConfiguration) WithAPIVersion(value string) *KubeletConfigApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *KubeletConfigApplyConfiguration) WithAPIVersion(value string) *KubeletC
// If called multiple times, the Name field is set to the value of the last call.
func (b *KubeletConfigApplyConfiguration) WithName(value string) *KubeletConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *KubeletConfigApplyConfiguration) WithName(value string) *KubeletConfigA
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *KubeletConfigApplyConfiguration) WithGenerateName(value string) *KubeletConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *KubeletConfigApplyConfiguration) WithGenerateName(value string) *Kubele
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *KubeletConfigApplyConfiguration) WithNamespace(value string) *KubeletConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *KubeletConfigApplyConfiguration) WithNamespace(value string) *KubeletCo
// If called multiple times, the UID field is set to the value of the last call.
func (b *KubeletConfigApplyConfiguration) WithUID(value types.UID) *KubeletConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *KubeletConfigApplyConfiguration) WithUID(value types.UID) *KubeletConfi
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *KubeletConfigApplyConfiguration) WithResourceVersion(value string) *KubeletConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *KubeletConfigApplyConfiguration) WithResourceVersion(value string) *Kub
// If called multiple times, the Generation field is set to the value of the last call.
func (b *KubeletConfigApplyConfiguration) WithGeneration(value int64) *KubeletConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *KubeletConfigApplyConfiguration) WithCreationTimestamp(value metav1.Time) *KubeletConfigApplyConfiguration {
+func (b *KubeletConfigApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *KubeletConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *KubeletConfigApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *KubeletConfigApplyConfiguration {
+func (b *KubeletConfigApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *KubeletConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *KubeletConfigApplyConfiguration) WithDeletionTimestamp(value metav1.Tim
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *KubeletConfigApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *KubeletConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *KubeletConfigApplyConfiguration) WithDeletionGracePeriodSeconds(value i
// overwriting an existing map entries in Labels field with the same key.
func (b *KubeletConfigApplyConfiguration) WithLabels(entries map[string]string) *KubeletConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *KubeletConfigApplyConfiguration) WithLabels(entries map[string]string)
// overwriting an existing map entries in Annotations field with the same key.
func (b *KubeletConfigApplyConfiguration) WithAnnotations(entries map[string]string) *KubeletConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *KubeletConfigApplyConfiguration) WithAnnotations(entries map[string]str
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *KubeletConfigApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *KubeletConfigApplyConfiguration {
+func (b *KubeletConfigApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *KubeletConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *KubeletConfigApplyConfiguration) WithOwnerReferences(values ...*v1.Owne
func (b *KubeletConfigApplyConfiguration) WithFinalizers(values ...string) *KubeletConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *KubeletConfigApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *KubeletConfigApplyConfiguration) WithStatus(value *KubeletConfigStatusA
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *KubeletConfigApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/machineconfiguration/applyconfigurations/machineconfiguration/v1/kubeletconfigcondition.go b/machineconfiguration/applyconfigurations/machineconfiguration/v1/kubeletconfigcondition.go
index 8a31e5b18..7fbe03e3b 100644
--- a/machineconfiguration/applyconfigurations/machineconfiguration/v1/kubeletconfigcondition.go
+++ b/machineconfiguration/applyconfigurations/machineconfiguration/v1/kubeletconfigcondition.go
@@ -3,7 +3,7 @@
package v1
import (
- v1 "github.com/openshift/api/machineconfiguration/v1"
+ machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
@@ -11,11 +11,11 @@ import (
// KubeletConfigConditionApplyConfiguration represents a declarative configuration of the KubeletConfigCondition type for use
// with apply.
type KubeletConfigConditionApplyConfiguration struct {
- Type *v1.KubeletConfigStatusConditionType `json:"type,omitempty"`
- Status *corev1.ConditionStatus `json:"status,omitempty"`
- LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
- Reason *string `json:"reason,omitempty"`
- Message *string `json:"message,omitempty"`
+ Type *machineconfigurationv1.KubeletConfigStatusConditionType `json:"type,omitempty"`
+ Status *corev1.ConditionStatus `json:"status,omitempty"`
+ LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
+ Reason *string `json:"reason,omitempty"`
+ Message *string `json:"message,omitempty"`
}
// KubeletConfigConditionApplyConfiguration constructs a declarative configuration of the KubeletConfigCondition type for use with
@@ -27,7 +27,7 @@ func KubeletConfigCondition() *KubeletConfigConditionApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *KubeletConfigConditionApplyConfiguration) WithType(value v1.KubeletConfigStatusConditionType) *KubeletConfigConditionApplyConfiguration {
+func (b *KubeletConfigConditionApplyConfiguration) WithType(value machineconfigurationv1.KubeletConfigStatusConditionType) *KubeletConfigConditionApplyConfiguration {
b.Type = &value
return b
}
diff --git a/machineconfiguration/applyconfigurations/machineconfiguration/v1/kubeletconfigspec.go b/machineconfiguration/applyconfigurations/machineconfiguration/v1/kubeletconfigspec.go
index 4ef39ecd4..1232fb70a 100644
--- a/machineconfiguration/applyconfigurations/machineconfiguration/v1/kubeletconfigspec.go
+++ b/machineconfiguration/applyconfigurations/machineconfiguration/v1/kubeletconfigspec.go
@@ -5,17 +5,17 @@ package v1
import (
configv1 "github.com/openshift/api/config/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// KubeletConfigSpecApplyConfiguration represents a declarative configuration of the KubeletConfigSpec type for use
// with apply.
type KubeletConfigSpecApplyConfiguration struct {
- AutoSizingReserved *bool `json:"autoSizingReserved,omitempty"`
- LogLevel *int32 `json:"logLevel,omitempty"`
- MachineConfigPoolSelector *v1.LabelSelectorApplyConfiguration `json:"machineConfigPoolSelector,omitempty"`
- KubeletConfig *runtime.RawExtension `json:"kubeletConfig,omitempty"`
- TLSSecurityProfile *configv1.TLSSecurityProfile `json:"tlsSecurityProfile,omitempty"`
+ AutoSizingReserved *bool `json:"autoSizingReserved,omitempty"`
+ LogLevel *int32 `json:"logLevel,omitempty"`
+ MachineConfigPoolSelector *metav1.LabelSelectorApplyConfiguration `json:"machineConfigPoolSelector,omitempty"`
+ KubeletConfig *runtime.RawExtension `json:"kubeletConfig,omitempty"`
+ TLSSecurityProfile *configv1.TLSSecurityProfile `json:"tlsSecurityProfile,omitempty"`
}
// KubeletConfigSpecApplyConfiguration constructs a declarative configuration of the KubeletConfigSpec type for use with
@@ -43,7 +43,7 @@ func (b *KubeletConfigSpecApplyConfiguration) WithLogLevel(value int32) *Kubelet
// WithMachineConfigPoolSelector sets the MachineConfigPoolSelector field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the MachineConfigPoolSelector field is set to the value of the last call.
-func (b *KubeletConfigSpecApplyConfiguration) WithMachineConfigPoolSelector(value *v1.LabelSelectorApplyConfiguration) *KubeletConfigSpecApplyConfiguration {
+func (b *KubeletConfigSpecApplyConfiguration) WithMachineConfigPoolSelector(value *metav1.LabelSelectorApplyConfiguration) *KubeletConfigSpecApplyConfiguration {
b.MachineConfigPoolSelector = value
return b
}
diff --git a/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineconfig.go b/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineconfig.go
index ca857afdc..49ec0fb85 100644
--- a/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineconfig.go
+++ b/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineconfig.go
@@ -3,20 +3,20 @@
package v1
import (
- apimachineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
+ machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
internal "github.com/openshift/client-go/machineconfiguration/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// MachineConfigApplyConfiguration represents a declarative configuration of the MachineConfig type for use
// with apply.
type MachineConfigApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *MachineConfigSpecApplyConfiguration `json:"spec,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *MachineConfigSpecApplyConfiguration `json:"spec,omitempty"`
}
// MachineConfig constructs a declarative configuration of the MachineConfig type for use with
@@ -40,10 +40,10 @@ func MachineConfig(name string) *MachineConfigApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractMachineConfig(machineConfig *apimachineconfigurationv1.MachineConfig, fieldManager string) (*MachineConfigApplyConfiguration, error) {
+func ExtractMachineConfig(machineConfig *machineconfigurationv1.MachineConfig, fieldManager string) (*MachineConfigApplyConfiguration, error) {
return extractMachineConfig(machineConfig, fieldManager, "")
}
-func extractMachineConfig(machineConfig *apimachineconfigurationv1.MachineConfig, fieldManager string, subresource string) (*MachineConfigApplyConfiguration, error) {
+func extractMachineConfig(machineConfig *machineconfigurationv1.MachineConfig, fieldManager string, subresource string) (*MachineConfigApplyConfiguration, error) {
b := &MachineConfigApplyConfiguration{}
err := managedfields.ExtractInto(machineConfig, internal.Parser().Type("com.github.openshift.api.machineconfiguration.v1.MachineConfig"), fieldManager, b, subresource)
if err != nil {
@@ -60,7 +60,7 @@ func extractMachineConfig(machineConfig *apimachineconfigurationv1.MachineConfig
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *MachineConfigApplyConfiguration) WithKind(value string) *MachineConfigApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -68,7 +68,7 @@ func (b *MachineConfigApplyConfiguration) WithKind(value string) *MachineConfigA
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *MachineConfigApplyConfiguration) WithAPIVersion(value string) *MachineConfigApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -77,7 +77,7 @@ func (b *MachineConfigApplyConfiguration) WithAPIVersion(value string) *MachineC
// If called multiple times, the Name field is set to the value of the last call.
func (b *MachineConfigApplyConfiguration) WithName(value string) *MachineConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -86,7 +86,7 @@ func (b *MachineConfigApplyConfiguration) WithName(value string) *MachineConfigA
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *MachineConfigApplyConfiguration) WithGenerateName(value string) *MachineConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -95,7 +95,7 @@ func (b *MachineConfigApplyConfiguration) WithGenerateName(value string) *Machin
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *MachineConfigApplyConfiguration) WithNamespace(value string) *MachineConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -104,7 +104,7 @@ func (b *MachineConfigApplyConfiguration) WithNamespace(value string) *MachineCo
// If called multiple times, the UID field is set to the value of the last call.
func (b *MachineConfigApplyConfiguration) WithUID(value types.UID) *MachineConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -113,7 +113,7 @@ func (b *MachineConfigApplyConfiguration) WithUID(value types.UID) *MachineConfi
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *MachineConfigApplyConfiguration) WithResourceVersion(value string) *MachineConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -122,25 +122,25 @@ func (b *MachineConfigApplyConfiguration) WithResourceVersion(value string) *Mac
// If called multiple times, the Generation field is set to the value of the last call.
func (b *MachineConfigApplyConfiguration) WithGeneration(value int64) *MachineConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *MachineConfigApplyConfiguration) WithCreationTimestamp(value metav1.Time) *MachineConfigApplyConfiguration {
+func (b *MachineConfigApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *MachineConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *MachineConfigApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *MachineConfigApplyConfiguration {
+func (b *MachineConfigApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *MachineConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -149,7 +149,7 @@ func (b *MachineConfigApplyConfiguration) WithDeletionTimestamp(value metav1.Tim
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *MachineConfigApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *MachineConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -159,11 +159,11 @@ func (b *MachineConfigApplyConfiguration) WithDeletionGracePeriodSeconds(value i
// overwriting an existing map entries in Labels field with the same key.
func (b *MachineConfigApplyConfiguration) WithLabels(entries map[string]string) *MachineConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -174,11 +174,11 @@ func (b *MachineConfigApplyConfiguration) WithLabels(entries map[string]string)
// overwriting an existing map entries in Annotations field with the same key.
func (b *MachineConfigApplyConfiguration) WithAnnotations(entries map[string]string) *MachineConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -186,13 +186,13 @@ func (b *MachineConfigApplyConfiguration) WithAnnotations(entries map[string]str
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *MachineConfigApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *MachineConfigApplyConfiguration {
+func (b *MachineConfigApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *MachineConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -203,14 +203,14 @@ func (b *MachineConfigApplyConfiguration) WithOwnerReferences(values ...*v1.Owne
func (b *MachineConfigApplyConfiguration) WithFinalizers(values ...string) *MachineConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *MachineConfigApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -225,5 +225,5 @@ func (b *MachineConfigApplyConfiguration) WithSpec(value *MachineConfigSpecApply
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *MachineConfigApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineconfigpool.go b/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineconfigpool.go
index 7622e124e..93726a272 100644
--- a/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineconfigpool.go
+++ b/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineconfigpool.go
@@ -3,21 +3,21 @@
package v1
import (
- apimachineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
+ machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
internal "github.com/openshift/client-go/machineconfiguration/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// MachineConfigPoolApplyConfiguration represents a declarative configuration of the MachineConfigPool type for use
// with apply.
type MachineConfigPoolApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *MachineConfigPoolSpecApplyConfiguration `json:"spec,omitempty"`
- Status *MachineConfigPoolStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *MachineConfigPoolSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *MachineConfigPoolStatusApplyConfiguration `json:"status,omitempty"`
}
// MachineConfigPool constructs a declarative configuration of the MachineConfigPool type for use with
@@ -41,18 +41,18 @@ func MachineConfigPool(name string) *MachineConfigPoolApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractMachineConfigPool(machineConfigPool *apimachineconfigurationv1.MachineConfigPool, fieldManager string) (*MachineConfigPoolApplyConfiguration, error) {
+func ExtractMachineConfigPool(machineConfigPool *machineconfigurationv1.MachineConfigPool, fieldManager string) (*MachineConfigPoolApplyConfiguration, error) {
return extractMachineConfigPool(machineConfigPool, fieldManager, "")
}
// ExtractMachineConfigPoolStatus is the same as ExtractMachineConfigPool except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractMachineConfigPoolStatus(machineConfigPool *apimachineconfigurationv1.MachineConfigPool, fieldManager string) (*MachineConfigPoolApplyConfiguration, error) {
+func ExtractMachineConfigPoolStatus(machineConfigPool *machineconfigurationv1.MachineConfigPool, fieldManager string) (*MachineConfigPoolApplyConfiguration, error) {
return extractMachineConfigPool(machineConfigPool, fieldManager, "status")
}
-func extractMachineConfigPool(machineConfigPool *apimachineconfigurationv1.MachineConfigPool, fieldManager string, subresource string) (*MachineConfigPoolApplyConfiguration, error) {
+func extractMachineConfigPool(machineConfigPool *machineconfigurationv1.MachineConfigPool, fieldManager string, subresource string) (*MachineConfigPoolApplyConfiguration, error) {
b := &MachineConfigPoolApplyConfiguration{}
err := managedfields.ExtractInto(machineConfigPool, internal.Parser().Type("com.github.openshift.api.machineconfiguration.v1.MachineConfigPool"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractMachineConfigPool(machineConfigPool *apimachineconfigurationv1.Machi
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *MachineConfigPoolApplyConfiguration) WithKind(value string) *MachineConfigPoolApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *MachineConfigPoolApplyConfiguration) WithKind(value string) *MachineCon
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *MachineConfigPoolApplyConfiguration) WithAPIVersion(value string) *MachineConfigPoolApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *MachineConfigPoolApplyConfiguration) WithAPIVersion(value string) *Mach
// If called multiple times, the Name field is set to the value of the last call.
func (b *MachineConfigPoolApplyConfiguration) WithName(value string) *MachineConfigPoolApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *MachineConfigPoolApplyConfiguration) WithName(value string) *MachineCon
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *MachineConfigPoolApplyConfiguration) WithGenerateName(value string) *MachineConfigPoolApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *MachineConfigPoolApplyConfiguration) WithGenerateName(value string) *Ma
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *MachineConfigPoolApplyConfiguration) WithNamespace(value string) *MachineConfigPoolApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *MachineConfigPoolApplyConfiguration) WithNamespace(value string) *Machi
// If called multiple times, the UID field is set to the value of the last call.
func (b *MachineConfigPoolApplyConfiguration) WithUID(value types.UID) *MachineConfigPoolApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *MachineConfigPoolApplyConfiguration) WithUID(value types.UID) *MachineC
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *MachineConfigPoolApplyConfiguration) WithResourceVersion(value string) *MachineConfigPoolApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *MachineConfigPoolApplyConfiguration) WithResourceVersion(value string)
// If called multiple times, the Generation field is set to the value of the last call.
func (b *MachineConfigPoolApplyConfiguration) WithGeneration(value int64) *MachineConfigPoolApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *MachineConfigPoolApplyConfiguration) WithCreationTimestamp(value metav1.Time) *MachineConfigPoolApplyConfiguration {
+func (b *MachineConfigPoolApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *MachineConfigPoolApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *MachineConfigPoolApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *MachineConfigPoolApplyConfiguration {
+func (b *MachineConfigPoolApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *MachineConfigPoolApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *MachineConfigPoolApplyConfiguration) WithDeletionTimestamp(value metav1
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *MachineConfigPoolApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *MachineConfigPoolApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *MachineConfigPoolApplyConfiguration) WithDeletionGracePeriodSeconds(val
// overwriting an existing map entries in Labels field with the same key.
func (b *MachineConfigPoolApplyConfiguration) WithLabels(entries map[string]string) *MachineConfigPoolApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *MachineConfigPoolApplyConfiguration) WithLabels(entries map[string]stri
// overwriting an existing map entries in Annotations field with the same key.
func (b *MachineConfigPoolApplyConfiguration) WithAnnotations(entries map[string]string) *MachineConfigPoolApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *MachineConfigPoolApplyConfiguration) WithAnnotations(entries map[string
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *MachineConfigPoolApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *MachineConfigPoolApplyConfiguration {
+func (b *MachineConfigPoolApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *MachineConfigPoolApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *MachineConfigPoolApplyConfiguration) WithOwnerReferences(values ...*v1.
func (b *MachineConfigPoolApplyConfiguration) WithFinalizers(values ...string) *MachineConfigPoolApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *MachineConfigPoolApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *MachineConfigPoolApplyConfiguration) WithStatus(value *MachineConfigPoo
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *MachineConfigPoolApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineconfigpoolcondition.go b/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineconfigpoolcondition.go
index 89e2f9136..09bad851e 100644
--- a/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineconfigpoolcondition.go
+++ b/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineconfigpoolcondition.go
@@ -3,7 +3,7 @@
package v1
import (
- v1 "github.com/openshift/api/machineconfiguration/v1"
+ machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
@@ -11,11 +11,11 @@ import (
// MachineConfigPoolConditionApplyConfiguration represents a declarative configuration of the MachineConfigPoolCondition type for use
// with apply.
type MachineConfigPoolConditionApplyConfiguration struct {
- Type *v1.MachineConfigPoolConditionType `json:"type,omitempty"`
- Status *corev1.ConditionStatus `json:"status,omitempty"`
- LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
- Reason *string `json:"reason,omitempty"`
- Message *string `json:"message,omitempty"`
+ Type *machineconfigurationv1.MachineConfigPoolConditionType `json:"type,omitempty"`
+ Status *corev1.ConditionStatus `json:"status,omitempty"`
+ LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
+ Reason *string `json:"reason,omitempty"`
+ Message *string `json:"message,omitempty"`
}
// MachineConfigPoolConditionApplyConfiguration constructs a declarative configuration of the MachineConfigPoolCondition type for use with
@@ -27,7 +27,7 @@ func MachineConfigPoolCondition() *MachineConfigPoolConditionApplyConfiguration
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *MachineConfigPoolConditionApplyConfiguration) WithType(value v1.MachineConfigPoolConditionType) *MachineConfigPoolConditionApplyConfiguration {
+func (b *MachineConfigPoolConditionApplyConfiguration) WithType(value machineconfigurationv1.MachineConfigPoolConditionType) *MachineConfigPoolConditionApplyConfiguration {
b.Type = &value
return b
}
diff --git a/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineconfigpoolspec.go b/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineconfigpoolspec.go
index 13640f0a6..1b3d4db60 100644
--- a/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineconfigpoolspec.go
+++ b/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineconfigpoolspec.go
@@ -4,14 +4,14 @@ package v1
import (
intstr "k8s.io/apimachinery/pkg/util/intstr"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// MachineConfigPoolSpecApplyConfiguration represents a declarative configuration of the MachineConfigPoolSpec type for use
// with apply.
type MachineConfigPoolSpecApplyConfiguration struct {
- MachineConfigSelector *v1.LabelSelectorApplyConfiguration `json:"machineConfigSelector,omitempty"`
- NodeSelector *v1.LabelSelectorApplyConfiguration `json:"nodeSelector,omitempty"`
+ MachineConfigSelector *metav1.LabelSelectorApplyConfiguration `json:"machineConfigSelector,omitempty"`
+ NodeSelector *metav1.LabelSelectorApplyConfiguration `json:"nodeSelector,omitempty"`
Paused *bool `json:"paused,omitempty"`
MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty"`
Configuration *MachineConfigPoolStatusConfigurationApplyConfiguration `json:"configuration,omitempty"`
@@ -27,7 +27,7 @@ func MachineConfigPoolSpec() *MachineConfigPoolSpecApplyConfiguration {
// WithMachineConfigSelector sets the MachineConfigSelector field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the MachineConfigSelector field is set to the value of the last call.
-func (b *MachineConfigPoolSpecApplyConfiguration) WithMachineConfigSelector(value *v1.LabelSelectorApplyConfiguration) *MachineConfigPoolSpecApplyConfiguration {
+func (b *MachineConfigPoolSpecApplyConfiguration) WithMachineConfigSelector(value *metav1.LabelSelectorApplyConfiguration) *MachineConfigPoolSpecApplyConfiguration {
b.MachineConfigSelector = value
return b
}
@@ -35,7 +35,7 @@ func (b *MachineConfigPoolSpecApplyConfiguration) WithMachineConfigSelector(valu
// WithNodeSelector sets the NodeSelector field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the NodeSelector field is set to the value of the last call.
-func (b *MachineConfigPoolSpecApplyConfiguration) WithNodeSelector(value *v1.LabelSelectorApplyConfiguration) *MachineConfigPoolSpecApplyConfiguration {
+func (b *MachineConfigPoolSpecApplyConfiguration) WithNodeSelector(value *metav1.LabelSelectorApplyConfiguration) *MachineConfigPoolSpecApplyConfiguration {
b.NodeSelector = value
return b
}
diff --git a/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineconfigpoolstatusconfiguration.go b/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineconfigpoolstatusconfiguration.go
index 506d6a66f..4fc95a273 100644
--- a/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineconfigpoolstatusconfiguration.go
+++ b/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineconfigpoolstatusconfiguration.go
@@ -4,14 +4,14 @@ package v1
import (
types "k8s.io/apimachinery/pkg/types"
- v1 "k8s.io/client-go/applyconfigurations/core/v1"
+ corev1 "k8s.io/client-go/applyconfigurations/core/v1"
)
// MachineConfigPoolStatusConfigurationApplyConfiguration represents a declarative configuration of the MachineConfigPoolStatusConfiguration type for use
// with apply.
type MachineConfigPoolStatusConfigurationApplyConfiguration struct {
- v1.ObjectReferenceApplyConfiguration `json:",inline"`
- Source []v1.ObjectReferenceApplyConfiguration `json:"source,omitempty"`
+ corev1.ObjectReferenceApplyConfiguration `json:",inline"`
+ Source []corev1.ObjectReferenceApplyConfiguration `json:"source,omitempty"`
}
// MachineConfigPoolStatusConfigurationApplyConfiguration constructs a declarative configuration of the MachineConfigPoolStatusConfiguration type for use with
@@ -24,7 +24,7 @@ func MachineConfigPoolStatusConfiguration() *MachineConfigPoolStatusConfiguratio
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *MachineConfigPoolStatusConfigurationApplyConfiguration) WithKind(value string) *MachineConfigPoolStatusConfigurationApplyConfiguration {
- b.Kind = &value
+ b.ObjectReferenceApplyConfiguration.Kind = &value
return b
}
@@ -32,7 +32,7 @@ func (b *MachineConfigPoolStatusConfigurationApplyConfiguration) WithKind(value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *MachineConfigPoolStatusConfigurationApplyConfiguration) WithNamespace(value string) *MachineConfigPoolStatusConfigurationApplyConfiguration {
- b.Namespace = &value
+ b.ObjectReferenceApplyConfiguration.Namespace = &value
return b
}
@@ -40,7 +40,7 @@ func (b *MachineConfigPoolStatusConfigurationApplyConfiguration) WithNamespace(v
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Name field is set to the value of the last call.
func (b *MachineConfigPoolStatusConfigurationApplyConfiguration) WithName(value string) *MachineConfigPoolStatusConfigurationApplyConfiguration {
- b.Name = &value
+ b.ObjectReferenceApplyConfiguration.Name = &value
return b
}
@@ -48,7 +48,7 @@ func (b *MachineConfigPoolStatusConfigurationApplyConfiguration) WithName(value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the UID field is set to the value of the last call.
func (b *MachineConfigPoolStatusConfigurationApplyConfiguration) WithUID(value types.UID) *MachineConfigPoolStatusConfigurationApplyConfiguration {
- b.UID = &value
+ b.ObjectReferenceApplyConfiguration.UID = &value
return b
}
@@ -56,7 +56,7 @@ func (b *MachineConfigPoolStatusConfigurationApplyConfiguration) WithUID(value t
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *MachineConfigPoolStatusConfigurationApplyConfiguration) WithAPIVersion(value string) *MachineConfigPoolStatusConfigurationApplyConfiguration {
- b.APIVersion = &value
+ b.ObjectReferenceApplyConfiguration.APIVersion = &value
return b
}
@@ -64,7 +64,7 @@ func (b *MachineConfigPoolStatusConfigurationApplyConfiguration) WithAPIVersion(
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *MachineConfigPoolStatusConfigurationApplyConfiguration) WithResourceVersion(value string) *MachineConfigPoolStatusConfigurationApplyConfiguration {
- b.ResourceVersion = &value
+ b.ObjectReferenceApplyConfiguration.ResourceVersion = &value
return b
}
@@ -72,14 +72,14 @@ func (b *MachineConfigPoolStatusConfigurationApplyConfiguration) WithResourceVer
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the FieldPath field is set to the value of the last call.
func (b *MachineConfigPoolStatusConfigurationApplyConfiguration) WithFieldPath(value string) *MachineConfigPoolStatusConfigurationApplyConfiguration {
- b.FieldPath = &value
+ b.ObjectReferenceApplyConfiguration.FieldPath = &value
return b
}
// WithSource adds the given value to the Source field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Source field.
-func (b *MachineConfigPoolStatusConfigurationApplyConfiguration) WithSource(values ...*v1.ObjectReferenceApplyConfiguration) *MachineConfigPoolStatusConfigurationApplyConfiguration {
+func (b *MachineConfigPoolStatusConfigurationApplyConfiguration) WithSource(values ...*corev1.ObjectReferenceApplyConfiguration) *MachineConfigPoolStatusConfigurationApplyConfiguration {
for i := range values {
if values[i] == nil {
panic("nil value passed to WithSource")
diff --git a/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineosbuild.go b/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineosbuild.go
index 632e7c526..85fad3207 100644
--- a/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineosbuild.go
+++ b/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineosbuild.go
@@ -3,21 +3,21 @@
package v1
import (
- apimachineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
+ machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
internal "github.com/openshift/client-go/machineconfiguration/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// MachineOSBuildApplyConfiguration represents a declarative configuration of the MachineOSBuild type for use
// with apply.
type MachineOSBuildApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *MachineOSBuildSpecApplyConfiguration `json:"spec,omitempty"`
- Status *MachineOSBuildStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *MachineOSBuildSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *MachineOSBuildStatusApplyConfiguration `json:"status,omitempty"`
}
// MachineOSBuild constructs a declarative configuration of the MachineOSBuild type for use with
@@ -41,18 +41,18 @@ func MachineOSBuild(name string) *MachineOSBuildApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractMachineOSBuild(machineOSBuild *apimachineconfigurationv1.MachineOSBuild, fieldManager string) (*MachineOSBuildApplyConfiguration, error) {
+func ExtractMachineOSBuild(machineOSBuild *machineconfigurationv1.MachineOSBuild, fieldManager string) (*MachineOSBuildApplyConfiguration, error) {
return extractMachineOSBuild(machineOSBuild, fieldManager, "")
}
// ExtractMachineOSBuildStatus is the same as ExtractMachineOSBuild except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractMachineOSBuildStatus(machineOSBuild *apimachineconfigurationv1.MachineOSBuild, fieldManager string) (*MachineOSBuildApplyConfiguration, error) {
+func ExtractMachineOSBuildStatus(machineOSBuild *machineconfigurationv1.MachineOSBuild, fieldManager string) (*MachineOSBuildApplyConfiguration, error) {
return extractMachineOSBuild(machineOSBuild, fieldManager, "status")
}
-func extractMachineOSBuild(machineOSBuild *apimachineconfigurationv1.MachineOSBuild, fieldManager string, subresource string) (*MachineOSBuildApplyConfiguration, error) {
+func extractMachineOSBuild(machineOSBuild *machineconfigurationv1.MachineOSBuild, fieldManager string, subresource string) (*MachineOSBuildApplyConfiguration, error) {
b := &MachineOSBuildApplyConfiguration{}
err := managedfields.ExtractInto(machineOSBuild, internal.Parser().Type("com.github.openshift.api.machineconfiguration.v1.MachineOSBuild"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractMachineOSBuild(machineOSBuild *apimachineconfigurationv1.MachineOSBu
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *MachineOSBuildApplyConfiguration) WithKind(value string) *MachineOSBuildApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *MachineOSBuildApplyConfiguration) WithKind(value string) *MachineOSBuil
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *MachineOSBuildApplyConfiguration) WithAPIVersion(value string) *MachineOSBuildApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *MachineOSBuildApplyConfiguration) WithAPIVersion(value string) *Machine
// If called multiple times, the Name field is set to the value of the last call.
func (b *MachineOSBuildApplyConfiguration) WithName(value string) *MachineOSBuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *MachineOSBuildApplyConfiguration) WithName(value string) *MachineOSBuil
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *MachineOSBuildApplyConfiguration) WithGenerateName(value string) *MachineOSBuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *MachineOSBuildApplyConfiguration) WithGenerateName(value string) *Machi
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *MachineOSBuildApplyConfiguration) WithNamespace(value string) *MachineOSBuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *MachineOSBuildApplyConfiguration) WithNamespace(value string) *MachineO
// If called multiple times, the UID field is set to the value of the last call.
func (b *MachineOSBuildApplyConfiguration) WithUID(value types.UID) *MachineOSBuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *MachineOSBuildApplyConfiguration) WithUID(value types.UID) *MachineOSBu
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *MachineOSBuildApplyConfiguration) WithResourceVersion(value string) *MachineOSBuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *MachineOSBuildApplyConfiguration) WithResourceVersion(value string) *Ma
// If called multiple times, the Generation field is set to the value of the last call.
func (b *MachineOSBuildApplyConfiguration) WithGeneration(value int64) *MachineOSBuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *MachineOSBuildApplyConfiguration) WithCreationTimestamp(value metav1.Time) *MachineOSBuildApplyConfiguration {
+func (b *MachineOSBuildApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *MachineOSBuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *MachineOSBuildApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *MachineOSBuildApplyConfiguration {
+func (b *MachineOSBuildApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *MachineOSBuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *MachineOSBuildApplyConfiguration) WithDeletionTimestamp(value metav1.Ti
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *MachineOSBuildApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *MachineOSBuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *MachineOSBuildApplyConfiguration) WithDeletionGracePeriodSeconds(value
// overwriting an existing map entries in Labels field with the same key.
func (b *MachineOSBuildApplyConfiguration) WithLabels(entries map[string]string) *MachineOSBuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *MachineOSBuildApplyConfiguration) WithLabels(entries map[string]string)
// overwriting an existing map entries in Annotations field with the same key.
func (b *MachineOSBuildApplyConfiguration) WithAnnotations(entries map[string]string) *MachineOSBuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *MachineOSBuildApplyConfiguration) WithAnnotations(entries map[string]st
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *MachineOSBuildApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *MachineOSBuildApplyConfiguration {
+func (b *MachineOSBuildApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *MachineOSBuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *MachineOSBuildApplyConfiguration) WithOwnerReferences(values ...*v1.Own
func (b *MachineOSBuildApplyConfiguration) WithFinalizers(values ...string) *MachineOSBuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *MachineOSBuildApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *MachineOSBuildApplyConfiguration) WithStatus(value *MachineOSBuildStatu
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *MachineOSBuildApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineosbuilderreference.go b/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineosbuilderreference.go
index 91a14fed9..289980435 100644
--- a/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineosbuilderreference.go
+++ b/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineosbuilderreference.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "github.com/openshift/api/machineconfiguration/v1"
+ machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
)
// MachineOSBuilderReferenceApplyConfiguration represents a declarative configuration of the MachineOSBuilderReference type for use
// with apply.
type MachineOSBuilderReferenceApplyConfiguration struct {
- ImageBuilderType *v1.MachineOSImageBuilderType `json:"imageBuilderType,omitempty"`
- Job *ObjectReferenceApplyConfiguration `json:"job,omitempty"`
+ ImageBuilderType *machineconfigurationv1.MachineOSImageBuilderType `json:"imageBuilderType,omitempty"`
+ Job *ObjectReferenceApplyConfiguration `json:"job,omitempty"`
}
// MachineOSBuilderReferenceApplyConfiguration constructs a declarative configuration of the MachineOSBuilderReference type for use with
@@ -22,7 +22,7 @@ func MachineOSBuilderReference() *MachineOSBuilderReferenceApplyConfiguration {
// WithImageBuilderType sets the ImageBuilderType field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ImageBuilderType field is set to the value of the last call.
-func (b *MachineOSBuilderReferenceApplyConfiguration) WithImageBuilderType(value v1.MachineOSImageBuilderType) *MachineOSBuilderReferenceApplyConfiguration {
+func (b *MachineOSBuilderReferenceApplyConfiguration) WithImageBuilderType(value machineconfigurationv1.MachineOSImageBuilderType) *MachineOSBuilderReferenceApplyConfiguration {
b.ImageBuilderType = &value
return b
}
diff --git a/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineosbuildstatus.go b/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineosbuildstatus.go
index 2ef3c5140..8016f15a4 100644
--- a/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineosbuildstatus.go
+++ b/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineosbuildstatus.go
@@ -3,20 +3,20 @@
package v1
import (
- apimachineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// MachineOSBuildStatusApplyConfiguration represents a declarative configuration of the MachineOSBuildStatus type for use
// with apply.
type MachineOSBuildStatusApplyConfiguration struct {
- Conditions []v1.ConditionApplyConfiguration `json:"conditions,omitempty"`
+ Conditions []metav1.ConditionApplyConfiguration `json:"conditions,omitempty"`
Builder *MachineOSBuilderReferenceApplyConfiguration `json:"builder,omitempty"`
RelatedObjects []ObjectReferenceApplyConfiguration `json:"relatedObjects,omitempty"`
- BuildStart *metav1.Time `json:"buildStart,omitempty"`
- BuildEnd *metav1.Time `json:"buildEnd,omitempty"`
- DigestedImagePushSpec *apimachineconfigurationv1.ImageDigestFormat `json:"digestedImagePushSpec,omitempty"`
+ BuildStart *apismetav1.Time `json:"buildStart,omitempty"`
+ BuildEnd *apismetav1.Time `json:"buildEnd,omitempty"`
+ DigestedImagePushSpec *machineconfigurationv1.ImageDigestFormat `json:"digestedImagePushSpec,omitempty"`
}
// MachineOSBuildStatusApplyConfiguration constructs a declarative configuration of the MachineOSBuildStatus type for use with
@@ -28,7 +28,7 @@ func MachineOSBuildStatus() *MachineOSBuildStatusApplyConfiguration {
// WithConditions adds the given value to the Conditions field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Conditions field.
-func (b *MachineOSBuildStatusApplyConfiguration) WithConditions(values ...*v1.ConditionApplyConfiguration) *MachineOSBuildStatusApplyConfiguration {
+func (b *MachineOSBuildStatusApplyConfiguration) WithConditions(values ...*metav1.ConditionApplyConfiguration) *MachineOSBuildStatusApplyConfiguration {
for i := range values {
if values[i] == nil {
panic("nil value passed to WithConditions")
@@ -62,7 +62,7 @@ func (b *MachineOSBuildStatusApplyConfiguration) WithRelatedObjects(values ...*O
// WithBuildStart sets the BuildStart field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the BuildStart field is set to the value of the last call.
-func (b *MachineOSBuildStatusApplyConfiguration) WithBuildStart(value metav1.Time) *MachineOSBuildStatusApplyConfiguration {
+func (b *MachineOSBuildStatusApplyConfiguration) WithBuildStart(value apismetav1.Time) *MachineOSBuildStatusApplyConfiguration {
b.BuildStart = &value
return b
}
@@ -70,7 +70,7 @@ func (b *MachineOSBuildStatusApplyConfiguration) WithBuildStart(value metav1.Tim
// WithBuildEnd sets the BuildEnd field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the BuildEnd field is set to the value of the last call.
-func (b *MachineOSBuildStatusApplyConfiguration) WithBuildEnd(value metav1.Time) *MachineOSBuildStatusApplyConfiguration {
+func (b *MachineOSBuildStatusApplyConfiguration) WithBuildEnd(value apismetav1.Time) *MachineOSBuildStatusApplyConfiguration {
b.BuildEnd = &value
return b
}
@@ -78,7 +78,7 @@ func (b *MachineOSBuildStatusApplyConfiguration) WithBuildEnd(value metav1.Time)
// WithDigestedImagePushSpec sets the DigestedImagePushSpec field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DigestedImagePushSpec field is set to the value of the last call.
-func (b *MachineOSBuildStatusApplyConfiguration) WithDigestedImagePushSpec(value apimachineconfigurationv1.ImageDigestFormat) *MachineOSBuildStatusApplyConfiguration {
+func (b *MachineOSBuildStatusApplyConfiguration) WithDigestedImagePushSpec(value machineconfigurationv1.ImageDigestFormat) *MachineOSBuildStatusApplyConfiguration {
b.DigestedImagePushSpec = &value
return b
}
diff --git a/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineosconfig.go b/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineosconfig.go
index 15cc86711..3fb6f840f 100644
--- a/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineosconfig.go
+++ b/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineosconfig.go
@@ -3,21 +3,21 @@
package v1
import (
- apimachineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
+ machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
internal "github.com/openshift/client-go/machineconfiguration/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// MachineOSConfigApplyConfiguration represents a declarative configuration of the MachineOSConfig type for use
// with apply.
type MachineOSConfigApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *MachineOSConfigSpecApplyConfiguration `json:"spec,omitempty"`
- Status *MachineOSConfigStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *MachineOSConfigSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *MachineOSConfigStatusApplyConfiguration `json:"status,omitempty"`
}
// MachineOSConfig constructs a declarative configuration of the MachineOSConfig type for use with
@@ -41,18 +41,18 @@ func MachineOSConfig(name string) *MachineOSConfigApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractMachineOSConfig(machineOSConfig *apimachineconfigurationv1.MachineOSConfig, fieldManager string) (*MachineOSConfigApplyConfiguration, error) {
+func ExtractMachineOSConfig(machineOSConfig *machineconfigurationv1.MachineOSConfig, fieldManager string) (*MachineOSConfigApplyConfiguration, error) {
return extractMachineOSConfig(machineOSConfig, fieldManager, "")
}
// ExtractMachineOSConfigStatus is the same as ExtractMachineOSConfig except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractMachineOSConfigStatus(machineOSConfig *apimachineconfigurationv1.MachineOSConfig, fieldManager string) (*MachineOSConfigApplyConfiguration, error) {
+func ExtractMachineOSConfigStatus(machineOSConfig *machineconfigurationv1.MachineOSConfig, fieldManager string) (*MachineOSConfigApplyConfiguration, error) {
return extractMachineOSConfig(machineOSConfig, fieldManager, "status")
}
-func extractMachineOSConfig(machineOSConfig *apimachineconfigurationv1.MachineOSConfig, fieldManager string, subresource string) (*MachineOSConfigApplyConfiguration, error) {
+func extractMachineOSConfig(machineOSConfig *machineconfigurationv1.MachineOSConfig, fieldManager string, subresource string) (*MachineOSConfigApplyConfiguration, error) {
b := &MachineOSConfigApplyConfiguration{}
err := managedfields.ExtractInto(machineOSConfig, internal.Parser().Type("com.github.openshift.api.machineconfiguration.v1.MachineOSConfig"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractMachineOSConfig(machineOSConfig *apimachineconfigurationv1.MachineOS
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *MachineOSConfigApplyConfiguration) WithKind(value string) *MachineOSConfigApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *MachineOSConfigApplyConfiguration) WithKind(value string) *MachineOSCon
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *MachineOSConfigApplyConfiguration) WithAPIVersion(value string) *MachineOSConfigApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *MachineOSConfigApplyConfiguration) WithAPIVersion(value string) *Machin
// If called multiple times, the Name field is set to the value of the last call.
func (b *MachineOSConfigApplyConfiguration) WithName(value string) *MachineOSConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *MachineOSConfigApplyConfiguration) WithName(value string) *MachineOSCon
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *MachineOSConfigApplyConfiguration) WithGenerateName(value string) *MachineOSConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *MachineOSConfigApplyConfiguration) WithGenerateName(value string) *Mach
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *MachineOSConfigApplyConfiguration) WithNamespace(value string) *MachineOSConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *MachineOSConfigApplyConfiguration) WithNamespace(value string) *Machine
// If called multiple times, the UID field is set to the value of the last call.
func (b *MachineOSConfigApplyConfiguration) WithUID(value types.UID) *MachineOSConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *MachineOSConfigApplyConfiguration) WithUID(value types.UID) *MachineOSC
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *MachineOSConfigApplyConfiguration) WithResourceVersion(value string) *MachineOSConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *MachineOSConfigApplyConfiguration) WithResourceVersion(value string) *M
// If called multiple times, the Generation field is set to the value of the last call.
func (b *MachineOSConfigApplyConfiguration) WithGeneration(value int64) *MachineOSConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *MachineOSConfigApplyConfiguration) WithCreationTimestamp(value metav1.Time) *MachineOSConfigApplyConfiguration {
+func (b *MachineOSConfigApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *MachineOSConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *MachineOSConfigApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *MachineOSConfigApplyConfiguration {
+func (b *MachineOSConfigApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *MachineOSConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *MachineOSConfigApplyConfiguration) WithDeletionTimestamp(value metav1.T
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *MachineOSConfigApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *MachineOSConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *MachineOSConfigApplyConfiguration) WithDeletionGracePeriodSeconds(value
// overwriting an existing map entries in Labels field with the same key.
func (b *MachineOSConfigApplyConfiguration) WithLabels(entries map[string]string) *MachineOSConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *MachineOSConfigApplyConfiguration) WithLabels(entries map[string]string
// overwriting an existing map entries in Annotations field with the same key.
func (b *MachineOSConfigApplyConfiguration) WithAnnotations(entries map[string]string) *MachineOSConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *MachineOSConfigApplyConfiguration) WithAnnotations(entries map[string]s
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *MachineOSConfigApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *MachineOSConfigApplyConfiguration {
+func (b *MachineOSConfigApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *MachineOSConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *MachineOSConfigApplyConfiguration) WithOwnerReferences(values ...*v1.Ow
func (b *MachineOSConfigApplyConfiguration) WithFinalizers(values ...string) *MachineOSConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *MachineOSConfigApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *MachineOSConfigApplyConfiguration) WithStatus(value *MachineOSConfigSta
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *MachineOSConfigApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineosconfigstatus.go b/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineosconfigstatus.go
index 185381e8f..e328228e6 100644
--- a/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineosconfigstatus.go
+++ b/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineosconfigstatus.go
@@ -4,13 +4,13 @@ package v1
import (
machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// MachineOSConfigStatusApplyConfiguration represents a declarative configuration of the MachineOSConfigStatus type for use
// with apply.
type MachineOSConfigStatusApplyConfiguration struct {
- Conditions []v1.ConditionApplyConfiguration `json:"conditions,omitempty"`
+ Conditions []metav1.ConditionApplyConfiguration `json:"conditions,omitempty"`
ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
CurrentImagePullSpec *machineconfigurationv1.ImageDigestFormat `json:"currentImagePullSpec,omitempty"`
MachineOSBuild *ObjectReferenceApplyConfiguration `json:"machineOSBuild,omitempty"`
@@ -25,7 +25,7 @@ func MachineOSConfigStatus() *MachineOSConfigStatusApplyConfiguration {
// WithConditions adds the given value to the Conditions field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Conditions field.
-func (b *MachineOSConfigStatusApplyConfiguration) WithConditions(values ...*v1.ConditionApplyConfiguration) *MachineOSConfigStatusApplyConfiguration {
+func (b *MachineOSConfigStatusApplyConfiguration) WithConditions(values ...*metav1.ConditionApplyConfiguration) *MachineOSConfigStatusApplyConfiguration {
for i := range values {
if values[i] == nil {
panic("nil value passed to WithConditions")
diff --git a/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineoscontainerfile.go b/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineoscontainerfile.go
index a39d17408..8fd166f31 100644
--- a/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineoscontainerfile.go
+++ b/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineoscontainerfile.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "github.com/openshift/api/machineconfiguration/v1"
+ machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
)
// MachineOSContainerfileApplyConfiguration represents a declarative configuration of the MachineOSContainerfile type for use
// with apply.
type MachineOSContainerfileApplyConfiguration struct {
- ContainerfileArch *v1.ContainerfileArch `json:"containerfileArch,omitempty"`
- Content *string `json:"content,omitempty"`
+ ContainerfileArch *machineconfigurationv1.ContainerfileArch `json:"containerfileArch,omitempty"`
+ Content *string `json:"content,omitempty"`
}
// MachineOSContainerfileApplyConfiguration constructs a declarative configuration of the MachineOSContainerfile type for use with
@@ -22,7 +22,7 @@ func MachineOSContainerfile() *MachineOSContainerfileApplyConfiguration {
// WithContainerfileArch sets the ContainerfileArch field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ContainerfileArch field is set to the value of the last call.
-func (b *MachineOSContainerfileApplyConfiguration) WithContainerfileArch(value v1.ContainerfileArch) *MachineOSContainerfileApplyConfiguration {
+func (b *MachineOSContainerfileApplyConfiguration) WithContainerfileArch(value machineconfigurationv1.ContainerfileArch) *MachineOSContainerfileApplyConfiguration {
b.ContainerfileArch = &value
return b
}
diff --git a/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineosimagebuilder.go b/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineosimagebuilder.go
index 6edf70fe8..b94c42d5e 100644
--- a/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineosimagebuilder.go
+++ b/machineconfiguration/applyconfigurations/machineconfiguration/v1/machineosimagebuilder.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/machineconfiguration/v1"
+ machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
)
// MachineOSImageBuilderApplyConfiguration represents a declarative configuration of the MachineOSImageBuilder type for use
// with apply.
type MachineOSImageBuilderApplyConfiguration struct {
- ImageBuilderType *v1.MachineOSImageBuilderType `json:"imageBuilderType,omitempty"`
+ ImageBuilderType *machineconfigurationv1.MachineOSImageBuilderType `json:"imageBuilderType,omitempty"`
}
// MachineOSImageBuilderApplyConfiguration constructs a declarative configuration of the MachineOSImageBuilder type for use with
@@ -21,7 +21,7 @@ func MachineOSImageBuilder() *MachineOSImageBuilderApplyConfiguration {
// WithImageBuilderType sets the ImageBuilderType field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ImageBuilderType field is set to the value of the last call.
-func (b *MachineOSImageBuilderApplyConfiguration) WithImageBuilderType(value v1.MachineOSImageBuilderType) *MachineOSImageBuilderApplyConfiguration {
+func (b *MachineOSImageBuilderApplyConfiguration) WithImageBuilderType(value machineconfigurationv1.MachineOSImageBuilderType) *MachineOSImageBuilderApplyConfiguration {
b.ImageBuilderType = &value
return b
}
diff --git a/machineconfiguration/applyconfigurations/machineconfiguration/v1/networkinfo.go b/machineconfiguration/applyconfigurations/machineconfiguration/v1/networkinfo.go
index 8554a31ac..06616ae2c 100644
--- a/machineconfiguration/applyconfigurations/machineconfiguration/v1/networkinfo.go
+++ b/machineconfiguration/applyconfigurations/machineconfiguration/v1/networkinfo.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// NetworkInfoApplyConfiguration represents a declarative configuration of the NetworkInfo type for use
// with apply.
type NetworkInfoApplyConfiguration struct {
- MTUMigration *v1.MTUMigration `json:"mtuMigration,omitempty"`
+ MTUMigration *configv1.MTUMigration `json:"mtuMigration,omitempty"`
}
// NetworkInfoApplyConfiguration constructs a declarative configuration of the NetworkInfo type for use with
@@ -21,7 +21,7 @@ func NetworkInfo() *NetworkInfoApplyConfiguration {
// WithMTUMigration sets the MTUMigration field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the MTUMigration field is set to the value of the last call.
-func (b *NetworkInfoApplyConfiguration) WithMTUMigration(value v1.MTUMigration) *NetworkInfoApplyConfiguration {
+func (b *NetworkInfoApplyConfiguration) WithMTUMigration(value configv1.MTUMigration) *NetworkInfoApplyConfiguration {
b.MTUMigration = &value
return b
}
diff --git a/machineconfiguration/applyconfigurations/machineconfiguration/v1/poolsynchronizerstatus.go b/machineconfiguration/applyconfigurations/machineconfiguration/v1/poolsynchronizerstatus.go
index 2df50cb21..fe88aef35 100644
--- a/machineconfiguration/applyconfigurations/machineconfiguration/v1/poolsynchronizerstatus.go
+++ b/machineconfiguration/applyconfigurations/machineconfiguration/v1/poolsynchronizerstatus.go
@@ -3,19 +3,19 @@
package v1
import (
- v1 "github.com/openshift/api/machineconfiguration/v1"
+ machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
)
// PoolSynchronizerStatusApplyConfiguration represents a declarative configuration of the PoolSynchronizerStatus type for use
// with apply.
type PoolSynchronizerStatusApplyConfiguration struct {
- PoolSynchronizerType *v1.PoolSynchronizerType `json:"poolSynchronizerType,omitempty"`
- MachineCount *int64 `json:"machineCount,omitempty"`
- UpdatedMachineCount *int64 `json:"updatedMachineCount,omitempty"`
- ReadyMachineCount *int64 `json:"readyMachineCount,omitempty"`
- AvailableMachineCount *int64 `json:"availableMachineCount,omitempty"`
- UnavailableMachineCount *int64 `json:"unavailableMachineCount,omitempty"`
- ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
+ PoolSynchronizerType *machineconfigurationv1.PoolSynchronizerType `json:"poolSynchronizerType,omitempty"`
+ MachineCount *int64 `json:"machineCount,omitempty"`
+ UpdatedMachineCount *int64 `json:"updatedMachineCount,omitempty"`
+ ReadyMachineCount *int64 `json:"readyMachineCount,omitempty"`
+ AvailableMachineCount *int64 `json:"availableMachineCount,omitempty"`
+ UnavailableMachineCount *int64 `json:"unavailableMachineCount,omitempty"`
+ ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
}
// PoolSynchronizerStatusApplyConfiguration constructs a declarative configuration of the PoolSynchronizerStatus type for use with
@@ -27,7 +27,7 @@ func PoolSynchronizerStatus() *PoolSynchronizerStatusApplyConfiguration {
// WithPoolSynchronizerType sets the PoolSynchronizerType field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the PoolSynchronizerType field is set to the value of the last call.
-func (b *PoolSynchronizerStatusApplyConfiguration) WithPoolSynchronizerType(value v1.PoolSynchronizerType) *PoolSynchronizerStatusApplyConfiguration {
+func (b *PoolSynchronizerStatusApplyConfiguration) WithPoolSynchronizerType(value machineconfigurationv1.PoolSynchronizerType) *PoolSynchronizerStatusApplyConfiguration {
b.PoolSynchronizerType = &value
return b
}
diff --git a/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1/machineconfignode.go b/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1/machineconfignode.go
index bb0e75e41..e5abd13fb 100644
--- a/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1/machineconfignode.go
+++ b/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1/machineconfignode.go
@@ -69,7 +69,7 @@ func extractMachineConfigNode(machineConfigNode *machineconfigurationv1alpha1.Ma
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *MachineConfigNodeApplyConfiguration) WithKind(value string) *MachineConfigNodeApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *MachineConfigNodeApplyConfiguration) WithKind(value string) *MachineCon
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *MachineConfigNodeApplyConfiguration) WithAPIVersion(value string) *MachineConfigNodeApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *MachineConfigNodeApplyConfiguration) WithAPIVersion(value string) *Mach
// If called multiple times, the Name field is set to the value of the last call.
func (b *MachineConfigNodeApplyConfiguration) WithName(value string) *MachineConfigNodeApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *MachineConfigNodeApplyConfiguration) WithName(value string) *MachineCon
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *MachineConfigNodeApplyConfiguration) WithGenerateName(value string) *MachineConfigNodeApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *MachineConfigNodeApplyConfiguration) WithGenerateName(value string) *Ma
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *MachineConfigNodeApplyConfiguration) WithNamespace(value string) *MachineConfigNodeApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *MachineConfigNodeApplyConfiguration) WithNamespace(value string) *Machi
// If called multiple times, the UID field is set to the value of the last call.
func (b *MachineConfigNodeApplyConfiguration) WithUID(value types.UID) *MachineConfigNodeApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *MachineConfigNodeApplyConfiguration) WithUID(value types.UID) *MachineC
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *MachineConfigNodeApplyConfiguration) WithResourceVersion(value string) *MachineConfigNodeApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,7 +131,7 @@ func (b *MachineConfigNodeApplyConfiguration) WithResourceVersion(value string)
// If called multiple times, the Generation field is set to the value of the last call.
func (b *MachineConfigNodeApplyConfiguration) WithGeneration(value int64) *MachineConfigNodeApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
@@ -140,7 +140,7 @@ func (b *MachineConfigNodeApplyConfiguration) WithGeneration(value int64) *Machi
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
func (b *MachineConfigNodeApplyConfiguration) WithCreationTimestamp(value metav1.Time) *MachineConfigNodeApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
@@ -149,7 +149,7 @@ func (b *MachineConfigNodeApplyConfiguration) WithCreationTimestamp(value metav1
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
func (b *MachineConfigNodeApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *MachineConfigNodeApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *MachineConfigNodeApplyConfiguration) WithDeletionTimestamp(value metav1
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *MachineConfigNodeApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *MachineConfigNodeApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *MachineConfigNodeApplyConfiguration) WithDeletionGracePeriodSeconds(val
// overwriting an existing map entries in Labels field with the same key.
func (b *MachineConfigNodeApplyConfiguration) WithLabels(entries map[string]string) *MachineConfigNodeApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *MachineConfigNodeApplyConfiguration) WithLabels(entries map[string]stri
// overwriting an existing map entries in Annotations field with the same key.
func (b *MachineConfigNodeApplyConfiguration) WithAnnotations(entries map[string]string) *MachineConfigNodeApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -201,7 +201,7 @@ func (b *MachineConfigNodeApplyConfiguration) WithOwnerReferences(values ...*v1.
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,7 +212,7 @@ func (b *MachineConfigNodeApplyConfiguration) WithOwnerReferences(values ...*v1.
func (b *MachineConfigNodeApplyConfiguration) WithFinalizers(values ...string) *MachineConfigNodeApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
@@ -242,5 +242,5 @@ func (b *MachineConfigNodeApplyConfiguration) WithStatus(value *MachineConfigNod
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *MachineConfigNodeApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1/machineosbuild.go b/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1/machineosbuild.go
index 4943956c8..e936def7d 100644
--- a/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1/machineosbuild.go
+++ b/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1/machineosbuild.go
@@ -69,7 +69,7 @@ func extractMachineOSBuild(machineOSBuild *machineconfigurationv1alpha1.MachineO
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *MachineOSBuildApplyConfiguration) WithKind(value string) *MachineOSBuildApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *MachineOSBuildApplyConfiguration) WithKind(value string) *MachineOSBuil
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *MachineOSBuildApplyConfiguration) WithAPIVersion(value string) *MachineOSBuildApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *MachineOSBuildApplyConfiguration) WithAPIVersion(value string) *Machine
// If called multiple times, the Name field is set to the value of the last call.
func (b *MachineOSBuildApplyConfiguration) WithName(value string) *MachineOSBuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *MachineOSBuildApplyConfiguration) WithName(value string) *MachineOSBuil
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *MachineOSBuildApplyConfiguration) WithGenerateName(value string) *MachineOSBuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *MachineOSBuildApplyConfiguration) WithGenerateName(value string) *Machi
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *MachineOSBuildApplyConfiguration) WithNamespace(value string) *MachineOSBuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *MachineOSBuildApplyConfiguration) WithNamespace(value string) *MachineO
// If called multiple times, the UID field is set to the value of the last call.
func (b *MachineOSBuildApplyConfiguration) WithUID(value types.UID) *MachineOSBuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *MachineOSBuildApplyConfiguration) WithUID(value types.UID) *MachineOSBu
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *MachineOSBuildApplyConfiguration) WithResourceVersion(value string) *MachineOSBuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,7 +131,7 @@ func (b *MachineOSBuildApplyConfiguration) WithResourceVersion(value string) *Ma
// If called multiple times, the Generation field is set to the value of the last call.
func (b *MachineOSBuildApplyConfiguration) WithGeneration(value int64) *MachineOSBuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
@@ -140,7 +140,7 @@ func (b *MachineOSBuildApplyConfiguration) WithGeneration(value int64) *MachineO
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
func (b *MachineOSBuildApplyConfiguration) WithCreationTimestamp(value metav1.Time) *MachineOSBuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
@@ -149,7 +149,7 @@ func (b *MachineOSBuildApplyConfiguration) WithCreationTimestamp(value metav1.Ti
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
func (b *MachineOSBuildApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *MachineOSBuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *MachineOSBuildApplyConfiguration) WithDeletionTimestamp(value metav1.Ti
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *MachineOSBuildApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *MachineOSBuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *MachineOSBuildApplyConfiguration) WithDeletionGracePeriodSeconds(value
// overwriting an existing map entries in Labels field with the same key.
func (b *MachineOSBuildApplyConfiguration) WithLabels(entries map[string]string) *MachineOSBuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *MachineOSBuildApplyConfiguration) WithLabels(entries map[string]string)
// overwriting an existing map entries in Annotations field with the same key.
func (b *MachineOSBuildApplyConfiguration) WithAnnotations(entries map[string]string) *MachineOSBuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -201,7 +201,7 @@ func (b *MachineOSBuildApplyConfiguration) WithOwnerReferences(values ...*v1.Own
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,7 +212,7 @@ func (b *MachineOSBuildApplyConfiguration) WithOwnerReferences(values ...*v1.Own
func (b *MachineOSBuildApplyConfiguration) WithFinalizers(values ...string) *MachineOSBuildApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
@@ -242,5 +242,5 @@ func (b *MachineOSBuildApplyConfiguration) WithStatus(value *MachineOSBuildStatu
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *MachineOSBuildApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1/machineosbuilderreference.go b/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1/machineosbuilderreference.go
index 57a5ef3a5..b831bfae1 100644
--- a/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1/machineosbuilderreference.go
+++ b/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1/machineosbuilderreference.go
@@ -3,14 +3,14 @@
package v1alpha1
import (
- v1alpha1 "github.com/openshift/api/machineconfiguration/v1alpha1"
+ machineconfigurationv1alpha1 "github.com/openshift/api/machineconfiguration/v1alpha1"
)
// MachineOSBuilderReferenceApplyConfiguration represents a declarative configuration of the MachineOSBuilderReference type for use
// with apply.
type MachineOSBuilderReferenceApplyConfiguration struct {
- ImageBuilderType *v1alpha1.MachineOSImageBuilderType `json:"imageBuilderType,omitempty"`
- PodImageBuilder *ObjectReferenceApplyConfiguration `json:"buildPod,omitempty"`
+ ImageBuilderType *machineconfigurationv1alpha1.MachineOSImageBuilderType `json:"imageBuilderType,omitempty"`
+ PodImageBuilder *ObjectReferenceApplyConfiguration `json:"buildPod,omitempty"`
}
// MachineOSBuilderReferenceApplyConfiguration constructs a declarative configuration of the MachineOSBuilderReference type for use with
@@ -22,7 +22,7 @@ func MachineOSBuilderReference() *MachineOSBuilderReferenceApplyConfiguration {
// WithImageBuilderType sets the ImageBuilderType field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ImageBuilderType field is set to the value of the last call.
-func (b *MachineOSBuilderReferenceApplyConfiguration) WithImageBuilderType(value v1alpha1.MachineOSImageBuilderType) *MachineOSBuilderReferenceApplyConfiguration {
+func (b *MachineOSBuilderReferenceApplyConfiguration) WithImageBuilderType(value machineconfigurationv1alpha1.MachineOSImageBuilderType) *MachineOSBuilderReferenceApplyConfiguration {
b.ImageBuilderType = &value
return b
}
diff --git a/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1/machineosconfig.go b/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1/machineosconfig.go
index eae0fd07c..c198ffa9c 100644
--- a/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1/machineosconfig.go
+++ b/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1/machineosconfig.go
@@ -69,7 +69,7 @@ func extractMachineOSConfig(machineOSConfig *machineconfigurationv1alpha1.Machin
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *MachineOSConfigApplyConfiguration) WithKind(value string) *MachineOSConfigApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *MachineOSConfigApplyConfiguration) WithKind(value string) *MachineOSCon
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *MachineOSConfigApplyConfiguration) WithAPIVersion(value string) *MachineOSConfigApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *MachineOSConfigApplyConfiguration) WithAPIVersion(value string) *Machin
// If called multiple times, the Name field is set to the value of the last call.
func (b *MachineOSConfigApplyConfiguration) WithName(value string) *MachineOSConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *MachineOSConfigApplyConfiguration) WithName(value string) *MachineOSCon
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *MachineOSConfigApplyConfiguration) WithGenerateName(value string) *MachineOSConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *MachineOSConfigApplyConfiguration) WithGenerateName(value string) *Mach
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *MachineOSConfigApplyConfiguration) WithNamespace(value string) *MachineOSConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *MachineOSConfigApplyConfiguration) WithNamespace(value string) *Machine
// If called multiple times, the UID field is set to the value of the last call.
func (b *MachineOSConfigApplyConfiguration) WithUID(value types.UID) *MachineOSConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *MachineOSConfigApplyConfiguration) WithUID(value types.UID) *MachineOSC
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *MachineOSConfigApplyConfiguration) WithResourceVersion(value string) *MachineOSConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,7 +131,7 @@ func (b *MachineOSConfigApplyConfiguration) WithResourceVersion(value string) *M
// If called multiple times, the Generation field is set to the value of the last call.
func (b *MachineOSConfigApplyConfiguration) WithGeneration(value int64) *MachineOSConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
@@ -140,7 +140,7 @@ func (b *MachineOSConfigApplyConfiguration) WithGeneration(value int64) *Machine
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
func (b *MachineOSConfigApplyConfiguration) WithCreationTimestamp(value metav1.Time) *MachineOSConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
@@ -149,7 +149,7 @@ func (b *MachineOSConfigApplyConfiguration) WithCreationTimestamp(value metav1.T
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
func (b *MachineOSConfigApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *MachineOSConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *MachineOSConfigApplyConfiguration) WithDeletionTimestamp(value metav1.T
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *MachineOSConfigApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *MachineOSConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *MachineOSConfigApplyConfiguration) WithDeletionGracePeriodSeconds(value
// overwriting an existing map entries in Labels field with the same key.
func (b *MachineOSConfigApplyConfiguration) WithLabels(entries map[string]string) *MachineOSConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *MachineOSConfigApplyConfiguration) WithLabels(entries map[string]string
// overwriting an existing map entries in Annotations field with the same key.
func (b *MachineOSConfigApplyConfiguration) WithAnnotations(entries map[string]string) *MachineOSConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -201,7 +201,7 @@ func (b *MachineOSConfigApplyConfiguration) WithOwnerReferences(values ...*v1.Ow
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,7 +212,7 @@ func (b *MachineOSConfigApplyConfiguration) WithOwnerReferences(values ...*v1.Ow
func (b *MachineOSConfigApplyConfiguration) WithFinalizers(values ...string) *MachineOSConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
@@ -242,5 +242,5 @@ func (b *MachineOSConfigApplyConfiguration) WithStatus(value *MachineOSConfigSta
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *MachineOSConfigApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1/machineoscontainerfile.go b/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1/machineoscontainerfile.go
index 045e9345a..fc8a09781 100644
--- a/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1/machineoscontainerfile.go
+++ b/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1/machineoscontainerfile.go
@@ -3,14 +3,14 @@
package v1alpha1
import (
- v1alpha1 "github.com/openshift/api/machineconfiguration/v1alpha1"
+ machineconfigurationv1alpha1 "github.com/openshift/api/machineconfiguration/v1alpha1"
)
// MachineOSContainerfileApplyConfiguration represents a declarative configuration of the MachineOSContainerfile type for use
// with apply.
type MachineOSContainerfileApplyConfiguration struct {
- ContainerfileArch *v1alpha1.ContainerfileArch `json:"containerfileArch,omitempty"`
- Content *string `json:"content,omitempty"`
+ ContainerfileArch *machineconfigurationv1alpha1.ContainerfileArch `json:"containerfileArch,omitempty"`
+ Content *string `json:"content,omitempty"`
}
// MachineOSContainerfileApplyConfiguration constructs a declarative configuration of the MachineOSContainerfile type for use with
@@ -22,7 +22,7 @@ func MachineOSContainerfile() *MachineOSContainerfileApplyConfiguration {
// WithContainerfileArch sets the ContainerfileArch field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ContainerfileArch field is set to the value of the last call.
-func (b *MachineOSContainerfileApplyConfiguration) WithContainerfileArch(value v1alpha1.ContainerfileArch) *MachineOSContainerfileApplyConfiguration {
+func (b *MachineOSContainerfileApplyConfiguration) WithContainerfileArch(value machineconfigurationv1alpha1.ContainerfileArch) *MachineOSContainerfileApplyConfiguration {
b.ContainerfileArch = &value
return b
}
diff --git a/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1/machineosimagebuilder.go b/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1/machineosimagebuilder.go
index f8fb27e79..266110d4b 100644
--- a/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1/machineosimagebuilder.go
+++ b/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1/machineosimagebuilder.go
@@ -3,13 +3,13 @@
package v1alpha1
import (
- v1alpha1 "github.com/openshift/api/machineconfiguration/v1alpha1"
+ machineconfigurationv1alpha1 "github.com/openshift/api/machineconfiguration/v1alpha1"
)
// MachineOSImageBuilderApplyConfiguration represents a declarative configuration of the MachineOSImageBuilder type for use
// with apply.
type MachineOSImageBuilderApplyConfiguration struct {
- ImageBuilderType *v1alpha1.MachineOSImageBuilderType `json:"imageBuilderType,omitempty"`
+ ImageBuilderType *machineconfigurationv1alpha1.MachineOSImageBuilderType `json:"imageBuilderType,omitempty"`
}
// MachineOSImageBuilderApplyConfiguration constructs a declarative configuration of the MachineOSImageBuilder type for use with
@@ -21,7 +21,7 @@ func MachineOSImageBuilder() *MachineOSImageBuilderApplyConfiguration {
// WithImageBuilderType sets the ImageBuilderType field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ImageBuilderType field is set to the value of the last call.
-func (b *MachineOSImageBuilderApplyConfiguration) WithImageBuilderType(value v1alpha1.MachineOSImageBuilderType) *MachineOSImageBuilderApplyConfiguration {
+func (b *MachineOSImageBuilderApplyConfiguration) WithImageBuilderType(value machineconfigurationv1alpha1.MachineOSImageBuilderType) *MachineOSImageBuilderApplyConfiguration {
b.ImageBuilderType = &value
return b
}
diff --git a/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1/pinnedimageset.go b/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1/pinnedimageset.go
index f39642c08..94f302eb1 100644
--- a/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1/pinnedimageset.go
+++ b/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1/pinnedimageset.go
@@ -69,7 +69,7 @@ func extractPinnedImageSet(pinnedImageSet *machineconfigurationv1alpha1.PinnedIm
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *PinnedImageSetApplyConfiguration) WithKind(value string) *PinnedImageSetApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *PinnedImageSetApplyConfiguration) WithKind(value string) *PinnedImageSe
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *PinnedImageSetApplyConfiguration) WithAPIVersion(value string) *PinnedImageSetApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *PinnedImageSetApplyConfiguration) WithAPIVersion(value string) *PinnedI
// If called multiple times, the Name field is set to the value of the last call.
func (b *PinnedImageSetApplyConfiguration) WithName(value string) *PinnedImageSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *PinnedImageSetApplyConfiguration) WithName(value string) *PinnedImageSe
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *PinnedImageSetApplyConfiguration) WithGenerateName(value string) *PinnedImageSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *PinnedImageSetApplyConfiguration) WithGenerateName(value string) *Pinne
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *PinnedImageSetApplyConfiguration) WithNamespace(value string) *PinnedImageSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *PinnedImageSetApplyConfiguration) WithNamespace(value string) *PinnedIm
// If called multiple times, the UID field is set to the value of the last call.
func (b *PinnedImageSetApplyConfiguration) WithUID(value types.UID) *PinnedImageSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *PinnedImageSetApplyConfiguration) WithUID(value types.UID) *PinnedImage
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *PinnedImageSetApplyConfiguration) WithResourceVersion(value string) *PinnedImageSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,7 +131,7 @@ func (b *PinnedImageSetApplyConfiguration) WithResourceVersion(value string) *Pi
// If called multiple times, the Generation field is set to the value of the last call.
func (b *PinnedImageSetApplyConfiguration) WithGeneration(value int64) *PinnedImageSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
@@ -140,7 +140,7 @@ func (b *PinnedImageSetApplyConfiguration) WithGeneration(value int64) *PinnedIm
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
func (b *PinnedImageSetApplyConfiguration) WithCreationTimestamp(value metav1.Time) *PinnedImageSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
@@ -149,7 +149,7 @@ func (b *PinnedImageSetApplyConfiguration) WithCreationTimestamp(value metav1.Ti
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
func (b *PinnedImageSetApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *PinnedImageSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *PinnedImageSetApplyConfiguration) WithDeletionTimestamp(value metav1.Ti
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *PinnedImageSetApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *PinnedImageSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *PinnedImageSetApplyConfiguration) WithDeletionGracePeriodSeconds(value
// overwriting an existing map entries in Labels field with the same key.
func (b *PinnedImageSetApplyConfiguration) WithLabels(entries map[string]string) *PinnedImageSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *PinnedImageSetApplyConfiguration) WithLabels(entries map[string]string)
// overwriting an existing map entries in Annotations field with the same key.
func (b *PinnedImageSetApplyConfiguration) WithAnnotations(entries map[string]string) *PinnedImageSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -201,7 +201,7 @@ func (b *PinnedImageSetApplyConfiguration) WithOwnerReferences(values ...*v1.Own
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,7 +212,7 @@ func (b *PinnedImageSetApplyConfiguration) WithOwnerReferences(values ...*v1.Own
func (b *PinnedImageSetApplyConfiguration) WithFinalizers(values ...string) *PinnedImageSetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
@@ -242,5 +242,5 @@ func (b *PinnedImageSetApplyConfiguration) WithStatus(value *PinnedImageSetStatu
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *PinnedImageSetApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/machineconfiguration/clientset/versioned/clientset.go b/machineconfiguration/clientset/versioned/clientset.go
index f58c53785..25cd7daff 100644
--- a/machineconfiguration/clientset/versioned/clientset.go
+++ b/machineconfiguration/clientset/versioned/clientset.go
@@ -3,8 +3,8 @@
package versioned
import (
- "fmt"
- "net/http"
+ fmt "fmt"
+ http "net/http"
machineconfigurationv1 "github.com/openshift/client-go/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1"
machineconfigurationv1alpha1 "github.com/openshift/client-go/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1"
diff --git a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/containerruntimeconfig.go b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/containerruntimeconfig.go
index 48f585587..f8a25a5c9 100644
--- a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/containerruntimeconfig.go
+++ b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/containerruntimeconfig.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/machineconfiguration/v1"
- machineconfigurationv1 "github.com/openshift/client-go/machineconfiguration/applyconfigurations/machineconfiguration/v1"
+ machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
+ applyconfigurationsmachineconfigurationv1 "github.com/openshift/client-go/machineconfiguration/applyconfigurations/machineconfiguration/v1"
scheme "github.com/openshift/client-go/machineconfiguration/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,41 @@ type ContainerRuntimeConfigsGetter interface {
// ContainerRuntimeConfigInterface has methods to work with ContainerRuntimeConfig resources.
type ContainerRuntimeConfigInterface interface {
- Create(ctx context.Context, containerRuntimeConfig *v1.ContainerRuntimeConfig, opts metav1.CreateOptions) (*v1.ContainerRuntimeConfig, error)
- Update(ctx context.Context, containerRuntimeConfig *v1.ContainerRuntimeConfig, opts metav1.UpdateOptions) (*v1.ContainerRuntimeConfig, error)
+ Create(ctx context.Context, containerRuntimeConfig *machineconfigurationv1.ContainerRuntimeConfig, opts metav1.CreateOptions) (*machineconfigurationv1.ContainerRuntimeConfig, error)
+ Update(ctx context.Context, containerRuntimeConfig *machineconfigurationv1.ContainerRuntimeConfig, opts metav1.UpdateOptions) (*machineconfigurationv1.ContainerRuntimeConfig, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, containerRuntimeConfig *v1.ContainerRuntimeConfig, opts metav1.UpdateOptions) (*v1.ContainerRuntimeConfig, error)
+ UpdateStatus(ctx context.Context, containerRuntimeConfig *machineconfigurationv1.ContainerRuntimeConfig, opts metav1.UpdateOptions) (*machineconfigurationv1.ContainerRuntimeConfig, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ContainerRuntimeConfig, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.ContainerRuntimeConfigList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*machineconfigurationv1.ContainerRuntimeConfig, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*machineconfigurationv1.ContainerRuntimeConfigList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ContainerRuntimeConfig, err error)
- Apply(ctx context.Context, containerRuntimeConfig *machineconfigurationv1.ContainerRuntimeConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ContainerRuntimeConfig, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *machineconfigurationv1.ContainerRuntimeConfig, err error)
+ Apply(ctx context.Context, containerRuntimeConfig *applyconfigurationsmachineconfigurationv1.ContainerRuntimeConfigApplyConfiguration, opts metav1.ApplyOptions) (result *machineconfigurationv1.ContainerRuntimeConfig, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, containerRuntimeConfig *machineconfigurationv1.ContainerRuntimeConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ContainerRuntimeConfig, err error)
+ ApplyStatus(ctx context.Context, containerRuntimeConfig *applyconfigurationsmachineconfigurationv1.ContainerRuntimeConfigApplyConfiguration, opts metav1.ApplyOptions) (result *machineconfigurationv1.ContainerRuntimeConfig, err error)
ContainerRuntimeConfigExpansion
}
// containerRuntimeConfigs implements ContainerRuntimeConfigInterface
type containerRuntimeConfigs struct {
- *gentype.ClientWithListAndApply[*v1.ContainerRuntimeConfig, *v1.ContainerRuntimeConfigList, *machineconfigurationv1.ContainerRuntimeConfigApplyConfiguration]
+ *gentype.ClientWithListAndApply[*machineconfigurationv1.ContainerRuntimeConfig, *machineconfigurationv1.ContainerRuntimeConfigList, *applyconfigurationsmachineconfigurationv1.ContainerRuntimeConfigApplyConfiguration]
}
// newContainerRuntimeConfigs returns a ContainerRuntimeConfigs
func newContainerRuntimeConfigs(c *MachineconfigurationV1Client) *containerRuntimeConfigs {
return &containerRuntimeConfigs{
- gentype.NewClientWithListAndApply[*v1.ContainerRuntimeConfig, *v1.ContainerRuntimeConfigList, *machineconfigurationv1.ContainerRuntimeConfigApplyConfiguration](
+ gentype.NewClientWithListAndApply[*machineconfigurationv1.ContainerRuntimeConfig, *machineconfigurationv1.ContainerRuntimeConfigList, *applyconfigurationsmachineconfigurationv1.ContainerRuntimeConfigApplyConfiguration](
"containerruntimeconfigs",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.ContainerRuntimeConfig { return &v1.ContainerRuntimeConfig{} },
- func() *v1.ContainerRuntimeConfigList { return &v1.ContainerRuntimeConfigList{} }),
+ func() *machineconfigurationv1.ContainerRuntimeConfig {
+ return &machineconfigurationv1.ContainerRuntimeConfig{}
+ },
+ func() *machineconfigurationv1.ContainerRuntimeConfigList {
+ return &machineconfigurationv1.ContainerRuntimeConfigList{}
+ },
+ ),
}
}
diff --git a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/controllerconfig.go b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/controllerconfig.go
index 4b67c0d90..ab29b63b1 100644
--- a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/controllerconfig.go
+++ b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/controllerconfig.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/machineconfiguration/v1"
- machineconfigurationv1 "github.com/openshift/client-go/machineconfiguration/applyconfigurations/machineconfiguration/v1"
+ machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
+ applyconfigurationsmachineconfigurationv1 "github.com/openshift/client-go/machineconfiguration/applyconfigurations/machineconfiguration/v1"
scheme "github.com/openshift/client-go/machineconfiguration/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,39 @@ type ControllerConfigsGetter interface {
// ControllerConfigInterface has methods to work with ControllerConfig resources.
type ControllerConfigInterface interface {
- Create(ctx context.Context, controllerConfig *v1.ControllerConfig, opts metav1.CreateOptions) (*v1.ControllerConfig, error)
- Update(ctx context.Context, controllerConfig *v1.ControllerConfig, opts metav1.UpdateOptions) (*v1.ControllerConfig, error)
+ Create(ctx context.Context, controllerConfig *machineconfigurationv1.ControllerConfig, opts metav1.CreateOptions) (*machineconfigurationv1.ControllerConfig, error)
+ Update(ctx context.Context, controllerConfig *machineconfigurationv1.ControllerConfig, opts metav1.UpdateOptions) (*machineconfigurationv1.ControllerConfig, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, controllerConfig *v1.ControllerConfig, opts metav1.UpdateOptions) (*v1.ControllerConfig, error)
+ UpdateStatus(ctx context.Context, controllerConfig *machineconfigurationv1.ControllerConfig, opts metav1.UpdateOptions) (*machineconfigurationv1.ControllerConfig, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ControllerConfig, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.ControllerConfigList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*machineconfigurationv1.ControllerConfig, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*machineconfigurationv1.ControllerConfigList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ControllerConfig, err error)
- Apply(ctx context.Context, controllerConfig *machineconfigurationv1.ControllerConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ControllerConfig, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *machineconfigurationv1.ControllerConfig, err error)
+ Apply(ctx context.Context, controllerConfig *applyconfigurationsmachineconfigurationv1.ControllerConfigApplyConfiguration, opts metav1.ApplyOptions) (result *machineconfigurationv1.ControllerConfig, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, controllerConfig *machineconfigurationv1.ControllerConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ControllerConfig, err error)
+ ApplyStatus(ctx context.Context, controllerConfig *applyconfigurationsmachineconfigurationv1.ControllerConfigApplyConfiguration, opts metav1.ApplyOptions) (result *machineconfigurationv1.ControllerConfig, err error)
ControllerConfigExpansion
}
// controllerConfigs implements ControllerConfigInterface
type controllerConfigs struct {
- *gentype.ClientWithListAndApply[*v1.ControllerConfig, *v1.ControllerConfigList, *machineconfigurationv1.ControllerConfigApplyConfiguration]
+ *gentype.ClientWithListAndApply[*machineconfigurationv1.ControllerConfig, *machineconfigurationv1.ControllerConfigList, *applyconfigurationsmachineconfigurationv1.ControllerConfigApplyConfiguration]
}
// newControllerConfigs returns a ControllerConfigs
func newControllerConfigs(c *MachineconfigurationV1Client) *controllerConfigs {
return &controllerConfigs{
- gentype.NewClientWithListAndApply[*v1.ControllerConfig, *v1.ControllerConfigList, *machineconfigurationv1.ControllerConfigApplyConfiguration](
+ gentype.NewClientWithListAndApply[*machineconfigurationv1.ControllerConfig, *machineconfigurationv1.ControllerConfigList, *applyconfigurationsmachineconfigurationv1.ControllerConfigApplyConfiguration](
"controllerconfigs",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.ControllerConfig { return &v1.ControllerConfig{} },
- func() *v1.ControllerConfigList { return &v1.ControllerConfigList{} }),
+ func() *machineconfigurationv1.ControllerConfig { return &machineconfigurationv1.ControllerConfig{} },
+ func() *machineconfigurationv1.ControllerConfigList {
+ return &machineconfigurationv1.ControllerConfigList{}
+ },
+ ),
}
}
diff --git a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/fake/fake_containerruntimeconfig.go b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/fake/fake_containerruntimeconfig.go
index 6be41f2a8..a04b18c27 100644
--- a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/fake/fake_containerruntimeconfig.go
+++ b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/fake/fake_containerruntimeconfig.go
@@ -3,168 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/machineconfiguration/v1"
machineconfigurationv1 "github.com/openshift/client-go/machineconfiguration/applyconfigurations/machineconfiguration/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedmachineconfigurationv1 "github.com/openshift/client-go/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeContainerRuntimeConfigs implements ContainerRuntimeConfigInterface
-type FakeContainerRuntimeConfigs struct {
+// fakeContainerRuntimeConfigs implements ContainerRuntimeConfigInterface
+type fakeContainerRuntimeConfigs struct {
+ *gentype.FakeClientWithListAndApply[*v1.ContainerRuntimeConfig, *v1.ContainerRuntimeConfigList, *machineconfigurationv1.ContainerRuntimeConfigApplyConfiguration]
Fake *FakeMachineconfigurationV1
}
-var containerruntimeconfigsResource = v1.SchemeGroupVersion.WithResource("containerruntimeconfigs")
-
-var containerruntimeconfigsKind = v1.SchemeGroupVersion.WithKind("ContainerRuntimeConfig")
-
-// Get takes name of the containerRuntimeConfig, and returns the corresponding containerRuntimeConfig object, and an error if there is any.
-func (c *FakeContainerRuntimeConfigs) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ContainerRuntimeConfig, err error) {
- emptyResult := &v1.ContainerRuntimeConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(containerruntimeconfigsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ContainerRuntimeConfig), err
-}
-
-// List takes label and field selectors, and returns the list of ContainerRuntimeConfigs that match those selectors.
-func (c *FakeContainerRuntimeConfigs) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ContainerRuntimeConfigList, err error) {
- emptyResult := &v1.ContainerRuntimeConfigList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(containerruntimeconfigsResource, containerruntimeconfigsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.ContainerRuntimeConfigList{ListMeta: obj.(*v1.ContainerRuntimeConfigList).ListMeta}
- for _, item := range obj.(*v1.ContainerRuntimeConfigList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested containerRuntimeConfigs.
-func (c *FakeContainerRuntimeConfigs) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(containerruntimeconfigsResource, opts))
-}
-
-// Create takes the representation of a containerRuntimeConfig and creates it. Returns the server's representation of the containerRuntimeConfig, and an error, if there is any.
-func (c *FakeContainerRuntimeConfigs) Create(ctx context.Context, containerRuntimeConfig *v1.ContainerRuntimeConfig, opts metav1.CreateOptions) (result *v1.ContainerRuntimeConfig, err error) {
- emptyResult := &v1.ContainerRuntimeConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(containerruntimeconfigsResource, containerRuntimeConfig, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ContainerRuntimeConfig), err
-}
-
-// Update takes the representation of a containerRuntimeConfig and updates it. Returns the server's representation of the containerRuntimeConfig, and an error, if there is any.
-func (c *FakeContainerRuntimeConfigs) Update(ctx context.Context, containerRuntimeConfig *v1.ContainerRuntimeConfig, opts metav1.UpdateOptions) (result *v1.ContainerRuntimeConfig, err error) {
- emptyResult := &v1.ContainerRuntimeConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(containerruntimeconfigsResource, containerRuntimeConfig, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ContainerRuntimeConfig), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeContainerRuntimeConfigs) UpdateStatus(ctx context.Context, containerRuntimeConfig *v1.ContainerRuntimeConfig, opts metav1.UpdateOptions) (result *v1.ContainerRuntimeConfig, err error) {
- emptyResult := &v1.ContainerRuntimeConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(containerruntimeconfigsResource, "status", containerRuntimeConfig, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ContainerRuntimeConfig), err
-}
-
-// Delete takes name of the containerRuntimeConfig and deletes it. Returns an error if one occurs.
-func (c *FakeContainerRuntimeConfigs) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(containerruntimeconfigsResource, name, opts), &v1.ContainerRuntimeConfig{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeContainerRuntimeConfigs) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(containerruntimeconfigsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.ContainerRuntimeConfigList{})
- return err
-}
-
-// Patch applies the patch and returns the patched containerRuntimeConfig.
-func (c *FakeContainerRuntimeConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ContainerRuntimeConfig, err error) {
- emptyResult := &v1.ContainerRuntimeConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(containerruntimeconfigsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ContainerRuntimeConfig), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied containerRuntimeConfig.
-func (c *FakeContainerRuntimeConfigs) Apply(ctx context.Context, containerRuntimeConfig *machineconfigurationv1.ContainerRuntimeConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ContainerRuntimeConfig, err error) {
- if containerRuntimeConfig == nil {
- return nil, fmt.Errorf("containerRuntimeConfig provided to Apply must not be nil")
- }
- data, err := json.Marshal(containerRuntimeConfig)
- if err != nil {
- return nil, err
- }
- name := containerRuntimeConfig.Name
- if name == nil {
- return nil, fmt.Errorf("containerRuntimeConfig.Name must be provided to Apply")
- }
- emptyResult := &v1.ContainerRuntimeConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(containerruntimeconfigsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ContainerRuntimeConfig), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeContainerRuntimeConfigs) ApplyStatus(ctx context.Context, containerRuntimeConfig *machineconfigurationv1.ContainerRuntimeConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ContainerRuntimeConfig, err error) {
- if containerRuntimeConfig == nil {
- return nil, fmt.Errorf("containerRuntimeConfig provided to Apply must not be nil")
- }
- data, err := json.Marshal(containerRuntimeConfig)
- if err != nil {
- return nil, err
- }
- name := containerRuntimeConfig.Name
- if name == nil {
- return nil, fmt.Errorf("containerRuntimeConfig.Name must be provided to Apply")
- }
- emptyResult := &v1.ContainerRuntimeConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(containerruntimeconfigsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeContainerRuntimeConfigs(fake *FakeMachineconfigurationV1) typedmachineconfigurationv1.ContainerRuntimeConfigInterface {
+ return &fakeContainerRuntimeConfigs{
+ gentype.NewFakeClientWithListAndApply[*v1.ContainerRuntimeConfig, *v1.ContainerRuntimeConfigList, *machineconfigurationv1.ContainerRuntimeConfigApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("containerruntimeconfigs"),
+ v1.SchemeGroupVersion.WithKind("ContainerRuntimeConfig"),
+ func() *v1.ContainerRuntimeConfig { return &v1.ContainerRuntimeConfig{} },
+ func() *v1.ContainerRuntimeConfigList { return &v1.ContainerRuntimeConfigList{} },
+ func(dst, src *v1.ContainerRuntimeConfigList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.ContainerRuntimeConfigList) []*v1.ContainerRuntimeConfig {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1.ContainerRuntimeConfigList, items []*v1.ContainerRuntimeConfig) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.ContainerRuntimeConfig), err
}
diff --git a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/fake/fake_controllerconfig.go b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/fake/fake_controllerconfig.go
index 3c6b3553a..1c8be5ba5 100644
--- a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/fake/fake_controllerconfig.go
+++ b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/fake/fake_controllerconfig.go
@@ -3,168 +3,33 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/machineconfiguration/v1"
machineconfigurationv1 "github.com/openshift/client-go/machineconfiguration/applyconfigurations/machineconfiguration/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedmachineconfigurationv1 "github.com/openshift/client-go/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeControllerConfigs implements ControllerConfigInterface
-type FakeControllerConfigs struct {
+// fakeControllerConfigs implements ControllerConfigInterface
+type fakeControllerConfigs struct {
+ *gentype.FakeClientWithListAndApply[*v1.ControllerConfig, *v1.ControllerConfigList, *machineconfigurationv1.ControllerConfigApplyConfiguration]
Fake *FakeMachineconfigurationV1
}
-var controllerconfigsResource = v1.SchemeGroupVersion.WithResource("controllerconfigs")
-
-var controllerconfigsKind = v1.SchemeGroupVersion.WithKind("ControllerConfig")
-
-// Get takes name of the controllerConfig, and returns the corresponding controllerConfig object, and an error if there is any.
-func (c *FakeControllerConfigs) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ControllerConfig, err error) {
- emptyResult := &v1.ControllerConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(controllerconfigsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ControllerConfig), err
-}
-
-// List takes label and field selectors, and returns the list of ControllerConfigs that match those selectors.
-func (c *FakeControllerConfigs) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ControllerConfigList, err error) {
- emptyResult := &v1.ControllerConfigList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(controllerconfigsResource, controllerconfigsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.ControllerConfigList{ListMeta: obj.(*v1.ControllerConfigList).ListMeta}
- for _, item := range obj.(*v1.ControllerConfigList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested controllerConfigs.
-func (c *FakeControllerConfigs) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(controllerconfigsResource, opts))
-}
-
-// Create takes the representation of a controllerConfig and creates it. Returns the server's representation of the controllerConfig, and an error, if there is any.
-func (c *FakeControllerConfigs) Create(ctx context.Context, controllerConfig *v1.ControllerConfig, opts metav1.CreateOptions) (result *v1.ControllerConfig, err error) {
- emptyResult := &v1.ControllerConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(controllerconfigsResource, controllerConfig, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ControllerConfig), err
-}
-
-// Update takes the representation of a controllerConfig and updates it. Returns the server's representation of the controllerConfig, and an error, if there is any.
-func (c *FakeControllerConfigs) Update(ctx context.Context, controllerConfig *v1.ControllerConfig, opts metav1.UpdateOptions) (result *v1.ControllerConfig, err error) {
- emptyResult := &v1.ControllerConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(controllerconfigsResource, controllerConfig, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ControllerConfig), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeControllerConfigs) UpdateStatus(ctx context.Context, controllerConfig *v1.ControllerConfig, opts metav1.UpdateOptions) (result *v1.ControllerConfig, err error) {
- emptyResult := &v1.ControllerConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(controllerconfigsResource, "status", controllerConfig, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ControllerConfig), err
-}
-
-// Delete takes name of the controllerConfig and deletes it. Returns an error if one occurs.
-func (c *FakeControllerConfigs) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(controllerconfigsResource, name, opts), &v1.ControllerConfig{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeControllerConfigs) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(controllerconfigsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.ControllerConfigList{})
- return err
-}
-
-// Patch applies the patch and returns the patched controllerConfig.
-func (c *FakeControllerConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ControllerConfig, err error) {
- emptyResult := &v1.ControllerConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(controllerconfigsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ControllerConfig), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied controllerConfig.
-func (c *FakeControllerConfigs) Apply(ctx context.Context, controllerConfig *machineconfigurationv1.ControllerConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ControllerConfig, err error) {
- if controllerConfig == nil {
- return nil, fmt.Errorf("controllerConfig provided to Apply must not be nil")
- }
- data, err := json.Marshal(controllerConfig)
- if err != nil {
- return nil, err
- }
- name := controllerConfig.Name
- if name == nil {
- return nil, fmt.Errorf("controllerConfig.Name must be provided to Apply")
- }
- emptyResult := &v1.ControllerConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(controllerconfigsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ControllerConfig), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeControllerConfigs) ApplyStatus(ctx context.Context, controllerConfig *machineconfigurationv1.ControllerConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ControllerConfig, err error) {
- if controllerConfig == nil {
- return nil, fmt.Errorf("controllerConfig provided to Apply must not be nil")
- }
- data, err := json.Marshal(controllerConfig)
- if err != nil {
- return nil, err
- }
- name := controllerConfig.Name
- if name == nil {
- return nil, fmt.Errorf("controllerConfig.Name must be provided to Apply")
- }
- emptyResult := &v1.ControllerConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(controllerconfigsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeControllerConfigs(fake *FakeMachineconfigurationV1) typedmachineconfigurationv1.ControllerConfigInterface {
+ return &fakeControllerConfigs{
+ gentype.NewFakeClientWithListAndApply[*v1.ControllerConfig, *v1.ControllerConfigList, *machineconfigurationv1.ControllerConfigApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("controllerconfigs"),
+ v1.SchemeGroupVersion.WithKind("ControllerConfig"),
+ func() *v1.ControllerConfig { return &v1.ControllerConfig{} },
+ func() *v1.ControllerConfigList { return &v1.ControllerConfigList{} },
+ func(dst, src *v1.ControllerConfigList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.ControllerConfigList) []*v1.ControllerConfig { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.ControllerConfigList, items []*v1.ControllerConfig) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.ControllerConfig), err
}
diff --git a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/fake/fake_kubeletconfig.go b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/fake/fake_kubeletconfig.go
index 378913f2a..46f08fa38 100644
--- a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/fake/fake_kubeletconfig.go
+++ b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/fake/fake_kubeletconfig.go
@@ -3,168 +3,33 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/machineconfiguration/v1"
machineconfigurationv1 "github.com/openshift/client-go/machineconfiguration/applyconfigurations/machineconfiguration/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedmachineconfigurationv1 "github.com/openshift/client-go/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeKubeletConfigs implements KubeletConfigInterface
-type FakeKubeletConfigs struct {
+// fakeKubeletConfigs implements KubeletConfigInterface
+type fakeKubeletConfigs struct {
+ *gentype.FakeClientWithListAndApply[*v1.KubeletConfig, *v1.KubeletConfigList, *machineconfigurationv1.KubeletConfigApplyConfiguration]
Fake *FakeMachineconfigurationV1
}
-var kubeletconfigsResource = v1.SchemeGroupVersion.WithResource("kubeletconfigs")
-
-var kubeletconfigsKind = v1.SchemeGroupVersion.WithKind("KubeletConfig")
-
-// Get takes name of the kubeletConfig, and returns the corresponding kubeletConfig object, and an error if there is any.
-func (c *FakeKubeletConfigs) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.KubeletConfig, err error) {
- emptyResult := &v1.KubeletConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(kubeletconfigsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.KubeletConfig), err
-}
-
-// List takes label and field selectors, and returns the list of KubeletConfigs that match those selectors.
-func (c *FakeKubeletConfigs) List(ctx context.Context, opts metav1.ListOptions) (result *v1.KubeletConfigList, err error) {
- emptyResult := &v1.KubeletConfigList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(kubeletconfigsResource, kubeletconfigsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.KubeletConfigList{ListMeta: obj.(*v1.KubeletConfigList).ListMeta}
- for _, item := range obj.(*v1.KubeletConfigList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested kubeletConfigs.
-func (c *FakeKubeletConfigs) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(kubeletconfigsResource, opts))
-}
-
-// Create takes the representation of a kubeletConfig and creates it. Returns the server's representation of the kubeletConfig, and an error, if there is any.
-func (c *FakeKubeletConfigs) Create(ctx context.Context, kubeletConfig *v1.KubeletConfig, opts metav1.CreateOptions) (result *v1.KubeletConfig, err error) {
- emptyResult := &v1.KubeletConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(kubeletconfigsResource, kubeletConfig, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.KubeletConfig), err
-}
-
-// Update takes the representation of a kubeletConfig and updates it. Returns the server's representation of the kubeletConfig, and an error, if there is any.
-func (c *FakeKubeletConfigs) Update(ctx context.Context, kubeletConfig *v1.KubeletConfig, opts metav1.UpdateOptions) (result *v1.KubeletConfig, err error) {
- emptyResult := &v1.KubeletConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(kubeletconfigsResource, kubeletConfig, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.KubeletConfig), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeKubeletConfigs) UpdateStatus(ctx context.Context, kubeletConfig *v1.KubeletConfig, opts metav1.UpdateOptions) (result *v1.KubeletConfig, err error) {
- emptyResult := &v1.KubeletConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(kubeletconfigsResource, "status", kubeletConfig, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.KubeletConfig), err
-}
-
-// Delete takes name of the kubeletConfig and deletes it. Returns an error if one occurs.
-func (c *FakeKubeletConfigs) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(kubeletconfigsResource, name, opts), &v1.KubeletConfig{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeKubeletConfigs) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(kubeletconfigsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.KubeletConfigList{})
- return err
-}
-
-// Patch applies the patch and returns the patched kubeletConfig.
-func (c *FakeKubeletConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.KubeletConfig, err error) {
- emptyResult := &v1.KubeletConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(kubeletconfigsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.KubeletConfig), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied kubeletConfig.
-func (c *FakeKubeletConfigs) Apply(ctx context.Context, kubeletConfig *machineconfigurationv1.KubeletConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.KubeletConfig, err error) {
- if kubeletConfig == nil {
- return nil, fmt.Errorf("kubeletConfig provided to Apply must not be nil")
- }
- data, err := json.Marshal(kubeletConfig)
- if err != nil {
- return nil, err
- }
- name := kubeletConfig.Name
- if name == nil {
- return nil, fmt.Errorf("kubeletConfig.Name must be provided to Apply")
- }
- emptyResult := &v1.KubeletConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(kubeletconfigsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.KubeletConfig), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeKubeletConfigs) ApplyStatus(ctx context.Context, kubeletConfig *machineconfigurationv1.KubeletConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.KubeletConfig, err error) {
- if kubeletConfig == nil {
- return nil, fmt.Errorf("kubeletConfig provided to Apply must not be nil")
- }
- data, err := json.Marshal(kubeletConfig)
- if err != nil {
- return nil, err
- }
- name := kubeletConfig.Name
- if name == nil {
- return nil, fmt.Errorf("kubeletConfig.Name must be provided to Apply")
- }
- emptyResult := &v1.KubeletConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(kubeletconfigsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeKubeletConfigs(fake *FakeMachineconfigurationV1) typedmachineconfigurationv1.KubeletConfigInterface {
+ return &fakeKubeletConfigs{
+ gentype.NewFakeClientWithListAndApply[*v1.KubeletConfig, *v1.KubeletConfigList, *machineconfigurationv1.KubeletConfigApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("kubeletconfigs"),
+ v1.SchemeGroupVersion.WithKind("KubeletConfig"),
+ func() *v1.KubeletConfig { return &v1.KubeletConfig{} },
+ func() *v1.KubeletConfigList { return &v1.KubeletConfigList{} },
+ func(dst, src *v1.KubeletConfigList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.KubeletConfigList) []*v1.KubeletConfig { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.KubeletConfigList, items []*v1.KubeletConfig) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.KubeletConfig), err
}
diff --git a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/fake/fake_machineconfig.go b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/fake/fake_machineconfig.go
index 987a2099f..5740f3dce 100644
--- a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/fake/fake_machineconfig.go
+++ b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/fake/fake_machineconfig.go
@@ -3,133 +3,33 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/machineconfiguration/v1"
machineconfigurationv1 "github.com/openshift/client-go/machineconfiguration/applyconfigurations/machineconfiguration/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedmachineconfigurationv1 "github.com/openshift/client-go/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeMachineConfigs implements MachineConfigInterface
-type FakeMachineConfigs struct {
+// fakeMachineConfigs implements MachineConfigInterface
+type fakeMachineConfigs struct {
+ *gentype.FakeClientWithListAndApply[*v1.MachineConfig, *v1.MachineConfigList, *machineconfigurationv1.MachineConfigApplyConfiguration]
Fake *FakeMachineconfigurationV1
}
-var machineconfigsResource = v1.SchemeGroupVersion.WithResource("machineconfigs")
-
-var machineconfigsKind = v1.SchemeGroupVersion.WithKind("MachineConfig")
-
-// Get takes name of the machineConfig, and returns the corresponding machineConfig object, and an error if there is any.
-func (c *FakeMachineConfigs) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.MachineConfig, err error) {
- emptyResult := &v1.MachineConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(machineconfigsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.MachineConfig), err
-}
-
-// List takes label and field selectors, and returns the list of MachineConfigs that match those selectors.
-func (c *FakeMachineConfigs) List(ctx context.Context, opts metav1.ListOptions) (result *v1.MachineConfigList, err error) {
- emptyResult := &v1.MachineConfigList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(machineconfigsResource, machineconfigsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.MachineConfigList{ListMeta: obj.(*v1.MachineConfigList).ListMeta}
- for _, item := range obj.(*v1.MachineConfigList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested machineConfigs.
-func (c *FakeMachineConfigs) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(machineconfigsResource, opts))
-}
-
-// Create takes the representation of a machineConfig and creates it. Returns the server's representation of the machineConfig, and an error, if there is any.
-func (c *FakeMachineConfigs) Create(ctx context.Context, machineConfig *v1.MachineConfig, opts metav1.CreateOptions) (result *v1.MachineConfig, err error) {
- emptyResult := &v1.MachineConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(machineconfigsResource, machineConfig, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.MachineConfig), err
-}
-
-// Update takes the representation of a machineConfig and updates it. Returns the server's representation of the machineConfig, and an error, if there is any.
-func (c *FakeMachineConfigs) Update(ctx context.Context, machineConfig *v1.MachineConfig, opts metav1.UpdateOptions) (result *v1.MachineConfig, err error) {
- emptyResult := &v1.MachineConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(machineconfigsResource, machineConfig, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.MachineConfig), err
-}
-
-// Delete takes name of the machineConfig and deletes it. Returns an error if one occurs.
-func (c *FakeMachineConfigs) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(machineconfigsResource, name, opts), &v1.MachineConfig{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeMachineConfigs) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(machineconfigsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.MachineConfigList{})
- return err
-}
-
-// Patch applies the patch and returns the patched machineConfig.
-func (c *FakeMachineConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.MachineConfig, err error) {
- emptyResult := &v1.MachineConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(machineconfigsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.MachineConfig), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied machineConfig.
-func (c *FakeMachineConfigs) Apply(ctx context.Context, machineConfig *machineconfigurationv1.MachineConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.MachineConfig, err error) {
- if machineConfig == nil {
- return nil, fmt.Errorf("machineConfig provided to Apply must not be nil")
- }
- data, err := json.Marshal(machineConfig)
- if err != nil {
- return nil, err
- }
- name := machineConfig.Name
- if name == nil {
- return nil, fmt.Errorf("machineConfig.Name must be provided to Apply")
- }
- emptyResult := &v1.MachineConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(machineconfigsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeMachineConfigs(fake *FakeMachineconfigurationV1) typedmachineconfigurationv1.MachineConfigInterface {
+ return &fakeMachineConfigs{
+ gentype.NewFakeClientWithListAndApply[*v1.MachineConfig, *v1.MachineConfigList, *machineconfigurationv1.MachineConfigApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("machineconfigs"),
+ v1.SchemeGroupVersion.WithKind("MachineConfig"),
+ func() *v1.MachineConfig { return &v1.MachineConfig{} },
+ func() *v1.MachineConfigList { return &v1.MachineConfigList{} },
+ func(dst, src *v1.MachineConfigList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.MachineConfigList) []*v1.MachineConfig { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.MachineConfigList, items []*v1.MachineConfig) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.MachineConfig), err
}
diff --git a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/fake/fake_machineconfigpool.go b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/fake/fake_machineconfigpool.go
index e9422f7e0..529f1c773 100644
--- a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/fake/fake_machineconfigpool.go
+++ b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/fake/fake_machineconfigpool.go
@@ -3,168 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/machineconfiguration/v1"
machineconfigurationv1 "github.com/openshift/client-go/machineconfiguration/applyconfigurations/machineconfiguration/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedmachineconfigurationv1 "github.com/openshift/client-go/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeMachineConfigPools implements MachineConfigPoolInterface
-type FakeMachineConfigPools struct {
+// fakeMachineConfigPools implements MachineConfigPoolInterface
+type fakeMachineConfigPools struct {
+ *gentype.FakeClientWithListAndApply[*v1.MachineConfigPool, *v1.MachineConfigPoolList, *machineconfigurationv1.MachineConfigPoolApplyConfiguration]
Fake *FakeMachineconfigurationV1
}
-var machineconfigpoolsResource = v1.SchemeGroupVersion.WithResource("machineconfigpools")
-
-var machineconfigpoolsKind = v1.SchemeGroupVersion.WithKind("MachineConfigPool")
-
-// Get takes name of the machineConfigPool, and returns the corresponding machineConfigPool object, and an error if there is any.
-func (c *FakeMachineConfigPools) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.MachineConfigPool, err error) {
- emptyResult := &v1.MachineConfigPool{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(machineconfigpoolsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.MachineConfigPool), err
-}
-
-// List takes label and field selectors, and returns the list of MachineConfigPools that match those selectors.
-func (c *FakeMachineConfigPools) List(ctx context.Context, opts metav1.ListOptions) (result *v1.MachineConfigPoolList, err error) {
- emptyResult := &v1.MachineConfigPoolList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(machineconfigpoolsResource, machineconfigpoolsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.MachineConfigPoolList{ListMeta: obj.(*v1.MachineConfigPoolList).ListMeta}
- for _, item := range obj.(*v1.MachineConfigPoolList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested machineConfigPools.
-func (c *FakeMachineConfigPools) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(machineconfigpoolsResource, opts))
-}
-
-// Create takes the representation of a machineConfigPool and creates it. Returns the server's representation of the machineConfigPool, and an error, if there is any.
-func (c *FakeMachineConfigPools) Create(ctx context.Context, machineConfigPool *v1.MachineConfigPool, opts metav1.CreateOptions) (result *v1.MachineConfigPool, err error) {
- emptyResult := &v1.MachineConfigPool{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(machineconfigpoolsResource, machineConfigPool, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.MachineConfigPool), err
-}
-
-// Update takes the representation of a machineConfigPool and updates it. Returns the server's representation of the machineConfigPool, and an error, if there is any.
-func (c *FakeMachineConfigPools) Update(ctx context.Context, machineConfigPool *v1.MachineConfigPool, opts metav1.UpdateOptions) (result *v1.MachineConfigPool, err error) {
- emptyResult := &v1.MachineConfigPool{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(machineconfigpoolsResource, machineConfigPool, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.MachineConfigPool), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeMachineConfigPools) UpdateStatus(ctx context.Context, machineConfigPool *v1.MachineConfigPool, opts metav1.UpdateOptions) (result *v1.MachineConfigPool, err error) {
- emptyResult := &v1.MachineConfigPool{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(machineconfigpoolsResource, "status", machineConfigPool, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.MachineConfigPool), err
-}
-
-// Delete takes name of the machineConfigPool and deletes it. Returns an error if one occurs.
-func (c *FakeMachineConfigPools) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(machineconfigpoolsResource, name, opts), &v1.MachineConfigPool{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeMachineConfigPools) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(machineconfigpoolsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.MachineConfigPoolList{})
- return err
-}
-
-// Patch applies the patch and returns the patched machineConfigPool.
-func (c *FakeMachineConfigPools) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.MachineConfigPool, err error) {
- emptyResult := &v1.MachineConfigPool{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(machineconfigpoolsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.MachineConfigPool), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied machineConfigPool.
-func (c *FakeMachineConfigPools) Apply(ctx context.Context, machineConfigPool *machineconfigurationv1.MachineConfigPoolApplyConfiguration, opts metav1.ApplyOptions) (result *v1.MachineConfigPool, err error) {
- if machineConfigPool == nil {
- return nil, fmt.Errorf("machineConfigPool provided to Apply must not be nil")
- }
- data, err := json.Marshal(machineConfigPool)
- if err != nil {
- return nil, err
- }
- name := machineConfigPool.Name
- if name == nil {
- return nil, fmt.Errorf("machineConfigPool.Name must be provided to Apply")
- }
- emptyResult := &v1.MachineConfigPool{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(machineconfigpoolsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.MachineConfigPool), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeMachineConfigPools) ApplyStatus(ctx context.Context, machineConfigPool *machineconfigurationv1.MachineConfigPoolApplyConfiguration, opts metav1.ApplyOptions) (result *v1.MachineConfigPool, err error) {
- if machineConfigPool == nil {
- return nil, fmt.Errorf("machineConfigPool provided to Apply must not be nil")
- }
- data, err := json.Marshal(machineConfigPool)
- if err != nil {
- return nil, err
- }
- name := machineConfigPool.Name
- if name == nil {
- return nil, fmt.Errorf("machineConfigPool.Name must be provided to Apply")
- }
- emptyResult := &v1.MachineConfigPool{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(machineconfigpoolsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeMachineConfigPools(fake *FakeMachineconfigurationV1) typedmachineconfigurationv1.MachineConfigPoolInterface {
+ return &fakeMachineConfigPools{
+ gentype.NewFakeClientWithListAndApply[*v1.MachineConfigPool, *v1.MachineConfigPoolList, *machineconfigurationv1.MachineConfigPoolApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("machineconfigpools"),
+ v1.SchemeGroupVersion.WithKind("MachineConfigPool"),
+ func() *v1.MachineConfigPool { return &v1.MachineConfigPool{} },
+ func() *v1.MachineConfigPoolList { return &v1.MachineConfigPoolList{} },
+ func(dst, src *v1.MachineConfigPoolList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.MachineConfigPoolList) []*v1.MachineConfigPool {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1.MachineConfigPoolList, items []*v1.MachineConfigPool) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.MachineConfigPool), err
}
diff --git a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/fake/fake_machineconfiguration_client.go b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/fake/fake_machineconfiguration_client.go
index 8983b0910..3cba62cdb 100644
--- a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/fake/fake_machineconfiguration_client.go
+++ b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/fake/fake_machineconfiguration_client.go
@@ -13,31 +13,31 @@ type FakeMachineconfigurationV1 struct {
}
func (c *FakeMachineconfigurationV1) ContainerRuntimeConfigs() v1.ContainerRuntimeConfigInterface {
- return &FakeContainerRuntimeConfigs{c}
+ return newFakeContainerRuntimeConfigs(c)
}
func (c *FakeMachineconfigurationV1) ControllerConfigs() v1.ControllerConfigInterface {
- return &FakeControllerConfigs{c}
+ return newFakeControllerConfigs(c)
}
func (c *FakeMachineconfigurationV1) KubeletConfigs() v1.KubeletConfigInterface {
- return &FakeKubeletConfigs{c}
+ return newFakeKubeletConfigs(c)
}
func (c *FakeMachineconfigurationV1) MachineConfigs() v1.MachineConfigInterface {
- return &FakeMachineConfigs{c}
+ return newFakeMachineConfigs(c)
}
func (c *FakeMachineconfigurationV1) MachineConfigPools() v1.MachineConfigPoolInterface {
- return &FakeMachineConfigPools{c}
+ return newFakeMachineConfigPools(c)
}
func (c *FakeMachineconfigurationV1) MachineOSBuilds() v1.MachineOSBuildInterface {
- return &FakeMachineOSBuilds{c}
+ return newFakeMachineOSBuilds(c)
}
func (c *FakeMachineconfigurationV1) MachineOSConfigs() v1.MachineOSConfigInterface {
- return &FakeMachineOSConfigs{c}
+ return newFakeMachineOSConfigs(c)
}
// RESTClient returns a RESTClient that is used to communicate
diff --git a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/fake/fake_machineosbuild.go b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/fake/fake_machineosbuild.go
index 40cc28a63..5e879d894 100644
--- a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/fake/fake_machineosbuild.go
+++ b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/fake/fake_machineosbuild.go
@@ -3,168 +3,33 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/machineconfiguration/v1"
machineconfigurationv1 "github.com/openshift/client-go/machineconfiguration/applyconfigurations/machineconfiguration/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedmachineconfigurationv1 "github.com/openshift/client-go/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeMachineOSBuilds implements MachineOSBuildInterface
-type FakeMachineOSBuilds struct {
+// fakeMachineOSBuilds implements MachineOSBuildInterface
+type fakeMachineOSBuilds struct {
+ *gentype.FakeClientWithListAndApply[*v1.MachineOSBuild, *v1.MachineOSBuildList, *machineconfigurationv1.MachineOSBuildApplyConfiguration]
Fake *FakeMachineconfigurationV1
}
-var machineosbuildsResource = v1.SchemeGroupVersion.WithResource("machineosbuilds")
-
-var machineosbuildsKind = v1.SchemeGroupVersion.WithKind("MachineOSBuild")
-
-// Get takes name of the machineOSBuild, and returns the corresponding machineOSBuild object, and an error if there is any.
-func (c *FakeMachineOSBuilds) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.MachineOSBuild, err error) {
- emptyResult := &v1.MachineOSBuild{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(machineosbuildsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.MachineOSBuild), err
-}
-
-// List takes label and field selectors, and returns the list of MachineOSBuilds that match those selectors.
-func (c *FakeMachineOSBuilds) List(ctx context.Context, opts metav1.ListOptions) (result *v1.MachineOSBuildList, err error) {
- emptyResult := &v1.MachineOSBuildList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(machineosbuildsResource, machineosbuildsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.MachineOSBuildList{ListMeta: obj.(*v1.MachineOSBuildList).ListMeta}
- for _, item := range obj.(*v1.MachineOSBuildList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested machineOSBuilds.
-func (c *FakeMachineOSBuilds) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(machineosbuildsResource, opts))
-}
-
-// Create takes the representation of a machineOSBuild and creates it. Returns the server's representation of the machineOSBuild, and an error, if there is any.
-func (c *FakeMachineOSBuilds) Create(ctx context.Context, machineOSBuild *v1.MachineOSBuild, opts metav1.CreateOptions) (result *v1.MachineOSBuild, err error) {
- emptyResult := &v1.MachineOSBuild{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(machineosbuildsResource, machineOSBuild, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.MachineOSBuild), err
-}
-
-// Update takes the representation of a machineOSBuild and updates it. Returns the server's representation of the machineOSBuild, and an error, if there is any.
-func (c *FakeMachineOSBuilds) Update(ctx context.Context, machineOSBuild *v1.MachineOSBuild, opts metav1.UpdateOptions) (result *v1.MachineOSBuild, err error) {
- emptyResult := &v1.MachineOSBuild{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(machineosbuildsResource, machineOSBuild, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.MachineOSBuild), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeMachineOSBuilds) UpdateStatus(ctx context.Context, machineOSBuild *v1.MachineOSBuild, opts metav1.UpdateOptions) (result *v1.MachineOSBuild, err error) {
- emptyResult := &v1.MachineOSBuild{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(machineosbuildsResource, "status", machineOSBuild, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.MachineOSBuild), err
-}
-
-// Delete takes name of the machineOSBuild and deletes it. Returns an error if one occurs.
-func (c *FakeMachineOSBuilds) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(machineosbuildsResource, name, opts), &v1.MachineOSBuild{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeMachineOSBuilds) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(machineosbuildsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.MachineOSBuildList{})
- return err
-}
-
-// Patch applies the patch and returns the patched machineOSBuild.
-func (c *FakeMachineOSBuilds) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.MachineOSBuild, err error) {
- emptyResult := &v1.MachineOSBuild{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(machineosbuildsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.MachineOSBuild), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied machineOSBuild.
-func (c *FakeMachineOSBuilds) Apply(ctx context.Context, machineOSBuild *machineconfigurationv1.MachineOSBuildApplyConfiguration, opts metav1.ApplyOptions) (result *v1.MachineOSBuild, err error) {
- if machineOSBuild == nil {
- return nil, fmt.Errorf("machineOSBuild provided to Apply must not be nil")
- }
- data, err := json.Marshal(machineOSBuild)
- if err != nil {
- return nil, err
- }
- name := machineOSBuild.Name
- if name == nil {
- return nil, fmt.Errorf("machineOSBuild.Name must be provided to Apply")
- }
- emptyResult := &v1.MachineOSBuild{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(machineosbuildsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.MachineOSBuild), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeMachineOSBuilds) ApplyStatus(ctx context.Context, machineOSBuild *machineconfigurationv1.MachineOSBuildApplyConfiguration, opts metav1.ApplyOptions) (result *v1.MachineOSBuild, err error) {
- if machineOSBuild == nil {
- return nil, fmt.Errorf("machineOSBuild provided to Apply must not be nil")
- }
- data, err := json.Marshal(machineOSBuild)
- if err != nil {
- return nil, err
- }
- name := machineOSBuild.Name
- if name == nil {
- return nil, fmt.Errorf("machineOSBuild.Name must be provided to Apply")
- }
- emptyResult := &v1.MachineOSBuild{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(machineosbuildsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeMachineOSBuilds(fake *FakeMachineconfigurationV1) typedmachineconfigurationv1.MachineOSBuildInterface {
+ return &fakeMachineOSBuilds{
+ gentype.NewFakeClientWithListAndApply[*v1.MachineOSBuild, *v1.MachineOSBuildList, *machineconfigurationv1.MachineOSBuildApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("machineosbuilds"),
+ v1.SchemeGroupVersion.WithKind("MachineOSBuild"),
+ func() *v1.MachineOSBuild { return &v1.MachineOSBuild{} },
+ func() *v1.MachineOSBuildList { return &v1.MachineOSBuildList{} },
+ func(dst, src *v1.MachineOSBuildList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.MachineOSBuildList) []*v1.MachineOSBuild { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.MachineOSBuildList, items []*v1.MachineOSBuild) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.MachineOSBuild), err
}
diff --git a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/fake/fake_machineosconfig.go b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/fake/fake_machineosconfig.go
index aa07b72b9..f00627e1c 100644
--- a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/fake/fake_machineosconfig.go
+++ b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/fake/fake_machineosconfig.go
@@ -3,168 +3,33 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/machineconfiguration/v1"
machineconfigurationv1 "github.com/openshift/client-go/machineconfiguration/applyconfigurations/machineconfiguration/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedmachineconfigurationv1 "github.com/openshift/client-go/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeMachineOSConfigs implements MachineOSConfigInterface
-type FakeMachineOSConfigs struct {
+// fakeMachineOSConfigs implements MachineOSConfigInterface
+type fakeMachineOSConfigs struct {
+ *gentype.FakeClientWithListAndApply[*v1.MachineOSConfig, *v1.MachineOSConfigList, *machineconfigurationv1.MachineOSConfigApplyConfiguration]
Fake *FakeMachineconfigurationV1
}
-var machineosconfigsResource = v1.SchemeGroupVersion.WithResource("machineosconfigs")
-
-var machineosconfigsKind = v1.SchemeGroupVersion.WithKind("MachineOSConfig")
-
-// Get takes name of the machineOSConfig, and returns the corresponding machineOSConfig object, and an error if there is any.
-func (c *FakeMachineOSConfigs) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.MachineOSConfig, err error) {
- emptyResult := &v1.MachineOSConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(machineosconfigsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.MachineOSConfig), err
-}
-
-// List takes label and field selectors, and returns the list of MachineOSConfigs that match those selectors.
-func (c *FakeMachineOSConfigs) List(ctx context.Context, opts metav1.ListOptions) (result *v1.MachineOSConfigList, err error) {
- emptyResult := &v1.MachineOSConfigList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(machineosconfigsResource, machineosconfigsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.MachineOSConfigList{ListMeta: obj.(*v1.MachineOSConfigList).ListMeta}
- for _, item := range obj.(*v1.MachineOSConfigList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested machineOSConfigs.
-func (c *FakeMachineOSConfigs) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(machineosconfigsResource, opts))
-}
-
-// Create takes the representation of a machineOSConfig and creates it. Returns the server's representation of the machineOSConfig, and an error, if there is any.
-func (c *FakeMachineOSConfigs) Create(ctx context.Context, machineOSConfig *v1.MachineOSConfig, opts metav1.CreateOptions) (result *v1.MachineOSConfig, err error) {
- emptyResult := &v1.MachineOSConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(machineosconfigsResource, machineOSConfig, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.MachineOSConfig), err
-}
-
-// Update takes the representation of a machineOSConfig and updates it. Returns the server's representation of the machineOSConfig, and an error, if there is any.
-func (c *FakeMachineOSConfigs) Update(ctx context.Context, machineOSConfig *v1.MachineOSConfig, opts metav1.UpdateOptions) (result *v1.MachineOSConfig, err error) {
- emptyResult := &v1.MachineOSConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(machineosconfigsResource, machineOSConfig, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.MachineOSConfig), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeMachineOSConfigs) UpdateStatus(ctx context.Context, machineOSConfig *v1.MachineOSConfig, opts metav1.UpdateOptions) (result *v1.MachineOSConfig, err error) {
- emptyResult := &v1.MachineOSConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(machineosconfigsResource, "status", machineOSConfig, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.MachineOSConfig), err
-}
-
-// Delete takes name of the machineOSConfig and deletes it. Returns an error if one occurs.
-func (c *FakeMachineOSConfigs) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(machineosconfigsResource, name, opts), &v1.MachineOSConfig{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeMachineOSConfigs) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(machineosconfigsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.MachineOSConfigList{})
- return err
-}
-
-// Patch applies the patch and returns the patched machineOSConfig.
-func (c *FakeMachineOSConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.MachineOSConfig, err error) {
- emptyResult := &v1.MachineOSConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(machineosconfigsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.MachineOSConfig), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied machineOSConfig.
-func (c *FakeMachineOSConfigs) Apply(ctx context.Context, machineOSConfig *machineconfigurationv1.MachineOSConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.MachineOSConfig, err error) {
- if machineOSConfig == nil {
- return nil, fmt.Errorf("machineOSConfig provided to Apply must not be nil")
- }
- data, err := json.Marshal(machineOSConfig)
- if err != nil {
- return nil, err
- }
- name := machineOSConfig.Name
- if name == nil {
- return nil, fmt.Errorf("machineOSConfig.Name must be provided to Apply")
- }
- emptyResult := &v1.MachineOSConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(machineosconfigsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.MachineOSConfig), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeMachineOSConfigs) ApplyStatus(ctx context.Context, machineOSConfig *machineconfigurationv1.MachineOSConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.MachineOSConfig, err error) {
- if machineOSConfig == nil {
- return nil, fmt.Errorf("machineOSConfig provided to Apply must not be nil")
- }
- data, err := json.Marshal(machineOSConfig)
- if err != nil {
- return nil, err
- }
- name := machineOSConfig.Name
- if name == nil {
- return nil, fmt.Errorf("machineOSConfig.Name must be provided to Apply")
- }
- emptyResult := &v1.MachineOSConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(machineosconfigsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeMachineOSConfigs(fake *FakeMachineconfigurationV1) typedmachineconfigurationv1.MachineOSConfigInterface {
+ return &fakeMachineOSConfigs{
+ gentype.NewFakeClientWithListAndApply[*v1.MachineOSConfig, *v1.MachineOSConfigList, *machineconfigurationv1.MachineOSConfigApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("machineosconfigs"),
+ v1.SchemeGroupVersion.WithKind("MachineOSConfig"),
+ func() *v1.MachineOSConfig { return &v1.MachineOSConfig{} },
+ func() *v1.MachineOSConfigList { return &v1.MachineOSConfigList{} },
+ func(dst, src *v1.MachineOSConfigList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.MachineOSConfigList) []*v1.MachineOSConfig { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.MachineOSConfigList, items []*v1.MachineOSConfig) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.MachineOSConfig), err
}
diff --git a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/kubeletconfig.go b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/kubeletconfig.go
index c6e677406..f73f46858 100644
--- a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/kubeletconfig.go
+++ b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/kubeletconfig.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/machineconfiguration/v1"
- machineconfigurationv1 "github.com/openshift/client-go/machineconfiguration/applyconfigurations/machineconfiguration/v1"
+ machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
+ applyconfigurationsmachineconfigurationv1 "github.com/openshift/client-go/machineconfiguration/applyconfigurations/machineconfiguration/v1"
scheme "github.com/openshift/client-go/machineconfiguration/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type KubeletConfigsGetter interface {
// KubeletConfigInterface has methods to work with KubeletConfig resources.
type KubeletConfigInterface interface {
- Create(ctx context.Context, kubeletConfig *v1.KubeletConfig, opts metav1.CreateOptions) (*v1.KubeletConfig, error)
- Update(ctx context.Context, kubeletConfig *v1.KubeletConfig, opts metav1.UpdateOptions) (*v1.KubeletConfig, error)
+ Create(ctx context.Context, kubeletConfig *machineconfigurationv1.KubeletConfig, opts metav1.CreateOptions) (*machineconfigurationv1.KubeletConfig, error)
+ Update(ctx context.Context, kubeletConfig *machineconfigurationv1.KubeletConfig, opts metav1.UpdateOptions) (*machineconfigurationv1.KubeletConfig, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, kubeletConfig *v1.KubeletConfig, opts metav1.UpdateOptions) (*v1.KubeletConfig, error)
+ UpdateStatus(ctx context.Context, kubeletConfig *machineconfigurationv1.KubeletConfig, opts metav1.UpdateOptions) (*machineconfigurationv1.KubeletConfig, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.KubeletConfig, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.KubeletConfigList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*machineconfigurationv1.KubeletConfig, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*machineconfigurationv1.KubeletConfigList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.KubeletConfig, err error)
- Apply(ctx context.Context, kubeletConfig *machineconfigurationv1.KubeletConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.KubeletConfig, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *machineconfigurationv1.KubeletConfig, err error)
+ Apply(ctx context.Context, kubeletConfig *applyconfigurationsmachineconfigurationv1.KubeletConfigApplyConfiguration, opts metav1.ApplyOptions) (result *machineconfigurationv1.KubeletConfig, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, kubeletConfig *machineconfigurationv1.KubeletConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.KubeletConfig, err error)
+ ApplyStatus(ctx context.Context, kubeletConfig *applyconfigurationsmachineconfigurationv1.KubeletConfigApplyConfiguration, opts metav1.ApplyOptions) (result *machineconfigurationv1.KubeletConfig, err error)
KubeletConfigExpansion
}
// kubeletConfigs implements KubeletConfigInterface
type kubeletConfigs struct {
- *gentype.ClientWithListAndApply[*v1.KubeletConfig, *v1.KubeletConfigList, *machineconfigurationv1.KubeletConfigApplyConfiguration]
+ *gentype.ClientWithListAndApply[*machineconfigurationv1.KubeletConfig, *machineconfigurationv1.KubeletConfigList, *applyconfigurationsmachineconfigurationv1.KubeletConfigApplyConfiguration]
}
// newKubeletConfigs returns a KubeletConfigs
func newKubeletConfigs(c *MachineconfigurationV1Client) *kubeletConfigs {
return &kubeletConfigs{
- gentype.NewClientWithListAndApply[*v1.KubeletConfig, *v1.KubeletConfigList, *machineconfigurationv1.KubeletConfigApplyConfiguration](
+ gentype.NewClientWithListAndApply[*machineconfigurationv1.KubeletConfig, *machineconfigurationv1.KubeletConfigList, *applyconfigurationsmachineconfigurationv1.KubeletConfigApplyConfiguration](
"kubeletconfigs",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.KubeletConfig { return &v1.KubeletConfig{} },
- func() *v1.KubeletConfigList { return &v1.KubeletConfigList{} }),
+ func() *machineconfigurationv1.KubeletConfig { return &machineconfigurationv1.KubeletConfig{} },
+ func() *machineconfigurationv1.KubeletConfigList { return &machineconfigurationv1.KubeletConfigList{} },
+ ),
}
}
diff --git a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/machineconfig.go b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/machineconfig.go
index 9ef51a0dd..5c2e20379 100644
--- a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/machineconfig.go
+++ b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/machineconfig.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/machineconfiguration/v1"
- machineconfigurationv1 "github.com/openshift/client-go/machineconfiguration/applyconfigurations/machineconfiguration/v1"
+ machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
+ applyconfigurationsmachineconfigurationv1 "github.com/openshift/client-go/machineconfiguration/applyconfigurations/machineconfiguration/v1"
scheme "github.com/openshift/client-go/machineconfiguration/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,32 +22,33 @@ type MachineConfigsGetter interface {
// MachineConfigInterface has methods to work with MachineConfig resources.
type MachineConfigInterface interface {
- Create(ctx context.Context, machineConfig *v1.MachineConfig, opts metav1.CreateOptions) (*v1.MachineConfig, error)
- Update(ctx context.Context, machineConfig *v1.MachineConfig, opts metav1.UpdateOptions) (*v1.MachineConfig, error)
+ Create(ctx context.Context, machineConfig *machineconfigurationv1.MachineConfig, opts metav1.CreateOptions) (*machineconfigurationv1.MachineConfig, error)
+ Update(ctx context.Context, machineConfig *machineconfigurationv1.MachineConfig, opts metav1.UpdateOptions) (*machineconfigurationv1.MachineConfig, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.MachineConfig, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.MachineConfigList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*machineconfigurationv1.MachineConfig, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*machineconfigurationv1.MachineConfigList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.MachineConfig, err error)
- Apply(ctx context.Context, machineConfig *machineconfigurationv1.MachineConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.MachineConfig, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *machineconfigurationv1.MachineConfig, err error)
+ Apply(ctx context.Context, machineConfig *applyconfigurationsmachineconfigurationv1.MachineConfigApplyConfiguration, opts metav1.ApplyOptions) (result *machineconfigurationv1.MachineConfig, err error)
MachineConfigExpansion
}
// machineConfigs implements MachineConfigInterface
type machineConfigs struct {
- *gentype.ClientWithListAndApply[*v1.MachineConfig, *v1.MachineConfigList, *machineconfigurationv1.MachineConfigApplyConfiguration]
+ *gentype.ClientWithListAndApply[*machineconfigurationv1.MachineConfig, *machineconfigurationv1.MachineConfigList, *applyconfigurationsmachineconfigurationv1.MachineConfigApplyConfiguration]
}
// newMachineConfigs returns a MachineConfigs
func newMachineConfigs(c *MachineconfigurationV1Client) *machineConfigs {
return &machineConfigs{
- gentype.NewClientWithListAndApply[*v1.MachineConfig, *v1.MachineConfigList, *machineconfigurationv1.MachineConfigApplyConfiguration](
+ gentype.NewClientWithListAndApply[*machineconfigurationv1.MachineConfig, *machineconfigurationv1.MachineConfigList, *applyconfigurationsmachineconfigurationv1.MachineConfigApplyConfiguration](
"machineconfigs",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.MachineConfig { return &v1.MachineConfig{} },
- func() *v1.MachineConfigList { return &v1.MachineConfigList{} }),
+ func() *machineconfigurationv1.MachineConfig { return &machineconfigurationv1.MachineConfig{} },
+ func() *machineconfigurationv1.MachineConfigList { return &machineconfigurationv1.MachineConfigList{} },
+ ),
}
}
diff --git a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/machineconfigpool.go b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/machineconfigpool.go
index da45e61d4..173cb2c3a 100644
--- a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/machineconfigpool.go
+++ b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/machineconfigpool.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/machineconfiguration/v1"
- machineconfigurationv1 "github.com/openshift/client-go/machineconfiguration/applyconfigurations/machineconfiguration/v1"
+ machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
+ applyconfigurationsmachineconfigurationv1 "github.com/openshift/client-go/machineconfiguration/applyconfigurations/machineconfiguration/v1"
scheme "github.com/openshift/client-go/machineconfiguration/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,39 @@ type MachineConfigPoolsGetter interface {
// MachineConfigPoolInterface has methods to work with MachineConfigPool resources.
type MachineConfigPoolInterface interface {
- Create(ctx context.Context, machineConfigPool *v1.MachineConfigPool, opts metav1.CreateOptions) (*v1.MachineConfigPool, error)
- Update(ctx context.Context, machineConfigPool *v1.MachineConfigPool, opts metav1.UpdateOptions) (*v1.MachineConfigPool, error)
+ Create(ctx context.Context, machineConfigPool *machineconfigurationv1.MachineConfigPool, opts metav1.CreateOptions) (*machineconfigurationv1.MachineConfigPool, error)
+ Update(ctx context.Context, machineConfigPool *machineconfigurationv1.MachineConfigPool, opts metav1.UpdateOptions) (*machineconfigurationv1.MachineConfigPool, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, machineConfigPool *v1.MachineConfigPool, opts metav1.UpdateOptions) (*v1.MachineConfigPool, error)
+ UpdateStatus(ctx context.Context, machineConfigPool *machineconfigurationv1.MachineConfigPool, opts metav1.UpdateOptions) (*machineconfigurationv1.MachineConfigPool, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.MachineConfigPool, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.MachineConfigPoolList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*machineconfigurationv1.MachineConfigPool, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*machineconfigurationv1.MachineConfigPoolList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.MachineConfigPool, err error)
- Apply(ctx context.Context, machineConfigPool *machineconfigurationv1.MachineConfigPoolApplyConfiguration, opts metav1.ApplyOptions) (result *v1.MachineConfigPool, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *machineconfigurationv1.MachineConfigPool, err error)
+ Apply(ctx context.Context, machineConfigPool *applyconfigurationsmachineconfigurationv1.MachineConfigPoolApplyConfiguration, opts metav1.ApplyOptions) (result *machineconfigurationv1.MachineConfigPool, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, machineConfigPool *machineconfigurationv1.MachineConfigPoolApplyConfiguration, opts metav1.ApplyOptions) (result *v1.MachineConfigPool, err error)
+ ApplyStatus(ctx context.Context, machineConfigPool *applyconfigurationsmachineconfigurationv1.MachineConfigPoolApplyConfiguration, opts metav1.ApplyOptions) (result *machineconfigurationv1.MachineConfigPool, err error)
MachineConfigPoolExpansion
}
// machineConfigPools implements MachineConfigPoolInterface
type machineConfigPools struct {
- *gentype.ClientWithListAndApply[*v1.MachineConfigPool, *v1.MachineConfigPoolList, *machineconfigurationv1.MachineConfigPoolApplyConfiguration]
+ *gentype.ClientWithListAndApply[*machineconfigurationv1.MachineConfigPool, *machineconfigurationv1.MachineConfigPoolList, *applyconfigurationsmachineconfigurationv1.MachineConfigPoolApplyConfiguration]
}
// newMachineConfigPools returns a MachineConfigPools
func newMachineConfigPools(c *MachineconfigurationV1Client) *machineConfigPools {
return &machineConfigPools{
- gentype.NewClientWithListAndApply[*v1.MachineConfigPool, *v1.MachineConfigPoolList, *machineconfigurationv1.MachineConfigPoolApplyConfiguration](
+ gentype.NewClientWithListAndApply[*machineconfigurationv1.MachineConfigPool, *machineconfigurationv1.MachineConfigPoolList, *applyconfigurationsmachineconfigurationv1.MachineConfigPoolApplyConfiguration](
"machineconfigpools",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.MachineConfigPool { return &v1.MachineConfigPool{} },
- func() *v1.MachineConfigPoolList { return &v1.MachineConfigPoolList{} }),
+ func() *machineconfigurationv1.MachineConfigPool { return &machineconfigurationv1.MachineConfigPool{} },
+ func() *machineconfigurationv1.MachineConfigPoolList {
+ return &machineconfigurationv1.MachineConfigPoolList{}
+ },
+ ),
}
}
diff --git a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/machineconfiguration_client.go b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/machineconfiguration_client.go
index c595fc446..34c197669 100644
--- a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/machineconfiguration_client.go
+++ b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/machineconfiguration_client.go
@@ -3,10 +3,10 @@
package v1
import (
- "net/http"
+ http "net/http"
- v1 "github.com/openshift/api/machineconfiguration/v1"
- "github.com/openshift/client-go/machineconfiguration/clientset/versioned/scheme"
+ machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
+ scheme "github.com/openshift/client-go/machineconfiguration/clientset/versioned/scheme"
rest "k8s.io/client-go/rest"
)
@@ -99,10 +99,10 @@ func New(c rest.Interface) *MachineconfigurationV1Client {
}
func setConfigDefaults(config *rest.Config) error {
- gv := v1.SchemeGroupVersion
+ gv := machineconfigurationv1.SchemeGroupVersion
config.GroupVersion = &gv
config.APIPath = "/apis"
- config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
+ config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion()
if config.UserAgent == "" {
config.UserAgent = rest.DefaultKubernetesUserAgent()
diff --git a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/machineosbuild.go b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/machineosbuild.go
index 41ead8964..f0f84ea1b 100644
--- a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/machineosbuild.go
+++ b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/machineosbuild.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/machineconfiguration/v1"
- machineconfigurationv1 "github.com/openshift/client-go/machineconfiguration/applyconfigurations/machineconfiguration/v1"
+ machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
+ applyconfigurationsmachineconfigurationv1 "github.com/openshift/client-go/machineconfiguration/applyconfigurations/machineconfiguration/v1"
scheme "github.com/openshift/client-go/machineconfiguration/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type MachineOSBuildsGetter interface {
// MachineOSBuildInterface has methods to work with MachineOSBuild resources.
type MachineOSBuildInterface interface {
- Create(ctx context.Context, machineOSBuild *v1.MachineOSBuild, opts metav1.CreateOptions) (*v1.MachineOSBuild, error)
- Update(ctx context.Context, machineOSBuild *v1.MachineOSBuild, opts metav1.UpdateOptions) (*v1.MachineOSBuild, error)
+ Create(ctx context.Context, machineOSBuild *machineconfigurationv1.MachineOSBuild, opts metav1.CreateOptions) (*machineconfigurationv1.MachineOSBuild, error)
+ Update(ctx context.Context, machineOSBuild *machineconfigurationv1.MachineOSBuild, opts metav1.UpdateOptions) (*machineconfigurationv1.MachineOSBuild, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, machineOSBuild *v1.MachineOSBuild, opts metav1.UpdateOptions) (*v1.MachineOSBuild, error)
+ UpdateStatus(ctx context.Context, machineOSBuild *machineconfigurationv1.MachineOSBuild, opts metav1.UpdateOptions) (*machineconfigurationv1.MachineOSBuild, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.MachineOSBuild, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.MachineOSBuildList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*machineconfigurationv1.MachineOSBuild, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*machineconfigurationv1.MachineOSBuildList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.MachineOSBuild, err error)
- Apply(ctx context.Context, machineOSBuild *machineconfigurationv1.MachineOSBuildApplyConfiguration, opts metav1.ApplyOptions) (result *v1.MachineOSBuild, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *machineconfigurationv1.MachineOSBuild, err error)
+ Apply(ctx context.Context, machineOSBuild *applyconfigurationsmachineconfigurationv1.MachineOSBuildApplyConfiguration, opts metav1.ApplyOptions) (result *machineconfigurationv1.MachineOSBuild, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, machineOSBuild *machineconfigurationv1.MachineOSBuildApplyConfiguration, opts metav1.ApplyOptions) (result *v1.MachineOSBuild, err error)
+ ApplyStatus(ctx context.Context, machineOSBuild *applyconfigurationsmachineconfigurationv1.MachineOSBuildApplyConfiguration, opts metav1.ApplyOptions) (result *machineconfigurationv1.MachineOSBuild, err error)
MachineOSBuildExpansion
}
// machineOSBuilds implements MachineOSBuildInterface
type machineOSBuilds struct {
- *gentype.ClientWithListAndApply[*v1.MachineOSBuild, *v1.MachineOSBuildList, *machineconfigurationv1.MachineOSBuildApplyConfiguration]
+ *gentype.ClientWithListAndApply[*machineconfigurationv1.MachineOSBuild, *machineconfigurationv1.MachineOSBuildList, *applyconfigurationsmachineconfigurationv1.MachineOSBuildApplyConfiguration]
}
// newMachineOSBuilds returns a MachineOSBuilds
func newMachineOSBuilds(c *MachineconfigurationV1Client) *machineOSBuilds {
return &machineOSBuilds{
- gentype.NewClientWithListAndApply[*v1.MachineOSBuild, *v1.MachineOSBuildList, *machineconfigurationv1.MachineOSBuildApplyConfiguration](
+ gentype.NewClientWithListAndApply[*machineconfigurationv1.MachineOSBuild, *machineconfigurationv1.MachineOSBuildList, *applyconfigurationsmachineconfigurationv1.MachineOSBuildApplyConfiguration](
"machineosbuilds",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.MachineOSBuild { return &v1.MachineOSBuild{} },
- func() *v1.MachineOSBuildList { return &v1.MachineOSBuildList{} }),
+ func() *machineconfigurationv1.MachineOSBuild { return &machineconfigurationv1.MachineOSBuild{} },
+ func() *machineconfigurationv1.MachineOSBuildList { return &machineconfigurationv1.MachineOSBuildList{} },
+ ),
}
}
diff --git a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/machineosconfig.go b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/machineosconfig.go
index 0bc3bf464..d8f4666a1 100644
--- a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/machineosconfig.go
+++ b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1/machineosconfig.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/machineconfiguration/v1"
- machineconfigurationv1 "github.com/openshift/client-go/machineconfiguration/applyconfigurations/machineconfiguration/v1"
+ machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
+ applyconfigurationsmachineconfigurationv1 "github.com/openshift/client-go/machineconfiguration/applyconfigurations/machineconfiguration/v1"
scheme "github.com/openshift/client-go/machineconfiguration/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,39 @@ type MachineOSConfigsGetter interface {
// MachineOSConfigInterface has methods to work with MachineOSConfig resources.
type MachineOSConfigInterface interface {
- Create(ctx context.Context, machineOSConfig *v1.MachineOSConfig, opts metav1.CreateOptions) (*v1.MachineOSConfig, error)
- Update(ctx context.Context, machineOSConfig *v1.MachineOSConfig, opts metav1.UpdateOptions) (*v1.MachineOSConfig, error)
+ Create(ctx context.Context, machineOSConfig *machineconfigurationv1.MachineOSConfig, opts metav1.CreateOptions) (*machineconfigurationv1.MachineOSConfig, error)
+ Update(ctx context.Context, machineOSConfig *machineconfigurationv1.MachineOSConfig, opts metav1.UpdateOptions) (*machineconfigurationv1.MachineOSConfig, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, machineOSConfig *v1.MachineOSConfig, opts metav1.UpdateOptions) (*v1.MachineOSConfig, error)
+ UpdateStatus(ctx context.Context, machineOSConfig *machineconfigurationv1.MachineOSConfig, opts metav1.UpdateOptions) (*machineconfigurationv1.MachineOSConfig, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.MachineOSConfig, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.MachineOSConfigList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*machineconfigurationv1.MachineOSConfig, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*machineconfigurationv1.MachineOSConfigList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.MachineOSConfig, err error)
- Apply(ctx context.Context, machineOSConfig *machineconfigurationv1.MachineOSConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.MachineOSConfig, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *machineconfigurationv1.MachineOSConfig, err error)
+ Apply(ctx context.Context, machineOSConfig *applyconfigurationsmachineconfigurationv1.MachineOSConfigApplyConfiguration, opts metav1.ApplyOptions) (result *machineconfigurationv1.MachineOSConfig, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, machineOSConfig *machineconfigurationv1.MachineOSConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.MachineOSConfig, err error)
+ ApplyStatus(ctx context.Context, machineOSConfig *applyconfigurationsmachineconfigurationv1.MachineOSConfigApplyConfiguration, opts metav1.ApplyOptions) (result *machineconfigurationv1.MachineOSConfig, err error)
MachineOSConfigExpansion
}
// machineOSConfigs implements MachineOSConfigInterface
type machineOSConfigs struct {
- *gentype.ClientWithListAndApply[*v1.MachineOSConfig, *v1.MachineOSConfigList, *machineconfigurationv1.MachineOSConfigApplyConfiguration]
+ *gentype.ClientWithListAndApply[*machineconfigurationv1.MachineOSConfig, *machineconfigurationv1.MachineOSConfigList, *applyconfigurationsmachineconfigurationv1.MachineOSConfigApplyConfiguration]
}
// newMachineOSConfigs returns a MachineOSConfigs
func newMachineOSConfigs(c *MachineconfigurationV1Client) *machineOSConfigs {
return &machineOSConfigs{
- gentype.NewClientWithListAndApply[*v1.MachineOSConfig, *v1.MachineOSConfigList, *machineconfigurationv1.MachineOSConfigApplyConfiguration](
+ gentype.NewClientWithListAndApply[*machineconfigurationv1.MachineOSConfig, *machineconfigurationv1.MachineOSConfigList, *applyconfigurationsmachineconfigurationv1.MachineOSConfigApplyConfiguration](
"machineosconfigs",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.MachineOSConfig { return &v1.MachineOSConfig{} },
- func() *v1.MachineOSConfigList { return &v1.MachineOSConfigList{} }),
+ func() *machineconfigurationv1.MachineOSConfig { return &machineconfigurationv1.MachineOSConfig{} },
+ func() *machineconfigurationv1.MachineOSConfigList {
+ return &machineconfigurationv1.MachineOSConfigList{}
+ },
+ ),
}
}
diff --git a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/fake/fake_machineconfignode.go b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/fake/fake_machineconfignode.go
index c840e2c85..84b5e766a 100644
--- a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/fake/fake_machineconfignode.go
+++ b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/fake/fake_machineconfignode.go
@@ -3,168 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1alpha1 "github.com/openshift/api/machineconfiguration/v1alpha1"
machineconfigurationv1alpha1 "github.com/openshift/client-go/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedmachineconfigurationv1alpha1 "github.com/openshift/client-go/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeMachineConfigNodes implements MachineConfigNodeInterface
-type FakeMachineConfigNodes struct {
+// fakeMachineConfigNodes implements MachineConfigNodeInterface
+type fakeMachineConfigNodes struct {
+ *gentype.FakeClientWithListAndApply[*v1alpha1.MachineConfigNode, *v1alpha1.MachineConfigNodeList, *machineconfigurationv1alpha1.MachineConfigNodeApplyConfiguration]
Fake *FakeMachineconfigurationV1alpha1
}
-var machineconfignodesResource = v1alpha1.SchemeGroupVersion.WithResource("machineconfignodes")
-
-var machineconfignodesKind = v1alpha1.SchemeGroupVersion.WithKind("MachineConfigNode")
-
-// Get takes name of the machineConfigNode, and returns the corresponding machineConfigNode object, and an error if there is any.
-func (c *FakeMachineConfigNodes) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MachineConfigNode, err error) {
- emptyResult := &v1alpha1.MachineConfigNode{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(machineconfignodesResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.MachineConfigNode), err
-}
-
-// List takes label and field selectors, and returns the list of MachineConfigNodes that match those selectors.
-func (c *FakeMachineConfigNodes) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MachineConfigNodeList, err error) {
- emptyResult := &v1alpha1.MachineConfigNodeList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(machineconfignodesResource, machineconfignodesKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1alpha1.MachineConfigNodeList{ListMeta: obj.(*v1alpha1.MachineConfigNodeList).ListMeta}
- for _, item := range obj.(*v1alpha1.MachineConfigNodeList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested machineConfigNodes.
-func (c *FakeMachineConfigNodes) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(machineconfignodesResource, opts))
-}
-
-// Create takes the representation of a machineConfigNode and creates it. Returns the server's representation of the machineConfigNode, and an error, if there is any.
-func (c *FakeMachineConfigNodes) Create(ctx context.Context, machineConfigNode *v1alpha1.MachineConfigNode, opts v1.CreateOptions) (result *v1alpha1.MachineConfigNode, err error) {
- emptyResult := &v1alpha1.MachineConfigNode{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(machineconfignodesResource, machineConfigNode, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.MachineConfigNode), err
-}
-
-// Update takes the representation of a machineConfigNode and updates it. Returns the server's representation of the machineConfigNode, and an error, if there is any.
-func (c *FakeMachineConfigNodes) Update(ctx context.Context, machineConfigNode *v1alpha1.MachineConfigNode, opts v1.UpdateOptions) (result *v1alpha1.MachineConfigNode, err error) {
- emptyResult := &v1alpha1.MachineConfigNode{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(machineconfignodesResource, machineConfigNode, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.MachineConfigNode), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeMachineConfigNodes) UpdateStatus(ctx context.Context, machineConfigNode *v1alpha1.MachineConfigNode, opts v1.UpdateOptions) (result *v1alpha1.MachineConfigNode, err error) {
- emptyResult := &v1alpha1.MachineConfigNode{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(machineconfignodesResource, "status", machineConfigNode, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.MachineConfigNode), err
-}
-
-// Delete takes name of the machineConfigNode and deletes it. Returns an error if one occurs.
-func (c *FakeMachineConfigNodes) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(machineconfignodesResource, name, opts), &v1alpha1.MachineConfigNode{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeMachineConfigNodes) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(machineconfignodesResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1alpha1.MachineConfigNodeList{})
- return err
-}
-
-// Patch applies the patch and returns the patched machineConfigNode.
-func (c *FakeMachineConfigNodes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MachineConfigNode, err error) {
- emptyResult := &v1alpha1.MachineConfigNode{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(machineconfignodesResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.MachineConfigNode), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied machineConfigNode.
-func (c *FakeMachineConfigNodes) Apply(ctx context.Context, machineConfigNode *machineconfigurationv1alpha1.MachineConfigNodeApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.MachineConfigNode, err error) {
- if machineConfigNode == nil {
- return nil, fmt.Errorf("machineConfigNode provided to Apply must not be nil")
- }
- data, err := json.Marshal(machineConfigNode)
- if err != nil {
- return nil, err
- }
- name := machineConfigNode.Name
- if name == nil {
- return nil, fmt.Errorf("machineConfigNode.Name must be provided to Apply")
- }
- emptyResult := &v1alpha1.MachineConfigNode{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(machineconfignodesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.MachineConfigNode), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeMachineConfigNodes) ApplyStatus(ctx context.Context, machineConfigNode *machineconfigurationv1alpha1.MachineConfigNodeApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.MachineConfigNode, err error) {
- if machineConfigNode == nil {
- return nil, fmt.Errorf("machineConfigNode provided to Apply must not be nil")
- }
- data, err := json.Marshal(machineConfigNode)
- if err != nil {
- return nil, err
- }
- name := machineConfigNode.Name
- if name == nil {
- return nil, fmt.Errorf("machineConfigNode.Name must be provided to Apply")
- }
- emptyResult := &v1alpha1.MachineConfigNode{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(machineconfignodesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeMachineConfigNodes(fake *FakeMachineconfigurationV1alpha1) typedmachineconfigurationv1alpha1.MachineConfigNodeInterface {
+ return &fakeMachineConfigNodes{
+ gentype.NewFakeClientWithListAndApply[*v1alpha1.MachineConfigNode, *v1alpha1.MachineConfigNodeList, *machineconfigurationv1alpha1.MachineConfigNodeApplyConfiguration](
+ fake.Fake,
+ "",
+ v1alpha1.SchemeGroupVersion.WithResource("machineconfignodes"),
+ v1alpha1.SchemeGroupVersion.WithKind("MachineConfigNode"),
+ func() *v1alpha1.MachineConfigNode { return &v1alpha1.MachineConfigNode{} },
+ func() *v1alpha1.MachineConfigNodeList { return &v1alpha1.MachineConfigNodeList{} },
+ func(dst, src *v1alpha1.MachineConfigNodeList) { dst.ListMeta = src.ListMeta },
+ func(list *v1alpha1.MachineConfigNodeList) []*v1alpha1.MachineConfigNode {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1alpha1.MachineConfigNodeList, items []*v1alpha1.MachineConfigNode) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1alpha1.MachineConfigNode), err
}
diff --git a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/fake/fake_machineconfiguration_client.go b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/fake/fake_machineconfiguration_client.go
index 21255968c..07b75e7e2 100644
--- a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/fake/fake_machineconfiguration_client.go
+++ b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/fake/fake_machineconfiguration_client.go
@@ -13,19 +13,19 @@ type FakeMachineconfigurationV1alpha1 struct {
}
func (c *FakeMachineconfigurationV1alpha1) MachineConfigNodes() v1alpha1.MachineConfigNodeInterface {
- return &FakeMachineConfigNodes{c}
+ return newFakeMachineConfigNodes(c)
}
func (c *FakeMachineconfigurationV1alpha1) MachineOSBuilds() v1alpha1.MachineOSBuildInterface {
- return &FakeMachineOSBuilds{c}
+ return newFakeMachineOSBuilds(c)
}
func (c *FakeMachineconfigurationV1alpha1) MachineOSConfigs() v1alpha1.MachineOSConfigInterface {
- return &FakeMachineOSConfigs{c}
+ return newFakeMachineOSConfigs(c)
}
func (c *FakeMachineconfigurationV1alpha1) PinnedImageSets() v1alpha1.PinnedImageSetInterface {
- return &FakePinnedImageSets{c}
+ return newFakePinnedImageSets(c)
}
// RESTClient returns a RESTClient that is used to communicate
diff --git a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/fake/fake_machineosbuild.go b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/fake/fake_machineosbuild.go
index b2746249a..ea833d583 100644
--- a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/fake/fake_machineosbuild.go
+++ b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/fake/fake_machineosbuild.go
@@ -3,168 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1alpha1 "github.com/openshift/api/machineconfiguration/v1alpha1"
machineconfigurationv1alpha1 "github.com/openshift/client-go/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedmachineconfigurationv1alpha1 "github.com/openshift/client-go/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeMachineOSBuilds implements MachineOSBuildInterface
-type FakeMachineOSBuilds struct {
+// fakeMachineOSBuilds implements MachineOSBuildInterface
+type fakeMachineOSBuilds struct {
+ *gentype.FakeClientWithListAndApply[*v1alpha1.MachineOSBuild, *v1alpha1.MachineOSBuildList, *machineconfigurationv1alpha1.MachineOSBuildApplyConfiguration]
Fake *FakeMachineconfigurationV1alpha1
}
-var machineosbuildsResource = v1alpha1.SchemeGroupVersion.WithResource("machineosbuilds")
-
-var machineosbuildsKind = v1alpha1.SchemeGroupVersion.WithKind("MachineOSBuild")
-
-// Get takes name of the machineOSBuild, and returns the corresponding machineOSBuild object, and an error if there is any.
-func (c *FakeMachineOSBuilds) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MachineOSBuild, err error) {
- emptyResult := &v1alpha1.MachineOSBuild{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(machineosbuildsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.MachineOSBuild), err
-}
-
-// List takes label and field selectors, and returns the list of MachineOSBuilds that match those selectors.
-func (c *FakeMachineOSBuilds) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MachineOSBuildList, err error) {
- emptyResult := &v1alpha1.MachineOSBuildList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(machineosbuildsResource, machineosbuildsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1alpha1.MachineOSBuildList{ListMeta: obj.(*v1alpha1.MachineOSBuildList).ListMeta}
- for _, item := range obj.(*v1alpha1.MachineOSBuildList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested machineOSBuilds.
-func (c *FakeMachineOSBuilds) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(machineosbuildsResource, opts))
-}
-
-// Create takes the representation of a machineOSBuild and creates it. Returns the server's representation of the machineOSBuild, and an error, if there is any.
-func (c *FakeMachineOSBuilds) Create(ctx context.Context, machineOSBuild *v1alpha1.MachineOSBuild, opts v1.CreateOptions) (result *v1alpha1.MachineOSBuild, err error) {
- emptyResult := &v1alpha1.MachineOSBuild{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(machineosbuildsResource, machineOSBuild, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.MachineOSBuild), err
-}
-
-// Update takes the representation of a machineOSBuild and updates it. Returns the server's representation of the machineOSBuild, and an error, if there is any.
-func (c *FakeMachineOSBuilds) Update(ctx context.Context, machineOSBuild *v1alpha1.MachineOSBuild, opts v1.UpdateOptions) (result *v1alpha1.MachineOSBuild, err error) {
- emptyResult := &v1alpha1.MachineOSBuild{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(machineosbuildsResource, machineOSBuild, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.MachineOSBuild), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeMachineOSBuilds) UpdateStatus(ctx context.Context, machineOSBuild *v1alpha1.MachineOSBuild, opts v1.UpdateOptions) (result *v1alpha1.MachineOSBuild, err error) {
- emptyResult := &v1alpha1.MachineOSBuild{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(machineosbuildsResource, "status", machineOSBuild, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.MachineOSBuild), err
-}
-
-// Delete takes name of the machineOSBuild and deletes it. Returns an error if one occurs.
-func (c *FakeMachineOSBuilds) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(machineosbuildsResource, name, opts), &v1alpha1.MachineOSBuild{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeMachineOSBuilds) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(machineosbuildsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1alpha1.MachineOSBuildList{})
- return err
-}
-
-// Patch applies the patch and returns the patched machineOSBuild.
-func (c *FakeMachineOSBuilds) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MachineOSBuild, err error) {
- emptyResult := &v1alpha1.MachineOSBuild{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(machineosbuildsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.MachineOSBuild), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied machineOSBuild.
-func (c *FakeMachineOSBuilds) Apply(ctx context.Context, machineOSBuild *machineconfigurationv1alpha1.MachineOSBuildApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.MachineOSBuild, err error) {
- if machineOSBuild == nil {
- return nil, fmt.Errorf("machineOSBuild provided to Apply must not be nil")
- }
- data, err := json.Marshal(machineOSBuild)
- if err != nil {
- return nil, err
- }
- name := machineOSBuild.Name
- if name == nil {
- return nil, fmt.Errorf("machineOSBuild.Name must be provided to Apply")
- }
- emptyResult := &v1alpha1.MachineOSBuild{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(machineosbuildsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.MachineOSBuild), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeMachineOSBuilds) ApplyStatus(ctx context.Context, machineOSBuild *machineconfigurationv1alpha1.MachineOSBuildApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.MachineOSBuild, err error) {
- if machineOSBuild == nil {
- return nil, fmt.Errorf("machineOSBuild provided to Apply must not be nil")
- }
- data, err := json.Marshal(machineOSBuild)
- if err != nil {
- return nil, err
- }
- name := machineOSBuild.Name
- if name == nil {
- return nil, fmt.Errorf("machineOSBuild.Name must be provided to Apply")
- }
- emptyResult := &v1alpha1.MachineOSBuild{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(machineosbuildsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeMachineOSBuilds(fake *FakeMachineconfigurationV1alpha1) typedmachineconfigurationv1alpha1.MachineOSBuildInterface {
+ return &fakeMachineOSBuilds{
+ gentype.NewFakeClientWithListAndApply[*v1alpha1.MachineOSBuild, *v1alpha1.MachineOSBuildList, *machineconfigurationv1alpha1.MachineOSBuildApplyConfiguration](
+ fake.Fake,
+ "",
+ v1alpha1.SchemeGroupVersion.WithResource("machineosbuilds"),
+ v1alpha1.SchemeGroupVersion.WithKind("MachineOSBuild"),
+ func() *v1alpha1.MachineOSBuild { return &v1alpha1.MachineOSBuild{} },
+ func() *v1alpha1.MachineOSBuildList { return &v1alpha1.MachineOSBuildList{} },
+ func(dst, src *v1alpha1.MachineOSBuildList) { dst.ListMeta = src.ListMeta },
+ func(list *v1alpha1.MachineOSBuildList) []*v1alpha1.MachineOSBuild {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1alpha1.MachineOSBuildList, items []*v1alpha1.MachineOSBuild) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1alpha1.MachineOSBuild), err
}
diff --git a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/fake/fake_machineosconfig.go b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/fake/fake_machineosconfig.go
index 22f7e8e68..3b078c813 100644
--- a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/fake/fake_machineosconfig.go
+++ b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/fake/fake_machineosconfig.go
@@ -3,168 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1alpha1 "github.com/openshift/api/machineconfiguration/v1alpha1"
machineconfigurationv1alpha1 "github.com/openshift/client-go/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedmachineconfigurationv1alpha1 "github.com/openshift/client-go/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeMachineOSConfigs implements MachineOSConfigInterface
-type FakeMachineOSConfigs struct {
+// fakeMachineOSConfigs implements MachineOSConfigInterface
+type fakeMachineOSConfigs struct {
+ *gentype.FakeClientWithListAndApply[*v1alpha1.MachineOSConfig, *v1alpha1.MachineOSConfigList, *machineconfigurationv1alpha1.MachineOSConfigApplyConfiguration]
Fake *FakeMachineconfigurationV1alpha1
}
-var machineosconfigsResource = v1alpha1.SchemeGroupVersion.WithResource("machineosconfigs")
-
-var machineosconfigsKind = v1alpha1.SchemeGroupVersion.WithKind("MachineOSConfig")
-
-// Get takes name of the machineOSConfig, and returns the corresponding machineOSConfig object, and an error if there is any.
-func (c *FakeMachineOSConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MachineOSConfig, err error) {
- emptyResult := &v1alpha1.MachineOSConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(machineosconfigsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.MachineOSConfig), err
-}
-
-// List takes label and field selectors, and returns the list of MachineOSConfigs that match those selectors.
-func (c *FakeMachineOSConfigs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MachineOSConfigList, err error) {
- emptyResult := &v1alpha1.MachineOSConfigList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(machineosconfigsResource, machineosconfigsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1alpha1.MachineOSConfigList{ListMeta: obj.(*v1alpha1.MachineOSConfigList).ListMeta}
- for _, item := range obj.(*v1alpha1.MachineOSConfigList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested machineOSConfigs.
-func (c *FakeMachineOSConfigs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(machineosconfigsResource, opts))
-}
-
-// Create takes the representation of a machineOSConfig and creates it. Returns the server's representation of the machineOSConfig, and an error, if there is any.
-func (c *FakeMachineOSConfigs) Create(ctx context.Context, machineOSConfig *v1alpha1.MachineOSConfig, opts v1.CreateOptions) (result *v1alpha1.MachineOSConfig, err error) {
- emptyResult := &v1alpha1.MachineOSConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(machineosconfigsResource, machineOSConfig, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.MachineOSConfig), err
-}
-
-// Update takes the representation of a machineOSConfig and updates it. Returns the server's representation of the machineOSConfig, and an error, if there is any.
-func (c *FakeMachineOSConfigs) Update(ctx context.Context, machineOSConfig *v1alpha1.MachineOSConfig, opts v1.UpdateOptions) (result *v1alpha1.MachineOSConfig, err error) {
- emptyResult := &v1alpha1.MachineOSConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(machineosconfigsResource, machineOSConfig, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.MachineOSConfig), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeMachineOSConfigs) UpdateStatus(ctx context.Context, machineOSConfig *v1alpha1.MachineOSConfig, opts v1.UpdateOptions) (result *v1alpha1.MachineOSConfig, err error) {
- emptyResult := &v1alpha1.MachineOSConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(machineosconfigsResource, "status", machineOSConfig, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.MachineOSConfig), err
-}
-
-// Delete takes name of the machineOSConfig and deletes it. Returns an error if one occurs.
-func (c *FakeMachineOSConfigs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(machineosconfigsResource, name, opts), &v1alpha1.MachineOSConfig{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeMachineOSConfigs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(machineosconfigsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1alpha1.MachineOSConfigList{})
- return err
-}
-
-// Patch applies the patch and returns the patched machineOSConfig.
-func (c *FakeMachineOSConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MachineOSConfig, err error) {
- emptyResult := &v1alpha1.MachineOSConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(machineosconfigsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.MachineOSConfig), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied machineOSConfig.
-func (c *FakeMachineOSConfigs) Apply(ctx context.Context, machineOSConfig *machineconfigurationv1alpha1.MachineOSConfigApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.MachineOSConfig, err error) {
- if machineOSConfig == nil {
- return nil, fmt.Errorf("machineOSConfig provided to Apply must not be nil")
- }
- data, err := json.Marshal(machineOSConfig)
- if err != nil {
- return nil, err
- }
- name := machineOSConfig.Name
- if name == nil {
- return nil, fmt.Errorf("machineOSConfig.Name must be provided to Apply")
- }
- emptyResult := &v1alpha1.MachineOSConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(machineosconfigsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.MachineOSConfig), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeMachineOSConfigs) ApplyStatus(ctx context.Context, machineOSConfig *machineconfigurationv1alpha1.MachineOSConfigApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.MachineOSConfig, err error) {
- if machineOSConfig == nil {
- return nil, fmt.Errorf("machineOSConfig provided to Apply must not be nil")
- }
- data, err := json.Marshal(machineOSConfig)
- if err != nil {
- return nil, err
- }
- name := machineOSConfig.Name
- if name == nil {
- return nil, fmt.Errorf("machineOSConfig.Name must be provided to Apply")
- }
- emptyResult := &v1alpha1.MachineOSConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(machineosconfigsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeMachineOSConfigs(fake *FakeMachineconfigurationV1alpha1) typedmachineconfigurationv1alpha1.MachineOSConfigInterface {
+ return &fakeMachineOSConfigs{
+ gentype.NewFakeClientWithListAndApply[*v1alpha1.MachineOSConfig, *v1alpha1.MachineOSConfigList, *machineconfigurationv1alpha1.MachineOSConfigApplyConfiguration](
+ fake.Fake,
+ "",
+ v1alpha1.SchemeGroupVersion.WithResource("machineosconfigs"),
+ v1alpha1.SchemeGroupVersion.WithKind("MachineOSConfig"),
+ func() *v1alpha1.MachineOSConfig { return &v1alpha1.MachineOSConfig{} },
+ func() *v1alpha1.MachineOSConfigList { return &v1alpha1.MachineOSConfigList{} },
+ func(dst, src *v1alpha1.MachineOSConfigList) { dst.ListMeta = src.ListMeta },
+ func(list *v1alpha1.MachineOSConfigList) []*v1alpha1.MachineOSConfig {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1alpha1.MachineOSConfigList, items []*v1alpha1.MachineOSConfig) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1alpha1.MachineOSConfig), err
}
diff --git a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/fake/fake_pinnedimageset.go b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/fake/fake_pinnedimageset.go
index 4a6c2335a..1d29be779 100644
--- a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/fake/fake_pinnedimageset.go
+++ b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/fake/fake_pinnedimageset.go
@@ -3,168 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1alpha1 "github.com/openshift/api/machineconfiguration/v1alpha1"
machineconfigurationv1alpha1 "github.com/openshift/client-go/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedmachineconfigurationv1alpha1 "github.com/openshift/client-go/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakePinnedImageSets implements PinnedImageSetInterface
-type FakePinnedImageSets struct {
+// fakePinnedImageSets implements PinnedImageSetInterface
+type fakePinnedImageSets struct {
+ *gentype.FakeClientWithListAndApply[*v1alpha1.PinnedImageSet, *v1alpha1.PinnedImageSetList, *machineconfigurationv1alpha1.PinnedImageSetApplyConfiguration]
Fake *FakeMachineconfigurationV1alpha1
}
-var pinnedimagesetsResource = v1alpha1.SchemeGroupVersion.WithResource("pinnedimagesets")
-
-var pinnedimagesetsKind = v1alpha1.SchemeGroupVersion.WithKind("PinnedImageSet")
-
-// Get takes name of the pinnedImageSet, and returns the corresponding pinnedImageSet object, and an error if there is any.
-func (c *FakePinnedImageSets) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PinnedImageSet, err error) {
- emptyResult := &v1alpha1.PinnedImageSet{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(pinnedimagesetsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.PinnedImageSet), err
-}
-
-// List takes label and field selectors, and returns the list of PinnedImageSets that match those selectors.
-func (c *FakePinnedImageSets) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PinnedImageSetList, err error) {
- emptyResult := &v1alpha1.PinnedImageSetList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(pinnedimagesetsResource, pinnedimagesetsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1alpha1.PinnedImageSetList{ListMeta: obj.(*v1alpha1.PinnedImageSetList).ListMeta}
- for _, item := range obj.(*v1alpha1.PinnedImageSetList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested pinnedImageSets.
-func (c *FakePinnedImageSets) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(pinnedimagesetsResource, opts))
-}
-
-// Create takes the representation of a pinnedImageSet and creates it. Returns the server's representation of the pinnedImageSet, and an error, if there is any.
-func (c *FakePinnedImageSets) Create(ctx context.Context, pinnedImageSet *v1alpha1.PinnedImageSet, opts v1.CreateOptions) (result *v1alpha1.PinnedImageSet, err error) {
- emptyResult := &v1alpha1.PinnedImageSet{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(pinnedimagesetsResource, pinnedImageSet, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.PinnedImageSet), err
-}
-
-// Update takes the representation of a pinnedImageSet and updates it. Returns the server's representation of the pinnedImageSet, and an error, if there is any.
-func (c *FakePinnedImageSets) Update(ctx context.Context, pinnedImageSet *v1alpha1.PinnedImageSet, opts v1.UpdateOptions) (result *v1alpha1.PinnedImageSet, err error) {
- emptyResult := &v1alpha1.PinnedImageSet{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(pinnedimagesetsResource, pinnedImageSet, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.PinnedImageSet), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakePinnedImageSets) UpdateStatus(ctx context.Context, pinnedImageSet *v1alpha1.PinnedImageSet, opts v1.UpdateOptions) (result *v1alpha1.PinnedImageSet, err error) {
- emptyResult := &v1alpha1.PinnedImageSet{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(pinnedimagesetsResource, "status", pinnedImageSet, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.PinnedImageSet), err
-}
-
-// Delete takes name of the pinnedImageSet and deletes it. Returns an error if one occurs.
-func (c *FakePinnedImageSets) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(pinnedimagesetsResource, name, opts), &v1alpha1.PinnedImageSet{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakePinnedImageSets) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(pinnedimagesetsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1alpha1.PinnedImageSetList{})
- return err
-}
-
-// Patch applies the patch and returns the patched pinnedImageSet.
-func (c *FakePinnedImageSets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PinnedImageSet, err error) {
- emptyResult := &v1alpha1.PinnedImageSet{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(pinnedimagesetsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.PinnedImageSet), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied pinnedImageSet.
-func (c *FakePinnedImageSets) Apply(ctx context.Context, pinnedImageSet *machineconfigurationv1alpha1.PinnedImageSetApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.PinnedImageSet, err error) {
- if pinnedImageSet == nil {
- return nil, fmt.Errorf("pinnedImageSet provided to Apply must not be nil")
- }
- data, err := json.Marshal(pinnedImageSet)
- if err != nil {
- return nil, err
- }
- name := pinnedImageSet.Name
- if name == nil {
- return nil, fmt.Errorf("pinnedImageSet.Name must be provided to Apply")
- }
- emptyResult := &v1alpha1.PinnedImageSet{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(pinnedimagesetsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.PinnedImageSet), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakePinnedImageSets) ApplyStatus(ctx context.Context, pinnedImageSet *machineconfigurationv1alpha1.PinnedImageSetApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.PinnedImageSet, err error) {
- if pinnedImageSet == nil {
- return nil, fmt.Errorf("pinnedImageSet provided to Apply must not be nil")
- }
- data, err := json.Marshal(pinnedImageSet)
- if err != nil {
- return nil, err
- }
- name := pinnedImageSet.Name
- if name == nil {
- return nil, fmt.Errorf("pinnedImageSet.Name must be provided to Apply")
- }
- emptyResult := &v1alpha1.PinnedImageSet{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(pinnedimagesetsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakePinnedImageSets(fake *FakeMachineconfigurationV1alpha1) typedmachineconfigurationv1alpha1.PinnedImageSetInterface {
+ return &fakePinnedImageSets{
+ gentype.NewFakeClientWithListAndApply[*v1alpha1.PinnedImageSet, *v1alpha1.PinnedImageSetList, *machineconfigurationv1alpha1.PinnedImageSetApplyConfiguration](
+ fake.Fake,
+ "",
+ v1alpha1.SchemeGroupVersion.WithResource("pinnedimagesets"),
+ v1alpha1.SchemeGroupVersion.WithKind("PinnedImageSet"),
+ func() *v1alpha1.PinnedImageSet { return &v1alpha1.PinnedImageSet{} },
+ func() *v1alpha1.PinnedImageSetList { return &v1alpha1.PinnedImageSetList{} },
+ func(dst, src *v1alpha1.PinnedImageSetList) { dst.ListMeta = src.ListMeta },
+ func(list *v1alpha1.PinnedImageSetList) []*v1alpha1.PinnedImageSet {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1alpha1.PinnedImageSetList, items []*v1alpha1.PinnedImageSet) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1alpha1.PinnedImageSet), err
}
diff --git a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/machineconfignode.go b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/machineconfignode.go
index 8705869cf..d84721cb0 100644
--- a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/machineconfignode.go
+++ b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/machineconfignode.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- "context"
+ context "context"
- v1alpha1 "github.com/openshift/api/machineconfiguration/v1alpha1"
- machineconfigurationv1alpha1 "github.com/openshift/client-go/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1"
+ machineconfigurationv1alpha1 "github.com/openshift/api/machineconfiguration/v1alpha1"
+ applyconfigurationsmachineconfigurationv1alpha1 "github.com/openshift/client-go/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1"
scheme "github.com/openshift/client-go/machineconfiguration/clientset/versioned/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,41 @@ type MachineConfigNodesGetter interface {
// MachineConfigNodeInterface has methods to work with MachineConfigNode resources.
type MachineConfigNodeInterface interface {
- Create(ctx context.Context, machineConfigNode *v1alpha1.MachineConfigNode, opts v1.CreateOptions) (*v1alpha1.MachineConfigNode, error)
- Update(ctx context.Context, machineConfigNode *v1alpha1.MachineConfigNode, opts v1.UpdateOptions) (*v1alpha1.MachineConfigNode, error)
+ Create(ctx context.Context, machineConfigNode *machineconfigurationv1alpha1.MachineConfigNode, opts v1.CreateOptions) (*machineconfigurationv1alpha1.MachineConfigNode, error)
+ Update(ctx context.Context, machineConfigNode *machineconfigurationv1alpha1.MachineConfigNode, opts v1.UpdateOptions) (*machineconfigurationv1alpha1.MachineConfigNode, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, machineConfigNode *v1alpha1.MachineConfigNode, opts v1.UpdateOptions) (*v1alpha1.MachineConfigNode, error)
+ UpdateStatus(ctx context.Context, machineConfigNode *machineconfigurationv1alpha1.MachineConfigNode, opts v1.UpdateOptions) (*machineconfigurationv1alpha1.MachineConfigNode, error)
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.MachineConfigNode, error)
- List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.MachineConfigNodeList, error)
+ Get(ctx context.Context, name string, opts v1.GetOptions) (*machineconfigurationv1alpha1.MachineConfigNode, error)
+ List(ctx context.Context, opts v1.ListOptions) (*machineconfigurationv1alpha1.MachineConfigNodeList, error)
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MachineConfigNode, err error)
- Apply(ctx context.Context, machineConfigNode *machineconfigurationv1alpha1.MachineConfigNodeApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.MachineConfigNode, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *machineconfigurationv1alpha1.MachineConfigNode, err error)
+ Apply(ctx context.Context, machineConfigNode *applyconfigurationsmachineconfigurationv1alpha1.MachineConfigNodeApplyConfiguration, opts v1.ApplyOptions) (result *machineconfigurationv1alpha1.MachineConfigNode, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, machineConfigNode *machineconfigurationv1alpha1.MachineConfigNodeApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.MachineConfigNode, err error)
+ ApplyStatus(ctx context.Context, machineConfigNode *applyconfigurationsmachineconfigurationv1alpha1.MachineConfigNodeApplyConfiguration, opts v1.ApplyOptions) (result *machineconfigurationv1alpha1.MachineConfigNode, err error)
MachineConfigNodeExpansion
}
// machineConfigNodes implements MachineConfigNodeInterface
type machineConfigNodes struct {
- *gentype.ClientWithListAndApply[*v1alpha1.MachineConfigNode, *v1alpha1.MachineConfigNodeList, *machineconfigurationv1alpha1.MachineConfigNodeApplyConfiguration]
+ *gentype.ClientWithListAndApply[*machineconfigurationv1alpha1.MachineConfigNode, *machineconfigurationv1alpha1.MachineConfigNodeList, *applyconfigurationsmachineconfigurationv1alpha1.MachineConfigNodeApplyConfiguration]
}
// newMachineConfigNodes returns a MachineConfigNodes
func newMachineConfigNodes(c *MachineconfigurationV1alpha1Client) *machineConfigNodes {
return &machineConfigNodes{
- gentype.NewClientWithListAndApply[*v1alpha1.MachineConfigNode, *v1alpha1.MachineConfigNodeList, *machineconfigurationv1alpha1.MachineConfigNodeApplyConfiguration](
+ gentype.NewClientWithListAndApply[*machineconfigurationv1alpha1.MachineConfigNode, *machineconfigurationv1alpha1.MachineConfigNodeList, *applyconfigurationsmachineconfigurationv1alpha1.MachineConfigNodeApplyConfiguration](
"machineconfignodes",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1alpha1.MachineConfigNode { return &v1alpha1.MachineConfigNode{} },
- func() *v1alpha1.MachineConfigNodeList { return &v1alpha1.MachineConfigNodeList{} }),
+ func() *machineconfigurationv1alpha1.MachineConfigNode {
+ return &machineconfigurationv1alpha1.MachineConfigNode{}
+ },
+ func() *machineconfigurationv1alpha1.MachineConfigNodeList {
+ return &machineconfigurationv1alpha1.MachineConfigNodeList{}
+ },
+ ),
}
}
diff --git a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/machineconfiguration_client.go b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/machineconfiguration_client.go
index 2266053dc..3d6be9ecd 100644
--- a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/machineconfiguration_client.go
+++ b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/machineconfiguration_client.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- "net/http"
+ http "net/http"
- v1alpha1 "github.com/openshift/api/machineconfiguration/v1alpha1"
- "github.com/openshift/client-go/machineconfiguration/clientset/versioned/scheme"
+ machineconfigurationv1alpha1 "github.com/openshift/api/machineconfiguration/v1alpha1"
+ scheme "github.com/openshift/client-go/machineconfiguration/clientset/versioned/scheme"
rest "k8s.io/client-go/rest"
)
@@ -84,10 +84,10 @@ func New(c rest.Interface) *MachineconfigurationV1alpha1Client {
}
func setConfigDefaults(config *rest.Config) error {
- gv := v1alpha1.SchemeGroupVersion
+ gv := machineconfigurationv1alpha1.SchemeGroupVersion
config.GroupVersion = &gv
config.APIPath = "/apis"
- config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
+ config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion()
if config.UserAgent == "" {
config.UserAgent = rest.DefaultKubernetesUserAgent()
diff --git a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/machineosbuild.go b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/machineosbuild.go
index e50a939f5..6e6c52b2b 100644
--- a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/machineosbuild.go
+++ b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/machineosbuild.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- "context"
+ context "context"
- v1alpha1 "github.com/openshift/api/machineconfiguration/v1alpha1"
- machineconfigurationv1alpha1 "github.com/openshift/client-go/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1"
+ machineconfigurationv1alpha1 "github.com/openshift/api/machineconfiguration/v1alpha1"
+ applyconfigurationsmachineconfigurationv1alpha1 "github.com/openshift/client-go/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1"
scheme "github.com/openshift/client-go/machineconfiguration/clientset/versioned/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,41 @@ type MachineOSBuildsGetter interface {
// MachineOSBuildInterface has methods to work with MachineOSBuild resources.
type MachineOSBuildInterface interface {
- Create(ctx context.Context, machineOSBuild *v1alpha1.MachineOSBuild, opts v1.CreateOptions) (*v1alpha1.MachineOSBuild, error)
- Update(ctx context.Context, machineOSBuild *v1alpha1.MachineOSBuild, opts v1.UpdateOptions) (*v1alpha1.MachineOSBuild, error)
+ Create(ctx context.Context, machineOSBuild *machineconfigurationv1alpha1.MachineOSBuild, opts v1.CreateOptions) (*machineconfigurationv1alpha1.MachineOSBuild, error)
+ Update(ctx context.Context, machineOSBuild *machineconfigurationv1alpha1.MachineOSBuild, opts v1.UpdateOptions) (*machineconfigurationv1alpha1.MachineOSBuild, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, machineOSBuild *v1alpha1.MachineOSBuild, opts v1.UpdateOptions) (*v1alpha1.MachineOSBuild, error)
+ UpdateStatus(ctx context.Context, machineOSBuild *machineconfigurationv1alpha1.MachineOSBuild, opts v1.UpdateOptions) (*machineconfigurationv1alpha1.MachineOSBuild, error)
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.MachineOSBuild, error)
- List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.MachineOSBuildList, error)
+ Get(ctx context.Context, name string, opts v1.GetOptions) (*machineconfigurationv1alpha1.MachineOSBuild, error)
+ List(ctx context.Context, opts v1.ListOptions) (*machineconfigurationv1alpha1.MachineOSBuildList, error)
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MachineOSBuild, err error)
- Apply(ctx context.Context, machineOSBuild *machineconfigurationv1alpha1.MachineOSBuildApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.MachineOSBuild, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *machineconfigurationv1alpha1.MachineOSBuild, err error)
+ Apply(ctx context.Context, machineOSBuild *applyconfigurationsmachineconfigurationv1alpha1.MachineOSBuildApplyConfiguration, opts v1.ApplyOptions) (result *machineconfigurationv1alpha1.MachineOSBuild, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, machineOSBuild *machineconfigurationv1alpha1.MachineOSBuildApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.MachineOSBuild, err error)
+ ApplyStatus(ctx context.Context, machineOSBuild *applyconfigurationsmachineconfigurationv1alpha1.MachineOSBuildApplyConfiguration, opts v1.ApplyOptions) (result *machineconfigurationv1alpha1.MachineOSBuild, err error)
MachineOSBuildExpansion
}
// machineOSBuilds implements MachineOSBuildInterface
type machineOSBuilds struct {
- *gentype.ClientWithListAndApply[*v1alpha1.MachineOSBuild, *v1alpha1.MachineOSBuildList, *machineconfigurationv1alpha1.MachineOSBuildApplyConfiguration]
+ *gentype.ClientWithListAndApply[*machineconfigurationv1alpha1.MachineOSBuild, *machineconfigurationv1alpha1.MachineOSBuildList, *applyconfigurationsmachineconfigurationv1alpha1.MachineOSBuildApplyConfiguration]
}
// newMachineOSBuilds returns a MachineOSBuilds
func newMachineOSBuilds(c *MachineconfigurationV1alpha1Client) *machineOSBuilds {
return &machineOSBuilds{
- gentype.NewClientWithListAndApply[*v1alpha1.MachineOSBuild, *v1alpha1.MachineOSBuildList, *machineconfigurationv1alpha1.MachineOSBuildApplyConfiguration](
+ gentype.NewClientWithListAndApply[*machineconfigurationv1alpha1.MachineOSBuild, *machineconfigurationv1alpha1.MachineOSBuildList, *applyconfigurationsmachineconfigurationv1alpha1.MachineOSBuildApplyConfiguration](
"machineosbuilds",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1alpha1.MachineOSBuild { return &v1alpha1.MachineOSBuild{} },
- func() *v1alpha1.MachineOSBuildList { return &v1alpha1.MachineOSBuildList{} }),
+ func() *machineconfigurationv1alpha1.MachineOSBuild {
+ return &machineconfigurationv1alpha1.MachineOSBuild{}
+ },
+ func() *machineconfigurationv1alpha1.MachineOSBuildList {
+ return &machineconfigurationv1alpha1.MachineOSBuildList{}
+ },
+ ),
}
}
diff --git a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/machineosconfig.go b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/machineosconfig.go
index 9fe30b50e..191c1996c 100644
--- a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/machineosconfig.go
+++ b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/machineosconfig.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- "context"
+ context "context"
- v1alpha1 "github.com/openshift/api/machineconfiguration/v1alpha1"
- machineconfigurationv1alpha1 "github.com/openshift/client-go/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1"
+ machineconfigurationv1alpha1 "github.com/openshift/api/machineconfiguration/v1alpha1"
+ applyconfigurationsmachineconfigurationv1alpha1 "github.com/openshift/client-go/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1"
scheme "github.com/openshift/client-go/machineconfiguration/clientset/versioned/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,41 @@ type MachineOSConfigsGetter interface {
// MachineOSConfigInterface has methods to work with MachineOSConfig resources.
type MachineOSConfigInterface interface {
- Create(ctx context.Context, machineOSConfig *v1alpha1.MachineOSConfig, opts v1.CreateOptions) (*v1alpha1.MachineOSConfig, error)
- Update(ctx context.Context, machineOSConfig *v1alpha1.MachineOSConfig, opts v1.UpdateOptions) (*v1alpha1.MachineOSConfig, error)
+ Create(ctx context.Context, machineOSConfig *machineconfigurationv1alpha1.MachineOSConfig, opts v1.CreateOptions) (*machineconfigurationv1alpha1.MachineOSConfig, error)
+ Update(ctx context.Context, machineOSConfig *machineconfigurationv1alpha1.MachineOSConfig, opts v1.UpdateOptions) (*machineconfigurationv1alpha1.MachineOSConfig, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, machineOSConfig *v1alpha1.MachineOSConfig, opts v1.UpdateOptions) (*v1alpha1.MachineOSConfig, error)
+ UpdateStatus(ctx context.Context, machineOSConfig *machineconfigurationv1alpha1.MachineOSConfig, opts v1.UpdateOptions) (*machineconfigurationv1alpha1.MachineOSConfig, error)
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.MachineOSConfig, error)
- List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.MachineOSConfigList, error)
+ Get(ctx context.Context, name string, opts v1.GetOptions) (*machineconfigurationv1alpha1.MachineOSConfig, error)
+ List(ctx context.Context, opts v1.ListOptions) (*machineconfigurationv1alpha1.MachineOSConfigList, error)
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MachineOSConfig, err error)
- Apply(ctx context.Context, machineOSConfig *machineconfigurationv1alpha1.MachineOSConfigApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.MachineOSConfig, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *machineconfigurationv1alpha1.MachineOSConfig, err error)
+ Apply(ctx context.Context, machineOSConfig *applyconfigurationsmachineconfigurationv1alpha1.MachineOSConfigApplyConfiguration, opts v1.ApplyOptions) (result *machineconfigurationv1alpha1.MachineOSConfig, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, machineOSConfig *machineconfigurationv1alpha1.MachineOSConfigApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.MachineOSConfig, err error)
+ ApplyStatus(ctx context.Context, machineOSConfig *applyconfigurationsmachineconfigurationv1alpha1.MachineOSConfigApplyConfiguration, opts v1.ApplyOptions) (result *machineconfigurationv1alpha1.MachineOSConfig, err error)
MachineOSConfigExpansion
}
// machineOSConfigs implements MachineOSConfigInterface
type machineOSConfigs struct {
- *gentype.ClientWithListAndApply[*v1alpha1.MachineOSConfig, *v1alpha1.MachineOSConfigList, *machineconfigurationv1alpha1.MachineOSConfigApplyConfiguration]
+ *gentype.ClientWithListAndApply[*machineconfigurationv1alpha1.MachineOSConfig, *machineconfigurationv1alpha1.MachineOSConfigList, *applyconfigurationsmachineconfigurationv1alpha1.MachineOSConfigApplyConfiguration]
}
// newMachineOSConfigs returns a MachineOSConfigs
func newMachineOSConfigs(c *MachineconfigurationV1alpha1Client) *machineOSConfigs {
return &machineOSConfigs{
- gentype.NewClientWithListAndApply[*v1alpha1.MachineOSConfig, *v1alpha1.MachineOSConfigList, *machineconfigurationv1alpha1.MachineOSConfigApplyConfiguration](
+ gentype.NewClientWithListAndApply[*machineconfigurationv1alpha1.MachineOSConfig, *machineconfigurationv1alpha1.MachineOSConfigList, *applyconfigurationsmachineconfigurationv1alpha1.MachineOSConfigApplyConfiguration](
"machineosconfigs",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1alpha1.MachineOSConfig { return &v1alpha1.MachineOSConfig{} },
- func() *v1alpha1.MachineOSConfigList { return &v1alpha1.MachineOSConfigList{} }),
+ func() *machineconfigurationv1alpha1.MachineOSConfig {
+ return &machineconfigurationv1alpha1.MachineOSConfig{}
+ },
+ func() *machineconfigurationv1alpha1.MachineOSConfigList {
+ return &machineconfigurationv1alpha1.MachineOSConfigList{}
+ },
+ ),
}
}
diff --git a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/pinnedimageset.go b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/pinnedimageset.go
index c92632900..d6aa0f3a2 100644
--- a/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/pinnedimageset.go
+++ b/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1/pinnedimageset.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- "context"
+ context "context"
- v1alpha1 "github.com/openshift/api/machineconfiguration/v1alpha1"
- machineconfigurationv1alpha1 "github.com/openshift/client-go/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1"
+ machineconfigurationv1alpha1 "github.com/openshift/api/machineconfiguration/v1alpha1"
+ applyconfigurationsmachineconfigurationv1alpha1 "github.com/openshift/client-go/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1"
scheme "github.com/openshift/client-go/machineconfiguration/clientset/versioned/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,41 @@ type PinnedImageSetsGetter interface {
// PinnedImageSetInterface has methods to work with PinnedImageSet resources.
type PinnedImageSetInterface interface {
- Create(ctx context.Context, pinnedImageSet *v1alpha1.PinnedImageSet, opts v1.CreateOptions) (*v1alpha1.PinnedImageSet, error)
- Update(ctx context.Context, pinnedImageSet *v1alpha1.PinnedImageSet, opts v1.UpdateOptions) (*v1alpha1.PinnedImageSet, error)
+ Create(ctx context.Context, pinnedImageSet *machineconfigurationv1alpha1.PinnedImageSet, opts v1.CreateOptions) (*machineconfigurationv1alpha1.PinnedImageSet, error)
+ Update(ctx context.Context, pinnedImageSet *machineconfigurationv1alpha1.PinnedImageSet, opts v1.UpdateOptions) (*machineconfigurationv1alpha1.PinnedImageSet, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, pinnedImageSet *v1alpha1.PinnedImageSet, opts v1.UpdateOptions) (*v1alpha1.PinnedImageSet, error)
+ UpdateStatus(ctx context.Context, pinnedImageSet *machineconfigurationv1alpha1.PinnedImageSet, opts v1.UpdateOptions) (*machineconfigurationv1alpha1.PinnedImageSet, error)
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.PinnedImageSet, error)
- List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.PinnedImageSetList, error)
+ Get(ctx context.Context, name string, opts v1.GetOptions) (*machineconfigurationv1alpha1.PinnedImageSet, error)
+ List(ctx context.Context, opts v1.ListOptions) (*machineconfigurationv1alpha1.PinnedImageSetList, error)
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PinnedImageSet, err error)
- Apply(ctx context.Context, pinnedImageSet *machineconfigurationv1alpha1.PinnedImageSetApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.PinnedImageSet, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *machineconfigurationv1alpha1.PinnedImageSet, err error)
+ Apply(ctx context.Context, pinnedImageSet *applyconfigurationsmachineconfigurationv1alpha1.PinnedImageSetApplyConfiguration, opts v1.ApplyOptions) (result *machineconfigurationv1alpha1.PinnedImageSet, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, pinnedImageSet *machineconfigurationv1alpha1.PinnedImageSetApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.PinnedImageSet, err error)
+ ApplyStatus(ctx context.Context, pinnedImageSet *applyconfigurationsmachineconfigurationv1alpha1.PinnedImageSetApplyConfiguration, opts v1.ApplyOptions) (result *machineconfigurationv1alpha1.PinnedImageSet, err error)
PinnedImageSetExpansion
}
// pinnedImageSets implements PinnedImageSetInterface
type pinnedImageSets struct {
- *gentype.ClientWithListAndApply[*v1alpha1.PinnedImageSet, *v1alpha1.PinnedImageSetList, *machineconfigurationv1alpha1.PinnedImageSetApplyConfiguration]
+ *gentype.ClientWithListAndApply[*machineconfigurationv1alpha1.PinnedImageSet, *machineconfigurationv1alpha1.PinnedImageSetList, *applyconfigurationsmachineconfigurationv1alpha1.PinnedImageSetApplyConfiguration]
}
// newPinnedImageSets returns a PinnedImageSets
func newPinnedImageSets(c *MachineconfigurationV1alpha1Client) *pinnedImageSets {
return &pinnedImageSets{
- gentype.NewClientWithListAndApply[*v1alpha1.PinnedImageSet, *v1alpha1.PinnedImageSetList, *machineconfigurationv1alpha1.PinnedImageSetApplyConfiguration](
+ gentype.NewClientWithListAndApply[*machineconfigurationv1alpha1.PinnedImageSet, *machineconfigurationv1alpha1.PinnedImageSetList, *applyconfigurationsmachineconfigurationv1alpha1.PinnedImageSetApplyConfiguration](
"pinnedimagesets",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1alpha1.PinnedImageSet { return &v1alpha1.PinnedImageSet{} },
- func() *v1alpha1.PinnedImageSetList { return &v1alpha1.PinnedImageSetList{} }),
+ func() *machineconfigurationv1alpha1.PinnedImageSet {
+ return &machineconfigurationv1alpha1.PinnedImageSet{}
+ },
+ func() *machineconfigurationv1alpha1.PinnedImageSetList {
+ return &machineconfigurationv1alpha1.PinnedImageSetList{}
+ },
+ ),
}
}
diff --git a/machineconfiguration/informers/externalversions/generic.go b/machineconfiguration/informers/externalversions/generic.go
index 6f4c64ba3..bffb2e871 100644
--- a/machineconfiguration/informers/externalversions/generic.go
+++ b/machineconfiguration/informers/externalversions/generic.go
@@ -3,7 +3,7 @@
package externalversions
import (
- "fmt"
+ fmt "fmt"
v1 "github.com/openshift/api/machineconfiguration/v1"
v1alpha1 "github.com/openshift/api/machineconfiguration/v1alpha1"
diff --git a/machineconfiguration/informers/externalversions/machineconfiguration/v1/containerruntimeconfig.go b/machineconfiguration/informers/externalversions/machineconfiguration/v1/containerruntimeconfig.go
index 48bf2aa03..93e76c66a 100644
--- a/machineconfiguration/informers/externalversions/machineconfiguration/v1/containerruntimeconfig.go
+++ b/machineconfiguration/informers/externalversions/machineconfiguration/v1/containerruntimeconfig.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
+ apimachineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
versioned "github.com/openshift/client-go/machineconfiguration/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/machineconfiguration/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/machineconfiguration/listers/machineconfiguration/v1"
+ machineconfigurationv1 "github.com/openshift/client-go/machineconfiguration/listers/machineconfiguration/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// ContainerRuntimeConfigs.
type ContainerRuntimeConfigInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.ContainerRuntimeConfigLister
+ Lister() machineconfigurationv1.ContainerRuntimeConfigLister
}
type containerRuntimeConfigInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredContainerRuntimeConfigInformer(client versioned.Interface, resyn
return client.MachineconfigurationV1().ContainerRuntimeConfigs().Watch(context.TODO(), options)
},
},
- &machineconfigurationv1.ContainerRuntimeConfig{},
+ &apimachineconfigurationv1.ContainerRuntimeConfig{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *containerRuntimeConfigInformer) defaultInformer(client versioned.Interf
}
func (f *containerRuntimeConfigInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&machineconfigurationv1.ContainerRuntimeConfig{}, f.defaultInformer)
+ return f.factory.InformerFor(&apimachineconfigurationv1.ContainerRuntimeConfig{}, f.defaultInformer)
}
-func (f *containerRuntimeConfigInformer) Lister() v1.ContainerRuntimeConfigLister {
- return v1.NewContainerRuntimeConfigLister(f.Informer().GetIndexer())
+func (f *containerRuntimeConfigInformer) Lister() machineconfigurationv1.ContainerRuntimeConfigLister {
+ return machineconfigurationv1.NewContainerRuntimeConfigLister(f.Informer().GetIndexer())
}
diff --git a/machineconfiguration/informers/externalversions/machineconfiguration/v1/controllerconfig.go b/machineconfiguration/informers/externalversions/machineconfiguration/v1/controllerconfig.go
index f6a913e98..b1930d0f5 100644
--- a/machineconfiguration/informers/externalversions/machineconfiguration/v1/controllerconfig.go
+++ b/machineconfiguration/informers/externalversions/machineconfiguration/v1/controllerconfig.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
+ apimachineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
versioned "github.com/openshift/client-go/machineconfiguration/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/machineconfiguration/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/machineconfiguration/listers/machineconfiguration/v1"
+ machineconfigurationv1 "github.com/openshift/client-go/machineconfiguration/listers/machineconfiguration/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// ControllerConfigs.
type ControllerConfigInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.ControllerConfigLister
+ Lister() machineconfigurationv1.ControllerConfigLister
}
type controllerConfigInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredControllerConfigInformer(client versioned.Interface, resyncPerio
return client.MachineconfigurationV1().ControllerConfigs().Watch(context.TODO(), options)
},
},
- &machineconfigurationv1.ControllerConfig{},
+ &apimachineconfigurationv1.ControllerConfig{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *controllerConfigInformer) defaultInformer(client versioned.Interface, r
}
func (f *controllerConfigInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&machineconfigurationv1.ControllerConfig{}, f.defaultInformer)
+ return f.factory.InformerFor(&apimachineconfigurationv1.ControllerConfig{}, f.defaultInformer)
}
-func (f *controllerConfigInformer) Lister() v1.ControllerConfigLister {
- return v1.NewControllerConfigLister(f.Informer().GetIndexer())
+func (f *controllerConfigInformer) Lister() machineconfigurationv1.ControllerConfigLister {
+ return machineconfigurationv1.NewControllerConfigLister(f.Informer().GetIndexer())
}
diff --git a/machineconfiguration/informers/externalversions/machineconfiguration/v1/kubeletconfig.go b/machineconfiguration/informers/externalversions/machineconfiguration/v1/kubeletconfig.go
index 0f5a2f32a..a9e9fad85 100644
--- a/machineconfiguration/informers/externalversions/machineconfiguration/v1/kubeletconfig.go
+++ b/machineconfiguration/informers/externalversions/machineconfiguration/v1/kubeletconfig.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
+ apimachineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
versioned "github.com/openshift/client-go/machineconfiguration/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/machineconfiguration/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/machineconfiguration/listers/machineconfiguration/v1"
+ machineconfigurationv1 "github.com/openshift/client-go/machineconfiguration/listers/machineconfiguration/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// KubeletConfigs.
type KubeletConfigInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.KubeletConfigLister
+ Lister() machineconfigurationv1.KubeletConfigLister
}
type kubeletConfigInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredKubeletConfigInformer(client versioned.Interface, resyncPeriod t
return client.MachineconfigurationV1().KubeletConfigs().Watch(context.TODO(), options)
},
},
- &machineconfigurationv1.KubeletConfig{},
+ &apimachineconfigurationv1.KubeletConfig{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *kubeletConfigInformer) defaultInformer(client versioned.Interface, resy
}
func (f *kubeletConfigInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&machineconfigurationv1.KubeletConfig{}, f.defaultInformer)
+ return f.factory.InformerFor(&apimachineconfigurationv1.KubeletConfig{}, f.defaultInformer)
}
-func (f *kubeletConfigInformer) Lister() v1.KubeletConfigLister {
- return v1.NewKubeletConfigLister(f.Informer().GetIndexer())
+func (f *kubeletConfigInformer) Lister() machineconfigurationv1.KubeletConfigLister {
+ return machineconfigurationv1.NewKubeletConfigLister(f.Informer().GetIndexer())
}
diff --git a/machineconfiguration/informers/externalversions/machineconfiguration/v1/machineconfig.go b/machineconfiguration/informers/externalversions/machineconfiguration/v1/machineconfig.go
index 583c4466f..f0b1ae9c4 100644
--- a/machineconfiguration/informers/externalversions/machineconfiguration/v1/machineconfig.go
+++ b/machineconfiguration/informers/externalversions/machineconfiguration/v1/machineconfig.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
+ apimachineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
versioned "github.com/openshift/client-go/machineconfiguration/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/machineconfiguration/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/machineconfiguration/listers/machineconfiguration/v1"
+ machineconfigurationv1 "github.com/openshift/client-go/machineconfiguration/listers/machineconfiguration/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// MachineConfigs.
type MachineConfigInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.MachineConfigLister
+ Lister() machineconfigurationv1.MachineConfigLister
}
type machineConfigInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredMachineConfigInformer(client versioned.Interface, resyncPeriod t
return client.MachineconfigurationV1().MachineConfigs().Watch(context.TODO(), options)
},
},
- &machineconfigurationv1.MachineConfig{},
+ &apimachineconfigurationv1.MachineConfig{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *machineConfigInformer) defaultInformer(client versioned.Interface, resy
}
func (f *machineConfigInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&machineconfigurationv1.MachineConfig{}, f.defaultInformer)
+ return f.factory.InformerFor(&apimachineconfigurationv1.MachineConfig{}, f.defaultInformer)
}
-func (f *machineConfigInformer) Lister() v1.MachineConfigLister {
- return v1.NewMachineConfigLister(f.Informer().GetIndexer())
+func (f *machineConfigInformer) Lister() machineconfigurationv1.MachineConfigLister {
+ return machineconfigurationv1.NewMachineConfigLister(f.Informer().GetIndexer())
}
diff --git a/machineconfiguration/informers/externalversions/machineconfiguration/v1/machineconfigpool.go b/machineconfiguration/informers/externalversions/machineconfiguration/v1/machineconfigpool.go
index 65088d3f0..cba2c0f68 100644
--- a/machineconfiguration/informers/externalversions/machineconfiguration/v1/machineconfigpool.go
+++ b/machineconfiguration/informers/externalversions/machineconfiguration/v1/machineconfigpool.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
+ apimachineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
versioned "github.com/openshift/client-go/machineconfiguration/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/machineconfiguration/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/machineconfiguration/listers/machineconfiguration/v1"
+ machineconfigurationv1 "github.com/openshift/client-go/machineconfiguration/listers/machineconfiguration/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// MachineConfigPools.
type MachineConfigPoolInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.MachineConfigPoolLister
+ Lister() machineconfigurationv1.MachineConfigPoolLister
}
type machineConfigPoolInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredMachineConfigPoolInformer(client versioned.Interface, resyncPeri
return client.MachineconfigurationV1().MachineConfigPools().Watch(context.TODO(), options)
},
},
- &machineconfigurationv1.MachineConfigPool{},
+ &apimachineconfigurationv1.MachineConfigPool{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *machineConfigPoolInformer) defaultInformer(client versioned.Interface,
}
func (f *machineConfigPoolInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&machineconfigurationv1.MachineConfigPool{}, f.defaultInformer)
+ return f.factory.InformerFor(&apimachineconfigurationv1.MachineConfigPool{}, f.defaultInformer)
}
-func (f *machineConfigPoolInformer) Lister() v1.MachineConfigPoolLister {
- return v1.NewMachineConfigPoolLister(f.Informer().GetIndexer())
+func (f *machineConfigPoolInformer) Lister() machineconfigurationv1.MachineConfigPoolLister {
+ return machineconfigurationv1.NewMachineConfigPoolLister(f.Informer().GetIndexer())
}
diff --git a/machineconfiguration/informers/externalversions/machineconfiguration/v1/machineosbuild.go b/machineconfiguration/informers/externalversions/machineconfiguration/v1/machineosbuild.go
index 5013801c2..a3e101751 100644
--- a/machineconfiguration/informers/externalversions/machineconfiguration/v1/machineosbuild.go
+++ b/machineconfiguration/informers/externalversions/machineconfiguration/v1/machineosbuild.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
+ apimachineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
versioned "github.com/openshift/client-go/machineconfiguration/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/machineconfiguration/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/machineconfiguration/listers/machineconfiguration/v1"
+ machineconfigurationv1 "github.com/openshift/client-go/machineconfiguration/listers/machineconfiguration/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// MachineOSBuilds.
type MachineOSBuildInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.MachineOSBuildLister
+ Lister() machineconfigurationv1.MachineOSBuildLister
}
type machineOSBuildInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredMachineOSBuildInformer(client versioned.Interface, resyncPeriod
return client.MachineconfigurationV1().MachineOSBuilds().Watch(context.TODO(), options)
},
},
- &machineconfigurationv1.MachineOSBuild{},
+ &apimachineconfigurationv1.MachineOSBuild{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *machineOSBuildInformer) defaultInformer(client versioned.Interface, res
}
func (f *machineOSBuildInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&machineconfigurationv1.MachineOSBuild{}, f.defaultInformer)
+ return f.factory.InformerFor(&apimachineconfigurationv1.MachineOSBuild{}, f.defaultInformer)
}
-func (f *machineOSBuildInformer) Lister() v1.MachineOSBuildLister {
- return v1.NewMachineOSBuildLister(f.Informer().GetIndexer())
+func (f *machineOSBuildInformer) Lister() machineconfigurationv1.MachineOSBuildLister {
+ return machineconfigurationv1.NewMachineOSBuildLister(f.Informer().GetIndexer())
}
diff --git a/machineconfiguration/informers/externalversions/machineconfiguration/v1/machineosconfig.go b/machineconfiguration/informers/externalversions/machineconfiguration/v1/machineosconfig.go
index 8fddfd822..c216b7557 100644
--- a/machineconfiguration/informers/externalversions/machineconfiguration/v1/machineosconfig.go
+++ b/machineconfiguration/informers/externalversions/machineconfiguration/v1/machineosconfig.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
+ apimachineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
versioned "github.com/openshift/client-go/machineconfiguration/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/machineconfiguration/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/machineconfiguration/listers/machineconfiguration/v1"
+ machineconfigurationv1 "github.com/openshift/client-go/machineconfiguration/listers/machineconfiguration/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// MachineOSConfigs.
type MachineOSConfigInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.MachineOSConfigLister
+ Lister() machineconfigurationv1.MachineOSConfigLister
}
type machineOSConfigInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredMachineOSConfigInformer(client versioned.Interface, resyncPeriod
return client.MachineconfigurationV1().MachineOSConfigs().Watch(context.TODO(), options)
},
},
- &machineconfigurationv1.MachineOSConfig{},
+ &apimachineconfigurationv1.MachineOSConfig{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *machineOSConfigInformer) defaultInformer(client versioned.Interface, re
}
func (f *machineOSConfigInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&machineconfigurationv1.MachineOSConfig{}, f.defaultInformer)
+ return f.factory.InformerFor(&apimachineconfigurationv1.MachineOSConfig{}, f.defaultInformer)
}
-func (f *machineOSConfigInformer) Lister() v1.MachineOSConfigLister {
- return v1.NewMachineOSConfigLister(f.Informer().GetIndexer())
+func (f *machineOSConfigInformer) Lister() machineconfigurationv1.MachineOSConfigLister {
+ return machineconfigurationv1.NewMachineOSConfigLister(f.Informer().GetIndexer())
}
diff --git a/machineconfiguration/informers/externalversions/machineconfiguration/v1alpha1/machineconfignode.go b/machineconfiguration/informers/externalversions/machineconfiguration/v1alpha1/machineconfignode.go
index 57df7775b..53cc3a1b3 100644
--- a/machineconfiguration/informers/externalversions/machineconfiguration/v1alpha1/machineconfignode.go
+++ b/machineconfiguration/informers/externalversions/machineconfiguration/v1alpha1/machineconfignode.go
@@ -3,13 +3,13 @@
package v1alpha1
import (
- "context"
+ context "context"
time "time"
- machineconfigurationv1alpha1 "github.com/openshift/api/machineconfiguration/v1alpha1"
+ apimachineconfigurationv1alpha1 "github.com/openshift/api/machineconfiguration/v1alpha1"
versioned "github.com/openshift/client-go/machineconfiguration/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/machineconfiguration/informers/externalversions/internalinterfaces"
- v1alpha1 "github.com/openshift/client-go/machineconfiguration/listers/machineconfiguration/v1alpha1"
+ machineconfigurationv1alpha1 "github.com/openshift/client-go/machineconfiguration/listers/machineconfiguration/v1alpha1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// MachineConfigNodes.
type MachineConfigNodeInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1alpha1.MachineConfigNodeLister
+ Lister() machineconfigurationv1alpha1.MachineConfigNodeLister
}
type machineConfigNodeInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredMachineConfigNodeInformer(client versioned.Interface, resyncPeri
return client.MachineconfigurationV1alpha1().MachineConfigNodes().Watch(context.TODO(), options)
},
},
- &machineconfigurationv1alpha1.MachineConfigNode{},
+ &apimachineconfigurationv1alpha1.MachineConfigNode{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *machineConfigNodeInformer) defaultInformer(client versioned.Interface,
}
func (f *machineConfigNodeInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&machineconfigurationv1alpha1.MachineConfigNode{}, f.defaultInformer)
+ return f.factory.InformerFor(&apimachineconfigurationv1alpha1.MachineConfigNode{}, f.defaultInformer)
}
-func (f *machineConfigNodeInformer) Lister() v1alpha1.MachineConfigNodeLister {
- return v1alpha1.NewMachineConfigNodeLister(f.Informer().GetIndexer())
+func (f *machineConfigNodeInformer) Lister() machineconfigurationv1alpha1.MachineConfigNodeLister {
+ return machineconfigurationv1alpha1.NewMachineConfigNodeLister(f.Informer().GetIndexer())
}
diff --git a/machineconfiguration/informers/externalversions/machineconfiguration/v1alpha1/machineosbuild.go b/machineconfiguration/informers/externalversions/machineconfiguration/v1alpha1/machineosbuild.go
index 6a4ed30b5..12154a263 100644
--- a/machineconfiguration/informers/externalversions/machineconfiguration/v1alpha1/machineosbuild.go
+++ b/machineconfiguration/informers/externalversions/machineconfiguration/v1alpha1/machineosbuild.go
@@ -3,13 +3,13 @@
package v1alpha1
import (
- "context"
+ context "context"
time "time"
- machineconfigurationv1alpha1 "github.com/openshift/api/machineconfiguration/v1alpha1"
+ apimachineconfigurationv1alpha1 "github.com/openshift/api/machineconfiguration/v1alpha1"
versioned "github.com/openshift/client-go/machineconfiguration/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/machineconfiguration/informers/externalversions/internalinterfaces"
- v1alpha1 "github.com/openshift/client-go/machineconfiguration/listers/machineconfiguration/v1alpha1"
+ machineconfigurationv1alpha1 "github.com/openshift/client-go/machineconfiguration/listers/machineconfiguration/v1alpha1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// MachineOSBuilds.
type MachineOSBuildInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1alpha1.MachineOSBuildLister
+ Lister() machineconfigurationv1alpha1.MachineOSBuildLister
}
type machineOSBuildInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredMachineOSBuildInformer(client versioned.Interface, resyncPeriod
return client.MachineconfigurationV1alpha1().MachineOSBuilds().Watch(context.TODO(), options)
},
},
- &machineconfigurationv1alpha1.MachineOSBuild{},
+ &apimachineconfigurationv1alpha1.MachineOSBuild{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *machineOSBuildInformer) defaultInformer(client versioned.Interface, res
}
func (f *machineOSBuildInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&machineconfigurationv1alpha1.MachineOSBuild{}, f.defaultInformer)
+ return f.factory.InformerFor(&apimachineconfigurationv1alpha1.MachineOSBuild{}, f.defaultInformer)
}
-func (f *machineOSBuildInformer) Lister() v1alpha1.MachineOSBuildLister {
- return v1alpha1.NewMachineOSBuildLister(f.Informer().GetIndexer())
+func (f *machineOSBuildInformer) Lister() machineconfigurationv1alpha1.MachineOSBuildLister {
+ return machineconfigurationv1alpha1.NewMachineOSBuildLister(f.Informer().GetIndexer())
}
diff --git a/machineconfiguration/informers/externalversions/machineconfiguration/v1alpha1/machineosconfig.go b/machineconfiguration/informers/externalversions/machineconfiguration/v1alpha1/machineosconfig.go
index aaea227ac..d96475801 100644
--- a/machineconfiguration/informers/externalversions/machineconfiguration/v1alpha1/machineosconfig.go
+++ b/machineconfiguration/informers/externalversions/machineconfiguration/v1alpha1/machineosconfig.go
@@ -3,13 +3,13 @@
package v1alpha1
import (
- "context"
+ context "context"
time "time"
- machineconfigurationv1alpha1 "github.com/openshift/api/machineconfiguration/v1alpha1"
+ apimachineconfigurationv1alpha1 "github.com/openshift/api/machineconfiguration/v1alpha1"
versioned "github.com/openshift/client-go/machineconfiguration/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/machineconfiguration/informers/externalversions/internalinterfaces"
- v1alpha1 "github.com/openshift/client-go/machineconfiguration/listers/machineconfiguration/v1alpha1"
+ machineconfigurationv1alpha1 "github.com/openshift/client-go/machineconfiguration/listers/machineconfiguration/v1alpha1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// MachineOSConfigs.
type MachineOSConfigInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1alpha1.MachineOSConfigLister
+ Lister() machineconfigurationv1alpha1.MachineOSConfigLister
}
type machineOSConfigInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredMachineOSConfigInformer(client versioned.Interface, resyncPeriod
return client.MachineconfigurationV1alpha1().MachineOSConfigs().Watch(context.TODO(), options)
},
},
- &machineconfigurationv1alpha1.MachineOSConfig{},
+ &apimachineconfigurationv1alpha1.MachineOSConfig{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *machineOSConfigInformer) defaultInformer(client versioned.Interface, re
}
func (f *machineOSConfigInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&machineconfigurationv1alpha1.MachineOSConfig{}, f.defaultInformer)
+ return f.factory.InformerFor(&apimachineconfigurationv1alpha1.MachineOSConfig{}, f.defaultInformer)
}
-func (f *machineOSConfigInformer) Lister() v1alpha1.MachineOSConfigLister {
- return v1alpha1.NewMachineOSConfigLister(f.Informer().GetIndexer())
+func (f *machineOSConfigInformer) Lister() machineconfigurationv1alpha1.MachineOSConfigLister {
+ return machineconfigurationv1alpha1.NewMachineOSConfigLister(f.Informer().GetIndexer())
}
diff --git a/machineconfiguration/informers/externalversions/machineconfiguration/v1alpha1/pinnedimageset.go b/machineconfiguration/informers/externalversions/machineconfiguration/v1alpha1/pinnedimageset.go
index 9282f9895..e5759c4e3 100644
--- a/machineconfiguration/informers/externalversions/machineconfiguration/v1alpha1/pinnedimageset.go
+++ b/machineconfiguration/informers/externalversions/machineconfiguration/v1alpha1/pinnedimageset.go
@@ -3,13 +3,13 @@
package v1alpha1
import (
- "context"
+ context "context"
time "time"
- machineconfigurationv1alpha1 "github.com/openshift/api/machineconfiguration/v1alpha1"
+ apimachineconfigurationv1alpha1 "github.com/openshift/api/machineconfiguration/v1alpha1"
versioned "github.com/openshift/client-go/machineconfiguration/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/machineconfiguration/informers/externalversions/internalinterfaces"
- v1alpha1 "github.com/openshift/client-go/machineconfiguration/listers/machineconfiguration/v1alpha1"
+ machineconfigurationv1alpha1 "github.com/openshift/client-go/machineconfiguration/listers/machineconfiguration/v1alpha1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// PinnedImageSets.
type PinnedImageSetInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1alpha1.PinnedImageSetLister
+ Lister() machineconfigurationv1alpha1.PinnedImageSetLister
}
type pinnedImageSetInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredPinnedImageSetInformer(client versioned.Interface, resyncPeriod
return client.MachineconfigurationV1alpha1().PinnedImageSets().Watch(context.TODO(), options)
},
},
- &machineconfigurationv1alpha1.PinnedImageSet{},
+ &apimachineconfigurationv1alpha1.PinnedImageSet{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *pinnedImageSetInformer) defaultInformer(client versioned.Interface, res
}
func (f *pinnedImageSetInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&machineconfigurationv1alpha1.PinnedImageSet{}, f.defaultInformer)
+ return f.factory.InformerFor(&apimachineconfigurationv1alpha1.PinnedImageSet{}, f.defaultInformer)
}
-func (f *pinnedImageSetInformer) Lister() v1alpha1.PinnedImageSetLister {
- return v1alpha1.NewPinnedImageSetLister(f.Informer().GetIndexer())
+func (f *pinnedImageSetInformer) Lister() machineconfigurationv1alpha1.PinnedImageSetLister {
+ return machineconfigurationv1alpha1.NewPinnedImageSetLister(f.Informer().GetIndexer())
}
diff --git a/machineconfiguration/listers/machineconfiguration/v1/containerruntimeconfig.go b/machineconfiguration/listers/machineconfiguration/v1/containerruntimeconfig.go
index f1d629de2..5ae9f320b 100644
--- a/machineconfiguration/listers/machineconfiguration/v1/containerruntimeconfig.go
+++ b/machineconfiguration/listers/machineconfiguration/v1/containerruntimeconfig.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/machineconfiguration/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ContainerRuntimeConfigLister helps list ContainerRuntimeConfigs.
@@ -14,19 +14,19 @@ import (
type ContainerRuntimeConfigLister interface {
// List lists all ContainerRuntimeConfigs in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.ContainerRuntimeConfig, err error)
+ List(selector labels.Selector) (ret []*machineconfigurationv1.ContainerRuntimeConfig, err error)
// Get retrieves the ContainerRuntimeConfig from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.ContainerRuntimeConfig, error)
+ Get(name string) (*machineconfigurationv1.ContainerRuntimeConfig, error)
ContainerRuntimeConfigListerExpansion
}
// containerRuntimeConfigLister implements the ContainerRuntimeConfigLister interface.
type containerRuntimeConfigLister struct {
- listers.ResourceIndexer[*v1.ContainerRuntimeConfig]
+ listers.ResourceIndexer[*machineconfigurationv1.ContainerRuntimeConfig]
}
// NewContainerRuntimeConfigLister returns a new ContainerRuntimeConfigLister.
func NewContainerRuntimeConfigLister(indexer cache.Indexer) ContainerRuntimeConfigLister {
- return &containerRuntimeConfigLister{listers.New[*v1.ContainerRuntimeConfig](indexer, v1.Resource("containerruntimeconfig"))}
+ return &containerRuntimeConfigLister{listers.New[*machineconfigurationv1.ContainerRuntimeConfig](indexer, machineconfigurationv1.Resource("containerruntimeconfig"))}
}
diff --git a/machineconfiguration/listers/machineconfiguration/v1/controllerconfig.go b/machineconfiguration/listers/machineconfiguration/v1/controllerconfig.go
index cd6420c94..3db0c8743 100644
--- a/machineconfiguration/listers/machineconfiguration/v1/controllerconfig.go
+++ b/machineconfiguration/listers/machineconfiguration/v1/controllerconfig.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/machineconfiguration/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ControllerConfigLister helps list ControllerConfigs.
@@ -14,19 +14,19 @@ import (
type ControllerConfigLister interface {
// List lists all ControllerConfigs in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.ControllerConfig, err error)
+ List(selector labels.Selector) (ret []*machineconfigurationv1.ControllerConfig, err error)
// Get retrieves the ControllerConfig from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.ControllerConfig, error)
+ Get(name string) (*machineconfigurationv1.ControllerConfig, error)
ControllerConfigListerExpansion
}
// controllerConfigLister implements the ControllerConfigLister interface.
type controllerConfigLister struct {
- listers.ResourceIndexer[*v1.ControllerConfig]
+ listers.ResourceIndexer[*machineconfigurationv1.ControllerConfig]
}
// NewControllerConfigLister returns a new ControllerConfigLister.
func NewControllerConfigLister(indexer cache.Indexer) ControllerConfigLister {
- return &controllerConfigLister{listers.New[*v1.ControllerConfig](indexer, v1.Resource("controllerconfig"))}
+ return &controllerConfigLister{listers.New[*machineconfigurationv1.ControllerConfig](indexer, machineconfigurationv1.Resource("controllerconfig"))}
}
diff --git a/machineconfiguration/listers/machineconfiguration/v1/kubeletconfig.go b/machineconfiguration/listers/machineconfiguration/v1/kubeletconfig.go
index b3a42576a..df3f5de9f 100644
--- a/machineconfiguration/listers/machineconfiguration/v1/kubeletconfig.go
+++ b/machineconfiguration/listers/machineconfiguration/v1/kubeletconfig.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/machineconfiguration/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// KubeletConfigLister helps list KubeletConfigs.
@@ -14,19 +14,19 @@ import (
type KubeletConfigLister interface {
// List lists all KubeletConfigs in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.KubeletConfig, err error)
+ List(selector labels.Selector) (ret []*machineconfigurationv1.KubeletConfig, err error)
// Get retrieves the KubeletConfig from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.KubeletConfig, error)
+ Get(name string) (*machineconfigurationv1.KubeletConfig, error)
KubeletConfigListerExpansion
}
// kubeletConfigLister implements the KubeletConfigLister interface.
type kubeletConfigLister struct {
- listers.ResourceIndexer[*v1.KubeletConfig]
+ listers.ResourceIndexer[*machineconfigurationv1.KubeletConfig]
}
// NewKubeletConfigLister returns a new KubeletConfigLister.
func NewKubeletConfigLister(indexer cache.Indexer) KubeletConfigLister {
- return &kubeletConfigLister{listers.New[*v1.KubeletConfig](indexer, v1.Resource("kubeletconfig"))}
+ return &kubeletConfigLister{listers.New[*machineconfigurationv1.KubeletConfig](indexer, machineconfigurationv1.Resource("kubeletconfig"))}
}
diff --git a/machineconfiguration/listers/machineconfiguration/v1/machineconfig.go b/machineconfiguration/listers/machineconfiguration/v1/machineconfig.go
index 5e934628c..0f6ce741e 100644
--- a/machineconfiguration/listers/machineconfiguration/v1/machineconfig.go
+++ b/machineconfiguration/listers/machineconfiguration/v1/machineconfig.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/machineconfiguration/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// MachineConfigLister helps list MachineConfigs.
@@ -14,19 +14,19 @@ import (
type MachineConfigLister interface {
// List lists all MachineConfigs in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.MachineConfig, err error)
+ List(selector labels.Selector) (ret []*machineconfigurationv1.MachineConfig, err error)
// Get retrieves the MachineConfig from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.MachineConfig, error)
+ Get(name string) (*machineconfigurationv1.MachineConfig, error)
MachineConfigListerExpansion
}
// machineConfigLister implements the MachineConfigLister interface.
type machineConfigLister struct {
- listers.ResourceIndexer[*v1.MachineConfig]
+ listers.ResourceIndexer[*machineconfigurationv1.MachineConfig]
}
// NewMachineConfigLister returns a new MachineConfigLister.
func NewMachineConfigLister(indexer cache.Indexer) MachineConfigLister {
- return &machineConfigLister{listers.New[*v1.MachineConfig](indexer, v1.Resource("machineconfig"))}
+ return &machineConfigLister{listers.New[*machineconfigurationv1.MachineConfig](indexer, machineconfigurationv1.Resource("machineconfig"))}
}
diff --git a/machineconfiguration/listers/machineconfiguration/v1/machineconfigpool.go b/machineconfiguration/listers/machineconfiguration/v1/machineconfigpool.go
index d55a350f3..3ec690df0 100644
--- a/machineconfiguration/listers/machineconfiguration/v1/machineconfigpool.go
+++ b/machineconfiguration/listers/machineconfiguration/v1/machineconfigpool.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/machineconfiguration/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// MachineConfigPoolLister helps list MachineConfigPools.
@@ -14,19 +14,19 @@ import (
type MachineConfigPoolLister interface {
// List lists all MachineConfigPools in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.MachineConfigPool, err error)
+ List(selector labels.Selector) (ret []*machineconfigurationv1.MachineConfigPool, err error)
// Get retrieves the MachineConfigPool from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.MachineConfigPool, error)
+ Get(name string) (*machineconfigurationv1.MachineConfigPool, error)
MachineConfigPoolListerExpansion
}
// machineConfigPoolLister implements the MachineConfigPoolLister interface.
type machineConfigPoolLister struct {
- listers.ResourceIndexer[*v1.MachineConfigPool]
+ listers.ResourceIndexer[*machineconfigurationv1.MachineConfigPool]
}
// NewMachineConfigPoolLister returns a new MachineConfigPoolLister.
func NewMachineConfigPoolLister(indexer cache.Indexer) MachineConfigPoolLister {
- return &machineConfigPoolLister{listers.New[*v1.MachineConfigPool](indexer, v1.Resource("machineconfigpool"))}
+ return &machineConfigPoolLister{listers.New[*machineconfigurationv1.MachineConfigPool](indexer, machineconfigurationv1.Resource("machineconfigpool"))}
}
diff --git a/machineconfiguration/listers/machineconfiguration/v1/machineosbuild.go b/machineconfiguration/listers/machineconfiguration/v1/machineosbuild.go
index dca053fac..9144e9136 100644
--- a/machineconfiguration/listers/machineconfiguration/v1/machineosbuild.go
+++ b/machineconfiguration/listers/machineconfiguration/v1/machineosbuild.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/machineconfiguration/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// MachineOSBuildLister helps list MachineOSBuilds.
@@ -14,19 +14,19 @@ import (
type MachineOSBuildLister interface {
// List lists all MachineOSBuilds in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.MachineOSBuild, err error)
+ List(selector labels.Selector) (ret []*machineconfigurationv1.MachineOSBuild, err error)
// Get retrieves the MachineOSBuild from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.MachineOSBuild, error)
+ Get(name string) (*machineconfigurationv1.MachineOSBuild, error)
MachineOSBuildListerExpansion
}
// machineOSBuildLister implements the MachineOSBuildLister interface.
type machineOSBuildLister struct {
- listers.ResourceIndexer[*v1.MachineOSBuild]
+ listers.ResourceIndexer[*machineconfigurationv1.MachineOSBuild]
}
// NewMachineOSBuildLister returns a new MachineOSBuildLister.
func NewMachineOSBuildLister(indexer cache.Indexer) MachineOSBuildLister {
- return &machineOSBuildLister{listers.New[*v1.MachineOSBuild](indexer, v1.Resource("machineosbuild"))}
+ return &machineOSBuildLister{listers.New[*machineconfigurationv1.MachineOSBuild](indexer, machineconfigurationv1.Resource("machineosbuild"))}
}
diff --git a/machineconfiguration/listers/machineconfiguration/v1/machineosconfig.go b/machineconfiguration/listers/machineconfiguration/v1/machineosconfig.go
index 219e169aa..aafe6fc0a 100644
--- a/machineconfiguration/listers/machineconfiguration/v1/machineosconfig.go
+++ b/machineconfiguration/listers/machineconfiguration/v1/machineosconfig.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/machineconfiguration/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// MachineOSConfigLister helps list MachineOSConfigs.
@@ -14,19 +14,19 @@ import (
type MachineOSConfigLister interface {
// List lists all MachineOSConfigs in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.MachineOSConfig, err error)
+ List(selector labels.Selector) (ret []*machineconfigurationv1.MachineOSConfig, err error)
// Get retrieves the MachineOSConfig from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.MachineOSConfig, error)
+ Get(name string) (*machineconfigurationv1.MachineOSConfig, error)
MachineOSConfigListerExpansion
}
// machineOSConfigLister implements the MachineOSConfigLister interface.
type machineOSConfigLister struct {
- listers.ResourceIndexer[*v1.MachineOSConfig]
+ listers.ResourceIndexer[*machineconfigurationv1.MachineOSConfig]
}
// NewMachineOSConfigLister returns a new MachineOSConfigLister.
func NewMachineOSConfigLister(indexer cache.Indexer) MachineOSConfigLister {
- return &machineOSConfigLister{listers.New[*v1.MachineOSConfig](indexer, v1.Resource("machineosconfig"))}
+ return &machineOSConfigLister{listers.New[*machineconfigurationv1.MachineOSConfig](indexer, machineconfigurationv1.Resource("machineosconfig"))}
}
diff --git a/machineconfiguration/listers/machineconfiguration/v1alpha1/machineconfignode.go b/machineconfiguration/listers/machineconfiguration/v1alpha1/machineconfignode.go
index 4bd3fb169..294210e4d 100644
--- a/machineconfiguration/listers/machineconfiguration/v1alpha1/machineconfignode.go
+++ b/machineconfiguration/listers/machineconfiguration/v1alpha1/machineconfignode.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- v1alpha1 "github.com/openshift/api/machineconfiguration/v1alpha1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ machineconfigurationv1alpha1 "github.com/openshift/api/machineconfiguration/v1alpha1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// MachineConfigNodeLister helps list MachineConfigNodes.
@@ -14,19 +14,19 @@ import (
type MachineConfigNodeLister interface {
// List lists all MachineConfigNodes in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1alpha1.MachineConfigNode, err error)
+ List(selector labels.Selector) (ret []*machineconfigurationv1alpha1.MachineConfigNode, err error)
// Get retrieves the MachineConfigNode from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1alpha1.MachineConfigNode, error)
+ Get(name string) (*machineconfigurationv1alpha1.MachineConfigNode, error)
MachineConfigNodeListerExpansion
}
// machineConfigNodeLister implements the MachineConfigNodeLister interface.
type machineConfigNodeLister struct {
- listers.ResourceIndexer[*v1alpha1.MachineConfigNode]
+ listers.ResourceIndexer[*machineconfigurationv1alpha1.MachineConfigNode]
}
// NewMachineConfigNodeLister returns a new MachineConfigNodeLister.
func NewMachineConfigNodeLister(indexer cache.Indexer) MachineConfigNodeLister {
- return &machineConfigNodeLister{listers.New[*v1alpha1.MachineConfigNode](indexer, v1alpha1.Resource("machineconfignode"))}
+ return &machineConfigNodeLister{listers.New[*machineconfigurationv1alpha1.MachineConfigNode](indexer, machineconfigurationv1alpha1.Resource("machineconfignode"))}
}
diff --git a/machineconfiguration/listers/machineconfiguration/v1alpha1/machineosbuild.go b/machineconfiguration/listers/machineconfiguration/v1alpha1/machineosbuild.go
index 35bd4c0ac..357f1313c 100644
--- a/machineconfiguration/listers/machineconfiguration/v1alpha1/machineosbuild.go
+++ b/machineconfiguration/listers/machineconfiguration/v1alpha1/machineosbuild.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- v1alpha1 "github.com/openshift/api/machineconfiguration/v1alpha1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ machineconfigurationv1alpha1 "github.com/openshift/api/machineconfiguration/v1alpha1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// MachineOSBuildLister helps list MachineOSBuilds.
@@ -14,19 +14,19 @@ import (
type MachineOSBuildLister interface {
// List lists all MachineOSBuilds in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1alpha1.MachineOSBuild, err error)
+ List(selector labels.Selector) (ret []*machineconfigurationv1alpha1.MachineOSBuild, err error)
// Get retrieves the MachineOSBuild from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1alpha1.MachineOSBuild, error)
+ Get(name string) (*machineconfigurationv1alpha1.MachineOSBuild, error)
MachineOSBuildListerExpansion
}
// machineOSBuildLister implements the MachineOSBuildLister interface.
type machineOSBuildLister struct {
- listers.ResourceIndexer[*v1alpha1.MachineOSBuild]
+ listers.ResourceIndexer[*machineconfigurationv1alpha1.MachineOSBuild]
}
// NewMachineOSBuildLister returns a new MachineOSBuildLister.
func NewMachineOSBuildLister(indexer cache.Indexer) MachineOSBuildLister {
- return &machineOSBuildLister{listers.New[*v1alpha1.MachineOSBuild](indexer, v1alpha1.Resource("machineosbuild"))}
+ return &machineOSBuildLister{listers.New[*machineconfigurationv1alpha1.MachineOSBuild](indexer, machineconfigurationv1alpha1.Resource("machineosbuild"))}
}
diff --git a/machineconfiguration/listers/machineconfiguration/v1alpha1/machineosconfig.go b/machineconfiguration/listers/machineconfiguration/v1alpha1/machineosconfig.go
index e4f4ef567..76059ce48 100644
--- a/machineconfiguration/listers/machineconfiguration/v1alpha1/machineosconfig.go
+++ b/machineconfiguration/listers/machineconfiguration/v1alpha1/machineosconfig.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- v1alpha1 "github.com/openshift/api/machineconfiguration/v1alpha1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ machineconfigurationv1alpha1 "github.com/openshift/api/machineconfiguration/v1alpha1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// MachineOSConfigLister helps list MachineOSConfigs.
@@ -14,19 +14,19 @@ import (
type MachineOSConfigLister interface {
// List lists all MachineOSConfigs in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1alpha1.MachineOSConfig, err error)
+ List(selector labels.Selector) (ret []*machineconfigurationv1alpha1.MachineOSConfig, err error)
// Get retrieves the MachineOSConfig from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1alpha1.MachineOSConfig, error)
+ Get(name string) (*machineconfigurationv1alpha1.MachineOSConfig, error)
MachineOSConfigListerExpansion
}
// machineOSConfigLister implements the MachineOSConfigLister interface.
type machineOSConfigLister struct {
- listers.ResourceIndexer[*v1alpha1.MachineOSConfig]
+ listers.ResourceIndexer[*machineconfigurationv1alpha1.MachineOSConfig]
}
// NewMachineOSConfigLister returns a new MachineOSConfigLister.
func NewMachineOSConfigLister(indexer cache.Indexer) MachineOSConfigLister {
- return &machineOSConfigLister{listers.New[*v1alpha1.MachineOSConfig](indexer, v1alpha1.Resource("machineosconfig"))}
+ return &machineOSConfigLister{listers.New[*machineconfigurationv1alpha1.MachineOSConfig](indexer, machineconfigurationv1alpha1.Resource("machineosconfig"))}
}
diff --git a/machineconfiguration/listers/machineconfiguration/v1alpha1/pinnedimageset.go b/machineconfiguration/listers/machineconfiguration/v1alpha1/pinnedimageset.go
index 596e21492..1861270ca 100644
--- a/machineconfiguration/listers/machineconfiguration/v1alpha1/pinnedimageset.go
+++ b/machineconfiguration/listers/machineconfiguration/v1alpha1/pinnedimageset.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- v1alpha1 "github.com/openshift/api/machineconfiguration/v1alpha1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ machineconfigurationv1alpha1 "github.com/openshift/api/machineconfiguration/v1alpha1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// PinnedImageSetLister helps list PinnedImageSets.
@@ -14,19 +14,19 @@ import (
type PinnedImageSetLister interface {
// List lists all PinnedImageSets in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1alpha1.PinnedImageSet, err error)
+ List(selector labels.Selector) (ret []*machineconfigurationv1alpha1.PinnedImageSet, err error)
// Get retrieves the PinnedImageSet from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1alpha1.PinnedImageSet, error)
+ Get(name string) (*machineconfigurationv1alpha1.PinnedImageSet, error)
PinnedImageSetListerExpansion
}
// pinnedImageSetLister implements the PinnedImageSetLister interface.
type pinnedImageSetLister struct {
- listers.ResourceIndexer[*v1alpha1.PinnedImageSet]
+ listers.ResourceIndexer[*machineconfigurationv1alpha1.PinnedImageSet]
}
// NewPinnedImageSetLister returns a new PinnedImageSetLister.
func NewPinnedImageSetLister(indexer cache.Indexer) PinnedImageSetLister {
- return &pinnedImageSetLister{listers.New[*v1alpha1.PinnedImageSet](indexer, v1alpha1.Resource("pinnedimageset"))}
+ return &pinnedImageSetLister{listers.New[*machineconfigurationv1alpha1.PinnedImageSet](indexer, machineconfigurationv1alpha1.Resource("pinnedimageset"))}
}
diff --git a/monitoring/applyconfigurations/internal/internal.go b/monitoring/applyconfigurations/internal/internal.go
index db6cb8b24..953819470 100644
--- a/monitoring/applyconfigurations/internal/internal.go
+++ b/monitoring/applyconfigurations/internal/internal.go
@@ -3,8 +3,8 @@
package internal
import (
- "fmt"
- "sync"
+ fmt "fmt"
+ sync "sync"
typed "sigs.k8s.io/structured-merge-diff/v4/typed"
)
diff --git a/monitoring/applyconfigurations/monitoring/v1/alertingrule.go b/monitoring/applyconfigurations/monitoring/v1/alertingrule.go
index a6218f8f6..829eb7e84 100644
--- a/monitoring/applyconfigurations/monitoring/v1/alertingrule.go
+++ b/monitoring/applyconfigurations/monitoring/v1/alertingrule.go
@@ -3,21 +3,21 @@
package v1
import (
- apimonitoringv1 "github.com/openshift/api/monitoring/v1"
+ monitoringv1 "github.com/openshift/api/monitoring/v1"
internal "github.com/openshift/client-go/monitoring/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// AlertingRuleApplyConfiguration represents a declarative configuration of the AlertingRule type for use
// with apply.
type AlertingRuleApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *AlertingRuleSpecApplyConfiguration `json:"spec,omitempty"`
- Status *AlertingRuleStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *AlertingRuleSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *AlertingRuleStatusApplyConfiguration `json:"status,omitempty"`
}
// AlertingRule constructs a declarative configuration of the AlertingRule type for use with
@@ -42,18 +42,18 @@ func AlertingRule(name, namespace string) *AlertingRuleApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractAlertingRule(alertingRule *apimonitoringv1.AlertingRule, fieldManager string) (*AlertingRuleApplyConfiguration, error) {
+func ExtractAlertingRule(alertingRule *monitoringv1.AlertingRule, fieldManager string) (*AlertingRuleApplyConfiguration, error) {
return extractAlertingRule(alertingRule, fieldManager, "")
}
// ExtractAlertingRuleStatus is the same as ExtractAlertingRule except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractAlertingRuleStatus(alertingRule *apimonitoringv1.AlertingRule, fieldManager string) (*AlertingRuleApplyConfiguration, error) {
+func ExtractAlertingRuleStatus(alertingRule *monitoringv1.AlertingRule, fieldManager string) (*AlertingRuleApplyConfiguration, error) {
return extractAlertingRule(alertingRule, fieldManager, "status")
}
-func extractAlertingRule(alertingRule *apimonitoringv1.AlertingRule, fieldManager string, subresource string) (*AlertingRuleApplyConfiguration, error) {
+func extractAlertingRule(alertingRule *monitoringv1.AlertingRule, fieldManager string, subresource string) (*AlertingRuleApplyConfiguration, error) {
b := &AlertingRuleApplyConfiguration{}
err := managedfields.ExtractInto(alertingRule, internal.Parser().Type("com.github.openshift.api.monitoring.v1.AlertingRule"), fieldManager, b, subresource)
if err != nil {
@@ -71,7 +71,7 @@ func extractAlertingRule(alertingRule *apimonitoringv1.AlertingRule, fieldManage
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *AlertingRuleApplyConfiguration) WithKind(value string) *AlertingRuleApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -79,7 +79,7 @@ func (b *AlertingRuleApplyConfiguration) WithKind(value string) *AlertingRuleApp
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *AlertingRuleApplyConfiguration) WithAPIVersion(value string) *AlertingRuleApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -88,7 +88,7 @@ func (b *AlertingRuleApplyConfiguration) WithAPIVersion(value string) *AlertingR
// If called multiple times, the Name field is set to the value of the last call.
func (b *AlertingRuleApplyConfiguration) WithName(value string) *AlertingRuleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -97,7 +97,7 @@ func (b *AlertingRuleApplyConfiguration) WithName(value string) *AlertingRuleApp
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *AlertingRuleApplyConfiguration) WithGenerateName(value string) *AlertingRuleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -106,7 +106,7 @@ func (b *AlertingRuleApplyConfiguration) WithGenerateName(value string) *Alertin
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *AlertingRuleApplyConfiguration) WithNamespace(value string) *AlertingRuleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -115,7 +115,7 @@ func (b *AlertingRuleApplyConfiguration) WithNamespace(value string) *AlertingRu
// If called multiple times, the UID field is set to the value of the last call.
func (b *AlertingRuleApplyConfiguration) WithUID(value types.UID) *AlertingRuleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -124,7 +124,7 @@ func (b *AlertingRuleApplyConfiguration) WithUID(value types.UID) *AlertingRuleA
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *AlertingRuleApplyConfiguration) WithResourceVersion(value string) *AlertingRuleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -133,25 +133,25 @@ func (b *AlertingRuleApplyConfiguration) WithResourceVersion(value string) *Aler
// If called multiple times, the Generation field is set to the value of the last call.
func (b *AlertingRuleApplyConfiguration) WithGeneration(value int64) *AlertingRuleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *AlertingRuleApplyConfiguration) WithCreationTimestamp(value metav1.Time) *AlertingRuleApplyConfiguration {
+func (b *AlertingRuleApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *AlertingRuleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *AlertingRuleApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *AlertingRuleApplyConfiguration {
+func (b *AlertingRuleApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *AlertingRuleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -160,7 +160,7 @@ func (b *AlertingRuleApplyConfiguration) WithDeletionTimestamp(value metav1.Time
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *AlertingRuleApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *AlertingRuleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -170,11 +170,11 @@ func (b *AlertingRuleApplyConfiguration) WithDeletionGracePeriodSeconds(value in
// overwriting an existing map entries in Labels field with the same key.
func (b *AlertingRuleApplyConfiguration) WithLabels(entries map[string]string) *AlertingRuleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -185,11 +185,11 @@ func (b *AlertingRuleApplyConfiguration) WithLabels(entries map[string]string) *
// overwriting an existing map entries in Annotations field with the same key.
func (b *AlertingRuleApplyConfiguration) WithAnnotations(entries map[string]string) *AlertingRuleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -197,13 +197,13 @@ func (b *AlertingRuleApplyConfiguration) WithAnnotations(entries map[string]stri
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *AlertingRuleApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *AlertingRuleApplyConfiguration {
+func (b *AlertingRuleApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *AlertingRuleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -214,14 +214,14 @@ func (b *AlertingRuleApplyConfiguration) WithOwnerReferences(values ...*v1.Owner
func (b *AlertingRuleApplyConfiguration) WithFinalizers(values ...string) *AlertingRuleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *AlertingRuleApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -244,5 +244,5 @@ func (b *AlertingRuleApplyConfiguration) WithStatus(value *AlertingRuleStatusApp
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *AlertingRuleApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/monitoring/applyconfigurations/monitoring/v1/alertrelabelconfig.go b/monitoring/applyconfigurations/monitoring/v1/alertrelabelconfig.go
index bc5ac3dbc..8871cc4ff 100644
--- a/monitoring/applyconfigurations/monitoring/v1/alertrelabelconfig.go
+++ b/monitoring/applyconfigurations/monitoring/v1/alertrelabelconfig.go
@@ -3,21 +3,21 @@
package v1
import (
- apimonitoringv1 "github.com/openshift/api/monitoring/v1"
+ monitoringv1 "github.com/openshift/api/monitoring/v1"
internal "github.com/openshift/client-go/monitoring/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// AlertRelabelConfigApplyConfiguration represents a declarative configuration of the AlertRelabelConfig type for use
// with apply.
type AlertRelabelConfigApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *AlertRelabelConfigSpecApplyConfiguration `json:"spec,omitempty"`
- Status *AlertRelabelConfigStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *AlertRelabelConfigSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *AlertRelabelConfigStatusApplyConfiguration `json:"status,omitempty"`
}
// AlertRelabelConfig constructs a declarative configuration of the AlertRelabelConfig type for use with
@@ -42,18 +42,18 @@ func AlertRelabelConfig(name, namespace string) *AlertRelabelConfigApplyConfigur
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractAlertRelabelConfig(alertRelabelConfig *apimonitoringv1.AlertRelabelConfig, fieldManager string) (*AlertRelabelConfigApplyConfiguration, error) {
+func ExtractAlertRelabelConfig(alertRelabelConfig *monitoringv1.AlertRelabelConfig, fieldManager string) (*AlertRelabelConfigApplyConfiguration, error) {
return extractAlertRelabelConfig(alertRelabelConfig, fieldManager, "")
}
// ExtractAlertRelabelConfigStatus is the same as ExtractAlertRelabelConfig except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractAlertRelabelConfigStatus(alertRelabelConfig *apimonitoringv1.AlertRelabelConfig, fieldManager string) (*AlertRelabelConfigApplyConfiguration, error) {
+func ExtractAlertRelabelConfigStatus(alertRelabelConfig *monitoringv1.AlertRelabelConfig, fieldManager string) (*AlertRelabelConfigApplyConfiguration, error) {
return extractAlertRelabelConfig(alertRelabelConfig, fieldManager, "status")
}
-func extractAlertRelabelConfig(alertRelabelConfig *apimonitoringv1.AlertRelabelConfig, fieldManager string, subresource string) (*AlertRelabelConfigApplyConfiguration, error) {
+func extractAlertRelabelConfig(alertRelabelConfig *monitoringv1.AlertRelabelConfig, fieldManager string, subresource string) (*AlertRelabelConfigApplyConfiguration, error) {
b := &AlertRelabelConfigApplyConfiguration{}
err := managedfields.ExtractInto(alertRelabelConfig, internal.Parser().Type("com.github.openshift.api.monitoring.v1.AlertRelabelConfig"), fieldManager, b, subresource)
if err != nil {
@@ -71,7 +71,7 @@ func extractAlertRelabelConfig(alertRelabelConfig *apimonitoringv1.AlertRelabelC
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *AlertRelabelConfigApplyConfiguration) WithKind(value string) *AlertRelabelConfigApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -79,7 +79,7 @@ func (b *AlertRelabelConfigApplyConfiguration) WithKind(value string) *AlertRela
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *AlertRelabelConfigApplyConfiguration) WithAPIVersion(value string) *AlertRelabelConfigApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -88,7 +88,7 @@ func (b *AlertRelabelConfigApplyConfiguration) WithAPIVersion(value string) *Ale
// If called multiple times, the Name field is set to the value of the last call.
func (b *AlertRelabelConfigApplyConfiguration) WithName(value string) *AlertRelabelConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -97,7 +97,7 @@ func (b *AlertRelabelConfigApplyConfiguration) WithName(value string) *AlertRela
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *AlertRelabelConfigApplyConfiguration) WithGenerateName(value string) *AlertRelabelConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -106,7 +106,7 @@ func (b *AlertRelabelConfigApplyConfiguration) WithGenerateName(value string) *A
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *AlertRelabelConfigApplyConfiguration) WithNamespace(value string) *AlertRelabelConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -115,7 +115,7 @@ func (b *AlertRelabelConfigApplyConfiguration) WithNamespace(value string) *Aler
// If called multiple times, the UID field is set to the value of the last call.
func (b *AlertRelabelConfigApplyConfiguration) WithUID(value types.UID) *AlertRelabelConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -124,7 +124,7 @@ func (b *AlertRelabelConfigApplyConfiguration) WithUID(value types.UID) *AlertRe
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *AlertRelabelConfigApplyConfiguration) WithResourceVersion(value string) *AlertRelabelConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -133,25 +133,25 @@ func (b *AlertRelabelConfigApplyConfiguration) WithResourceVersion(value string)
// If called multiple times, the Generation field is set to the value of the last call.
func (b *AlertRelabelConfigApplyConfiguration) WithGeneration(value int64) *AlertRelabelConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *AlertRelabelConfigApplyConfiguration) WithCreationTimestamp(value metav1.Time) *AlertRelabelConfigApplyConfiguration {
+func (b *AlertRelabelConfigApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *AlertRelabelConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *AlertRelabelConfigApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *AlertRelabelConfigApplyConfiguration {
+func (b *AlertRelabelConfigApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *AlertRelabelConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -160,7 +160,7 @@ func (b *AlertRelabelConfigApplyConfiguration) WithDeletionTimestamp(value metav
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *AlertRelabelConfigApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *AlertRelabelConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -170,11 +170,11 @@ func (b *AlertRelabelConfigApplyConfiguration) WithDeletionGracePeriodSeconds(va
// overwriting an existing map entries in Labels field with the same key.
func (b *AlertRelabelConfigApplyConfiguration) WithLabels(entries map[string]string) *AlertRelabelConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -185,11 +185,11 @@ func (b *AlertRelabelConfigApplyConfiguration) WithLabels(entries map[string]str
// overwriting an existing map entries in Annotations field with the same key.
func (b *AlertRelabelConfigApplyConfiguration) WithAnnotations(entries map[string]string) *AlertRelabelConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -197,13 +197,13 @@ func (b *AlertRelabelConfigApplyConfiguration) WithAnnotations(entries map[strin
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *AlertRelabelConfigApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *AlertRelabelConfigApplyConfiguration {
+func (b *AlertRelabelConfigApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *AlertRelabelConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -214,14 +214,14 @@ func (b *AlertRelabelConfigApplyConfiguration) WithOwnerReferences(values ...*v1
func (b *AlertRelabelConfigApplyConfiguration) WithFinalizers(values ...string) *AlertRelabelConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *AlertRelabelConfigApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -244,5 +244,5 @@ func (b *AlertRelabelConfigApplyConfiguration) WithStatus(value *AlertRelabelCon
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *AlertRelabelConfigApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/monitoring/applyconfigurations/monitoring/v1/alertrelabelconfigstatus.go b/monitoring/applyconfigurations/monitoring/v1/alertrelabelconfigstatus.go
index d1d6226d2..2d82be916 100644
--- a/monitoring/applyconfigurations/monitoring/v1/alertrelabelconfigstatus.go
+++ b/monitoring/applyconfigurations/monitoring/v1/alertrelabelconfigstatus.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// AlertRelabelConfigStatusApplyConfiguration represents a declarative configuration of the AlertRelabelConfigStatus type for use
// with apply.
type AlertRelabelConfigStatusApplyConfiguration struct {
- Conditions []v1.ConditionApplyConfiguration `json:"conditions,omitempty"`
+ Conditions []metav1.ConditionApplyConfiguration `json:"conditions,omitempty"`
}
// AlertRelabelConfigStatusApplyConfiguration constructs a declarative configuration of the AlertRelabelConfigStatus type for use with
@@ -21,7 +21,7 @@ func AlertRelabelConfigStatus() *AlertRelabelConfigStatusApplyConfiguration {
// WithConditions adds the given value to the Conditions field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Conditions field.
-func (b *AlertRelabelConfigStatusApplyConfiguration) WithConditions(values ...*v1.ConditionApplyConfiguration) *AlertRelabelConfigStatusApplyConfiguration {
+func (b *AlertRelabelConfigStatusApplyConfiguration) WithConditions(values ...*metav1.ConditionApplyConfiguration) *AlertRelabelConfigStatusApplyConfiguration {
for i := range values {
if values[i] == nil {
panic("nil value passed to WithConditions")
diff --git a/monitoring/applyconfigurations/monitoring/v1/relabelconfig.go b/monitoring/applyconfigurations/monitoring/v1/relabelconfig.go
index c05215fa9..eeca6f094 100644
--- a/monitoring/applyconfigurations/monitoring/v1/relabelconfig.go
+++ b/monitoring/applyconfigurations/monitoring/v1/relabelconfig.go
@@ -3,19 +3,19 @@
package v1
import (
- v1 "github.com/openshift/api/monitoring/v1"
+ monitoringv1 "github.com/openshift/api/monitoring/v1"
)
// RelabelConfigApplyConfiguration represents a declarative configuration of the RelabelConfig type for use
// with apply.
type RelabelConfigApplyConfiguration struct {
- SourceLabels []v1.LabelName `json:"sourceLabels,omitempty"`
- Separator *string `json:"separator,omitempty"`
- TargetLabel *string `json:"targetLabel,omitempty"`
- Regex *string `json:"regex,omitempty"`
- Modulus *uint64 `json:"modulus,omitempty"`
- Replacement *string `json:"replacement,omitempty"`
- Action *string `json:"action,omitempty"`
+ SourceLabels []monitoringv1.LabelName `json:"sourceLabels,omitempty"`
+ Separator *string `json:"separator,omitempty"`
+ TargetLabel *string `json:"targetLabel,omitempty"`
+ Regex *string `json:"regex,omitempty"`
+ Modulus *uint64 `json:"modulus,omitempty"`
+ Replacement *string `json:"replacement,omitempty"`
+ Action *string `json:"action,omitempty"`
}
// RelabelConfigApplyConfiguration constructs a declarative configuration of the RelabelConfig type for use with
@@ -27,7 +27,7 @@ func RelabelConfig() *RelabelConfigApplyConfiguration {
// WithSourceLabels adds the given value to the SourceLabels field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the SourceLabels field.
-func (b *RelabelConfigApplyConfiguration) WithSourceLabels(values ...v1.LabelName) *RelabelConfigApplyConfiguration {
+func (b *RelabelConfigApplyConfiguration) WithSourceLabels(values ...monitoringv1.LabelName) *RelabelConfigApplyConfiguration {
for i := range values {
b.SourceLabels = append(b.SourceLabels, values[i])
}
diff --git a/monitoring/applyconfigurations/monitoring/v1/rule.go b/monitoring/applyconfigurations/monitoring/v1/rule.go
index e3443c072..3f0161d69 100644
--- a/monitoring/applyconfigurations/monitoring/v1/rule.go
+++ b/monitoring/applyconfigurations/monitoring/v1/rule.go
@@ -3,18 +3,18 @@
package v1
import (
- v1 "github.com/openshift/api/monitoring/v1"
+ monitoringv1 "github.com/openshift/api/monitoring/v1"
intstr "k8s.io/apimachinery/pkg/util/intstr"
)
// RuleApplyConfiguration represents a declarative configuration of the Rule type for use
// with apply.
type RuleApplyConfiguration struct {
- Alert *string `json:"alert,omitempty"`
- Expr *intstr.IntOrString `json:"expr,omitempty"`
- For *v1.Duration `json:"for,omitempty"`
- Labels map[string]string `json:"labels,omitempty"`
- Annotations map[string]string `json:"annotations,omitempty"`
+ Alert *string `json:"alert,omitempty"`
+ Expr *intstr.IntOrString `json:"expr,omitempty"`
+ For *monitoringv1.Duration `json:"for,omitempty"`
+ Labels map[string]string `json:"labels,omitempty"`
+ Annotations map[string]string `json:"annotations,omitempty"`
}
// RuleApplyConfiguration constructs a declarative configuration of the Rule type for use with
@@ -42,7 +42,7 @@ func (b *RuleApplyConfiguration) WithExpr(value intstr.IntOrString) *RuleApplyCo
// WithFor sets the For field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the For field is set to the value of the last call.
-func (b *RuleApplyConfiguration) WithFor(value v1.Duration) *RuleApplyConfiguration {
+func (b *RuleApplyConfiguration) WithFor(value monitoringv1.Duration) *RuleApplyConfiguration {
b.For = &value
return b
}
diff --git a/monitoring/applyconfigurations/monitoring/v1/rulegroup.go b/monitoring/applyconfigurations/monitoring/v1/rulegroup.go
index 3d60554c3..a2ec525e1 100644
--- a/monitoring/applyconfigurations/monitoring/v1/rulegroup.go
+++ b/monitoring/applyconfigurations/monitoring/v1/rulegroup.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "github.com/openshift/api/monitoring/v1"
+ monitoringv1 "github.com/openshift/api/monitoring/v1"
)
// RuleGroupApplyConfiguration represents a declarative configuration of the RuleGroup type for use
// with apply.
type RuleGroupApplyConfiguration struct {
Name *string `json:"name,omitempty"`
- Interval *v1.Duration `json:"interval,omitempty"`
+ Interval *monitoringv1.Duration `json:"interval,omitempty"`
Rules []RuleApplyConfiguration `json:"rules,omitempty"`
}
@@ -31,7 +31,7 @@ func (b *RuleGroupApplyConfiguration) WithName(value string) *RuleGroupApplyConf
// WithInterval sets the Interval field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Interval field is set to the value of the last call.
-func (b *RuleGroupApplyConfiguration) WithInterval(value v1.Duration) *RuleGroupApplyConfiguration {
+func (b *RuleGroupApplyConfiguration) WithInterval(value monitoringv1.Duration) *RuleGroupApplyConfiguration {
b.Interval = &value
return b
}
diff --git a/monitoring/clientset/versioned/clientset.go b/monitoring/clientset/versioned/clientset.go
index a5f6ef508..d99b627bd 100644
--- a/monitoring/clientset/versioned/clientset.go
+++ b/monitoring/clientset/versioned/clientset.go
@@ -3,8 +3,8 @@
package versioned
import (
- "fmt"
- "net/http"
+ fmt "fmt"
+ http "net/http"
monitoringv1 "github.com/openshift/client-go/monitoring/clientset/versioned/typed/monitoring/v1"
discovery "k8s.io/client-go/discovery"
diff --git a/monitoring/clientset/versioned/typed/monitoring/v1/alertingrule.go b/monitoring/clientset/versioned/typed/monitoring/v1/alertingrule.go
index a258bb30d..e35f97bee 100644
--- a/monitoring/clientset/versioned/typed/monitoring/v1/alertingrule.go
+++ b/monitoring/clientset/versioned/typed/monitoring/v1/alertingrule.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/monitoring/v1"
- monitoringv1 "github.com/openshift/client-go/monitoring/applyconfigurations/monitoring/v1"
+ monitoringv1 "github.com/openshift/api/monitoring/v1"
+ applyconfigurationsmonitoringv1 "github.com/openshift/client-go/monitoring/applyconfigurations/monitoring/v1"
scheme "github.com/openshift/client-go/monitoring/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type AlertingRulesGetter interface {
// AlertingRuleInterface has methods to work with AlertingRule resources.
type AlertingRuleInterface interface {
- Create(ctx context.Context, alertingRule *v1.AlertingRule, opts metav1.CreateOptions) (*v1.AlertingRule, error)
- Update(ctx context.Context, alertingRule *v1.AlertingRule, opts metav1.UpdateOptions) (*v1.AlertingRule, error)
+ Create(ctx context.Context, alertingRule *monitoringv1.AlertingRule, opts metav1.CreateOptions) (*monitoringv1.AlertingRule, error)
+ Update(ctx context.Context, alertingRule *monitoringv1.AlertingRule, opts metav1.UpdateOptions) (*monitoringv1.AlertingRule, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, alertingRule *v1.AlertingRule, opts metav1.UpdateOptions) (*v1.AlertingRule, error)
+ UpdateStatus(ctx context.Context, alertingRule *monitoringv1.AlertingRule, opts metav1.UpdateOptions) (*monitoringv1.AlertingRule, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.AlertingRule, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.AlertingRuleList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*monitoringv1.AlertingRule, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*monitoringv1.AlertingRuleList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.AlertingRule, err error)
- Apply(ctx context.Context, alertingRule *monitoringv1.AlertingRuleApplyConfiguration, opts metav1.ApplyOptions) (result *v1.AlertingRule, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *monitoringv1.AlertingRule, err error)
+ Apply(ctx context.Context, alertingRule *applyconfigurationsmonitoringv1.AlertingRuleApplyConfiguration, opts metav1.ApplyOptions) (result *monitoringv1.AlertingRule, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, alertingRule *monitoringv1.AlertingRuleApplyConfiguration, opts metav1.ApplyOptions) (result *v1.AlertingRule, err error)
+ ApplyStatus(ctx context.Context, alertingRule *applyconfigurationsmonitoringv1.AlertingRuleApplyConfiguration, opts metav1.ApplyOptions) (result *monitoringv1.AlertingRule, err error)
AlertingRuleExpansion
}
// alertingRules implements AlertingRuleInterface
type alertingRules struct {
- *gentype.ClientWithListAndApply[*v1.AlertingRule, *v1.AlertingRuleList, *monitoringv1.AlertingRuleApplyConfiguration]
+ *gentype.ClientWithListAndApply[*monitoringv1.AlertingRule, *monitoringv1.AlertingRuleList, *applyconfigurationsmonitoringv1.AlertingRuleApplyConfiguration]
}
// newAlertingRules returns a AlertingRules
func newAlertingRules(c *MonitoringV1Client, namespace string) *alertingRules {
return &alertingRules{
- gentype.NewClientWithListAndApply[*v1.AlertingRule, *v1.AlertingRuleList, *monitoringv1.AlertingRuleApplyConfiguration](
+ gentype.NewClientWithListAndApply[*monitoringv1.AlertingRule, *monitoringv1.AlertingRuleList, *applyconfigurationsmonitoringv1.AlertingRuleApplyConfiguration](
"alertingrules",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
- func() *v1.AlertingRule { return &v1.AlertingRule{} },
- func() *v1.AlertingRuleList { return &v1.AlertingRuleList{} }),
+ func() *monitoringv1.AlertingRule { return &monitoringv1.AlertingRule{} },
+ func() *monitoringv1.AlertingRuleList { return &monitoringv1.AlertingRuleList{} },
+ ),
}
}
diff --git a/monitoring/clientset/versioned/typed/monitoring/v1/alertrelabelconfig.go b/monitoring/clientset/versioned/typed/monitoring/v1/alertrelabelconfig.go
index 71c4cc579..14e0d046d 100644
--- a/monitoring/clientset/versioned/typed/monitoring/v1/alertrelabelconfig.go
+++ b/monitoring/clientset/versioned/typed/monitoring/v1/alertrelabelconfig.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/monitoring/v1"
- monitoringv1 "github.com/openshift/client-go/monitoring/applyconfigurations/monitoring/v1"
+ monitoringv1 "github.com/openshift/api/monitoring/v1"
+ applyconfigurationsmonitoringv1 "github.com/openshift/client-go/monitoring/applyconfigurations/monitoring/v1"
scheme "github.com/openshift/client-go/monitoring/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type AlertRelabelConfigsGetter interface {
// AlertRelabelConfigInterface has methods to work with AlertRelabelConfig resources.
type AlertRelabelConfigInterface interface {
- Create(ctx context.Context, alertRelabelConfig *v1.AlertRelabelConfig, opts metav1.CreateOptions) (*v1.AlertRelabelConfig, error)
- Update(ctx context.Context, alertRelabelConfig *v1.AlertRelabelConfig, opts metav1.UpdateOptions) (*v1.AlertRelabelConfig, error)
+ Create(ctx context.Context, alertRelabelConfig *monitoringv1.AlertRelabelConfig, opts metav1.CreateOptions) (*monitoringv1.AlertRelabelConfig, error)
+ Update(ctx context.Context, alertRelabelConfig *monitoringv1.AlertRelabelConfig, opts metav1.UpdateOptions) (*monitoringv1.AlertRelabelConfig, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, alertRelabelConfig *v1.AlertRelabelConfig, opts metav1.UpdateOptions) (*v1.AlertRelabelConfig, error)
+ UpdateStatus(ctx context.Context, alertRelabelConfig *monitoringv1.AlertRelabelConfig, opts metav1.UpdateOptions) (*monitoringv1.AlertRelabelConfig, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.AlertRelabelConfig, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.AlertRelabelConfigList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*monitoringv1.AlertRelabelConfig, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*monitoringv1.AlertRelabelConfigList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.AlertRelabelConfig, err error)
- Apply(ctx context.Context, alertRelabelConfig *monitoringv1.AlertRelabelConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.AlertRelabelConfig, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *monitoringv1.AlertRelabelConfig, err error)
+ Apply(ctx context.Context, alertRelabelConfig *applyconfigurationsmonitoringv1.AlertRelabelConfigApplyConfiguration, opts metav1.ApplyOptions) (result *monitoringv1.AlertRelabelConfig, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, alertRelabelConfig *monitoringv1.AlertRelabelConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.AlertRelabelConfig, err error)
+ ApplyStatus(ctx context.Context, alertRelabelConfig *applyconfigurationsmonitoringv1.AlertRelabelConfigApplyConfiguration, opts metav1.ApplyOptions) (result *monitoringv1.AlertRelabelConfig, err error)
AlertRelabelConfigExpansion
}
// alertRelabelConfigs implements AlertRelabelConfigInterface
type alertRelabelConfigs struct {
- *gentype.ClientWithListAndApply[*v1.AlertRelabelConfig, *v1.AlertRelabelConfigList, *monitoringv1.AlertRelabelConfigApplyConfiguration]
+ *gentype.ClientWithListAndApply[*monitoringv1.AlertRelabelConfig, *monitoringv1.AlertRelabelConfigList, *applyconfigurationsmonitoringv1.AlertRelabelConfigApplyConfiguration]
}
// newAlertRelabelConfigs returns a AlertRelabelConfigs
func newAlertRelabelConfigs(c *MonitoringV1Client, namespace string) *alertRelabelConfigs {
return &alertRelabelConfigs{
- gentype.NewClientWithListAndApply[*v1.AlertRelabelConfig, *v1.AlertRelabelConfigList, *monitoringv1.AlertRelabelConfigApplyConfiguration](
+ gentype.NewClientWithListAndApply[*monitoringv1.AlertRelabelConfig, *monitoringv1.AlertRelabelConfigList, *applyconfigurationsmonitoringv1.AlertRelabelConfigApplyConfiguration](
"alertrelabelconfigs",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
- func() *v1.AlertRelabelConfig { return &v1.AlertRelabelConfig{} },
- func() *v1.AlertRelabelConfigList { return &v1.AlertRelabelConfigList{} }),
+ func() *monitoringv1.AlertRelabelConfig { return &monitoringv1.AlertRelabelConfig{} },
+ func() *monitoringv1.AlertRelabelConfigList { return &monitoringv1.AlertRelabelConfigList{} },
+ ),
}
}
diff --git a/monitoring/clientset/versioned/typed/monitoring/v1/fake/fake_alertingrule.go b/monitoring/clientset/versioned/typed/monitoring/v1/fake/fake_alertingrule.go
index ca67c1587..3f4f8a756 100644
--- a/monitoring/clientset/versioned/typed/monitoring/v1/fake/fake_alertingrule.go
+++ b/monitoring/clientset/versioned/typed/monitoring/v1/fake/fake_alertingrule.go
@@ -3,179 +3,33 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/monitoring/v1"
monitoringv1 "github.com/openshift/client-go/monitoring/applyconfigurations/monitoring/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedmonitoringv1 "github.com/openshift/client-go/monitoring/clientset/versioned/typed/monitoring/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeAlertingRules implements AlertingRuleInterface
-type FakeAlertingRules struct {
+// fakeAlertingRules implements AlertingRuleInterface
+type fakeAlertingRules struct {
+ *gentype.FakeClientWithListAndApply[*v1.AlertingRule, *v1.AlertingRuleList, *monitoringv1.AlertingRuleApplyConfiguration]
Fake *FakeMonitoringV1
- ns string
-}
-
-var alertingrulesResource = v1.SchemeGroupVersion.WithResource("alertingrules")
-
-var alertingrulesKind = v1.SchemeGroupVersion.WithKind("AlertingRule")
-
-// Get takes name of the alertingRule, and returns the corresponding alertingRule object, and an error if there is any.
-func (c *FakeAlertingRules) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.AlertingRule, err error) {
- emptyResult := &v1.AlertingRule{}
- obj, err := c.Fake.
- Invokes(testing.NewGetActionWithOptions(alertingrulesResource, c.ns, name, options), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.AlertingRule), err
-}
-
-// List takes label and field selectors, and returns the list of AlertingRules that match those selectors.
-func (c *FakeAlertingRules) List(ctx context.Context, opts metav1.ListOptions) (result *v1.AlertingRuleList, err error) {
- emptyResult := &v1.AlertingRuleList{}
- obj, err := c.Fake.
- Invokes(testing.NewListActionWithOptions(alertingrulesResource, alertingrulesKind, c.ns, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.AlertingRuleList{ListMeta: obj.(*v1.AlertingRuleList).ListMeta}
- for _, item := range obj.(*v1.AlertingRuleList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested alertingRules.
-func (c *FakeAlertingRules) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewWatchActionWithOptions(alertingrulesResource, c.ns, opts))
-
-}
-
-// Create takes the representation of a alertingRule and creates it. Returns the server's representation of the alertingRule, and an error, if there is any.
-func (c *FakeAlertingRules) Create(ctx context.Context, alertingRule *v1.AlertingRule, opts metav1.CreateOptions) (result *v1.AlertingRule, err error) {
- emptyResult := &v1.AlertingRule{}
- obj, err := c.Fake.
- Invokes(testing.NewCreateActionWithOptions(alertingrulesResource, c.ns, alertingRule, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.AlertingRule), err
-}
-
-// Update takes the representation of a alertingRule and updates it. Returns the server's representation of the alertingRule, and an error, if there is any.
-func (c *FakeAlertingRules) Update(ctx context.Context, alertingRule *v1.AlertingRule, opts metav1.UpdateOptions) (result *v1.AlertingRule, err error) {
- emptyResult := &v1.AlertingRule{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateActionWithOptions(alertingrulesResource, c.ns, alertingRule, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.AlertingRule), err
}
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeAlertingRules) UpdateStatus(ctx context.Context, alertingRule *v1.AlertingRule, opts metav1.UpdateOptions) (result *v1.AlertingRule, err error) {
- emptyResult := &v1.AlertingRule{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateSubresourceActionWithOptions(alertingrulesResource, "status", c.ns, alertingRule, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.AlertingRule), err
-}
-
-// Delete takes name of the alertingRule and deletes it. Returns an error if one occurs.
-func (c *FakeAlertingRules) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewDeleteActionWithOptions(alertingrulesResource, c.ns, name, opts), &v1.AlertingRule{})
-
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeAlertingRules) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewDeleteCollectionActionWithOptions(alertingrulesResource, c.ns, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.AlertingRuleList{})
- return err
-}
-
-// Patch applies the patch and returns the patched alertingRule.
-func (c *FakeAlertingRules) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.AlertingRule, err error) {
- emptyResult := &v1.AlertingRule{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(alertingrulesResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.AlertingRule), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied alertingRule.
-func (c *FakeAlertingRules) Apply(ctx context.Context, alertingRule *monitoringv1.AlertingRuleApplyConfiguration, opts metav1.ApplyOptions) (result *v1.AlertingRule, err error) {
- if alertingRule == nil {
- return nil, fmt.Errorf("alertingRule provided to Apply must not be nil")
- }
- data, err := json.Marshal(alertingRule)
- if err != nil {
- return nil, err
- }
- name := alertingRule.Name
- if name == nil {
- return nil, fmt.Errorf("alertingRule.Name must be provided to Apply")
- }
- emptyResult := &v1.AlertingRule{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(alertingrulesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.AlertingRule), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeAlertingRules) ApplyStatus(ctx context.Context, alertingRule *monitoringv1.AlertingRuleApplyConfiguration, opts metav1.ApplyOptions) (result *v1.AlertingRule, err error) {
- if alertingRule == nil {
- return nil, fmt.Errorf("alertingRule provided to Apply must not be nil")
- }
- data, err := json.Marshal(alertingRule)
- if err != nil {
- return nil, err
- }
- name := alertingRule.Name
- if name == nil {
- return nil, fmt.Errorf("alertingRule.Name must be provided to Apply")
- }
- emptyResult := &v1.AlertingRule{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(alertingrulesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
-
- if obj == nil {
- return emptyResult, err
+func newFakeAlertingRules(fake *FakeMonitoringV1, namespace string) typedmonitoringv1.AlertingRuleInterface {
+ return &fakeAlertingRules{
+ gentype.NewFakeClientWithListAndApply[*v1.AlertingRule, *v1.AlertingRuleList, *monitoringv1.AlertingRuleApplyConfiguration](
+ fake.Fake,
+ namespace,
+ v1.SchemeGroupVersion.WithResource("alertingrules"),
+ v1.SchemeGroupVersion.WithKind("AlertingRule"),
+ func() *v1.AlertingRule { return &v1.AlertingRule{} },
+ func() *v1.AlertingRuleList { return &v1.AlertingRuleList{} },
+ func(dst, src *v1.AlertingRuleList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.AlertingRuleList) []*v1.AlertingRule { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.AlertingRuleList, items []*v1.AlertingRule) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.AlertingRule), err
}
diff --git a/monitoring/clientset/versioned/typed/monitoring/v1/fake/fake_alertrelabelconfig.go b/monitoring/clientset/versioned/typed/monitoring/v1/fake/fake_alertrelabelconfig.go
index 04ec187d2..fea2b9bf5 100644
--- a/monitoring/clientset/versioned/typed/monitoring/v1/fake/fake_alertrelabelconfig.go
+++ b/monitoring/clientset/versioned/typed/monitoring/v1/fake/fake_alertrelabelconfig.go
@@ -3,179 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/monitoring/v1"
monitoringv1 "github.com/openshift/client-go/monitoring/applyconfigurations/monitoring/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedmonitoringv1 "github.com/openshift/client-go/monitoring/clientset/versioned/typed/monitoring/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeAlertRelabelConfigs implements AlertRelabelConfigInterface
-type FakeAlertRelabelConfigs struct {
+// fakeAlertRelabelConfigs implements AlertRelabelConfigInterface
+type fakeAlertRelabelConfigs struct {
+ *gentype.FakeClientWithListAndApply[*v1.AlertRelabelConfig, *v1.AlertRelabelConfigList, *monitoringv1.AlertRelabelConfigApplyConfiguration]
Fake *FakeMonitoringV1
- ns string
-}
-
-var alertrelabelconfigsResource = v1.SchemeGroupVersion.WithResource("alertrelabelconfigs")
-
-var alertrelabelconfigsKind = v1.SchemeGroupVersion.WithKind("AlertRelabelConfig")
-
-// Get takes name of the alertRelabelConfig, and returns the corresponding alertRelabelConfig object, and an error if there is any.
-func (c *FakeAlertRelabelConfigs) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.AlertRelabelConfig, err error) {
- emptyResult := &v1.AlertRelabelConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewGetActionWithOptions(alertrelabelconfigsResource, c.ns, name, options), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.AlertRelabelConfig), err
-}
-
-// List takes label and field selectors, and returns the list of AlertRelabelConfigs that match those selectors.
-func (c *FakeAlertRelabelConfigs) List(ctx context.Context, opts metav1.ListOptions) (result *v1.AlertRelabelConfigList, err error) {
- emptyResult := &v1.AlertRelabelConfigList{}
- obj, err := c.Fake.
- Invokes(testing.NewListActionWithOptions(alertrelabelconfigsResource, alertrelabelconfigsKind, c.ns, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.AlertRelabelConfigList{ListMeta: obj.(*v1.AlertRelabelConfigList).ListMeta}
- for _, item := range obj.(*v1.AlertRelabelConfigList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested alertRelabelConfigs.
-func (c *FakeAlertRelabelConfigs) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewWatchActionWithOptions(alertrelabelconfigsResource, c.ns, opts))
-
-}
-
-// Create takes the representation of a alertRelabelConfig and creates it. Returns the server's representation of the alertRelabelConfig, and an error, if there is any.
-func (c *FakeAlertRelabelConfigs) Create(ctx context.Context, alertRelabelConfig *v1.AlertRelabelConfig, opts metav1.CreateOptions) (result *v1.AlertRelabelConfig, err error) {
- emptyResult := &v1.AlertRelabelConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewCreateActionWithOptions(alertrelabelconfigsResource, c.ns, alertRelabelConfig, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.AlertRelabelConfig), err
-}
-
-// Update takes the representation of a alertRelabelConfig and updates it. Returns the server's representation of the alertRelabelConfig, and an error, if there is any.
-func (c *FakeAlertRelabelConfigs) Update(ctx context.Context, alertRelabelConfig *v1.AlertRelabelConfig, opts metav1.UpdateOptions) (result *v1.AlertRelabelConfig, err error) {
- emptyResult := &v1.AlertRelabelConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateActionWithOptions(alertrelabelconfigsResource, c.ns, alertRelabelConfig, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.AlertRelabelConfig), err
}
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeAlertRelabelConfigs) UpdateStatus(ctx context.Context, alertRelabelConfig *v1.AlertRelabelConfig, opts metav1.UpdateOptions) (result *v1.AlertRelabelConfig, err error) {
- emptyResult := &v1.AlertRelabelConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateSubresourceActionWithOptions(alertrelabelconfigsResource, "status", c.ns, alertRelabelConfig, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.AlertRelabelConfig), err
-}
-
-// Delete takes name of the alertRelabelConfig and deletes it. Returns an error if one occurs.
-func (c *FakeAlertRelabelConfigs) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewDeleteActionWithOptions(alertrelabelconfigsResource, c.ns, name, opts), &v1.AlertRelabelConfig{})
-
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeAlertRelabelConfigs) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewDeleteCollectionActionWithOptions(alertrelabelconfigsResource, c.ns, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.AlertRelabelConfigList{})
- return err
-}
-
-// Patch applies the patch and returns the patched alertRelabelConfig.
-func (c *FakeAlertRelabelConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.AlertRelabelConfig, err error) {
- emptyResult := &v1.AlertRelabelConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(alertrelabelconfigsResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.AlertRelabelConfig), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied alertRelabelConfig.
-func (c *FakeAlertRelabelConfigs) Apply(ctx context.Context, alertRelabelConfig *monitoringv1.AlertRelabelConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.AlertRelabelConfig, err error) {
- if alertRelabelConfig == nil {
- return nil, fmt.Errorf("alertRelabelConfig provided to Apply must not be nil")
- }
- data, err := json.Marshal(alertRelabelConfig)
- if err != nil {
- return nil, err
- }
- name := alertRelabelConfig.Name
- if name == nil {
- return nil, fmt.Errorf("alertRelabelConfig.Name must be provided to Apply")
- }
- emptyResult := &v1.AlertRelabelConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(alertrelabelconfigsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.AlertRelabelConfig), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeAlertRelabelConfigs) ApplyStatus(ctx context.Context, alertRelabelConfig *monitoringv1.AlertRelabelConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.AlertRelabelConfig, err error) {
- if alertRelabelConfig == nil {
- return nil, fmt.Errorf("alertRelabelConfig provided to Apply must not be nil")
- }
- data, err := json.Marshal(alertRelabelConfig)
- if err != nil {
- return nil, err
- }
- name := alertRelabelConfig.Name
- if name == nil {
- return nil, fmt.Errorf("alertRelabelConfig.Name must be provided to Apply")
- }
- emptyResult := &v1.AlertRelabelConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(alertrelabelconfigsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
-
- if obj == nil {
- return emptyResult, err
+func newFakeAlertRelabelConfigs(fake *FakeMonitoringV1, namespace string) typedmonitoringv1.AlertRelabelConfigInterface {
+ return &fakeAlertRelabelConfigs{
+ gentype.NewFakeClientWithListAndApply[*v1.AlertRelabelConfig, *v1.AlertRelabelConfigList, *monitoringv1.AlertRelabelConfigApplyConfiguration](
+ fake.Fake,
+ namespace,
+ v1.SchemeGroupVersion.WithResource("alertrelabelconfigs"),
+ v1.SchemeGroupVersion.WithKind("AlertRelabelConfig"),
+ func() *v1.AlertRelabelConfig { return &v1.AlertRelabelConfig{} },
+ func() *v1.AlertRelabelConfigList { return &v1.AlertRelabelConfigList{} },
+ func(dst, src *v1.AlertRelabelConfigList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.AlertRelabelConfigList) []*v1.AlertRelabelConfig {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1.AlertRelabelConfigList, items []*v1.AlertRelabelConfig) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.AlertRelabelConfig), err
}
diff --git a/monitoring/clientset/versioned/typed/monitoring/v1/fake/fake_monitoring_client.go b/monitoring/clientset/versioned/typed/monitoring/v1/fake/fake_monitoring_client.go
index 5d4b9e97d..f6ebb6eb8 100644
--- a/monitoring/clientset/versioned/typed/monitoring/v1/fake/fake_monitoring_client.go
+++ b/monitoring/clientset/versioned/typed/monitoring/v1/fake/fake_monitoring_client.go
@@ -13,11 +13,11 @@ type FakeMonitoringV1 struct {
}
func (c *FakeMonitoringV1) AlertRelabelConfigs(namespace string) v1.AlertRelabelConfigInterface {
- return &FakeAlertRelabelConfigs{c, namespace}
+ return newFakeAlertRelabelConfigs(c, namespace)
}
func (c *FakeMonitoringV1) AlertingRules(namespace string) v1.AlertingRuleInterface {
- return &FakeAlertingRules{c, namespace}
+ return newFakeAlertingRules(c, namespace)
}
// RESTClient returns a RESTClient that is used to communicate
diff --git a/monitoring/clientset/versioned/typed/monitoring/v1/monitoring_client.go b/monitoring/clientset/versioned/typed/monitoring/v1/monitoring_client.go
index a6768a353..b71db6c5d 100644
--- a/monitoring/clientset/versioned/typed/monitoring/v1/monitoring_client.go
+++ b/monitoring/clientset/versioned/typed/monitoring/v1/monitoring_client.go
@@ -3,10 +3,10 @@
package v1
import (
- "net/http"
+ http "net/http"
- v1 "github.com/openshift/api/monitoring/v1"
- "github.com/openshift/client-go/monitoring/clientset/versioned/scheme"
+ monitoringv1 "github.com/openshift/api/monitoring/v1"
+ scheme "github.com/openshift/client-go/monitoring/clientset/versioned/scheme"
rest "k8s.io/client-go/rest"
)
@@ -74,10 +74,10 @@ func New(c rest.Interface) *MonitoringV1Client {
}
func setConfigDefaults(config *rest.Config) error {
- gv := v1.SchemeGroupVersion
+ gv := monitoringv1.SchemeGroupVersion
config.GroupVersion = &gv
config.APIPath = "/apis"
- config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
+ config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion()
if config.UserAgent == "" {
config.UserAgent = rest.DefaultKubernetesUserAgent()
diff --git a/monitoring/informers/externalversions/generic.go b/monitoring/informers/externalversions/generic.go
index 03bdced3c..cfbbdb7e3 100644
--- a/monitoring/informers/externalversions/generic.go
+++ b/monitoring/informers/externalversions/generic.go
@@ -3,7 +3,7 @@
package externalversions
import (
- "fmt"
+ fmt "fmt"
v1 "github.com/openshift/api/monitoring/v1"
schema "k8s.io/apimachinery/pkg/runtime/schema"
diff --git a/monitoring/informers/externalversions/monitoring/v1/alertingrule.go b/monitoring/informers/externalversions/monitoring/v1/alertingrule.go
index 5a4db71ec..96aaa4c93 100644
--- a/monitoring/informers/externalversions/monitoring/v1/alertingrule.go
+++ b/monitoring/informers/externalversions/monitoring/v1/alertingrule.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- monitoringv1 "github.com/openshift/api/monitoring/v1"
+ apimonitoringv1 "github.com/openshift/api/monitoring/v1"
versioned "github.com/openshift/client-go/monitoring/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/monitoring/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/monitoring/listers/monitoring/v1"
+ monitoringv1 "github.com/openshift/client-go/monitoring/listers/monitoring/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// AlertingRules.
type AlertingRuleInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.AlertingRuleLister
+ Lister() monitoringv1.AlertingRuleLister
}
type alertingRuleInformer struct {
@@ -55,7 +55,7 @@ func NewFilteredAlertingRuleInformer(client versioned.Interface, namespace strin
return client.MonitoringV1().AlertingRules(namespace).Watch(context.TODO(), options)
},
},
- &monitoringv1.AlertingRule{},
+ &apimonitoringv1.AlertingRule{},
resyncPeriod,
indexers,
)
@@ -66,9 +66,9 @@ func (f *alertingRuleInformer) defaultInformer(client versioned.Interface, resyn
}
func (f *alertingRuleInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&monitoringv1.AlertingRule{}, f.defaultInformer)
+ return f.factory.InformerFor(&apimonitoringv1.AlertingRule{}, f.defaultInformer)
}
-func (f *alertingRuleInformer) Lister() v1.AlertingRuleLister {
- return v1.NewAlertingRuleLister(f.Informer().GetIndexer())
+func (f *alertingRuleInformer) Lister() monitoringv1.AlertingRuleLister {
+ return monitoringv1.NewAlertingRuleLister(f.Informer().GetIndexer())
}
diff --git a/monitoring/informers/externalversions/monitoring/v1/alertrelabelconfig.go b/monitoring/informers/externalversions/monitoring/v1/alertrelabelconfig.go
index 033dd01e2..209ae33d6 100644
--- a/monitoring/informers/externalversions/monitoring/v1/alertrelabelconfig.go
+++ b/monitoring/informers/externalversions/monitoring/v1/alertrelabelconfig.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- monitoringv1 "github.com/openshift/api/monitoring/v1"
+ apimonitoringv1 "github.com/openshift/api/monitoring/v1"
versioned "github.com/openshift/client-go/monitoring/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/monitoring/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/monitoring/listers/monitoring/v1"
+ monitoringv1 "github.com/openshift/client-go/monitoring/listers/monitoring/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// AlertRelabelConfigs.
type AlertRelabelConfigInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.AlertRelabelConfigLister
+ Lister() monitoringv1.AlertRelabelConfigLister
}
type alertRelabelConfigInformer struct {
@@ -55,7 +55,7 @@ func NewFilteredAlertRelabelConfigInformer(client versioned.Interface, namespace
return client.MonitoringV1().AlertRelabelConfigs(namespace).Watch(context.TODO(), options)
},
},
- &monitoringv1.AlertRelabelConfig{},
+ &apimonitoringv1.AlertRelabelConfig{},
resyncPeriod,
indexers,
)
@@ -66,9 +66,9 @@ func (f *alertRelabelConfigInformer) defaultInformer(client versioned.Interface,
}
func (f *alertRelabelConfigInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&monitoringv1.AlertRelabelConfig{}, f.defaultInformer)
+ return f.factory.InformerFor(&apimonitoringv1.AlertRelabelConfig{}, f.defaultInformer)
}
-func (f *alertRelabelConfigInformer) Lister() v1.AlertRelabelConfigLister {
- return v1.NewAlertRelabelConfigLister(f.Informer().GetIndexer())
+func (f *alertRelabelConfigInformer) Lister() monitoringv1.AlertRelabelConfigLister {
+ return monitoringv1.NewAlertRelabelConfigLister(f.Informer().GetIndexer())
}
diff --git a/monitoring/listers/monitoring/v1/alertingrule.go b/monitoring/listers/monitoring/v1/alertingrule.go
index 917822314..7e1e96e6d 100644
--- a/monitoring/listers/monitoring/v1/alertingrule.go
+++ b/monitoring/listers/monitoring/v1/alertingrule.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/monitoring/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ monitoringv1 "github.com/openshift/api/monitoring/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// AlertingRuleLister helps list AlertingRules.
@@ -14,7 +14,7 @@ import (
type AlertingRuleLister interface {
// List lists all AlertingRules in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.AlertingRule, err error)
+ List(selector labels.Selector) (ret []*monitoringv1.AlertingRule, err error)
// AlertingRules returns an object that can list and get AlertingRules.
AlertingRules(namespace string) AlertingRuleNamespaceLister
AlertingRuleListerExpansion
@@ -22,17 +22,17 @@ type AlertingRuleLister interface {
// alertingRuleLister implements the AlertingRuleLister interface.
type alertingRuleLister struct {
- listers.ResourceIndexer[*v1.AlertingRule]
+ listers.ResourceIndexer[*monitoringv1.AlertingRule]
}
// NewAlertingRuleLister returns a new AlertingRuleLister.
func NewAlertingRuleLister(indexer cache.Indexer) AlertingRuleLister {
- return &alertingRuleLister{listers.New[*v1.AlertingRule](indexer, v1.Resource("alertingrule"))}
+ return &alertingRuleLister{listers.New[*monitoringv1.AlertingRule](indexer, monitoringv1.Resource("alertingrule"))}
}
// AlertingRules returns an object that can list and get AlertingRules.
func (s *alertingRuleLister) AlertingRules(namespace string) AlertingRuleNamespaceLister {
- return alertingRuleNamespaceLister{listers.NewNamespaced[*v1.AlertingRule](s.ResourceIndexer, namespace)}
+ return alertingRuleNamespaceLister{listers.NewNamespaced[*monitoringv1.AlertingRule](s.ResourceIndexer, namespace)}
}
// AlertingRuleNamespaceLister helps list and get AlertingRules.
@@ -40,15 +40,15 @@ func (s *alertingRuleLister) AlertingRules(namespace string) AlertingRuleNamespa
type AlertingRuleNamespaceLister interface {
// List lists all AlertingRules in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.AlertingRule, err error)
+ List(selector labels.Selector) (ret []*monitoringv1.AlertingRule, err error)
// Get retrieves the AlertingRule from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.AlertingRule, error)
+ Get(name string) (*monitoringv1.AlertingRule, error)
AlertingRuleNamespaceListerExpansion
}
// alertingRuleNamespaceLister implements the AlertingRuleNamespaceLister
// interface.
type alertingRuleNamespaceLister struct {
- listers.ResourceIndexer[*v1.AlertingRule]
+ listers.ResourceIndexer[*monitoringv1.AlertingRule]
}
diff --git a/monitoring/listers/monitoring/v1/alertrelabelconfig.go b/monitoring/listers/monitoring/v1/alertrelabelconfig.go
index d3ff939aa..34e55aae1 100644
--- a/monitoring/listers/monitoring/v1/alertrelabelconfig.go
+++ b/monitoring/listers/monitoring/v1/alertrelabelconfig.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/monitoring/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ monitoringv1 "github.com/openshift/api/monitoring/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// AlertRelabelConfigLister helps list AlertRelabelConfigs.
@@ -14,7 +14,7 @@ import (
type AlertRelabelConfigLister interface {
// List lists all AlertRelabelConfigs in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.AlertRelabelConfig, err error)
+ List(selector labels.Selector) (ret []*monitoringv1.AlertRelabelConfig, err error)
// AlertRelabelConfigs returns an object that can list and get AlertRelabelConfigs.
AlertRelabelConfigs(namespace string) AlertRelabelConfigNamespaceLister
AlertRelabelConfigListerExpansion
@@ -22,17 +22,17 @@ type AlertRelabelConfigLister interface {
// alertRelabelConfigLister implements the AlertRelabelConfigLister interface.
type alertRelabelConfigLister struct {
- listers.ResourceIndexer[*v1.AlertRelabelConfig]
+ listers.ResourceIndexer[*monitoringv1.AlertRelabelConfig]
}
// NewAlertRelabelConfigLister returns a new AlertRelabelConfigLister.
func NewAlertRelabelConfigLister(indexer cache.Indexer) AlertRelabelConfigLister {
- return &alertRelabelConfigLister{listers.New[*v1.AlertRelabelConfig](indexer, v1.Resource("alertrelabelconfig"))}
+ return &alertRelabelConfigLister{listers.New[*monitoringv1.AlertRelabelConfig](indexer, monitoringv1.Resource("alertrelabelconfig"))}
}
// AlertRelabelConfigs returns an object that can list and get AlertRelabelConfigs.
func (s *alertRelabelConfigLister) AlertRelabelConfigs(namespace string) AlertRelabelConfigNamespaceLister {
- return alertRelabelConfigNamespaceLister{listers.NewNamespaced[*v1.AlertRelabelConfig](s.ResourceIndexer, namespace)}
+ return alertRelabelConfigNamespaceLister{listers.NewNamespaced[*monitoringv1.AlertRelabelConfig](s.ResourceIndexer, namespace)}
}
// AlertRelabelConfigNamespaceLister helps list and get AlertRelabelConfigs.
@@ -40,15 +40,15 @@ func (s *alertRelabelConfigLister) AlertRelabelConfigs(namespace string) AlertRe
type AlertRelabelConfigNamespaceLister interface {
// List lists all AlertRelabelConfigs in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.AlertRelabelConfig, err error)
+ List(selector labels.Selector) (ret []*monitoringv1.AlertRelabelConfig, err error)
// Get retrieves the AlertRelabelConfig from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.AlertRelabelConfig, error)
+ Get(name string) (*monitoringv1.AlertRelabelConfig, error)
AlertRelabelConfigNamespaceListerExpansion
}
// alertRelabelConfigNamespaceLister implements the AlertRelabelConfigNamespaceLister
// interface.
type alertRelabelConfigNamespaceLister struct {
- listers.ResourceIndexer[*v1.AlertRelabelConfig]
+ listers.ResourceIndexer[*monitoringv1.AlertRelabelConfig]
}
diff --git a/network/applyconfigurations/internal/internal.go b/network/applyconfigurations/internal/internal.go
index 294377e3c..e7ad2b8a2 100644
--- a/network/applyconfigurations/internal/internal.go
+++ b/network/applyconfigurations/internal/internal.go
@@ -3,8 +3,8 @@
package internal
import (
- "fmt"
- "sync"
+ fmt "fmt"
+ sync "sync"
typed "sigs.k8s.io/structured-merge-diff/v4/typed"
)
diff --git a/network/applyconfigurations/network/v1/clusternetwork.go b/network/applyconfigurations/network/v1/clusternetwork.go
index 4bb886512..c7df12fd8 100644
--- a/network/applyconfigurations/network/v1/clusternetwork.go
+++ b/network/applyconfigurations/network/v1/clusternetwork.go
@@ -3,26 +3,26 @@
package v1
import (
- apinetworkv1 "github.com/openshift/api/network/v1"
+ networkv1 "github.com/openshift/api/network/v1"
internal "github.com/openshift/client-go/network/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ClusterNetworkApplyConfiguration represents a declarative configuration of the ClusterNetwork type for use
// with apply.
type ClusterNetworkApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Network *string `json:"network,omitempty"`
- HostSubnetLength *uint32 `json:"hostsubnetlength,omitempty"`
- ServiceNetwork *string `json:"serviceNetwork,omitempty"`
- PluginName *string `json:"pluginName,omitempty"`
- ClusterNetworks []ClusterNetworkEntryApplyConfiguration `json:"clusterNetworks,omitempty"`
- VXLANPort *uint32 `json:"vxlanPort,omitempty"`
- MTU *uint32 `json:"mtu,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Network *string `json:"network,omitempty"`
+ HostSubnetLength *uint32 `json:"hostsubnetlength,omitempty"`
+ ServiceNetwork *string `json:"serviceNetwork,omitempty"`
+ PluginName *string `json:"pluginName,omitempty"`
+ ClusterNetworks []ClusterNetworkEntryApplyConfiguration `json:"clusterNetworks,omitempty"`
+ VXLANPort *uint32 `json:"vxlanPort,omitempty"`
+ MTU *uint32 `json:"mtu,omitempty"`
}
// ClusterNetwork constructs a declarative configuration of the ClusterNetwork type for use with
@@ -46,18 +46,18 @@ func ClusterNetwork(name string) *ClusterNetworkApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractClusterNetwork(clusterNetwork *apinetworkv1.ClusterNetwork, fieldManager string) (*ClusterNetworkApplyConfiguration, error) {
+func ExtractClusterNetwork(clusterNetwork *networkv1.ClusterNetwork, fieldManager string) (*ClusterNetworkApplyConfiguration, error) {
return extractClusterNetwork(clusterNetwork, fieldManager, "")
}
// ExtractClusterNetworkStatus is the same as ExtractClusterNetwork except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractClusterNetworkStatus(clusterNetwork *apinetworkv1.ClusterNetwork, fieldManager string) (*ClusterNetworkApplyConfiguration, error) {
+func ExtractClusterNetworkStatus(clusterNetwork *networkv1.ClusterNetwork, fieldManager string) (*ClusterNetworkApplyConfiguration, error) {
return extractClusterNetwork(clusterNetwork, fieldManager, "status")
}
-func extractClusterNetwork(clusterNetwork *apinetworkv1.ClusterNetwork, fieldManager string, subresource string) (*ClusterNetworkApplyConfiguration, error) {
+func extractClusterNetwork(clusterNetwork *networkv1.ClusterNetwork, fieldManager string, subresource string) (*ClusterNetworkApplyConfiguration, error) {
b := &ClusterNetworkApplyConfiguration{}
err := managedfields.ExtractInto(clusterNetwork, internal.Parser().Type("com.github.openshift.api.network.v1.ClusterNetwork"), fieldManager, b, subresource)
if err != nil {
@@ -74,7 +74,7 @@ func extractClusterNetwork(clusterNetwork *apinetworkv1.ClusterNetwork, fieldMan
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ClusterNetworkApplyConfiguration) WithKind(value string) *ClusterNetworkApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -82,7 +82,7 @@ func (b *ClusterNetworkApplyConfiguration) WithKind(value string) *ClusterNetwor
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ClusterNetworkApplyConfiguration) WithAPIVersion(value string) *ClusterNetworkApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -91,7 +91,7 @@ func (b *ClusterNetworkApplyConfiguration) WithAPIVersion(value string) *Cluster
// If called multiple times, the Name field is set to the value of the last call.
func (b *ClusterNetworkApplyConfiguration) WithName(value string) *ClusterNetworkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -100,7 +100,7 @@ func (b *ClusterNetworkApplyConfiguration) WithName(value string) *ClusterNetwor
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ClusterNetworkApplyConfiguration) WithGenerateName(value string) *ClusterNetworkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -109,7 +109,7 @@ func (b *ClusterNetworkApplyConfiguration) WithGenerateName(value string) *Clust
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ClusterNetworkApplyConfiguration) WithNamespace(value string) *ClusterNetworkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -118,7 +118,7 @@ func (b *ClusterNetworkApplyConfiguration) WithNamespace(value string) *ClusterN
// If called multiple times, the UID field is set to the value of the last call.
func (b *ClusterNetworkApplyConfiguration) WithUID(value types.UID) *ClusterNetworkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -127,7 +127,7 @@ func (b *ClusterNetworkApplyConfiguration) WithUID(value types.UID) *ClusterNetw
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ClusterNetworkApplyConfiguration) WithResourceVersion(value string) *ClusterNetworkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -136,25 +136,25 @@ func (b *ClusterNetworkApplyConfiguration) WithResourceVersion(value string) *Cl
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ClusterNetworkApplyConfiguration) WithGeneration(value int64) *ClusterNetworkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *ClusterNetworkApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ClusterNetworkApplyConfiguration {
+func (b *ClusterNetworkApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ClusterNetworkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *ClusterNetworkApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ClusterNetworkApplyConfiguration {
+func (b *ClusterNetworkApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ClusterNetworkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -163,7 +163,7 @@ func (b *ClusterNetworkApplyConfiguration) WithDeletionTimestamp(value metav1.Ti
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ClusterNetworkApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ClusterNetworkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -173,11 +173,11 @@ func (b *ClusterNetworkApplyConfiguration) WithDeletionGracePeriodSeconds(value
// overwriting an existing map entries in Labels field with the same key.
func (b *ClusterNetworkApplyConfiguration) WithLabels(entries map[string]string) *ClusterNetworkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -188,11 +188,11 @@ func (b *ClusterNetworkApplyConfiguration) WithLabels(entries map[string]string)
// overwriting an existing map entries in Annotations field with the same key.
func (b *ClusterNetworkApplyConfiguration) WithAnnotations(entries map[string]string) *ClusterNetworkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -200,13 +200,13 @@ func (b *ClusterNetworkApplyConfiguration) WithAnnotations(entries map[string]st
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *ClusterNetworkApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ClusterNetworkApplyConfiguration {
+func (b *ClusterNetworkApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ClusterNetworkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -217,14 +217,14 @@ func (b *ClusterNetworkApplyConfiguration) WithOwnerReferences(values ...*v1.Own
func (b *ClusterNetworkApplyConfiguration) WithFinalizers(values ...string) *ClusterNetworkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *ClusterNetworkApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -292,5 +292,5 @@ func (b *ClusterNetworkApplyConfiguration) WithMTU(value uint32) *ClusterNetwork
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ClusterNetworkApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/network/applyconfigurations/network/v1/egressnetworkpolicy.go b/network/applyconfigurations/network/v1/egressnetworkpolicy.go
index 2431570e0..a4d76be63 100644
--- a/network/applyconfigurations/network/v1/egressnetworkpolicy.go
+++ b/network/applyconfigurations/network/v1/egressnetworkpolicy.go
@@ -3,20 +3,20 @@
package v1
import (
- apinetworkv1 "github.com/openshift/api/network/v1"
+ networkv1 "github.com/openshift/api/network/v1"
internal "github.com/openshift/client-go/network/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// EgressNetworkPolicyApplyConfiguration represents a declarative configuration of the EgressNetworkPolicy type for use
// with apply.
type EgressNetworkPolicyApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *EgressNetworkPolicySpecApplyConfiguration `json:"spec,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *EgressNetworkPolicySpecApplyConfiguration `json:"spec,omitempty"`
}
// EgressNetworkPolicy constructs a declarative configuration of the EgressNetworkPolicy type for use with
@@ -41,18 +41,18 @@ func EgressNetworkPolicy(name, namespace string) *EgressNetworkPolicyApplyConfig
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractEgressNetworkPolicy(egressNetworkPolicy *apinetworkv1.EgressNetworkPolicy, fieldManager string) (*EgressNetworkPolicyApplyConfiguration, error) {
+func ExtractEgressNetworkPolicy(egressNetworkPolicy *networkv1.EgressNetworkPolicy, fieldManager string) (*EgressNetworkPolicyApplyConfiguration, error) {
return extractEgressNetworkPolicy(egressNetworkPolicy, fieldManager, "")
}
// ExtractEgressNetworkPolicyStatus is the same as ExtractEgressNetworkPolicy except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractEgressNetworkPolicyStatus(egressNetworkPolicy *apinetworkv1.EgressNetworkPolicy, fieldManager string) (*EgressNetworkPolicyApplyConfiguration, error) {
+func ExtractEgressNetworkPolicyStatus(egressNetworkPolicy *networkv1.EgressNetworkPolicy, fieldManager string) (*EgressNetworkPolicyApplyConfiguration, error) {
return extractEgressNetworkPolicy(egressNetworkPolicy, fieldManager, "status")
}
-func extractEgressNetworkPolicy(egressNetworkPolicy *apinetworkv1.EgressNetworkPolicy, fieldManager string, subresource string) (*EgressNetworkPolicyApplyConfiguration, error) {
+func extractEgressNetworkPolicy(egressNetworkPolicy *networkv1.EgressNetworkPolicy, fieldManager string, subresource string) (*EgressNetworkPolicyApplyConfiguration, error) {
b := &EgressNetworkPolicyApplyConfiguration{}
err := managedfields.ExtractInto(egressNetworkPolicy, internal.Parser().Type("com.github.openshift.api.network.v1.EgressNetworkPolicy"), fieldManager, b, subresource)
if err != nil {
@@ -70,7 +70,7 @@ func extractEgressNetworkPolicy(egressNetworkPolicy *apinetworkv1.EgressNetworkP
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *EgressNetworkPolicyApplyConfiguration) WithKind(value string) *EgressNetworkPolicyApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -78,7 +78,7 @@ func (b *EgressNetworkPolicyApplyConfiguration) WithKind(value string) *EgressNe
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *EgressNetworkPolicyApplyConfiguration) WithAPIVersion(value string) *EgressNetworkPolicyApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -87,7 +87,7 @@ func (b *EgressNetworkPolicyApplyConfiguration) WithAPIVersion(value string) *Eg
// If called multiple times, the Name field is set to the value of the last call.
func (b *EgressNetworkPolicyApplyConfiguration) WithName(value string) *EgressNetworkPolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -96,7 +96,7 @@ func (b *EgressNetworkPolicyApplyConfiguration) WithName(value string) *EgressNe
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *EgressNetworkPolicyApplyConfiguration) WithGenerateName(value string) *EgressNetworkPolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -105,7 +105,7 @@ func (b *EgressNetworkPolicyApplyConfiguration) WithGenerateName(value string) *
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *EgressNetworkPolicyApplyConfiguration) WithNamespace(value string) *EgressNetworkPolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -114,7 +114,7 @@ func (b *EgressNetworkPolicyApplyConfiguration) WithNamespace(value string) *Egr
// If called multiple times, the UID field is set to the value of the last call.
func (b *EgressNetworkPolicyApplyConfiguration) WithUID(value types.UID) *EgressNetworkPolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -123,7 +123,7 @@ func (b *EgressNetworkPolicyApplyConfiguration) WithUID(value types.UID) *Egress
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *EgressNetworkPolicyApplyConfiguration) WithResourceVersion(value string) *EgressNetworkPolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -132,25 +132,25 @@ func (b *EgressNetworkPolicyApplyConfiguration) WithResourceVersion(value string
// If called multiple times, the Generation field is set to the value of the last call.
func (b *EgressNetworkPolicyApplyConfiguration) WithGeneration(value int64) *EgressNetworkPolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *EgressNetworkPolicyApplyConfiguration) WithCreationTimestamp(value metav1.Time) *EgressNetworkPolicyApplyConfiguration {
+func (b *EgressNetworkPolicyApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *EgressNetworkPolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *EgressNetworkPolicyApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *EgressNetworkPolicyApplyConfiguration {
+func (b *EgressNetworkPolicyApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *EgressNetworkPolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -159,7 +159,7 @@ func (b *EgressNetworkPolicyApplyConfiguration) WithDeletionTimestamp(value meta
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *EgressNetworkPolicyApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *EgressNetworkPolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -169,11 +169,11 @@ func (b *EgressNetworkPolicyApplyConfiguration) WithDeletionGracePeriodSeconds(v
// overwriting an existing map entries in Labels field with the same key.
func (b *EgressNetworkPolicyApplyConfiguration) WithLabels(entries map[string]string) *EgressNetworkPolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -184,11 +184,11 @@ func (b *EgressNetworkPolicyApplyConfiguration) WithLabels(entries map[string]st
// overwriting an existing map entries in Annotations field with the same key.
func (b *EgressNetworkPolicyApplyConfiguration) WithAnnotations(entries map[string]string) *EgressNetworkPolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -196,13 +196,13 @@ func (b *EgressNetworkPolicyApplyConfiguration) WithAnnotations(entries map[stri
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *EgressNetworkPolicyApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *EgressNetworkPolicyApplyConfiguration {
+func (b *EgressNetworkPolicyApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *EgressNetworkPolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -213,14 +213,14 @@ func (b *EgressNetworkPolicyApplyConfiguration) WithOwnerReferences(values ...*v
func (b *EgressNetworkPolicyApplyConfiguration) WithFinalizers(values ...string) *EgressNetworkPolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *EgressNetworkPolicyApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -235,5 +235,5 @@ func (b *EgressNetworkPolicyApplyConfiguration) WithSpec(value *EgressNetworkPol
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *EgressNetworkPolicyApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/network/applyconfigurations/network/v1/egressnetworkpolicyrule.go b/network/applyconfigurations/network/v1/egressnetworkpolicyrule.go
index 1e77b877b..180697584 100644
--- a/network/applyconfigurations/network/v1/egressnetworkpolicyrule.go
+++ b/network/applyconfigurations/network/v1/egressnetworkpolicyrule.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/network/v1"
+ networkv1 "github.com/openshift/api/network/v1"
)
// EgressNetworkPolicyRuleApplyConfiguration represents a declarative configuration of the EgressNetworkPolicyRule type for use
// with apply.
type EgressNetworkPolicyRuleApplyConfiguration struct {
- Type *v1.EgressNetworkPolicyRuleType `json:"type,omitempty"`
+ Type *networkv1.EgressNetworkPolicyRuleType `json:"type,omitempty"`
To *EgressNetworkPolicyPeerApplyConfiguration `json:"to,omitempty"`
}
@@ -22,7 +22,7 @@ func EgressNetworkPolicyRule() *EgressNetworkPolicyRuleApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *EgressNetworkPolicyRuleApplyConfiguration) WithType(value v1.EgressNetworkPolicyRuleType) *EgressNetworkPolicyRuleApplyConfiguration {
+func (b *EgressNetworkPolicyRuleApplyConfiguration) WithType(value networkv1.EgressNetworkPolicyRuleType) *EgressNetworkPolicyRuleApplyConfiguration {
b.Type = &value
return b
}
diff --git a/network/applyconfigurations/network/v1/hostsubnet.go b/network/applyconfigurations/network/v1/hostsubnet.go
index 3889c5ac7..713fc7c63 100644
--- a/network/applyconfigurations/network/v1/hostsubnet.go
+++ b/network/applyconfigurations/network/v1/hostsubnet.go
@@ -5,22 +5,22 @@ package v1
import (
networkv1 "github.com/openshift/api/network/v1"
internal "github.com/openshift/client-go/network/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// HostSubnetApplyConfiguration represents a declarative configuration of the HostSubnet type for use
// with apply.
type HostSubnetApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Host *string `json:"host,omitempty"`
- HostIP *string `json:"hostIP,omitempty"`
- Subnet *string `json:"subnet,omitempty"`
- EgressIPs []networkv1.HostSubnetEgressIP `json:"egressIPs,omitempty"`
- EgressCIDRs []networkv1.HostSubnetEgressCIDR `json:"egressCIDRs,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Host *string `json:"host,omitempty"`
+ HostIP *string `json:"hostIP,omitempty"`
+ Subnet *string `json:"subnet,omitempty"`
+ EgressIPs []networkv1.HostSubnetEgressIP `json:"egressIPs,omitempty"`
+ EgressCIDRs []networkv1.HostSubnetEgressCIDR `json:"egressCIDRs,omitempty"`
}
// HostSubnet constructs a declarative configuration of the HostSubnet type for use with
@@ -72,7 +72,7 @@ func extractHostSubnet(hostSubnet *networkv1.HostSubnet, fieldManager string, su
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *HostSubnetApplyConfiguration) WithKind(value string) *HostSubnetApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -80,7 +80,7 @@ func (b *HostSubnetApplyConfiguration) WithKind(value string) *HostSubnetApplyCo
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *HostSubnetApplyConfiguration) WithAPIVersion(value string) *HostSubnetApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -89,7 +89,7 @@ func (b *HostSubnetApplyConfiguration) WithAPIVersion(value string) *HostSubnetA
// If called multiple times, the Name field is set to the value of the last call.
func (b *HostSubnetApplyConfiguration) WithName(value string) *HostSubnetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -98,7 +98,7 @@ func (b *HostSubnetApplyConfiguration) WithName(value string) *HostSubnetApplyCo
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *HostSubnetApplyConfiguration) WithGenerateName(value string) *HostSubnetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -107,7 +107,7 @@ func (b *HostSubnetApplyConfiguration) WithGenerateName(value string) *HostSubne
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *HostSubnetApplyConfiguration) WithNamespace(value string) *HostSubnetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -116,7 +116,7 @@ func (b *HostSubnetApplyConfiguration) WithNamespace(value string) *HostSubnetAp
// If called multiple times, the UID field is set to the value of the last call.
func (b *HostSubnetApplyConfiguration) WithUID(value types.UID) *HostSubnetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -125,7 +125,7 @@ func (b *HostSubnetApplyConfiguration) WithUID(value types.UID) *HostSubnetApply
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *HostSubnetApplyConfiguration) WithResourceVersion(value string) *HostSubnetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -134,25 +134,25 @@ func (b *HostSubnetApplyConfiguration) WithResourceVersion(value string) *HostSu
// If called multiple times, the Generation field is set to the value of the last call.
func (b *HostSubnetApplyConfiguration) WithGeneration(value int64) *HostSubnetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *HostSubnetApplyConfiguration) WithCreationTimestamp(value metav1.Time) *HostSubnetApplyConfiguration {
+func (b *HostSubnetApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *HostSubnetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *HostSubnetApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *HostSubnetApplyConfiguration {
+func (b *HostSubnetApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *HostSubnetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -161,7 +161,7 @@ func (b *HostSubnetApplyConfiguration) WithDeletionTimestamp(value metav1.Time)
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *HostSubnetApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *HostSubnetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -171,11 +171,11 @@ func (b *HostSubnetApplyConfiguration) WithDeletionGracePeriodSeconds(value int6
// overwriting an existing map entries in Labels field with the same key.
func (b *HostSubnetApplyConfiguration) WithLabels(entries map[string]string) *HostSubnetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -186,11 +186,11 @@ func (b *HostSubnetApplyConfiguration) WithLabels(entries map[string]string) *Ho
// overwriting an existing map entries in Annotations field with the same key.
func (b *HostSubnetApplyConfiguration) WithAnnotations(entries map[string]string) *HostSubnetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -198,13 +198,13 @@ func (b *HostSubnetApplyConfiguration) WithAnnotations(entries map[string]string
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *HostSubnetApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *HostSubnetApplyConfiguration {
+func (b *HostSubnetApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *HostSubnetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -215,14 +215,14 @@ func (b *HostSubnetApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRe
func (b *HostSubnetApplyConfiguration) WithFinalizers(values ...string) *HostSubnetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *HostSubnetApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -273,5 +273,5 @@ func (b *HostSubnetApplyConfiguration) WithEgressCIDRs(values ...networkv1.HostS
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *HostSubnetApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/network/applyconfigurations/network/v1/netnamespace.go b/network/applyconfigurations/network/v1/netnamespace.go
index 0219a07a4..c821c0ae5 100644
--- a/network/applyconfigurations/network/v1/netnamespace.go
+++ b/network/applyconfigurations/network/v1/netnamespace.go
@@ -5,20 +5,20 @@ package v1
import (
networkv1 "github.com/openshift/api/network/v1"
internal "github.com/openshift/client-go/network/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// NetNamespaceApplyConfiguration represents a declarative configuration of the NetNamespace type for use
// with apply.
type NetNamespaceApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- NetName *string `json:"netname,omitempty"`
- NetID *uint32 `json:"netid,omitempty"`
- EgressIPs []networkv1.NetNamespaceEgressIP `json:"egressIPs,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ NetName *string `json:"netname,omitempty"`
+ NetID *uint32 `json:"netid,omitempty"`
+ EgressIPs []networkv1.NetNamespaceEgressIP `json:"egressIPs,omitempty"`
}
// NetNamespace constructs a declarative configuration of the NetNamespace type for use with
@@ -70,7 +70,7 @@ func extractNetNamespace(netNamespace *networkv1.NetNamespace, fieldManager stri
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *NetNamespaceApplyConfiguration) WithKind(value string) *NetNamespaceApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -78,7 +78,7 @@ func (b *NetNamespaceApplyConfiguration) WithKind(value string) *NetNamespaceApp
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *NetNamespaceApplyConfiguration) WithAPIVersion(value string) *NetNamespaceApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -87,7 +87,7 @@ func (b *NetNamespaceApplyConfiguration) WithAPIVersion(value string) *NetNamesp
// If called multiple times, the Name field is set to the value of the last call.
func (b *NetNamespaceApplyConfiguration) WithName(value string) *NetNamespaceApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -96,7 +96,7 @@ func (b *NetNamespaceApplyConfiguration) WithName(value string) *NetNamespaceApp
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *NetNamespaceApplyConfiguration) WithGenerateName(value string) *NetNamespaceApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -105,7 +105,7 @@ func (b *NetNamespaceApplyConfiguration) WithGenerateName(value string) *NetName
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *NetNamespaceApplyConfiguration) WithNamespace(value string) *NetNamespaceApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -114,7 +114,7 @@ func (b *NetNamespaceApplyConfiguration) WithNamespace(value string) *NetNamespa
// If called multiple times, the UID field is set to the value of the last call.
func (b *NetNamespaceApplyConfiguration) WithUID(value types.UID) *NetNamespaceApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -123,7 +123,7 @@ func (b *NetNamespaceApplyConfiguration) WithUID(value types.UID) *NetNamespaceA
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *NetNamespaceApplyConfiguration) WithResourceVersion(value string) *NetNamespaceApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -132,25 +132,25 @@ func (b *NetNamespaceApplyConfiguration) WithResourceVersion(value string) *NetN
// If called multiple times, the Generation field is set to the value of the last call.
func (b *NetNamespaceApplyConfiguration) WithGeneration(value int64) *NetNamespaceApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *NetNamespaceApplyConfiguration) WithCreationTimestamp(value metav1.Time) *NetNamespaceApplyConfiguration {
+func (b *NetNamespaceApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *NetNamespaceApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *NetNamespaceApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *NetNamespaceApplyConfiguration {
+func (b *NetNamespaceApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *NetNamespaceApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -159,7 +159,7 @@ func (b *NetNamespaceApplyConfiguration) WithDeletionTimestamp(value metav1.Time
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *NetNamespaceApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *NetNamespaceApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -169,11 +169,11 @@ func (b *NetNamespaceApplyConfiguration) WithDeletionGracePeriodSeconds(value in
// overwriting an existing map entries in Labels field with the same key.
func (b *NetNamespaceApplyConfiguration) WithLabels(entries map[string]string) *NetNamespaceApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -184,11 +184,11 @@ func (b *NetNamespaceApplyConfiguration) WithLabels(entries map[string]string) *
// overwriting an existing map entries in Annotations field with the same key.
func (b *NetNamespaceApplyConfiguration) WithAnnotations(entries map[string]string) *NetNamespaceApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -196,13 +196,13 @@ func (b *NetNamespaceApplyConfiguration) WithAnnotations(entries map[string]stri
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *NetNamespaceApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *NetNamespaceApplyConfiguration {
+func (b *NetNamespaceApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *NetNamespaceApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -213,14 +213,14 @@ func (b *NetNamespaceApplyConfiguration) WithOwnerReferences(values ...*v1.Owner
func (b *NetNamespaceApplyConfiguration) WithFinalizers(values ...string) *NetNamespaceApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *NetNamespaceApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -253,5 +253,5 @@ func (b *NetNamespaceApplyConfiguration) WithEgressIPs(values ...networkv1.NetNa
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *NetNamespaceApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/network/applyconfigurations/network/v1alpha1/dnsnameresolver.go b/network/applyconfigurations/network/v1alpha1/dnsnameresolver.go
index 5af6b141b..8d5efa487 100644
--- a/network/applyconfigurations/network/v1alpha1/dnsnameresolver.go
+++ b/network/applyconfigurations/network/v1alpha1/dnsnameresolver.go
@@ -71,7 +71,7 @@ func extractDNSNameResolver(dNSNameResolver *networkv1alpha1.DNSNameResolver, fi
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *DNSNameResolverApplyConfiguration) WithKind(value string) *DNSNameResolverApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -79,7 +79,7 @@ func (b *DNSNameResolverApplyConfiguration) WithKind(value string) *DNSNameResol
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *DNSNameResolverApplyConfiguration) WithAPIVersion(value string) *DNSNameResolverApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -88,7 +88,7 @@ func (b *DNSNameResolverApplyConfiguration) WithAPIVersion(value string) *DNSNam
// If called multiple times, the Name field is set to the value of the last call.
func (b *DNSNameResolverApplyConfiguration) WithName(value string) *DNSNameResolverApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -97,7 +97,7 @@ func (b *DNSNameResolverApplyConfiguration) WithName(value string) *DNSNameResol
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *DNSNameResolverApplyConfiguration) WithGenerateName(value string) *DNSNameResolverApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -106,7 +106,7 @@ func (b *DNSNameResolverApplyConfiguration) WithGenerateName(value string) *DNSN
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *DNSNameResolverApplyConfiguration) WithNamespace(value string) *DNSNameResolverApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -115,7 +115,7 @@ func (b *DNSNameResolverApplyConfiguration) WithNamespace(value string) *DNSName
// If called multiple times, the UID field is set to the value of the last call.
func (b *DNSNameResolverApplyConfiguration) WithUID(value types.UID) *DNSNameResolverApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -124,7 +124,7 @@ func (b *DNSNameResolverApplyConfiguration) WithUID(value types.UID) *DNSNameRes
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *DNSNameResolverApplyConfiguration) WithResourceVersion(value string) *DNSNameResolverApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -133,7 +133,7 @@ func (b *DNSNameResolverApplyConfiguration) WithResourceVersion(value string) *D
// If called multiple times, the Generation field is set to the value of the last call.
func (b *DNSNameResolverApplyConfiguration) WithGeneration(value int64) *DNSNameResolverApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
@@ -142,7 +142,7 @@ func (b *DNSNameResolverApplyConfiguration) WithGeneration(value int64) *DNSName
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
func (b *DNSNameResolverApplyConfiguration) WithCreationTimestamp(value metav1.Time) *DNSNameResolverApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
@@ -151,7 +151,7 @@ func (b *DNSNameResolverApplyConfiguration) WithCreationTimestamp(value metav1.T
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
func (b *DNSNameResolverApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *DNSNameResolverApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -160,7 +160,7 @@ func (b *DNSNameResolverApplyConfiguration) WithDeletionTimestamp(value metav1.T
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *DNSNameResolverApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *DNSNameResolverApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -170,11 +170,11 @@ func (b *DNSNameResolverApplyConfiguration) WithDeletionGracePeriodSeconds(value
// overwriting an existing map entries in Labels field with the same key.
func (b *DNSNameResolverApplyConfiguration) WithLabels(entries map[string]string) *DNSNameResolverApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -185,11 +185,11 @@ func (b *DNSNameResolverApplyConfiguration) WithLabels(entries map[string]string
// overwriting an existing map entries in Annotations field with the same key.
func (b *DNSNameResolverApplyConfiguration) WithAnnotations(entries map[string]string) *DNSNameResolverApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -203,7 +203,7 @@ func (b *DNSNameResolverApplyConfiguration) WithOwnerReferences(values ...*v1.Ow
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -214,7 +214,7 @@ func (b *DNSNameResolverApplyConfiguration) WithOwnerReferences(values ...*v1.Ow
func (b *DNSNameResolverApplyConfiguration) WithFinalizers(values ...string) *DNSNameResolverApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
@@ -244,5 +244,5 @@ func (b *DNSNameResolverApplyConfiguration) WithStatus(value *DNSNameResolverSta
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *DNSNameResolverApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/network/applyconfigurations/network/v1alpha1/dnsnameresolverresolvedname.go b/network/applyconfigurations/network/v1alpha1/dnsnameresolverresolvedname.go
index ff46e0625..15d3e7e20 100644
--- a/network/applyconfigurations/network/v1alpha1/dnsnameresolverresolvedname.go
+++ b/network/applyconfigurations/network/v1alpha1/dnsnameresolverresolvedname.go
@@ -3,7 +3,7 @@
package v1alpha1
import (
- v1alpha1 "github.com/openshift/api/network/v1alpha1"
+ networkv1alpha1 "github.com/openshift/api/network/v1alpha1"
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
@@ -11,7 +11,7 @@ import (
// with apply.
type DNSNameResolverResolvedNameApplyConfiguration struct {
Conditions []v1.ConditionApplyConfiguration `json:"conditions,omitempty"`
- DNSName *v1alpha1.DNSName `json:"dnsName,omitempty"`
+ DNSName *networkv1alpha1.DNSName `json:"dnsName,omitempty"`
ResolvedAddresses []DNSNameResolverResolvedAddressApplyConfiguration `json:"resolvedAddresses,omitempty"`
ResolutionFailures *int32 `json:"resolutionFailures,omitempty"`
}
@@ -38,7 +38,7 @@ func (b *DNSNameResolverResolvedNameApplyConfiguration) WithConditions(values ..
// WithDNSName sets the DNSName field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DNSName field is set to the value of the last call.
-func (b *DNSNameResolverResolvedNameApplyConfiguration) WithDNSName(value v1alpha1.DNSName) *DNSNameResolverResolvedNameApplyConfiguration {
+func (b *DNSNameResolverResolvedNameApplyConfiguration) WithDNSName(value networkv1alpha1.DNSName) *DNSNameResolverResolvedNameApplyConfiguration {
b.DNSName = &value
return b
}
diff --git a/network/applyconfigurations/network/v1alpha1/dnsnameresolverspec.go b/network/applyconfigurations/network/v1alpha1/dnsnameresolverspec.go
index d131fa561..96d13fae1 100644
--- a/network/applyconfigurations/network/v1alpha1/dnsnameresolverspec.go
+++ b/network/applyconfigurations/network/v1alpha1/dnsnameresolverspec.go
@@ -3,13 +3,13 @@
package v1alpha1
import (
- v1alpha1 "github.com/openshift/api/network/v1alpha1"
+ networkv1alpha1 "github.com/openshift/api/network/v1alpha1"
)
// DNSNameResolverSpecApplyConfiguration represents a declarative configuration of the DNSNameResolverSpec type for use
// with apply.
type DNSNameResolverSpecApplyConfiguration struct {
- Name *v1alpha1.DNSName `json:"name,omitempty"`
+ Name *networkv1alpha1.DNSName `json:"name,omitempty"`
}
// DNSNameResolverSpecApplyConfiguration constructs a declarative configuration of the DNSNameResolverSpec type for use with
@@ -21,7 +21,7 @@ func DNSNameResolverSpec() *DNSNameResolverSpecApplyConfiguration {
// WithName sets the Name field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Name field is set to the value of the last call.
-func (b *DNSNameResolverSpecApplyConfiguration) WithName(value v1alpha1.DNSName) *DNSNameResolverSpecApplyConfiguration {
+func (b *DNSNameResolverSpecApplyConfiguration) WithName(value networkv1alpha1.DNSName) *DNSNameResolverSpecApplyConfiguration {
b.Name = &value
return b
}
diff --git a/network/clientset/versioned/clientset.go b/network/clientset/versioned/clientset.go
index 2b134f8ab..4bc1c6544 100644
--- a/network/clientset/versioned/clientset.go
+++ b/network/clientset/versioned/clientset.go
@@ -3,8 +3,8 @@
package versioned
import (
- "fmt"
- "net/http"
+ fmt "fmt"
+ http "net/http"
networkv1 "github.com/openshift/client-go/network/clientset/versioned/typed/network/v1"
networkv1alpha1 "github.com/openshift/client-go/network/clientset/versioned/typed/network/v1alpha1"
diff --git a/network/clientset/versioned/typed/network/v1/clusternetwork.go b/network/clientset/versioned/typed/network/v1/clusternetwork.go
index b5014b11d..5c20bc387 100644
--- a/network/clientset/versioned/typed/network/v1/clusternetwork.go
+++ b/network/clientset/versioned/typed/network/v1/clusternetwork.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/network/v1"
- networkv1 "github.com/openshift/client-go/network/applyconfigurations/network/v1"
+ networkv1 "github.com/openshift/api/network/v1"
+ applyconfigurationsnetworkv1 "github.com/openshift/client-go/network/applyconfigurations/network/v1"
scheme "github.com/openshift/client-go/network/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,32 +22,33 @@ type ClusterNetworksGetter interface {
// ClusterNetworkInterface has methods to work with ClusterNetwork resources.
type ClusterNetworkInterface interface {
- Create(ctx context.Context, clusterNetwork *v1.ClusterNetwork, opts metav1.CreateOptions) (*v1.ClusterNetwork, error)
- Update(ctx context.Context, clusterNetwork *v1.ClusterNetwork, opts metav1.UpdateOptions) (*v1.ClusterNetwork, error)
+ Create(ctx context.Context, clusterNetwork *networkv1.ClusterNetwork, opts metav1.CreateOptions) (*networkv1.ClusterNetwork, error)
+ Update(ctx context.Context, clusterNetwork *networkv1.ClusterNetwork, opts metav1.UpdateOptions) (*networkv1.ClusterNetwork, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ClusterNetwork, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.ClusterNetworkList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*networkv1.ClusterNetwork, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*networkv1.ClusterNetworkList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterNetwork, err error)
- Apply(ctx context.Context, clusterNetwork *networkv1.ClusterNetworkApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ClusterNetwork, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *networkv1.ClusterNetwork, err error)
+ Apply(ctx context.Context, clusterNetwork *applyconfigurationsnetworkv1.ClusterNetworkApplyConfiguration, opts metav1.ApplyOptions) (result *networkv1.ClusterNetwork, err error)
ClusterNetworkExpansion
}
// clusterNetworks implements ClusterNetworkInterface
type clusterNetworks struct {
- *gentype.ClientWithListAndApply[*v1.ClusterNetwork, *v1.ClusterNetworkList, *networkv1.ClusterNetworkApplyConfiguration]
+ *gentype.ClientWithListAndApply[*networkv1.ClusterNetwork, *networkv1.ClusterNetworkList, *applyconfigurationsnetworkv1.ClusterNetworkApplyConfiguration]
}
// newClusterNetworks returns a ClusterNetworks
func newClusterNetworks(c *NetworkV1Client) *clusterNetworks {
return &clusterNetworks{
- gentype.NewClientWithListAndApply[*v1.ClusterNetwork, *v1.ClusterNetworkList, *networkv1.ClusterNetworkApplyConfiguration](
+ gentype.NewClientWithListAndApply[*networkv1.ClusterNetwork, *networkv1.ClusterNetworkList, *applyconfigurationsnetworkv1.ClusterNetworkApplyConfiguration](
"clusternetworks",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.ClusterNetwork { return &v1.ClusterNetwork{} },
- func() *v1.ClusterNetworkList { return &v1.ClusterNetworkList{} }),
+ func() *networkv1.ClusterNetwork { return &networkv1.ClusterNetwork{} },
+ func() *networkv1.ClusterNetworkList { return &networkv1.ClusterNetworkList{} },
+ ),
}
}
diff --git a/network/clientset/versioned/typed/network/v1/egressnetworkpolicy.go b/network/clientset/versioned/typed/network/v1/egressnetworkpolicy.go
index 23c754d31..8c1c34db0 100644
--- a/network/clientset/versioned/typed/network/v1/egressnetworkpolicy.go
+++ b/network/clientset/versioned/typed/network/v1/egressnetworkpolicy.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/network/v1"
- networkv1 "github.com/openshift/client-go/network/applyconfigurations/network/v1"
+ networkv1 "github.com/openshift/api/network/v1"
+ applyconfigurationsnetworkv1 "github.com/openshift/client-go/network/applyconfigurations/network/v1"
scheme "github.com/openshift/client-go/network/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,32 +22,33 @@ type EgressNetworkPoliciesGetter interface {
// EgressNetworkPolicyInterface has methods to work with EgressNetworkPolicy resources.
type EgressNetworkPolicyInterface interface {
- Create(ctx context.Context, egressNetworkPolicy *v1.EgressNetworkPolicy, opts metav1.CreateOptions) (*v1.EgressNetworkPolicy, error)
- Update(ctx context.Context, egressNetworkPolicy *v1.EgressNetworkPolicy, opts metav1.UpdateOptions) (*v1.EgressNetworkPolicy, error)
+ Create(ctx context.Context, egressNetworkPolicy *networkv1.EgressNetworkPolicy, opts metav1.CreateOptions) (*networkv1.EgressNetworkPolicy, error)
+ Update(ctx context.Context, egressNetworkPolicy *networkv1.EgressNetworkPolicy, opts metav1.UpdateOptions) (*networkv1.EgressNetworkPolicy, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.EgressNetworkPolicy, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.EgressNetworkPolicyList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*networkv1.EgressNetworkPolicy, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*networkv1.EgressNetworkPolicyList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.EgressNetworkPolicy, err error)
- Apply(ctx context.Context, egressNetworkPolicy *networkv1.EgressNetworkPolicyApplyConfiguration, opts metav1.ApplyOptions) (result *v1.EgressNetworkPolicy, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *networkv1.EgressNetworkPolicy, err error)
+ Apply(ctx context.Context, egressNetworkPolicy *applyconfigurationsnetworkv1.EgressNetworkPolicyApplyConfiguration, opts metav1.ApplyOptions) (result *networkv1.EgressNetworkPolicy, err error)
EgressNetworkPolicyExpansion
}
// egressNetworkPolicies implements EgressNetworkPolicyInterface
type egressNetworkPolicies struct {
- *gentype.ClientWithListAndApply[*v1.EgressNetworkPolicy, *v1.EgressNetworkPolicyList, *networkv1.EgressNetworkPolicyApplyConfiguration]
+ *gentype.ClientWithListAndApply[*networkv1.EgressNetworkPolicy, *networkv1.EgressNetworkPolicyList, *applyconfigurationsnetworkv1.EgressNetworkPolicyApplyConfiguration]
}
// newEgressNetworkPolicies returns a EgressNetworkPolicies
func newEgressNetworkPolicies(c *NetworkV1Client, namespace string) *egressNetworkPolicies {
return &egressNetworkPolicies{
- gentype.NewClientWithListAndApply[*v1.EgressNetworkPolicy, *v1.EgressNetworkPolicyList, *networkv1.EgressNetworkPolicyApplyConfiguration](
+ gentype.NewClientWithListAndApply[*networkv1.EgressNetworkPolicy, *networkv1.EgressNetworkPolicyList, *applyconfigurationsnetworkv1.EgressNetworkPolicyApplyConfiguration](
"egressnetworkpolicies",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
- func() *v1.EgressNetworkPolicy { return &v1.EgressNetworkPolicy{} },
- func() *v1.EgressNetworkPolicyList { return &v1.EgressNetworkPolicyList{} }),
+ func() *networkv1.EgressNetworkPolicy { return &networkv1.EgressNetworkPolicy{} },
+ func() *networkv1.EgressNetworkPolicyList { return &networkv1.EgressNetworkPolicyList{} },
+ ),
}
}
diff --git a/network/clientset/versioned/typed/network/v1/fake/fake_clusternetwork.go b/network/clientset/versioned/typed/network/v1/fake/fake_clusternetwork.go
index abb6a0dd5..494aa4231 100644
--- a/network/clientset/versioned/typed/network/v1/fake/fake_clusternetwork.go
+++ b/network/clientset/versioned/typed/network/v1/fake/fake_clusternetwork.go
@@ -3,133 +3,33 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/network/v1"
networkv1 "github.com/openshift/client-go/network/applyconfigurations/network/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typednetworkv1 "github.com/openshift/client-go/network/clientset/versioned/typed/network/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeClusterNetworks implements ClusterNetworkInterface
-type FakeClusterNetworks struct {
+// fakeClusterNetworks implements ClusterNetworkInterface
+type fakeClusterNetworks struct {
+ *gentype.FakeClientWithListAndApply[*v1.ClusterNetwork, *v1.ClusterNetworkList, *networkv1.ClusterNetworkApplyConfiguration]
Fake *FakeNetworkV1
}
-var clusternetworksResource = v1.SchemeGroupVersion.WithResource("clusternetworks")
-
-var clusternetworksKind = v1.SchemeGroupVersion.WithKind("ClusterNetwork")
-
-// Get takes name of the clusterNetwork, and returns the corresponding clusterNetwork object, and an error if there is any.
-func (c *FakeClusterNetworks) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ClusterNetwork, err error) {
- emptyResult := &v1.ClusterNetwork{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(clusternetworksResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterNetwork), err
-}
-
-// List takes label and field selectors, and returns the list of ClusterNetworks that match those selectors.
-func (c *FakeClusterNetworks) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterNetworkList, err error) {
- emptyResult := &v1.ClusterNetworkList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(clusternetworksResource, clusternetworksKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.ClusterNetworkList{ListMeta: obj.(*v1.ClusterNetworkList).ListMeta}
- for _, item := range obj.(*v1.ClusterNetworkList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested clusterNetworks.
-func (c *FakeClusterNetworks) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(clusternetworksResource, opts))
-}
-
-// Create takes the representation of a clusterNetwork and creates it. Returns the server's representation of the clusterNetwork, and an error, if there is any.
-func (c *FakeClusterNetworks) Create(ctx context.Context, clusterNetwork *v1.ClusterNetwork, opts metav1.CreateOptions) (result *v1.ClusterNetwork, err error) {
- emptyResult := &v1.ClusterNetwork{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(clusternetworksResource, clusterNetwork, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterNetwork), err
-}
-
-// Update takes the representation of a clusterNetwork and updates it. Returns the server's representation of the clusterNetwork, and an error, if there is any.
-func (c *FakeClusterNetworks) Update(ctx context.Context, clusterNetwork *v1.ClusterNetwork, opts metav1.UpdateOptions) (result *v1.ClusterNetwork, err error) {
- emptyResult := &v1.ClusterNetwork{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(clusternetworksResource, clusterNetwork, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterNetwork), err
-}
-
-// Delete takes name of the clusterNetwork and deletes it. Returns an error if one occurs.
-func (c *FakeClusterNetworks) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(clusternetworksResource, name, opts), &v1.ClusterNetwork{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeClusterNetworks) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(clusternetworksResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.ClusterNetworkList{})
- return err
-}
-
-// Patch applies the patch and returns the patched clusterNetwork.
-func (c *FakeClusterNetworks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterNetwork, err error) {
- emptyResult := &v1.ClusterNetwork{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(clusternetworksResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterNetwork), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied clusterNetwork.
-func (c *FakeClusterNetworks) Apply(ctx context.Context, clusterNetwork *networkv1.ClusterNetworkApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ClusterNetwork, err error) {
- if clusterNetwork == nil {
- return nil, fmt.Errorf("clusterNetwork provided to Apply must not be nil")
- }
- data, err := json.Marshal(clusterNetwork)
- if err != nil {
- return nil, err
- }
- name := clusterNetwork.Name
- if name == nil {
- return nil, fmt.Errorf("clusterNetwork.Name must be provided to Apply")
- }
- emptyResult := &v1.ClusterNetwork{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(clusternetworksResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeClusterNetworks(fake *FakeNetworkV1) typednetworkv1.ClusterNetworkInterface {
+ return &fakeClusterNetworks{
+ gentype.NewFakeClientWithListAndApply[*v1.ClusterNetwork, *v1.ClusterNetworkList, *networkv1.ClusterNetworkApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("clusternetworks"),
+ v1.SchemeGroupVersion.WithKind("ClusterNetwork"),
+ func() *v1.ClusterNetwork { return &v1.ClusterNetwork{} },
+ func() *v1.ClusterNetworkList { return &v1.ClusterNetworkList{} },
+ func(dst, src *v1.ClusterNetworkList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.ClusterNetworkList) []*v1.ClusterNetwork { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.ClusterNetworkList, items []*v1.ClusterNetwork) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.ClusterNetwork), err
}
diff --git a/network/clientset/versioned/typed/network/v1/fake/fake_egressnetworkpolicy.go b/network/clientset/versioned/typed/network/v1/fake/fake_egressnetworkpolicy.go
index 13833b5d2..d9f8f28c7 100644
--- a/network/clientset/versioned/typed/network/v1/fake/fake_egressnetworkpolicy.go
+++ b/network/clientset/versioned/typed/network/v1/fake/fake_egressnetworkpolicy.go
@@ -3,142 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/network/v1"
networkv1 "github.com/openshift/client-go/network/applyconfigurations/network/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typednetworkv1 "github.com/openshift/client-go/network/clientset/versioned/typed/network/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeEgressNetworkPolicies implements EgressNetworkPolicyInterface
-type FakeEgressNetworkPolicies struct {
+// fakeEgressNetworkPolicies implements EgressNetworkPolicyInterface
+type fakeEgressNetworkPolicies struct {
+ *gentype.FakeClientWithListAndApply[*v1.EgressNetworkPolicy, *v1.EgressNetworkPolicyList, *networkv1.EgressNetworkPolicyApplyConfiguration]
Fake *FakeNetworkV1
- ns string
-}
-
-var egressnetworkpoliciesResource = v1.SchemeGroupVersion.WithResource("egressnetworkpolicies")
-
-var egressnetworkpoliciesKind = v1.SchemeGroupVersion.WithKind("EgressNetworkPolicy")
-
-// Get takes name of the egressNetworkPolicy, and returns the corresponding egressNetworkPolicy object, and an error if there is any.
-func (c *FakeEgressNetworkPolicies) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.EgressNetworkPolicy, err error) {
- emptyResult := &v1.EgressNetworkPolicy{}
- obj, err := c.Fake.
- Invokes(testing.NewGetActionWithOptions(egressnetworkpoliciesResource, c.ns, name, options), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.EgressNetworkPolicy), err
-}
-
-// List takes label and field selectors, and returns the list of EgressNetworkPolicies that match those selectors.
-func (c *FakeEgressNetworkPolicies) List(ctx context.Context, opts metav1.ListOptions) (result *v1.EgressNetworkPolicyList, err error) {
- emptyResult := &v1.EgressNetworkPolicyList{}
- obj, err := c.Fake.
- Invokes(testing.NewListActionWithOptions(egressnetworkpoliciesResource, egressnetworkpoliciesKind, c.ns, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.EgressNetworkPolicyList{ListMeta: obj.(*v1.EgressNetworkPolicyList).ListMeta}
- for _, item := range obj.(*v1.EgressNetworkPolicyList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested egressNetworkPolicies.
-func (c *FakeEgressNetworkPolicies) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewWatchActionWithOptions(egressnetworkpoliciesResource, c.ns, opts))
-
}
-// Create takes the representation of a egressNetworkPolicy and creates it. Returns the server's representation of the egressNetworkPolicy, and an error, if there is any.
-func (c *FakeEgressNetworkPolicies) Create(ctx context.Context, egressNetworkPolicy *v1.EgressNetworkPolicy, opts metav1.CreateOptions) (result *v1.EgressNetworkPolicy, err error) {
- emptyResult := &v1.EgressNetworkPolicy{}
- obj, err := c.Fake.
- Invokes(testing.NewCreateActionWithOptions(egressnetworkpoliciesResource, c.ns, egressNetworkPolicy, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.EgressNetworkPolicy), err
-}
-
-// Update takes the representation of a egressNetworkPolicy and updates it. Returns the server's representation of the egressNetworkPolicy, and an error, if there is any.
-func (c *FakeEgressNetworkPolicies) Update(ctx context.Context, egressNetworkPolicy *v1.EgressNetworkPolicy, opts metav1.UpdateOptions) (result *v1.EgressNetworkPolicy, err error) {
- emptyResult := &v1.EgressNetworkPolicy{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateActionWithOptions(egressnetworkpoliciesResource, c.ns, egressNetworkPolicy, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.EgressNetworkPolicy), err
-}
-
-// Delete takes name of the egressNetworkPolicy and deletes it. Returns an error if one occurs.
-func (c *FakeEgressNetworkPolicies) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewDeleteActionWithOptions(egressnetworkpoliciesResource, c.ns, name, opts), &v1.EgressNetworkPolicy{})
-
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeEgressNetworkPolicies) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewDeleteCollectionActionWithOptions(egressnetworkpoliciesResource, c.ns, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.EgressNetworkPolicyList{})
- return err
-}
-
-// Patch applies the patch and returns the patched egressNetworkPolicy.
-func (c *FakeEgressNetworkPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.EgressNetworkPolicy, err error) {
- emptyResult := &v1.EgressNetworkPolicy{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(egressnetworkpoliciesResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.EgressNetworkPolicy), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied egressNetworkPolicy.
-func (c *FakeEgressNetworkPolicies) Apply(ctx context.Context, egressNetworkPolicy *networkv1.EgressNetworkPolicyApplyConfiguration, opts metav1.ApplyOptions) (result *v1.EgressNetworkPolicy, err error) {
- if egressNetworkPolicy == nil {
- return nil, fmt.Errorf("egressNetworkPolicy provided to Apply must not be nil")
- }
- data, err := json.Marshal(egressNetworkPolicy)
- if err != nil {
- return nil, err
- }
- name := egressNetworkPolicy.Name
- if name == nil {
- return nil, fmt.Errorf("egressNetworkPolicy.Name must be provided to Apply")
- }
- emptyResult := &v1.EgressNetworkPolicy{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(egressnetworkpoliciesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
-
- if obj == nil {
- return emptyResult, err
+func newFakeEgressNetworkPolicies(fake *FakeNetworkV1, namespace string) typednetworkv1.EgressNetworkPolicyInterface {
+ return &fakeEgressNetworkPolicies{
+ gentype.NewFakeClientWithListAndApply[*v1.EgressNetworkPolicy, *v1.EgressNetworkPolicyList, *networkv1.EgressNetworkPolicyApplyConfiguration](
+ fake.Fake,
+ namespace,
+ v1.SchemeGroupVersion.WithResource("egressnetworkpolicies"),
+ v1.SchemeGroupVersion.WithKind("EgressNetworkPolicy"),
+ func() *v1.EgressNetworkPolicy { return &v1.EgressNetworkPolicy{} },
+ func() *v1.EgressNetworkPolicyList { return &v1.EgressNetworkPolicyList{} },
+ func(dst, src *v1.EgressNetworkPolicyList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.EgressNetworkPolicyList) []*v1.EgressNetworkPolicy {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1.EgressNetworkPolicyList, items []*v1.EgressNetworkPolicy) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.EgressNetworkPolicy), err
}
diff --git a/network/clientset/versioned/typed/network/v1/fake/fake_hostsubnet.go b/network/clientset/versioned/typed/network/v1/fake/fake_hostsubnet.go
index 04c157e34..dfdf5435c 100644
--- a/network/clientset/versioned/typed/network/v1/fake/fake_hostsubnet.go
+++ b/network/clientset/versioned/typed/network/v1/fake/fake_hostsubnet.go
@@ -3,133 +3,31 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/network/v1"
networkv1 "github.com/openshift/client-go/network/applyconfigurations/network/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typednetworkv1 "github.com/openshift/client-go/network/clientset/versioned/typed/network/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeHostSubnets implements HostSubnetInterface
-type FakeHostSubnets struct {
+// fakeHostSubnets implements HostSubnetInterface
+type fakeHostSubnets struct {
+ *gentype.FakeClientWithListAndApply[*v1.HostSubnet, *v1.HostSubnetList, *networkv1.HostSubnetApplyConfiguration]
Fake *FakeNetworkV1
}
-var hostsubnetsResource = v1.SchemeGroupVersion.WithResource("hostsubnets")
-
-var hostsubnetsKind = v1.SchemeGroupVersion.WithKind("HostSubnet")
-
-// Get takes name of the hostSubnet, and returns the corresponding hostSubnet object, and an error if there is any.
-func (c *FakeHostSubnets) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.HostSubnet, err error) {
- emptyResult := &v1.HostSubnet{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(hostsubnetsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.HostSubnet), err
-}
-
-// List takes label and field selectors, and returns the list of HostSubnets that match those selectors.
-func (c *FakeHostSubnets) List(ctx context.Context, opts metav1.ListOptions) (result *v1.HostSubnetList, err error) {
- emptyResult := &v1.HostSubnetList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(hostsubnetsResource, hostsubnetsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.HostSubnetList{ListMeta: obj.(*v1.HostSubnetList).ListMeta}
- for _, item := range obj.(*v1.HostSubnetList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested hostSubnets.
-func (c *FakeHostSubnets) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(hostsubnetsResource, opts))
-}
-
-// Create takes the representation of a hostSubnet and creates it. Returns the server's representation of the hostSubnet, and an error, if there is any.
-func (c *FakeHostSubnets) Create(ctx context.Context, hostSubnet *v1.HostSubnet, opts metav1.CreateOptions) (result *v1.HostSubnet, err error) {
- emptyResult := &v1.HostSubnet{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(hostsubnetsResource, hostSubnet, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.HostSubnet), err
-}
-
-// Update takes the representation of a hostSubnet and updates it. Returns the server's representation of the hostSubnet, and an error, if there is any.
-func (c *FakeHostSubnets) Update(ctx context.Context, hostSubnet *v1.HostSubnet, opts metav1.UpdateOptions) (result *v1.HostSubnet, err error) {
- emptyResult := &v1.HostSubnet{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(hostsubnetsResource, hostSubnet, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.HostSubnet), err
-}
-
-// Delete takes name of the hostSubnet and deletes it. Returns an error if one occurs.
-func (c *FakeHostSubnets) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(hostsubnetsResource, name, opts), &v1.HostSubnet{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeHostSubnets) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(hostsubnetsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.HostSubnetList{})
- return err
-}
-
-// Patch applies the patch and returns the patched hostSubnet.
-func (c *FakeHostSubnets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.HostSubnet, err error) {
- emptyResult := &v1.HostSubnet{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(hostsubnetsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.HostSubnet), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied hostSubnet.
-func (c *FakeHostSubnets) Apply(ctx context.Context, hostSubnet *networkv1.HostSubnetApplyConfiguration, opts metav1.ApplyOptions) (result *v1.HostSubnet, err error) {
- if hostSubnet == nil {
- return nil, fmt.Errorf("hostSubnet provided to Apply must not be nil")
- }
- data, err := json.Marshal(hostSubnet)
- if err != nil {
- return nil, err
- }
- name := hostSubnet.Name
- if name == nil {
- return nil, fmt.Errorf("hostSubnet.Name must be provided to Apply")
- }
- emptyResult := &v1.HostSubnet{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(hostsubnetsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeHostSubnets(fake *FakeNetworkV1) typednetworkv1.HostSubnetInterface {
+ return &fakeHostSubnets{
+ gentype.NewFakeClientWithListAndApply[*v1.HostSubnet, *v1.HostSubnetList, *networkv1.HostSubnetApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("hostsubnets"),
+ v1.SchemeGroupVersion.WithKind("HostSubnet"),
+ func() *v1.HostSubnet { return &v1.HostSubnet{} },
+ func() *v1.HostSubnetList { return &v1.HostSubnetList{} },
+ func(dst, src *v1.HostSubnetList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.HostSubnetList) []*v1.HostSubnet { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.HostSubnetList, items []*v1.HostSubnet) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.HostSubnet), err
}
diff --git a/network/clientset/versioned/typed/network/v1/fake/fake_netnamespace.go b/network/clientset/versioned/typed/network/v1/fake/fake_netnamespace.go
index 50c7ee767..f7c860ab1 100644
--- a/network/clientset/versioned/typed/network/v1/fake/fake_netnamespace.go
+++ b/network/clientset/versioned/typed/network/v1/fake/fake_netnamespace.go
@@ -3,133 +3,33 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/network/v1"
networkv1 "github.com/openshift/client-go/network/applyconfigurations/network/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typednetworkv1 "github.com/openshift/client-go/network/clientset/versioned/typed/network/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeNetNamespaces implements NetNamespaceInterface
-type FakeNetNamespaces struct {
+// fakeNetNamespaces implements NetNamespaceInterface
+type fakeNetNamespaces struct {
+ *gentype.FakeClientWithListAndApply[*v1.NetNamespace, *v1.NetNamespaceList, *networkv1.NetNamespaceApplyConfiguration]
Fake *FakeNetworkV1
}
-var netnamespacesResource = v1.SchemeGroupVersion.WithResource("netnamespaces")
-
-var netnamespacesKind = v1.SchemeGroupVersion.WithKind("NetNamespace")
-
-// Get takes name of the netNamespace, and returns the corresponding netNamespace object, and an error if there is any.
-func (c *FakeNetNamespaces) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.NetNamespace, err error) {
- emptyResult := &v1.NetNamespace{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(netnamespacesResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.NetNamespace), err
-}
-
-// List takes label and field selectors, and returns the list of NetNamespaces that match those selectors.
-func (c *FakeNetNamespaces) List(ctx context.Context, opts metav1.ListOptions) (result *v1.NetNamespaceList, err error) {
- emptyResult := &v1.NetNamespaceList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(netnamespacesResource, netnamespacesKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.NetNamespaceList{ListMeta: obj.(*v1.NetNamespaceList).ListMeta}
- for _, item := range obj.(*v1.NetNamespaceList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested netNamespaces.
-func (c *FakeNetNamespaces) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(netnamespacesResource, opts))
-}
-
-// Create takes the representation of a netNamespace and creates it. Returns the server's representation of the netNamespace, and an error, if there is any.
-func (c *FakeNetNamespaces) Create(ctx context.Context, netNamespace *v1.NetNamespace, opts metav1.CreateOptions) (result *v1.NetNamespace, err error) {
- emptyResult := &v1.NetNamespace{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(netnamespacesResource, netNamespace, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.NetNamespace), err
-}
-
-// Update takes the representation of a netNamespace and updates it. Returns the server's representation of the netNamespace, and an error, if there is any.
-func (c *FakeNetNamespaces) Update(ctx context.Context, netNamespace *v1.NetNamespace, opts metav1.UpdateOptions) (result *v1.NetNamespace, err error) {
- emptyResult := &v1.NetNamespace{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(netnamespacesResource, netNamespace, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.NetNamespace), err
-}
-
-// Delete takes name of the netNamespace and deletes it. Returns an error if one occurs.
-func (c *FakeNetNamespaces) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(netnamespacesResource, name, opts), &v1.NetNamespace{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeNetNamespaces) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(netnamespacesResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.NetNamespaceList{})
- return err
-}
-
-// Patch applies the patch and returns the patched netNamespace.
-func (c *FakeNetNamespaces) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.NetNamespace, err error) {
- emptyResult := &v1.NetNamespace{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(netnamespacesResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.NetNamespace), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied netNamespace.
-func (c *FakeNetNamespaces) Apply(ctx context.Context, netNamespace *networkv1.NetNamespaceApplyConfiguration, opts metav1.ApplyOptions) (result *v1.NetNamespace, err error) {
- if netNamespace == nil {
- return nil, fmt.Errorf("netNamespace provided to Apply must not be nil")
- }
- data, err := json.Marshal(netNamespace)
- if err != nil {
- return nil, err
- }
- name := netNamespace.Name
- if name == nil {
- return nil, fmt.Errorf("netNamespace.Name must be provided to Apply")
- }
- emptyResult := &v1.NetNamespace{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(netnamespacesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeNetNamespaces(fake *FakeNetworkV1) typednetworkv1.NetNamespaceInterface {
+ return &fakeNetNamespaces{
+ gentype.NewFakeClientWithListAndApply[*v1.NetNamespace, *v1.NetNamespaceList, *networkv1.NetNamespaceApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("netnamespaces"),
+ v1.SchemeGroupVersion.WithKind("NetNamespace"),
+ func() *v1.NetNamespace { return &v1.NetNamespace{} },
+ func() *v1.NetNamespaceList { return &v1.NetNamespaceList{} },
+ func(dst, src *v1.NetNamespaceList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.NetNamespaceList) []*v1.NetNamespace { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.NetNamespaceList, items []*v1.NetNamespace) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.NetNamespace), err
}
diff --git a/network/clientset/versioned/typed/network/v1/fake/fake_network_client.go b/network/clientset/versioned/typed/network/v1/fake/fake_network_client.go
index 71d6655c7..a75c3dfa2 100644
--- a/network/clientset/versioned/typed/network/v1/fake/fake_network_client.go
+++ b/network/clientset/versioned/typed/network/v1/fake/fake_network_client.go
@@ -13,19 +13,19 @@ type FakeNetworkV1 struct {
}
func (c *FakeNetworkV1) ClusterNetworks() v1.ClusterNetworkInterface {
- return &FakeClusterNetworks{c}
+ return newFakeClusterNetworks(c)
}
func (c *FakeNetworkV1) EgressNetworkPolicies(namespace string) v1.EgressNetworkPolicyInterface {
- return &FakeEgressNetworkPolicies{c, namespace}
+ return newFakeEgressNetworkPolicies(c, namespace)
}
func (c *FakeNetworkV1) HostSubnets() v1.HostSubnetInterface {
- return &FakeHostSubnets{c}
+ return newFakeHostSubnets(c)
}
func (c *FakeNetworkV1) NetNamespaces() v1.NetNamespaceInterface {
- return &FakeNetNamespaces{c}
+ return newFakeNetNamespaces(c)
}
// RESTClient returns a RESTClient that is used to communicate
diff --git a/network/clientset/versioned/typed/network/v1/hostsubnet.go b/network/clientset/versioned/typed/network/v1/hostsubnet.go
index 6ef89b73d..10ec19fd3 100644
--- a/network/clientset/versioned/typed/network/v1/hostsubnet.go
+++ b/network/clientset/versioned/typed/network/v1/hostsubnet.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/network/v1"
- networkv1 "github.com/openshift/client-go/network/applyconfigurations/network/v1"
+ networkv1 "github.com/openshift/api/network/v1"
+ applyconfigurationsnetworkv1 "github.com/openshift/client-go/network/applyconfigurations/network/v1"
scheme "github.com/openshift/client-go/network/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,32 +22,33 @@ type HostSubnetsGetter interface {
// HostSubnetInterface has methods to work with HostSubnet resources.
type HostSubnetInterface interface {
- Create(ctx context.Context, hostSubnet *v1.HostSubnet, opts metav1.CreateOptions) (*v1.HostSubnet, error)
- Update(ctx context.Context, hostSubnet *v1.HostSubnet, opts metav1.UpdateOptions) (*v1.HostSubnet, error)
+ Create(ctx context.Context, hostSubnet *networkv1.HostSubnet, opts metav1.CreateOptions) (*networkv1.HostSubnet, error)
+ Update(ctx context.Context, hostSubnet *networkv1.HostSubnet, opts metav1.UpdateOptions) (*networkv1.HostSubnet, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.HostSubnet, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.HostSubnetList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*networkv1.HostSubnet, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*networkv1.HostSubnetList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.HostSubnet, err error)
- Apply(ctx context.Context, hostSubnet *networkv1.HostSubnetApplyConfiguration, opts metav1.ApplyOptions) (result *v1.HostSubnet, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *networkv1.HostSubnet, err error)
+ Apply(ctx context.Context, hostSubnet *applyconfigurationsnetworkv1.HostSubnetApplyConfiguration, opts metav1.ApplyOptions) (result *networkv1.HostSubnet, err error)
HostSubnetExpansion
}
// hostSubnets implements HostSubnetInterface
type hostSubnets struct {
- *gentype.ClientWithListAndApply[*v1.HostSubnet, *v1.HostSubnetList, *networkv1.HostSubnetApplyConfiguration]
+ *gentype.ClientWithListAndApply[*networkv1.HostSubnet, *networkv1.HostSubnetList, *applyconfigurationsnetworkv1.HostSubnetApplyConfiguration]
}
// newHostSubnets returns a HostSubnets
func newHostSubnets(c *NetworkV1Client) *hostSubnets {
return &hostSubnets{
- gentype.NewClientWithListAndApply[*v1.HostSubnet, *v1.HostSubnetList, *networkv1.HostSubnetApplyConfiguration](
+ gentype.NewClientWithListAndApply[*networkv1.HostSubnet, *networkv1.HostSubnetList, *applyconfigurationsnetworkv1.HostSubnetApplyConfiguration](
"hostsubnets",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.HostSubnet { return &v1.HostSubnet{} },
- func() *v1.HostSubnetList { return &v1.HostSubnetList{} }),
+ func() *networkv1.HostSubnet { return &networkv1.HostSubnet{} },
+ func() *networkv1.HostSubnetList { return &networkv1.HostSubnetList{} },
+ ),
}
}
diff --git a/network/clientset/versioned/typed/network/v1/netnamespace.go b/network/clientset/versioned/typed/network/v1/netnamespace.go
index eb50562a5..b1cae0b73 100644
--- a/network/clientset/versioned/typed/network/v1/netnamespace.go
+++ b/network/clientset/versioned/typed/network/v1/netnamespace.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/network/v1"
- networkv1 "github.com/openshift/client-go/network/applyconfigurations/network/v1"
+ networkv1 "github.com/openshift/api/network/v1"
+ applyconfigurationsnetworkv1 "github.com/openshift/client-go/network/applyconfigurations/network/v1"
scheme "github.com/openshift/client-go/network/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,32 +22,33 @@ type NetNamespacesGetter interface {
// NetNamespaceInterface has methods to work with NetNamespace resources.
type NetNamespaceInterface interface {
- Create(ctx context.Context, netNamespace *v1.NetNamespace, opts metav1.CreateOptions) (*v1.NetNamespace, error)
- Update(ctx context.Context, netNamespace *v1.NetNamespace, opts metav1.UpdateOptions) (*v1.NetNamespace, error)
+ Create(ctx context.Context, netNamespace *networkv1.NetNamespace, opts metav1.CreateOptions) (*networkv1.NetNamespace, error)
+ Update(ctx context.Context, netNamespace *networkv1.NetNamespace, opts metav1.UpdateOptions) (*networkv1.NetNamespace, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.NetNamespace, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.NetNamespaceList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*networkv1.NetNamespace, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*networkv1.NetNamespaceList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.NetNamespace, err error)
- Apply(ctx context.Context, netNamespace *networkv1.NetNamespaceApplyConfiguration, opts metav1.ApplyOptions) (result *v1.NetNamespace, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *networkv1.NetNamespace, err error)
+ Apply(ctx context.Context, netNamespace *applyconfigurationsnetworkv1.NetNamespaceApplyConfiguration, opts metav1.ApplyOptions) (result *networkv1.NetNamespace, err error)
NetNamespaceExpansion
}
// netNamespaces implements NetNamespaceInterface
type netNamespaces struct {
- *gentype.ClientWithListAndApply[*v1.NetNamespace, *v1.NetNamespaceList, *networkv1.NetNamespaceApplyConfiguration]
+ *gentype.ClientWithListAndApply[*networkv1.NetNamespace, *networkv1.NetNamespaceList, *applyconfigurationsnetworkv1.NetNamespaceApplyConfiguration]
}
// newNetNamespaces returns a NetNamespaces
func newNetNamespaces(c *NetworkV1Client) *netNamespaces {
return &netNamespaces{
- gentype.NewClientWithListAndApply[*v1.NetNamespace, *v1.NetNamespaceList, *networkv1.NetNamespaceApplyConfiguration](
+ gentype.NewClientWithListAndApply[*networkv1.NetNamespace, *networkv1.NetNamespaceList, *applyconfigurationsnetworkv1.NetNamespaceApplyConfiguration](
"netnamespaces",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.NetNamespace { return &v1.NetNamespace{} },
- func() *v1.NetNamespaceList { return &v1.NetNamespaceList{} }),
+ func() *networkv1.NetNamespace { return &networkv1.NetNamespace{} },
+ func() *networkv1.NetNamespaceList { return &networkv1.NetNamespaceList{} },
+ ),
}
}
diff --git a/network/clientset/versioned/typed/network/v1/network_client.go b/network/clientset/versioned/typed/network/v1/network_client.go
index eb9611771..b6042cdcd 100644
--- a/network/clientset/versioned/typed/network/v1/network_client.go
+++ b/network/clientset/versioned/typed/network/v1/network_client.go
@@ -3,10 +3,10 @@
package v1
import (
- "net/http"
+ http "net/http"
- v1 "github.com/openshift/api/network/v1"
- "github.com/openshift/client-go/network/clientset/versioned/scheme"
+ networkv1 "github.com/openshift/api/network/v1"
+ scheme "github.com/openshift/client-go/network/clientset/versioned/scheme"
rest "k8s.io/client-go/rest"
)
@@ -84,10 +84,10 @@ func New(c rest.Interface) *NetworkV1Client {
}
func setConfigDefaults(config *rest.Config) error {
- gv := v1.SchemeGroupVersion
+ gv := networkv1.SchemeGroupVersion
config.GroupVersion = &gv
config.APIPath = "/apis"
- config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
+ config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion()
if config.UserAgent == "" {
config.UserAgent = rest.DefaultKubernetesUserAgent()
diff --git a/network/clientset/versioned/typed/network/v1alpha1/dnsnameresolver.go b/network/clientset/versioned/typed/network/v1alpha1/dnsnameresolver.go
index f9ef19edc..871641eaf 100644
--- a/network/clientset/versioned/typed/network/v1alpha1/dnsnameresolver.go
+++ b/network/clientset/versioned/typed/network/v1alpha1/dnsnameresolver.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- "context"
+ context "context"
- v1alpha1 "github.com/openshift/api/network/v1alpha1"
- networkv1alpha1 "github.com/openshift/client-go/network/applyconfigurations/network/v1alpha1"
+ networkv1alpha1 "github.com/openshift/api/network/v1alpha1"
+ applyconfigurationsnetworkv1alpha1 "github.com/openshift/client-go/network/applyconfigurations/network/v1alpha1"
scheme "github.com/openshift/client-go/network/clientset/versioned/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type DNSNameResolversGetter interface {
// DNSNameResolverInterface has methods to work with DNSNameResolver resources.
type DNSNameResolverInterface interface {
- Create(ctx context.Context, dNSNameResolver *v1alpha1.DNSNameResolver, opts v1.CreateOptions) (*v1alpha1.DNSNameResolver, error)
- Update(ctx context.Context, dNSNameResolver *v1alpha1.DNSNameResolver, opts v1.UpdateOptions) (*v1alpha1.DNSNameResolver, error)
+ Create(ctx context.Context, dNSNameResolver *networkv1alpha1.DNSNameResolver, opts v1.CreateOptions) (*networkv1alpha1.DNSNameResolver, error)
+ Update(ctx context.Context, dNSNameResolver *networkv1alpha1.DNSNameResolver, opts v1.UpdateOptions) (*networkv1alpha1.DNSNameResolver, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, dNSNameResolver *v1alpha1.DNSNameResolver, opts v1.UpdateOptions) (*v1alpha1.DNSNameResolver, error)
+ UpdateStatus(ctx context.Context, dNSNameResolver *networkv1alpha1.DNSNameResolver, opts v1.UpdateOptions) (*networkv1alpha1.DNSNameResolver, error)
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.DNSNameResolver, error)
- List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.DNSNameResolverList, error)
+ Get(ctx context.Context, name string, opts v1.GetOptions) (*networkv1alpha1.DNSNameResolver, error)
+ List(ctx context.Context, opts v1.ListOptions) (*networkv1alpha1.DNSNameResolverList, error)
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.DNSNameResolver, err error)
- Apply(ctx context.Context, dNSNameResolver *networkv1alpha1.DNSNameResolverApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.DNSNameResolver, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networkv1alpha1.DNSNameResolver, err error)
+ Apply(ctx context.Context, dNSNameResolver *applyconfigurationsnetworkv1alpha1.DNSNameResolverApplyConfiguration, opts v1.ApplyOptions) (result *networkv1alpha1.DNSNameResolver, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, dNSNameResolver *networkv1alpha1.DNSNameResolverApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.DNSNameResolver, err error)
+ ApplyStatus(ctx context.Context, dNSNameResolver *applyconfigurationsnetworkv1alpha1.DNSNameResolverApplyConfiguration, opts v1.ApplyOptions) (result *networkv1alpha1.DNSNameResolver, err error)
DNSNameResolverExpansion
}
// dNSNameResolvers implements DNSNameResolverInterface
type dNSNameResolvers struct {
- *gentype.ClientWithListAndApply[*v1alpha1.DNSNameResolver, *v1alpha1.DNSNameResolverList, *networkv1alpha1.DNSNameResolverApplyConfiguration]
+ *gentype.ClientWithListAndApply[*networkv1alpha1.DNSNameResolver, *networkv1alpha1.DNSNameResolverList, *applyconfigurationsnetworkv1alpha1.DNSNameResolverApplyConfiguration]
}
// newDNSNameResolvers returns a DNSNameResolvers
func newDNSNameResolvers(c *NetworkV1alpha1Client, namespace string) *dNSNameResolvers {
return &dNSNameResolvers{
- gentype.NewClientWithListAndApply[*v1alpha1.DNSNameResolver, *v1alpha1.DNSNameResolverList, *networkv1alpha1.DNSNameResolverApplyConfiguration](
+ gentype.NewClientWithListAndApply[*networkv1alpha1.DNSNameResolver, *networkv1alpha1.DNSNameResolverList, *applyconfigurationsnetworkv1alpha1.DNSNameResolverApplyConfiguration](
"dnsnameresolvers",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
- func() *v1alpha1.DNSNameResolver { return &v1alpha1.DNSNameResolver{} },
- func() *v1alpha1.DNSNameResolverList { return &v1alpha1.DNSNameResolverList{} }),
+ func() *networkv1alpha1.DNSNameResolver { return &networkv1alpha1.DNSNameResolver{} },
+ func() *networkv1alpha1.DNSNameResolverList { return &networkv1alpha1.DNSNameResolverList{} },
+ ),
}
}
diff --git a/network/clientset/versioned/typed/network/v1alpha1/fake/fake_dnsnameresolver.go b/network/clientset/versioned/typed/network/v1alpha1/fake/fake_dnsnameresolver.go
index 8a3fcc3c7..b7bdc96a5 100644
--- a/network/clientset/versioned/typed/network/v1alpha1/fake/fake_dnsnameresolver.go
+++ b/network/clientset/versioned/typed/network/v1alpha1/fake/fake_dnsnameresolver.go
@@ -3,179 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1alpha1 "github.com/openshift/api/network/v1alpha1"
networkv1alpha1 "github.com/openshift/client-go/network/applyconfigurations/network/v1alpha1"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typednetworkv1alpha1 "github.com/openshift/client-go/network/clientset/versioned/typed/network/v1alpha1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeDNSNameResolvers implements DNSNameResolverInterface
-type FakeDNSNameResolvers struct {
+// fakeDNSNameResolvers implements DNSNameResolverInterface
+type fakeDNSNameResolvers struct {
+ *gentype.FakeClientWithListAndApply[*v1alpha1.DNSNameResolver, *v1alpha1.DNSNameResolverList, *networkv1alpha1.DNSNameResolverApplyConfiguration]
Fake *FakeNetworkV1alpha1
- ns string
-}
-
-var dnsnameresolversResource = v1alpha1.SchemeGroupVersion.WithResource("dnsnameresolvers")
-
-var dnsnameresolversKind = v1alpha1.SchemeGroupVersion.WithKind("DNSNameResolver")
-
-// Get takes name of the dNSNameResolver, and returns the corresponding dNSNameResolver object, and an error if there is any.
-func (c *FakeDNSNameResolvers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.DNSNameResolver, err error) {
- emptyResult := &v1alpha1.DNSNameResolver{}
- obj, err := c.Fake.
- Invokes(testing.NewGetActionWithOptions(dnsnameresolversResource, c.ns, name, options), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.DNSNameResolver), err
-}
-
-// List takes label and field selectors, and returns the list of DNSNameResolvers that match those selectors.
-func (c *FakeDNSNameResolvers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.DNSNameResolverList, err error) {
- emptyResult := &v1alpha1.DNSNameResolverList{}
- obj, err := c.Fake.
- Invokes(testing.NewListActionWithOptions(dnsnameresolversResource, dnsnameresolversKind, c.ns, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1alpha1.DNSNameResolverList{ListMeta: obj.(*v1alpha1.DNSNameResolverList).ListMeta}
- for _, item := range obj.(*v1alpha1.DNSNameResolverList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested dNSNameResolvers.
-func (c *FakeDNSNameResolvers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewWatchActionWithOptions(dnsnameresolversResource, c.ns, opts))
-
-}
-
-// Create takes the representation of a dNSNameResolver and creates it. Returns the server's representation of the dNSNameResolver, and an error, if there is any.
-func (c *FakeDNSNameResolvers) Create(ctx context.Context, dNSNameResolver *v1alpha1.DNSNameResolver, opts v1.CreateOptions) (result *v1alpha1.DNSNameResolver, err error) {
- emptyResult := &v1alpha1.DNSNameResolver{}
- obj, err := c.Fake.
- Invokes(testing.NewCreateActionWithOptions(dnsnameresolversResource, c.ns, dNSNameResolver, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.DNSNameResolver), err
-}
-
-// Update takes the representation of a dNSNameResolver and updates it. Returns the server's representation of the dNSNameResolver, and an error, if there is any.
-func (c *FakeDNSNameResolvers) Update(ctx context.Context, dNSNameResolver *v1alpha1.DNSNameResolver, opts v1.UpdateOptions) (result *v1alpha1.DNSNameResolver, err error) {
- emptyResult := &v1alpha1.DNSNameResolver{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateActionWithOptions(dnsnameresolversResource, c.ns, dNSNameResolver, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.DNSNameResolver), err
}
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeDNSNameResolvers) UpdateStatus(ctx context.Context, dNSNameResolver *v1alpha1.DNSNameResolver, opts v1.UpdateOptions) (result *v1alpha1.DNSNameResolver, err error) {
- emptyResult := &v1alpha1.DNSNameResolver{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateSubresourceActionWithOptions(dnsnameresolversResource, "status", c.ns, dNSNameResolver, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.DNSNameResolver), err
-}
-
-// Delete takes name of the dNSNameResolver and deletes it. Returns an error if one occurs.
-func (c *FakeDNSNameResolvers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewDeleteActionWithOptions(dnsnameresolversResource, c.ns, name, opts), &v1alpha1.DNSNameResolver{})
-
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeDNSNameResolvers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewDeleteCollectionActionWithOptions(dnsnameresolversResource, c.ns, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1alpha1.DNSNameResolverList{})
- return err
-}
-
-// Patch applies the patch and returns the patched dNSNameResolver.
-func (c *FakeDNSNameResolvers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.DNSNameResolver, err error) {
- emptyResult := &v1alpha1.DNSNameResolver{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(dnsnameresolversResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.DNSNameResolver), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied dNSNameResolver.
-func (c *FakeDNSNameResolvers) Apply(ctx context.Context, dNSNameResolver *networkv1alpha1.DNSNameResolverApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.DNSNameResolver, err error) {
- if dNSNameResolver == nil {
- return nil, fmt.Errorf("dNSNameResolver provided to Apply must not be nil")
- }
- data, err := json.Marshal(dNSNameResolver)
- if err != nil {
- return nil, err
- }
- name := dNSNameResolver.Name
- if name == nil {
- return nil, fmt.Errorf("dNSNameResolver.Name must be provided to Apply")
- }
- emptyResult := &v1alpha1.DNSNameResolver{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(dnsnameresolversResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.DNSNameResolver), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeDNSNameResolvers) ApplyStatus(ctx context.Context, dNSNameResolver *networkv1alpha1.DNSNameResolverApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.DNSNameResolver, err error) {
- if dNSNameResolver == nil {
- return nil, fmt.Errorf("dNSNameResolver provided to Apply must not be nil")
- }
- data, err := json.Marshal(dNSNameResolver)
- if err != nil {
- return nil, err
- }
- name := dNSNameResolver.Name
- if name == nil {
- return nil, fmt.Errorf("dNSNameResolver.Name must be provided to Apply")
- }
- emptyResult := &v1alpha1.DNSNameResolver{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(dnsnameresolversResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
-
- if obj == nil {
- return emptyResult, err
+func newFakeDNSNameResolvers(fake *FakeNetworkV1alpha1, namespace string) typednetworkv1alpha1.DNSNameResolverInterface {
+ return &fakeDNSNameResolvers{
+ gentype.NewFakeClientWithListAndApply[*v1alpha1.DNSNameResolver, *v1alpha1.DNSNameResolverList, *networkv1alpha1.DNSNameResolverApplyConfiguration](
+ fake.Fake,
+ namespace,
+ v1alpha1.SchemeGroupVersion.WithResource("dnsnameresolvers"),
+ v1alpha1.SchemeGroupVersion.WithKind("DNSNameResolver"),
+ func() *v1alpha1.DNSNameResolver { return &v1alpha1.DNSNameResolver{} },
+ func() *v1alpha1.DNSNameResolverList { return &v1alpha1.DNSNameResolverList{} },
+ func(dst, src *v1alpha1.DNSNameResolverList) { dst.ListMeta = src.ListMeta },
+ func(list *v1alpha1.DNSNameResolverList) []*v1alpha1.DNSNameResolver {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1alpha1.DNSNameResolverList, items []*v1alpha1.DNSNameResolver) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1alpha1.DNSNameResolver), err
}
diff --git a/network/clientset/versioned/typed/network/v1alpha1/fake/fake_network_client.go b/network/clientset/versioned/typed/network/v1alpha1/fake/fake_network_client.go
index a731cd3c1..21e48c26f 100644
--- a/network/clientset/versioned/typed/network/v1alpha1/fake/fake_network_client.go
+++ b/network/clientset/versioned/typed/network/v1alpha1/fake/fake_network_client.go
@@ -13,7 +13,7 @@ type FakeNetworkV1alpha1 struct {
}
func (c *FakeNetworkV1alpha1) DNSNameResolvers(namespace string) v1alpha1.DNSNameResolverInterface {
- return &FakeDNSNameResolvers{c, namespace}
+ return newFakeDNSNameResolvers(c, namespace)
}
// RESTClient returns a RESTClient that is used to communicate
diff --git a/network/clientset/versioned/typed/network/v1alpha1/network_client.go b/network/clientset/versioned/typed/network/v1alpha1/network_client.go
index 2aec8db56..02ec4142e 100644
--- a/network/clientset/versioned/typed/network/v1alpha1/network_client.go
+++ b/network/clientset/versioned/typed/network/v1alpha1/network_client.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- "net/http"
+ http "net/http"
- v1alpha1 "github.com/openshift/api/network/v1alpha1"
- "github.com/openshift/client-go/network/clientset/versioned/scheme"
+ networkv1alpha1 "github.com/openshift/api/network/v1alpha1"
+ scheme "github.com/openshift/client-go/network/clientset/versioned/scheme"
rest "k8s.io/client-go/rest"
)
@@ -69,10 +69,10 @@ func New(c rest.Interface) *NetworkV1alpha1Client {
}
func setConfigDefaults(config *rest.Config) error {
- gv := v1alpha1.SchemeGroupVersion
+ gv := networkv1alpha1.SchemeGroupVersion
config.GroupVersion = &gv
config.APIPath = "/apis"
- config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
+ config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion()
if config.UserAgent == "" {
config.UserAgent = rest.DefaultKubernetesUserAgent()
diff --git a/network/informers/externalversions/generic.go b/network/informers/externalversions/generic.go
index 4859bc455..885ca8b06 100644
--- a/network/informers/externalversions/generic.go
+++ b/network/informers/externalversions/generic.go
@@ -3,7 +3,7 @@
package externalversions
import (
- "fmt"
+ fmt "fmt"
v1 "github.com/openshift/api/network/v1"
v1alpha1 "github.com/openshift/api/network/v1alpha1"
diff --git a/network/informers/externalversions/network/v1/clusternetwork.go b/network/informers/externalversions/network/v1/clusternetwork.go
index d3a837184..0c1e0725e 100644
--- a/network/informers/externalversions/network/v1/clusternetwork.go
+++ b/network/informers/externalversions/network/v1/clusternetwork.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- networkv1 "github.com/openshift/api/network/v1"
+ apinetworkv1 "github.com/openshift/api/network/v1"
versioned "github.com/openshift/client-go/network/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/network/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/network/listers/network/v1"
+ networkv1 "github.com/openshift/client-go/network/listers/network/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// ClusterNetworks.
type ClusterNetworkInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.ClusterNetworkLister
+ Lister() networkv1.ClusterNetworkLister
}
type clusterNetworkInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredClusterNetworkInformer(client versioned.Interface, resyncPeriod
return client.NetworkV1().ClusterNetworks().Watch(context.TODO(), options)
},
},
- &networkv1.ClusterNetwork{},
+ &apinetworkv1.ClusterNetwork{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *clusterNetworkInformer) defaultInformer(client versioned.Interface, res
}
func (f *clusterNetworkInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&networkv1.ClusterNetwork{}, f.defaultInformer)
+ return f.factory.InformerFor(&apinetworkv1.ClusterNetwork{}, f.defaultInformer)
}
-func (f *clusterNetworkInformer) Lister() v1.ClusterNetworkLister {
- return v1.NewClusterNetworkLister(f.Informer().GetIndexer())
+func (f *clusterNetworkInformer) Lister() networkv1.ClusterNetworkLister {
+ return networkv1.NewClusterNetworkLister(f.Informer().GetIndexer())
}
diff --git a/network/informers/externalversions/network/v1/egressnetworkpolicy.go b/network/informers/externalversions/network/v1/egressnetworkpolicy.go
index cac3b26d7..6d7c3139e 100644
--- a/network/informers/externalversions/network/v1/egressnetworkpolicy.go
+++ b/network/informers/externalversions/network/v1/egressnetworkpolicy.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- networkv1 "github.com/openshift/api/network/v1"
+ apinetworkv1 "github.com/openshift/api/network/v1"
versioned "github.com/openshift/client-go/network/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/network/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/network/listers/network/v1"
+ networkv1 "github.com/openshift/client-go/network/listers/network/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// EgressNetworkPolicies.
type EgressNetworkPolicyInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.EgressNetworkPolicyLister
+ Lister() networkv1.EgressNetworkPolicyLister
}
type egressNetworkPolicyInformer struct {
@@ -55,7 +55,7 @@ func NewFilteredEgressNetworkPolicyInformer(client versioned.Interface, namespac
return client.NetworkV1().EgressNetworkPolicies(namespace).Watch(context.TODO(), options)
},
},
- &networkv1.EgressNetworkPolicy{},
+ &apinetworkv1.EgressNetworkPolicy{},
resyncPeriod,
indexers,
)
@@ -66,9 +66,9 @@ func (f *egressNetworkPolicyInformer) defaultInformer(client versioned.Interface
}
func (f *egressNetworkPolicyInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&networkv1.EgressNetworkPolicy{}, f.defaultInformer)
+ return f.factory.InformerFor(&apinetworkv1.EgressNetworkPolicy{}, f.defaultInformer)
}
-func (f *egressNetworkPolicyInformer) Lister() v1.EgressNetworkPolicyLister {
- return v1.NewEgressNetworkPolicyLister(f.Informer().GetIndexer())
+func (f *egressNetworkPolicyInformer) Lister() networkv1.EgressNetworkPolicyLister {
+ return networkv1.NewEgressNetworkPolicyLister(f.Informer().GetIndexer())
}
diff --git a/network/informers/externalversions/network/v1/hostsubnet.go b/network/informers/externalversions/network/v1/hostsubnet.go
index e7b79021e..74147da3f 100644
--- a/network/informers/externalversions/network/v1/hostsubnet.go
+++ b/network/informers/externalversions/network/v1/hostsubnet.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- networkv1 "github.com/openshift/api/network/v1"
+ apinetworkv1 "github.com/openshift/api/network/v1"
versioned "github.com/openshift/client-go/network/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/network/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/network/listers/network/v1"
+ networkv1 "github.com/openshift/client-go/network/listers/network/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// HostSubnets.
type HostSubnetInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.HostSubnetLister
+ Lister() networkv1.HostSubnetLister
}
type hostSubnetInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredHostSubnetInformer(client versioned.Interface, resyncPeriod time
return client.NetworkV1().HostSubnets().Watch(context.TODO(), options)
},
},
- &networkv1.HostSubnet{},
+ &apinetworkv1.HostSubnet{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *hostSubnetInformer) defaultInformer(client versioned.Interface, resyncP
}
func (f *hostSubnetInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&networkv1.HostSubnet{}, f.defaultInformer)
+ return f.factory.InformerFor(&apinetworkv1.HostSubnet{}, f.defaultInformer)
}
-func (f *hostSubnetInformer) Lister() v1.HostSubnetLister {
- return v1.NewHostSubnetLister(f.Informer().GetIndexer())
+func (f *hostSubnetInformer) Lister() networkv1.HostSubnetLister {
+ return networkv1.NewHostSubnetLister(f.Informer().GetIndexer())
}
diff --git a/network/informers/externalversions/network/v1/netnamespace.go b/network/informers/externalversions/network/v1/netnamespace.go
index a1a91e947..5f8567d6b 100644
--- a/network/informers/externalversions/network/v1/netnamespace.go
+++ b/network/informers/externalversions/network/v1/netnamespace.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- networkv1 "github.com/openshift/api/network/v1"
+ apinetworkv1 "github.com/openshift/api/network/v1"
versioned "github.com/openshift/client-go/network/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/network/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/network/listers/network/v1"
+ networkv1 "github.com/openshift/client-go/network/listers/network/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// NetNamespaces.
type NetNamespaceInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.NetNamespaceLister
+ Lister() networkv1.NetNamespaceLister
}
type netNamespaceInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredNetNamespaceInformer(client versioned.Interface, resyncPeriod ti
return client.NetworkV1().NetNamespaces().Watch(context.TODO(), options)
},
},
- &networkv1.NetNamespace{},
+ &apinetworkv1.NetNamespace{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *netNamespaceInformer) defaultInformer(client versioned.Interface, resyn
}
func (f *netNamespaceInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&networkv1.NetNamespace{}, f.defaultInformer)
+ return f.factory.InformerFor(&apinetworkv1.NetNamespace{}, f.defaultInformer)
}
-func (f *netNamespaceInformer) Lister() v1.NetNamespaceLister {
- return v1.NewNetNamespaceLister(f.Informer().GetIndexer())
+func (f *netNamespaceInformer) Lister() networkv1.NetNamespaceLister {
+ return networkv1.NewNetNamespaceLister(f.Informer().GetIndexer())
}
diff --git a/network/informers/externalversions/network/v1alpha1/dnsnameresolver.go b/network/informers/externalversions/network/v1alpha1/dnsnameresolver.go
index 8c2953ccd..5123527b2 100644
--- a/network/informers/externalversions/network/v1alpha1/dnsnameresolver.go
+++ b/network/informers/externalversions/network/v1alpha1/dnsnameresolver.go
@@ -3,13 +3,13 @@
package v1alpha1
import (
- "context"
+ context "context"
time "time"
- networkv1alpha1 "github.com/openshift/api/network/v1alpha1"
+ apinetworkv1alpha1 "github.com/openshift/api/network/v1alpha1"
versioned "github.com/openshift/client-go/network/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/network/informers/externalversions/internalinterfaces"
- v1alpha1 "github.com/openshift/client-go/network/listers/network/v1alpha1"
+ networkv1alpha1 "github.com/openshift/client-go/network/listers/network/v1alpha1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// DNSNameResolvers.
type DNSNameResolverInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1alpha1.DNSNameResolverLister
+ Lister() networkv1alpha1.DNSNameResolverLister
}
type dNSNameResolverInformer struct {
@@ -55,7 +55,7 @@ func NewFilteredDNSNameResolverInformer(client versioned.Interface, namespace st
return client.NetworkV1alpha1().DNSNameResolvers(namespace).Watch(context.TODO(), options)
},
},
- &networkv1alpha1.DNSNameResolver{},
+ &apinetworkv1alpha1.DNSNameResolver{},
resyncPeriod,
indexers,
)
@@ -66,9 +66,9 @@ func (f *dNSNameResolverInformer) defaultInformer(client versioned.Interface, re
}
func (f *dNSNameResolverInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&networkv1alpha1.DNSNameResolver{}, f.defaultInformer)
+ return f.factory.InformerFor(&apinetworkv1alpha1.DNSNameResolver{}, f.defaultInformer)
}
-func (f *dNSNameResolverInformer) Lister() v1alpha1.DNSNameResolverLister {
- return v1alpha1.NewDNSNameResolverLister(f.Informer().GetIndexer())
+func (f *dNSNameResolverInformer) Lister() networkv1alpha1.DNSNameResolverLister {
+ return networkv1alpha1.NewDNSNameResolverLister(f.Informer().GetIndexer())
}
diff --git a/network/listers/network/v1/clusternetwork.go b/network/listers/network/v1/clusternetwork.go
index 81af2ecdf..cfa283fad 100644
--- a/network/listers/network/v1/clusternetwork.go
+++ b/network/listers/network/v1/clusternetwork.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/network/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ networkv1 "github.com/openshift/api/network/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ClusterNetworkLister helps list ClusterNetworks.
@@ -14,19 +14,19 @@ import (
type ClusterNetworkLister interface {
// List lists all ClusterNetworks in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.ClusterNetwork, err error)
+ List(selector labels.Selector) (ret []*networkv1.ClusterNetwork, err error)
// Get retrieves the ClusterNetwork from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.ClusterNetwork, error)
+ Get(name string) (*networkv1.ClusterNetwork, error)
ClusterNetworkListerExpansion
}
// clusterNetworkLister implements the ClusterNetworkLister interface.
type clusterNetworkLister struct {
- listers.ResourceIndexer[*v1.ClusterNetwork]
+ listers.ResourceIndexer[*networkv1.ClusterNetwork]
}
// NewClusterNetworkLister returns a new ClusterNetworkLister.
func NewClusterNetworkLister(indexer cache.Indexer) ClusterNetworkLister {
- return &clusterNetworkLister{listers.New[*v1.ClusterNetwork](indexer, v1.Resource("clusternetwork"))}
+ return &clusterNetworkLister{listers.New[*networkv1.ClusterNetwork](indexer, networkv1.Resource("clusternetwork"))}
}
diff --git a/network/listers/network/v1/egressnetworkpolicy.go b/network/listers/network/v1/egressnetworkpolicy.go
index bad75b3ee..c7eb08a60 100644
--- a/network/listers/network/v1/egressnetworkpolicy.go
+++ b/network/listers/network/v1/egressnetworkpolicy.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/network/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ networkv1 "github.com/openshift/api/network/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// EgressNetworkPolicyLister helps list EgressNetworkPolicies.
@@ -14,7 +14,7 @@ import (
type EgressNetworkPolicyLister interface {
// List lists all EgressNetworkPolicies in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.EgressNetworkPolicy, err error)
+ List(selector labels.Selector) (ret []*networkv1.EgressNetworkPolicy, err error)
// EgressNetworkPolicies returns an object that can list and get EgressNetworkPolicies.
EgressNetworkPolicies(namespace string) EgressNetworkPolicyNamespaceLister
EgressNetworkPolicyListerExpansion
@@ -22,17 +22,17 @@ type EgressNetworkPolicyLister interface {
// egressNetworkPolicyLister implements the EgressNetworkPolicyLister interface.
type egressNetworkPolicyLister struct {
- listers.ResourceIndexer[*v1.EgressNetworkPolicy]
+ listers.ResourceIndexer[*networkv1.EgressNetworkPolicy]
}
// NewEgressNetworkPolicyLister returns a new EgressNetworkPolicyLister.
func NewEgressNetworkPolicyLister(indexer cache.Indexer) EgressNetworkPolicyLister {
- return &egressNetworkPolicyLister{listers.New[*v1.EgressNetworkPolicy](indexer, v1.Resource("egressnetworkpolicy"))}
+ return &egressNetworkPolicyLister{listers.New[*networkv1.EgressNetworkPolicy](indexer, networkv1.Resource("egressnetworkpolicy"))}
}
// EgressNetworkPolicies returns an object that can list and get EgressNetworkPolicies.
func (s *egressNetworkPolicyLister) EgressNetworkPolicies(namespace string) EgressNetworkPolicyNamespaceLister {
- return egressNetworkPolicyNamespaceLister{listers.NewNamespaced[*v1.EgressNetworkPolicy](s.ResourceIndexer, namespace)}
+ return egressNetworkPolicyNamespaceLister{listers.NewNamespaced[*networkv1.EgressNetworkPolicy](s.ResourceIndexer, namespace)}
}
// EgressNetworkPolicyNamespaceLister helps list and get EgressNetworkPolicies.
@@ -40,15 +40,15 @@ func (s *egressNetworkPolicyLister) EgressNetworkPolicies(namespace string) Egre
type EgressNetworkPolicyNamespaceLister interface {
// List lists all EgressNetworkPolicies in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.EgressNetworkPolicy, err error)
+ List(selector labels.Selector) (ret []*networkv1.EgressNetworkPolicy, err error)
// Get retrieves the EgressNetworkPolicy from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.EgressNetworkPolicy, error)
+ Get(name string) (*networkv1.EgressNetworkPolicy, error)
EgressNetworkPolicyNamespaceListerExpansion
}
// egressNetworkPolicyNamespaceLister implements the EgressNetworkPolicyNamespaceLister
// interface.
type egressNetworkPolicyNamespaceLister struct {
- listers.ResourceIndexer[*v1.EgressNetworkPolicy]
+ listers.ResourceIndexer[*networkv1.EgressNetworkPolicy]
}
diff --git a/network/listers/network/v1/hostsubnet.go b/network/listers/network/v1/hostsubnet.go
index 65bbdbaa7..991f17e11 100644
--- a/network/listers/network/v1/hostsubnet.go
+++ b/network/listers/network/v1/hostsubnet.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/network/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ networkv1 "github.com/openshift/api/network/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// HostSubnetLister helps list HostSubnets.
@@ -14,19 +14,19 @@ import (
type HostSubnetLister interface {
// List lists all HostSubnets in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.HostSubnet, err error)
+ List(selector labels.Selector) (ret []*networkv1.HostSubnet, err error)
// Get retrieves the HostSubnet from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.HostSubnet, error)
+ Get(name string) (*networkv1.HostSubnet, error)
HostSubnetListerExpansion
}
// hostSubnetLister implements the HostSubnetLister interface.
type hostSubnetLister struct {
- listers.ResourceIndexer[*v1.HostSubnet]
+ listers.ResourceIndexer[*networkv1.HostSubnet]
}
// NewHostSubnetLister returns a new HostSubnetLister.
func NewHostSubnetLister(indexer cache.Indexer) HostSubnetLister {
- return &hostSubnetLister{listers.New[*v1.HostSubnet](indexer, v1.Resource("hostsubnet"))}
+ return &hostSubnetLister{listers.New[*networkv1.HostSubnet](indexer, networkv1.Resource("hostsubnet"))}
}
diff --git a/network/listers/network/v1/netnamespace.go b/network/listers/network/v1/netnamespace.go
index a89480d94..0836f7045 100644
--- a/network/listers/network/v1/netnamespace.go
+++ b/network/listers/network/v1/netnamespace.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/network/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ networkv1 "github.com/openshift/api/network/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// NetNamespaceLister helps list NetNamespaces.
@@ -14,19 +14,19 @@ import (
type NetNamespaceLister interface {
// List lists all NetNamespaces in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.NetNamespace, err error)
+ List(selector labels.Selector) (ret []*networkv1.NetNamespace, err error)
// Get retrieves the NetNamespace from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.NetNamespace, error)
+ Get(name string) (*networkv1.NetNamespace, error)
NetNamespaceListerExpansion
}
// netNamespaceLister implements the NetNamespaceLister interface.
type netNamespaceLister struct {
- listers.ResourceIndexer[*v1.NetNamespace]
+ listers.ResourceIndexer[*networkv1.NetNamespace]
}
// NewNetNamespaceLister returns a new NetNamespaceLister.
func NewNetNamespaceLister(indexer cache.Indexer) NetNamespaceLister {
- return &netNamespaceLister{listers.New[*v1.NetNamespace](indexer, v1.Resource("netnamespace"))}
+ return &netNamespaceLister{listers.New[*networkv1.NetNamespace](indexer, networkv1.Resource("netnamespace"))}
}
diff --git a/network/listers/network/v1alpha1/dnsnameresolver.go b/network/listers/network/v1alpha1/dnsnameresolver.go
index d8373d926..58bb04173 100644
--- a/network/listers/network/v1alpha1/dnsnameresolver.go
+++ b/network/listers/network/v1alpha1/dnsnameresolver.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- v1alpha1 "github.com/openshift/api/network/v1alpha1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ networkv1alpha1 "github.com/openshift/api/network/v1alpha1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// DNSNameResolverLister helps list DNSNameResolvers.
@@ -14,7 +14,7 @@ import (
type DNSNameResolverLister interface {
// List lists all DNSNameResolvers in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1alpha1.DNSNameResolver, err error)
+ List(selector labels.Selector) (ret []*networkv1alpha1.DNSNameResolver, err error)
// DNSNameResolvers returns an object that can list and get DNSNameResolvers.
DNSNameResolvers(namespace string) DNSNameResolverNamespaceLister
DNSNameResolverListerExpansion
@@ -22,17 +22,17 @@ type DNSNameResolverLister interface {
// dNSNameResolverLister implements the DNSNameResolverLister interface.
type dNSNameResolverLister struct {
- listers.ResourceIndexer[*v1alpha1.DNSNameResolver]
+ listers.ResourceIndexer[*networkv1alpha1.DNSNameResolver]
}
// NewDNSNameResolverLister returns a new DNSNameResolverLister.
func NewDNSNameResolverLister(indexer cache.Indexer) DNSNameResolverLister {
- return &dNSNameResolverLister{listers.New[*v1alpha1.DNSNameResolver](indexer, v1alpha1.Resource("dnsnameresolver"))}
+ return &dNSNameResolverLister{listers.New[*networkv1alpha1.DNSNameResolver](indexer, networkv1alpha1.Resource("dnsnameresolver"))}
}
// DNSNameResolvers returns an object that can list and get DNSNameResolvers.
func (s *dNSNameResolverLister) DNSNameResolvers(namespace string) DNSNameResolverNamespaceLister {
- return dNSNameResolverNamespaceLister{listers.NewNamespaced[*v1alpha1.DNSNameResolver](s.ResourceIndexer, namespace)}
+ return dNSNameResolverNamespaceLister{listers.NewNamespaced[*networkv1alpha1.DNSNameResolver](s.ResourceIndexer, namespace)}
}
// DNSNameResolverNamespaceLister helps list and get DNSNameResolvers.
@@ -40,15 +40,15 @@ func (s *dNSNameResolverLister) DNSNameResolvers(namespace string) DNSNameResolv
type DNSNameResolverNamespaceLister interface {
// List lists all DNSNameResolvers in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1alpha1.DNSNameResolver, err error)
+ List(selector labels.Selector) (ret []*networkv1alpha1.DNSNameResolver, err error)
// Get retrieves the DNSNameResolver from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1alpha1.DNSNameResolver, error)
+ Get(name string) (*networkv1alpha1.DNSNameResolver, error)
DNSNameResolverNamespaceListerExpansion
}
// dNSNameResolverNamespaceLister implements the DNSNameResolverNamespaceLister
// interface.
type dNSNameResolverNamespaceLister struct {
- listers.ResourceIndexer[*v1alpha1.DNSNameResolver]
+ listers.ResourceIndexer[*networkv1alpha1.DNSNameResolver]
}
diff --git a/oauth/applyconfigurations/internal/internal.go b/oauth/applyconfigurations/internal/internal.go
index eccb23998..ab048a859 100644
--- a/oauth/applyconfigurations/internal/internal.go
+++ b/oauth/applyconfigurations/internal/internal.go
@@ -3,8 +3,8 @@
package internal
import (
- "fmt"
- "sync"
+ fmt "fmt"
+ sync "sync"
typed "sigs.k8s.io/structured-merge-diff/v4/typed"
)
diff --git a/oauth/applyconfigurations/oauth/v1/oauthaccesstoken.go b/oauth/applyconfigurations/oauth/v1/oauthaccesstoken.go
index 8c29054f9..959f5cd2a 100644
--- a/oauth/applyconfigurations/oauth/v1/oauthaccesstoken.go
+++ b/oauth/applyconfigurations/oauth/v1/oauthaccesstoken.go
@@ -5,26 +5,26 @@ package v1
import (
oauthv1 "github.com/openshift/api/oauth/v1"
internal "github.com/openshift/client-go/oauth/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// OAuthAccessTokenApplyConfiguration represents a declarative configuration of the OAuthAccessToken type for use
// with apply.
type OAuthAccessTokenApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- ClientName *string `json:"clientName,omitempty"`
- ExpiresIn *int64 `json:"expiresIn,omitempty"`
- Scopes []string `json:"scopes,omitempty"`
- RedirectURI *string `json:"redirectURI,omitempty"`
- UserName *string `json:"userName,omitempty"`
- UserUID *string `json:"userUID,omitempty"`
- AuthorizeToken *string `json:"authorizeToken,omitempty"`
- RefreshToken *string `json:"refreshToken,omitempty"`
- InactivityTimeoutSeconds *int32 `json:"inactivityTimeoutSeconds,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ ClientName *string `json:"clientName,omitempty"`
+ ExpiresIn *int64 `json:"expiresIn,omitempty"`
+ Scopes []string `json:"scopes,omitempty"`
+ RedirectURI *string `json:"redirectURI,omitempty"`
+ UserName *string `json:"userName,omitempty"`
+ UserUID *string `json:"userUID,omitempty"`
+ AuthorizeToken *string `json:"authorizeToken,omitempty"`
+ RefreshToken *string `json:"refreshToken,omitempty"`
+ InactivityTimeoutSeconds *int32 `json:"inactivityTimeoutSeconds,omitempty"`
}
// OAuthAccessToken constructs a declarative configuration of the OAuthAccessToken type for use with
@@ -76,7 +76,7 @@ func extractOAuthAccessToken(oAuthAccessToken *oauthv1.OAuthAccessToken, fieldMa
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *OAuthAccessTokenApplyConfiguration) WithKind(value string) *OAuthAccessTokenApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -84,7 +84,7 @@ func (b *OAuthAccessTokenApplyConfiguration) WithKind(value string) *OAuthAccess
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *OAuthAccessTokenApplyConfiguration) WithAPIVersion(value string) *OAuthAccessTokenApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -93,7 +93,7 @@ func (b *OAuthAccessTokenApplyConfiguration) WithAPIVersion(value string) *OAuth
// If called multiple times, the Name field is set to the value of the last call.
func (b *OAuthAccessTokenApplyConfiguration) WithName(value string) *OAuthAccessTokenApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -102,7 +102,7 @@ func (b *OAuthAccessTokenApplyConfiguration) WithName(value string) *OAuthAccess
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *OAuthAccessTokenApplyConfiguration) WithGenerateName(value string) *OAuthAccessTokenApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -111,7 +111,7 @@ func (b *OAuthAccessTokenApplyConfiguration) WithGenerateName(value string) *OAu
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *OAuthAccessTokenApplyConfiguration) WithNamespace(value string) *OAuthAccessTokenApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -120,7 +120,7 @@ func (b *OAuthAccessTokenApplyConfiguration) WithNamespace(value string) *OAuthA
// If called multiple times, the UID field is set to the value of the last call.
func (b *OAuthAccessTokenApplyConfiguration) WithUID(value types.UID) *OAuthAccessTokenApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -129,7 +129,7 @@ func (b *OAuthAccessTokenApplyConfiguration) WithUID(value types.UID) *OAuthAcce
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *OAuthAccessTokenApplyConfiguration) WithResourceVersion(value string) *OAuthAccessTokenApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -138,25 +138,25 @@ func (b *OAuthAccessTokenApplyConfiguration) WithResourceVersion(value string) *
// If called multiple times, the Generation field is set to the value of the last call.
func (b *OAuthAccessTokenApplyConfiguration) WithGeneration(value int64) *OAuthAccessTokenApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *OAuthAccessTokenApplyConfiguration) WithCreationTimestamp(value metav1.Time) *OAuthAccessTokenApplyConfiguration {
+func (b *OAuthAccessTokenApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *OAuthAccessTokenApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *OAuthAccessTokenApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *OAuthAccessTokenApplyConfiguration {
+func (b *OAuthAccessTokenApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *OAuthAccessTokenApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -165,7 +165,7 @@ func (b *OAuthAccessTokenApplyConfiguration) WithDeletionTimestamp(value metav1.
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *OAuthAccessTokenApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *OAuthAccessTokenApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -175,11 +175,11 @@ func (b *OAuthAccessTokenApplyConfiguration) WithDeletionGracePeriodSeconds(valu
// overwriting an existing map entries in Labels field with the same key.
func (b *OAuthAccessTokenApplyConfiguration) WithLabels(entries map[string]string) *OAuthAccessTokenApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -190,11 +190,11 @@ func (b *OAuthAccessTokenApplyConfiguration) WithLabels(entries map[string]strin
// overwriting an existing map entries in Annotations field with the same key.
func (b *OAuthAccessTokenApplyConfiguration) WithAnnotations(entries map[string]string) *OAuthAccessTokenApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -202,13 +202,13 @@ func (b *OAuthAccessTokenApplyConfiguration) WithAnnotations(entries map[string]
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *OAuthAccessTokenApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *OAuthAccessTokenApplyConfiguration {
+func (b *OAuthAccessTokenApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *OAuthAccessTokenApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -219,14 +219,14 @@ func (b *OAuthAccessTokenApplyConfiguration) WithOwnerReferences(values ...*v1.O
func (b *OAuthAccessTokenApplyConfiguration) WithFinalizers(values ...string) *OAuthAccessTokenApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *OAuthAccessTokenApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -307,5 +307,5 @@ func (b *OAuthAccessTokenApplyConfiguration) WithInactivityTimeoutSeconds(value
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *OAuthAccessTokenApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/oauth/applyconfigurations/oauth/v1/oauthauthorizetoken.go b/oauth/applyconfigurations/oauth/v1/oauthauthorizetoken.go
index 4ae35ca09..3ec75e9a2 100644
--- a/oauth/applyconfigurations/oauth/v1/oauthauthorizetoken.go
+++ b/oauth/applyconfigurations/oauth/v1/oauthauthorizetoken.go
@@ -5,26 +5,26 @@ package v1
import (
oauthv1 "github.com/openshift/api/oauth/v1"
internal "github.com/openshift/client-go/oauth/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// OAuthAuthorizeTokenApplyConfiguration represents a declarative configuration of the OAuthAuthorizeToken type for use
// with apply.
type OAuthAuthorizeTokenApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- ClientName *string `json:"clientName,omitempty"`
- ExpiresIn *int64 `json:"expiresIn,omitempty"`
- Scopes []string `json:"scopes,omitempty"`
- RedirectURI *string `json:"redirectURI,omitempty"`
- State *string `json:"state,omitempty"`
- UserName *string `json:"userName,omitempty"`
- UserUID *string `json:"userUID,omitempty"`
- CodeChallenge *string `json:"codeChallenge,omitempty"`
- CodeChallengeMethod *string `json:"codeChallengeMethod,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ ClientName *string `json:"clientName,omitempty"`
+ ExpiresIn *int64 `json:"expiresIn,omitempty"`
+ Scopes []string `json:"scopes,omitempty"`
+ RedirectURI *string `json:"redirectURI,omitempty"`
+ State *string `json:"state,omitempty"`
+ UserName *string `json:"userName,omitempty"`
+ UserUID *string `json:"userUID,omitempty"`
+ CodeChallenge *string `json:"codeChallenge,omitempty"`
+ CodeChallengeMethod *string `json:"codeChallengeMethod,omitempty"`
}
// OAuthAuthorizeToken constructs a declarative configuration of the OAuthAuthorizeToken type for use with
@@ -76,7 +76,7 @@ func extractOAuthAuthorizeToken(oAuthAuthorizeToken *oauthv1.OAuthAuthorizeToken
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *OAuthAuthorizeTokenApplyConfiguration) WithKind(value string) *OAuthAuthorizeTokenApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -84,7 +84,7 @@ func (b *OAuthAuthorizeTokenApplyConfiguration) WithKind(value string) *OAuthAut
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *OAuthAuthorizeTokenApplyConfiguration) WithAPIVersion(value string) *OAuthAuthorizeTokenApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -93,7 +93,7 @@ func (b *OAuthAuthorizeTokenApplyConfiguration) WithAPIVersion(value string) *OA
// If called multiple times, the Name field is set to the value of the last call.
func (b *OAuthAuthorizeTokenApplyConfiguration) WithName(value string) *OAuthAuthorizeTokenApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -102,7 +102,7 @@ func (b *OAuthAuthorizeTokenApplyConfiguration) WithName(value string) *OAuthAut
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *OAuthAuthorizeTokenApplyConfiguration) WithGenerateName(value string) *OAuthAuthorizeTokenApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -111,7 +111,7 @@ func (b *OAuthAuthorizeTokenApplyConfiguration) WithGenerateName(value string) *
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *OAuthAuthorizeTokenApplyConfiguration) WithNamespace(value string) *OAuthAuthorizeTokenApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -120,7 +120,7 @@ func (b *OAuthAuthorizeTokenApplyConfiguration) WithNamespace(value string) *OAu
// If called multiple times, the UID field is set to the value of the last call.
func (b *OAuthAuthorizeTokenApplyConfiguration) WithUID(value types.UID) *OAuthAuthorizeTokenApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -129,7 +129,7 @@ func (b *OAuthAuthorizeTokenApplyConfiguration) WithUID(value types.UID) *OAuthA
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *OAuthAuthorizeTokenApplyConfiguration) WithResourceVersion(value string) *OAuthAuthorizeTokenApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -138,25 +138,25 @@ func (b *OAuthAuthorizeTokenApplyConfiguration) WithResourceVersion(value string
// If called multiple times, the Generation field is set to the value of the last call.
func (b *OAuthAuthorizeTokenApplyConfiguration) WithGeneration(value int64) *OAuthAuthorizeTokenApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *OAuthAuthorizeTokenApplyConfiguration) WithCreationTimestamp(value metav1.Time) *OAuthAuthorizeTokenApplyConfiguration {
+func (b *OAuthAuthorizeTokenApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *OAuthAuthorizeTokenApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *OAuthAuthorizeTokenApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *OAuthAuthorizeTokenApplyConfiguration {
+func (b *OAuthAuthorizeTokenApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *OAuthAuthorizeTokenApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -165,7 +165,7 @@ func (b *OAuthAuthorizeTokenApplyConfiguration) WithDeletionTimestamp(value meta
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *OAuthAuthorizeTokenApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *OAuthAuthorizeTokenApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -175,11 +175,11 @@ func (b *OAuthAuthorizeTokenApplyConfiguration) WithDeletionGracePeriodSeconds(v
// overwriting an existing map entries in Labels field with the same key.
func (b *OAuthAuthorizeTokenApplyConfiguration) WithLabels(entries map[string]string) *OAuthAuthorizeTokenApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -190,11 +190,11 @@ func (b *OAuthAuthorizeTokenApplyConfiguration) WithLabels(entries map[string]st
// overwriting an existing map entries in Annotations field with the same key.
func (b *OAuthAuthorizeTokenApplyConfiguration) WithAnnotations(entries map[string]string) *OAuthAuthorizeTokenApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -202,13 +202,13 @@ func (b *OAuthAuthorizeTokenApplyConfiguration) WithAnnotations(entries map[stri
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *OAuthAuthorizeTokenApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *OAuthAuthorizeTokenApplyConfiguration {
+func (b *OAuthAuthorizeTokenApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *OAuthAuthorizeTokenApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -219,14 +219,14 @@ func (b *OAuthAuthorizeTokenApplyConfiguration) WithOwnerReferences(values ...*v
func (b *OAuthAuthorizeTokenApplyConfiguration) WithFinalizers(values ...string) *OAuthAuthorizeTokenApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *OAuthAuthorizeTokenApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -307,5 +307,5 @@ func (b *OAuthAuthorizeTokenApplyConfiguration) WithCodeChallengeMethod(value st
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *OAuthAuthorizeTokenApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/oauth/applyconfigurations/oauth/v1/oauthclient.go b/oauth/applyconfigurations/oauth/v1/oauthclient.go
index d62e2e5de..b1f851543 100644
--- a/oauth/applyconfigurations/oauth/v1/oauthclient.go
+++ b/oauth/applyconfigurations/oauth/v1/oauthclient.go
@@ -5,25 +5,25 @@ package v1
import (
oauthv1 "github.com/openshift/api/oauth/v1"
internal "github.com/openshift/client-go/oauth/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// OAuthClientApplyConfiguration represents a declarative configuration of the OAuthClient type for use
// with apply.
type OAuthClientApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Secret *string `json:"secret,omitempty"`
- AdditionalSecrets []string `json:"additionalSecrets,omitempty"`
- RespondWithChallenges *bool `json:"respondWithChallenges,omitempty"`
- RedirectURIs []string `json:"redirectURIs,omitempty"`
- GrantMethod *oauthv1.GrantHandlerType `json:"grantMethod,omitempty"`
- ScopeRestrictions []ScopeRestrictionApplyConfiguration `json:"scopeRestrictions,omitempty"`
- AccessTokenMaxAgeSeconds *int32 `json:"accessTokenMaxAgeSeconds,omitempty"`
- AccessTokenInactivityTimeoutSeconds *int32 `json:"accessTokenInactivityTimeoutSeconds,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Secret *string `json:"secret,omitempty"`
+ AdditionalSecrets []string `json:"additionalSecrets,omitempty"`
+ RespondWithChallenges *bool `json:"respondWithChallenges,omitempty"`
+ RedirectURIs []string `json:"redirectURIs,omitempty"`
+ GrantMethod *oauthv1.GrantHandlerType `json:"grantMethod,omitempty"`
+ ScopeRestrictions []ScopeRestrictionApplyConfiguration `json:"scopeRestrictions,omitempty"`
+ AccessTokenMaxAgeSeconds *int32 `json:"accessTokenMaxAgeSeconds,omitempty"`
+ AccessTokenInactivityTimeoutSeconds *int32 `json:"accessTokenInactivityTimeoutSeconds,omitempty"`
}
// OAuthClient constructs a declarative configuration of the OAuthClient type for use with
@@ -75,7 +75,7 @@ func extractOAuthClient(oAuthClient *oauthv1.OAuthClient, fieldManager string, s
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *OAuthClientApplyConfiguration) WithKind(value string) *OAuthClientApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -83,7 +83,7 @@ func (b *OAuthClientApplyConfiguration) WithKind(value string) *OAuthClientApply
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *OAuthClientApplyConfiguration) WithAPIVersion(value string) *OAuthClientApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -92,7 +92,7 @@ func (b *OAuthClientApplyConfiguration) WithAPIVersion(value string) *OAuthClien
// If called multiple times, the Name field is set to the value of the last call.
func (b *OAuthClientApplyConfiguration) WithName(value string) *OAuthClientApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -101,7 +101,7 @@ func (b *OAuthClientApplyConfiguration) WithName(value string) *OAuthClientApply
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *OAuthClientApplyConfiguration) WithGenerateName(value string) *OAuthClientApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -110,7 +110,7 @@ func (b *OAuthClientApplyConfiguration) WithGenerateName(value string) *OAuthCli
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *OAuthClientApplyConfiguration) WithNamespace(value string) *OAuthClientApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -119,7 +119,7 @@ func (b *OAuthClientApplyConfiguration) WithNamespace(value string) *OAuthClient
// If called multiple times, the UID field is set to the value of the last call.
func (b *OAuthClientApplyConfiguration) WithUID(value types.UID) *OAuthClientApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -128,7 +128,7 @@ func (b *OAuthClientApplyConfiguration) WithUID(value types.UID) *OAuthClientApp
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *OAuthClientApplyConfiguration) WithResourceVersion(value string) *OAuthClientApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -137,25 +137,25 @@ func (b *OAuthClientApplyConfiguration) WithResourceVersion(value string) *OAuth
// If called multiple times, the Generation field is set to the value of the last call.
func (b *OAuthClientApplyConfiguration) WithGeneration(value int64) *OAuthClientApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *OAuthClientApplyConfiguration) WithCreationTimestamp(value metav1.Time) *OAuthClientApplyConfiguration {
+func (b *OAuthClientApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *OAuthClientApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *OAuthClientApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *OAuthClientApplyConfiguration {
+func (b *OAuthClientApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *OAuthClientApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -164,7 +164,7 @@ func (b *OAuthClientApplyConfiguration) WithDeletionTimestamp(value metav1.Time)
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *OAuthClientApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *OAuthClientApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -174,11 +174,11 @@ func (b *OAuthClientApplyConfiguration) WithDeletionGracePeriodSeconds(value int
// overwriting an existing map entries in Labels field with the same key.
func (b *OAuthClientApplyConfiguration) WithLabels(entries map[string]string) *OAuthClientApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -189,11 +189,11 @@ func (b *OAuthClientApplyConfiguration) WithLabels(entries map[string]string) *O
// overwriting an existing map entries in Annotations field with the same key.
func (b *OAuthClientApplyConfiguration) WithAnnotations(entries map[string]string) *OAuthClientApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -201,13 +201,13 @@ func (b *OAuthClientApplyConfiguration) WithAnnotations(entries map[string]strin
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *OAuthClientApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *OAuthClientApplyConfiguration {
+func (b *OAuthClientApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *OAuthClientApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -218,14 +218,14 @@ func (b *OAuthClientApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerR
func (b *OAuthClientApplyConfiguration) WithFinalizers(values ...string) *OAuthClientApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *OAuthClientApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -305,5 +305,5 @@ func (b *OAuthClientApplyConfiguration) WithAccessTokenInactivityTimeoutSeconds(
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *OAuthClientApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/oauth/applyconfigurations/oauth/v1/oauthclientauthorization.go b/oauth/applyconfigurations/oauth/v1/oauthclientauthorization.go
index e5661cd05..838cd4b30 100644
--- a/oauth/applyconfigurations/oauth/v1/oauthclientauthorization.go
+++ b/oauth/applyconfigurations/oauth/v1/oauthclientauthorization.go
@@ -5,21 +5,21 @@ package v1
import (
oauthv1 "github.com/openshift/api/oauth/v1"
internal "github.com/openshift/client-go/oauth/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// OAuthClientAuthorizationApplyConfiguration represents a declarative configuration of the OAuthClientAuthorization type for use
// with apply.
type OAuthClientAuthorizationApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- ClientName *string `json:"clientName,omitempty"`
- UserName *string `json:"userName,omitempty"`
- UserUID *string `json:"userUID,omitempty"`
- Scopes []string `json:"scopes,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ ClientName *string `json:"clientName,omitempty"`
+ UserName *string `json:"userName,omitempty"`
+ UserUID *string `json:"userUID,omitempty"`
+ Scopes []string `json:"scopes,omitempty"`
}
// OAuthClientAuthorization constructs a declarative configuration of the OAuthClientAuthorization type for use with
@@ -71,7 +71,7 @@ func extractOAuthClientAuthorization(oAuthClientAuthorization *oauthv1.OAuthClie
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *OAuthClientAuthorizationApplyConfiguration) WithKind(value string) *OAuthClientAuthorizationApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -79,7 +79,7 @@ func (b *OAuthClientAuthorizationApplyConfiguration) WithKind(value string) *OAu
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *OAuthClientAuthorizationApplyConfiguration) WithAPIVersion(value string) *OAuthClientAuthorizationApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -88,7 +88,7 @@ func (b *OAuthClientAuthorizationApplyConfiguration) WithAPIVersion(value string
// If called multiple times, the Name field is set to the value of the last call.
func (b *OAuthClientAuthorizationApplyConfiguration) WithName(value string) *OAuthClientAuthorizationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -97,7 +97,7 @@ func (b *OAuthClientAuthorizationApplyConfiguration) WithName(value string) *OAu
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *OAuthClientAuthorizationApplyConfiguration) WithGenerateName(value string) *OAuthClientAuthorizationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -106,7 +106,7 @@ func (b *OAuthClientAuthorizationApplyConfiguration) WithGenerateName(value stri
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *OAuthClientAuthorizationApplyConfiguration) WithNamespace(value string) *OAuthClientAuthorizationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -115,7 +115,7 @@ func (b *OAuthClientAuthorizationApplyConfiguration) WithNamespace(value string)
// If called multiple times, the UID field is set to the value of the last call.
func (b *OAuthClientAuthorizationApplyConfiguration) WithUID(value types.UID) *OAuthClientAuthorizationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -124,7 +124,7 @@ func (b *OAuthClientAuthorizationApplyConfiguration) WithUID(value types.UID) *O
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *OAuthClientAuthorizationApplyConfiguration) WithResourceVersion(value string) *OAuthClientAuthorizationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -133,25 +133,25 @@ func (b *OAuthClientAuthorizationApplyConfiguration) WithResourceVersion(value s
// If called multiple times, the Generation field is set to the value of the last call.
func (b *OAuthClientAuthorizationApplyConfiguration) WithGeneration(value int64) *OAuthClientAuthorizationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *OAuthClientAuthorizationApplyConfiguration) WithCreationTimestamp(value metav1.Time) *OAuthClientAuthorizationApplyConfiguration {
+func (b *OAuthClientAuthorizationApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *OAuthClientAuthorizationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *OAuthClientAuthorizationApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *OAuthClientAuthorizationApplyConfiguration {
+func (b *OAuthClientAuthorizationApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *OAuthClientAuthorizationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -160,7 +160,7 @@ func (b *OAuthClientAuthorizationApplyConfiguration) WithDeletionTimestamp(value
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *OAuthClientAuthorizationApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *OAuthClientAuthorizationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -170,11 +170,11 @@ func (b *OAuthClientAuthorizationApplyConfiguration) WithDeletionGracePeriodSeco
// overwriting an existing map entries in Labels field with the same key.
func (b *OAuthClientAuthorizationApplyConfiguration) WithLabels(entries map[string]string) *OAuthClientAuthorizationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -185,11 +185,11 @@ func (b *OAuthClientAuthorizationApplyConfiguration) WithLabels(entries map[stri
// overwriting an existing map entries in Annotations field with the same key.
func (b *OAuthClientAuthorizationApplyConfiguration) WithAnnotations(entries map[string]string) *OAuthClientAuthorizationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -197,13 +197,13 @@ func (b *OAuthClientAuthorizationApplyConfiguration) WithAnnotations(entries map
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *OAuthClientAuthorizationApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *OAuthClientAuthorizationApplyConfiguration {
+func (b *OAuthClientAuthorizationApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *OAuthClientAuthorizationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -214,14 +214,14 @@ func (b *OAuthClientAuthorizationApplyConfiguration) WithOwnerReferences(values
func (b *OAuthClientAuthorizationApplyConfiguration) WithFinalizers(values ...string) *OAuthClientAuthorizationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *OAuthClientAuthorizationApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -262,5 +262,5 @@ func (b *OAuthClientAuthorizationApplyConfiguration) WithScopes(values ...string
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *OAuthClientAuthorizationApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/oauth/applyconfigurations/oauth/v1/useroauthaccesstoken.go b/oauth/applyconfigurations/oauth/v1/useroauthaccesstoken.go
index 1392a42ba..d689856ef 100644
--- a/oauth/applyconfigurations/oauth/v1/useroauthaccesstoken.go
+++ b/oauth/applyconfigurations/oauth/v1/useroauthaccesstoken.go
@@ -5,26 +5,26 @@ package v1
import (
oauthv1 "github.com/openshift/api/oauth/v1"
internal "github.com/openshift/client-go/oauth/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// UserOAuthAccessTokenApplyConfiguration represents a declarative configuration of the UserOAuthAccessToken type for use
// with apply.
type UserOAuthAccessTokenApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- ClientName *string `json:"clientName,omitempty"`
- ExpiresIn *int64 `json:"expiresIn,omitempty"`
- Scopes []string `json:"scopes,omitempty"`
- RedirectURI *string `json:"redirectURI,omitempty"`
- UserName *string `json:"userName,omitempty"`
- UserUID *string `json:"userUID,omitempty"`
- AuthorizeToken *string `json:"authorizeToken,omitempty"`
- RefreshToken *string `json:"refreshToken,omitempty"`
- InactivityTimeoutSeconds *int32 `json:"inactivityTimeoutSeconds,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ ClientName *string `json:"clientName,omitempty"`
+ ExpiresIn *int64 `json:"expiresIn,omitempty"`
+ Scopes []string `json:"scopes,omitempty"`
+ RedirectURI *string `json:"redirectURI,omitempty"`
+ UserName *string `json:"userName,omitempty"`
+ UserUID *string `json:"userUID,omitempty"`
+ AuthorizeToken *string `json:"authorizeToken,omitempty"`
+ RefreshToken *string `json:"refreshToken,omitempty"`
+ InactivityTimeoutSeconds *int32 `json:"inactivityTimeoutSeconds,omitempty"`
}
// UserOAuthAccessToken constructs a declarative configuration of the UserOAuthAccessToken type for use with
@@ -76,7 +76,7 @@ func extractUserOAuthAccessToken(userOAuthAccessToken *oauthv1.UserOAuthAccessTo
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *UserOAuthAccessTokenApplyConfiguration) WithKind(value string) *UserOAuthAccessTokenApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -84,7 +84,7 @@ func (b *UserOAuthAccessTokenApplyConfiguration) WithKind(value string) *UserOAu
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *UserOAuthAccessTokenApplyConfiguration) WithAPIVersion(value string) *UserOAuthAccessTokenApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -93,7 +93,7 @@ func (b *UserOAuthAccessTokenApplyConfiguration) WithAPIVersion(value string) *U
// If called multiple times, the Name field is set to the value of the last call.
func (b *UserOAuthAccessTokenApplyConfiguration) WithName(value string) *UserOAuthAccessTokenApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -102,7 +102,7 @@ func (b *UserOAuthAccessTokenApplyConfiguration) WithName(value string) *UserOAu
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *UserOAuthAccessTokenApplyConfiguration) WithGenerateName(value string) *UserOAuthAccessTokenApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -111,7 +111,7 @@ func (b *UserOAuthAccessTokenApplyConfiguration) WithGenerateName(value string)
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *UserOAuthAccessTokenApplyConfiguration) WithNamespace(value string) *UserOAuthAccessTokenApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -120,7 +120,7 @@ func (b *UserOAuthAccessTokenApplyConfiguration) WithNamespace(value string) *Us
// If called multiple times, the UID field is set to the value of the last call.
func (b *UserOAuthAccessTokenApplyConfiguration) WithUID(value types.UID) *UserOAuthAccessTokenApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -129,7 +129,7 @@ func (b *UserOAuthAccessTokenApplyConfiguration) WithUID(value types.UID) *UserO
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *UserOAuthAccessTokenApplyConfiguration) WithResourceVersion(value string) *UserOAuthAccessTokenApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -138,25 +138,25 @@ func (b *UserOAuthAccessTokenApplyConfiguration) WithResourceVersion(value strin
// If called multiple times, the Generation field is set to the value of the last call.
func (b *UserOAuthAccessTokenApplyConfiguration) WithGeneration(value int64) *UserOAuthAccessTokenApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *UserOAuthAccessTokenApplyConfiguration) WithCreationTimestamp(value metav1.Time) *UserOAuthAccessTokenApplyConfiguration {
+func (b *UserOAuthAccessTokenApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *UserOAuthAccessTokenApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *UserOAuthAccessTokenApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *UserOAuthAccessTokenApplyConfiguration {
+func (b *UserOAuthAccessTokenApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *UserOAuthAccessTokenApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -165,7 +165,7 @@ func (b *UserOAuthAccessTokenApplyConfiguration) WithDeletionTimestamp(value met
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *UserOAuthAccessTokenApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *UserOAuthAccessTokenApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -175,11 +175,11 @@ func (b *UserOAuthAccessTokenApplyConfiguration) WithDeletionGracePeriodSeconds(
// overwriting an existing map entries in Labels field with the same key.
func (b *UserOAuthAccessTokenApplyConfiguration) WithLabels(entries map[string]string) *UserOAuthAccessTokenApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -190,11 +190,11 @@ func (b *UserOAuthAccessTokenApplyConfiguration) WithLabels(entries map[string]s
// overwriting an existing map entries in Annotations field with the same key.
func (b *UserOAuthAccessTokenApplyConfiguration) WithAnnotations(entries map[string]string) *UserOAuthAccessTokenApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -202,13 +202,13 @@ func (b *UserOAuthAccessTokenApplyConfiguration) WithAnnotations(entries map[str
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *UserOAuthAccessTokenApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *UserOAuthAccessTokenApplyConfiguration {
+func (b *UserOAuthAccessTokenApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *UserOAuthAccessTokenApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -219,14 +219,14 @@ func (b *UserOAuthAccessTokenApplyConfiguration) WithOwnerReferences(values ...*
func (b *UserOAuthAccessTokenApplyConfiguration) WithFinalizers(values ...string) *UserOAuthAccessTokenApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *UserOAuthAccessTokenApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -307,5 +307,5 @@ func (b *UserOAuthAccessTokenApplyConfiguration) WithInactivityTimeoutSeconds(va
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *UserOAuthAccessTokenApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/oauth/clientset/versioned/clientset.go b/oauth/clientset/versioned/clientset.go
index 74493bdc2..e89fa3fc0 100644
--- a/oauth/clientset/versioned/clientset.go
+++ b/oauth/clientset/versioned/clientset.go
@@ -3,8 +3,8 @@
package versioned
import (
- "fmt"
- "net/http"
+ fmt "fmt"
+ http "net/http"
oauthv1 "github.com/openshift/client-go/oauth/clientset/versioned/typed/oauth/v1"
discovery "k8s.io/client-go/discovery"
diff --git a/oauth/clientset/versioned/typed/oauth/v1/fake/fake_oauth_client.go b/oauth/clientset/versioned/typed/oauth/v1/fake/fake_oauth_client.go
index 2ed716d16..33c186dca 100644
--- a/oauth/clientset/versioned/typed/oauth/v1/fake/fake_oauth_client.go
+++ b/oauth/clientset/versioned/typed/oauth/v1/fake/fake_oauth_client.go
@@ -13,23 +13,23 @@ type FakeOauthV1 struct {
}
func (c *FakeOauthV1) OAuthAccessTokens() v1.OAuthAccessTokenInterface {
- return &FakeOAuthAccessTokens{c}
+ return newFakeOAuthAccessTokens(c)
}
func (c *FakeOauthV1) OAuthAuthorizeTokens() v1.OAuthAuthorizeTokenInterface {
- return &FakeOAuthAuthorizeTokens{c}
+ return newFakeOAuthAuthorizeTokens(c)
}
func (c *FakeOauthV1) OAuthClients() v1.OAuthClientInterface {
- return &FakeOAuthClients{c}
+ return newFakeOAuthClients(c)
}
func (c *FakeOauthV1) OAuthClientAuthorizations() v1.OAuthClientAuthorizationInterface {
- return &FakeOAuthClientAuthorizations{c}
+ return newFakeOAuthClientAuthorizations(c)
}
func (c *FakeOauthV1) UserOAuthAccessTokens() v1.UserOAuthAccessTokenInterface {
- return &FakeUserOAuthAccessTokens{c}
+ return newFakeUserOAuthAccessTokens(c)
}
// RESTClient returns a RESTClient that is used to communicate
diff --git a/oauth/clientset/versioned/typed/oauth/v1/fake/fake_oauthaccesstoken.go b/oauth/clientset/versioned/typed/oauth/v1/fake/fake_oauthaccesstoken.go
index 7a57e3127..96fbf3d96 100644
--- a/oauth/clientset/versioned/typed/oauth/v1/fake/fake_oauthaccesstoken.go
+++ b/oauth/clientset/versioned/typed/oauth/v1/fake/fake_oauthaccesstoken.go
@@ -3,133 +3,33 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/oauth/v1"
oauthv1 "github.com/openshift/client-go/oauth/applyconfigurations/oauth/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedoauthv1 "github.com/openshift/client-go/oauth/clientset/versioned/typed/oauth/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeOAuthAccessTokens implements OAuthAccessTokenInterface
-type FakeOAuthAccessTokens struct {
+// fakeOAuthAccessTokens implements OAuthAccessTokenInterface
+type fakeOAuthAccessTokens struct {
+ *gentype.FakeClientWithListAndApply[*v1.OAuthAccessToken, *v1.OAuthAccessTokenList, *oauthv1.OAuthAccessTokenApplyConfiguration]
Fake *FakeOauthV1
}
-var oauthaccesstokensResource = v1.SchemeGroupVersion.WithResource("oauthaccesstokens")
-
-var oauthaccesstokensKind = v1.SchemeGroupVersion.WithKind("OAuthAccessToken")
-
-// Get takes name of the oAuthAccessToken, and returns the corresponding oAuthAccessToken object, and an error if there is any.
-func (c *FakeOAuthAccessTokens) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.OAuthAccessToken, err error) {
- emptyResult := &v1.OAuthAccessToken{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(oauthaccesstokensResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OAuthAccessToken), err
-}
-
-// List takes label and field selectors, and returns the list of OAuthAccessTokens that match those selectors.
-func (c *FakeOAuthAccessTokens) List(ctx context.Context, opts metav1.ListOptions) (result *v1.OAuthAccessTokenList, err error) {
- emptyResult := &v1.OAuthAccessTokenList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(oauthaccesstokensResource, oauthaccesstokensKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.OAuthAccessTokenList{ListMeta: obj.(*v1.OAuthAccessTokenList).ListMeta}
- for _, item := range obj.(*v1.OAuthAccessTokenList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested oAuthAccessTokens.
-func (c *FakeOAuthAccessTokens) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(oauthaccesstokensResource, opts))
-}
-
-// Create takes the representation of a oAuthAccessToken and creates it. Returns the server's representation of the oAuthAccessToken, and an error, if there is any.
-func (c *FakeOAuthAccessTokens) Create(ctx context.Context, oAuthAccessToken *v1.OAuthAccessToken, opts metav1.CreateOptions) (result *v1.OAuthAccessToken, err error) {
- emptyResult := &v1.OAuthAccessToken{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(oauthaccesstokensResource, oAuthAccessToken, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OAuthAccessToken), err
-}
-
-// Update takes the representation of a oAuthAccessToken and updates it. Returns the server's representation of the oAuthAccessToken, and an error, if there is any.
-func (c *FakeOAuthAccessTokens) Update(ctx context.Context, oAuthAccessToken *v1.OAuthAccessToken, opts metav1.UpdateOptions) (result *v1.OAuthAccessToken, err error) {
- emptyResult := &v1.OAuthAccessToken{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(oauthaccesstokensResource, oAuthAccessToken, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OAuthAccessToken), err
-}
-
-// Delete takes name of the oAuthAccessToken and deletes it. Returns an error if one occurs.
-func (c *FakeOAuthAccessTokens) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(oauthaccesstokensResource, name, opts), &v1.OAuthAccessToken{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeOAuthAccessTokens) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(oauthaccesstokensResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.OAuthAccessTokenList{})
- return err
-}
-
-// Patch applies the patch and returns the patched oAuthAccessToken.
-func (c *FakeOAuthAccessTokens) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.OAuthAccessToken, err error) {
- emptyResult := &v1.OAuthAccessToken{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(oauthaccesstokensResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OAuthAccessToken), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied oAuthAccessToken.
-func (c *FakeOAuthAccessTokens) Apply(ctx context.Context, oAuthAccessToken *oauthv1.OAuthAccessTokenApplyConfiguration, opts metav1.ApplyOptions) (result *v1.OAuthAccessToken, err error) {
- if oAuthAccessToken == nil {
- return nil, fmt.Errorf("oAuthAccessToken provided to Apply must not be nil")
- }
- data, err := json.Marshal(oAuthAccessToken)
- if err != nil {
- return nil, err
- }
- name := oAuthAccessToken.Name
- if name == nil {
- return nil, fmt.Errorf("oAuthAccessToken.Name must be provided to Apply")
- }
- emptyResult := &v1.OAuthAccessToken{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(oauthaccesstokensResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeOAuthAccessTokens(fake *FakeOauthV1) typedoauthv1.OAuthAccessTokenInterface {
+ return &fakeOAuthAccessTokens{
+ gentype.NewFakeClientWithListAndApply[*v1.OAuthAccessToken, *v1.OAuthAccessTokenList, *oauthv1.OAuthAccessTokenApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("oauthaccesstokens"),
+ v1.SchemeGroupVersion.WithKind("OAuthAccessToken"),
+ func() *v1.OAuthAccessToken { return &v1.OAuthAccessToken{} },
+ func() *v1.OAuthAccessTokenList { return &v1.OAuthAccessTokenList{} },
+ func(dst, src *v1.OAuthAccessTokenList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.OAuthAccessTokenList) []*v1.OAuthAccessToken { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.OAuthAccessTokenList, items []*v1.OAuthAccessToken) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.OAuthAccessToken), err
}
diff --git a/oauth/clientset/versioned/typed/oauth/v1/fake/fake_oauthauthorizetoken.go b/oauth/clientset/versioned/typed/oauth/v1/fake/fake_oauthauthorizetoken.go
index 47756e46c..03f169c61 100644
--- a/oauth/clientset/versioned/typed/oauth/v1/fake/fake_oauthauthorizetoken.go
+++ b/oauth/clientset/versioned/typed/oauth/v1/fake/fake_oauthauthorizetoken.go
@@ -3,133 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/oauth/v1"
oauthv1 "github.com/openshift/client-go/oauth/applyconfigurations/oauth/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedoauthv1 "github.com/openshift/client-go/oauth/clientset/versioned/typed/oauth/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeOAuthAuthorizeTokens implements OAuthAuthorizeTokenInterface
-type FakeOAuthAuthorizeTokens struct {
+// fakeOAuthAuthorizeTokens implements OAuthAuthorizeTokenInterface
+type fakeOAuthAuthorizeTokens struct {
+ *gentype.FakeClientWithListAndApply[*v1.OAuthAuthorizeToken, *v1.OAuthAuthorizeTokenList, *oauthv1.OAuthAuthorizeTokenApplyConfiguration]
Fake *FakeOauthV1
}
-var oauthauthorizetokensResource = v1.SchemeGroupVersion.WithResource("oauthauthorizetokens")
-
-var oauthauthorizetokensKind = v1.SchemeGroupVersion.WithKind("OAuthAuthorizeToken")
-
-// Get takes name of the oAuthAuthorizeToken, and returns the corresponding oAuthAuthorizeToken object, and an error if there is any.
-func (c *FakeOAuthAuthorizeTokens) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.OAuthAuthorizeToken, err error) {
- emptyResult := &v1.OAuthAuthorizeToken{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(oauthauthorizetokensResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OAuthAuthorizeToken), err
-}
-
-// List takes label and field selectors, and returns the list of OAuthAuthorizeTokens that match those selectors.
-func (c *FakeOAuthAuthorizeTokens) List(ctx context.Context, opts metav1.ListOptions) (result *v1.OAuthAuthorizeTokenList, err error) {
- emptyResult := &v1.OAuthAuthorizeTokenList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(oauthauthorizetokensResource, oauthauthorizetokensKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.OAuthAuthorizeTokenList{ListMeta: obj.(*v1.OAuthAuthorizeTokenList).ListMeta}
- for _, item := range obj.(*v1.OAuthAuthorizeTokenList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested oAuthAuthorizeTokens.
-func (c *FakeOAuthAuthorizeTokens) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(oauthauthorizetokensResource, opts))
-}
-
-// Create takes the representation of a oAuthAuthorizeToken and creates it. Returns the server's representation of the oAuthAuthorizeToken, and an error, if there is any.
-func (c *FakeOAuthAuthorizeTokens) Create(ctx context.Context, oAuthAuthorizeToken *v1.OAuthAuthorizeToken, opts metav1.CreateOptions) (result *v1.OAuthAuthorizeToken, err error) {
- emptyResult := &v1.OAuthAuthorizeToken{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(oauthauthorizetokensResource, oAuthAuthorizeToken, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OAuthAuthorizeToken), err
-}
-
-// Update takes the representation of a oAuthAuthorizeToken and updates it. Returns the server's representation of the oAuthAuthorizeToken, and an error, if there is any.
-func (c *FakeOAuthAuthorizeTokens) Update(ctx context.Context, oAuthAuthorizeToken *v1.OAuthAuthorizeToken, opts metav1.UpdateOptions) (result *v1.OAuthAuthorizeToken, err error) {
- emptyResult := &v1.OAuthAuthorizeToken{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(oauthauthorizetokensResource, oAuthAuthorizeToken, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OAuthAuthorizeToken), err
-}
-
-// Delete takes name of the oAuthAuthorizeToken and deletes it. Returns an error if one occurs.
-func (c *FakeOAuthAuthorizeTokens) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(oauthauthorizetokensResource, name, opts), &v1.OAuthAuthorizeToken{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeOAuthAuthorizeTokens) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(oauthauthorizetokensResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.OAuthAuthorizeTokenList{})
- return err
-}
-
-// Patch applies the patch and returns the patched oAuthAuthorizeToken.
-func (c *FakeOAuthAuthorizeTokens) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.OAuthAuthorizeToken, err error) {
- emptyResult := &v1.OAuthAuthorizeToken{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(oauthauthorizetokensResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OAuthAuthorizeToken), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied oAuthAuthorizeToken.
-func (c *FakeOAuthAuthorizeTokens) Apply(ctx context.Context, oAuthAuthorizeToken *oauthv1.OAuthAuthorizeTokenApplyConfiguration, opts metav1.ApplyOptions) (result *v1.OAuthAuthorizeToken, err error) {
- if oAuthAuthorizeToken == nil {
- return nil, fmt.Errorf("oAuthAuthorizeToken provided to Apply must not be nil")
- }
- data, err := json.Marshal(oAuthAuthorizeToken)
- if err != nil {
- return nil, err
- }
- name := oAuthAuthorizeToken.Name
- if name == nil {
- return nil, fmt.Errorf("oAuthAuthorizeToken.Name must be provided to Apply")
- }
- emptyResult := &v1.OAuthAuthorizeToken{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(oauthauthorizetokensResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeOAuthAuthorizeTokens(fake *FakeOauthV1) typedoauthv1.OAuthAuthorizeTokenInterface {
+ return &fakeOAuthAuthorizeTokens{
+ gentype.NewFakeClientWithListAndApply[*v1.OAuthAuthorizeToken, *v1.OAuthAuthorizeTokenList, *oauthv1.OAuthAuthorizeTokenApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("oauthauthorizetokens"),
+ v1.SchemeGroupVersion.WithKind("OAuthAuthorizeToken"),
+ func() *v1.OAuthAuthorizeToken { return &v1.OAuthAuthorizeToken{} },
+ func() *v1.OAuthAuthorizeTokenList { return &v1.OAuthAuthorizeTokenList{} },
+ func(dst, src *v1.OAuthAuthorizeTokenList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.OAuthAuthorizeTokenList) []*v1.OAuthAuthorizeToken {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1.OAuthAuthorizeTokenList, items []*v1.OAuthAuthorizeToken) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.OAuthAuthorizeToken), err
}
diff --git a/oauth/clientset/versioned/typed/oauth/v1/fake/fake_oauthclient.go b/oauth/clientset/versioned/typed/oauth/v1/fake/fake_oauthclient.go
index e6b7e8d2e..215106e02 100644
--- a/oauth/clientset/versioned/typed/oauth/v1/fake/fake_oauthclient.go
+++ b/oauth/clientset/versioned/typed/oauth/v1/fake/fake_oauthclient.go
@@ -3,133 +3,31 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/oauth/v1"
oauthv1 "github.com/openshift/client-go/oauth/applyconfigurations/oauth/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedoauthv1 "github.com/openshift/client-go/oauth/clientset/versioned/typed/oauth/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeOAuthClients implements OAuthClientInterface
-type FakeOAuthClients struct {
+// fakeOAuthClients implements OAuthClientInterface
+type fakeOAuthClients struct {
+ *gentype.FakeClientWithListAndApply[*v1.OAuthClient, *v1.OAuthClientList, *oauthv1.OAuthClientApplyConfiguration]
Fake *FakeOauthV1
}
-var oauthclientsResource = v1.SchemeGroupVersion.WithResource("oauthclients")
-
-var oauthclientsKind = v1.SchemeGroupVersion.WithKind("OAuthClient")
-
-// Get takes name of the oAuthClient, and returns the corresponding oAuthClient object, and an error if there is any.
-func (c *FakeOAuthClients) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.OAuthClient, err error) {
- emptyResult := &v1.OAuthClient{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(oauthclientsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OAuthClient), err
-}
-
-// List takes label and field selectors, and returns the list of OAuthClients that match those selectors.
-func (c *FakeOAuthClients) List(ctx context.Context, opts metav1.ListOptions) (result *v1.OAuthClientList, err error) {
- emptyResult := &v1.OAuthClientList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(oauthclientsResource, oauthclientsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.OAuthClientList{ListMeta: obj.(*v1.OAuthClientList).ListMeta}
- for _, item := range obj.(*v1.OAuthClientList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested oAuthClients.
-func (c *FakeOAuthClients) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(oauthclientsResource, opts))
-}
-
-// Create takes the representation of a oAuthClient and creates it. Returns the server's representation of the oAuthClient, and an error, if there is any.
-func (c *FakeOAuthClients) Create(ctx context.Context, oAuthClient *v1.OAuthClient, opts metav1.CreateOptions) (result *v1.OAuthClient, err error) {
- emptyResult := &v1.OAuthClient{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(oauthclientsResource, oAuthClient, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OAuthClient), err
-}
-
-// Update takes the representation of a oAuthClient and updates it. Returns the server's representation of the oAuthClient, and an error, if there is any.
-func (c *FakeOAuthClients) Update(ctx context.Context, oAuthClient *v1.OAuthClient, opts metav1.UpdateOptions) (result *v1.OAuthClient, err error) {
- emptyResult := &v1.OAuthClient{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(oauthclientsResource, oAuthClient, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OAuthClient), err
-}
-
-// Delete takes name of the oAuthClient and deletes it. Returns an error if one occurs.
-func (c *FakeOAuthClients) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(oauthclientsResource, name, opts), &v1.OAuthClient{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeOAuthClients) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(oauthclientsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.OAuthClientList{})
- return err
-}
-
-// Patch applies the patch and returns the patched oAuthClient.
-func (c *FakeOAuthClients) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.OAuthClient, err error) {
- emptyResult := &v1.OAuthClient{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(oauthclientsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OAuthClient), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied oAuthClient.
-func (c *FakeOAuthClients) Apply(ctx context.Context, oAuthClient *oauthv1.OAuthClientApplyConfiguration, opts metav1.ApplyOptions) (result *v1.OAuthClient, err error) {
- if oAuthClient == nil {
- return nil, fmt.Errorf("oAuthClient provided to Apply must not be nil")
- }
- data, err := json.Marshal(oAuthClient)
- if err != nil {
- return nil, err
- }
- name := oAuthClient.Name
- if name == nil {
- return nil, fmt.Errorf("oAuthClient.Name must be provided to Apply")
- }
- emptyResult := &v1.OAuthClient{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(oauthclientsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeOAuthClients(fake *FakeOauthV1) typedoauthv1.OAuthClientInterface {
+ return &fakeOAuthClients{
+ gentype.NewFakeClientWithListAndApply[*v1.OAuthClient, *v1.OAuthClientList, *oauthv1.OAuthClientApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("oauthclients"),
+ v1.SchemeGroupVersion.WithKind("OAuthClient"),
+ func() *v1.OAuthClient { return &v1.OAuthClient{} },
+ func() *v1.OAuthClientList { return &v1.OAuthClientList{} },
+ func(dst, src *v1.OAuthClientList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.OAuthClientList) []*v1.OAuthClient { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.OAuthClientList, items []*v1.OAuthClient) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.OAuthClient), err
}
diff --git a/oauth/clientset/versioned/typed/oauth/v1/fake/fake_oauthclientauthorization.go b/oauth/clientset/versioned/typed/oauth/v1/fake/fake_oauthclientauthorization.go
index 1d059fbd9..8c8f0c6f7 100644
--- a/oauth/clientset/versioned/typed/oauth/v1/fake/fake_oauthclientauthorization.go
+++ b/oauth/clientset/versioned/typed/oauth/v1/fake/fake_oauthclientauthorization.go
@@ -3,133 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/oauth/v1"
oauthv1 "github.com/openshift/client-go/oauth/applyconfigurations/oauth/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedoauthv1 "github.com/openshift/client-go/oauth/clientset/versioned/typed/oauth/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeOAuthClientAuthorizations implements OAuthClientAuthorizationInterface
-type FakeOAuthClientAuthorizations struct {
+// fakeOAuthClientAuthorizations implements OAuthClientAuthorizationInterface
+type fakeOAuthClientAuthorizations struct {
+ *gentype.FakeClientWithListAndApply[*v1.OAuthClientAuthorization, *v1.OAuthClientAuthorizationList, *oauthv1.OAuthClientAuthorizationApplyConfiguration]
Fake *FakeOauthV1
}
-var oauthclientauthorizationsResource = v1.SchemeGroupVersion.WithResource("oauthclientauthorizations")
-
-var oauthclientauthorizationsKind = v1.SchemeGroupVersion.WithKind("OAuthClientAuthorization")
-
-// Get takes name of the oAuthClientAuthorization, and returns the corresponding oAuthClientAuthorization object, and an error if there is any.
-func (c *FakeOAuthClientAuthorizations) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.OAuthClientAuthorization, err error) {
- emptyResult := &v1.OAuthClientAuthorization{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(oauthclientauthorizationsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OAuthClientAuthorization), err
-}
-
-// List takes label and field selectors, and returns the list of OAuthClientAuthorizations that match those selectors.
-func (c *FakeOAuthClientAuthorizations) List(ctx context.Context, opts metav1.ListOptions) (result *v1.OAuthClientAuthorizationList, err error) {
- emptyResult := &v1.OAuthClientAuthorizationList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(oauthclientauthorizationsResource, oauthclientauthorizationsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.OAuthClientAuthorizationList{ListMeta: obj.(*v1.OAuthClientAuthorizationList).ListMeta}
- for _, item := range obj.(*v1.OAuthClientAuthorizationList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested oAuthClientAuthorizations.
-func (c *FakeOAuthClientAuthorizations) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(oauthclientauthorizationsResource, opts))
-}
-
-// Create takes the representation of a oAuthClientAuthorization and creates it. Returns the server's representation of the oAuthClientAuthorization, and an error, if there is any.
-func (c *FakeOAuthClientAuthorizations) Create(ctx context.Context, oAuthClientAuthorization *v1.OAuthClientAuthorization, opts metav1.CreateOptions) (result *v1.OAuthClientAuthorization, err error) {
- emptyResult := &v1.OAuthClientAuthorization{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(oauthclientauthorizationsResource, oAuthClientAuthorization, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OAuthClientAuthorization), err
-}
-
-// Update takes the representation of a oAuthClientAuthorization and updates it. Returns the server's representation of the oAuthClientAuthorization, and an error, if there is any.
-func (c *FakeOAuthClientAuthorizations) Update(ctx context.Context, oAuthClientAuthorization *v1.OAuthClientAuthorization, opts metav1.UpdateOptions) (result *v1.OAuthClientAuthorization, err error) {
- emptyResult := &v1.OAuthClientAuthorization{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(oauthclientauthorizationsResource, oAuthClientAuthorization, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OAuthClientAuthorization), err
-}
-
-// Delete takes name of the oAuthClientAuthorization and deletes it. Returns an error if one occurs.
-func (c *FakeOAuthClientAuthorizations) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(oauthclientauthorizationsResource, name, opts), &v1.OAuthClientAuthorization{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeOAuthClientAuthorizations) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(oauthclientauthorizationsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.OAuthClientAuthorizationList{})
- return err
-}
-
-// Patch applies the patch and returns the patched oAuthClientAuthorization.
-func (c *FakeOAuthClientAuthorizations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.OAuthClientAuthorization, err error) {
- emptyResult := &v1.OAuthClientAuthorization{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(oauthclientauthorizationsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OAuthClientAuthorization), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied oAuthClientAuthorization.
-func (c *FakeOAuthClientAuthorizations) Apply(ctx context.Context, oAuthClientAuthorization *oauthv1.OAuthClientAuthorizationApplyConfiguration, opts metav1.ApplyOptions) (result *v1.OAuthClientAuthorization, err error) {
- if oAuthClientAuthorization == nil {
- return nil, fmt.Errorf("oAuthClientAuthorization provided to Apply must not be nil")
- }
- data, err := json.Marshal(oAuthClientAuthorization)
- if err != nil {
- return nil, err
- }
- name := oAuthClientAuthorization.Name
- if name == nil {
- return nil, fmt.Errorf("oAuthClientAuthorization.Name must be provided to Apply")
- }
- emptyResult := &v1.OAuthClientAuthorization{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(oauthclientauthorizationsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeOAuthClientAuthorizations(fake *FakeOauthV1) typedoauthv1.OAuthClientAuthorizationInterface {
+ return &fakeOAuthClientAuthorizations{
+ gentype.NewFakeClientWithListAndApply[*v1.OAuthClientAuthorization, *v1.OAuthClientAuthorizationList, *oauthv1.OAuthClientAuthorizationApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("oauthclientauthorizations"),
+ v1.SchemeGroupVersion.WithKind("OAuthClientAuthorization"),
+ func() *v1.OAuthClientAuthorization { return &v1.OAuthClientAuthorization{} },
+ func() *v1.OAuthClientAuthorizationList { return &v1.OAuthClientAuthorizationList{} },
+ func(dst, src *v1.OAuthClientAuthorizationList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.OAuthClientAuthorizationList) []*v1.OAuthClientAuthorization {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1.OAuthClientAuthorizationList, items []*v1.OAuthClientAuthorization) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.OAuthClientAuthorization), err
}
diff --git a/oauth/clientset/versioned/typed/oauth/v1/fake/fake_useroauthaccesstoken.go b/oauth/clientset/versioned/typed/oauth/v1/fake/fake_useroauthaccesstoken.go
index 8252e6041..f7cfe5318 100644
--- a/oauth/clientset/versioned/typed/oauth/v1/fake/fake_useroauthaccesstoken.go
+++ b/oauth/clientset/versioned/typed/oauth/v1/fake/fake_useroauthaccesstoken.go
@@ -3,133 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/oauth/v1"
oauthv1 "github.com/openshift/client-go/oauth/applyconfigurations/oauth/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedoauthv1 "github.com/openshift/client-go/oauth/clientset/versioned/typed/oauth/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeUserOAuthAccessTokens implements UserOAuthAccessTokenInterface
-type FakeUserOAuthAccessTokens struct {
+// fakeUserOAuthAccessTokens implements UserOAuthAccessTokenInterface
+type fakeUserOAuthAccessTokens struct {
+ *gentype.FakeClientWithListAndApply[*v1.UserOAuthAccessToken, *v1.UserOAuthAccessTokenList, *oauthv1.UserOAuthAccessTokenApplyConfiguration]
Fake *FakeOauthV1
}
-var useroauthaccesstokensResource = v1.SchemeGroupVersion.WithResource("useroauthaccesstokens")
-
-var useroauthaccesstokensKind = v1.SchemeGroupVersion.WithKind("UserOAuthAccessToken")
-
-// Get takes name of the userOAuthAccessToken, and returns the corresponding userOAuthAccessToken object, and an error if there is any.
-func (c *FakeUserOAuthAccessTokens) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.UserOAuthAccessToken, err error) {
- emptyResult := &v1.UserOAuthAccessToken{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(useroauthaccesstokensResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.UserOAuthAccessToken), err
-}
-
-// List takes label and field selectors, and returns the list of UserOAuthAccessTokens that match those selectors.
-func (c *FakeUserOAuthAccessTokens) List(ctx context.Context, opts metav1.ListOptions) (result *v1.UserOAuthAccessTokenList, err error) {
- emptyResult := &v1.UserOAuthAccessTokenList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(useroauthaccesstokensResource, useroauthaccesstokensKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.UserOAuthAccessTokenList{ListMeta: obj.(*v1.UserOAuthAccessTokenList).ListMeta}
- for _, item := range obj.(*v1.UserOAuthAccessTokenList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested userOAuthAccessTokens.
-func (c *FakeUserOAuthAccessTokens) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(useroauthaccesstokensResource, opts))
-}
-
-// Create takes the representation of a userOAuthAccessToken and creates it. Returns the server's representation of the userOAuthAccessToken, and an error, if there is any.
-func (c *FakeUserOAuthAccessTokens) Create(ctx context.Context, userOAuthAccessToken *v1.UserOAuthAccessToken, opts metav1.CreateOptions) (result *v1.UserOAuthAccessToken, err error) {
- emptyResult := &v1.UserOAuthAccessToken{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(useroauthaccesstokensResource, userOAuthAccessToken, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.UserOAuthAccessToken), err
-}
-
-// Update takes the representation of a userOAuthAccessToken and updates it. Returns the server's representation of the userOAuthAccessToken, and an error, if there is any.
-func (c *FakeUserOAuthAccessTokens) Update(ctx context.Context, userOAuthAccessToken *v1.UserOAuthAccessToken, opts metav1.UpdateOptions) (result *v1.UserOAuthAccessToken, err error) {
- emptyResult := &v1.UserOAuthAccessToken{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(useroauthaccesstokensResource, userOAuthAccessToken, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.UserOAuthAccessToken), err
-}
-
-// Delete takes name of the userOAuthAccessToken and deletes it. Returns an error if one occurs.
-func (c *FakeUserOAuthAccessTokens) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(useroauthaccesstokensResource, name, opts), &v1.UserOAuthAccessToken{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeUserOAuthAccessTokens) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(useroauthaccesstokensResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.UserOAuthAccessTokenList{})
- return err
-}
-
-// Patch applies the patch and returns the patched userOAuthAccessToken.
-func (c *FakeUserOAuthAccessTokens) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.UserOAuthAccessToken, err error) {
- emptyResult := &v1.UserOAuthAccessToken{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(useroauthaccesstokensResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.UserOAuthAccessToken), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied userOAuthAccessToken.
-func (c *FakeUserOAuthAccessTokens) Apply(ctx context.Context, userOAuthAccessToken *oauthv1.UserOAuthAccessTokenApplyConfiguration, opts metav1.ApplyOptions) (result *v1.UserOAuthAccessToken, err error) {
- if userOAuthAccessToken == nil {
- return nil, fmt.Errorf("userOAuthAccessToken provided to Apply must not be nil")
- }
- data, err := json.Marshal(userOAuthAccessToken)
- if err != nil {
- return nil, err
- }
- name := userOAuthAccessToken.Name
- if name == nil {
- return nil, fmt.Errorf("userOAuthAccessToken.Name must be provided to Apply")
- }
- emptyResult := &v1.UserOAuthAccessToken{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(useroauthaccesstokensResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeUserOAuthAccessTokens(fake *FakeOauthV1) typedoauthv1.UserOAuthAccessTokenInterface {
+ return &fakeUserOAuthAccessTokens{
+ gentype.NewFakeClientWithListAndApply[*v1.UserOAuthAccessToken, *v1.UserOAuthAccessTokenList, *oauthv1.UserOAuthAccessTokenApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("useroauthaccesstokens"),
+ v1.SchemeGroupVersion.WithKind("UserOAuthAccessToken"),
+ func() *v1.UserOAuthAccessToken { return &v1.UserOAuthAccessToken{} },
+ func() *v1.UserOAuthAccessTokenList { return &v1.UserOAuthAccessTokenList{} },
+ func(dst, src *v1.UserOAuthAccessTokenList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.UserOAuthAccessTokenList) []*v1.UserOAuthAccessToken {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1.UserOAuthAccessTokenList, items []*v1.UserOAuthAccessToken) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.UserOAuthAccessToken), err
}
diff --git a/oauth/clientset/versioned/typed/oauth/v1/oauth_client.go b/oauth/clientset/versioned/typed/oauth/v1/oauth_client.go
index d1cf61f99..d666ada2c 100644
--- a/oauth/clientset/versioned/typed/oauth/v1/oauth_client.go
+++ b/oauth/clientset/versioned/typed/oauth/v1/oauth_client.go
@@ -3,10 +3,10 @@
package v1
import (
- "net/http"
+ http "net/http"
- v1 "github.com/openshift/api/oauth/v1"
- "github.com/openshift/client-go/oauth/clientset/versioned/scheme"
+ oauthv1 "github.com/openshift/api/oauth/v1"
+ scheme "github.com/openshift/client-go/oauth/clientset/versioned/scheme"
rest "k8s.io/client-go/rest"
)
@@ -89,10 +89,10 @@ func New(c rest.Interface) *OauthV1Client {
}
func setConfigDefaults(config *rest.Config) error {
- gv := v1.SchemeGroupVersion
+ gv := oauthv1.SchemeGroupVersion
config.GroupVersion = &gv
config.APIPath = "/apis"
- config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
+ config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion()
if config.UserAgent == "" {
config.UserAgent = rest.DefaultKubernetesUserAgent()
diff --git a/oauth/clientset/versioned/typed/oauth/v1/oauthaccesstoken.go b/oauth/clientset/versioned/typed/oauth/v1/oauthaccesstoken.go
index a59621de5..f80b391c2 100644
--- a/oauth/clientset/versioned/typed/oauth/v1/oauthaccesstoken.go
+++ b/oauth/clientset/versioned/typed/oauth/v1/oauthaccesstoken.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/oauth/v1"
- oauthv1 "github.com/openshift/client-go/oauth/applyconfigurations/oauth/v1"
+ oauthv1 "github.com/openshift/api/oauth/v1"
+ applyconfigurationsoauthv1 "github.com/openshift/client-go/oauth/applyconfigurations/oauth/v1"
scheme "github.com/openshift/client-go/oauth/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,32 +22,33 @@ type OAuthAccessTokensGetter interface {
// OAuthAccessTokenInterface has methods to work with OAuthAccessToken resources.
type OAuthAccessTokenInterface interface {
- Create(ctx context.Context, oAuthAccessToken *v1.OAuthAccessToken, opts metav1.CreateOptions) (*v1.OAuthAccessToken, error)
- Update(ctx context.Context, oAuthAccessToken *v1.OAuthAccessToken, opts metav1.UpdateOptions) (*v1.OAuthAccessToken, error)
+ Create(ctx context.Context, oAuthAccessToken *oauthv1.OAuthAccessToken, opts metav1.CreateOptions) (*oauthv1.OAuthAccessToken, error)
+ Update(ctx context.Context, oAuthAccessToken *oauthv1.OAuthAccessToken, opts metav1.UpdateOptions) (*oauthv1.OAuthAccessToken, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.OAuthAccessToken, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.OAuthAccessTokenList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*oauthv1.OAuthAccessToken, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*oauthv1.OAuthAccessTokenList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.OAuthAccessToken, err error)
- Apply(ctx context.Context, oAuthAccessToken *oauthv1.OAuthAccessTokenApplyConfiguration, opts metav1.ApplyOptions) (result *v1.OAuthAccessToken, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *oauthv1.OAuthAccessToken, err error)
+ Apply(ctx context.Context, oAuthAccessToken *applyconfigurationsoauthv1.OAuthAccessTokenApplyConfiguration, opts metav1.ApplyOptions) (result *oauthv1.OAuthAccessToken, err error)
OAuthAccessTokenExpansion
}
// oAuthAccessTokens implements OAuthAccessTokenInterface
type oAuthAccessTokens struct {
- *gentype.ClientWithListAndApply[*v1.OAuthAccessToken, *v1.OAuthAccessTokenList, *oauthv1.OAuthAccessTokenApplyConfiguration]
+ *gentype.ClientWithListAndApply[*oauthv1.OAuthAccessToken, *oauthv1.OAuthAccessTokenList, *applyconfigurationsoauthv1.OAuthAccessTokenApplyConfiguration]
}
// newOAuthAccessTokens returns a OAuthAccessTokens
func newOAuthAccessTokens(c *OauthV1Client) *oAuthAccessTokens {
return &oAuthAccessTokens{
- gentype.NewClientWithListAndApply[*v1.OAuthAccessToken, *v1.OAuthAccessTokenList, *oauthv1.OAuthAccessTokenApplyConfiguration](
+ gentype.NewClientWithListAndApply[*oauthv1.OAuthAccessToken, *oauthv1.OAuthAccessTokenList, *applyconfigurationsoauthv1.OAuthAccessTokenApplyConfiguration](
"oauthaccesstokens",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.OAuthAccessToken { return &v1.OAuthAccessToken{} },
- func() *v1.OAuthAccessTokenList { return &v1.OAuthAccessTokenList{} }),
+ func() *oauthv1.OAuthAccessToken { return &oauthv1.OAuthAccessToken{} },
+ func() *oauthv1.OAuthAccessTokenList { return &oauthv1.OAuthAccessTokenList{} },
+ ),
}
}
diff --git a/oauth/clientset/versioned/typed/oauth/v1/oauthauthorizetoken.go b/oauth/clientset/versioned/typed/oauth/v1/oauthauthorizetoken.go
index 472c13c69..cf4b67ee3 100644
--- a/oauth/clientset/versioned/typed/oauth/v1/oauthauthorizetoken.go
+++ b/oauth/clientset/versioned/typed/oauth/v1/oauthauthorizetoken.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/oauth/v1"
- oauthv1 "github.com/openshift/client-go/oauth/applyconfigurations/oauth/v1"
+ oauthv1 "github.com/openshift/api/oauth/v1"
+ applyconfigurationsoauthv1 "github.com/openshift/client-go/oauth/applyconfigurations/oauth/v1"
scheme "github.com/openshift/client-go/oauth/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,32 +22,33 @@ type OAuthAuthorizeTokensGetter interface {
// OAuthAuthorizeTokenInterface has methods to work with OAuthAuthorizeToken resources.
type OAuthAuthorizeTokenInterface interface {
- Create(ctx context.Context, oAuthAuthorizeToken *v1.OAuthAuthorizeToken, opts metav1.CreateOptions) (*v1.OAuthAuthorizeToken, error)
- Update(ctx context.Context, oAuthAuthorizeToken *v1.OAuthAuthorizeToken, opts metav1.UpdateOptions) (*v1.OAuthAuthorizeToken, error)
+ Create(ctx context.Context, oAuthAuthorizeToken *oauthv1.OAuthAuthorizeToken, opts metav1.CreateOptions) (*oauthv1.OAuthAuthorizeToken, error)
+ Update(ctx context.Context, oAuthAuthorizeToken *oauthv1.OAuthAuthorizeToken, opts metav1.UpdateOptions) (*oauthv1.OAuthAuthorizeToken, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.OAuthAuthorizeToken, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.OAuthAuthorizeTokenList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*oauthv1.OAuthAuthorizeToken, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*oauthv1.OAuthAuthorizeTokenList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.OAuthAuthorizeToken, err error)
- Apply(ctx context.Context, oAuthAuthorizeToken *oauthv1.OAuthAuthorizeTokenApplyConfiguration, opts metav1.ApplyOptions) (result *v1.OAuthAuthorizeToken, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *oauthv1.OAuthAuthorizeToken, err error)
+ Apply(ctx context.Context, oAuthAuthorizeToken *applyconfigurationsoauthv1.OAuthAuthorizeTokenApplyConfiguration, opts metav1.ApplyOptions) (result *oauthv1.OAuthAuthorizeToken, err error)
OAuthAuthorizeTokenExpansion
}
// oAuthAuthorizeTokens implements OAuthAuthorizeTokenInterface
type oAuthAuthorizeTokens struct {
- *gentype.ClientWithListAndApply[*v1.OAuthAuthorizeToken, *v1.OAuthAuthorizeTokenList, *oauthv1.OAuthAuthorizeTokenApplyConfiguration]
+ *gentype.ClientWithListAndApply[*oauthv1.OAuthAuthorizeToken, *oauthv1.OAuthAuthorizeTokenList, *applyconfigurationsoauthv1.OAuthAuthorizeTokenApplyConfiguration]
}
// newOAuthAuthorizeTokens returns a OAuthAuthorizeTokens
func newOAuthAuthorizeTokens(c *OauthV1Client) *oAuthAuthorizeTokens {
return &oAuthAuthorizeTokens{
- gentype.NewClientWithListAndApply[*v1.OAuthAuthorizeToken, *v1.OAuthAuthorizeTokenList, *oauthv1.OAuthAuthorizeTokenApplyConfiguration](
+ gentype.NewClientWithListAndApply[*oauthv1.OAuthAuthorizeToken, *oauthv1.OAuthAuthorizeTokenList, *applyconfigurationsoauthv1.OAuthAuthorizeTokenApplyConfiguration](
"oauthauthorizetokens",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.OAuthAuthorizeToken { return &v1.OAuthAuthorizeToken{} },
- func() *v1.OAuthAuthorizeTokenList { return &v1.OAuthAuthorizeTokenList{} }),
+ func() *oauthv1.OAuthAuthorizeToken { return &oauthv1.OAuthAuthorizeToken{} },
+ func() *oauthv1.OAuthAuthorizeTokenList { return &oauthv1.OAuthAuthorizeTokenList{} },
+ ),
}
}
diff --git a/oauth/clientset/versioned/typed/oauth/v1/oauthclient.go b/oauth/clientset/versioned/typed/oauth/v1/oauthclient.go
index be48f7e56..c239a6338 100644
--- a/oauth/clientset/versioned/typed/oauth/v1/oauthclient.go
+++ b/oauth/clientset/versioned/typed/oauth/v1/oauthclient.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/oauth/v1"
- oauthv1 "github.com/openshift/client-go/oauth/applyconfigurations/oauth/v1"
+ oauthv1 "github.com/openshift/api/oauth/v1"
+ applyconfigurationsoauthv1 "github.com/openshift/client-go/oauth/applyconfigurations/oauth/v1"
scheme "github.com/openshift/client-go/oauth/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,32 +22,33 @@ type OAuthClientsGetter interface {
// OAuthClientInterface has methods to work with OAuthClient resources.
type OAuthClientInterface interface {
- Create(ctx context.Context, oAuthClient *v1.OAuthClient, opts metav1.CreateOptions) (*v1.OAuthClient, error)
- Update(ctx context.Context, oAuthClient *v1.OAuthClient, opts metav1.UpdateOptions) (*v1.OAuthClient, error)
+ Create(ctx context.Context, oAuthClient *oauthv1.OAuthClient, opts metav1.CreateOptions) (*oauthv1.OAuthClient, error)
+ Update(ctx context.Context, oAuthClient *oauthv1.OAuthClient, opts metav1.UpdateOptions) (*oauthv1.OAuthClient, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.OAuthClient, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.OAuthClientList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*oauthv1.OAuthClient, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*oauthv1.OAuthClientList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.OAuthClient, err error)
- Apply(ctx context.Context, oAuthClient *oauthv1.OAuthClientApplyConfiguration, opts metav1.ApplyOptions) (result *v1.OAuthClient, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *oauthv1.OAuthClient, err error)
+ Apply(ctx context.Context, oAuthClient *applyconfigurationsoauthv1.OAuthClientApplyConfiguration, opts metav1.ApplyOptions) (result *oauthv1.OAuthClient, err error)
OAuthClientExpansion
}
// oAuthClients implements OAuthClientInterface
type oAuthClients struct {
- *gentype.ClientWithListAndApply[*v1.OAuthClient, *v1.OAuthClientList, *oauthv1.OAuthClientApplyConfiguration]
+ *gentype.ClientWithListAndApply[*oauthv1.OAuthClient, *oauthv1.OAuthClientList, *applyconfigurationsoauthv1.OAuthClientApplyConfiguration]
}
// newOAuthClients returns a OAuthClients
func newOAuthClients(c *OauthV1Client) *oAuthClients {
return &oAuthClients{
- gentype.NewClientWithListAndApply[*v1.OAuthClient, *v1.OAuthClientList, *oauthv1.OAuthClientApplyConfiguration](
+ gentype.NewClientWithListAndApply[*oauthv1.OAuthClient, *oauthv1.OAuthClientList, *applyconfigurationsoauthv1.OAuthClientApplyConfiguration](
"oauthclients",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.OAuthClient { return &v1.OAuthClient{} },
- func() *v1.OAuthClientList { return &v1.OAuthClientList{} }),
+ func() *oauthv1.OAuthClient { return &oauthv1.OAuthClient{} },
+ func() *oauthv1.OAuthClientList { return &oauthv1.OAuthClientList{} },
+ ),
}
}
diff --git a/oauth/clientset/versioned/typed/oauth/v1/oauthclientauthorization.go b/oauth/clientset/versioned/typed/oauth/v1/oauthclientauthorization.go
index 63e09a3e3..d140bc8d9 100644
--- a/oauth/clientset/versioned/typed/oauth/v1/oauthclientauthorization.go
+++ b/oauth/clientset/versioned/typed/oauth/v1/oauthclientauthorization.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/oauth/v1"
- oauthv1 "github.com/openshift/client-go/oauth/applyconfigurations/oauth/v1"
+ oauthv1 "github.com/openshift/api/oauth/v1"
+ applyconfigurationsoauthv1 "github.com/openshift/client-go/oauth/applyconfigurations/oauth/v1"
scheme "github.com/openshift/client-go/oauth/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,32 +22,33 @@ type OAuthClientAuthorizationsGetter interface {
// OAuthClientAuthorizationInterface has methods to work with OAuthClientAuthorization resources.
type OAuthClientAuthorizationInterface interface {
- Create(ctx context.Context, oAuthClientAuthorization *v1.OAuthClientAuthorization, opts metav1.CreateOptions) (*v1.OAuthClientAuthorization, error)
- Update(ctx context.Context, oAuthClientAuthorization *v1.OAuthClientAuthorization, opts metav1.UpdateOptions) (*v1.OAuthClientAuthorization, error)
+ Create(ctx context.Context, oAuthClientAuthorization *oauthv1.OAuthClientAuthorization, opts metav1.CreateOptions) (*oauthv1.OAuthClientAuthorization, error)
+ Update(ctx context.Context, oAuthClientAuthorization *oauthv1.OAuthClientAuthorization, opts metav1.UpdateOptions) (*oauthv1.OAuthClientAuthorization, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.OAuthClientAuthorization, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.OAuthClientAuthorizationList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*oauthv1.OAuthClientAuthorization, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*oauthv1.OAuthClientAuthorizationList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.OAuthClientAuthorization, err error)
- Apply(ctx context.Context, oAuthClientAuthorization *oauthv1.OAuthClientAuthorizationApplyConfiguration, opts metav1.ApplyOptions) (result *v1.OAuthClientAuthorization, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *oauthv1.OAuthClientAuthorization, err error)
+ Apply(ctx context.Context, oAuthClientAuthorization *applyconfigurationsoauthv1.OAuthClientAuthorizationApplyConfiguration, opts metav1.ApplyOptions) (result *oauthv1.OAuthClientAuthorization, err error)
OAuthClientAuthorizationExpansion
}
// oAuthClientAuthorizations implements OAuthClientAuthorizationInterface
type oAuthClientAuthorizations struct {
- *gentype.ClientWithListAndApply[*v1.OAuthClientAuthorization, *v1.OAuthClientAuthorizationList, *oauthv1.OAuthClientAuthorizationApplyConfiguration]
+ *gentype.ClientWithListAndApply[*oauthv1.OAuthClientAuthorization, *oauthv1.OAuthClientAuthorizationList, *applyconfigurationsoauthv1.OAuthClientAuthorizationApplyConfiguration]
}
// newOAuthClientAuthorizations returns a OAuthClientAuthorizations
func newOAuthClientAuthorizations(c *OauthV1Client) *oAuthClientAuthorizations {
return &oAuthClientAuthorizations{
- gentype.NewClientWithListAndApply[*v1.OAuthClientAuthorization, *v1.OAuthClientAuthorizationList, *oauthv1.OAuthClientAuthorizationApplyConfiguration](
+ gentype.NewClientWithListAndApply[*oauthv1.OAuthClientAuthorization, *oauthv1.OAuthClientAuthorizationList, *applyconfigurationsoauthv1.OAuthClientAuthorizationApplyConfiguration](
"oauthclientauthorizations",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.OAuthClientAuthorization { return &v1.OAuthClientAuthorization{} },
- func() *v1.OAuthClientAuthorizationList { return &v1.OAuthClientAuthorizationList{} }),
+ func() *oauthv1.OAuthClientAuthorization { return &oauthv1.OAuthClientAuthorization{} },
+ func() *oauthv1.OAuthClientAuthorizationList { return &oauthv1.OAuthClientAuthorizationList{} },
+ ),
}
}
diff --git a/oauth/clientset/versioned/typed/oauth/v1/useroauthaccesstoken.go b/oauth/clientset/versioned/typed/oauth/v1/useroauthaccesstoken.go
index 1dc34c939..6e632afb5 100644
--- a/oauth/clientset/versioned/typed/oauth/v1/useroauthaccesstoken.go
+++ b/oauth/clientset/versioned/typed/oauth/v1/useroauthaccesstoken.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/oauth/v1"
- oauthv1 "github.com/openshift/client-go/oauth/applyconfigurations/oauth/v1"
+ oauthv1 "github.com/openshift/api/oauth/v1"
+ applyconfigurationsoauthv1 "github.com/openshift/client-go/oauth/applyconfigurations/oauth/v1"
scheme "github.com/openshift/client-go/oauth/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,32 +22,33 @@ type UserOAuthAccessTokensGetter interface {
// UserOAuthAccessTokenInterface has methods to work with UserOAuthAccessToken resources.
type UserOAuthAccessTokenInterface interface {
- Create(ctx context.Context, userOAuthAccessToken *v1.UserOAuthAccessToken, opts metav1.CreateOptions) (*v1.UserOAuthAccessToken, error)
- Update(ctx context.Context, userOAuthAccessToken *v1.UserOAuthAccessToken, opts metav1.UpdateOptions) (*v1.UserOAuthAccessToken, error)
+ Create(ctx context.Context, userOAuthAccessToken *oauthv1.UserOAuthAccessToken, opts metav1.CreateOptions) (*oauthv1.UserOAuthAccessToken, error)
+ Update(ctx context.Context, userOAuthAccessToken *oauthv1.UserOAuthAccessToken, opts metav1.UpdateOptions) (*oauthv1.UserOAuthAccessToken, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.UserOAuthAccessToken, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.UserOAuthAccessTokenList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*oauthv1.UserOAuthAccessToken, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*oauthv1.UserOAuthAccessTokenList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.UserOAuthAccessToken, err error)
- Apply(ctx context.Context, userOAuthAccessToken *oauthv1.UserOAuthAccessTokenApplyConfiguration, opts metav1.ApplyOptions) (result *v1.UserOAuthAccessToken, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *oauthv1.UserOAuthAccessToken, err error)
+ Apply(ctx context.Context, userOAuthAccessToken *applyconfigurationsoauthv1.UserOAuthAccessTokenApplyConfiguration, opts metav1.ApplyOptions) (result *oauthv1.UserOAuthAccessToken, err error)
UserOAuthAccessTokenExpansion
}
// userOAuthAccessTokens implements UserOAuthAccessTokenInterface
type userOAuthAccessTokens struct {
- *gentype.ClientWithListAndApply[*v1.UserOAuthAccessToken, *v1.UserOAuthAccessTokenList, *oauthv1.UserOAuthAccessTokenApplyConfiguration]
+ *gentype.ClientWithListAndApply[*oauthv1.UserOAuthAccessToken, *oauthv1.UserOAuthAccessTokenList, *applyconfigurationsoauthv1.UserOAuthAccessTokenApplyConfiguration]
}
// newUserOAuthAccessTokens returns a UserOAuthAccessTokens
func newUserOAuthAccessTokens(c *OauthV1Client) *userOAuthAccessTokens {
return &userOAuthAccessTokens{
- gentype.NewClientWithListAndApply[*v1.UserOAuthAccessToken, *v1.UserOAuthAccessTokenList, *oauthv1.UserOAuthAccessTokenApplyConfiguration](
+ gentype.NewClientWithListAndApply[*oauthv1.UserOAuthAccessToken, *oauthv1.UserOAuthAccessTokenList, *applyconfigurationsoauthv1.UserOAuthAccessTokenApplyConfiguration](
"useroauthaccesstokens",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.UserOAuthAccessToken { return &v1.UserOAuthAccessToken{} },
- func() *v1.UserOAuthAccessTokenList { return &v1.UserOAuthAccessTokenList{} }),
+ func() *oauthv1.UserOAuthAccessToken { return &oauthv1.UserOAuthAccessToken{} },
+ func() *oauthv1.UserOAuthAccessTokenList { return &oauthv1.UserOAuthAccessTokenList{} },
+ ),
}
}
diff --git a/oauth/informers/externalversions/generic.go b/oauth/informers/externalversions/generic.go
index 1b9fc0780..f8a351c43 100644
--- a/oauth/informers/externalversions/generic.go
+++ b/oauth/informers/externalversions/generic.go
@@ -3,7 +3,7 @@
package externalversions
import (
- "fmt"
+ fmt "fmt"
v1 "github.com/openshift/api/oauth/v1"
schema "k8s.io/apimachinery/pkg/runtime/schema"
diff --git a/oauth/informers/externalversions/oauth/v1/oauthaccesstoken.go b/oauth/informers/externalversions/oauth/v1/oauthaccesstoken.go
index 35c1b59b2..d2bfda827 100644
--- a/oauth/informers/externalversions/oauth/v1/oauthaccesstoken.go
+++ b/oauth/informers/externalversions/oauth/v1/oauthaccesstoken.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- oauthv1 "github.com/openshift/api/oauth/v1"
+ apioauthv1 "github.com/openshift/api/oauth/v1"
versioned "github.com/openshift/client-go/oauth/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/oauth/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/oauth/listers/oauth/v1"
+ oauthv1 "github.com/openshift/client-go/oauth/listers/oauth/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// OAuthAccessTokens.
type OAuthAccessTokenInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.OAuthAccessTokenLister
+ Lister() oauthv1.OAuthAccessTokenLister
}
type oAuthAccessTokenInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredOAuthAccessTokenInformer(client versioned.Interface, resyncPerio
return client.OauthV1().OAuthAccessTokens().Watch(context.TODO(), options)
},
},
- &oauthv1.OAuthAccessToken{},
+ &apioauthv1.OAuthAccessToken{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *oAuthAccessTokenInformer) defaultInformer(client versioned.Interface, r
}
func (f *oAuthAccessTokenInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&oauthv1.OAuthAccessToken{}, f.defaultInformer)
+ return f.factory.InformerFor(&apioauthv1.OAuthAccessToken{}, f.defaultInformer)
}
-func (f *oAuthAccessTokenInformer) Lister() v1.OAuthAccessTokenLister {
- return v1.NewOAuthAccessTokenLister(f.Informer().GetIndexer())
+func (f *oAuthAccessTokenInformer) Lister() oauthv1.OAuthAccessTokenLister {
+ return oauthv1.NewOAuthAccessTokenLister(f.Informer().GetIndexer())
}
diff --git a/oauth/informers/externalversions/oauth/v1/oauthauthorizetoken.go b/oauth/informers/externalversions/oauth/v1/oauthauthorizetoken.go
index 1c9ff0946..f555a541e 100644
--- a/oauth/informers/externalversions/oauth/v1/oauthauthorizetoken.go
+++ b/oauth/informers/externalversions/oauth/v1/oauthauthorizetoken.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- oauthv1 "github.com/openshift/api/oauth/v1"
+ apioauthv1 "github.com/openshift/api/oauth/v1"
versioned "github.com/openshift/client-go/oauth/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/oauth/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/oauth/listers/oauth/v1"
+ oauthv1 "github.com/openshift/client-go/oauth/listers/oauth/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// OAuthAuthorizeTokens.
type OAuthAuthorizeTokenInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.OAuthAuthorizeTokenLister
+ Lister() oauthv1.OAuthAuthorizeTokenLister
}
type oAuthAuthorizeTokenInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredOAuthAuthorizeTokenInformer(client versioned.Interface, resyncPe
return client.OauthV1().OAuthAuthorizeTokens().Watch(context.TODO(), options)
},
},
- &oauthv1.OAuthAuthorizeToken{},
+ &apioauthv1.OAuthAuthorizeToken{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *oAuthAuthorizeTokenInformer) defaultInformer(client versioned.Interface
}
func (f *oAuthAuthorizeTokenInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&oauthv1.OAuthAuthorizeToken{}, f.defaultInformer)
+ return f.factory.InformerFor(&apioauthv1.OAuthAuthorizeToken{}, f.defaultInformer)
}
-func (f *oAuthAuthorizeTokenInformer) Lister() v1.OAuthAuthorizeTokenLister {
- return v1.NewOAuthAuthorizeTokenLister(f.Informer().GetIndexer())
+func (f *oAuthAuthorizeTokenInformer) Lister() oauthv1.OAuthAuthorizeTokenLister {
+ return oauthv1.NewOAuthAuthorizeTokenLister(f.Informer().GetIndexer())
}
diff --git a/oauth/informers/externalversions/oauth/v1/oauthclient.go b/oauth/informers/externalversions/oauth/v1/oauthclient.go
index 58cf1f786..488fa28b9 100644
--- a/oauth/informers/externalversions/oauth/v1/oauthclient.go
+++ b/oauth/informers/externalversions/oauth/v1/oauthclient.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- oauthv1 "github.com/openshift/api/oauth/v1"
+ apioauthv1 "github.com/openshift/api/oauth/v1"
versioned "github.com/openshift/client-go/oauth/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/oauth/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/oauth/listers/oauth/v1"
+ oauthv1 "github.com/openshift/client-go/oauth/listers/oauth/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// OAuthClients.
type OAuthClientInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.OAuthClientLister
+ Lister() oauthv1.OAuthClientLister
}
type oAuthClientInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredOAuthClientInformer(client versioned.Interface, resyncPeriod tim
return client.OauthV1().OAuthClients().Watch(context.TODO(), options)
},
},
- &oauthv1.OAuthClient{},
+ &apioauthv1.OAuthClient{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *oAuthClientInformer) defaultInformer(client versioned.Interface, resync
}
func (f *oAuthClientInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&oauthv1.OAuthClient{}, f.defaultInformer)
+ return f.factory.InformerFor(&apioauthv1.OAuthClient{}, f.defaultInformer)
}
-func (f *oAuthClientInformer) Lister() v1.OAuthClientLister {
- return v1.NewOAuthClientLister(f.Informer().GetIndexer())
+func (f *oAuthClientInformer) Lister() oauthv1.OAuthClientLister {
+ return oauthv1.NewOAuthClientLister(f.Informer().GetIndexer())
}
diff --git a/oauth/informers/externalversions/oauth/v1/oauthclientauthorization.go b/oauth/informers/externalversions/oauth/v1/oauthclientauthorization.go
index df8f93d4f..810b909f6 100644
--- a/oauth/informers/externalversions/oauth/v1/oauthclientauthorization.go
+++ b/oauth/informers/externalversions/oauth/v1/oauthclientauthorization.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- oauthv1 "github.com/openshift/api/oauth/v1"
+ apioauthv1 "github.com/openshift/api/oauth/v1"
versioned "github.com/openshift/client-go/oauth/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/oauth/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/oauth/listers/oauth/v1"
+ oauthv1 "github.com/openshift/client-go/oauth/listers/oauth/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// OAuthClientAuthorizations.
type OAuthClientAuthorizationInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.OAuthClientAuthorizationLister
+ Lister() oauthv1.OAuthClientAuthorizationLister
}
type oAuthClientAuthorizationInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredOAuthClientAuthorizationInformer(client versioned.Interface, res
return client.OauthV1().OAuthClientAuthorizations().Watch(context.TODO(), options)
},
},
- &oauthv1.OAuthClientAuthorization{},
+ &apioauthv1.OAuthClientAuthorization{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *oAuthClientAuthorizationInformer) defaultInformer(client versioned.Inte
}
func (f *oAuthClientAuthorizationInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&oauthv1.OAuthClientAuthorization{}, f.defaultInformer)
+ return f.factory.InformerFor(&apioauthv1.OAuthClientAuthorization{}, f.defaultInformer)
}
-func (f *oAuthClientAuthorizationInformer) Lister() v1.OAuthClientAuthorizationLister {
- return v1.NewOAuthClientAuthorizationLister(f.Informer().GetIndexer())
+func (f *oAuthClientAuthorizationInformer) Lister() oauthv1.OAuthClientAuthorizationLister {
+ return oauthv1.NewOAuthClientAuthorizationLister(f.Informer().GetIndexer())
}
diff --git a/oauth/informers/externalversions/oauth/v1/useroauthaccesstoken.go b/oauth/informers/externalversions/oauth/v1/useroauthaccesstoken.go
index e146fb472..3190f199a 100644
--- a/oauth/informers/externalversions/oauth/v1/useroauthaccesstoken.go
+++ b/oauth/informers/externalversions/oauth/v1/useroauthaccesstoken.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- oauthv1 "github.com/openshift/api/oauth/v1"
+ apioauthv1 "github.com/openshift/api/oauth/v1"
versioned "github.com/openshift/client-go/oauth/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/oauth/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/oauth/listers/oauth/v1"
+ oauthv1 "github.com/openshift/client-go/oauth/listers/oauth/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// UserOAuthAccessTokens.
type UserOAuthAccessTokenInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.UserOAuthAccessTokenLister
+ Lister() oauthv1.UserOAuthAccessTokenLister
}
type userOAuthAccessTokenInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredUserOAuthAccessTokenInformer(client versioned.Interface, resyncP
return client.OauthV1().UserOAuthAccessTokens().Watch(context.TODO(), options)
},
},
- &oauthv1.UserOAuthAccessToken{},
+ &apioauthv1.UserOAuthAccessToken{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *userOAuthAccessTokenInformer) defaultInformer(client versioned.Interfac
}
func (f *userOAuthAccessTokenInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&oauthv1.UserOAuthAccessToken{}, f.defaultInformer)
+ return f.factory.InformerFor(&apioauthv1.UserOAuthAccessToken{}, f.defaultInformer)
}
-func (f *userOAuthAccessTokenInformer) Lister() v1.UserOAuthAccessTokenLister {
- return v1.NewUserOAuthAccessTokenLister(f.Informer().GetIndexer())
+func (f *userOAuthAccessTokenInformer) Lister() oauthv1.UserOAuthAccessTokenLister {
+ return oauthv1.NewUserOAuthAccessTokenLister(f.Informer().GetIndexer())
}
diff --git a/oauth/listers/oauth/v1/oauthaccesstoken.go b/oauth/listers/oauth/v1/oauthaccesstoken.go
index 079f5edd8..b829fd68f 100644
--- a/oauth/listers/oauth/v1/oauthaccesstoken.go
+++ b/oauth/listers/oauth/v1/oauthaccesstoken.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/oauth/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ oauthv1 "github.com/openshift/api/oauth/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// OAuthAccessTokenLister helps list OAuthAccessTokens.
@@ -14,19 +14,19 @@ import (
type OAuthAccessTokenLister interface {
// List lists all OAuthAccessTokens in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.OAuthAccessToken, err error)
+ List(selector labels.Selector) (ret []*oauthv1.OAuthAccessToken, err error)
// Get retrieves the OAuthAccessToken from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.OAuthAccessToken, error)
+ Get(name string) (*oauthv1.OAuthAccessToken, error)
OAuthAccessTokenListerExpansion
}
// oAuthAccessTokenLister implements the OAuthAccessTokenLister interface.
type oAuthAccessTokenLister struct {
- listers.ResourceIndexer[*v1.OAuthAccessToken]
+ listers.ResourceIndexer[*oauthv1.OAuthAccessToken]
}
// NewOAuthAccessTokenLister returns a new OAuthAccessTokenLister.
func NewOAuthAccessTokenLister(indexer cache.Indexer) OAuthAccessTokenLister {
- return &oAuthAccessTokenLister{listers.New[*v1.OAuthAccessToken](indexer, v1.Resource("oauthaccesstoken"))}
+ return &oAuthAccessTokenLister{listers.New[*oauthv1.OAuthAccessToken](indexer, oauthv1.Resource("oauthaccesstoken"))}
}
diff --git a/oauth/listers/oauth/v1/oauthauthorizetoken.go b/oauth/listers/oauth/v1/oauthauthorizetoken.go
index 3110c1f65..157a7a3b3 100644
--- a/oauth/listers/oauth/v1/oauthauthorizetoken.go
+++ b/oauth/listers/oauth/v1/oauthauthorizetoken.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/oauth/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ oauthv1 "github.com/openshift/api/oauth/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// OAuthAuthorizeTokenLister helps list OAuthAuthorizeTokens.
@@ -14,19 +14,19 @@ import (
type OAuthAuthorizeTokenLister interface {
// List lists all OAuthAuthorizeTokens in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.OAuthAuthorizeToken, err error)
+ List(selector labels.Selector) (ret []*oauthv1.OAuthAuthorizeToken, err error)
// Get retrieves the OAuthAuthorizeToken from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.OAuthAuthorizeToken, error)
+ Get(name string) (*oauthv1.OAuthAuthorizeToken, error)
OAuthAuthorizeTokenListerExpansion
}
// oAuthAuthorizeTokenLister implements the OAuthAuthorizeTokenLister interface.
type oAuthAuthorizeTokenLister struct {
- listers.ResourceIndexer[*v1.OAuthAuthorizeToken]
+ listers.ResourceIndexer[*oauthv1.OAuthAuthorizeToken]
}
// NewOAuthAuthorizeTokenLister returns a new OAuthAuthorizeTokenLister.
func NewOAuthAuthorizeTokenLister(indexer cache.Indexer) OAuthAuthorizeTokenLister {
- return &oAuthAuthorizeTokenLister{listers.New[*v1.OAuthAuthorizeToken](indexer, v1.Resource("oauthauthorizetoken"))}
+ return &oAuthAuthorizeTokenLister{listers.New[*oauthv1.OAuthAuthorizeToken](indexer, oauthv1.Resource("oauthauthorizetoken"))}
}
diff --git a/oauth/listers/oauth/v1/oauthclient.go b/oauth/listers/oauth/v1/oauthclient.go
index dfe25b0f7..7d1e1d0b6 100644
--- a/oauth/listers/oauth/v1/oauthclient.go
+++ b/oauth/listers/oauth/v1/oauthclient.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/oauth/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ oauthv1 "github.com/openshift/api/oauth/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// OAuthClientLister helps list OAuthClients.
@@ -14,19 +14,19 @@ import (
type OAuthClientLister interface {
// List lists all OAuthClients in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.OAuthClient, err error)
+ List(selector labels.Selector) (ret []*oauthv1.OAuthClient, err error)
// Get retrieves the OAuthClient from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.OAuthClient, error)
+ Get(name string) (*oauthv1.OAuthClient, error)
OAuthClientListerExpansion
}
// oAuthClientLister implements the OAuthClientLister interface.
type oAuthClientLister struct {
- listers.ResourceIndexer[*v1.OAuthClient]
+ listers.ResourceIndexer[*oauthv1.OAuthClient]
}
// NewOAuthClientLister returns a new OAuthClientLister.
func NewOAuthClientLister(indexer cache.Indexer) OAuthClientLister {
- return &oAuthClientLister{listers.New[*v1.OAuthClient](indexer, v1.Resource("oauthclient"))}
+ return &oAuthClientLister{listers.New[*oauthv1.OAuthClient](indexer, oauthv1.Resource("oauthclient"))}
}
diff --git a/oauth/listers/oauth/v1/oauthclientauthorization.go b/oauth/listers/oauth/v1/oauthclientauthorization.go
index 44b970c60..1237edb9e 100644
--- a/oauth/listers/oauth/v1/oauthclientauthorization.go
+++ b/oauth/listers/oauth/v1/oauthclientauthorization.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/oauth/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ oauthv1 "github.com/openshift/api/oauth/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// OAuthClientAuthorizationLister helps list OAuthClientAuthorizations.
@@ -14,19 +14,19 @@ import (
type OAuthClientAuthorizationLister interface {
// List lists all OAuthClientAuthorizations in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.OAuthClientAuthorization, err error)
+ List(selector labels.Selector) (ret []*oauthv1.OAuthClientAuthorization, err error)
// Get retrieves the OAuthClientAuthorization from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.OAuthClientAuthorization, error)
+ Get(name string) (*oauthv1.OAuthClientAuthorization, error)
OAuthClientAuthorizationListerExpansion
}
// oAuthClientAuthorizationLister implements the OAuthClientAuthorizationLister interface.
type oAuthClientAuthorizationLister struct {
- listers.ResourceIndexer[*v1.OAuthClientAuthorization]
+ listers.ResourceIndexer[*oauthv1.OAuthClientAuthorization]
}
// NewOAuthClientAuthorizationLister returns a new OAuthClientAuthorizationLister.
func NewOAuthClientAuthorizationLister(indexer cache.Indexer) OAuthClientAuthorizationLister {
- return &oAuthClientAuthorizationLister{listers.New[*v1.OAuthClientAuthorization](indexer, v1.Resource("oauthclientauthorization"))}
+ return &oAuthClientAuthorizationLister{listers.New[*oauthv1.OAuthClientAuthorization](indexer, oauthv1.Resource("oauthclientauthorization"))}
}
diff --git a/oauth/listers/oauth/v1/useroauthaccesstoken.go b/oauth/listers/oauth/v1/useroauthaccesstoken.go
index 9130c56a3..f45ab6558 100644
--- a/oauth/listers/oauth/v1/useroauthaccesstoken.go
+++ b/oauth/listers/oauth/v1/useroauthaccesstoken.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/oauth/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ oauthv1 "github.com/openshift/api/oauth/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// UserOAuthAccessTokenLister helps list UserOAuthAccessTokens.
@@ -14,19 +14,19 @@ import (
type UserOAuthAccessTokenLister interface {
// List lists all UserOAuthAccessTokens in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.UserOAuthAccessToken, err error)
+ List(selector labels.Selector) (ret []*oauthv1.UserOAuthAccessToken, err error)
// Get retrieves the UserOAuthAccessToken from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.UserOAuthAccessToken, error)
+ Get(name string) (*oauthv1.UserOAuthAccessToken, error)
UserOAuthAccessTokenListerExpansion
}
// userOAuthAccessTokenLister implements the UserOAuthAccessTokenLister interface.
type userOAuthAccessTokenLister struct {
- listers.ResourceIndexer[*v1.UserOAuthAccessToken]
+ listers.ResourceIndexer[*oauthv1.UserOAuthAccessToken]
}
// NewUserOAuthAccessTokenLister returns a new UserOAuthAccessTokenLister.
func NewUserOAuthAccessTokenLister(indexer cache.Indexer) UserOAuthAccessTokenLister {
- return &userOAuthAccessTokenLister{listers.New[*v1.UserOAuthAccessToken](indexer, v1.Resource("useroauthaccesstoken"))}
+ return &userOAuthAccessTokenLister{listers.New[*oauthv1.UserOAuthAccessToken](indexer, oauthv1.Resource("useroauthaccesstoken"))}
}
diff --git a/operator/applyconfigurations/internal/internal.go b/operator/applyconfigurations/internal/internal.go
index 323227964..1c88fc776 100644
--- a/operator/applyconfigurations/internal/internal.go
+++ b/operator/applyconfigurations/internal/internal.go
@@ -3,8 +3,8 @@
package internal
import (
- "fmt"
- "sync"
+ fmt "fmt"
+ sync "sync"
typed "sigs.k8s.io/structured-merge-diff/v4/typed"
)
diff --git a/operator/applyconfigurations/operator/v1/additionalnetworkdefinition.go b/operator/applyconfigurations/operator/v1/additionalnetworkdefinition.go
index 24508e916..a43b86656 100644
--- a/operator/applyconfigurations/operator/v1/additionalnetworkdefinition.go
+++ b/operator/applyconfigurations/operator/v1/additionalnetworkdefinition.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// AdditionalNetworkDefinitionApplyConfiguration represents a declarative configuration of the AdditionalNetworkDefinition type for use
// with apply.
type AdditionalNetworkDefinitionApplyConfiguration struct {
- Type *v1.NetworkType `json:"type,omitempty"`
+ Type *operatorv1.NetworkType `json:"type,omitempty"`
Name *string `json:"name,omitempty"`
Namespace *string `json:"namespace,omitempty"`
RawCNIConfig *string `json:"rawCNIConfig,omitempty"`
@@ -25,7 +25,7 @@ func AdditionalNetworkDefinition() *AdditionalNetworkDefinitionApplyConfiguratio
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *AdditionalNetworkDefinitionApplyConfiguration) WithType(value v1.NetworkType) *AdditionalNetworkDefinitionApplyConfiguration {
+func (b *AdditionalNetworkDefinitionApplyConfiguration) WithType(value operatorv1.NetworkType) *AdditionalNetworkDefinitionApplyConfiguration {
b.Type = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/additionalroutingcapabilities.go b/operator/applyconfigurations/operator/v1/additionalroutingcapabilities.go
index 9707fc73b..95a77d116 100644
--- a/operator/applyconfigurations/operator/v1/additionalroutingcapabilities.go
+++ b/operator/applyconfigurations/operator/v1/additionalroutingcapabilities.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// AdditionalRoutingCapabilitiesApplyConfiguration represents a declarative configuration of the AdditionalRoutingCapabilities type for use
// with apply.
type AdditionalRoutingCapabilitiesApplyConfiguration struct {
- Providers []v1.RoutingCapabilitiesProvider `json:"providers,omitempty"`
+ Providers []operatorv1.RoutingCapabilitiesProvider `json:"providers,omitempty"`
}
// AdditionalRoutingCapabilitiesApplyConfiguration constructs a declarative configuration of the AdditionalRoutingCapabilities type for use with
@@ -21,7 +21,7 @@ func AdditionalRoutingCapabilities() *AdditionalRoutingCapabilitiesApplyConfigur
// WithProviders adds the given value to the Providers field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Providers field.
-func (b *AdditionalRoutingCapabilitiesApplyConfiguration) WithProviders(values ...v1.RoutingCapabilitiesProvider) *AdditionalRoutingCapabilitiesApplyConfiguration {
+func (b *AdditionalRoutingCapabilitiesApplyConfiguration) WithProviders(values ...operatorv1.RoutingCapabilitiesProvider) *AdditionalRoutingCapabilitiesApplyConfiguration {
for i := range values {
b.Providers = append(b.Providers, values[i])
}
diff --git a/operator/applyconfigurations/operator/v1/authentication.go b/operator/applyconfigurations/operator/v1/authentication.go
index c9ac2464b..ec839a2ff 100644
--- a/operator/applyconfigurations/operator/v1/authentication.go
+++ b/operator/applyconfigurations/operator/v1/authentication.go
@@ -3,21 +3,21 @@
package v1
import (
- apioperatorv1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
internal "github.com/openshift/client-go/operator/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// AuthenticationApplyConfiguration represents a declarative configuration of the Authentication type for use
// with apply.
type AuthenticationApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *AuthenticationSpecApplyConfiguration `json:"spec,omitempty"`
- Status *AuthenticationStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *AuthenticationSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *AuthenticationStatusApplyConfiguration `json:"status,omitempty"`
}
// Authentication constructs a declarative configuration of the Authentication type for use with
@@ -41,18 +41,18 @@ func Authentication(name string) *AuthenticationApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractAuthentication(authentication *apioperatorv1.Authentication, fieldManager string) (*AuthenticationApplyConfiguration, error) {
+func ExtractAuthentication(authentication *operatorv1.Authentication, fieldManager string) (*AuthenticationApplyConfiguration, error) {
return extractAuthentication(authentication, fieldManager, "")
}
// ExtractAuthenticationStatus is the same as ExtractAuthentication except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractAuthenticationStatus(authentication *apioperatorv1.Authentication, fieldManager string) (*AuthenticationApplyConfiguration, error) {
+func ExtractAuthenticationStatus(authentication *operatorv1.Authentication, fieldManager string) (*AuthenticationApplyConfiguration, error) {
return extractAuthentication(authentication, fieldManager, "status")
}
-func extractAuthentication(authentication *apioperatorv1.Authentication, fieldManager string, subresource string) (*AuthenticationApplyConfiguration, error) {
+func extractAuthentication(authentication *operatorv1.Authentication, fieldManager string, subresource string) (*AuthenticationApplyConfiguration, error) {
b := &AuthenticationApplyConfiguration{}
err := managedfields.ExtractInto(authentication, internal.Parser().Type("com.github.openshift.api.operator.v1.Authentication"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractAuthentication(authentication *apioperatorv1.Authentication, fieldMa
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *AuthenticationApplyConfiguration) WithKind(value string) *AuthenticationApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *AuthenticationApplyConfiguration) WithKind(value string) *Authenticatio
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *AuthenticationApplyConfiguration) WithAPIVersion(value string) *AuthenticationApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *AuthenticationApplyConfiguration) WithAPIVersion(value string) *Authent
// If called multiple times, the Name field is set to the value of the last call.
func (b *AuthenticationApplyConfiguration) WithName(value string) *AuthenticationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *AuthenticationApplyConfiguration) WithName(value string) *Authenticatio
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *AuthenticationApplyConfiguration) WithGenerateName(value string) *AuthenticationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *AuthenticationApplyConfiguration) WithGenerateName(value string) *Authe
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *AuthenticationApplyConfiguration) WithNamespace(value string) *AuthenticationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *AuthenticationApplyConfiguration) WithNamespace(value string) *Authenti
// If called multiple times, the UID field is set to the value of the last call.
func (b *AuthenticationApplyConfiguration) WithUID(value types.UID) *AuthenticationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *AuthenticationApplyConfiguration) WithUID(value types.UID) *Authenticat
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *AuthenticationApplyConfiguration) WithResourceVersion(value string) *AuthenticationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *AuthenticationApplyConfiguration) WithResourceVersion(value string) *Au
// If called multiple times, the Generation field is set to the value of the last call.
func (b *AuthenticationApplyConfiguration) WithGeneration(value int64) *AuthenticationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *AuthenticationApplyConfiguration) WithCreationTimestamp(value metav1.Time) *AuthenticationApplyConfiguration {
+func (b *AuthenticationApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *AuthenticationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *AuthenticationApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *AuthenticationApplyConfiguration {
+func (b *AuthenticationApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *AuthenticationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *AuthenticationApplyConfiguration) WithDeletionTimestamp(value metav1.Ti
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *AuthenticationApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *AuthenticationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *AuthenticationApplyConfiguration) WithDeletionGracePeriodSeconds(value
// overwriting an existing map entries in Labels field with the same key.
func (b *AuthenticationApplyConfiguration) WithLabels(entries map[string]string) *AuthenticationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *AuthenticationApplyConfiguration) WithLabels(entries map[string]string)
// overwriting an existing map entries in Annotations field with the same key.
func (b *AuthenticationApplyConfiguration) WithAnnotations(entries map[string]string) *AuthenticationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *AuthenticationApplyConfiguration) WithAnnotations(entries map[string]st
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *AuthenticationApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *AuthenticationApplyConfiguration {
+func (b *AuthenticationApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *AuthenticationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *AuthenticationApplyConfiguration) WithOwnerReferences(values ...*v1.Own
func (b *AuthenticationApplyConfiguration) WithFinalizers(values ...string) *AuthenticationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *AuthenticationApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *AuthenticationApplyConfiguration) WithStatus(value *AuthenticationStatu
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *AuthenticationApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/operator/applyconfigurations/operator/v1/authenticationspec.go b/operator/applyconfigurations/operator/v1/authenticationspec.go
index 572a5332a..ac90816bc 100644
--- a/operator/applyconfigurations/operator/v1/authenticationspec.go
+++ b/operator/applyconfigurations/operator/v1/authenticationspec.go
@@ -23,7 +23,7 @@ func AuthenticationSpec() *AuthenticationSpecApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ManagementState field is set to the value of the last call.
func (b *AuthenticationSpecApplyConfiguration) WithManagementState(value operatorv1.ManagementState) *AuthenticationSpecApplyConfiguration {
- b.ManagementState = &value
+ b.OperatorSpecApplyConfiguration.ManagementState = &value
return b
}
@@ -31,7 +31,7 @@ func (b *AuthenticationSpecApplyConfiguration) WithManagementState(value operato
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LogLevel field is set to the value of the last call.
func (b *AuthenticationSpecApplyConfiguration) WithLogLevel(value operatorv1.LogLevel) *AuthenticationSpecApplyConfiguration {
- b.LogLevel = &value
+ b.OperatorSpecApplyConfiguration.LogLevel = &value
return b
}
@@ -39,7 +39,7 @@ func (b *AuthenticationSpecApplyConfiguration) WithLogLevel(value operatorv1.Log
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the OperatorLogLevel field is set to the value of the last call.
func (b *AuthenticationSpecApplyConfiguration) WithOperatorLogLevel(value operatorv1.LogLevel) *AuthenticationSpecApplyConfiguration {
- b.OperatorLogLevel = &value
+ b.OperatorSpecApplyConfiguration.OperatorLogLevel = &value
return b
}
@@ -47,7 +47,7 @@ func (b *AuthenticationSpecApplyConfiguration) WithOperatorLogLevel(value operat
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the UnsupportedConfigOverrides field is set to the value of the last call.
func (b *AuthenticationSpecApplyConfiguration) WithUnsupportedConfigOverrides(value runtime.RawExtension) *AuthenticationSpecApplyConfiguration {
- b.UnsupportedConfigOverrides = &value
+ b.OperatorSpecApplyConfiguration.UnsupportedConfigOverrides = &value
return b
}
@@ -55,6 +55,6 @@ func (b *AuthenticationSpecApplyConfiguration) WithUnsupportedConfigOverrides(va
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedConfig field is set to the value of the last call.
func (b *AuthenticationSpecApplyConfiguration) WithObservedConfig(value runtime.RawExtension) *AuthenticationSpecApplyConfiguration {
- b.ObservedConfig = &value
+ b.OperatorSpecApplyConfiguration.ObservedConfig = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/authenticationstatus.go b/operator/applyconfigurations/operator/v1/authenticationstatus.go
index 4f64c5ad3..ee84050a4 100644
--- a/operator/applyconfigurations/operator/v1/authenticationstatus.go
+++ b/operator/applyconfigurations/operator/v1/authenticationstatus.go
@@ -27,7 +27,7 @@ func (b *AuthenticationStatusApplyConfiguration) WithOAuthAPIServer(value *OAuth
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedGeneration field is set to the value of the last call.
func (b *AuthenticationStatusApplyConfiguration) WithObservedGeneration(value int64) *AuthenticationStatusApplyConfiguration {
- b.ObservedGeneration = &value
+ b.OperatorStatusApplyConfiguration.ObservedGeneration = &value
return b
}
@@ -39,7 +39,7 @@ func (b *AuthenticationStatusApplyConfiguration) WithConditions(values ...*Opera
if values[i] == nil {
panic("nil value passed to WithConditions")
}
- b.Conditions = append(b.Conditions, *values[i])
+ b.OperatorStatusApplyConfiguration.Conditions = append(b.OperatorStatusApplyConfiguration.Conditions, *values[i])
}
return b
}
@@ -48,7 +48,7 @@ func (b *AuthenticationStatusApplyConfiguration) WithConditions(values ...*Opera
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Version field is set to the value of the last call.
func (b *AuthenticationStatusApplyConfiguration) WithVersion(value string) *AuthenticationStatusApplyConfiguration {
- b.Version = &value
+ b.OperatorStatusApplyConfiguration.Version = &value
return b
}
@@ -56,7 +56,7 @@ func (b *AuthenticationStatusApplyConfiguration) WithVersion(value string) *Auth
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ReadyReplicas field is set to the value of the last call.
func (b *AuthenticationStatusApplyConfiguration) WithReadyReplicas(value int32) *AuthenticationStatusApplyConfiguration {
- b.ReadyReplicas = &value
+ b.OperatorStatusApplyConfiguration.ReadyReplicas = &value
return b
}
@@ -64,7 +64,7 @@ func (b *AuthenticationStatusApplyConfiguration) WithReadyReplicas(value int32)
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LatestAvailableRevision field is set to the value of the last call.
func (b *AuthenticationStatusApplyConfiguration) WithLatestAvailableRevision(value int32) *AuthenticationStatusApplyConfiguration {
- b.LatestAvailableRevision = &value
+ b.OperatorStatusApplyConfiguration.LatestAvailableRevision = &value
return b
}
@@ -76,7 +76,7 @@ func (b *AuthenticationStatusApplyConfiguration) WithGenerations(values ...*Gene
if values[i] == nil {
panic("nil value passed to WithGenerations")
}
- b.Generations = append(b.Generations, *values[i])
+ b.OperatorStatusApplyConfiguration.Generations = append(b.OperatorStatusApplyConfiguration.Generations, *values[i])
}
return b
}
diff --git a/operator/applyconfigurations/operator/v1/awsclassicloadbalancerparameters.go b/operator/applyconfigurations/operator/v1/awsclassicloadbalancerparameters.go
index c0b3f0d09..b490ac0e5 100644
--- a/operator/applyconfigurations/operator/v1/awsclassicloadbalancerparameters.go
+++ b/operator/applyconfigurations/operator/v1/awsclassicloadbalancerparameters.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// AWSClassicLoadBalancerParametersApplyConfiguration represents a declarative configuration of the AWSClassicLoadBalancerParameters type for use
// with apply.
type AWSClassicLoadBalancerParametersApplyConfiguration struct {
- ConnectionIdleTimeout *v1.Duration `json:"connectionIdleTimeout,omitempty"`
+ ConnectionIdleTimeout *metav1.Duration `json:"connectionIdleTimeout,omitempty"`
Subnets *AWSSubnetsApplyConfiguration `json:"subnets,omitempty"`
}
@@ -22,7 +22,7 @@ func AWSClassicLoadBalancerParameters() *AWSClassicLoadBalancerParametersApplyCo
// WithConnectionIdleTimeout sets the ConnectionIdleTimeout field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ConnectionIdleTimeout field is set to the value of the last call.
-func (b *AWSClassicLoadBalancerParametersApplyConfiguration) WithConnectionIdleTimeout(value v1.Duration) *AWSClassicLoadBalancerParametersApplyConfiguration {
+func (b *AWSClassicLoadBalancerParametersApplyConfiguration) WithConnectionIdleTimeout(value metav1.Duration) *AWSClassicLoadBalancerParametersApplyConfiguration {
b.ConnectionIdleTimeout = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/awsefsvolumemetrics.go b/operator/applyconfigurations/operator/v1/awsefsvolumemetrics.go
index 16891541f..011bbeaff 100644
--- a/operator/applyconfigurations/operator/v1/awsefsvolumemetrics.go
+++ b/operator/applyconfigurations/operator/v1/awsefsvolumemetrics.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// AWSEFSVolumeMetricsApplyConfiguration represents a declarative configuration of the AWSEFSVolumeMetrics type for use
// with apply.
type AWSEFSVolumeMetricsApplyConfiguration struct {
- State *v1.AWSEFSVolumeMetricsState `json:"state,omitempty"`
+ State *operatorv1.AWSEFSVolumeMetricsState `json:"state,omitempty"`
RecursiveWalk *AWSEFSVolumeMetricsRecursiveWalkConfigApplyConfiguration `json:"recursiveWalk,omitempty"`
}
@@ -22,7 +22,7 @@ func AWSEFSVolumeMetrics() *AWSEFSVolumeMetricsApplyConfiguration {
// WithState sets the State field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the State field is set to the value of the last call.
-func (b *AWSEFSVolumeMetricsApplyConfiguration) WithState(value v1.AWSEFSVolumeMetricsState) *AWSEFSVolumeMetricsApplyConfiguration {
+func (b *AWSEFSVolumeMetricsApplyConfiguration) WithState(value operatorv1.AWSEFSVolumeMetricsState) *AWSEFSVolumeMetricsApplyConfiguration {
b.State = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/awsloadbalancerparameters.go b/operator/applyconfigurations/operator/v1/awsloadbalancerparameters.go
index 39599f59a..8805b7eec 100644
--- a/operator/applyconfigurations/operator/v1/awsloadbalancerparameters.go
+++ b/operator/applyconfigurations/operator/v1/awsloadbalancerparameters.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// AWSLoadBalancerParametersApplyConfiguration represents a declarative configuration of the AWSLoadBalancerParameters type for use
// with apply.
type AWSLoadBalancerParametersApplyConfiguration struct {
- Type *v1.AWSLoadBalancerType `json:"type,omitempty"`
+ Type *operatorv1.AWSLoadBalancerType `json:"type,omitempty"`
ClassicLoadBalancerParameters *AWSClassicLoadBalancerParametersApplyConfiguration `json:"classicLoadBalancer,omitempty"`
NetworkLoadBalancerParameters *AWSNetworkLoadBalancerParametersApplyConfiguration `json:"networkLoadBalancer,omitempty"`
}
@@ -23,7 +23,7 @@ func AWSLoadBalancerParameters() *AWSLoadBalancerParametersApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *AWSLoadBalancerParametersApplyConfiguration) WithType(value v1.AWSLoadBalancerType) *AWSLoadBalancerParametersApplyConfiguration {
+func (b *AWSLoadBalancerParametersApplyConfiguration) WithType(value operatorv1.AWSLoadBalancerType) *AWSLoadBalancerParametersApplyConfiguration {
b.Type = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/awssubnets.go b/operator/applyconfigurations/operator/v1/awssubnets.go
index 8dbc4f688..f127ac4ca 100644
--- a/operator/applyconfigurations/operator/v1/awssubnets.go
+++ b/operator/applyconfigurations/operator/v1/awssubnets.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// AWSSubnetsApplyConfiguration represents a declarative configuration of the AWSSubnets type for use
// with apply.
type AWSSubnetsApplyConfiguration struct {
- IDs []v1.AWSSubnetID `json:"ids,omitempty"`
- Names []v1.AWSSubnetName `json:"names,omitempty"`
+ IDs []operatorv1.AWSSubnetID `json:"ids,omitempty"`
+ Names []operatorv1.AWSSubnetName `json:"names,omitempty"`
}
// AWSSubnetsApplyConfiguration constructs a declarative configuration of the AWSSubnets type for use with
@@ -22,7 +22,7 @@ func AWSSubnets() *AWSSubnetsApplyConfiguration {
// WithIDs adds the given value to the IDs field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the IDs field.
-func (b *AWSSubnetsApplyConfiguration) WithIDs(values ...v1.AWSSubnetID) *AWSSubnetsApplyConfiguration {
+func (b *AWSSubnetsApplyConfiguration) WithIDs(values ...operatorv1.AWSSubnetID) *AWSSubnetsApplyConfiguration {
for i := range values {
b.IDs = append(b.IDs, values[i])
}
@@ -32,7 +32,7 @@ func (b *AWSSubnetsApplyConfiguration) WithIDs(values ...v1.AWSSubnetID) *AWSSub
// WithNames adds the given value to the Names field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Names field.
-func (b *AWSSubnetsApplyConfiguration) WithNames(values ...v1.AWSSubnetName) *AWSSubnetsApplyConfiguration {
+func (b *AWSSubnetsApplyConfiguration) WithNames(values ...operatorv1.AWSSubnetName) *AWSSubnetsApplyConfiguration {
for i := range values {
b.Names = append(b.Names, values[i])
}
diff --git a/operator/applyconfigurations/operator/v1/capability.go b/operator/applyconfigurations/operator/v1/capability.go
index 01d8544b8..ce7ca886f 100644
--- a/operator/applyconfigurations/operator/v1/capability.go
+++ b/operator/applyconfigurations/operator/v1/capability.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// CapabilityApplyConfiguration represents a declarative configuration of the Capability type for use
// with apply.
type CapabilityApplyConfiguration struct {
- Name *v1.ConsoleCapabilityName `json:"name,omitempty"`
+ Name *operatorv1.ConsoleCapabilityName `json:"name,omitempty"`
Visibility *CapabilityVisibilityApplyConfiguration `json:"visibility,omitempty"`
}
@@ -22,7 +22,7 @@ func Capability() *CapabilityApplyConfiguration {
// WithName sets the Name field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Name field is set to the value of the last call.
-func (b *CapabilityApplyConfiguration) WithName(value v1.ConsoleCapabilityName) *CapabilityApplyConfiguration {
+func (b *CapabilityApplyConfiguration) WithName(value operatorv1.ConsoleCapabilityName) *CapabilityApplyConfiguration {
b.Name = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/capabilityvisibility.go b/operator/applyconfigurations/operator/v1/capabilityvisibility.go
index a5779ead3..9e86b3d38 100644
--- a/operator/applyconfigurations/operator/v1/capabilityvisibility.go
+++ b/operator/applyconfigurations/operator/v1/capabilityvisibility.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// CapabilityVisibilityApplyConfiguration represents a declarative configuration of the CapabilityVisibility type for use
// with apply.
type CapabilityVisibilityApplyConfiguration struct {
- State *v1.CapabilityState `json:"state,omitempty"`
+ State *operatorv1.CapabilityState `json:"state,omitempty"`
}
// CapabilityVisibilityApplyConfiguration constructs a declarative configuration of the CapabilityVisibility type for use with
@@ -21,7 +21,7 @@ func CapabilityVisibility() *CapabilityVisibilityApplyConfiguration {
// WithState sets the State field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the State field is set to the value of the last call.
-func (b *CapabilityVisibilityApplyConfiguration) WithState(value v1.CapabilityState) *CapabilityVisibilityApplyConfiguration {
+func (b *CapabilityVisibilityApplyConfiguration) WithState(value operatorv1.CapabilityState) *CapabilityVisibilityApplyConfiguration {
b.State = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/clienttls.go b/operator/applyconfigurations/operator/v1/clienttls.go
index 5617c1b0b..4b6d55997 100644
--- a/operator/applyconfigurations/operator/v1/clienttls.go
+++ b/operator/applyconfigurations/operator/v1/clienttls.go
@@ -4,15 +4,15 @@ package v1
import (
configv1 "github.com/openshift/api/config/v1"
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// ClientTLSApplyConfiguration represents a declarative configuration of the ClientTLS type for use
// with apply.
type ClientTLSApplyConfiguration struct {
- ClientCertificatePolicy *v1.ClientCertificatePolicy `json:"clientCertificatePolicy,omitempty"`
- ClientCA *configv1.ConfigMapNameReference `json:"clientCA,omitempty"`
- AllowedSubjectPatterns []string `json:"allowedSubjectPatterns,omitempty"`
+ ClientCertificatePolicy *operatorv1.ClientCertificatePolicy `json:"clientCertificatePolicy,omitempty"`
+ ClientCA *configv1.ConfigMapNameReference `json:"clientCA,omitempty"`
+ AllowedSubjectPatterns []string `json:"allowedSubjectPatterns,omitempty"`
}
// ClientTLSApplyConfiguration constructs a declarative configuration of the ClientTLS type for use with
@@ -24,7 +24,7 @@ func ClientTLS() *ClientTLSApplyConfiguration {
// WithClientCertificatePolicy sets the ClientCertificatePolicy field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ClientCertificatePolicy field is set to the value of the last call.
-func (b *ClientTLSApplyConfiguration) WithClientCertificatePolicy(value v1.ClientCertificatePolicy) *ClientTLSApplyConfiguration {
+func (b *ClientTLSApplyConfiguration) WithClientCertificatePolicy(value operatorv1.ClientCertificatePolicy) *ClientTLSApplyConfiguration {
b.ClientCertificatePolicy = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/cloudcredential.go b/operator/applyconfigurations/operator/v1/cloudcredential.go
index 80824b539..148c6a440 100644
--- a/operator/applyconfigurations/operator/v1/cloudcredential.go
+++ b/operator/applyconfigurations/operator/v1/cloudcredential.go
@@ -3,21 +3,21 @@
package v1
import (
- apioperatorv1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
internal "github.com/openshift/client-go/operator/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// CloudCredentialApplyConfiguration represents a declarative configuration of the CloudCredential type for use
// with apply.
type CloudCredentialApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *CloudCredentialSpecApplyConfiguration `json:"spec,omitempty"`
- Status *CloudCredentialStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *CloudCredentialSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *CloudCredentialStatusApplyConfiguration `json:"status,omitempty"`
}
// CloudCredential constructs a declarative configuration of the CloudCredential type for use with
@@ -41,18 +41,18 @@ func CloudCredential(name string) *CloudCredentialApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractCloudCredential(cloudCredential *apioperatorv1.CloudCredential, fieldManager string) (*CloudCredentialApplyConfiguration, error) {
+func ExtractCloudCredential(cloudCredential *operatorv1.CloudCredential, fieldManager string) (*CloudCredentialApplyConfiguration, error) {
return extractCloudCredential(cloudCredential, fieldManager, "")
}
// ExtractCloudCredentialStatus is the same as ExtractCloudCredential except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractCloudCredentialStatus(cloudCredential *apioperatorv1.CloudCredential, fieldManager string) (*CloudCredentialApplyConfiguration, error) {
+func ExtractCloudCredentialStatus(cloudCredential *operatorv1.CloudCredential, fieldManager string) (*CloudCredentialApplyConfiguration, error) {
return extractCloudCredential(cloudCredential, fieldManager, "status")
}
-func extractCloudCredential(cloudCredential *apioperatorv1.CloudCredential, fieldManager string, subresource string) (*CloudCredentialApplyConfiguration, error) {
+func extractCloudCredential(cloudCredential *operatorv1.CloudCredential, fieldManager string, subresource string) (*CloudCredentialApplyConfiguration, error) {
b := &CloudCredentialApplyConfiguration{}
err := managedfields.ExtractInto(cloudCredential, internal.Parser().Type("com.github.openshift.api.operator.v1.CloudCredential"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractCloudCredential(cloudCredential *apioperatorv1.CloudCredential, fiel
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *CloudCredentialApplyConfiguration) WithKind(value string) *CloudCredentialApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *CloudCredentialApplyConfiguration) WithKind(value string) *CloudCredent
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *CloudCredentialApplyConfiguration) WithAPIVersion(value string) *CloudCredentialApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *CloudCredentialApplyConfiguration) WithAPIVersion(value string) *CloudC
// If called multiple times, the Name field is set to the value of the last call.
func (b *CloudCredentialApplyConfiguration) WithName(value string) *CloudCredentialApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *CloudCredentialApplyConfiguration) WithName(value string) *CloudCredent
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *CloudCredentialApplyConfiguration) WithGenerateName(value string) *CloudCredentialApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *CloudCredentialApplyConfiguration) WithGenerateName(value string) *Clou
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *CloudCredentialApplyConfiguration) WithNamespace(value string) *CloudCredentialApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *CloudCredentialApplyConfiguration) WithNamespace(value string) *CloudCr
// If called multiple times, the UID field is set to the value of the last call.
func (b *CloudCredentialApplyConfiguration) WithUID(value types.UID) *CloudCredentialApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *CloudCredentialApplyConfiguration) WithUID(value types.UID) *CloudCrede
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *CloudCredentialApplyConfiguration) WithResourceVersion(value string) *CloudCredentialApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *CloudCredentialApplyConfiguration) WithResourceVersion(value string) *C
// If called multiple times, the Generation field is set to the value of the last call.
func (b *CloudCredentialApplyConfiguration) WithGeneration(value int64) *CloudCredentialApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *CloudCredentialApplyConfiguration) WithCreationTimestamp(value metav1.Time) *CloudCredentialApplyConfiguration {
+func (b *CloudCredentialApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *CloudCredentialApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *CloudCredentialApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *CloudCredentialApplyConfiguration {
+func (b *CloudCredentialApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *CloudCredentialApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *CloudCredentialApplyConfiguration) WithDeletionTimestamp(value metav1.T
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *CloudCredentialApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *CloudCredentialApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *CloudCredentialApplyConfiguration) WithDeletionGracePeriodSeconds(value
// overwriting an existing map entries in Labels field with the same key.
func (b *CloudCredentialApplyConfiguration) WithLabels(entries map[string]string) *CloudCredentialApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *CloudCredentialApplyConfiguration) WithLabels(entries map[string]string
// overwriting an existing map entries in Annotations field with the same key.
func (b *CloudCredentialApplyConfiguration) WithAnnotations(entries map[string]string) *CloudCredentialApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *CloudCredentialApplyConfiguration) WithAnnotations(entries map[string]s
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *CloudCredentialApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *CloudCredentialApplyConfiguration {
+func (b *CloudCredentialApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *CloudCredentialApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *CloudCredentialApplyConfiguration) WithOwnerReferences(values ...*v1.Ow
func (b *CloudCredentialApplyConfiguration) WithFinalizers(values ...string) *CloudCredentialApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *CloudCredentialApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *CloudCredentialApplyConfiguration) WithStatus(value *CloudCredentialSta
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *CloudCredentialApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/operator/applyconfigurations/operator/v1/cloudcredentialspec.go b/operator/applyconfigurations/operator/v1/cloudcredentialspec.go
index 98f36a12b..60712afa2 100644
--- a/operator/applyconfigurations/operator/v1/cloudcredentialspec.go
+++ b/operator/applyconfigurations/operator/v1/cloudcredentialspec.go
@@ -24,7 +24,7 @@ func CloudCredentialSpec() *CloudCredentialSpecApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ManagementState field is set to the value of the last call.
func (b *CloudCredentialSpecApplyConfiguration) WithManagementState(value operatorv1.ManagementState) *CloudCredentialSpecApplyConfiguration {
- b.ManagementState = &value
+ b.OperatorSpecApplyConfiguration.ManagementState = &value
return b
}
@@ -32,7 +32,7 @@ func (b *CloudCredentialSpecApplyConfiguration) WithManagementState(value operat
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LogLevel field is set to the value of the last call.
func (b *CloudCredentialSpecApplyConfiguration) WithLogLevel(value operatorv1.LogLevel) *CloudCredentialSpecApplyConfiguration {
- b.LogLevel = &value
+ b.OperatorSpecApplyConfiguration.LogLevel = &value
return b
}
@@ -40,7 +40,7 @@ func (b *CloudCredentialSpecApplyConfiguration) WithLogLevel(value operatorv1.Lo
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the OperatorLogLevel field is set to the value of the last call.
func (b *CloudCredentialSpecApplyConfiguration) WithOperatorLogLevel(value operatorv1.LogLevel) *CloudCredentialSpecApplyConfiguration {
- b.OperatorLogLevel = &value
+ b.OperatorSpecApplyConfiguration.OperatorLogLevel = &value
return b
}
@@ -48,7 +48,7 @@ func (b *CloudCredentialSpecApplyConfiguration) WithOperatorLogLevel(value opera
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the UnsupportedConfigOverrides field is set to the value of the last call.
func (b *CloudCredentialSpecApplyConfiguration) WithUnsupportedConfigOverrides(value runtime.RawExtension) *CloudCredentialSpecApplyConfiguration {
- b.UnsupportedConfigOverrides = &value
+ b.OperatorSpecApplyConfiguration.UnsupportedConfigOverrides = &value
return b
}
@@ -56,7 +56,7 @@ func (b *CloudCredentialSpecApplyConfiguration) WithUnsupportedConfigOverrides(v
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedConfig field is set to the value of the last call.
func (b *CloudCredentialSpecApplyConfiguration) WithObservedConfig(value runtime.RawExtension) *CloudCredentialSpecApplyConfiguration {
- b.ObservedConfig = &value
+ b.OperatorSpecApplyConfiguration.ObservedConfig = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/cloudcredentialstatus.go b/operator/applyconfigurations/operator/v1/cloudcredentialstatus.go
index f02c542c4..fa6a6f0f6 100644
--- a/operator/applyconfigurations/operator/v1/cloudcredentialstatus.go
+++ b/operator/applyconfigurations/operator/v1/cloudcredentialstatus.go
@@ -18,7 +18,7 @@ func CloudCredentialStatus() *CloudCredentialStatusApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedGeneration field is set to the value of the last call.
func (b *CloudCredentialStatusApplyConfiguration) WithObservedGeneration(value int64) *CloudCredentialStatusApplyConfiguration {
- b.ObservedGeneration = &value
+ b.OperatorStatusApplyConfiguration.ObservedGeneration = &value
return b
}
@@ -30,7 +30,7 @@ func (b *CloudCredentialStatusApplyConfiguration) WithConditions(values ...*Oper
if values[i] == nil {
panic("nil value passed to WithConditions")
}
- b.Conditions = append(b.Conditions, *values[i])
+ b.OperatorStatusApplyConfiguration.Conditions = append(b.OperatorStatusApplyConfiguration.Conditions, *values[i])
}
return b
}
@@ -39,7 +39,7 @@ func (b *CloudCredentialStatusApplyConfiguration) WithConditions(values ...*Oper
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Version field is set to the value of the last call.
func (b *CloudCredentialStatusApplyConfiguration) WithVersion(value string) *CloudCredentialStatusApplyConfiguration {
- b.Version = &value
+ b.OperatorStatusApplyConfiguration.Version = &value
return b
}
@@ -47,7 +47,7 @@ func (b *CloudCredentialStatusApplyConfiguration) WithVersion(value string) *Clo
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ReadyReplicas field is set to the value of the last call.
func (b *CloudCredentialStatusApplyConfiguration) WithReadyReplicas(value int32) *CloudCredentialStatusApplyConfiguration {
- b.ReadyReplicas = &value
+ b.OperatorStatusApplyConfiguration.ReadyReplicas = &value
return b
}
@@ -55,7 +55,7 @@ func (b *CloudCredentialStatusApplyConfiguration) WithReadyReplicas(value int32)
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LatestAvailableRevision field is set to the value of the last call.
func (b *CloudCredentialStatusApplyConfiguration) WithLatestAvailableRevision(value int32) *CloudCredentialStatusApplyConfiguration {
- b.LatestAvailableRevision = &value
+ b.OperatorStatusApplyConfiguration.LatestAvailableRevision = &value
return b
}
@@ -67,7 +67,7 @@ func (b *CloudCredentialStatusApplyConfiguration) WithGenerations(values ...*Gen
if values[i] == nil {
panic("nil value passed to WithGenerations")
}
- b.Generations = append(b.Generations, *values[i])
+ b.OperatorStatusApplyConfiguration.Generations = append(b.OperatorStatusApplyConfiguration.Generations, *values[i])
}
return b
}
diff --git a/operator/applyconfigurations/operator/v1/clustercsidriver.go b/operator/applyconfigurations/operator/v1/clustercsidriver.go
index 3df2ac8f6..ed2dbb9c1 100644
--- a/operator/applyconfigurations/operator/v1/clustercsidriver.go
+++ b/operator/applyconfigurations/operator/v1/clustercsidriver.go
@@ -3,21 +3,21 @@
package v1
import (
- apioperatorv1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
internal "github.com/openshift/client-go/operator/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ClusterCSIDriverApplyConfiguration represents a declarative configuration of the ClusterCSIDriver type for use
// with apply.
type ClusterCSIDriverApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *ClusterCSIDriverSpecApplyConfiguration `json:"spec,omitempty"`
- Status *ClusterCSIDriverStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *ClusterCSIDriverSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *ClusterCSIDriverStatusApplyConfiguration `json:"status,omitempty"`
}
// ClusterCSIDriver constructs a declarative configuration of the ClusterCSIDriver type for use with
@@ -41,18 +41,18 @@ func ClusterCSIDriver(name string) *ClusterCSIDriverApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractClusterCSIDriver(clusterCSIDriver *apioperatorv1.ClusterCSIDriver, fieldManager string) (*ClusterCSIDriverApplyConfiguration, error) {
+func ExtractClusterCSIDriver(clusterCSIDriver *operatorv1.ClusterCSIDriver, fieldManager string) (*ClusterCSIDriverApplyConfiguration, error) {
return extractClusterCSIDriver(clusterCSIDriver, fieldManager, "")
}
// ExtractClusterCSIDriverStatus is the same as ExtractClusterCSIDriver except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractClusterCSIDriverStatus(clusterCSIDriver *apioperatorv1.ClusterCSIDriver, fieldManager string) (*ClusterCSIDriverApplyConfiguration, error) {
+func ExtractClusterCSIDriverStatus(clusterCSIDriver *operatorv1.ClusterCSIDriver, fieldManager string) (*ClusterCSIDriverApplyConfiguration, error) {
return extractClusterCSIDriver(clusterCSIDriver, fieldManager, "status")
}
-func extractClusterCSIDriver(clusterCSIDriver *apioperatorv1.ClusterCSIDriver, fieldManager string, subresource string) (*ClusterCSIDriverApplyConfiguration, error) {
+func extractClusterCSIDriver(clusterCSIDriver *operatorv1.ClusterCSIDriver, fieldManager string, subresource string) (*ClusterCSIDriverApplyConfiguration, error) {
b := &ClusterCSIDriverApplyConfiguration{}
err := managedfields.ExtractInto(clusterCSIDriver, internal.Parser().Type("com.github.openshift.api.operator.v1.ClusterCSIDriver"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractClusterCSIDriver(clusterCSIDriver *apioperatorv1.ClusterCSIDriver, f
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ClusterCSIDriverApplyConfiguration) WithKind(value string) *ClusterCSIDriverApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *ClusterCSIDriverApplyConfiguration) WithKind(value string) *ClusterCSID
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ClusterCSIDriverApplyConfiguration) WithAPIVersion(value string) *ClusterCSIDriverApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *ClusterCSIDriverApplyConfiguration) WithAPIVersion(value string) *Clust
// If called multiple times, the Name field is set to the value of the last call.
func (b *ClusterCSIDriverApplyConfiguration) WithName(value string) *ClusterCSIDriverApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *ClusterCSIDriverApplyConfiguration) WithName(value string) *ClusterCSID
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ClusterCSIDriverApplyConfiguration) WithGenerateName(value string) *ClusterCSIDriverApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *ClusterCSIDriverApplyConfiguration) WithGenerateName(value string) *Clu
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ClusterCSIDriverApplyConfiguration) WithNamespace(value string) *ClusterCSIDriverApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *ClusterCSIDriverApplyConfiguration) WithNamespace(value string) *Cluste
// If called multiple times, the UID field is set to the value of the last call.
func (b *ClusterCSIDriverApplyConfiguration) WithUID(value types.UID) *ClusterCSIDriverApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *ClusterCSIDriverApplyConfiguration) WithUID(value types.UID) *ClusterCS
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ClusterCSIDriverApplyConfiguration) WithResourceVersion(value string) *ClusterCSIDriverApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *ClusterCSIDriverApplyConfiguration) WithResourceVersion(value string) *
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ClusterCSIDriverApplyConfiguration) WithGeneration(value int64) *ClusterCSIDriverApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *ClusterCSIDriverApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ClusterCSIDriverApplyConfiguration {
+func (b *ClusterCSIDriverApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ClusterCSIDriverApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *ClusterCSIDriverApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ClusterCSIDriverApplyConfiguration {
+func (b *ClusterCSIDriverApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ClusterCSIDriverApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *ClusterCSIDriverApplyConfiguration) WithDeletionTimestamp(value metav1.
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ClusterCSIDriverApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ClusterCSIDriverApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *ClusterCSIDriverApplyConfiguration) WithDeletionGracePeriodSeconds(valu
// overwriting an existing map entries in Labels field with the same key.
func (b *ClusterCSIDriverApplyConfiguration) WithLabels(entries map[string]string) *ClusterCSIDriverApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *ClusterCSIDriverApplyConfiguration) WithLabels(entries map[string]strin
// overwriting an existing map entries in Annotations field with the same key.
func (b *ClusterCSIDriverApplyConfiguration) WithAnnotations(entries map[string]string) *ClusterCSIDriverApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *ClusterCSIDriverApplyConfiguration) WithAnnotations(entries map[string]
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *ClusterCSIDriverApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ClusterCSIDriverApplyConfiguration {
+func (b *ClusterCSIDriverApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ClusterCSIDriverApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *ClusterCSIDriverApplyConfiguration) WithOwnerReferences(values ...*v1.O
func (b *ClusterCSIDriverApplyConfiguration) WithFinalizers(values ...string) *ClusterCSIDriverApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *ClusterCSIDriverApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *ClusterCSIDriverApplyConfiguration) WithStatus(value *ClusterCSIDriverS
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ClusterCSIDriverApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/operator/applyconfigurations/operator/v1/clustercsidriverspec.go b/operator/applyconfigurations/operator/v1/clustercsidriverspec.go
index a5837a95c..a008180f4 100644
--- a/operator/applyconfigurations/operator/v1/clustercsidriverspec.go
+++ b/operator/applyconfigurations/operator/v1/clustercsidriverspec.go
@@ -25,7 +25,7 @@ func ClusterCSIDriverSpec() *ClusterCSIDriverSpecApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ManagementState field is set to the value of the last call.
func (b *ClusterCSIDriverSpecApplyConfiguration) WithManagementState(value operatorv1.ManagementState) *ClusterCSIDriverSpecApplyConfiguration {
- b.ManagementState = &value
+ b.OperatorSpecApplyConfiguration.ManagementState = &value
return b
}
@@ -33,7 +33,7 @@ func (b *ClusterCSIDriverSpecApplyConfiguration) WithManagementState(value opera
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LogLevel field is set to the value of the last call.
func (b *ClusterCSIDriverSpecApplyConfiguration) WithLogLevel(value operatorv1.LogLevel) *ClusterCSIDriverSpecApplyConfiguration {
- b.LogLevel = &value
+ b.OperatorSpecApplyConfiguration.LogLevel = &value
return b
}
@@ -41,7 +41,7 @@ func (b *ClusterCSIDriverSpecApplyConfiguration) WithLogLevel(value operatorv1.L
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the OperatorLogLevel field is set to the value of the last call.
func (b *ClusterCSIDriverSpecApplyConfiguration) WithOperatorLogLevel(value operatorv1.LogLevel) *ClusterCSIDriverSpecApplyConfiguration {
- b.OperatorLogLevel = &value
+ b.OperatorSpecApplyConfiguration.OperatorLogLevel = &value
return b
}
@@ -49,7 +49,7 @@ func (b *ClusterCSIDriverSpecApplyConfiguration) WithOperatorLogLevel(value oper
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the UnsupportedConfigOverrides field is set to the value of the last call.
func (b *ClusterCSIDriverSpecApplyConfiguration) WithUnsupportedConfigOverrides(value runtime.RawExtension) *ClusterCSIDriverSpecApplyConfiguration {
- b.UnsupportedConfigOverrides = &value
+ b.OperatorSpecApplyConfiguration.UnsupportedConfigOverrides = &value
return b
}
@@ -57,7 +57,7 @@ func (b *ClusterCSIDriverSpecApplyConfiguration) WithUnsupportedConfigOverrides(
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedConfig field is set to the value of the last call.
func (b *ClusterCSIDriverSpecApplyConfiguration) WithObservedConfig(value runtime.RawExtension) *ClusterCSIDriverSpecApplyConfiguration {
- b.ObservedConfig = &value
+ b.OperatorSpecApplyConfiguration.ObservedConfig = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/clustercsidriverstatus.go b/operator/applyconfigurations/operator/v1/clustercsidriverstatus.go
index ba2c1ee9d..f5e2221b8 100644
--- a/operator/applyconfigurations/operator/v1/clustercsidriverstatus.go
+++ b/operator/applyconfigurations/operator/v1/clustercsidriverstatus.go
@@ -18,7 +18,7 @@ func ClusterCSIDriverStatus() *ClusterCSIDriverStatusApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedGeneration field is set to the value of the last call.
func (b *ClusterCSIDriverStatusApplyConfiguration) WithObservedGeneration(value int64) *ClusterCSIDriverStatusApplyConfiguration {
- b.ObservedGeneration = &value
+ b.OperatorStatusApplyConfiguration.ObservedGeneration = &value
return b
}
@@ -30,7 +30,7 @@ func (b *ClusterCSIDriverStatusApplyConfiguration) WithConditions(values ...*Ope
if values[i] == nil {
panic("nil value passed to WithConditions")
}
- b.Conditions = append(b.Conditions, *values[i])
+ b.OperatorStatusApplyConfiguration.Conditions = append(b.OperatorStatusApplyConfiguration.Conditions, *values[i])
}
return b
}
@@ -39,7 +39,7 @@ func (b *ClusterCSIDriverStatusApplyConfiguration) WithConditions(values ...*Ope
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Version field is set to the value of the last call.
func (b *ClusterCSIDriverStatusApplyConfiguration) WithVersion(value string) *ClusterCSIDriverStatusApplyConfiguration {
- b.Version = &value
+ b.OperatorStatusApplyConfiguration.Version = &value
return b
}
@@ -47,7 +47,7 @@ func (b *ClusterCSIDriverStatusApplyConfiguration) WithVersion(value string) *Cl
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ReadyReplicas field is set to the value of the last call.
func (b *ClusterCSIDriverStatusApplyConfiguration) WithReadyReplicas(value int32) *ClusterCSIDriverStatusApplyConfiguration {
- b.ReadyReplicas = &value
+ b.OperatorStatusApplyConfiguration.ReadyReplicas = &value
return b
}
@@ -55,7 +55,7 @@ func (b *ClusterCSIDriverStatusApplyConfiguration) WithReadyReplicas(value int32
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LatestAvailableRevision field is set to the value of the last call.
func (b *ClusterCSIDriverStatusApplyConfiguration) WithLatestAvailableRevision(value int32) *ClusterCSIDriverStatusApplyConfiguration {
- b.LatestAvailableRevision = &value
+ b.OperatorStatusApplyConfiguration.LatestAvailableRevision = &value
return b
}
@@ -67,7 +67,7 @@ func (b *ClusterCSIDriverStatusApplyConfiguration) WithGenerations(values ...*Ge
if values[i] == nil {
panic("nil value passed to WithGenerations")
}
- b.Generations = append(b.Generations, *values[i])
+ b.OperatorStatusApplyConfiguration.Generations = append(b.OperatorStatusApplyConfiguration.Generations, *values[i])
}
return b
}
diff --git a/operator/applyconfigurations/operator/v1/config.go b/operator/applyconfigurations/operator/v1/config.go
index 7dd7d64d5..b884322ae 100644
--- a/operator/applyconfigurations/operator/v1/config.go
+++ b/operator/applyconfigurations/operator/v1/config.go
@@ -3,21 +3,21 @@
package v1
import (
- apioperatorv1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
internal "github.com/openshift/client-go/operator/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ConfigApplyConfiguration represents a declarative configuration of the Config type for use
// with apply.
type ConfigApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *ConfigSpecApplyConfiguration `json:"spec,omitempty"`
- Status *ConfigStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *ConfigSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *ConfigStatusApplyConfiguration `json:"status,omitempty"`
}
// Config constructs a declarative configuration of the Config type for use with
@@ -41,18 +41,18 @@ func Config(name string) *ConfigApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractConfig(config *apioperatorv1.Config, fieldManager string) (*ConfigApplyConfiguration, error) {
+func ExtractConfig(config *operatorv1.Config, fieldManager string) (*ConfigApplyConfiguration, error) {
return extractConfig(config, fieldManager, "")
}
// ExtractConfigStatus is the same as ExtractConfig except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractConfigStatus(config *apioperatorv1.Config, fieldManager string) (*ConfigApplyConfiguration, error) {
+func ExtractConfigStatus(config *operatorv1.Config, fieldManager string) (*ConfigApplyConfiguration, error) {
return extractConfig(config, fieldManager, "status")
}
-func extractConfig(config *apioperatorv1.Config, fieldManager string, subresource string) (*ConfigApplyConfiguration, error) {
+func extractConfig(config *operatorv1.Config, fieldManager string, subresource string) (*ConfigApplyConfiguration, error) {
b := &ConfigApplyConfiguration{}
err := managedfields.ExtractInto(config, internal.Parser().Type("com.github.openshift.api.operator.v1.Config"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractConfig(config *apioperatorv1.Config, fieldManager string, subresourc
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ConfigApplyConfiguration) WithKind(value string) *ConfigApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *ConfigApplyConfiguration) WithKind(value string) *ConfigApplyConfigurat
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ConfigApplyConfiguration) WithAPIVersion(value string) *ConfigApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *ConfigApplyConfiguration) WithAPIVersion(value string) *ConfigApplyConf
// If called multiple times, the Name field is set to the value of the last call.
func (b *ConfigApplyConfiguration) WithName(value string) *ConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *ConfigApplyConfiguration) WithName(value string) *ConfigApplyConfigurat
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ConfigApplyConfiguration) WithGenerateName(value string) *ConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *ConfigApplyConfiguration) WithGenerateName(value string) *ConfigApplyCo
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ConfigApplyConfiguration) WithNamespace(value string) *ConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *ConfigApplyConfiguration) WithNamespace(value string) *ConfigApplyConfi
// If called multiple times, the UID field is set to the value of the last call.
func (b *ConfigApplyConfiguration) WithUID(value types.UID) *ConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *ConfigApplyConfiguration) WithUID(value types.UID) *ConfigApplyConfigur
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ConfigApplyConfiguration) WithResourceVersion(value string) *ConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *ConfigApplyConfiguration) WithResourceVersion(value string) *ConfigAppl
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ConfigApplyConfiguration) WithGeneration(value int64) *ConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *ConfigApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ConfigApplyConfiguration {
+func (b *ConfigApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *ConfigApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ConfigApplyConfiguration {
+func (b *ConfigApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *ConfigApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *Con
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ConfigApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *ConfigApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *
// overwriting an existing map entries in Labels field with the same key.
func (b *ConfigApplyConfiguration) WithLabels(entries map[string]string) *ConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *ConfigApplyConfiguration) WithLabels(entries map[string]string) *Config
// overwriting an existing map entries in Annotations field with the same key.
func (b *ConfigApplyConfiguration) WithAnnotations(entries map[string]string) *ConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *ConfigApplyConfiguration) WithAnnotations(entries map[string]string) *C
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *ConfigApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ConfigApplyConfiguration {
+func (b *ConfigApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *ConfigApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefere
func (b *ConfigApplyConfiguration) WithFinalizers(values ...string) *ConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *ConfigApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *ConfigApplyConfiguration) WithStatus(value *ConfigStatusApplyConfigurat
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ConfigApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/operator/applyconfigurations/operator/v1/configspec.go b/operator/applyconfigurations/operator/v1/configspec.go
index b5c044dce..c7d3e93c3 100644
--- a/operator/applyconfigurations/operator/v1/configspec.go
+++ b/operator/applyconfigurations/operator/v1/configspec.go
@@ -23,7 +23,7 @@ func ConfigSpec() *ConfigSpecApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ManagementState field is set to the value of the last call.
func (b *ConfigSpecApplyConfiguration) WithManagementState(value operatorv1.ManagementState) *ConfigSpecApplyConfiguration {
- b.ManagementState = &value
+ b.OperatorSpecApplyConfiguration.ManagementState = &value
return b
}
@@ -31,7 +31,7 @@ func (b *ConfigSpecApplyConfiguration) WithManagementState(value operatorv1.Mana
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LogLevel field is set to the value of the last call.
func (b *ConfigSpecApplyConfiguration) WithLogLevel(value operatorv1.LogLevel) *ConfigSpecApplyConfiguration {
- b.LogLevel = &value
+ b.OperatorSpecApplyConfiguration.LogLevel = &value
return b
}
@@ -39,7 +39,7 @@ func (b *ConfigSpecApplyConfiguration) WithLogLevel(value operatorv1.LogLevel) *
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the OperatorLogLevel field is set to the value of the last call.
func (b *ConfigSpecApplyConfiguration) WithOperatorLogLevel(value operatorv1.LogLevel) *ConfigSpecApplyConfiguration {
- b.OperatorLogLevel = &value
+ b.OperatorSpecApplyConfiguration.OperatorLogLevel = &value
return b
}
@@ -47,7 +47,7 @@ func (b *ConfigSpecApplyConfiguration) WithOperatorLogLevel(value operatorv1.Log
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the UnsupportedConfigOverrides field is set to the value of the last call.
func (b *ConfigSpecApplyConfiguration) WithUnsupportedConfigOverrides(value runtime.RawExtension) *ConfigSpecApplyConfiguration {
- b.UnsupportedConfigOverrides = &value
+ b.OperatorSpecApplyConfiguration.UnsupportedConfigOverrides = &value
return b
}
@@ -55,6 +55,6 @@ func (b *ConfigSpecApplyConfiguration) WithUnsupportedConfigOverrides(value runt
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedConfig field is set to the value of the last call.
func (b *ConfigSpecApplyConfiguration) WithObservedConfig(value runtime.RawExtension) *ConfigSpecApplyConfiguration {
- b.ObservedConfig = &value
+ b.OperatorSpecApplyConfiguration.ObservedConfig = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/configstatus.go b/operator/applyconfigurations/operator/v1/configstatus.go
index b151b4e8a..38e52420c 100644
--- a/operator/applyconfigurations/operator/v1/configstatus.go
+++ b/operator/applyconfigurations/operator/v1/configstatus.go
@@ -18,7 +18,7 @@ func ConfigStatus() *ConfigStatusApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedGeneration field is set to the value of the last call.
func (b *ConfigStatusApplyConfiguration) WithObservedGeneration(value int64) *ConfigStatusApplyConfiguration {
- b.ObservedGeneration = &value
+ b.OperatorStatusApplyConfiguration.ObservedGeneration = &value
return b
}
@@ -30,7 +30,7 @@ func (b *ConfigStatusApplyConfiguration) WithConditions(values ...*OperatorCondi
if values[i] == nil {
panic("nil value passed to WithConditions")
}
- b.Conditions = append(b.Conditions, *values[i])
+ b.OperatorStatusApplyConfiguration.Conditions = append(b.OperatorStatusApplyConfiguration.Conditions, *values[i])
}
return b
}
@@ -39,7 +39,7 @@ func (b *ConfigStatusApplyConfiguration) WithConditions(values ...*OperatorCondi
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Version field is set to the value of the last call.
func (b *ConfigStatusApplyConfiguration) WithVersion(value string) *ConfigStatusApplyConfiguration {
- b.Version = &value
+ b.OperatorStatusApplyConfiguration.Version = &value
return b
}
@@ -47,7 +47,7 @@ func (b *ConfigStatusApplyConfiguration) WithVersion(value string) *ConfigStatus
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ReadyReplicas field is set to the value of the last call.
func (b *ConfigStatusApplyConfiguration) WithReadyReplicas(value int32) *ConfigStatusApplyConfiguration {
- b.ReadyReplicas = &value
+ b.OperatorStatusApplyConfiguration.ReadyReplicas = &value
return b
}
@@ -55,7 +55,7 @@ func (b *ConfigStatusApplyConfiguration) WithReadyReplicas(value int32) *ConfigS
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LatestAvailableRevision field is set to the value of the last call.
func (b *ConfigStatusApplyConfiguration) WithLatestAvailableRevision(value int32) *ConfigStatusApplyConfiguration {
- b.LatestAvailableRevision = &value
+ b.OperatorStatusApplyConfiguration.LatestAvailableRevision = &value
return b
}
@@ -67,7 +67,7 @@ func (b *ConfigStatusApplyConfiguration) WithGenerations(values ...*GenerationSt
if values[i] == nil {
panic("nil value passed to WithGenerations")
}
- b.Generations = append(b.Generations, *values[i])
+ b.OperatorStatusApplyConfiguration.Generations = append(b.OperatorStatusApplyConfiguration.Generations, *values[i])
}
return b
}
diff --git a/operator/applyconfigurations/operator/v1/console.go b/operator/applyconfigurations/operator/v1/console.go
index dd7bf4a3d..aaa69f64c 100644
--- a/operator/applyconfigurations/operator/v1/console.go
+++ b/operator/applyconfigurations/operator/v1/console.go
@@ -3,21 +3,21 @@
package v1
import (
- apioperatorv1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
internal "github.com/openshift/client-go/operator/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ConsoleApplyConfiguration represents a declarative configuration of the Console type for use
// with apply.
type ConsoleApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *ConsoleSpecApplyConfiguration `json:"spec,omitempty"`
- Status *ConsoleStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *ConsoleSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *ConsoleStatusApplyConfiguration `json:"status,omitempty"`
}
// Console constructs a declarative configuration of the Console type for use with
@@ -41,18 +41,18 @@ func Console(name string) *ConsoleApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractConsole(console *apioperatorv1.Console, fieldManager string) (*ConsoleApplyConfiguration, error) {
+func ExtractConsole(console *operatorv1.Console, fieldManager string) (*ConsoleApplyConfiguration, error) {
return extractConsole(console, fieldManager, "")
}
// ExtractConsoleStatus is the same as ExtractConsole except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractConsoleStatus(console *apioperatorv1.Console, fieldManager string) (*ConsoleApplyConfiguration, error) {
+func ExtractConsoleStatus(console *operatorv1.Console, fieldManager string) (*ConsoleApplyConfiguration, error) {
return extractConsole(console, fieldManager, "status")
}
-func extractConsole(console *apioperatorv1.Console, fieldManager string, subresource string) (*ConsoleApplyConfiguration, error) {
+func extractConsole(console *operatorv1.Console, fieldManager string, subresource string) (*ConsoleApplyConfiguration, error) {
b := &ConsoleApplyConfiguration{}
err := managedfields.ExtractInto(console, internal.Parser().Type("com.github.openshift.api.operator.v1.Console"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractConsole(console *apioperatorv1.Console, fieldManager string, subreso
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ConsoleApplyConfiguration) WithKind(value string) *ConsoleApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *ConsoleApplyConfiguration) WithKind(value string) *ConsoleApplyConfigur
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ConsoleApplyConfiguration) WithAPIVersion(value string) *ConsoleApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *ConsoleApplyConfiguration) WithAPIVersion(value string) *ConsoleApplyCo
// If called multiple times, the Name field is set to the value of the last call.
func (b *ConsoleApplyConfiguration) WithName(value string) *ConsoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *ConsoleApplyConfiguration) WithName(value string) *ConsoleApplyConfigur
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ConsoleApplyConfiguration) WithGenerateName(value string) *ConsoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *ConsoleApplyConfiguration) WithGenerateName(value string) *ConsoleApply
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ConsoleApplyConfiguration) WithNamespace(value string) *ConsoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *ConsoleApplyConfiguration) WithNamespace(value string) *ConsoleApplyCon
// If called multiple times, the UID field is set to the value of the last call.
func (b *ConsoleApplyConfiguration) WithUID(value types.UID) *ConsoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *ConsoleApplyConfiguration) WithUID(value types.UID) *ConsoleApplyConfig
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ConsoleApplyConfiguration) WithResourceVersion(value string) *ConsoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *ConsoleApplyConfiguration) WithResourceVersion(value string) *ConsoleAp
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ConsoleApplyConfiguration) WithGeneration(value int64) *ConsoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *ConsoleApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ConsoleApplyConfiguration {
+func (b *ConsoleApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ConsoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *ConsoleApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ConsoleApplyConfiguration {
+func (b *ConsoleApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ConsoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *ConsoleApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *Co
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ConsoleApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ConsoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *ConsoleApplyConfiguration) WithDeletionGracePeriodSeconds(value int64)
// overwriting an existing map entries in Labels field with the same key.
func (b *ConsoleApplyConfiguration) WithLabels(entries map[string]string) *ConsoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *ConsoleApplyConfiguration) WithLabels(entries map[string]string) *Conso
// overwriting an existing map entries in Annotations field with the same key.
func (b *ConsoleApplyConfiguration) WithAnnotations(entries map[string]string) *ConsoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *ConsoleApplyConfiguration) WithAnnotations(entries map[string]string) *
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *ConsoleApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ConsoleApplyConfiguration {
+func (b *ConsoleApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ConsoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *ConsoleApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefer
func (b *ConsoleApplyConfiguration) WithFinalizers(values ...string) *ConsoleApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *ConsoleApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *ConsoleApplyConfiguration) WithStatus(value *ConsoleStatusApplyConfigur
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ConsoleApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/operator/applyconfigurations/operator/v1/consoleconfigroute.go b/operator/applyconfigurations/operator/v1/consoleconfigroute.go
index d8a9310f6..b71ac9f3a 100644
--- a/operator/applyconfigurations/operator/v1/consoleconfigroute.go
+++ b/operator/applyconfigurations/operator/v1/consoleconfigroute.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// ConsoleConfigRouteApplyConfiguration represents a declarative configuration of the ConsoleConfigRoute type for use
// with apply.
type ConsoleConfigRouteApplyConfiguration struct {
- Hostname *string `json:"hostname,omitempty"`
- Secret *v1.SecretNameReference `json:"secret,omitempty"`
+ Hostname *string `json:"hostname,omitempty"`
+ Secret *configv1.SecretNameReference `json:"secret,omitempty"`
}
// ConsoleConfigRouteApplyConfiguration constructs a declarative configuration of the ConsoleConfigRoute type for use with
@@ -30,7 +30,7 @@ func (b *ConsoleConfigRouteApplyConfiguration) WithHostname(value string) *Conso
// WithSecret sets the Secret field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Secret field is set to the value of the last call.
-func (b *ConsoleConfigRouteApplyConfiguration) WithSecret(value v1.SecretNameReference) *ConsoleConfigRouteApplyConfiguration {
+func (b *ConsoleConfigRouteApplyConfiguration) WithSecret(value configv1.SecretNameReference) *ConsoleConfigRouteApplyConfiguration {
b.Secret = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/consolespec.go b/operator/applyconfigurations/operator/v1/consolespec.go
index 421ff84e2..0155ffef3 100644
--- a/operator/applyconfigurations/operator/v1/consolespec.go
+++ b/operator/applyconfigurations/operator/v1/consolespec.go
@@ -28,7 +28,7 @@ func ConsoleSpec() *ConsoleSpecApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ManagementState field is set to the value of the last call.
func (b *ConsoleSpecApplyConfiguration) WithManagementState(value operatorv1.ManagementState) *ConsoleSpecApplyConfiguration {
- b.ManagementState = &value
+ b.OperatorSpecApplyConfiguration.ManagementState = &value
return b
}
@@ -36,7 +36,7 @@ func (b *ConsoleSpecApplyConfiguration) WithManagementState(value operatorv1.Man
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LogLevel field is set to the value of the last call.
func (b *ConsoleSpecApplyConfiguration) WithLogLevel(value operatorv1.LogLevel) *ConsoleSpecApplyConfiguration {
- b.LogLevel = &value
+ b.OperatorSpecApplyConfiguration.LogLevel = &value
return b
}
@@ -44,7 +44,7 @@ func (b *ConsoleSpecApplyConfiguration) WithLogLevel(value operatorv1.LogLevel)
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the OperatorLogLevel field is set to the value of the last call.
func (b *ConsoleSpecApplyConfiguration) WithOperatorLogLevel(value operatorv1.LogLevel) *ConsoleSpecApplyConfiguration {
- b.OperatorLogLevel = &value
+ b.OperatorSpecApplyConfiguration.OperatorLogLevel = &value
return b
}
@@ -52,7 +52,7 @@ func (b *ConsoleSpecApplyConfiguration) WithOperatorLogLevel(value operatorv1.Lo
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the UnsupportedConfigOverrides field is set to the value of the last call.
func (b *ConsoleSpecApplyConfiguration) WithUnsupportedConfigOverrides(value runtime.RawExtension) *ConsoleSpecApplyConfiguration {
- b.UnsupportedConfigOverrides = &value
+ b.OperatorSpecApplyConfiguration.UnsupportedConfigOverrides = &value
return b
}
@@ -60,7 +60,7 @@ func (b *ConsoleSpecApplyConfiguration) WithUnsupportedConfigOverrides(value run
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedConfig field is set to the value of the last call.
func (b *ConsoleSpecApplyConfiguration) WithObservedConfig(value runtime.RawExtension) *ConsoleSpecApplyConfiguration {
- b.ObservedConfig = &value
+ b.OperatorSpecApplyConfiguration.ObservedConfig = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/consolestatus.go b/operator/applyconfigurations/operator/v1/consolestatus.go
index c6330be35..ad3493477 100644
--- a/operator/applyconfigurations/operator/v1/consolestatus.go
+++ b/operator/applyconfigurations/operator/v1/consolestatus.go
@@ -18,7 +18,7 @@ func ConsoleStatus() *ConsoleStatusApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedGeneration field is set to the value of the last call.
func (b *ConsoleStatusApplyConfiguration) WithObservedGeneration(value int64) *ConsoleStatusApplyConfiguration {
- b.ObservedGeneration = &value
+ b.OperatorStatusApplyConfiguration.ObservedGeneration = &value
return b
}
@@ -30,7 +30,7 @@ func (b *ConsoleStatusApplyConfiguration) WithConditions(values ...*OperatorCond
if values[i] == nil {
panic("nil value passed to WithConditions")
}
- b.Conditions = append(b.Conditions, *values[i])
+ b.OperatorStatusApplyConfiguration.Conditions = append(b.OperatorStatusApplyConfiguration.Conditions, *values[i])
}
return b
}
@@ -39,7 +39,7 @@ func (b *ConsoleStatusApplyConfiguration) WithConditions(values ...*OperatorCond
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Version field is set to the value of the last call.
func (b *ConsoleStatusApplyConfiguration) WithVersion(value string) *ConsoleStatusApplyConfiguration {
- b.Version = &value
+ b.OperatorStatusApplyConfiguration.Version = &value
return b
}
@@ -47,7 +47,7 @@ func (b *ConsoleStatusApplyConfiguration) WithVersion(value string) *ConsoleStat
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ReadyReplicas field is set to the value of the last call.
func (b *ConsoleStatusApplyConfiguration) WithReadyReplicas(value int32) *ConsoleStatusApplyConfiguration {
- b.ReadyReplicas = &value
+ b.OperatorStatusApplyConfiguration.ReadyReplicas = &value
return b
}
@@ -55,7 +55,7 @@ func (b *ConsoleStatusApplyConfiguration) WithReadyReplicas(value int32) *Consol
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LatestAvailableRevision field is set to the value of the last call.
func (b *ConsoleStatusApplyConfiguration) WithLatestAvailableRevision(value int32) *ConsoleStatusApplyConfiguration {
- b.LatestAvailableRevision = &value
+ b.OperatorStatusApplyConfiguration.LatestAvailableRevision = &value
return b
}
@@ -67,7 +67,7 @@ func (b *ConsoleStatusApplyConfiguration) WithGenerations(values ...*GenerationS
if values[i] == nil {
panic("nil value passed to WithGenerations")
}
- b.Generations = append(b.Generations, *values[i])
+ b.OperatorStatusApplyConfiguration.Generations = append(b.OperatorStatusApplyConfiguration.Generations, *values[i])
}
return b
}
diff --git a/operator/applyconfigurations/operator/v1/csidriverconfigspec.go b/operator/applyconfigurations/operator/v1/csidriverconfigspec.go
index 887cf604e..15b793452 100644
--- a/operator/applyconfigurations/operator/v1/csidriverconfigspec.go
+++ b/operator/applyconfigurations/operator/v1/csidriverconfigspec.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// CSIDriverConfigSpecApplyConfiguration represents a declarative configuration of the CSIDriverConfigSpec type for use
// with apply.
type CSIDriverConfigSpecApplyConfiguration struct {
- DriverType *v1.CSIDriverType `json:"driverType,omitempty"`
+ DriverType *operatorv1.CSIDriverType `json:"driverType,omitempty"`
AWS *AWSCSIDriverConfigSpecApplyConfiguration `json:"aws,omitempty"`
Azure *AzureCSIDriverConfigSpecApplyConfiguration `json:"azure,omitempty"`
GCP *GCPCSIDriverConfigSpecApplyConfiguration `json:"gcp,omitempty"`
@@ -26,7 +26,7 @@ func CSIDriverConfigSpec() *CSIDriverConfigSpecApplyConfiguration {
// WithDriverType sets the DriverType field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DriverType field is set to the value of the last call.
-func (b *CSIDriverConfigSpecApplyConfiguration) WithDriverType(value v1.CSIDriverType) *CSIDriverConfigSpecApplyConfiguration {
+func (b *CSIDriverConfigSpecApplyConfiguration) WithDriverType(value operatorv1.CSIDriverType) *CSIDriverConfigSpecApplyConfiguration {
b.DriverType = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/csisnapshotcontroller.go b/operator/applyconfigurations/operator/v1/csisnapshotcontroller.go
index 035aee886..d9b93f620 100644
--- a/operator/applyconfigurations/operator/v1/csisnapshotcontroller.go
+++ b/operator/applyconfigurations/operator/v1/csisnapshotcontroller.go
@@ -3,21 +3,21 @@
package v1
import (
- apioperatorv1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
internal "github.com/openshift/client-go/operator/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// CSISnapshotControllerApplyConfiguration represents a declarative configuration of the CSISnapshotController type for use
// with apply.
type CSISnapshotControllerApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *CSISnapshotControllerSpecApplyConfiguration `json:"spec,omitempty"`
- Status *CSISnapshotControllerStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *CSISnapshotControllerSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *CSISnapshotControllerStatusApplyConfiguration `json:"status,omitempty"`
}
// CSISnapshotController constructs a declarative configuration of the CSISnapshotController type for use with
@@ -41,18 +41,18 @@ func CSISnapshotController(name string) *CSISnapshotControllerApplyConfiguration
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractCSISnapshotController(cSISnapshotController *apioperatorv1.CSISnapshotController, fieldManager string) (*CSISnapshotControllerApplyConfiguration, error) {
+func ExtractCSISnapshotController(cSISnapshotController *operatorv1.CSISnapshotController, fieldManager string) (*CSISnapshotControllerApplyConfiguration, error) {
return extractCSISnapshotController(cSISnapshotController, fieldManager, "")
}
// ExtractCSISnapshotControllerStatus is the same as ExtractCSISnapshotController except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractCSISnapshotControllerStatus(cSISnapshotController *apioperatorv1.CSISnapshotController, fieldManager string) (*CSISnapshotControllerApplyConfiguration, error) {
+func ExtractCSISnapshotControllerStatus(cSISnapshotController *operatorv1.CSISnapshotController, fieldManager string) (*CSISnapshotControllerApplyConfiguration, error) {
return extractCSISnapshotController(cSISnapshotController, fieldManager, "status")
}
-func extractCSISnapshotController(cSISnapshotController *apioperatorv1.CSISnapshotController, fieldManager string, subresource string) (*CSISnapshotControllerApplyConfiguration, error) {
+func extractCSISnapshotController(cSISnapshotController *operatorv1.CSISnapshotController, fieldManager string, subresource string) (*CSISnapshotControllerApplyConfiguration, error) {
b := &CSISnapshotControllerApplyConfiguration{}
err := managedfields.ExtractInto(cSISnapshotController, internal.Parser().Type("com.github.openshift.api.operator.v1.CSISnapshotController"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractCSISnapshotController(cSISnapshotController *apioperatorv1.CSISnapsh
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *CSISnapshotControllerApplyConfiguration) WithKind(value string) *CSISnapshotControllerApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *CSISnapshotControllerApplyConfiguration) WithKind(value string) *CSISna
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *CSISnapshotControllerApplyConfiguration) WithAPIVersion(value string) *CSISnapshotControllerApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *CSISnapshotControllerApplyConfiguration) WithAPIVersion(value string) *
// If called multiple times, the Name field is set to the value of the last call.
func (b *CSISnapshotControllerApplyConfiguration) WithName(value string) *CSISnapshotControllerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *CSISnapshotControllerApplyConfiguration) WithName(value string) *CSISna
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *CSISnapshotControllerApplyConfiguration) WithGenerateName(value string) *CSISnapshotControllerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *CSISnapshotControllerApplyConfiguration) WithGenerateName(value string)
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *CSISnapshotControllerApplyConfiguration) WithNamespace(value string) *CSISnapshotControllerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *CSISnapshotControllerApplyConfiguration) WithNamespace(value string) *C
// If called multiple times, the UID field is set to the value of the last call.
func (b *CSISnapshotControllerApplyConfiguration) WithUID(value types.UID) *CSISnapshotControllerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *CSISnapshotControllerApplyConfiguration) WithUID(value types.UID) *CSIS
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *CSISnapshotControllerApplyConfiguration) WithResourceVersion(value string) *CSISnapshotControllerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *CSISnapshotControllerApplyConfiguration) WithResourceVersion(value stri
// If called multiple times, the Generation field is set to the value of the last call.
func (b *CSISnapshotControllerApplyConfiguration) WithGeneration(value int64) *CSISnapshotControllerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *CSISnapshotControllerApplyConfiguration) WithCreationTimestamp(value metav1.Time) *CSISnapshotControllerApplyConfiguration {
+func (b *CSISnapshotControllerApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *CSISnapshotControllerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *CSISnapshotControllerApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *CSISnapshotControllerApplyConfiguration {
+func (b *CSISnapshotControllerApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *CSISnapshotControllerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *CSISnapshotControllerApplyConfiguration) WithDeletionTimestamp(value me
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *CSISnapshotControllerApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *CSISnapshotControllerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *CSISnapshotControllerApplyConfiguration) WithDeletionGracePeriodSeconds
// overwriting an existing map entries in Labels field with the same key.
func (b *CSISnapshotControllerApplyConfiguration) WithLabels(entries map[string]string) *CSISnapshotControllerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *CSISnapshotControllerApplyConfiguration) WithLabels(entries map[string]
// overwriting an existing map entries in Annotations field with the same key.
func (b *CSISnapshotControllerApplyConfiguration) WithAnnotations(entries map[string]string) *CSISnapshotControllerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *CSISnapshotControllerApplyConfiguration) WithAnnotations(entries map[st
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *CSISnapshotControllerApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *CSISnapshotControllerApplyConfiguration {
+func (b *CSISnapshotControllerApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *CSISnapshotControllerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *CSISnapshotControllerApplyConfiguration) WithOwnerReferences(values ...
func (b *CSISnapshotControllerApplyConfiguration) WithFinalizers(values ...string) *CSISnapshotControllerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *CSISnapshotControllerApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *CSISnapshotControllerApplyConfiguration) WithStatus(value *CSISnapshotC
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *CSISnapshotControllerApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/operator/applyconfigurations/operator/v1/csisnapshotcontrollerspec.go b/operator/applyconfigurations/operator/v1/csisnapshotcontrollerspec.go
index e614041cb..fd90faa2d 100644
--- a/operator/applyconfigurations/operator/v1/csisnapshotcontrollerspec.go
+++ b/operator/applyconfigurations/operator/v1/csisnapshotcontrollerspec.go
@@ -23,7 +23,7 @@ func CSISnapshotControllerSpec() *CSISnapshotControllerSpecApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ManagementState field is set to the value of the last call.
func (b *CSISnapshotControllerSpecApplyConfiguration) WithManagementState(value operatorv1.ManagementState) *CSISnapshotControllerSpecApplyConfiguration {
- b.ManagementState = &value
+ b.OperatorSpecApplyConfiguration.ManagementState = &value
return b
}
@@ -31,7 +31,7 @@ func (b *CSISnapshotControllerSpecApplyConfiguration) WithManagementState(value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LogLevel field is set to the value of the last call.
func (b *CSISnapshotControllerSpecApplyConfiguration) WithLogLevel(value operatorv1.LogLevel) *CSISnapshotControllerSpecApplyConfiguration {
- b.LogLevel = &value
+ b.OperatorSpecApplyConfiguration.LogLevel = &value
return b
}
@@ -39,7 +39,7 @@ func (b *CSISnapshotControllerSpecApplyConfiguration) WithLogLevel(value operato
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the OperatorLogLevel field is set to the value of the last call.
func (b *CSISnapshotControllerSpecApplyConfiguration) WithOperatorLogLevel(value operatorv1.LogLevel) *CSISnapshotControllerSpecApplyConfiguration {
- b.OperatorLogLevel = &value
+ b.OperatorSpecApplyConfiguration.OperatorLogLevel = &value
return b
}
@@ -47,7 +47,7 @@ func (b *CSISnapshotControllerSpecApplyConfiguration) WithOperatorLogLevel(value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the UnsupportedConfigOverrides field is set to the value of the last call.
func (b *CSISnapshotControllerSpecApplyConfiguration) WithUnsupportedConfigOverrides(value runtime.RawExtension) *CSISnapshotControllerSpecApplyConfiguration {
- b.UnsupportedConfigOverrides = &value
+ b.OperatorSpecApplyConfiguration.UnsupportedConfigOverrides = &value
return b
}
@@ -55,6 +55,6 @@ func (b *CSISnapshotControllerSpecApplyConfiguration) WithUnsupportedConfigOverr
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedConfig field is set to the value of the last call.
func (b *CSISnapshotControllerSpecApplyConfiguration) WithObservedConfig(value runtime.RawExtension) *CSISnapshotControllerSpecApplyConfiguration {
- b.ObservedConfig = &value
+ b.OperatorSpecApplyConfiguration.ObservedConfig = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/csisnapshotcontrollerstatus.go b/operator/applyconfigurations/operator/v1/csisnapshotcontrollerstatus.go
index d3fa5d05c..5b6d30d8d 100644
--- a/operator/applyconfigurations/operator/v1/csisnapshotcontrollerstatus.go
+++ b/operator/applyconfigurations/operator/v1/csisnapshotcontrollerstatus.go
@@ -18,7 +18,7 @@ func CSISnapshotControllerStatus() *CSISnapshotControllerStatusApplyConfiguratio
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedGeneration field is set to the value of the last call.
func (b *CSISnapshotControllerStatusApplyConfiguration) WithObservedGeneration(value int64) *CSISnapshotControllerStatusApplyConfiguration {
- b.ObservedGeneration = &value
+ b.OperatorStatusApplyConfiguration.ObservedGeneration = &value
return b
}
@@ -30,7 +30,7 @@ func (b *CSISnapshotControllerStatusApplyConfiguration) WithConditions(values ..
if values[i] == nil {
panic("nil value passed to WithConditions")
}
- b.Conditions = append(b.Conditions, *values[i])
+ b.OperatorStatusApplyConfiguration.Conditions = append(b.OperatorStatusApplyConfiguration.Conditions, *values[i])
}
return b
}
@@ -39,7 +39,7 @@ func (b *CSISnapshotControllerStatusApplyConfiguration) WithConditions(values ..
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Version field is set to the value of the last call.
func (b *CSISnapshotControllerStatusApplyConfiguration) WithVersion(value string) *CSISnapshotControllerStatusApplyConfiguration {
- b.Version = &value
+ b.OperatorStatusApplyConfiguration.Version = &value
return b
}
@@ -47,7 +47,7 @@ func (b *CSISnapshotControllerStatusApplyConfiguration) WithVersion(value string
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ReadyReplicas field is set to the value of the last call.
func (b *CSISnapshotControllerStatusApplyConfiguration) WithReadyReplicas(value int32) *CSISnapshotControllerStatusApplyConfiguration {
- b.ReadyReplicas = &value
+ b.OperatorStatusApplyConfiguration.ReadyReplicas = &value
return b
}
@@ -55,7 +55,7 @@ func (b *CSISnapshotControllerStatusApplyConfiguration) WithReadyReplicas(value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LatestAvailableRevision field is set to the value of the last call.
func (b *CSISnapshotControllerStatusApplyConfiguration) WithLatestAvailableRevision(value int32) *CSISnapshotControllerStatusApplyConfiguration {
- b.LatestAvailableRevision = &value
+ b.OperatorStatusApplyConfiguration.LatestAvailableRevision = &value
return b
}
@@ -67,7 +67,7 @@ func (b *CSISnapshotControllerStatusApplyConfiguration) WithGenerations(values .
if values[i] == nil {
panic("nil value passed to WithGenerations")
}
- b.Generations = append(b.Generations, *values[i])
+ b.OperatorStatusApplyConfiguration.Generations = append(b.OperatorStatusApplyConfiguration.Generations, *values[i])
}
return b
}
diff --git a/operator/applyconfigurations/operator/v1/defaultnetworkdefinition.go b/operator/applyconfigurations/operator/v1/defaultnetworkdefinition.go
index c8689ee18..b62419ac4 100644
--- a/operator/applyconfigurations/operator/v1/defaultnetworkdefinition.go
+++ b/operator/applyconfigurations/operator/v1/defaultnetworkdefinition.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// DefaultNetworkDefinitionApplyConfiguration represents a declarative configuration of the DefaultNetworkDefinition type for use
// with apply.
type DefaultNetworkDefinitionApplyConfiguration struct {
- Type *v1.NetworkType `json:"type,omitempty"`
+ Type *operatorv1.NetworkType `json:"type,omitempty"`
OpenShiftSDNConfig *OpenShiftSDNConfigApplyConfiguration `json:"openshiftSDNConfig,omitempty"`
OVNKubernetesConfig *OVNKubernetesConfigApplyConfiguration `json:"ovnKubernetesConfig,omitempty"`
}
@@ -23,7 +23,7 @@ func DefaultNetworkDefinition() *DefaultNetworkDefinitionApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *DefaultNetworkDefinitionApplyConfiguration) WithType(value v1.NetworkType) *DefaultNetworkDefinitionApplyConfiguration {
+func (b *DefaultNetworkDefinitionApplyConfiguration) WithType(value operatorv1.NetworkType) *DefaultNetworkDefinitionApplyConfiguration {
b.Type = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/developerconsolecatalogcategory.go b/operator/applyconfigurations/operator/v1/developerconsolecatalogcategory.go
index 3aa286ff1..2a296d731 100644
--- a/operator/applyconfigurations/operator/v1/developerconsolecatalogcategory.go
+++ b/operator/applyconfigurations/operator/v1/developerconsolecatalogcategory.go
@@ -19,7 +19,7 @@ func DeveloperConsoleCatalogCategory() *DeveloperConsoleCatalogCategoryApplyConf
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ID field is set to the value of the last call.
func (b *DeveloperConsoleCatalogCategoryApplyConfiguration) WithID(value string) *DeveloperConsoleCatalogCategoryApplyConfiguration {
- b.ID = &value
+ b.DeveloperConsoleCatalogCategoryMetaApplyConfiguration.ID = &value
return b
}
@@ -27,7 +27,7 @@ func (b *DeveloperConsoleCatalogCategoryApplyConfiguration) WithID(value string)
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Label field is set to the value of the last call.
func (b *DeveloperConsoleCatalogCategoryApplyConfiguration) WithLabel(value string) *DeveloperConsoleCatalogCategoryApplyConfiguration {
- b.Label = &value
+ b.DeveloperConsoleCatalogCategoryMetaApplyConfiguration.Label = &value
return b
}
@@ -36,7 +36,7 @@ func (b *DeveloperConsoleCatalogCategoryApplyConfiguration) WithLabel(value stri
// If called multiple times, values provided by each call will be appended to the Tags field.
func (b *DeveloperConsoleCatalogCategoryApplyConfiguration) WithTags(values ...string) *DeveloperConsoleCatalogCategoryApplyConfiguration {
for i := range values {
- b.Tags = append(b.Tags, values[i])
+ b.DeveloperConsoleCatalogCategoryMetaApplyConfiguration.Tags = append(b.DeveloperConsoleCatalogCategoryMetaApplyConfiguration.Tags, values[i])
}
return b
}
diff --git a/operator/applyconfigurations/operator/v1/developerconsolecatalogtypes.go b/operator/applyconfigurations/operator/v1/developerconsolecatalogtypes.go
index 439dafbf4..d847d2065 100644
--- a/operator/applyconfigurations/operator/v1/developerconsolecatalogtypes.go
+++ b/operator/applyconfigurations/operator/v1/developerconsolecatalogtypes.go
@@ -3,15 +3,15 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// DeveloperConsoleCatalogTypesApplyConfiguration represents a declarative configuration of the DeveloperConsoleCatalogTypes type for use
// with apply.
type DeveloperConsoleCatalogTypesApplyConfiguration struct {
- State *v1.CatalogTypesState `json:"state,omitempty"`
- Enabled *[]string `json:"enabled,omitempty"`
- Disabled *[]string `json:"disabled,omitempty"`
+ State *operatorv1.CatalogTypesState `json:"state,omitempty"`
+ Enabled *[]string `json:"enabled,omitempty"`
+ Disabled *[]string `json:"disabled,omitempty"`
}
// DeveloperConsoleCatalogTypesApplyConfiguration constructs a declarative configuration of the DeveloperConsoleCatalogTypes type for use with
@@ -23,7 +23,7 @@ func DeveloperConsoleCatalogTypes() *DeveloperConsoleCatalogTypesApplyConfigurat
// WithState sets the State field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the State field is set to the value of the last call.
-func (b *DeveloperConsoleCatalogTypesApplyConfiguration) WithState(value v1.CatalogTypesState) *DeveloperConsoleCatalogTypesApplyConfiguration {
+func (b *DeveloperConsoleCatalogTypesApplyConfiguration) WithState(value operatorv1.CatalogTypesState) *DeveloperConsoleCatalogTypesApplyConfiguration {
b.State = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/dns.go b/operator/applyconfigurations/operator/v1/dns.go
index 0e31c5af9..7b2cb3d36 100644
--- a/operator/applyconfigurations/operator/v1/dns.go
+++ b/operator/applyconfigurations/operator/v1/dns.go
@@ -3,21 +3,21 @@
package v1
import (
- apioperatorv1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
internal "github.com/openshift/client-go/operator/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// DNSApplyConfiguration represents a declarative configuration of the DNS type for use
// with apply.
type DNSApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *DNSSpecApplyConfiguration `json:"spec,omitempty"`
- Status *DNSStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *DNSSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *DNSStatusApplyConfiguration `json:"status,omitempty"`
}
// DNS constructs a declarative configuration of the DNS type for use with
@@ -41,18 +41,18 @@ func DNS(name string) *DNSApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractDNS(dNS *apioperatorv1.DNS, fieldManager string) (*DNSApplyConfiguration, error) {
+func ExtractDNS(dNS *operatorv1.DNS, fieldManager string) (*DNSApplyConfiguration, error) {
return extractDNS(dNS, fieldManager, "")
}
// ExtractDNSStatus is the same as ExtractDNS except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractDNSStatus(dNS *apioperatorv1.DNS, fieldManager string) (*DNSApplyConfiguration, error) {
+func ExtractDNSStatus(dNS *operatorv1.DNS, fieldManager string) (*DNSApplyConfiguration, error) {
return extractDNS(dNS, fieldManager, "status")
}
-func extractDNS(dNS *apioperatorv1.DNS, fieldManager string, subresource string) (*DNSApplyConfiguration, error) {
+func extractDNS(dNS *operatorv1.DNS, fieldManager string, subresource string) (*DNSApplyConfiguration, error) {
b := &DNSApplyConfiguration{}
err := managedfields.ExtractInto(dNS, internal.Parser().Type("com.github.openshift.api.operator.v1.DNS"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractDNS(dNS *apioperatorv1.DNS, fieldManager string, subresource string)
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *DNSApplyConfiguration) WithKind(value string) *DNSApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *DNSApplyConfiguration) WithKind(value string) *DNSApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *DNSApplyConfiguration) WithAPIVersion(value string) *DNSApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *DNSApplyConfiguration) WithAPIVersion(value string) *DNSApplyConfigurat
// If called multiple times, the Name field is set to the value of the last call.
func (b *DNSApplyConfiguration) WithName(value string) *DNSApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *DNSApplyConfiguration) WithName(value string) *DNSApplyConfiguration {
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *DNSApplyConfiguration) WithGenerateName(value string) *DNSApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *DNSApplyConfiguration) WithGenerateName(value string) *DNSApplyConfigur
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *DNSApplyConfiguration) WithNamespace(value string) *DNSApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *DNSApplyConfiguration) WithNamespace(value string) *DNSApplyConfigurati
// If called multiple times, the UID field is set to the value of the last call.
func (b *DNSApplyConfiguration) WithUID(value types.UID) *DNSApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *DNSApplyConfiguration) WithUID(value types.UID) *DNSApplyConfiguration
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *DNSApplyConfiguration) WithResourceVersion(value string) *DNSApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *DNSApplyConfiguration) WithResourceVersion(value string) *DNSApplyConfi
// If called multiple times, the Generation field is set to the value of the last call.
func (b *DNSApplyConfiguration) WithGeneration(value int64) *DNSApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *DNSApplyConfiguration) WithCreationTimestamp(value metav1.Time) *DNSApplyConfiguration {
+func (b *DNSApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *DNSApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *DNSApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *DNSApplyConfiguration {
+func (b *DNSApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *DNSApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *DNSApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *DNSApp
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *DNSApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *DNSApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *DNSApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *DNS
// overwriting an existing map entries in Labels field with the same key.
func (b *DNSApplyConfiguration) WithLabels(entries map[string]string) *DNSApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *DNSApplyConfiguration) WithLabels(entries map[string]string) *DNSApplyC
// overwriting an existing map entries in Annotations field with the same key.
func (b *DNSApplyConfiguration) WithAnnotations(entries map[string]string) *DNSApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *DNSApplyConfiguration) WithAnnotations(entries map[string]string) *DNSA
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *DNSApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *DNSApplyConfiguration {
+func (b *DNSApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *DNSApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *DNSApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReference
func (b *DNSApplyConfiguration) WithFinalizers(values ...string) *DNSApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *DNSApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *DNSApplyConfiguration) WithStatus(value *DNSStatusApplyConfiguration) *
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *DNSApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/operator/applyconfigurations/operator/v1/dnscache.go b/operator/applyconfigurations/operator/v1/dnscache.go
index 4a387f634..09244ed90 100644
--- a/operator/applyconfigurations/operator/v1/dnscache.go
+++ b/operator/applyconfigurations/operator/v1/dnscache.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// DNSCacheApplyConfiguration represents a declarative configuration of the DNSCache type for use
// with apply.
type DNSCacheApplyConfiguration struct {
- PositiveTTL *v1.Duration `json:"positiveTTL,omitempty"`
- NegativeTTL *v1.Duration `json:"negativeTTL,omitempty"`
+ PositiveTTL *metav1.Duration `json:"positiveTTL,omitempty"`
+ NegativeTTL *metav1.Duration `json:"negativeTTL,omitempty"`
}
// DNSCacheApplyConfiguration constructs a declarative configuration of the DNSCache type for use with
@@ -22,7 +22,7 @@ func DNSCache() *DNSCacheApplyConfiguration {
// WithPositiveTTL sets the PositiveTTL field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the PositiveTTL field is set to the value of the last call.
-func (b *DNSCacheApplyConfiguration) WithPositiveTTL(value v1.Duration) *DNSCacheApplyConfiguration {
+func (b *DNSCacheApplyConfiguration) WithPositiveTTL(value metav1.Duration) *DNSCacheApplyConfiguration {
b.PositiveTTL = &value
return b
}
@@ -30,7 +30,7 @@ func (b *DNSCacheApplyConfiguration) WithPositiveTTL(value v1.Duration) *DNSCach
// WithNegativeTTL sets the NegativeTTL field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the NegativeTTL field is set to the value of the last call.
-func (b *DNSCacheApplyConfiguration) WithNegativeTTL(value v1.Duration) *DNSCacheApplyConfiguration {
+func (b *DNSCacheApplyConfiguration) WithNegativeTTL(value metav1.Duration) *DNSCacheApplyConfiguration {
b.NegativeTTL = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/dnsnodeplacement.go b/operator/applyconfigurations/operator/v1/dnsnodeplacement.go
index 1c941d66e..b82c86dd3 100644
--- a/operator/applyconfigurations/operator/v1/dnsnodeplacement.go
+++ b/operator/applyconfigurations/operator/v1/dnsnodeplacement.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "k8s.io/api/core/v1"
+ corev1 "k8s.io/api/core/v1"
)
// DNSNodePlacementApplyConfiguration represents a declarative configuration of the DNSNodePlacement type for use
// with apply.
type DNSNodePlacementApplyConfiguration struct {
- NodeSelector map[string]string `json:"nodeSelector,omitempty"`
- Tolerations []v1.Toleration `json:"tolerations,omitempty"`
+ NodeSelector map[string]string `json:"nodeSelector,omitempty"`
+ Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
}
// DNSNodePlacementApplyConfiguration constructs a declarative configuration of the DNSNodePlacement type for use with
@@ -36,7 +36,7 @@ func (b *DNSNodePlacementApplyConfiguration) WithNodeSelector(entries map[string
// WithTolerations adds the given value to the Tolerations field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Tolerations field.
-func (b *DNSNodePlacementApplyConfiguration) WithTolerations(values ...v1.Toleration) *DNSNodePlacementApplyConfiguration {
+func (b *DNSNodePlacementApplyConfiguration) WithTolerations(values ...corev1.Toleration) *DNSNodePlacementApplyConfiguration {
for i := range values {
b.Tolerations = append(b.Tolerations, values[i])
}
diff --git a/operator/applyconfigurations/operator/v1/dnsovertlsconfig.go b/operator/applyconfigurations/operator/v1/dnsovertlsconfig.go
index 7e6ff33d6..7267bca62 100644
--- a/operator/applyconfigurations/operator/v1/dnsovertlsconfig.go
+++ b/operator/applyconfigurations/operator/v1/dnsovertlsconfig.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
+ configv1 "github.com/openshift/api/config/v1"
)
// DNSOverTLSConfigApplyConfiguration represents a declarative configuration of the DNSOverTLSConfig type for use
// with apply.
type DNSOverTLSConfigApplyConfiguration struct {
- ServerName *string `json:"serverName,omitempty"`
- CABundle *v1.ConfigMapNameReference `json:"caBundle,omitempty"`
+ ServerName *string `json:"serverName,omitempty"`
+ CABundle *configv1.ConfigMapNameReference `json:"caBundle,omitempty"`
}
// DNSOverTLSConfigApplyConfiguration constructs a declarative configuration of the DNSOverTLSConfig type for use with
@@ -30,7 +30,7 @@ func (b *DNSOverTLSConfigApplyConfiguration) WithServerName(value string) *DNSOv
// WithCABundle sets the CABundle field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CABundle field is set to the value of the last call.
-func (b *DNSOverTLSConfigApplyConfiguration) WithCABundle(value v1.ConfigMapNameReference) *DNSOverTLSConfigApplyConfiguration {
+func (b *DNSOverTLSConfigApplyConfiguration) WithCABundle(value configv1.ConfigMapNameReference) *DNSOverTLSConfigApplyConfiguration {
b.CABundle = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/dnstransportconfig.go b/operator/applyconfigurations/operator/v1/dnstransportconfig.go
index 52bc39563..1b689670c 100644
--- a/operator/applyconfigurations/operator/v1/dnstransportconfig.go
+++ b/operator/applyconfigurations/operator/v1/dnstransportconfig.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// DNSTransportConfigApplyConfiguration represents a declarative configuration of the DNSTransportConfig type for use
// with apply.
type DNSTransportConfigApplyConfiguration struct {
- Transport *v1.DNSTransport `json:"transport,omitempty"`
+ Transport *operatorv1.DNSTransport `json:"transport,omitempty"`
TLS *DNSOverTLSConfigApplyConfiguration `json:"tls,omitempty"`
}
@@ -22,7 +22,7 @@ func DNSTransportConfig() *DNSTransportConfigApplyConfiguration {
// WithTransport sets the Transport field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Transport field is set to the value of the last call.
-func (b *DNSTransportConfigApplyConfiguration) WithTransport(value v1.DNSTransport) *DNSTransportConfigApplyConfiguration {
+func (b *DNSTransportConfigApplyConfiguration) WithTransport(value operatorv1.DNSTransport) *DNSTransportConfigApplyConfiguration {
b.Transport = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/endpointpublishingstrategy.go b/operator/applyconfigurations/operator/v1/endpointpublishingstrategy.go
index 876f91e97..f4006d50c 100644
--- a/operator/applyconfigurations/operator/v1/endpointpublishingstrategy.go
+++ b/operator/applyconfigurations/operator/v1/endpointpublishingstrategy.go
@@ -3,17 +3,17 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// EndpointPublishingStrategyApplyConfiguration represents a declarative configuration of the EndpointPublishingStrategy type for use
// with apply.
type EndpointPublishingStrategyApplyConfiguration struct {
- Type *v1.EndpointPublishingStrategyType `json:"type,omitempty"`
- LoadBalancer *LoadBalancerStrategyApplyConfiguration `json:"loadBalancer,omitempty"`
- HostNetwork *HostNetworkStrategyApplyConfiguration `json:"hostNetwork,omitempty"`
- Private *PrivateStrategyApplyConfiguration `json:"private,omitempty"`
- NodePort *NodePortStrategyApplyConfiguration `json:"nodePort,omitempty"`
+ Type *operatorv1.EndpointPublishingStrategyType `json:"type,omitempty"`
+ LoadBalancer *LoadBalancerStrategyApplyConfiguration `json:"loadBalancer,omitempty"`
+ HostNetwork *HostNetworkStrategyApplyConfiguration `json:"hostNetwork,omitempty"`
+ Private *PrivateStrategyApplyConfiguration `json:"private,omitempty"`
+ NodePort *NodePortStrategyApplyConfiguration `json:"nodePort,omitempty"`
}
// EndpointPublishingStrategyApplyConfiguration constructs a declarative configuration of the EndpointPublishingStrategy type for use with
@@ -25,7 +25,7 @@ func EndpointPublishingStrategy() *EndpointPublishingStrategyApplyConfiguration
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *EndpointPublishingStrategyApplyConfiguration) WithType(value v1.EndpointPublishingStrategyType) *EndpointPublishingStrategyApplyConfiguration {
+func (b *EndpointPublishingStrategyApplyConfiguration) WithType(value operatorv1.EndpointPublishingStrategyType) *EndpointPublishingStrategyApplyConfiguration {
b.Type = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/etcd.go b/operator/applyconfigurations/operator/v1/etcd.go
index bf091f4e6..de118401e 100644
--- a/operator/applyconfigurations/operator/v1/etcd.go
+++ b/operator/applyconfigurations/operator/v1/etcd.go
@@ -3,21 +3,21 @@
package v1
import (
- apioperatorv1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
internal "github.com/openshift/client-go/operator/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// EtcdApplyConfiguration represents a declarative configuration of the Etcd type for use
// with apply.
type EtcdApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *EtcdSpecApplyConfiguration `json:"spec,omitempty"`
- Status *EtcdStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *EtcdSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *EtcdStatusApplyConfiguration `json:"status,omitempty"`
}
// Etcd constructs a declarative configuration of the Etcd type for use with
@@ -41,18 +41,18 @@ func Etcd(name string) *EtcdApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractEtcd(etcd *apioperatorv1.Etcd, fieldManager string) (*EtcdApplyConfiguration, error) {
+func ExtractEtcd(etcd *operatorv1.Etcd, fieldManager string) (*EtcdApplyConfiguration, error) {
return extractEtcd(etcd, fieldManager, "")
}
// ExtractEtcdStatus is the same as ExtractEtcd except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractEtcdStatus(etcd *apioperatorv1.Etcd, fieldManager string) (*EtcdApplyConfiguration, error) {
+func ExtractEtcdStatus(etcd *operatorv1.Etcd, fieldManager string) (*EtcdApplyConfiguration, error) {
return extractEtcd(etcd, fieldManager, "status")
}
-func extractEtcd(etcd *apioperatorv1.Etcd, fieldManager string, subresource string) (*EtcdApplyConfiguration, error) {
+func extractEtcd(etcd *operatorv1.Etcd, fieldManager string, subresource string) (*EtcdApplyConfiguration, error) {
b := &EtcdApplyConfiguration{}
err := managedfields.ExtractInto(etcd, internal.Parser().Type("com.github.openshift.api.operator.v1.Etcd"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractEtcd(etcd *apioperatorv1.Etcd, fieldManager string, subresource stri
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *EtcdApplyConfiguration) WithKind(value string) *EtcdApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *EtcdApplyConfiguration) WithKind(value string) *EtcdApplyConfiguration
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *EtcdApplyConfiguration) WithAPIVersion(value string) *EtcdApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *EtcdApplyConfiguration) WithAPIVersion(value string) *EtcdApplyConfigur
// If called multiple times, the Name field is set to the value of the last call.
func (b *EtcdApplyConfiguration) WithName(value string) *EtcdApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *EtcdApplyConfiguration) WithName(value string) *EtcdApplyConfiguration
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *EtcdApplyConfiguration) WithGenerateName(value string) *EtcdApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *EtcdApplyConfiguration) WithGenerateName(value string) *EtcdApplyConfig
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *EtcdApplyConfiguration) WithNamespace(value string) *EtcdApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *EtcdApplyConfiguration) WithNamespace(value string) *EtcdApplyConfigura
// If called multiple times, the UID field is set to the value of the last call.
func (b *EtcdApplyConfiguration) WithUID(value types.UID) *EtcdApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *EtcdApplyConfiguration) WithUID(value types.UID) *EtcdApplyConfiguratio
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *EtcdApplyConfiguration) WithResourceVersion(value string) *EtcdApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *EtcdApplyConfiguration) WithResourceVersion(value string) *EtcdApplyCon
// If called multiple times, the Generation field is set to the value of the last call.
func (b *EtcdApplyConfiguration) WithGeneration(value int64) *EtcdApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *EtcdApplyConfiguration) WithCreationTimestamp(value metav1.Time) *EtcdApplyConfiguration {
+func (b *EtcdApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *EtcdApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *EtcdApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *EtcdApplyConfiguration {
+func (b *EtcdApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *EtcdApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *EtcdApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *EtcdA
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *EtcdApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *EtcdApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *EtcdApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *Et
// overwriting an existing map entries in Labels field with the same key.
func (b *EtcdApplyConfiguration) WithLabels(entries map[string]string) *EtcdApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *EtcdApplyConfiguration) WithLabels(entries map[string]string) *EtcdAppl
// overwriting an existing map entries in Annotations field with the same key.
func (b *EtcdApplyConfiguration) WithAnnotations(entries map[string]string) *EtcdApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *EtcdApplyConfiguration) WithAnnotations(entries map[string]string) *Etc
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *EtcdApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *EtcdApplyConfiguration {
+func (b *EtcdApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *EtcdApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *EtcdApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenc
func (b *EtcdApplyConfiguration) WithFinalizers(values ...string) *EtcdApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *EtcdApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *EtcdApplyConfiguration) WithStatus(value *EtcdStatusApplyConfiguration)
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *EtcdApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/operator/applyconfigurations/operator/v1/etcdspec.go b/operator/applyconfigurations/operator/v1/etcdspec.go
index 49a3055c2..6588c0922 100644
--- a/operator/applyconfigurations/operator/v1/etcdspec.go
+++ b/operator/applyconfigurations/operator/v1/etcdspec.go
@@ -25,7 +25,7 @@ func EtcdSpec() *EtcdSpecApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ManagementState field is set to the value of the last call.
func (b *EtcdSpecApplyConfiguration) WithManagementState(value operatorv1.ManagementState) *EtcdSpecApplyConfiguration {
- b.ManagementState = &value
+ b.OperatorSpecApplyConfiguration.ManagementState = &value
return b
}
@@ -33,7 +33,7 @@ func (b *EtcdSpecApplyConfiguration) WithManagementState(value operatorv1.Manage
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LogLevel field is set to the value of the last call.
func (b *EtcdSpecApplyConfiguration) WithLogLevel(value operatorv1.LogLevel) *EtcdSpecApplyConfiguration {
- b.LogLevel = &value
+ b.OperatorSpecApplyConfiguration.LogLevel = &value
return b
}
@@ -41,7 +41,7 @@ func (b *EtcdSpecApplyConfiguration) WithLogLevel(value operatorv1.LogLevel) *Et
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the OperatorLogLevel field is set to the value of the last call.
func (b *EtcdSpecApplyConfiguration) WithOperatorLogLevel(value operatorv1.LogLevel) *EtcdSpecApplyConfiguration {
- b.OperatorLogLevel = &value
+ b.OperatorSpecApplyConfiguration.OperatorLogLevel = &value
return b
}
@@ -49,7 +49,7 @@ func (b *EtcdSpecApplyConfiguration) WithOperatorLogLevel(value operatorv1.LogLe
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the UnsupportedConfigOverrides field is set to the value of the last call.
func (b *EtcdSpecApplyConfiguration) WithUnsupportedConfigOverrides(value runtime.RawExtension) *EtcdSpecApplyConfiguration {
- b.UnsupportedConfigOverrides = &value
+ b.OperatorSpecApplyConfiguration.UnsupportedConfigOverrides = &value
return b
}
@@ -57,7 +57,7 @@ func (b *EtcdSpecApplyConfiguration) WithUnsupportedConfigOverrides(value runtim
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedConfig field is set to the value of the last call.
func (b *EtcdSpecApplyConfiguration) WithObservedConfig(value runtime.RawExtension) *EtcdSpecApplyConfiguration {
- b.ObservedConfig = &value
+ b.OperatorSpecApplyConfiguration.ObservedConfig = &value
return b
}
@@ -65,7 +65,7 @@ func (b *EtcdSpecApplyConfiguration) WithObservedConfig(value runtime.RawExtensi
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ForceRedeploymentReason field is set to the value of the last call.
func (b *EtcdSpecApplyConfiguration) WithForceRedeploymentReason(value string) *EtcdSpecApplyConfiguration {
- b.ForceRedeploymentReason = &value
+ b.StaticPodOperatorSpecApplyConfiguration.ForceRedeploymentReason = &value
return b
}
@@ -73,7 +73,7 @@ func (b *EtcdSpecApplyConfiguration) WithForceRedeploymentReason(value string) *
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the FailedRevisionLimit field is set to the value of the last call.
func (b *EtcdSpecApplyConfiguration) WithFailedRevisionLimit(value int32) *EtcdSpecApplyConfiguration {
- b.FailedRevisionLimit = &value
+ b.StaticPodOperatorSpecApplyConfiguration.FailedRevisionLimit = &value
return b
}
@@ -81,7 +81,7 @@ func (b *EtcdSpecApplyConfiguration) WithFailedRevisionLimit(value int32) *EtcdS
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the SucceededRevisionLimit field is set to the value of the last call.
func (b *EtcdSpecApplyConfiguration) WithSucceededRevisionLimit(value int32) *EtcdSpecApplyConfiguration {
- b.SucceededRevisionLimit = &value
+ b.StaticPodOperatorSpecApplyConfiguration.SucceededRevisionLimit = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/etcdstatus.go b/operator/applyconfigurations/operator/v1/etcdstatus.go
index 7d545a900..a6fa6f07d 100644
--- a/operator/applyconfigurations/operator/v1/etcdstatus.go
+++ b/operator/applyconfigurations/operator/v1/etcdstatus.go
@@ -23,7 +23,7 @@ func EtcdStatus() *EtcdStatusApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedGeneration field is set to the value of the last call.
func (b *EtcdStatusApplyConfiguration) WithObservedGeneration(value int64) *EtcdStatusApplyConfiguration {
- b.ObservedGeneration = &value
+ b.OperatorStatusApplyConfiguration.ObservedGeneration = &value
return b
}
@@ -35,7 +35,7 @@ func (b *EtcdStatusApplyConfiguration) WithConditions(values ...*OperatorConditi
if values[i] == nil {
panic("nil value passed to WithConditions")
}
- b.Conditions = append(b.Conditions, *values[i])
+ b.OperatorStatusApplyConfiguration.Conditions = append(b.OperatorStatusApplyConfiguration.Conditions, *values[i])
}
return b
}
@@ -44,7 +44,7 @@ func (b *EtcdStatusApplyConfiguration) WithConditions(values ...*OperatorConditi
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Version field is set to the value of the last call.
func (b *EtcdStatusApplyConfiguration) WithVersion(value string) *EtcdStatusApplyConfiguration {
- b.Version = &value
+ b.OperatorStatusApplyConfiguration.Version = &value
return b
}
@@ -52,7 +52,7 @@ func (b *EtcdStatusApplyConfiguration) WithVersion(value string) *EtcdStatusAppl
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ReadyReplicas field is set to the value of the last call.
func (b *EtcdStatusApplyConfiguration) WithReadyReplicas(value int32) *EtcdStatusApplyConfiguration {
- b.ReadyReplicas = &value
+ b.OperatorStatusApplyConfiguration.ReadyReplicas = &value
return b
}
@@ -60,7 +60,7 @@ func (b *EtcdStatusApplyConfiguration) WithReadyReplicas(value int32) *EtcdStatu
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LatestAvailableRevision field is set to the value of the last call.
func (b *EtcdStatusApplyConfiguration) WithLatestAvailableRevision(value int32) *EtcdStatusApplyConfiguration {
- b.LatestAvailableRevision = &value
+ b.OperatorStatusApplyConfiguration.LatestAvailableRevision = &value
return b
}
@@ -72,7 +72,7 @@ func (b *EtcdStatusApplyConfiguration) WithGenerations(values ...*GenerationStat
if values[i] == nil {
panic("nil value passed to WithGenerations")
}
- b.Generations = append(b.Generations, *values[i])
+ b.OperatorStatusApplyConfiguration.Generations = append(b.OperatorStatusApplyConfiguration.Generations, *values[i])
}
return b
}
@@ -81,7 +81,7 @@ func (b *EtcdStatusApplyConfiguration) WithGenerations(values ...*GenerationStat
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LatestAvailableRevisionReason field is set to the value of the last call.
func (b *EtcdStatusApplyConfiguration) WithLatestAvailableRevisionReason(value string) *EtcdStatusApplyConfiguration {
- b.LatestAvailableRevisionReason = &value
+ b.StaticPodOperatorStatusApplyConfiguration.LatestAvailableRevisionReason = &value
return b
}
@@ -93,7 +93,7 @@ func (b *EtcdStatusApplyConfiguration) WithNodeStatuses(values ...*NodeStatusApp
if values[i] == nil {
panic("nil value passed to WithNodeStatuses")
}
- b.NodeStatuses = append(b.NodeStatuses, *values[i])
+ b.StaticPodOperatorStatusApplyConfiguration.NodeStatuses = append(b.StaticPodOperatorStatusApplyConfiguration.NodeStatuses, *values[i])
}
return b
}
diff --git a/operator/applyconfigurations/operator/v1/forwardplugin.go b/operator/applyconfigurations/operator/v1/forwardplugin.go
index d6c8d3bbc..5d0112b46 100644
--- a/operator/applyconfigurations/operator/v1/forwardplugin.go
+++ b/operator/applyconfigurations/operator/v1/forwardplugin.go
@@ -3,16 +3,16 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// ForwardPluginApplyConfiguration represents a declarative configuration of the ForwardPlugin type for use
// with apply.
type ForwardPluginApplyConfiguration struct {
Upstreams []string `json:"upstreams,omitempty"`
- Policy *v1.ForwardingPolicy `json:"policy,omitempty"`
+ Policy *operatorv1.ForwardingPolicy `json:"policy,omitempty"`
TransportConfig *DNSTransportConfigApplyConfiguration `json:"transportConfig,omitempty"`
- ProtocolStrategy *v1.ProtocolStrategy `json:"protocolStrategy,omitempty"`
+ ProtocolStrategy *operatorv1.ProtocolStrategy `json:"protocolStrategy,omitempty"`
}
// ForwardPluginApplyConfiguration constructs a declarative configuration of the ForwardPlugin type for use with
@@ -34,7 +34,7 @@ func (b *ForwardPluginApplyConfiguration) WithUpstreams(values ...string) *Forwa
// WithPolicy sets the Policy field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Policy field is set to the value of the last call.
-func (b *ForwardPluginApplyConfiguration) WithPolicy(value v1.ForwardingPolicy) *ForwardPluginApplyConfiguration {
+func (b *ForwardPluginApplyConfiguration) WithPolicy(value operatorv1.ForwardingPolicy) *ForwardPluginApplyConfiguration {
b.Policy = &value
return b
}
@@ -50,7 +50,7 @@ func (b *ForwardPluginApplyConfiguration) WithTransportConfig(value *DNSTranspor
// WithProtocolStrategy sets the ProtocolStrategy field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ProtocolStrategy field is set to the value of the last call.
-func (b *ForwardPluginApplyConfiguration) WithProtocolStrategy(value v1.ProtocolStrategy) *ForwardPluginApplyConfiguration {
+func (b *ForwardPluginApplyConfiguration) WithProtocolStrategy(value operatorv1.ProtocolStrategy) *ForwardPluginApplyConfiguration {
b.ProtocolStrategy = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/gatewayconfig.go b/operator/applyconfigurations/operator/v1/gatewayconfig.go
index 54fe27431..a18f0400c 100644
--- a/operator/applyconfigurations/operator/v1/gatewayconfig.go
+++ b/operator/applyconfigurations/operator/v1/gatewayconfig.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// GatewayConfigApplyConfiguration represents a declarative configuration of the GatewayConfig type for use
// with apply.
type GatewayConfigApplyConfiguration struct {
RoutingViaHost *bool `json:"routingViaHost,omitempty"`
- IPForwarding *v1.IPForwardingMode `json:"ipForwarding,omitempty"`
+ IPForwarding *operatorv1.IPForwardingMode `json:"ipForwarding,omitempty"`
IPv4 *IPv4GatewayConfigApplyConfiguration `json:"ipv4,omitempty"`
IPv6 *IPv6GatewayConfigApplyConfiguration `json:"ipv6,omitempty"`
}
@@ -32,7 +32,7 @@ func (b *GatewayConfigApplyConfiguration) WithRoutingViaHost(value bool) *Gatewa
// WithIPForwarding sets the IPForwarding field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the IPForwarding field is set to the value of the last call.
-func (b *GatewayConfigApplyConfiguration) WithIPForwarding(value v1.IPForwardingMode) *GatewayConfigApplyConfiguration {
+func (b *GatewayConfigApplyConfiguration) WithIPForwarding(value operatorv1.IPForwardingMode) *GatewayConfigApplyConfiguration {
b.IPForwarding = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/gathererstatus.go b/operator/applyconfigurations/operator/v1/gathererstatus.go
index a0d62445e..b2fd36c26 100644
--- a/operator/applyconfigurations/operator/v1/gathererstatus.go
+++ b/operator/applyconfigurations/operator/v1/gathererstatus.go
@@ -3,16 +3,16 @@
package v1
import (
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// GathererStatusApplyConfiguration represents a declarative configuration of the GathererStatus type for use
// with apply.
type GathererStatusApplyConfiguration struct {
- Conditions []v1.ConditionApplyConfiguration `json:"conditions,omitempty"`
- Name *string `json:"name,omitempty"`
- LastGatherDuration *metav1.Duration `json:"lastGatherDuration,omitempty"`
+ Conditions []metav1.ConditionApplyConfiguration `json:"conditions,omitempty"`
+ Name *string `json:"name,omitempty"`
+ LastGatherDuration *apismetav1.Duration `json:"lastGatherDuration,omitempty"`
}
// GathererStatusApplyConfiguration constructs a declarative configuration of the GathererStatus type for use with
@@ -24,7 +24,7 @@ func GathererStatus() *GathererStatusApplyConfiguration {
// WithConditions adds the given value to the Conditions field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Conditions field.
-func (b *GathererStatusApplyConfiguration) WithConditions(values ...*v1.ConditionApplyConfiguration) *GathererStatusApplyConfiguration {
+func (b *GathererStatusApplyConfiguration) WithConditions(values ...*metav1.ConditionApplyConfiguration) *GathererStatusApplyConfiguration {
for i := range values {
if values[i] == nil {
panic("nil value passed to WithConditions")
@@ -45,7 +45,7 @@ func (b *GathererStatusApplyConfiguration) WithName(value string) *GathererStatu
// WithLastGatherDuration sets the LastGatherDuration field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LastGatherDuration field is set to the value of the last call.
-func (b *GathererStatusApplyConfiguration) WithLastGatherDuration(value metav1.Duration) *GathererStatusApplyConfiguration {
+func (b *GathererStatusApplyConfiguration) WithLastGatherDuration(value apismetav1.Duration) *GathererStatusApplyConfiguration {
b.LastGatherDuration = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/gatherstatus.go b/operator/applyconfigurations/operator/v1/gatherstatus.go
index 413967546..e2601419a 100644
--- a/operator/applyconfigurations/operator/v1/gatherstatus.go
+++ b/operator/applyconfigurations/operator/v1/gatherstatus.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// GatherStatusApplyConfiguration represents a declarative configuration of the GatherStatus type for use
// with apply.
type GatherStatusApplyConfiguration struct {
- LastGatherTime *v1.Time `json:"lastGatherTime,omitempty"`
- LastGatherDuration *v1.Duration `json:"lastGatherDuration,omitempty"`
+ LastGatherTime *metav1.Time `json:"lastGatherTime,omitempty"`
+ LastGatherDuration *metav1.Duration `json:"lastGatherDuration,omitempty"`
Gatherers []GathererStatusApplyConfiguration `json:"gatherers,omitempty"`
}
@@ -23,7 +23,7 @@ func GatherStatus() *GatherStatusApplyConfiguration {
// WithLastGatherTime sets the LastGatherTime field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LastGatherTime field is set to the value of the last call.
-func (b *GatherStatusApplyConfiguration) WithLastGatherTime(value v1.Time) *GatherStatusApplyConfiguration {
+func (b *GatherStatusApplyConfiguration) WithLastGatherTime(value metav1.Time) *GatherStatusApplyConfiguration {
b.LastGatherTime = &value
return b
}
@@ -31,7 +31,7 @@ func (b *GatherStatusApplyConfiguration) WithLastGatherTime(value v1.Time) *Gath
// WithLastGatherDuration sets the LastGatherDuration field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LastGatherDuration field is set to the value of the last call.
-func (b *GatherStatusApplyConfiguration) WithLastGatherDuration(value v1.Duration) *GatherStatusApplyConfiguration {
+func (b *GatherStatusApplyConfiguration) WithLastGatherDuration(value metav1.Duration) *GatherStatusApplyConfiguration {
b.LastGatherDuration = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/gcploadbalancerparameters.go b/operator/applyconfigurations/operator/v1/gcploadbalancerparameters.go
index a5e0306c4..dbb621720 100644
--- a/operator/applyconfigurations/operator/v1/gcploadbalancerparameters.go
+++ b/operator/applyconfigurations/operator/v1/gcploadbalancerparameters.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// GCPLoadBalancerParametersApplyConfiguration represents a declarative configuration of the GCPLoadBalancerParameters type for use
// with apply.
type GCPLoadBalancerParametersApplyConfiguration struct {
- ClientAccess *v1.GCPClientAccess `json:"clientAccess,omitempty"`
+ ClientAccess *operatorv1.GCPClientAccess `json:"clientAccess,omitempty"`
}
// GCPLoadBalancerParametersApplyConfiguration constructs a declarative configuration of the GCPLoadBalancerParameters type for use with
@@ -21,7 +21,7 @@ func GCPLoadBalancerParameters() *GCPLoadBalancerParametersApplyConfiguration {
// WithClientAccess sets the ClientAccess field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ClientAccess field is set to the value of the last call.
-func (b *GCPLoadBalancerParametersApplyConfiguration) WithClientAccess(value v1.GCPClientAccess) *GCPLoadBalancerParametersApplyConfiguration {
+func (b *GCPLoadBalancerParametersApplyConfiguration) WithClientAccess(value operatorv1.GCPClientAccess) *GCPLoadBalancerParametersApplyConfiguration {
b.ClientAccess = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/healthcheck.go b/operator/applyconfigurations/operator/v1/healthcheck.go
index 4b8d600ba..0f4cfac5a 100644
--- a/operator/applyconfigurations/operator/v1/healthcheck.go
+++ b/operator/applyconfigurations/operator/v1/healthcheck.go
@@ -3,16 +3,16 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// HealthCheckApplyConfiguration represents a declarative configuration of the HealthCheck type for use
// with apply.
type HealthCheckApplyConfiguration struct {
- Description *string `json:"description,omitempty"`
- TotalRisk *int32 `json:"totalRisk,omitempty"`
- AdvisorURI *string `json:"advisorURI,omitempty"`
- State *v1.HealthCheckState `json:"state,omitempty"`
+ Description *string `json:"description,omitempty"`
+ TotalRisk *int32 `json:"totalRisk,omitempty"`
+ AdvisorURI *string `json:"advisorURI,omitempty"`
+ State *operatorv1.HealthCheckState `json:"state,omitempty"`
}
// HealthCheckApplyConfiguration constructs a declarative configuration of the HealthCheck type for use with
@@ -48,7 +48,7 @@ func (b *HealthCheckApplyConfiguration) WithAdvisorURI(value string) *HealthChec
// WithState sets the State field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the State field is set to the value of the last call.
-func (b *HealthCheckApplyConfiguration) WithState(value v1.HealthCheckState) *HealthCheckApplyConfiguration {
+func (b *HealthCheckApplyConfiguration) WithState(value operatorv1.HealthCheckState) *HealthCheckApplyConfiguration {
b.State = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/hostnetworkstrategy.go b/operator/applyconfigurations/operator/v1/hostnetworkstrategy.go
index 2b7e1aadb..a667c16f3 100644
--- a/operator/applyconfigurations/operator/v1/hostnetworkstrategy.go
+++ b/operator/applyconfigurations/operator/v1/hostnetworkstrategy.go
@@ -3,16 +3,16 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// HostNetworkStrategyApplyConfiguration represents a declarative configuration of the HostNetworkStrategy type for use
// with apply.
type HostNetworkStrategyApplyConfiguration struct {
- Protocol *v1.IngressControllerProtocol `json:"protocol,omitempty"`
- HTTPPort *int32 `json:"httpPort,omitempty"`
- HTTPSPort *int32 `json:"httpsPort,omitempty"`
- StatsPort *int32 `json:"statsPort,omitempty"`
+ Protocol *operatorv1.IngressControllerProtocol `json:"protocol,omitempty"`
+ HTTPPort *int32 `json:"httpPort,omitempty"`
+ HTTPSPort *int32 `json:"httpsPort,omitempty"`
+ StatsPort *int32 `json:"statsPort,omitempty"`
}
// HostNetworkStrategyApplyConfiguration constructs a declarative configuration of the HostNetworkStrategy type for use with
@@ -24,7 +24,7 @@ func HostNetworkStrategy() *HostNetworkStrategyApplyConfiguration {
// WithProtocol sets the Protocol field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Protocol field is set to the value of the last call.
-func (b *HostNetworkStrategyApplyConfiguration) WithProtocol(value v1.IngressControllerProtocol) *HostNetworkStrategyApplyConfiguration {
+func (b *HostNetworkStrategyApplyConfiguration) WithProtocol(value operatorv1.IngressControllerProtocol) *HostNetworkStrategyApplyConfiguration {
b.Protocol = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/httpcompressionpolicy.go b/operator/applyconfigurations/operator/v1/httpcompressionpolicy.go
index 2a1b2022a..cd83a0461 100644
--- a/operator/applyconfigurations/operator/v1/httpcompressionpolicy.go
+++ b/operator/applyconfigurations/operator/v1/httpcompressionpolicy.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// HTTPCompressionPolicyApplyConfiguration represents a declarative configuration of the HTTPCompressionPolicy type for use
// with apply.
type HTTPCompressionPolicyApplyConfiguration struct {
- MimeTypes []v1.CompressionMIMEType `json:"mimeTypes,omitempty"`
+ MimeTypes []operatorv1.CompressionMIMEType `json:"mimeTypes,omitempty"`
}
// HTTPCompressionPolicyApplyConfiguration constructs a declarative configuration of the HTTPCompressionPolicy type for use with
@@ -21,7 +21,7 @@ func HTTPCompressionPolicy() *HTTPCompressionPolicyApplyConfiguration {
// WithMimeTypes adds the given value to the MimeTypes field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the MimeTypes field.
-func (b *HTTPCompressionPolicyApplyConfiguration) WithMimeTypes(values ...v1.CompressionMIMEType) *HTTPCompressionPolicyApplyConfiguration {
+func (b *HTTPCompressionPolicyApplyConfiguration) WithMimeTypes(values ...operatorv1.CompressionMIMEType) *HTTPCompressionPolicyApplyConfiguration {
for i := range values {
b.MimeTypes = append(b.MimeTypes, values[i])
}
diff --git a/operator/applyconfigurations/operator/v1/ibmloadbalancerparameters.go b/operator/applyconfigurations/operator/v1/ibmloadbalancerparameters.go
index e60ab354e..065c61554 100644
--- a/operator/applyconfigurations/operator/v1/ibmloadbalancerparameters.go
+++ b/operator/applyconfigurations/operator/v1/ibmloadbalancerparameters.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// IBMLoadBalancerParametersApplyConfiguration represents a declarative configuration of the IBMLoadBalancerParameters type for use
// with apply.
type IBMLoadBalancerParametersApplyConfiguration struct {
- Protocol *v1.IngressControllerProtocol `json:"protocol,omitempty"`
+ Protocol *operatorv1.IngressControllerProtocol `json:"protocol,omitempty"`
}
// IBMLoadBalancerParametersApplyConfiguration constructs a declarative configuration of the IBMLoadBalancerParameters type for use with
@@ -21,7 +21,7 @@ func IBMLoadBalancerParameters() *IBMLoadBalancerParametersApplyConfiguration {
// WithProtocol sets the Protocol field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Protocol field is set to the value of the last call.
-func (b *IBMLoadBalancerParametersApplyConfiguration) WithProtocol(value v1.IngressControllerProtocol) *IBMLoadBalancerParametersApplyConfiguration {
+func (b *IBMLoadBalancerParametersApplyConfiguration) WithProtocol(value operatorv1.IngressControllerProtocol) *IBMLoadBalancerParametersApplyConfiguration {
b.Protocol = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/ingresscontroller.go b/operator/applyconfigurations/operator/v1/ingresscontroller.go
index a37177b67..e23139014 100644
--- a/operator/applyconfigurations/operator/v1/ingresscontroller.go
+++ b/operator/applyconfigurations/operator/v1/ingresscontroller.go
@@ -3,21 +3,21 @@
package v1
import (
- apioperatorv1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
internal "github.com/openshift/client-go/operator/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// IngressControllerApplyConfiguration represents a declarative configuration of the IngressController type for use
// with apply.
type IngressControllerApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *IngressControllerSpecApplyConfiguration `json:"spec,omitempty"`
- Status *IngressControllerStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *IngressControllerSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *IngressControllerStatusApplyConfiguration `json:"status,omitempty"`
}
// IngressController constructs a declarative configuration of the IngressController type for use with
@@ -42,18 +42,18 @@ func IngressController(name, namespace string) *IngressControllerApplyConfigurat
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractIngressController(ingressController *apioperatorv1.IngressController, fieldManager string) (*IngressControllerApplyConfiguration, error) {
+func ExtractIngressController(ingressController *operatorv1.IngressController, fieldManager string) (*IngressControllerApplyConfiguration, error) {
return extractIngressController(ingressController, fieldManager, "")
}
// ExtractIngressControllerStatus is the same as ExtractIngressController except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractIngressControllerStatus(ingressController *apioperatorv1.IngressController, fieldManager string) (*IngressControllerApplyConfiguration, error) {
+func ExtractIngressControllerStatus(ingressController *operatorv1.IngressController, fieldManager string) (*IngressControllerApplyConfiguration, error) {
return extractIngressController(ingressController, fieldManager, "status")
}
-func extractIngressController(ingressController *apioperatorv1.IngressController, fieldManager string, subresource string) (*IngressControllerApplyConfiguration, error) {
+func extractIngressController(ingressController *operatorv1.IngressController, fieldManager string, subresource string) (*IngressControllerApplyConfiguration, error) {
b := &IngressControllerApplyConfiguration{}
err := managedfields.ExtractInto(ingressController, internal.Parser().Type("com.github.openshift.api.operator.v1.IngressController"), fieldManager, b, subresource)
if err != nil {
@@ -71,7 +71,7 @@ func extractIngressController(ingressController *apioperatorv1.IngressController
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *IngressControllerApplyConfiguration) WithKind(value string) *IngressControllerApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -79,7 +79,7 @@ func (b *IngressControllerApplyConfiguration) WithKind(value string) *IngressCon
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *IngressControllerApplyConfiguration) WithAPIVersion(value string) *IngressControllerApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -88,7 +88,7 @@ func (b *IngressControllerApplyConfiguration) WithAPIVersion(value string) *Ingr
// If called multiple times, the Name field is set to the value of the last call.
func (b *IngressControllerApplyConfiguration) WithName(value string) *IngressControllerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -97,7 +97,7 @@ func (b *IngressControllerApplyConfiguration) WithName(value string) *IngressCon
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *IngressControllerApplyConfiguration) WithGenerateName(value string) *IngressControllerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -106,7 +106,7 @@ func (b *IngressControllerApplyConfiguration) WithGenerateName(value string) *In
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *IngressControllerApplyConfiguration) WithNamespace(value string) *IngressControllerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -115,7 +115,7 @@ func (b *IngressControllerApplyConfiguration) WithNamespace(value string) *Ingre
// If called multiple times, the UID field is set to the value of the last call.
func (b *IngressControllerApplyConfiguration) WithUID(value types.UID) *IngressControllerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -124,7 +124,7 @@ func (b *IngressControllerApplyConfiguration) WithUID(value types.UID) *IngressC
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *IngressControllerApplyConfiguration) WithResourceVersion(value string) *IngressControllerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -133,25 +133,25 @@ func (b *IngressControllerApplyConfiguration) WithResourceVersion(value string)
// If called multiple times, the Generation field is set to the value of the last call.
func (b *IngressControllerApplyConfiguration) WithGeneration(value int64) *IngressControllerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *IngressControllerApplyConfiguration) WithCreationTimestamp(value metav1.Time) *IngressControllerApplyConfiguration {
+func (b *IngressControllerApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *IngressControllerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *IngressControllerApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *IngressControllerApplyConfiguration {
+func (b *IngressControllerApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *IngressControllerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -160,7 +160,7 @@ func (b *IngressControllerApplyConfiguration) WithDeletionTimestamp(value metav1
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *IngressControllerApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *IngressControllerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -170,11 +170,11 @@ func (b *IngressControllerApplyConfiguration) WithDeletionGracePeriodSeconds(val
// overwriting an existing map entries in Labels field with the same key.
func (b *IngressControllerApplyConfiguration) WithLabels(entries map[string]string) *IngressControllerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -185,11 +185,11 @@ func (b *IngressControllerApplyConfiguration) WithLabels(entries map[string]stri
// overwriting an existing map entries in Annotations field with the same key.
func (b *IngressControllerApplyConfiguration) WithAnnotations(entries map[string]string) *IngressControllerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -197,13 +197,13 @@ func (b *IngressControllerApplyConfiguration) WithAnnotations(entries map[string
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *IngressControllerApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *IngressControllerApplyConfiguration {
+func (b *IngressControllerApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *IngressControllerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -214,14 +214,14 @@ func (b *IngressControllerApplyConfiguration) WithOwnerReferences(values ...*v1.
func (b *IngressControllerApplyConfiguration) WithFinalizers(values ...string) *IngressControllerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *IngressControllerApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -244,5 +244,5 @@ func (b *IngressControllerApplyConfiguration) WithStatus(value *IngressControlle
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *IngressControllerApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/operator/applyconfigurations/operator/v1/ingresscontrollercapturehttpcookie.go b/operator/applyconfigurations/operator/v1/ingresscontrollercapturehttpcookie.go
index fd345b643..dbcd3d9e5 100644
--- a/operator/applyconfigurations/operator/v1/ingresscontrollercapturehttpcookie.go
+++ b/operator/applyconfigurations/operator/v1/ingresscontrollercapturehttpcookie.go
@@ -23,7 +23,7 @@ func IngressControllerCaptureHTTPCookie() *IngressControllerCaptureHTTPCookieApp
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the MatchType field is set to the value of the last call.
func (b *IngressControllerCaptureHTTPCookieApplyConfiguration) WithMatchType(value operatorv1.CookieMatchType) *IngressControllerCaptureHTTPCookieApplyConfiguration {
- b.MatchType = &value
+ b.IngressControllerCaptureHTTPCookieUnionApplyConfiguration.MatchType = &value
return b
}
@@ -31,7 +31,7 @@ func (b *IngressControllerCaptureHTTPCookieApplyConfiguration) WithMatchType(val
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Name field is set to the value of the last call.
func (b *IngressControllerCaptureHTTPCookieApplyConfiguration) WithName(value string) *IngressControllerCaptureHTTPCookieApplyConfiguration {
- b.Name = &value
+ b.IngressControllerCaptureHTTPCookieUnionApplyConfiguration.Name = &value
return b
}
@@ -39,7 +39,7 @@ func (b *IngressControllerCaptureHTTPCookieApplyConfiguration) WithName(value st
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the NamePrefix field is set to the value of the last call.
func (b *IngressControllerCaptureHTTPCookieApplyConfiguration) WithNamePrefix(value string) *IngressControllerCaptureHTTPCookieApplyConfiguration {
- b.NamePrefix = &value
+ b.IngressControllerCaptureHTTPCookieUnionApplyConfiguration.NamePrefix = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/ingresscontrollercapturehttpcookieunion.go b/operator/applyconfigurations/operator/v1/ingresscontrollercapturehttpcookieunion.go
index 57f9fb590..374621a87 100644
--- a/operator/applyconfigurations/operator/v1/ingresscontrollercapturehttpcookieunion.go
+++ b/operator/applyconfigurations/operator/v1/ingresscontrollercapturehttpcookieunion.go
@@ -3,15 +3,15 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// IngressControllerCaptureHTTPCookieUnionApplyConfiguration represents a declarative configuration of the IngressControllerCaptureHTTPCookieUnion type for use
// with apply.
type IngressControllerCaptureHTTPCookieUnionApplyConfiguration struct {
- MatchType *v1.CookieMatchType `json:"matchType,omitempty"`
- Name *string `json:"name,omitempty"`
- NamePrefix *string `json:"namePrefix,omitempty"`
+ MatchType *operatorv1.CookieMatchType `json:"matchType,omitempty"`
+ Name *string `json:"name,omitempty"`
+ NamePrefix *string `json:"namePrefix,omitempty"`
}
// IngressControllerCaptureHTTPCookieUnionApplyConfiguration constructs a declarative configuration of the IngressControllerCaptureHTTPCookieUnion type for use with
@@ -23,7 +23,7 @@ func IngressControllerCaptureHTTPCookieUnion() *IngressControllerCaptureHTTPCook
// WithMatchType sets the MatchType field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the MatchType field is set to the value of the last call.
-func (b *IngressControllerCaptureHTTPCookieUnionApplyConfiguration) WithMatchType(value v1.CookieMatchType) *IngressControllerCaptureHTTPCookieUnionApplyConfiguration {
+func (b *IngressControllerCaptureHTTPCookieUnionApplyConfiguration) WithMatchType(value operatorv1.CookieMatchType) *IngressControllerCaptureHTTPCookieUnionApplyConfiguration {
b.MatchType = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/ingresscontrollerhttpheaderactionunion.go b/operator/applyconfigurations/operator/v1/ingresscontrollerhttpheaderactionunion.go
index 2c5a51ffe..f6b146106 100644
--- a/operator/applyconfigurations/operator/v1/ingresscontrollerhttpheaderactionunion.go
+++ b/operator/applyconfigurations/operator/v1/ingresscontrollerhttpheaderactionunion.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// IngressControllerHTTPHeaderActionUnionApplyConfiguration represents a declarative configuration of the IngressControllerHTTPHeaderActionUnion type for use
// with apply.
type IngressControllerHTTPHeaderActionUnionApplyConfiguration struct {
- Type *v1.IngressControllerHTTPHeaderActionType `json:"type,omitempty"`
+ Type *operatorv1.IngressControllerHTTPHeaderActionType `json:"type,omitempty"`
Set *IngressControllerSetHTTPHeaderApplyConfiguration `json:"set,omitempty"`
}
@@ -22,7 +22,7 @@ func IngressControllerHTTPHeaderActionUnion() *IngressControllerHTTPHeaderAction
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *IngressControllerHTTPHeaderActionUnionApplyConfiguration) WithType(value v1.IngressControllerHTTPHeaderActionType) *IngressControllerHTTPHeaderActionUnionApplyConfiguration {
+func (b *IngressControllerHTTPHeaderActionUnionApplyConfiguration) WithType(value operatorv1.IngressControllerHTTPHeaderActionType) *IngressControllerHTTPHeaderActionUnionApplyConfiguration {
b.Type = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/ingresscontrollerhttpheaders.go b/operator/applyconfigurations/operator/v1/ingresscontrollerhttpheaders.go
index f1381d7a7..a972c1fcb 100644
--- a/operator/applyconfigurations/operator/v1/ingresscontrollerhttpheaders.go
+++ b/operator/applyconfigurations/operator/v1/ingresscontrollerhttpheaders.go
@@ -3,15 +3,15 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// IngressControllerHTTPHeadersApplyConfiguration represents a declarative configuration of the IngressControllerHTTPHeaders type for use
// with apply.
type IngressControllerHTTPHeadersApplyConfiguration struct {
- ForwardedHeaderPolicy *v1.IngressControllerHTTPHeaderPolicy `json:"forwardedHeaderPolicy,omitempty"`
+ ForwardedHeaderPolicy *operatorv1.IngressControllerHTTPHeaderPolicy `json:"forwardedHeaderPolicy,omitempty"`
UniqueId *IngressControllerHTTPUniqueIdHeaderPolicyApplyConfiguration `json:"uniqueId,omitempty"`
- HeaderNameCaseAdjustments []v1.IngressControllerHTTPHeaderNameCaseAdjustment `json:"headerNameCaseAdjustments,omitempty"`
+ HeaderNameCaseAdjustments []operatorv1.IngressControllerHTTPHeaderNameCaseAdjustment `json:"headerNameCaseAdjustments,omitempty"`
Actions *IngressControllerHTTPHeaderActionsApplyConfiguration `json:"actions,omitempty"`
}
@@ -24,7 +24,7 @@ func IngressControllerHTTPHeaders() *IngressControllerHTTPHeadersApplyConfigurat
// WithForwardedHeaderPolicy sets the ForwardedHeaderPolicy field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ForwardedHeaderPolicy field is set to the value of the last call.
-func (b *IngressControllerHTTPHeadersApplyConfiguration) WithForwardedHeaderPolicy(value v1.IngressControllerHTTPHeaderPolicy) *IngressControllerHTTPHeadersApplyConfiguration {
+func (b *IngressControllerHTTPHeadersApplyConfiguration) WithForwardedHeaderPolicy(value operatorv1.IngressControllerHTTPHeaderPolicy) *IngressControllerHTTPHeadersApplyConfiguration {
b.ForwardedHeaderPolicy = &value
return b
}
@@ -40,7 +40,7 @@ func (b *IngressControllerHTTPHeadersApplyConfiguration) WithUniqueId(value *Ing
// WithHeaderNameCaseAdjustments adds the given value to the HeaderNameCaseAdjustments field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the HeaderNameCaseAdjustments field.
-func (b *IngressControllerHTTPHeadersApplyConfiguration) WithHeaderNameCaseAdjustments(values ...v1.IngressControllerHTTPHeaderNameCaseAdjustment) *IngressControllerHTTPHeadersApplyConfiguration {
+func (b *IngressControllerHTTPHeadersApplyConfiguration) WithHeaderNameCaseAdjustments(values ...operatorv1.IngressControllerHTTPHeaderNameCaseAdjustment) *IngressControllerHTTPHeadersApplyConfiguration {
for i := range values {
b.HeaderNameCaseAdjustments = append(b.HeaderNameCaseAdjustments, values[i])
}
diff --git a/operator/applyconfigurations/operator/v1/ingresscontrollerspec.go b/operator/applyconfigurations/operator/v1/ingresscontrollerspec.go
index e8ed1738a..ae23fe636 100644
--- a/operator/applyconfigurations/operator/v1/ingresscontrollerspec.go
+++ b/operator/applyconfigurations/operator/v1/ingresscontrollerspec.go
@@ -3,8 +3,8 @@
package v1
import (
- v1 "github.com/openshift/api/config/v1"
- apioperatorv1 "github.com/openshift/api/operator/v1"
+ configv1 "github.com/openshift/api/config/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
corev1 "k8s.io/api/core/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
@@ -13,24 +13,24 @@ import (
// IngressControllerSpecApplyConfiguration represents a declarative configuration of the IngressControllerSpec type for use
// with apply.
type IngressControllerSpecApplyConfiguration struct {
- Domain *string `json:"domain,omitempty"`
- HttpErrorCodePages *v1.ConfigMapNameReference `json:"httpErrorCodePages,omitempty"`
- Replicas *int32 `json:"replicas,omitempty"`
- EndpointPublishingStrategy *EndpointPublishingStrategyApplyConfiguration `json:"endpointPublishingStrategy,omitempty"`
- DefaultCertificate *corev1.LocalObjectReference `json:"defaultCertificate,omitempty"`
- NamespaceSelector *metav1.LabelSelectorApplyConfiguration `json:"namespaceSelector,omitempty"`
- RouteSelector *metav1.LabelSelectorApplyConfiguration `json:"routeSelector,omitempty"`
- NodePlacement *NodePlacementApplyConfiguration `json:"nodePlacement,omitempty"`
- TLSSecurityProfile *v1.TLSSecurityProfile `json:"tlsSecurityProfile,omitempty"`
- ClientTLS *ClientTLSApplyConfiguration `json:"clientTLS,omitempty"`
- RouteAdmission *RouteAdmissionPolicyApplyConfiguration `json:"routeAdmission,omitempty"`
- Logging *IngressControllerLoggingApplyConfiguration `json:"logging,omitempty"`
- HTTPHeaders *IngressControllerHTTPHeadersApplyConfiguration `json:"httpHeaders,omitempty"`
- HTTPEmptyRequestsPolicy *apioperatorv1.HTTPEmptyRequestsPolicy `json:"httpEmptyRequestsPolicy,omitempty"`
- TuningOptions *IngressControllerTuningOptionsApplyConfiguration `json:"tuningOptions,omitempty"`
- UnsupportedConfigOverrides *runtime.RawExtension `json:"unsupportedConfigOverrides,omitempty"`
- HTTPCompression *HTTPCompressionPolicyApplyConfiguration `json:"httpCompression,omitempty"`
- IdleConnectionTerminationPolicy *apioperatorv1.IngressControllerConnectionTerminationPolicy `json:"idleConnectionTerminationPolicy,omitempty"`
+ Domain *string `json:"domain,omitempty"`
+ HttpErrorCodePages *configv1.ConfigMapNameReference `json:"httpErrorCodePages,omitempty"`
+ Replicas *int32 `json:"replicas,omitempty"`
+ EndpointPublishingStrategy *EndpointPublishingStrategyApplyConfiguration `json:"endpointPublishingStrategy,omitempty"`
+ DefaultCertificate *corev1.LocalObjectReference `json:"defaultCertificate,omitempty"`
+ NamespaceSelector *metav1.LabelSelectorApplyConfiguration `json:"namespaceSelector,omitempty"`
+ RouteSelector *metav1.LabelSelectorApplyConfiguration `json:"routeSelector,omitempty"`
+ NodePlacement *NodePlacementApplyConfiguration `json:"nodePlacement,omitempty"`
+ TLSSecurityProfile *configv1.TLSSecurityProfile `json:"tlsSecurityProfile,omitempty"`
+ ClientTLS *ClientTLSApplyConfiguration `json:"clientTLS,omitempty"`
+ RouteAdmission *RouteAdmissionPolicyApplyConfiguration `json:"routeAdmission,omitempty"`
+ Logging *IngressControllerLoggingApplyConfiguration `json:"logging,omitempty"`
+ HTTPHeaders *IngressControllerHTTPHeadersApplyConfiguration `json:"httpHeaders,omitempty"`
+ HTTPEmptyRequestsPolicy *operatorv1.HTTPEmptyRequestsPolicy `json:"httpEmptyRequestsPolicy,omitempty"`
+ TuningOptions *IngressControllerTuningOptionsApplyConfiguration `json:"tuningOptions,omitempty"`
+ UnsupportedConfigOverrides *runtime.RawExtension `json:"unsupportedConfigOverrides,omitempty"`
+ HTTPCompression *HTTPCompressionPolicyApplyConfiguration `json:"httpCompression,omitempty"`
+ IdleConnectionTerminationPolicy *operatorv1.IngressControllerConnectionTerminationPolicy `json:"idleConnectionTerminationPolicy,omitempty"`
}
// IngressControllerSpecApplyConfiguration constructs a declarative configuration of the IngressControllerSpec type for use with
@@ -50,7 +50,7 @@ func (b *IngressControllerSpecApplyConfiguration) WithDomain(value string) *Ingr
// WithHttpErrorCodePages sets the HttpErrorCodePages field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the HttpErrorCodePages field is set to the value of the last call.
-func (b *IngressControllerSpecApplyConfiguration) WithHttpErrorCodePages(value v1.ConfigMapNameReference) *IngressControllerSpecApplyConfiguration {
+func (b *IngressControllerSpecApplyConfiguration) WithHttpErrorCodePages(value configv1.ConfigMapNameReference) *IngressControllerSpecApplyConfiguration {
b.HttpErrorCodePages = &value
return b
}
@@ -106,7 +106,7 @@ func (b *IngressControllerSpecApplyConfiguration) WithNodePlacement(value *NodeP
// WithTLSSecurityProfile sets the TLSSecurityProfile field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the TLSSecurityProfile field is set to the value of the last call.
-func (b *IngressControllerSpecApplyConfiguration) WithTLSSecurityProfile(value v1.TLSSecurityProfile) *IngressControllerSpecApplyConfiguration {
+func (b *IngressControllerSpecApplyConfiguration) WithTLSSecurityProfile(value configv1.TLSSecurityProfile) *IngressControllerSpecApplyConfiguration {
b.TLSSecurityProfile = &value
return b
}
@@ -146,7 +146,7 @@ func (b *IngressControllerSpecApplyConfiguration) WithHTTPHeaders(value *Ingress
// WithHTTPEmptyRequestsPolicy sets the HTTPEmptyRequestsPolicy field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the HTTPEmptyRequestsPolicy field is set to the value of the last call.
-func (b *IngressControllerSpecApplyConfiguration) WithHTTPEmptyRequestsPolicy(value apioperatorv1.HTTPEmptyRequestsPolicy) *IngressControllerSpecApplyConfiguration {
+func (b *IngressControllerSpecApplyConfiguration) WithHTTPEmptyRequestsPolicy(value operatorv1.HTTPEmptyRequestsPolicy) *IngressControllerSpecApplyConfiguration {
b.HTTPEmptyRequestsPolicy = &value
return b
}
@@ -178,7 +178,7 @@ func (b *IngressControllerSpecApplyConfiguration) WithHTTPCompression(value *HTT
// WithIdleConnectionTerminationPolicy sets the IdleConnectionTerminationPolicy field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the IdleConnectionTerminationPolicy field is set to the value of the last call.
-func (b *IngressControllerSpecApplyConfiguration) WithIdleConnectionTerminationPolicy(value apioperatorv1.IngressControllerConnectionTerminationPolicy) *IngressControllerSpecApplyConfiguration {
+func (b *IngressControllerSpecApplyConfiguration) WithIdleConnectionTerminationPolicy(value operatorv1.IngressControllerConnectionTerminationPolicy) *IngressControllerSpecApplyConfiguration {
b.IdleConnectionTerminationPolicy = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/ingresscontrollertuningoptions.go b/operator/applyconfigurations/operator/v1/ingresscontrollertuningoptions.go
index 39a4ef113..122801cf1 100644
--- a/operator/applyconfigurations/operator/v1/ingresscontrollertuningoptions.go
+++ b/operator/applyconfigurations/operator/v1/ingresscontrollertuningoptions.go
@@ -3,25 +3,25 @@
package v1
import (
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// IngressControllerTuningOptionsApplyConfiguration represents a declarative configuration of the IngressControllerTuningOptions type for use
// with apply.
type IngressControllerTuningOptionsApplyConfiguration struct {
- HeaderBufferBytes *int32 `json:"headerBufferBytes,omitempty"`
- HeaderBufferMaxRewriteBytes *int32 `json:"headerBufferMaxRewriteBytes,omitempty"`
- ThreadCount *int32 `json:"threadCount,omitempty"`
- ClientTimeout *v1.Duration `json:"clientTimeout,omitempty"`
- ClientFinTimeout *v1.Duration `json:"clientFinTimeout,omitempty"`
- ServerTimeout *v1.Duration `json:"serverTimeout,omitempty"`
- ServerFinTimeout *v1.Duration `json:"serverFinTimeout,omitempty"`
- TunnelTimeout *v1.Duration `json:"tunnelTimeout,omitempty"`
- ConnectTimeout *v1.Duration `json:"connectTimeout,omitempty"`
- TLSInspectDelay *v1.Duration `json:"tlsInspectDelay,omitempty"`
- HealthCheckInterval *v1.Duration `json:"healthCheckInterval,omitempty"`
- MaxConnections *int32 `json:"maxConnections,omitempty"`
- ReloadInterval *v1.Duration `json:"reloadInterval,omitempty"`
+ HeaderBufferBytes *int32 `json:"headerBufferBytes,omitempty"`
+ HeaderBufferMaxRewriteBytes *int32 `json:"headerBufferMaxRewriteBytes,omitempty"`
+ ThreadCount *int32 `json:"threadCount,omitempty"`
+ ClientTimeout *metav1.Duration `json:"clientTimeout,omitempty"`
+ ClientFinTimeout *metav1.Duration `json:"clientFinTimeout,omitempty"`
+ ServerTimeout *metav1.Duration `json:"serverTimeout,omitempty"`
+ ServerFinTimeout *metav1.Duration `json:"serverFinTimeout,omitempty"`
+ TunnelTimeout *metav1.Duration `json:"tunnelTimeout,omitempty"`
+ ConnectTimeout *metav1.Duration `json:"connectTimeout,omitempty"`
+ TLSInspectDelay *metav1.Duration `json:"tlsInspectDelay,omitempty"`
+ HealthCheckInterval *metav1.Duration `json:"healthCheckInterval,omitempty"`
+ MaxConnections *int32 `json:"maxConnections,omitempty"`
+ ReloadInterval *metav1.Duration `json:"reloadInterval,omitempty"`
}
// IngressControllerTuningOptionsApplyConfiguration constructs a declarative configuration of the IngressControllerTuningOptions type for use with
@@ -57,7 +57,7 @@ func (b *IngressControllerTuningOptionsApplyConfiguration) WithThreadCount(value
// WithClientTimeout sets the ClientTimeout field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ClientTimeout field is set to the value of the last call.
-func (b *IngressControllerTuningOptionsApplyConfiguration) WithClientTimeout(value v1.Duration) *IngressControllerTuningOptionsApplyConfiguration {
+func (b *IngressControllerTuningOptionsApplyConfiguration) WithClientTimeout(value metav1.Duration) *IngressControllerTuningOptionsApplyConfiguration {
b.ClientTimeout = &value
return b
}
@@ -65,7 +65,7 @@ func (b *IngressControllerTuningOptionsApplyConfiguration) WithClientTimeout(val
// WithClientFinTimeout sets the ClientFinTimeout field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ClientFinTimeout field is set to the value of the last call.
-func (b *IngressControllerTuningOptionsApplyConfiguration) WithClientFinTimeout(value v1.Duration) *IngressControllerTuningOptionsApplyConfiguration {
+func (b *IngressControllerTuningOptionsApplyConfiguration) WithClientFinTimeout(value metav1.Duration) *IngressControllerTuningOptionsApplyConfiguration {
b.ClientFinTimeout = &value
return b
}
@@ -73,7 +73,7 @@ func (b *IngressControllerTuningOptionsApplyConfiguration) WithClientFinTimeout(
// WithServerTimeout sets the ServerTimeout field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ServerTimeout field is set to the value of the last call.
-func (b *IngressControllerTuningOptionsApplyConfiguration) WithServerTimeout(value v1.Duration) *IngressControllerTuningOptionsApplyConfiguration {
+func (b *IngressControllerTuningOptionsApplyConfiguration) WithServerTimeout(value metav1.Duration) *IngressControllerTuningOptionsApplyConfiguration {
b.ServerTimeout = &value
return b
}
@@ -81,7 +81,7 @@ func (b *IngressControllerTuningOptionsApplyConfiguration) WithServerTimeout(val
// WithServerFinTimeout sets the ServerFinTimeout field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ServerFinTimeout field is set to the value of the last call.
-func (b *IngressControllerTuningOptionsApplyConfiguration) WithServerFinTimeout(value v1.Duration) *IngressControllerTuningOptionsApplyConfiguration {
+func (b *IngressControllerTuningOptionsApplyConfiguration) WithServerFinTimeout(value metav1.Duration) *IngressControllerTuningOptionsApplyConfiguration {
b.ServerFinTimeout = &value
return b
}
@@ -89,7 +89,7 @@ func (b *IngressControllerTuningOptionsApplyConfiguration) WithServerFinTimeout(
// WithTunnelTimeout sets the TunnelTimeout field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the TunnelTimeout field is set to the value of the last call.
-func (b *IngressControllerTuningOptionsApplyConfiguration) WithTunnelTimeout(value v1.Duration) *IngressControllerTuningOptionsApplyConfiguration {
+func (b *IngressControllerTuningOptionsApplyConfiguration) WithTunnelTimeout(value metav1.Duration) *IngressControllerTuningOptionsApplyConfiguration {
b.TunnelTimeout = &value
return b
}
@@ -97,7 +97,7 @@ func (b *IngressControllerTuningOptionsApplyConfiguration) WithTunnelTimeout(val
// WithConnectTimeout sets the ConnectTimeout field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ConnectTimeout field is set to the value of the last call.
-func (b *IngressControllerTuningOptionsApplyConfiguration) WithConnectTimeout(value v1.Duration) *IngressControllerTuningOptionsApplyConfiguration {
+func (b *IngressControllerTuningOptionsApplyConfiguration) WithConnectTimeout(value metav1.Duration) *IngressControllerTuningOptionsApplyConfiguration {
b.ConnectTimeout = &value
return b
}
@@ -105,7 +105,7 @@ func (b *IngressControllerTuningOptionsApplyConfiguration) WithConnectTimeout(va
// WithTLSInspectDelay sets the TLSInspectDelay field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the TLSInspectDelay field is set to the value of the last call.
-func (b *IngressControllerTuningOptionsApplyConfiguration) WithTLSInspectDelay(value v1.Duration) *IngressControllerTuningOptionsApplyConfiguration {
+func (b *IngressControllerTuningOptionsApplyConfiguration) WithTLSInspectDelay(value metav1.Duration) *IngressControllerTuningOptionsApplyConfiguration {
b.TLSInspectDelay = &value
return b
}
@@ -113,7 +113,7 @@ func (b *IngressControllerTuningOptionsApplyConfiguration) WithTLSInspectDelay(v
// WithHealthCheckInterval sets the HealthCheckInterval field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the HealthCheckInterval field is set to the value of the last call.
-func (b *IngressControllerTuningOptionsApplyConfiguration) WithHealthCheckInterval(value v1.Duration) *IngressControllerTuningOptionsApplyConfiguration {
+func (b *IngressControllerTuningOptionsApplyConfiguration) WithHealthCheckInterval(value metav1.Duration) *IngressControllerTuningOptionsApplyConfiguration {
b.HealthCheckInterval = &value
return b
}
@@ -129,7 +129,7 @@ func (b *IngressControllerTuningOptionsApplyConfiguration) WithMaxConnections(va
// WithReloadInterval sets the ReloadInterval field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ReloadInterval field is set to the value of the last call.
-func (b *IngressControllerTuningOptionsApplyConfiguration) WithReloadInterval(value v1.Duration) *IngressControllerTuningOptionsApplyConfiguration {
+func (b *IngressControllerTuningOptionsApplyConfiguration) WithReloadInterval(value metav1.Duration) *IngressControllerTuningOptionsApplyConfiguration {
b.ReloadInterval = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/insightsoperator.go b/operator/applyconfigurations/operator/v1/insightsoperator.go
index 1b3d80040..b694f1ca3 100644
--- a/operator/applyconfigurations/operator/v1/insightsoperator.go
+++ b/operator/applyconfigurations/operator/v1/insightsoperator.go
@@ -3,21 +3,21 @@
package v1
import (
- apioperatorv1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
internal "github.com/openshift/client-go/operator/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// InsightsOperatorApplyConfiguration represents a declarative configuration of the InsightsOperator type for use
// with apply.
type InsightsOperatorApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *InsightsOperatorSpecApplyConfiguration `json:"spec,omitempty"`
- Status *InsightsOperatorStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *InsightsOperatorSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *InsightsOperatorStatusApplyConfiguration `json:"status,omitempty"`
}
// InsightsOperator constructs a declarative configuration of the InsightsOperator type for use with
@@ -41,18 +41,18 @@ func InsightsOperator(name string) *InsightsOperatorApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractInsightsOperator(insightsOperator *apioperatorv1.InsightsOperator, fieldManager string) (*InsightsOperatorApplyConfiguration, error) {
+func ExtractInsightsOperator(insightsOperator *operatorv1.InsightsOperator, fieldManager string) (*InsightsOperatorApplyConfiguration, error) {
return extractInsightsOperator(insightsOperator, fieldManager, "")
}
// ExtractInsightsOperatorStatus is the same as ExtractInsightsOperator except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractInsightsOperatorStatus(insightsOperator *apioperatorv1.InsightsOperator, fieldManager string) (*InsightsOperatorApplyConfiguration, error) {
+func ExtractInsightsOperatorStatus(insightsOperator *operatorv1.InsightsOperator, fieldManager string) (*InsightsOperatorApplyConfiguration, error) {
return extractInsightsOperator(insightsOperator, fieldManager, "status")
}
-func extractInsightsOperator(insightsOperator *apioperatorv1.InsightsOperator, fieldManager string, subresource string) (*InsightsOperatorApplyConfiguration, error) {
+func extractInsightsOperator(insightsOperator *operatorv1.InsightsOperator, fieldManager string, subresource string) (*InsightsOperatorApplyConfiguration, error) {
b := &InsightsOperatorApplyConfiguration{}
err := managedfields.ExtractInto(insightsOperator, internal.Parser().Type("com.github.openshift.api.operator.v1.InsightsOperator"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractInsightsOperator(insightsOperator *apioperatorv1.InsightsOperator, f
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *InsightsOperatorApplyConfiguration) WithKind(value string) *InsightsOperatorApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *InsightsOperatorApplyConfiguration) WithKind(value string) *InsightsOpe
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *InsightsOperatorApplyConfiguration) WithAPIVersion(value string) *InsightsOperatorApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *InsightsOperatorApplyConfiguration) WithAPIVersion(value string) *Insig
// If called multiple times, the Name field is set to the value of the last call.
func (b *InsightsOperatorApplyConfiguration) WithName(value string) *InsightsOperatorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *InsightsOperatorApplyConfiguration) WithName(value string) *InsightsOpe
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *InsightsOperatorApplyConfiguration) WithGenerateName(value string) *InsightsOperatorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *InsightsOperatorApplyConfiguration) WithGenerateName(value string) *Ins
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *InsightsOperatorApplyConfiguration) WithNamespace(value string) *InsightsOperatorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *InsightsOperatorApplyConfiguration) WithNamespace(value string) *Insigh
// If called multiple times, the UID field is set to the value of the last call.
func (b *InsightsOperatorApplyConfiguration) WithUID(value types.UID) *InsightsOperatorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *InsightsOperatorApplyConfiguration) WithUID(value types.UID) *InsightsO
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *InsightsOperatorApplyConfiguration) WithResourceVersion(value string) *InsightsOperatorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *InsightsOperatorApplyConfiguration) WithResourceVersion(value string) *
// If called multiple times, the Generation field is set to the value of the last call.
func (b *InsightsOperatorApplyConfiguration) WithGeneration(value int64) *InsightsOperatorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *InsightsOperatorApplyConfiguration) WithCreationTimestamp(value metav1.Time) *InsightsOperatorApplyConfiguration {
+func (b *InsightsOperatorApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *InsightsOperatorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *InsightsOperatorApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *InsightsOperatorApplyConfiguration {
+func (b *InsightsOperatorApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *InsightsOperatorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *InsightsOperatorApplyConfiguration) WithDeletionTimestamp(value metav1.
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *InsightsOperatorApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *InsightsOperatorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *InsightsOperatorApplyConfiguration) WithDeletionGracePeriodSeconds(valu
// overwriting an existing map entries in Labels field with the same key.
func (b *InsightsOperatorApplyConfiguration) WithLabels(entries map[string]string) *InsightsOperatorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *InsightsOperatorApplyConfiguration) WithLabels(entries map[string]strin
// overwriting an existing map entries in Annotations field with the same key.
func (b *InsightsOperatorApplyConfiguration) WithAnnotations(entries map[string]string) *InsightsOperatorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *InsightsOperatorApplyConfiguration) WithAnnotations(entries map[string]
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *InsightsOperatorApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *InsightsOperatorApplyConfiguration {
+func (b *InsightsOperatorApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *InsightsOperatorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *InsightsOperatorApplyConfiguration) WithOwnerReferences(values ...*v1.O
func (b *InsightsOperatorApplyConfiguration) WithFinalizers(values ...string) *InsightsOperatorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *InsightsOperatorApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *InsightsOperatorApplyConfiguration) WithStatus(value *InsightsOperatorS
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *InsightsOperatorApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/operator/applyconfigurations/operator/v1/insightsoperatorspec.go b/operator/applyconfigurations/operator/v1/insightsoperatorspec.go
index 4f9b356a9..c6085db4a 100644
--- a/operator/applyconfigurations/operator/v1/insightsoperatorspec.go
+++ b/operator/applyconfigurations/operator/v1/insightsoperatorspec.go
@@ -23,7 +23,7 @@ func InsightsOperatorSpec() *InsightsOperatorSpecApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ManagementState field is set to the value of the last call.
func (b *InsightsOperatorSpecApplyConfiguration) WithManagementState(value operatorv1.ManagementState) *InsightsOperatorSpecApplyConfiguration {
- b.ManagementState = &value
+ b.OperatorSpecApplyConfiguration.ManagementState = &value
return b
}
@@ -31,7 +31,7 @@ func (b *InsightsOperatorSpecApplyConfiguration) WithManagementState(value opera
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LogLevel field is set to the value of the last call.
func (b *InsightsOperatorSpecApplyConfiguration) WithLogLevel(value operatorv1.LogLevel) *InsightsOperatorSpecApplyConfiguration {
- b.LogLevel = &value
+ b.OperatorSpecApplyConfiguration.LogLevel = &value
return b
}
@@ -39,7 +39,7 @@ func (b *InsightsOperatorSpecApplyConfiguration) WithLogLevel(value operatorv1.L
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the OperatorLogLevel field is set to the value of the last call.
func (b *InsightsOperatorSpecApplyConfiguration) WithOperatorLogLevel(value operatorv1.LogLevel) *InsightsOperatorSpecApplyConfiguration {
- b.OperatorLogLevel = &value
+ b.OperatorSpecApplyConfiguration.OperatorLogLevel = &value
return b
}
@@ -47,7 +47,7 @@ func (b *InsightsOperatorSpecApplyConfiguration) WithOperatorLogLevel(value oper
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the UnsupportedConfigOverrides field is set to the value of the last call.
func (b *InsightsOperatorSpecApplyConfiguration) WithUnsupportedConfigOverrides(value runtime.RawExtension) *InsightsOperatorSpecApplyConfiguration {
- b.UnsupportedConfigOverrides = &value
+ b.OperatorSpecApplyConfiguration.UnsupportedConfigOverrides = &value
return b
}
@@ -55,6 +55,6 @@ func (b *InsightsOperatorSpecApplyConfiguration) WithUnsupportedConfigOverrides(
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedConfig field is set to the value of the last call.
func (b *InsightsOperatorSpecApplyConfiguration) WithObservedConfig(value runtime.RawExtension) *InsightsOperatorSpecApplyConfiguration {
- b.ObservedConfig = &value
+ b.OperatorSpecApplyConfiguration.ObservedConfig = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/insightsoperatorstatus.go b/operator/applyconfigurations/operator/v1/insightsoperatorstatus.go
index 2cb67f8da..2c679168d 100644
--- a/operator/applyconfigurations/operator/v1/insightsoperatorstatus.go
+++ b/operator/applyconfigurations/operator/v1/insightsoperatorstatus.go
@@ -20,7 +20,7 @@ func InsightsOperatorStatus() *InsightsOperatorStatusApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedGeneration field is set to the value of the last call.
func (b *InsightsOperatorStatusApplyConfiguration) WithObservedGeneration(value int64) *InsightsOperatorStatusApplyConfiguration {
- b.ObservedGeneration = &value
+ b.OperatorStatusApplyConfiguration.ObservedGeneration = &value
return b
}
@@ -32,7 +32,7 @@ func (b *InsightsOperatorStatusApplyConfiguration) WithConditions(values ...*Ope
if values[i] == nil {
panic("nil value passed to WithConditions")
}
- b.Conditions = append(b.Conditions, *values[i])
+ b.OperatorStatusApplyConfiguration.Conditions = append(b.OperatorStatusApplyConfiguration.Conditions, *values[i])
}
return b
}
@@ -41,7 +41,7 @@ func (b *InsightsOperatorStatusApplyConfiguration) WithConditions(values ...*Ope
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Version field is set to the value of the last call.
func (b *InsightsOperatorStatusApplyConfiguration) WithVersion(value string) *InsightsOperatorStatusApplyConfiguration {
- b.Version = &value
+ b.OperatorStatusApplyConfiguration.Version = &value
return b
}
@@ -49,7 +49,7 @@ func (b *InsightsOperatorStatusApplyConfiguration) WithVersion(value string) *In
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ReadyReplicas field is set to the value of the last call.
func (b *InsightsOperatorStatusApplyConfiguration) WithReadyReplicas(value int32) *InsightsOperatorStatusApplyConfiguration {
- b.ReadyReplicas = &value
+ b.OperatorStatusApplyConfiguration.ReadyReplicas = &value
return b
}
@@ -57,7 +57,7 @@ func (b *InsightsOperatorStatusApplyConfiguration) WithReadyReplicas(value int32
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LatestAvailableRevision field is set to the value of the last call.
func (b *InsightsOperatorStatusApplyConfiguration) WithLatestAvailableRevision(value int32) *InsightsOperatorStatusApplyConfiguration {
- b.LatestAvailableRevision = &value
+ b.OperatorStatusApplyConfiguration.LatestAvailableRevision = &value
return b
}
@@ -69,7 +69,7 @@ func (b *InsightsOperatorStatusApplyConfiguration) WithGenerations(values ...*Ge
if values[i] == nil {
panic("nil value passed to WithGenerations")
}
- b.Generations = append(b.Generations, *values[i])
+ b.OperatorStatusApplyConfiguration.Generations = append(b.OperatorStatusApplyConfiguration.Generations, *values[i])
}
return b
}
diff --git a/operator/applyconfigurations/operator/v1/insightsreport.go b/operator/applyconfigurations/operator/v1/insightsreport.go
index 63de379da..ce89fca0f 100644
--- a/operator/applyconfigurations/operator/v1/insightsreport.go
+++ b/operator/applyconfigurations/operator/v1/insightsreport.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// InsightsReportApplyConfiguration represents a declarative configuration of the InsightsReport type for use
// with apply.
type InsightsReportApplyConfiguration struct {
- DownloadedAt *v1.Time `json:"downloadedAt,omitempty"`
+ DownloadedAt *metav1.Time `json:"downloadedAt,omitempty"`
HealthChecks []HealthCheckApplyConfiguration `json:"healthChecks,omitempty"`
}
@@ -22,7 +22,7 @@ func InsightsReport() *InsightsReportApplyConfiguration {
// WithDownloadedAt sets the DownloadedAt field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DownloadedAt field is set to the value of the last call.
-func (b *InsightsReportApplyConfiguration) WithDownloadedAt(value v1.Time) *InsightsReportApplyConfiguration {
+func (b *InsightsReportApplyConfiguration) WithDownloadedAt(value metav1.Time) *InsightsReportApplyConfiguration {
b.DownloadedAt = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/ipamconfig.go b/operator/applyconfigurations/operator/v1/ipamconfig.go
index ad8f7bfc9..c2cbc3069 100644
--- a/operator/applyconfigurations/operator/v1/ipamconfig.go
+++ b/operator/applyconfigurations/operator/v1/ipamconfig.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// IPAMConfigApplyConfiguration represents a declarative configuration of the IPAMConfig type for use
// with apply.
type IPAMConfigApplyConfiguration struct {
- Type *v1.IPAMType `json:"type,omitempty"`
+ Type *operatorv1.IPAMType `json:"type,omitempty"`
StaticIPAMConfig *StaticIPAMConfigApplyConfiguration `json:"staticIPAMConfig,omitempty"`
}
@@ -22,7 +22,7 @@ func IPAMConfig() *IPAMConfigApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *IPAMConfigApplyConfiguration) WithType(value v1.IPAMType) *IPAMConfigApplyConfiguration {
+func (b *IPAMConfigApplyConfiguration) WithType(value operatorv1.IPAMType) *IPAMConfigApplyConfiguration {
b.Type = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/ipfixconfig.go b/operator/applyconfigurations/operator/v1/ipfixconfig.go
index 52334e2ac..c9bee3327 100644
--- a/operator/applyconfigurations/operator/v1/ipfixconfig.go
+++ b/operator/applyconfigurations/operator/v1/ipfixconfig.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// IPFIXConfigApplyConfiguration represents a declarative configuration of the IPFIXConfig type for use
// with apply.
type IPFIXConfigApplyConfiguration struct {
- Collectors []v1.IPPort `json:"collectors,omitempty"`
+ Collectors []operatorv1.IPPort `json:"collectors,omitempty"`
}
// IPFIXConfigApplyConfiguration constructs a declarative configuration of the IPFIXConfig type for use with
@@ -21,7 +21,7 @@ func IPFIXConfig() *IPFIXConfigApplyConfiguration {
// WithCollectors adds the given value to the Collectors field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Collectors field.
-func (b *IPFIXConfigApplyConfiguration) WithCollectors(values ...v1.IPPort) *IPFIXConfigApplyConfiguration {
+func (b *IPFIXConfigApplyConfiguration) WithCollectors(values ...operatorv1.IPPort) *IPFIXConfigApplyConfiguration {
for i := range values {
b.Collectors = append(b.Collectors, values[i])
}
diff --git a/operator/applyconfigurations/operator/v1/ipsecconfig.go b/operator/applyconfigurations/operator/v1/ipsecconfig.go
index e6e7317fe..eb4fc9207 100644
--- a/operator/applyconfigurations/operator/v1/ipsecconfig.go
+++ b/operator/applyconfigurations/operator/v1/ipsecconfig.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// IPsecConfigApplyConfiguration represents a declarative configuration of the IPsecConfig type for use
// with apply.
type IPsecConfigApplyConfiguration struct {
- Mode *v1.IPsecMode `json:"mode,omitempty"`
+ Mode *operatorv1.IPsecMode `json:"mode,omitempty"`
Full *IPsecFullModeConfigApplyConfiguration `json:"full,omitempty"`
}
@@ -22,7 +22,7 @@ func IPsecConfig() *IPsecConfigApplyConfiguration {
// WithMode sets the Mode field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Mode field is set to the value of the last call.
-func (b *IPsecConfigApplyConfiguration) WithMode(value v1.IPsecMode) *IPsecConfigApplyConfiguration {
+func (b *IPsecConfigApplyConfiguration) WithMode(value operatorv1.IPsecMode) *IPsecConfigApplyConfiguration {
b.Mode = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/ipsecfullmodeconfig.go b/operator/applyconfigurations/operator/v1/ipsecfullmodeconfig.go
index afdb76c28..208a4229c 100644
--- a/operator/applyconfigurations/operator/v1/ipsecfullmodeconfig.go
+++ b/operator/applyconfigurations/operator/v1/ipsecfullmodeconfig.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// IPsecFullModeConfigApplyConfiguration represents a declarative configuration of the IPsecFullModeConfig type for use
// with apply.
type IPsecFullModeConfigApplyConfiguration struct {
- Encapsulation *v1.Encapsulation `json:"encapsulation,omitempty"`
+ Encapsulation *operatorv1.Encapsulation `json:"encapsulation,omitempty"`
}
// IPsecFullModeConfigApplyConfiguration constructs a declarative configuration of the IPsecFullModeConfig type for use with
@@ -21,7 +21,7 @@ func IPsecFullModeConfig() *IPsecFullModeConfigApplyConfiguration {
// WithEncapsulation sets the Encapsulation field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Encapsulation field is set to the value of the last call.
-func (b *IPsecFullModeConfigApplyConfiguration) WithEncapsulation(value v1.Encapsulation) *IPsecFullModeConfigApplyConfiguration {
+func (b *IPsecFullModeConfigApplyConfiguration) WithEncapsulation(value operatorv1.Encapsulation) *IPsecFullModeConfigApplyConfiguration {
b.Encapsulation = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/kubeapiserver.go b/operator/applyconfigurations/operator/v1/kubeapiserver.go
index d4ee463df..8ff4292bc 100644
--- a/operator/applyconfigurations/operator/v1/kubeapiserver.go
+++ b/operator/applyconfigurations/operator/v1/kubeapiserver.go
@@ -3,21 +3,21 @@
package v1
import (
- apioperatorv1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
internal "github.com/openshift/client-go/operator/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// KubeAPIServerApplyConfiguration represents a declarative configuration of the KubeAPIServer type for use
// with apply.
type KubeAPIServerApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *KubeAPIServerSpecApplyConfiguration `json:"spec,omitempty"`
- Status *KubeAPIServerStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *KubeAPIServerSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *KubeAPIServerStatusApplyConfiguration `json:"status,omitempty"`
}
// KubeAPIServer constructs a declarative configuration of the KubeAPIServer type for use with
@@ -41,18 +41,18 @@ func KubeAPIServer(name string) *KubeAPIServerApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractKubeAPIServer(kubeAPIServer *apioperatorv1.KubeAPIServer, fieldManager string) (*KubeAPIServerApplyConfiguration, error) {
+func ExtractKubeAPIServer(kubeAPIServer *operatorv1.KubeAPIServer, fieldManager string) (*KubeAPIServerApplyConfiguration, error) {
return extractKubeAPIServer(kubeAPIServer, fieldManager, "")
}
// ExtractKubeAPIServerStatus is the same as ExtractKubeAPIServer except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractKubeAPIServerStatus(kubeAPIServer *apioperatorv1.KubeAPIServer, fieldManager string) (*KubeAPIServerApplyConfiguration, error) {
+func ExtractKubeAPIServerStatus(kubeAPIServer *operatorv1.KubeAPIServer, fieldManager string) (*KubeAPIServerApplyConfiguration, error) {
return extractKubeAPIServer(kubeAPIServer, fieldManager, "status")
}
-func extractKubeAPIServer(kubeAPIServer *apioperatorv1.KubeAPIServer, fieldManager string, subresource string) (*KubeAPIServerApplyConfiguration, error) {
+func extractKubeAPIServer(kubeAPIServer *operatorv1.KubeAPIServer, fieldManager string, subresource string) (*KubeAPIServerApplyConfiguration, error) {
b := &KubeAPIServerApplyConfiguration{}
err := managedfields.ExtractInto(kubeAPIServer, internal.Parser().Type("com.github.openshift.api.operator.v1.KubeAPIServer"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractKubeAPIServer(kubeAPIServer *apioperatorv1.KubeAPIServer, fieldManag
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *KubeAPIServerApplyConfiguration) WithKind(value string) *KubeAPIServerApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *KubeAPIServerApplyConfiguration) WithKind(value string) *KubeAPIServerA
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *KubeAPIServerApplyConfiguration) WithAPIVersion(value string) *KubeAPIServerApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *KubeAPIServerApplyConfiguration) WithAPIVersion(value string) *KubeAPIS
// If called multiple times, the Name field is set to the value of the last call.
func (b *KubeAPIServerApplyConfiguration) WithName(value string) *KubeAPIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *KubeAPIServerApplyConfiguration) WithName(value string) *KubeAPIServerA
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *KubeAPIServerApplyConfiguration) WithGenerateName(value string) *KubeAPIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *KubeAPIServerApplyConfiguration) WithGenerateName(value string) *KubeAP
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *KubeAPIServerApplyConfiguration) WithNamespace(value string) *KubeAPIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *KubeAPIServerApplyConfiguration) WithNamespace(value string) *KubeAPISe
// If called multiple times, the UID field is set to the value of the last call.
func (b *KubeAPIServerApplyConfiguration) WithUID(value types.UID) *KubeAPIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *KubeAPIServerApplyConfiguration) WithUID(value types.UID) *KubeAPIServe
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *KubeAPIServerApplyConfiguration) WithResourceVersion(value string) *KubeAPIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *KubeAPIServerApplyConfiguration) WithResourceVersion(value string) *Kub
// If called multiple times, the Generation field is set to the value of the last call.
func (b *KubeAPIServerApplyConfiguration) WithGeneration(value int64) *KubeAPIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *KubeAPIServerApplyConfiguration) WithCreationTimestamp(value metav1.Time) *KubeAPIServerApplyConfiguration {
+func (b *KubeAPIServerApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *KubeAPIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *KubeAPIServerApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *KubeAPIServerApplyConfiguration {
+func (b *KubeAPIServerApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *KubeAPIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *KubeAPIServerApplyConfiguration) WithDeletionTimestamp(value metav1.Tim
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *KubeAPIServerApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *KubeAPIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *KubeAPIServerApplyConfiguration) WithDeletionGracePeriodSeconds(value i
// overwriting an existing map entries in Labels field with the same key.
func (b *KubeAPIServerApplyConfiguration) WithLabels(entries map[string]string) *KubeAPIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *KubeAPIServerApplyConfiguration) WithLabels(entries map[string]string)
// overwriting an existing map entries in Annotations field with the same key.
func (b *KubeAPIServerApplyConfiguration) WithAnnotations(entries map[string]string) *KubeAPIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *KubeAPIServerApplyConfiguration) WithAnnotations(entries map[string]str
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *KubeAPIServerApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *KubeAPIServerApplyConfiguration {
+func (b *KubeAPIServerApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *KubeAPIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *KubeAPIServerApplyConfiguration) WithOwnerReferences(values ...*v1.Owne
func (b *KubeAPIServerApplyConfiguration) WithFinalizers(values ...string) *KubeAPIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *KubeAPIServerApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *KubeAPIServerApplyConfiguration) WithStatus(value *KubeAPIServerStatusA
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *KubeAPIServerApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/operator/applyconfigurations/operator/v1/kubeapiserverspec.go b/operator/applyconfigurations/operator/v1/kubeapiserverspec.go
index dba25a5cd..71b60a95b 100644
--- a/operator/applyconfigurations/operator/v1/kubeapiserverspec.go
+++ b/operator/applyconfigurations/operator/v1/kubeapiserverspec.go
@@ -23,7 +23,7 @@ func KubeAPIServerSpec() *KubeAPIServerSpecApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ManagementState field is set to the value of the last call.
func (b *KubeAPIServerSpecApplyConfiguration) WithManagementState(value operatorv1.ManagementState) *KubeAPIServerSpecApplyConfiguration {
- b.ManagementState = &value
+ b.OperatorSpecApplyConfiguration.ManagementState = &value
return b
}
@@ -31,7 +31,7 @@ func (b *KubeAPIServerSpecApplyConfiguration) WithManagementState(value operator
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LogLevel field is set to the value of the last call.
func (b *KubeAPIServerSpecApplyConfiguration) WithLogLevel(value operatorv1.LogLevel) *KubeAPIServerSpecApplyConfiguration {
- b.LogLevel = &value
+ b.OperatorSpecApplyConfiguration.LogLevel = &value
return b
}
@@ -39,7 +39,7 @@ func (b *KubeAPIServerSpecApplyConfiguration) WithLogLevel(value operatorv1.LogL
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the OperatorLogLevel field is set to the value of the last call.
func (b *KubeAPIServerSpecApplyConfiguration) WithOperatorLogLevel(value operatorv1.LogLevel) *KubeAPIServerSpecApplyConfiguration {
- b.OperatorLogLevel = &value
+ b.OperatorSpecApplyConfiguration.OperatorLogLevel = &value
return b
}
@@ -47,7 +47,7 @@ func (b *KubeAPIServerSpecApplyConfiguration) WithOperatorLogLevel(value operato
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the UnsupportedConfigOverrides field is set to the value of the last call.
func (b *KubeAPIServerSpecApplyConfiguration) WithUnsupportedConfigOverrides(value runtime.RawExtension) *KubeAPIServerSpecApplyConfiguration {
- b.UnsupportedConfigOverrides = &value
+ b.OperatorSpecApplyConfiguration.UnsupportedConfigOverrides = &value
return b
}
@@ -55,7 +55,7 @@ func (b *KubeAPIServerSpecApplyConfiguration) WithUnsupportedConfigOverrides(val
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedConfig field is set to the value of the last call.
func (b *KubeAPIServerSpecApplyConfiguration) WithObservedConfig(value runtime.RawExtension) *KubeAPIServerSpecApplyConfiguration {
- b.ObservedConfig = &value
+ b.OperatorSpecApplyConfiguration.ObservedConfig = &value
return b
}
@@ -63,7 +63,7 @@ func (b *KubeAPIServerSpecApplyConfiguration) WithObservedConfig(value runtime.R
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ForceRedeploymentReason field is set to the value of the last call.
func (b *KubeAPIServerSpecApplyConfiguration) WithForceRedeploymentReason(value string) *KubeAPIServerSpecApplyConfiguration {
- b.ForceRedeploymentReason = &value
+ b.StaticPodOperatorSpecApplyConfiguration.ForceRedeploymentReason = &value
return b
}
@@ -71,7 +71,7 @@ func (b *KubeAPIServerSpecApplyConfiguration) WithForceRedeploymentReason(value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the FailedRevisionLimit field is set to the value of the last call.
func (b *KubeAPIServerSpecApplyConfiguration) WithFailedRevisionLimit(value int32) *KubeAPIServerSpecApplyConfiguration {
- b.FailedRevisionLimit = &value
+ b.StaticPodOperatorSpecApplyConfiguration.FailedRevisionLimit = &value
return b
}
@@ -79,6 +79,6 @@ func (b *KubeAPIServerSpecApplyConfiguration) WithFailedRevisionLimit(value int3
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the SucceededRevisionLimit field is set to the value of the last call.
func (b *KubeAPIServerSpecApplyConfiguration) WithSucceededRevisionLimit(value int32) *KubeAPIServerSpecApplyConfiguration {
- b.SucceededRevisionLimit = &value
+ b.StaticPodOperatorSpecApplyConfiguration.SucceededRevisionLimit = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/kubeapiserverstatus.go b/operator/applyconfigurations/operator/v1/kubeapiserverstatus.go
index 033be6dba..ff65c5113 100644
--- a/operator/applyconfigurations/operator/v1/kubeapiserverstatus.go
+++ b/operator/applyconfigurations/operator/v1/kubeapiserverstatus.go
@@ -19,7 +19,7 @@ func KubeAPIServerStatus() *KubeAPIServerStatusApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedGeneration field is set to the value of the last call.
func (b *KubeAPIServerStatusApplyConfiguration) WithObservedGeneration(value int64) *KubeAPIServerStatusApplyConfiguration {
- b.ObservedGeneration = &value
+ b.OperatorStatusApplyConfiguration.ObservedGeneration = &value
return b
}
@@ -31,7 +31,7 @@ func (b *KubeAPIServerStatusApplyConfiguration) WithConditions(values ...*Operat
if values[i] == nil {
panic("nil value passed to WithConditions")
}
- b.Conditions = append(b.Conditions, *values[i])
+ b.OperatorStatusApplyConfiguration.Conditions = append(b.OperatorStatusApplyConfiguration.Conditions, *values[i])
}
return b
}
@@ -40,7 +40,7 @@ func (b *KubeAPIServerStatusApplyConfiguration) WithConditions(values ...*Operat
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Version field is set to the value of the last call.
func (b *KubeAPIServerStatusApplyConfiguration) WithVersion(value string) *KubeAPIServerStatusApplyConfiguration {
- b.Version = &value
+ b.OperatorStatusApplyConfiguration.Version = &value
return b
}
@@ -48,7 +48,7 @@ func (b *KubeAPIServerStatusApplyConfiguration) WithVersion(value string) *KubeA
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ReadyReplicas field is set to the value of the last call.
func (b *KubeAPIServerStatusApplyConfiguration) WithReadyReplicas(value int32) *KubeAPIServerStatusApplyConfiguration {
- b.ReadyReplicas = &value
+ b.OperatorStatusApplyConfiguration.ReadyReplicas = &value
return b
}
@@ -56,7 +56,7 @@ func (b *KubeAPIServerStatusApplyConfiguration) WithReadyReplicas(value int32) *
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LatestAvailableRevision field is set to the value of the last call.
func (b *KubeAPIServerStatusApplyConfiguration) WithLatestAvailableRevision(value int32) *KubeAPIServerStatusApplyConfiguration {
- b.LatestAvailableRevision = &value
+ b.OperatorStatusApplyConfiguration.LatestAvailableRevision = &value
return b
}
@@ -68,7 +68,7 @@ func (b *KubeAPIServerStatusApplyConfiguration) WithGenerations(values ...*Gener
if values[i] == nil {
panic("nil value passed to WithGenerations")
}
- b.Generations = append(b.Generations, *values[i])
+ b.OperatorStatusApplyConfiguration.Generations = append(b.OperatorStatusApplyConfiguration.Generations, *values[i])
}
return b
}
@@ -77,7 +77,7 @@ func (b *KubeAPIServerStatusApplyConfiguration) WithGenerations(values ...*Gener
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LatestAvailableRevisionReason field is set to the value of the last call.
func (b *KubeAPIServerStatusApplyConfiguration) WithLatestAvailableRevisionReason(value string) *KubeAPIServerStatusApplyConfiguration {
- b.LatestAvailableRevisionReason = &value
+ b.StaticPodOperatorStatusApplyConfiguration.LatestAvailableRevisionReason = &value
return b
}
@@ -89,7 +89,7 @@ func (b *KubeAPIServerStatusApplyConfiguration) WithNodeStatuses(values ...*Node
if values[i] == nil {
panic("nil value passed to WithNodeStatuses")
}
- b.NodeStatuses = append(b.NodeStatuses, *values[i])
+ b.StaticPodOperatorStatusApplyConfiguration.NodeStatuses = append(b.StaticPodOperatorStatusApplyConfiguration.NodeStatuses, *values[i])
}
return b
}
diff --git a/operator/applyconfigurations/operator/v1/kubecontrollermanager.go b/operator/applyconfigurations/operator/v1/kubecontrollermanager.go
index d67f73dff..731b6793a 100644
--- a/operator/applyconfigurations/operator/v1/kubecontrollermanager.go
+++ b/operator/applyconfigurations/operator/v1/kubecontrollermanager.go
@@ -3,21 +3,21 @@
package v1
import (
- apioperatorv1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
internal "github.com/openshift/client-go/operator/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// KubeControllerManagerApplyConfiguration represents a declarative configuration of the KubeControllerManager type for use
// with apply.
type KubeControllerManagerApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *KubeControllerManagerSpecApplyConfiguration `json:"spec,omitempty"`
- Status *KubeControllerManagerStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *KubeControllerManagerSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *KubeControllerManagerStatusApplyConfiguration `json:"status,omitempty"`
}
// KubeControllerManager constructs a declarative configuration of the KubeControllerManager type for use with
@@ -41,18 +41,18 @@ func KubeControllerManager(name string) *KubeControllerManagerApplyConfiguration
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractKubeControllerManager(kubeControllerManager *apioperatorv1.KubeControllerManager, fieldManager string) (*KubeControllerManagerApplyConfiguration, error) {
+func ExtractKubeControllerManager(kubeControllerManager *operatorv1.KubeControllerManager, fieldManager string) (*KubeControllerManagerApplyConfiguration, error) {
return extractKubeControllerManager(kubeControllerManager, fieldManager, "")
}
// ExtractKubeControllerManagerStatus is the same as ExtractKubeControllerManager except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractKubeControllerManagerStatus(kubeControllerManager *apioperatorv1.KubeControllerManager, fieldManager string) (*KubeControllerManagerApplyConfiguration, error) {
+func ExtractKubeControllerManagerStatus(kubeControllerManager *operatorv1.KubeControllerManager, fieldManager string) (*KubeControllerManagerApplyConfiguration, error) {
return extractKubeControllerManager(kubeControllerManager, fieldManager, "status")
}
-func extractKubeControllerManager(kubeControllerManager *apioperatorv1.KubeControllerManager, fieldManager string, subresource string) (*KubeControllerManagerApplyConfiguration, error) {
+func extractKubeControllerManager(kubeControllerManager *operatorv1.KubeControllerManager, fieldManager string, subresource string) (*KubeControllerManagerApplyConfiguration, error) {
b := &KubeControllerManagerApplyConfiguration{}
err := managedfields.ExtractInto(kubeControllerManager, internal.Parser().Type("com.github.openshift.api.operator.v1.KubeControllerManager"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractKubeControllerManager(kubeControllerManager *apioperatorv1.KubeContr
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *KubeControllerManagerApplyConfiguration) WithKind(value string) *KubeControllerManagerApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *KubeControllerManagerApplyConfiguration) WithKind(value string) *KubeCo
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *KubeControllerManagerApplyConfiguration) WithAPIVersion(value string) *KubeControllerManagerApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *KubeControllerManagerApplyConfiguration) WithAPIVersion(value string) *
// If called multiple times, the Name field is set to the value of the last call.
func (b *KubeControllerManagerApplyConfiguration) WithName(value string) *KubeControllerManagerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *KubeControllerManagerApplyConfiguration) WithName(value string) *KubeCo
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *KubeControllerManagerApplyConfiguration) WithGenerateName(value string) *KubeControllerManagerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *KubeControllerManagerApplyConfiguration) WithGenerateName(value string)
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *KubeControllerManagerApplyConfiguration) WithNamespace(value string) *KubeControllerManagerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *KubeControllerManagerApplyConfiguration) WithNamespace(value string) *K
// If called multiple times, the UID field is set to the value of the last call.
func (b *KubeControllerManagerApplyConfiguration) WithUID(value types.UID) *KubeControllerManagerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *KubeControllerManagerApplyConfiguration) WithUID(value types.UID) *Kube
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *KubeControllerManagerApplyConfiguration) WithResourceVersion(value string) *KubeControllerManagerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *KubeControllerManagerApplyConfiguration) WithResourceVersion(value stri
// If called multiple times, the Generation field is set to the value of the last call.
func (b *KubeControllerManagerApplyConfiguration) WithGeneration(value int64) *KubeControllerManagerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *KubeControllerManagerApplyConfiguration) WithCreationTimestamp(value metav1.Time) *KubeControllerManagerApplyConfiguration {
+func (b *KubeControllerManagerApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *KubeControllerManagerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *KubeControllerManagerApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *KubeControllerManagerApplyConfiguration {
+func (b *KubeControllerManagerApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *KubeControllerManagerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *KubeControllerManagerApplyConfiguration) WithDeletionTimestamp(value me
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *KubeControllerManagerApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *KubeControllerManagerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *KubeControllerManagerApplyConfiguration) WithDeletionGracePeriodSeconds
// overwriting an existing map entries in Labels field with the same key.
func (b *KubeControllerManagerApplyConfiguration) WithLabels(entries map[string]string) *KubeControllerManagerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *KubeControllerManagerApplyConfiguration) WithLabels(entries map[string]
// overwriting an existing map entries in Annotations field with the same key.
func (b *KubeControllerManagerApplyConfiguration) WithAnnotations(entries map[string]string) *KubeControllerManagerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *KubeControllerManagerApplyConfiguration) WithAnnotations(entries map[st
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *KubeControllerManagerApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *KubeControllerManagerApplyConfiguration {
+func (b *KubeControllerManagerApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *KubeControllerManagerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *KubeControllerManagerApplyConfiguration) WithOwnerReferences(values ...
func (b *KubeControllerManagerApplyConfiguration) WithFinalizers(values ...string) *KubeControllerManagerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *KubeControllerManagerApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *KubeControllerManagerApplyConfiguration) WithStatus(value *KubeControll
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *KubeControllerManagerApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/operator/applyconfigurations/operator/v1/kubecontrollermanagerspec.go b/operator/applyconfigurations/operator/v1/kubecontrollermanagerspec.go
index 2e2923af0..8a5181578 100644
--- a/operator/applyconfigurations/operator/v1/kubecontrollermanagerspec.go
+++ b/operator/applyconfigurations/operator/v1/kubecontrollermanagerspec.go
@@ -24,7 +24,7 @@ func KubeControllerManagerSpec() *KubeControllerManagerSpecApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ManagementState field is set to the value of the last call.
func (b *KubeControllerManagerSpecApplyConfiguration) WithManagementState(value operatorv1.ManagementState) *KubeControllerManagerSpecApplyConfiguration {
- b.ManagementState = &value
+ b.OperatorSpecApplyConfiguration.ManagementState = &value
return b
}
@@ -32,7 +32,7 @@ func (b *KubeControllerManagerSpecApplyConfiguration) WithManagementState(value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LogLevel field is set to the value of the last call.
func (b *KubeControllerManagerSpecApplyConfiguration) WithLogLevel(value operatorv1.LogLevel) *KubeControllerManagerSpecApplyConfiguration {
- b.LogLevel = &value
+ b.OperatorSpecApplyConfiguration.LogLevel = &value
return b
}
@@ -40,7 +40,7 @@ func (b *KubeControllerManagerSpecApplyConfiguration) WithLogLevel(value operato
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the OperatorLogLevel field is set to the value of the last call.
func (b *KubeControllerManagerSpecApplyConfiguration) WithOperatorLogLevel(value operatorv1.LogLevel) *KubeControllerManagerSpecApplyConfiguration {
- b.OperatorLogLevel = &value
+ b.OperatorSpecApplyConfiguration.OperatorLogLevel = &value
return b
}
@@ -48,7 +48,7 @@ func (b *KubeControllerManagerSpecApplyConfiguration) WithOperatorLogLevel(value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the UnsupportedConfigOverrides field is set to the value of the last call.
func (b *KubeControllerManagerSpecApplyConfiguration) WithUnsupportedConfigOverrides(value runtime.RawExtension) *KubeControllerManagerSpecApplyConfiguration {
- b.UnsupportedConfigOverrides = &value
+ b.OperatorSpecApplyConfiguration.UnsupportedConfigOverrides = &value
return b
}
@@ -56,7 +56,7 @@ func (b *KubeControllerManagerSpecApplyConfiguration) WithUnsupportedConfigOverr
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedConfig field is set to the value of the last call.
func (b *KubeControllerManagerSpecApplyConfiguration) WithObservedConfig(value runtime.RawExtension) *KubeControllerManagerSpecApplyConfiguration {
- b.ObservedConfig = &value
+ b.OperatorSpecApplyConfiguration.ObservedConfig = &value
return b
}
@@ -64,7 +64,7 @@ func (b *KubeControllerManagerSpecApplyConfiguration) WithObservedConfig(value r
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ForceRedeploymentReason field is set to the value of the last call.
func (b *KubeControllerManagerSpecApplyConfiguration) WithForceRedeploymentReason(value string) *KubeControllerManagerSpecApplyConfiguration {
- b.ForceRedeploymentReason = &value
+ b.StaticPodOperatorSpecApplyConfiguration.ForceRedeploymentReason = &value
return b
}
@@ -72,7 +72,7 @@ func (b *KubeControllerManagerSpecApplyConfiguration) WithForceRedeploymentReaso
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the FailedRevisionLimit field is set to the value of the last call.
func (b *KubeControllerManagerSpecApplyConfiguration) WithFailedRevisionLimit(value int32) *KubeControllerManagerSpecApplyConfiguration {
- b.FailedRevisionLimit = &value
+ b.StaticPodOperatorSpecApplyConfiguration.FailedRevisionLimit = &value
return b
}
@@ -80,7 +80,7 @@ func (b *KubeControllerManagerSpecApplyConfiguration) WithFailedRevisionLimit(va
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the SucceededRevisionLimit field is set to the value of the last call.
func (b *KubeControllerManagerSpecApplyConfiguration) WithSucceededRevisionLimit(value int32) *KubeControllerManagerSpecApplyConfiguration {
- b.SucceededRevisionLimit = &value
+ b.StaticPodOperatorSpecApplyConfiguration.SucceededRevisionLimit = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/kubecontrollermanagerstatus.go b/operator/applyconfigurations/operator/v1/kubecontrollermanagerstatus.go
index 5c11f6622..1c72dff26 100644
--- a/operator/applyconfigurations/operator/v1/kubecontrollermanagerstatus.go
+++ b/operator/applyconfigurations/operator/v1/kubecontrollermanagerstatus.go
@@ -18,7 +18,7 @@ func KubeControllerManagerStatus() *KubeControllerManagerStatusApplyConfiguratio
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedGeneration field is set to the value of the last call.
func (b *KubeControllerManagerStatusApplyConfiguration) WithObservedGeneration(value int64) *KubeControllerManagerStatusApplyConfiguration {
- b.ObservedGeneration = &value
+ b.OperatorStatusApplyConfiguration.ObservedGeneration = &value
return b
}
@@ -30,7 +30,7 @@ func (b *KubeControllerManagerStatusApplyConfiguration) WithConditions(values ..
if values[i] == nil {
panic("nil value passed to WithConditions")
}
- b.Conditions = append(b.Conditions, *values[i])
+ b.OperatorStatusApplyConfiguration.Conditions = append(b.OperatorStatusApplyConfiguration.Conditions, *values[i])
}
return b
}
@@ -39,7 +39,7 @@ func (b *KubeControllerManagerStatusApplyConfiguration) WithConditions(values ..
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Version field is set to the value of the last call.
func (b *KubeControllerManagerStatusApplyConfiguration) WithVersion(value string) *KubeControllerManagerStatusApplyConfiguration {
- b.Version = &value
+ b.OperatorStatusApplyConfiguration.Version = &value
return b
}
@@ -47,7 +47,7 @@ func (b *KubeControllerManagerStatusApplyConfiguration) WithVersion(value string
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ReadyReplicas field is set to the value of the last call.
func (b *KubeControllerManagerStatusApplyConfiguration) WithReadyReplicas(value int32) *KubeControllerManagerStatusApplyConfiguration {
- b.ReadyReplicas = &value
+ b.OperatorStatusApplyConfiguration.ReadyReplicas = &value
return b
}
@@ -55,7 +55,7 @@ func (b *KubeControllerManagerStatusApplyConfiguration) WithReadyReplicas(value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LatestAvailableRevision field is set to the value of the last call.
func (b *KubeControllerManagerStatusApplyConfiguration) WithLatestAvailableRevision(value int32) *KubeControllerManagerStatusApplyConfiguration {
- b.LatestAvailableRevision = &value
+ b.OperatorStatusApplyConfiguration.LatestAvailableRevision = &value
return b
}
@@ -67,7 +67,7 @@ func (b *KubeControllerManagerStatusApplyConfiguration) WithGenerations(values .
if values[i] == nil {
panic("nil value passed to WithGenerations")
}
- b.Generations = append(b.Generations, *values[i])
+ b.OperatorStatusApplyConfiguration.Generations = append(b.OperatorStatusApplyConfiguration.Generations, *values[i])
}
return b
}
@@ -76,7 +76,7 @@ func (b *KubeControllerManagerStatusApplyConfiguration) WithGenerations(values .
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LatestAvailableRevisionReason field is set to the value of the last call.
func (b *KubeControllerManagerStatusApplyConfiguration) WithLatestAvailableRevisionReason(value string) *KubeControllerManagerStatusApplyConfiguration {
- b.LatestAvailableRevisionReason = &value
+ b.StaticPodOperatorStatusApplyConfiguration.LatestAvailableRevisionReason = &value
return b
}
@@ -88,7 +88,7 @@ func (b *KubeControllerManagerStatusApplyConfiguration) WithNodeStatuses(values
if values[i] == nil {
panic("nil value passed to WithNodeStatuses")
}
- b.NodeStatuses = append(b.NodeStatuses, *values[i])
+ b.StaticPodOperatorStatusApplyConfiguration.NodeStatuses = append(b.StaticPodOperatorStatusApplyConfiguration.NodeStatuses, *values[i])
}
return b
}
diff --git a/operator/applyconfigurations/operator/v1/kubescheduler.go b/operator/applyconfigurations/operator/v1/kubescheduler.go
index 27f969980..77e6ca343 100644
--- a/operator/applyconfigurations/operator/v1/kubescheduler.go
+++ b/operator/applyconfigurations/operator/v1/kubescheduler.go
@@ -3,21 +3,21 @@
package v1
import (
- apioperatorv1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
internal "github.com/openshift/client-go/operator/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// KubeSchedulerApplyConfiguration represents a declarative configuration of the KubeScheduler type for use
// with apply.
type KubeSchedulerApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *KubeSchedulerSpecApplyConfiguration `json:"spec,omitempty"`
- Status *KubeSchedulerStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *KubeSchedulerSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *KubeSchedulerStatusApplyConfiguration `json:"status,omitempty"`
}
// KubeScheduler constructs a declarative configuration of the KubeScheduler type for use with
@@ -41,18 +41,18 @@ func KubeScheduler(name string) *KubeSchedulerApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractKubeScheduler(kubeScheduler *apioperatorv1.KubeScheduler, fieldManager string) (*KubeSchedulerApplyConfiguration, error) {
+func ExtractKubeScheduler(kubeScheduler *operatorv1.KubeScheduler, fieldManager string) (*KubeSchedulerApplyConfiguration, error) {
return extractKubeScheduler(kubeScheduler, fieldManager, "")
}
// ExtractKubeSchedulerStatus is the same as ExtractKubeScheduler except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractKubeSchedulerStatus(kubeScheduler *apioperatorv1.KubeScheduler, fieldManager string) (*KubeSchedulerApplyConfiguration, error) {
+func ExtractKubeSchedulerStatus(kubeScheduler *operatorv1.KubeScheduler, fieldManager string) (*KubeSchedulerApplyConfiguration, error) {
return extractKubeScheduler(kubeScheduler, fieldManager, "status")
}
-func extractKubeScheduler(kubeScheduler *apioperatorv1.KubeScheduler, fieldManager string, subresource string) (*KubeSchedulerApplyConfiguration, error) {
+func extractKubeScheduler(kubeScheduler *operatorv1.KubeScheduler, fieldManager string, subresource string) (*KubeSchedulerApplyConfiguration, error) {
b := &KubeSchedulerApplyConfiguration{}
err := managedfields.ExtractInto(kubeScheduler, internal.Parser().Type("com.github.openshift.api.operator.v1.KubeScheduler"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractKubeScheduler(kubeScheduler *apioperatorv1.KubeScheduler, fieldManag
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *KubeSchedulerApplyConfiguration) WithKind(value string) *KubeSchedulerApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *KubeSchedulerApplyConfiguration) WithKind(value string) *KubeSchedulerA
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *KubeSchedulerApplyConfiguration) WithAPIVersion(value string) *KubeSchedulerApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *KubeSchedulerApplyConfiguration) WithAPIVersion(value string) *KubeSche
// If called multiple times, the Name field is set to the value of the last call.
func (b *KubeSchedulerApplyConfiguration) WithName(value string) *KubeSchedulerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *KubeSchedulerApplyConfiguration) WithName(value string) *KubeSchedulerA
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *KubeSchedulerApplyConfiguration) WithGenerateName(value string) *KubeSchedulerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *KubeSchedulerApplyConfiguration) WithGenerateName(value string) *KubeSc
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *KubeSchedulerApplyConfiguration) WithNamespace(value string) *KubeSchedulerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *KubeSchedulerApplyConfiguration) WithNamespace(value string) *KubeSched
// If called multiple times, the UID field is set to the value of the last call.
func (b *KubeSchedulerApplyConfiguration) WithUID(value types.UID) *KubeSchedulerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *KubeSchedulerApplyConfiguration) WithUID(value types.UID) *KubeSchedule
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *KubeSchedulerApplyConfiguration) WithResourceVersion(value string) *KubeSchedulerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *KubeSchedulerApplyConfiguration) WithResourceVersion(value string) *Kub
// If called multiple times, the Generation field is set to the value of the last call.
func (b *KubeSchedulerApplyConfiguration) WithGeneration(value int64) *KubeSchedulerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *KubeSchedulerApplyConfiguration) WithCreationTimestamp(value metav1.Time) *KubeSchedulerApplyConfiguration {
+func (b *KubeSchedulerApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *KubeSchedulerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *KubeSchedulerApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *KubeSchedulerApplyConfiguration {
+func (b *KubeSchedulerApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *KubeSchedulerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *KubeSchedulerApplyConfiguration) WithDeletionTimestamp(value metav1.Tim
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *KubeSchedulerApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *KubeSchedulerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *KubeSchedulerApplyConfiguration) WithDeletionGracePeriodSeconds(value i
// overwriting an existing map entries in Labels field with the same key.
func (b *KubeSchedulerApplyConfiguration) WithLabels(entries map[string]string) *KubeSchedulerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *KubeSchedulerApplyConfiguration) WithLabels(entries map[string]string)
// overwriting an existing map entries in Annotations field with the same key.
func (b *KubeSchedulerApplyConfiguration) WithAnnotations(entries map[string]string) *KubeSchedulerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *KubeSchedulerApplyConfiguration) WithAnnotations(entries map[string]str
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *KubeSchedulerApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *KubeSchedulerApplyConfiguration {
+func (b *KubeSchedulerApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *KubeSchedulerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *KubeSchedulerApplyConfiguration) WithOwnerReferences(values ...*v1.Owne
func (b *KubeSchedulerApplyConfiguration) WithFinalizers(values ...string) *KubeSchedulerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *KubeSchedulerApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *KubeSchedulerApplyConfiguration) WithStatus(value *KubeSchedulerStatusA
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *KubeSchedulerApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/operator/applyconfigurations/operator/v1/kubeschedulerspec.go b/operator/applyconfigurations/operator/v1/kubeschedulerspec.go
index 44d8eeab2..94bd1d61f 100644
--- a/operator/applyconfigurations/operator/v1/kubeschedulerspec.go
+++ b/operator/applyconfigurations/operator/v1/kubeschedulerspec.go
@@ -23,7 +23,7 @@ func KubeSchedulerSpec() *KubeSchedulerSpecApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ManagementState field is set to the value of the last call.
func (b *KubeSchedulerSpecApplyConfiguration) WithManagementState(value operatorv1.ManagementState) *KubeSchedulerSpecApplyConfiguration {
- b.ManagementState = &value
+ b.OperatorSpecApplyConfiguration.ManagementState = &value
return b
}
@@ -31,7 +31,7 @@ func (b *KubeSchedulerSpecApplyConfiguration) WithManagementState(value operator
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LogLevel field is set to the value of the last call.
func (b *KubeSchedulerSpecApplyConfiguration) WithLogLevel(value operatorv1.LogLevel) *KubeSchedulerSpecApplyConfiguration {
- b.LogLevel = &value
+ b.OperatorSpecApplyConfiguration.LogLevel = &value
return b
}
@@ -39,7 +39,7 @@ func (b *KubeSchedulerSpecApplyConfiguration) WithLogLevel(value operatorv1.LogL
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the OperatorLogLevel field is set to the value of the last call.
func (b *KubeSchedulerSpecApplyConfiguration) WithOperatorLogLevel(value operatorv1.LogLevel) *KubeSchedulerSpecApplyConfiguration {
- b.OperatorLogLevel = &value
+ b.OperatorSpecApplyConfiguration.OperatorLogLevel = &value
return b
}
@@ -47,7 +47,7 @@ func (b *KubeSchedulerSpecApplyConfiguration) WithOperatorLogLevel(value operato
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the UnsupportedConfigOverrides field is set to the value of the last call.
func (b *KubeSchedulerSpecApplyConfiguration) WithUnsupportedConfigOverrides(value runtime.RawExtension) *KubeSchedulerSpecApplyConfiguration {
- b.UnsupportedConfigOverrides = &value
+ b.OperatorSpecApplyConfiguration.UnsupportedConfigOverrides = &value
return b
}
@@ -55,7 +55,7 @@ func (b *KubeSchedulerSpecApplyConfiguration) WithUnsupportedConfigOverrides(val
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedConfig field is set to the value of the last call.
func (b *KubeSchedulerSpecApplyConfiguration) WithObservedConfig(value runtime.RawExtension) *KubeSchedulerSpecApplyConfiguration {
- b.ObservedConfig = &value
+ b.OperatorSpecApplyConfiguration.ObservedConfig = &value
return b
}
@@ -63,7 +63,7 @@ func (b *KubeSchedulerSpecApplyConfiguration) WithObservedConfig(value runtime.R
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ForceRedeploymentReason field is set to the value of the last call.
func (b *KubeSchedulerSpecApplyConfiguration) WithForceRedeploymentReason(value string) *KubeSchedulerSpecApplyConfiguration {
- b.ForceRedeploymentReason = &value
+ b.StaticPodOperatorSpecApplyConfiguration.ForceRedeploymentReason = &value
return b
}
@@ -71,7 +71,7 @@ func (b *KubeSchedulerSpecApplyConfiguration) WithForceRedeploymentReason(value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the FailedRevisionLimit field is set to the value of the last call.
func (b *KubeSchedulerSpecApplyConfiguration) WithFailedRevisionLimit(value int32) *KubeSchedulerSpecApplyConfiguration {
- b.FailedRevisionLimit = &value
+ b.StaticPodOperatorSpecApplyConfiguration.FailedRevisionLimit = &value
return b
}
@@ -79,6 +79,6 @@ func (b *KubeSchedulerSpecApplyConfiguration) WithFailedRevisionLimit(value int3
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the SucceededRevisionLimit field is set to the value of the last call.
func (b *KubeSchedulerSpecApplyConfiguration) WithSucceededRevisionLimit(value int32) *KubeSchedulerSpecApplyConfiguration {
- b.SucceededRevisionLimit = &value
+ b.StaticPodOperatorSpecApplyConfiguration.SucceededRevisionLimit = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/kubeschedulerstatus.go b/operator/applyconfigurations/operator/v1/kubeschedulerstatus.go
index e6784996f..821b4c3f9 100644
--- a/operator/applyconfigurations/operator/v1/kubeschedulerstatus.go
+++ b/operator/applyconfigurations/operator/v1/kubeschedulerstatus.go
@@ -18,7 +18,7 @@ func KubeSchedulerStatus() *KubeSchedulerStatusApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedGeneration field is set to the value of the last call.
func (b *KubeSchedulerStatusApplyConfiguration) WithObservedGeneration(value int64) *KubeSchedulerStatusApplyConfiguration {
- b.ObservedGeneration = &value
+ b.OperatorStatusApplyConfiguration.ObservedGeneration = &value
return b
}
@@ -30,7 +30,7 @@ func (b *KubeSchedulerStatusApplyConfiguration) WithConditions(values ...*Operat
if values[i] == nil {
panic("nil value passed to WithConditions")
}
- b.Conditions = append(b.Conditions, *values[i])
+ b.OperatorStatusApplyConfiguration.Conditions = append(b.OperatorStatusApplyConfiguration.Conditions, *values[i])
}
return b
}
@@ -39,7 +39,7 @@ func (b *KubeSchedulerStatusApplyConfiguration) WithConditions(values ...*Operat
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Version field is set to the value of the last call.
func (b *KubeSchedulerStatusApplyConfiguration) WithVersion(value string) *KubeSchedulerStatusApplyConfiguration {
- b.Version = &value
+ b.OperatorStatusApplyConfiguration.Version = &value
return b
}
@@ -47,7 +47,7 @@ func (b *KubeSchedulerStatusApplyConfiguration) WithVersion(value string) *KubeS
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ReadyReplicas field is set to the value of the last call.
func (b *KubeSchedulerStatusApplyConfiguration) WithReadyReplicas(value int32) *KubeSchedulerStatusApplyConfiguration {
- b.ReadyReplicas = &value
+ b.OperatorStatusApplyConfiguration.ReadyReplicas = &value
return b
}
@@ -55,7 +55,7 @@ func (b *KubeSchedulerStatusApplyConfiguration) WithReadyReplicas(value int32) *
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LatestAvailableRevision field is set to the value of the last call.
func (b *KubeSchedulerStatusApplyConfiguration) WithLatestAvailableRevision(value int32) *KubeSchedulerStatusApplyConfiguration {
- b.LatestAvailableRevision = &value
+ b.OperatorStatusApplyConfiguration.LatestAvailableRevision = &value
return b
}
@@ -67,7 +67,7 @@ func (b *KubeSchedulerStatusApplyConfiguration) WithGenerations(values ...*Gener
if values[i] == nil {
panic("nil value passed to WithGenerations")
}
- b.Generations = append(b.Generations, *values[i])
+ b.OperatorStatusApplyConfiguration.Generations = append(b.OperatorStatusApplyConfiguration.Generations, *values[i])
}
return b
}
@@ -76,7 +76,7 @@ func (b *KubeSchedulerStatusApplyConfiguration) WithGenerations(values ...*Gener
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LatestAvailableRevisionReason field is set to the value of the last call.
func (b *KubeSchedulerStatusApplyConfiguration) WithLatestAvailableRevisionReason(value string) *KubeSchedulerStatusApplyConfiguration {
- b.LatestAvailableRevisionReason = &value
+ b.StaticPodOperatorStatusApplyConfiguration.LatestAvailableRevisionReason = &value
return b
}
@@ -88,7 +88,7 @@ func (b *KubeSchedulerStatusApplyConfiguration) WithNodeStatuses(values ...*Node
if values[i] == nil {
panic("nil value passed to WithNodeStatuses")
}
- b.NodeStatuses = append(b.NodeStatuses, *values[i])
+ b.StaticPodOperatorStatusApplyConfiguration.NodeStatuses = append(b.StaticPodOperatorStatusApplyConfiguration.NodeStatuses, *values[i])
}
return b
}
diff --git a/operator/applyconfigurations/operator/v1/kubestorageversionmigrator.go b/operator/applyconfigurations/operator/v1/kubestorageversionmigrator.go
index d0f693f9d..5c84a133f 100644
--- a/operator/applyconfigurations/operator/v1/kubestorageversionmigrator.go
+++ b/operator/applyconfigurations/operator/v1/kubestorageversionmigrator.go
@@ -3,21 +3,21 @@
package v1
import (
- apioperatorv1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
internal "github.com/openshift/client-go/operator/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// KubeStorageVersionMigratorApplyConfiguration represents a declarative configuration of the KubeStorageVersionMigrator type for use
// with apply.
type KubeStorageVersionMigratorApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *KubeStorageVersionMigratorSpecApplyConfiguration `json:"spec,omitempty"`
- Status *KubeStorageVersionMigratorStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *KubeStorageVersionMigratorSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *KubeStorageVersionMigratorStatusApplyConfiguration `json:"status,omitempty"`
}
// KubeStorageVersionMigrator constructs a declarative configuration of the KubeStorageVersionMigrator type for use with
@@ -41,18 +41,18 @@ func KubeStorageVersionMigrator(name string) *KubeStorageVersionMigratorApplyCon
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractKubeStorageVersionMigrator(kubeStorageVersionMigrator *apioperatorv1.KubeStorageVersionMigrator, fieldManager string) (*KubeStorageVersionMigratorApplyConfiguration, error) {
+func ExtractKubeStorageVersionMigrator(kubeStorageVersionMigrator *operatorv1.KubeStorageVersionMigrator, fieldManager string) (*KubeStorageVersionMigratorApplyConfiguration, error) {
return extractKubeStorageVersionMigrator(kubeStorageVersionMigrator, fieldManager, "")
}
// ExtractKubeStorageVersionMigratorStatus is the same as ExtractKubeStorageVersionMigrator except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractKubeStorageVersionMigratorStatus(kubeStorageVersionMigrator *apioperatorv1.KubeStorageVersionMigrator, fieldManager string) (*KubeStorageVersionMigratorApplyConfiguration, error) {
+func ExtractKubeStorageVersionMigratorStatus(kubeStorageVersionMigrator *operatorv1.KubeStorageVersionMigrator, fieldManager string) (*KubeStorageVersionMigratorApplyConfiguration, error) {
return extractKubeStorageVersionMigrator(kubeStorageVersionMigrator, fieldManager, "status")
}
-func extractKubeStorageVersionMigrator(kubeStorageVersionMigrator *apioperatorv1.KubeStorageVersionMigrator, fieldManager string, subresource string) (*KubeStorageVersionMigratorApplyConfiguration, error) {
+func extractKubeStorageVersionMigrator(kubeStorageVersionMigrator *operatorv1.KubeStorageVersionMigrator, fieldManager string, subresource string) (*KubeStorageVersionMigratorApplyConfiguration, error) {
b := &KubeStorageVersionMigratorApplyConfiguration{}
err := managedfields.ExtractInto(kubeStorageVersionMigrator, internal.Parser().Type("com.github.openshift.api.operator.v1.KubeStorageVersionMigrator"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractKubeStorageVersionMigrator(kubeStorageVersionMigrator *apioperatorv1
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *KubeStorageVersionMigratorApplyConfiguration) WithKind(value string) *KubeStorageVersionMigratorApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *KubeStorageVersionMigratorApplyConfiguration) WithKind(value string) *K
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *KubeStorageVersionMigratorApplyConfiguration) WithAPIVersion(value string) *KubeStorageVersionMigratorApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *KubeStorageVersionMigratorApplyConfiguration) WithAPIVersion(value stri
// If called multiple times, the Name field is set to the value of the last call.
func (b *KubeStorageVersionMigratorApplyConfiguration) WithName(value string) *KubeStorageVersionMigratorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *KubeStorageVersionMigratorApplyConfiguration) WithName(value string) *K
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *KubeStorageVersionMigratorApplyConfiguration) WithGenerateName(value string) *KubeStorageVersionMigratorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *KubeStorageVersionMigratorApplyConfiguration) WithGenerateName(value st
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *KubeStorageVersionMigratorApplyConfiguration) WithNamespace(value string) *KubeStorageVersionMigratorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *KubeStorageVersionMigratorApplyConfiguration) WithNamespace(value strin
// If called multiple times, the UID field is set to the value of the last call.
func (b *KubeStorageVersionMigratorApplyConfiguration) WithUID(value types.UID) *KubeStorageVersionMigratorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *KubeStorageVersionMigratorApplyConfiguration) WithUID(value types.UID)
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *KubeStorageVersionMigratorApplyConfiguration) WithResourceVersion(value string) *KubeStorageVersionMigratorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *KubeStorageVersionMigratorApplyConfiguration) WithResourceVersion(value
// If called multiple times, the Generation field is set to the value of the last call.
func (b *KubeStorageVersionMigratorApplyConfiguration) WithGeneration(value int64) *KubeStorageVersionMigratorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *KubeStorageVersionMigratorApplyConfiguration) WithCreationTimestamp(value metav1.Time) *KubeStorageVersionMigratorApplyConfiguration {
+func (b *KubeStorageVersionMigratorApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *KubeStorageVersionMigratorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *KubeStorageVersionMigratorApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *KubeStorageVersionMigratorApplyConfiguration {
+func (b *KubeStorageVersionMigratorApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *KubeStorageVersionMigratorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *KubeStorageVersionMigratorApplyConfiguration) WithDeletionTimestamp(val
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *KubeStorageVersionMigratorApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *KubeStorageVersionMigratorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *KubeStorageVersionMigratorApplyConfiguration) WithDeletionGracePeriodSe
// overwriting an existing map entries in Labels field with the same key.
func (b *KubeStorageVersionMigratorApplyConfiguration) WithLabels(entries map[string]string) *KubeStorageVersionMigratorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *KubeStorageVersionMigratorApplyConfiguration) WithLabels(entries map[st
// overwriting an existing map entries in Annotations field with the same key.
func (b *KubeStorageVersionMigratorApplyConfiguration) WithAnnotations(entries map[string]string) *KubeStorageVersionMigratorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *KubeStorageVersionMigratorApplyConfiguration) WithAnnotations(entries m
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *KubeStorageVersionMigratorApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *KubeStorageVersionMigratorApplyConfiguration {
+func (b *KubeStorageVersionMigratorApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *KubeStorageVersionMigratorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *KubeStorageVersionMigratorApplyConfiguration) WithOwnerReferences(value
func (b *KubeStorageVersionMigratorApplyConfiguration) WithFinalizers(values ...string) *KubeStorageVersionMigratorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *KubeStorageVersionMigratorApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *KubeStorageVersionMigratorApplyConfiguration) WithStatus(value *KubeSto
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *KubeStorageVersionMigratorApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/operator/applyconfigurations/operator/v1/kubestorageversionmigratorspec.go b/operator/applyconfigurations/operator/v1/kubestorageversionmigratorspec.go
index 94e557659..6acfcb82b 100644
--- a/operator/applyconfigurations/operator/v1/kubestorageversionmigratorspec.go
+++ b/operator/applyconfigurations/operator/v1/kubestorageversionmigratorspec.go
@@ -23,7 +23,7 @@ func KubeStorageVersionMigratorSpec() *KubeStorageVersionMigratorSpecApplyConfig
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ManagementState field is set to the value of the last call.
func (b *KubeStorageVersionMigratorSpecApplyConfiguration) WithManagementState(value operatorv1.ManagementState) *KubeStorageVersionMigratorSpecApplyConfiguration {
- b.ManagementState = &value
+ b.OperatorSpecApplyConfiguration.ManagementState = &value
return b
}
@@ -31,7 +31,7 @@ func (b *KubeStorageVersionMigratorSpecApplyConfiguration) WithManagementState(v
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LogLevel field is set to the value of the last call.
func (b *KubeStorageVersionMigratorSpecApplyConfiguration) WithLogLevel(value operatorv1.LogLevel) *KubeStorageVersionMigratorSpecApplyConfiguration {
- b.LogLevel = &value
+ b.OperatorSpecApplyConfiguration.LogLevel = &value
return b
}
@@ -39,7 +39,7 @@ func (b *KubeStorageVersionMigratorSpecApplyConfiguration) WithLogLevel(value op
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the OperatorLogLevel field is set to the value of the last call.
func (b *KubeStorageVersionMigratorSpecApplyConfiguration) WithOperatorLogLevel(value operatorv1.LogLevel) *KubeStorageVersionMigratorSpecApplyConfiguration {
- b.OperatorLogLevel = &value
+ b.OperatorSpecApplyConfiguration.OperatorLogLevel = &value
return b
}
@@ -47,7 +47,7 @@ func (b *KubeStorageVersionMigratorSpecApplyConfiguration) WithOperatorLogLevel(
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the UnsupportedConfigOverrides field is set to the value of the last call.
func (b *KubeStorageVersionMigratorSpecApplyConfiguration) WithUnsupportedConfigOverrides(value runtime.RawExtension) *KubeStorageVersionMigratorSpecApplyConfiguration {
- b.UnsupportedConfigOverrides = &value
+ b.OperatorSpecApplyConfiguration.UnsupportedConfigOverrides = &value
return b
}
@@ -55,6 +55,6 @@ func (b *KubeStorageVersionMigratorSpecApplyConfiguration) WithUnsupportedConfig
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedConfig field is set to the value of the last call.
func (b *KubeStorageVersionMigratorSpecApplyConfiguration) WithObservedConfig(value runtime.RawExtension) *KubeStorageVersionMigratorSpecApplyConfiguration {
- b.ObservedConfig = &value
+ b.OperatorSpecApplyConfiguration.ObservedConfig = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/kubestorageversionmigratorstatus.go b/operator/applyconfigurations/operator/v1/kubestorageversionmigratorstatus.go
index 438067c25..cad8e2f76 100644
--- a/operator/applyconfigurations/operator/v1/kubestorageversionmigratorstatus.go
+++ b/operator/applyconfigurations/operator/v1/kubestorageversionmigratorstatus.go
@@ -18,7 +18,7 @@ func KubeStorageVersionMigratorStatus() *KubeStorageVersionMigratorStatusApplyCo
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedGeneration field is set to the value of the last call.
func (b *KubeStorageVersionMigratorStatusApplyConfiguration) WithObservedGeneration(value int64) *KubeStorageVersionMigratorStatusApplyConfiguration {
- b.ObservedGeneration = &value
+ b.OperatorStatusApplyConfiguration.ObservedGeneration = &value
return b
}
@@ -30,7 +30,7 @@ func (b *KubeStorageVersionMigratorStatusApplyConfiguration) WithConditions(valu
if values[i] == nil {
panic("nil value passed to WithConditions")
}
- b.Conditions = append(b.Conditions, *values[i])
+ b.OperatorStatusApplyConfiguration.Conditions = append(b.OperatorStatusApplyConfiguration.Conditions, *values[i])
}
return b
}
@@ -39,7 +39,7 @@ func (b *KubeStorageVersionMigratorStatusApplyConfiguration) WithConditions(valu
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Version field is set to the value of the last call.
func (b *KubeStorageVersionMigratorStatusApplyConfiguration) WithVersion(value string) *KubeStorageVersionMigratorStatusApplyConfiguration {
- b.Version = &value
+ b.OperatorStatusApplyConfiguration.Version = &value
return b
}
@@ -47,7 +47,7 @@ func (b *KubeStorageVersionMigratorStatusApplyConfiguration) WithVersion(value s
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ReadyReplicas field is set to the value of the last call.
func (b *KubeStorageVersionMigratorStatusApplyConfiguration) WithReadyReplicas(value int32) *KubeStorageVersionMigratorStatusApplyConfiguration {
- b.ReadyReplicas = &value
+ b.OperatorStatusApplyConfiguration.ReadyReplicas = &value
return b
}
@@ -55,7 +55,7 @@ func (b *KubeStorageVersionMigratorStatusApplyConfiguration) WithReadyReplicas(v
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LatestAvailableRevision field is set to the value of the last call.
func (b *KubeStorageVersionMigratorStatusApplyConfiguration) WithLatestAvailableRevision(value int32) *KubeStorageVersionMigratorStatusApplyConfiguration {
- b.LatestAvailableRevision = &value
+ b.OperatorStatusApplyConfiguration.LatestAvailableRevision = &value
return b
}
@@ -67,7 +67,7 @@ func (b *KubeStorageVersionMigratorStatusApplyConfiguration) WithGenerations(val
if values[i] == nil {
panic("nil value passed to WithGenerations")
}
- b.Generations = append(b.Generations, *values[i])
+ b.OperatorStatusApplyConfiguration.Generations = append(b.OperatorStatusApplyConfiguration.Generations, *values[i])
}
return b
}
diff --git a/operator/applyconfigurations/operator/v1/loadbalancerstrategy.go b/operator/applyconfigurations/operator/v1/loadbalancerstrategy.go
index 46941714c..b8e83a02c 100644
--- a/operator/applyconfigurations/operator/v1/loadbalancerstrategy.go
+++ b/operator/applyconfigurations/operator/v1/loadbalancerstrategy.go
@@ -3,16 +3,16 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// LoadBalancerStrategyApplyConfiguration represents a declarative configuration of the LoadBalancerStrategy type for use
// with apply.
type LoadBalancerStrategyApplyConfiguration struct {
- Scope *v1.LoadBalancerScope `json:"scope,omitempty"`
- AllowedSourceRanges []v1.CIDR `json:"allowedSourceRanges,omitempty"`
+ Scope *operatorv1.LoadBalancerScope `json:"scope,omitempty"`
+ AllowedSourceRanges []operatorv1.CIDR `json:"allowedSourceRanges,omitempty"`
ProviderParameters *ProviderLoadBalancerParametersApplyConfiguration `json:"providerParameters,omitempty"`
- DNSManagementPolicy *v1.LoadBalancerDNSManagementPolicy `json:"dnsManagementPolicy,omitempty"`
+ DNSManagementPolicy *operatorv1.LoadBalancerDNSManagementPolicy `json:"dnsManagementPolicy,omitempty"`
}
// LoadBalancerStrategyApplyConfiguration constructs a declarative configuration of the LoadBalancerStrategy type for use with
@@ -24,7 +24,7 @@ func LoadBalancerStrategy() *LoadBalancerStrategyApplyConfiguration {
// WithScope sets the Scope field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Scope field is set to the value of the last call.
-func (b *LoadBalancerStrategyApplyConfiguration) WithScope(value v1.LoadBalancerScope) *LoadBalancerStrategyApplyConfiguration {
+func (b *LoadBalancerStrategyApplyConfiguration) WithScope(value operatorv1.LoadBalancerScope) *LoadBalancerStrategyApplyConfiguration {
b.Scope = &value
return b
}
@@ -32,7 +32,7 @@ func (b *LoadBalancerStrategyApplyConfiguration) WithScope(value v1.LoadBalancer
// WithAllowedSourceRanges adds the given value to the AllowedSourceRanges field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the AllowedSourceRanges field.
-func (b *LoadBalancerStrategyApplyConfiguration) WithAllowedSourceRanges(values ...v1.CIDR) *LoadBalancerStrategyApplyConfiguration {
+func (b *LoadBalancerStrategyApplyConfiguration) WithAllowedSourceRanges(values ...operatorv1.CIDR) *LoadBalancerStrategyApplyConfiguration {
for i := range values {
b.AllowedSourceRanges = append(b.AllowedSourceRanges, values[i])
}
@@ -50,7 +50,7 @@ func (b *LoadBalancerStrategyApplyConfiguration) WithProviderParameters(value *P
// WithDNSManagementPolicy sets the DNSManagementPolicy field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DNSManagementPolicy field is set to the value of the last call.
-func (b *LoadBalancerStrategyApplyConfiguration) WithDNSManagementPolicy(value v1.LoadBalancerDNSManagementPolicy) *LoadBalancerStrategyApplyConfiguration {
+func (b *LoadBalancerStrategyApplyConfiguration) WithDNSManagementPolicy(value operatorv1.LoadBalancerDNSManagementPolicy) *LoadBalancerStrategyApplyConfiguration {
b.DNSManagementPolicy = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/loggingdestination.go b/operator/applyconfigurations/operator/v1/loggingdestination.go
index de06e9cc4..36a7bd5c5 100644
--- a/operator/applyconfigurations/operator/v1/loggingdestination.go
+++ b/operator/applyconfigurations/operator/v1/loggingdestination.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// LoggingDestinationApplyConfiguration represents a declarative configuration of the LoggingDestination type for use
// with apply.
type LoggingDestinationApplyConfiguration struct {
- Type *v1.LoggingDestinationType `json:"type,omitempty"`
+ Type *operatorv1.LoggingDestinationType `json:"type,omitempty"`
Syslog *SyslogLoggingDestinationParametersApplyConfiguration `json:"syslog,omitempty"`
Container *ContainerLoggingDestinationParametersApplyConfiguration `json:"container,omitempty"`
}
@@ -23,7 +23,7 @@ func LoggingDestination() *LoggingDestinationApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *LoggingDestinationApplyConfiguration) WithType(value v1.LoggingDestinationType) *LoggingDestinationApplyConfiguration {
+func (b *LoggingDestinationApplyConfiguration) WithType(value operatorv1.LoggingDestinationType) *LoggingDestinationApplyConfiguration {
b.Type = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/machineconfiguration.go b/operator/applyconfigurations/operator/v1/machineconfiguration.go
index 36b1d6d23..35d2b867e 100644
--- a/operator/applyconfigurations/operator/v1/machineconfiguration.go
+++ b/operator/applyconfigurations/operator/v1/machineconfiguration.go
@@ -3,21 +3,21 @@
package v1
import (
- apioperatorv1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
internal "github.com/openshift/client-go/operator/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// MachineConfigurationApplyConfiguration represents a declarative configuration of the MachineConfiguration type for use
// with apply.
type MachineConfigurationApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *MachineConfigurationSpecApplyConfiguration `json:"spec,omitempty"`
- Status *MachineConfigurationStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *MachineConfigurationSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *MachineConfigurationStatusApplyConfiguration `json:"status,omitempty"`
}
// MachineConfiguration constructs a declarative configuration of the MachineConfiguration type for use with
@@ -41,18 +41,18 @@ func MachineConfiguration(name string) *MachineConfigurationApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractMachineConfiguration(machineConfiguration *apioperatorv1.MachineConfiguration, fieldManager string) (*MachineConfigurationApplyConfiguration, error) {
+func ExtractMachineConfiguration(machineConfiguration *operatorv1.MachineConfiguration, fieldManager string) (*MachineConfigurationApplyConfiguration, error) {
return extractMachineConfiguration(machineConfiguration, fieldManager, "")
}
// ExtractMachineConfigurationStatus is the same as ExtractMachineConfiguration except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractMachineConfigurationStatus(machineConfiguration *apioperatorv1.MachineConfiguration, fieldManager string) (*MachineConfigurationApplyConfiguration, error) {
+func ExtractMachineConfigurationStatus(machineConfiguration *operatorv1.MachineConfiguration, fieldManager string) (*MachineConfigurationApplyConfiguration, error) {
return extractMachineConfiguration(machineConfiguration, fieldManager, "status")
}
-func extractMachineConfiguration(machineConfiguration *apioperatorv1.MachineConfiguration, fieldManager string, subresource string) (*MachineConfigurationApplyConfiguration, error) {
+func extractMachineConfiguration(machineConfiguration *operatorv1.MachineConfiguration, fieldManager string, subresource string) (*MachineConfigurationApplyConfiguration, error) {
b := &MachineConfigurationApplyConfiguration{}
err := managedfields.ExtractInto(machineConfiguration, internal.Parser().Type("com.github.openshift.api.operator.v1.MachineConfiguration"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractMachineConfiguration(machineConfiguration *apioperatorv1.MachineConf
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *MachineConfigurationApplyConfiguration) WithKind(value string) *MachineConfigurationApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *MachineConfigurationApplyConfiguration) WithKind(value string) *Machine
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *MachineConfigurationApplyConfiguration) WithAPIVersion(value string) *MachineConfigurationApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *MachineConfigurationApplyConfiguration) WithAPIVersion(value string) *M
// If called multiple times, the Name field is set to the value of the last call.
func (b *MachineConfigurationApplyConfiguration) WithName(value string) *MachineConfigurationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *MachineConfigurationApplyConfiguration) WithName(value string) *Machine
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *MachineConfigurationApplyConfiguration) WithGenerateName(value string) *MachineConfigurationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *MachineConfigurationApplyConfiguration) WithGenerateName(value string)
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *MachineConfigurationApplyConfiguration) WithNamespace(value string) *MachineConfigurationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *MachineConfigurationApplyConfiguration) WithNamespace(value string) *Ma
// If called multiple times, the UID field is set to the value of the last call.
func (b *MachineConfigurationApplyConfiguration) WithUID(value types.UID) *MachineConfigurationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *MachineConfigurationApplyConfiguration) WithUID(value types.UID) *Machi
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *MachineConfigurationApplyConfiguration) WithResourceVersion(value string) *MachineConfigurationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *MachineConfigurationApplyConfiguration) WithResourceVersion(value strin
// If called multiple times, the Generation field is set to the value of the last call.
func (b *MachineConfigurationApplyConfiguration) WithGeneration(value int64) *MachineConfigurationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *MachineConfigurationApplyConfiguration) WithCreationTimestamp(value metav1.Time) *MachineConfigurationApplyConfiguration {
+func (b *MachineConfigurationApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *MachineConfigurationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *MachineConfigurationApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *MachineConfigurationApplyConfiguration {
+func (b *MachineConfigurationApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *MachineConfigurationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *MachineConfigurationApplyConfiguration) WithDeletionTimestamp(value met
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *MachineConfigurationApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *MachineConfigurationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *MachineConfigurationApplyConfiguration) WithDeletionGracePeriodSeconds(
// overwriting an existing map entries in Labels field with the same key.
func (b *MachineConfigurationApplyConfiguration) WithLabels(entries map[string]string) *MachineConfigurationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *MachineConfigurationApplyConfiguration) WithLabels(entries map[string]s
// overwriting an existing map entries in Annotations field with the same key.
func (b *MachineConfigurationApplyConfiguration) WithAnnotations(entries map[string]string) *MachineConfigurationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *MachineConfigurationApplyConfiguration) WithAnnotations(entries map[str
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *MachineConfigurationApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *MachineConfigurationApplyConfiguration {
+func (b *MachineConfigurationApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *MachineConfigurationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *MachineConfigurationApplyConfiguration) WithOwnerReferences(values ...*
func (b *MachineConfigurationApplyConfiguration) WithFinalizers(values ...string) *MachineConfigurationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *MachineConfigurationApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *MachineConfigurationApplyConfiguration) WithStatus(value *MachineConfig
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *MachineConfigurationApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/operator/applyconfigurations/operator/v1/machineconfigurationspec.go b/operator/applyconfigurations/operator/v1/machineconfigurationspec.go
index 416406329..cee3c69fc 100644
--- a/operator/applyconfigurations/operator/v1/machineconfigurationspec.go
+++ b/operator/applyconfigurations/operator/v1/machineconfigurationspec.go
@@ -25,7 +25,7 @@ func MachineConfigurationSpec() *MachineConfigurationSpecApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ManagementState field is set to the value of the last call.
func (b *MachineConfigurationSpecApplyConfiguration) WithManagementState(value operatorv1.ManagementState) *MachineConfigurationSpecApplyConfiguration {
- b.ManagementState = &value
+ b.OperatorSpecApplyConfiguration.ManagementState = &value
return b
}
@@ -33,7 +33,7 @@ func (b *MachineConfigurationSpecApplyConfiguration) WithManagementState(value o
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LogLevel field is set to the value of the last call.
func (b *MachineConfigurationSpecApplyConfiguration) WithLogLevel(value operatorv1.LogLevel) *MachineConfigurationSpecApplyConfiguration {
- b.LogLevel = &value
+ b.OperatorSpecApplyConfiguration.LogLevel = &value
return b
}
@@ -41,7 +41,7 @@ func (b *MachineConfigurationSpecApplyConfiguration) WithLogLevel(value operator
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the OperatorLogLevel field is set to the value of the last call.
func (b *MachineConfigurationSpecApplyConfiguration) WithOperatorLogLevel(value operatorv1.LogLevel) *MachineConfigurationSpecApplyConfiguration {
- b.OperatorLogLevel = &value
+ b.OperatorSpecApplyConfiguration.OperatorLogLevel = &value
return b
}
@@ -49,7 +49,7 @@ func (b *MachineConfigurationSpecApplyConfiguration) WithOperatorLogLevel(value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the UnsupportedConfigOverrides field is set to the value of the last call.
func (b *MachineConfigurationSpecApplyConfiguration) WithUnsupportedConfigOverrides(value runtime.RawExtension) *MachineConfigurationSpecApplyConfiguration {
- b.UnsupportedConfigOverrides = &value
+ b.OperatorSpecApplyConfiguration.UnsupportedConfigOverrides = &value
return b
}
@@ -57,7 +57,7 @@ func (b *MachineConfigurationSpecApplyConfiguration) WithUnsupportedConfigOverri
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedConfig field is set to the value of the last call.
func (b *MachineConfigurationSpecApplyConfiguration) WithObservedConfig(value runtime.RawExtension) *MachineConfigurationSpecApplyConfiguration {
- b.ObservedConfig = &value
+ b.OperatorSpecApplyConfiguration.ObservedConfig = &value
return b
}
@@ -65,7 +65,7 @@ func (b *MachineConfigurationSpecApplyConfiguration) WithObservedConfig(value ru
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ForceRedeploymentReason field is set to the value of the last call.
func (b *MachineConfigurationSpecApplyConfiguration) WithForceRedeploymentReason(value string) *MachineConfigurationSpecApplyConfiguration {
- b.ForceRedeploymentReason = &value
+ b.StaticPodOperatorSpecApplyConfiguration.ForceRedeploymentReason = &value
return b
}
@@ -73,7 +73,7 @@ func (b *MachineConfigurationSpecApplyConfiguration) WithForceRedeploymentReason
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the FailedRevisionLimit field is set to the value of the last call.
func (b *MachineConfigurationSpecApplyConfiguration) WithFailedRevisionLimit(value int32) *MachineConfigurationSpecApplyConfiguration {
- b.FailedRevisionLimit = &value
+ b.StaticPodOperatorSpecApplyConfiguration.FailedRevisionLimit = &value
return b
}
@@ -81,7 +81,7 @@ func (b *MachineConfigurationSpecApplyConfiguration) WithFailedRevisionLimit(val
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the SucceededRevisionLimit field is set to the value of the last call.
func (b *MachineConfigurationSpecApplyConfiguration) WithSucceededRevisionLimit(value int32) *MachineConfigurationSpecApplyConfiguration {
- b.SucceededRevisionLimit = &value
+ b.StaticPodOperatorSpecApplyConfiguration.SucceededRevisionLimit = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/machineconfigurationstatus.go b/operator/applyconfigurations/operator/v1/machineconfigurationstatus.go
index 95956ac09..ad3884788 100644
--- a/operator/applyconfigurations/operator/v1/machineconfigurationstatus.go
+++ b/operator/applyconfigurations/operator/v1/machineconfigurationstatus.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// MachineConfigurationStatusApplyConfiguration represents a declarative configuration of the MachineConfigurationStatus type for use
// with apply.
type MachineConfigurationStatusApplyConfiguration struct {
ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
- Conditions []v1.ConditionApplyConfiguration `json:"conditions,omitempty"`
+ Conditions []metav1.ConditionApplyConfiguration `json:"conditions,omitempty"`
NodeDisruptionPolicyStatus *NodeDisruptionPolicyStatusApplyConfiguration `json:"nodeDisruptionPolicyStatus,omitempty"`
}
@@ -31,7 +31,7 @@ func (b *MachineConfigurationStatusApplyConfiguration) WithObservedGeneration(va
// WithConditions adds the given value to the Conditions field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Conditions field.
-func (b *MachineConfigurationStatusApplyConfiguration) WithConditions(values ...*v1.ConditionApplyConfiguration) *MachineConfigurationStatusApplyConfiguration {
+func (b *MachineConfigurationStatusApplyConfiguration) WithConditions(values ...*metav1.ConditionApplyConfiguration) *MachineConfigurationStatusApplyConfiguration {
for i := range values {
if values[i] == nil {
panic("nil value passed to WithConditions")
diff --git a/operator/applyconfigurations/operator/v1/machinemanager.go b/operator/applyconfigurations/operator/v1/machinemanager.go
index 2764cecdc..d4a9f3c2c 100644
--- a/operator/applyconfigurations/operator/v1/machinemanager.go
+++ b/operator/applyconfigurations/operator/v1/machinemanager.go
@@ -3,15 +3,15 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// MachineManagerApplyConfiguration represents a declarative configuration of the MachineManager type for use
// with apply.
type MachineManagerApplyConfiguration struct {
- Resource *v1.MachineManagerMachineSetsResourceType `json:"resource,omitempty"`
- APIGroup *v1.MachineManagerMachineSetsAPIGroupType `json:"apiGroup,omitempty"`
- Selection *MachineManagerSelectorApplyConfiguration `json:"selection,omitempty"`
+ Resource *operatorv1.MachineManagerMachineSetsResourceType `json:"resource,omitempty"`
+ APIGroup *operatorv1.MachineManagerMachineSetsAPIGroupType `json:"apiGroup,omitempty"`
+ Selection *MachineManagerSelectorApplyConfiguration `json:"selection,omitempty"`
}
// MachineManagerApplyConfiguration constructs a declarative configuration of the MachineManager type for use with
@@ -23,7 +23,7 @@ func MachineManager() *MachineManagerApplyConfiguration {
// WithResource sets the Resource field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Resource field is set to the value of the last call.
-func (b *MachineManagerApplyConfiguration) WithResource(value v1.MachineManagerMachineSetsResourceType) *MachineManagerApplyConfiguration {
+func (b *MachineManagerApplyConfiguration) WithResource(value operatorv1.MachineManagerMachineSetsResourceType) *MachineManagerApplyConfiguration {
b.Resource = &value
return b
}
@@ -31,7 +31,7 @@ func (b *MachineManagerApplyConfiguration) WithResource(value v1.MachineManagerM
// WithAPIGroup sets the APIGroup field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIGroup field is set to the value of the last call.
-func (b *MachineManagerApplyConfiguration) WithAPIGroup(value v1.MachineManagerMachineSetsAPIGroupType) *MachineManagerApplyConfiguration {
+func (b *MachineManagerApplyConfiguration) WithAPIGroup(value operatorv1.MachineManagerMachineSetsAPIGroupType) *MachineManagerApplyConfiguration {
b.APIGroup = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/machinemanagerselector.go b/operator/applyconfigurations/operator/v1/machinemanagerselector.go
index ef88c772f..3bb44f21c 100644
--- a/operator/applyconfigurations/operator/v1/machinemanagerselector.go
+++ b/operator/applyconfigurations/operator/v1/machinemanagerselector.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// MachineManagerSelectorApplyConfiguration represents a declarative configuration of the MachineManagerSelector type for use
// with apply.
type MachineManagerSelectorApplyConfiguration struct {
- Mode *v1.MachineManagerSelectorMode `json:"mode,omitempty"`
- Partial *PartialSelectorApplyConfiguration `json:"partial,omitempty"`
+ Mode *operatorv1.MachineManagerSelectorMode `json:"mode,omitempty"`
+ Partial *PartialSelectorApplyConfiguration `json:"partial,omitempty"`
}
// MachineManagerSelectorApplyConfiguration constructs a declarative configuration of the MachineManagerSelector type for use with
@@ -22,7 +22,7 @@ func MachineManagerSelector() *MachineManagerSelectorApplyConfiguration {
// WithMode sets the Mode field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Mode field is set to the value of the last call.
-func (b *MachineManagerSelectorApplyConfiguration) WithMode(value v1.MachineManagerSelectorMode) *MachineManagerSelectorApplyConfiguration {
+func (b *MachineManagerSelectorApplyConfiguration) WithMode(value operatorv1.MachineManagerSelectorMode) *MachineManagerSelectorApplyConfiguration {
b.Mode = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/netflowconfig.go b/operator/applyconfigurations/operator/v1/netflowconfig.go
index 34d2bb365..868906043 100644
--- a/operator/applyconfigurations/operator/v1/netflowconfig.go
+++ b/operator/applyconfigurations/operator/v1/netflowconfig.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// NetFlowConfigApplyConfiguration represents a declarative configuration of the NetFlowConfig type for use
// with apply.
type NetFlowConfigApplyConfiguration struct {
- Collectors []v1.IPPort `json:"collectors,omitempty"`
+ Collectors []operatorv1.IPPort `json:"collectors,omitempty"`
}
// NetFlowConfigApplyConfiguration constructs a declarative configuration of the NetFlowConfig type for use with
@@ -21,7 +21,7 @@ func NetFlowConfig() *NetFlowConfigApplyConfiguration {
// WithCollectors adds the given value to the Collectors field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Collectors field.
-func (b *NetFlowConfigApplyConfiguration) WithCollectors(values ...v1.IPPort) *NetFlowConfigApplyConfiguration {
+func (b *NetFlowConfigApplyConfiguration) WithCollectors(values ...operatorv1.IPPort) *NetFlowConfigApplyConfiguration {
for i := range values {
b.Collectors = append(b.Collectors, values[i])
}
diff --git a/operator/applyconfigurations/operator/v1/network.go b/operator/applyconfigurations/operator/v1/network.go
index fd66e0065..0bdf453af 100644
--- a/operator/applyconfigurations/operator/v1/network.go
+++ b/operator/applyconfigurations/operator/v1/network.go
@@ -3,21 +3,21 @@
package v1
import (
- apioperatorv1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
internal "github.com/openshift/client-go/operator/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// NetworkApplyConfiguration represents a declarative configuration of the Network type for use
// with apply.
type NetworkApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *NetworkSpecApplyConfiguration `json:"spec,omitempty"`
- Status *NetworkStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *NetworkSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *NetworkStatusApplyConfiguration `json:"status,omitempty"`
}
// Network constructs a declarative configuration of the Network type for use with
@@ -41,18 +41,18 @@ func Network(name string) *NetworkApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractNetwork(network *apioperatorv1.Network, fieldManager string) (*NetworkApplyConfiguration, error) {
+func ExtractNetwork(network *operatorv1.Network, fieldManager string) (*NetworkApplyConfiguration, error) {
return extractNetwork(network, fieldManager, "")
}
// ExtractNetworkStatus is the same as ExtractNetwork except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractNetworkStatus(network *apioperatorv1.Network, fieldManager string) (*NetworkApplyConfiguration, error) {
+func ExtractNetworkStatus(network *operatorv1.Network, fieldManager string) (*NetworkApplyConfiguration, error) {
return extractNetwork(network, fieldManager, "status")
}
-func extractNetwork(network *apioperatorv1.Network, fieldManager string, subresource string) (*NetworkApplyConfiguration, error) {
+func extractNetwork(network *operatorv1.Network, fieldManager string, subresource string) (*NetworkApplyConfiguration, error) {
b := &NetworkApplyConfiguration{}
err := managedfields.ExtractInto(network, internal.Parser().Type("com.github.openshift.api.operator.v1.Network"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractNetwork(network *apioperatorv1.Network, fieldManager string, subreso
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *NetworkApplyConfiguration) WithKind(value string) *NetworkApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *NetworkApplyConfiguration) WithKind(value string) *NetworkApplyConfigur
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *NetworkApplyConfiguration) WithAPIVersion(value string) *NetworkApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *NetworkApplyConfiguration) WithAPIVersion(value string) *NetworkApplyCo
// If called multiple times, the Name field is set to the value of the last call.
func (b *NetworkApplyConfiguration) WithName(value string) *NetworkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *NetworkApplyConfiguration) WithName(value string) *NetworkApplyConfigur
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *NetworkApplyConfiguration) WithGenerateName(value string) *NetworkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *NetworkApplyConfiguration) WithGenerateName(value string) *NetworkApply
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *NetworkApplyConfiguration) WithNamespace(value string) *NetworkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *NetworkApplyConfiguration) WithNamespace(value string) *NetworkApplyCon
// If called multiple times, the UID field is set to the value of the last call.
func (b *NetworkApplyConfiguration) WithUID(value types.UID) *NetworkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *NetworkApplyConfiguration) WithUID(value types.UID) *NetworkApplyConfig
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *NetworkApplyConfiguration) WithResourceVersion(value string) *NetworkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *NetworkApplyConfiguration) WithResourceVersion(value string) *NetworkAp
// If called multiple times, the Generation field is set to the value of the last call.
func (b *NetworkApplyConfiguration) WithGeneration(value int64) *NetworkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *NetworkApplyConfiguration) WithCreationTimestamp(value metav1.Time) *NetworkApplyConfiguration {
+func (b *NetworkApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *NetworkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *NetworkApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *NetworkApplyConfiguration {
+func (b *NetworkApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *NetworkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *NetworkApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *Ne
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *NetworkApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *NetworkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *NetworkApplyConfiguration) WithDeletionGracePeriodSeconds(value int64)
// overwriting an existing map entries in Labels field with the same key.
func (b *NetworkApplyConfiguration) WithLabels(entries map[string]string) *NetworkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *NetworkApplyConfiguration) WithLabels(entries map[string]string) *Netwo
// overwriting an existing map entries in Annotations field with the same key.
func (b *NetworkApplyConfiguration) WithAnnotations(entries map[string]string) *NetworkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *NetworkApplyConfiguration) WithAnnotations(entries map[string]string) *
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *NetworkApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *NetworkApplyConfiguration {
+func (b *NetworkApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *NetworkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *NetworkApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefer
func (b *NetworkApplyConfiguration) WithFinalizers(values ...string) *NetworkApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *NetworkApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *NetworkApplyConfiguration) WithStatus(value *NetworkStatusApplyConfigur
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *NetworkApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/operator/applyconfigurations/operator/v1/networkspec.go b/operator/applyconfigurations/operator/v1/networkspec.go
index a13439542..66803aa95 100644
--- a/operator/applyconfigurations/operator/v1/networkspec.go
+++ b/operator/applyconfigurations/operator/v1/networkspec.go
@@ -35,7 +35,7 @@ func NetworkSpec() *NetworkSpecApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ManagementState field is set to the value of the last call.
func (b *NetworkSpecApplyConfiguration) WithManagementState(value operatorv1.ManagementState) *NetworkSpecApplyConfiguration {
- b.ManagementState = &value
+ b.OperatorSpecApplyConfiguration.ManagementState = &value
return b
}
@@ -43,7 +43,7 @@ func (b *NetworkSpecApplyConfiguration) WithManagementState(value operatorv1.Man
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LogLevel field is set to the value of the last call.
func (b *NetworkSpecApplyConfiguration) WithLogLevel(value operatorv1.LogLevel) *NetworkSpecApplyConfiguration {
- b.LogLevel = &value
+ b.OperatorSpecApplyConfiguration.LogLevel = &value
return b
}
@@ -51,7 +51,7 @@ func (b *NetworkSpecApplyConfiguration) WithLogLevel(value operatorv1.LogLevel)
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the OperatorLogLevel field is set to the value of the last call.
func (b *NetworkSpecApplyConfiguration) WithOperatorLogLevel(value operatorv1.LogLevel) *NetworkSpecApplyConfiguration {
- b.OperatorLogLevel = &value
+ b.OperatorSpecApplyConfiguration.OperatorLogLevel = &value
return b
}
@@ -59,7 +59,7 @@ func (b *NetworkSpecApplyConfiguration) WithOperatorLogLevel(value operatorv1.Lo
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the UnsupportedConfigOverrides field is set to the value of the last call.
func (b *NetworkSpecApplyConfiguration) WithUnsupportedConfigOverrides(value runtime.RawExtension) *NetworkSpecApplyConfiguration {
- b.UnsupportedConfigOverrides = &value
+ b.OperatorSpecApplyConfiguration.UnsupportedConfigOverrides = &value
return b
}
@@ -67,7 +67,7 @@ func (b *NetworkSpecApplyConfiguration) WithUnsupportedConfigOverrides(value run
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedConfig field is set to the value of the last call.
func (b *NetworkSpecApplyConfiguration) WithObservedConfig(value runtime.RawExtension) *NetworkSpecApplyConfiguration {
- b.ObservedConfig = &value
+ b.OperatorSpecApplyConfiguration.ObservedConfig = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/networkstatus.go b/operator/applyconfigurations/operator/v1/networkstatus.go
index 85d74e0db..9753b2161 100644
--- a/operator/applyconfigurations/operator/v1/networkstatus.go
+++ b/operator/applyconfigurations/operator/v1/networkstatus.go
@@ -18,7 +18,7 @@ func NetworkStatus() *NetworkStatusApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedGeneration field is set to the value of the last call.
func (b *NetworkStatusApplyConfiguration) WithObservedGeneration(value int64) *NetworkStatusApplyConfiguration {
- b.ObservedGeneration = &value
+ b.OperatorStatusApplyConfiguration.ObservedGeneration = &value
return b
}
@@ -30,7 +30,7 @@ func (b *NetworkStatusApplyConfiguration) WithConditions(values ...*OperatorCond
if values[i] == nil {
panic("nil value passed to WithConditions")
}
- b.Conditions = append(b.Conditions, *values[i])
+ b.OperatorStatusApplyConfiguration.Conditions = append(b.OperatorStatusApplyConfiguration.Conditions, *values[i])
}
return b
}
@@ -39,7 +39,7 @@ func (b *NetworkStatusApplyConfiguration) WithConditions(values ...*OperatorCond
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Version field is set to the value of the last call.
func (b *NetworkStatusApplyConfiguration) WithVersion(value string) *NetworkStatusApplyConfiguration {
- b.Version = &value
+ b.OperatorStatusApplyConfiguration.Version = &value
return b
}
@@ -47,7 +47,7 @@ func (b *NetworkStatusApplyConfiguration) WithVersion(value string) *NetworkStat
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ReadyReplicas field is set to the value of the last call.
func (b *NetworkStatusApplyConfiguration) WithReadyReplicas(value int32) *NetworkStatusApplyConfiguration {
- b.ReadyReplicas = &value
+ b.OperatorStatusApplyConfiguration.ReadyReplicas = &value
return b
}
@@ -55,7 +55,7 @@ func (b *NetworkStatusApplyConfiguration) WithReadyReplicas(value int32) *Networ
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LatestAvailableRevision field is set to the value of the last call.
func (b *NetworkStatusApplyConfiguration) WithLatestAvailableRevision(value int32) *NetworkStatusApplyConfiguration {
- b.LatestAvailableRevision = &value
+ b.OperatorStatusApplyConfiguration.LatestAvailableRevision = &value
return b
}
@@ -67,7 +67,7 @@ func (b *NetworkStatusApplyConfiguration) WithGenerations(values ...*GenerationS
if values[i] == nil {
panic("nil value passed to WithGenerations")
}
- b.Generations = append(b.Generations, *values[i])
+ b.OperatorStatusApplyConfiguration.Generations = append(b.OperatorStatusApplyConfiguration.Generations, *values[i])
}
return b
}
diff --git a/operator/applyconfigurations/operator/v1/nodedisruptionpolicyspecaction.go b/operator/applyconfigurations/operator/v1/nodedisruptionpolicyspecaction.go
index fb5fb5443..2421469d8 100644
--- a/operator/applyconfigurations/operator/v1/nodedisruptionpolicyspecaction.go
+++ b/operator/applyconfigurations/operator/v1/nodedisruptionpolicyspecaction.go
@@ -3,15 +3,15 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// NodeDisruptionPolicySpecActionApplyConfiguration represents a declarative configuration of the NodeDisruptionPolicySpecAction type for use
// with apply.
type NodeDisruptionPolicySpecActionApplyConfiguration struct {
- Type *v1.NodeDisruptionPolicySpecActionType `json:"type,omitempty"`
- Reload *ReloadServiceApplyConfiguration `json:"reload,omitempty"`
- Restart *RestartServiceApplyConfiguration `json:"restart,omitempty"`
+ Type *operatorv1.NodeDisruptionPolicySpecActionType `json:"type,omitempty"`
+ Reload *ReloadServiceApplyConfiguration `json:"reload,omitempty"`
+ Restart *RestartServiceApplyConfiguration `json:"restart,omitempty"`
}
// NodeDisruptionPolicySpecActionApplyConfiguration constructs a declarative configuration of the NodeDisruptionPolicySpecAction type for use with
@@ -23,7 +23,7 @@ func NodeDisruptionPolicySpecAction() *NodeDisruptionPolicySpecActionApplyConfig
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *NodeDisruptionPolicySpecActionApplyConfiguration) WithType(value v1.NodeDisruptionPolicySpecActionType) *NodeDisruptionPolicySpecActionApplyConfiguration {
+func (b *NodeDisruptionPolicySpecActionApplyConfiguration) WithType(value operatorv1.NodeDisruptionPolicySpecActionType) *NodeDisruptionPolicySpecActionApplyConfiguration {
b.Type = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/nodedisruptionpolicyspecunit.go b/operator/applyconfigurations/operator/v1/nodedisruptionpolicyspecunit.go
index 6f62f343a..d368f1c0c 100644
--- a/operator/applyconfigurations/operator/v1/nodedisruptionpolicyspecunit.go
+++ b/operator/applyconfigurations/operator/v1/nodedisruptionpolicyspecunit.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// NodeDisruptionPolicySpecUnitApplyConfiguration represents a declarative configuration of the NodeDisruptionPolicySpecUnit type for use
// with apply.
type NodeDisruptionPolicySpecUnitApplyConfiguration struct {
- Name *v1.NodeDisruptionPolicyServiceName `json:"name,omitempty"`
+ Name *operatorv1.NodeDisruptionPolicyServiceName `json:"name,omitempty"`
Actions []NodeDisruptionPolicySpecActionApplyConfiguration `json:"actions,omitempty"`
}
@@ -22,7 +22,7 @@ func NodeDisruptionPolicySpecUnit() *NodeDisruptionPolicySpecUnitApplyConfigurat
// WithName sets the Name field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Name field is set to the value of the last call.
-func (b *NodeDisruptionPolicySpecUnitApplyConfiguration) WithName(value v1.NodeDisruptionPolicyServiceName) *NodeDisruptionPolicySpecUnitApplyConfiguration {
+func (b *NodeDisruptionPolicySpecUnitApplyConfiguration) WithName(value operatorv1.NodeDisruptionPolicyServiceName) *NodeDisruptionPolicySpecUnitApplyConfiguration {
b.Name = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/nodedisruptionpolicystatusaction.go b/operator/applyconfigurations/operator/v1/nodedisruptionpolicystatusaction.go
index ec621575c..05afe97a6 100644
--- a/operator/applyconfigurations/operator/v1/nodedisruptionpolicystatusaction.go
+++ b/operator/applyconfigurations/operator/v1/nodedisruptionpolicystatusaction.go
@@ -3,15 +3,15 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// NodeDisruptionPolicyStatusActionApplyConfiguration represents a declarative configuration of the NodeDisruptionPolicyStatusAction type for use
// with apply.
type NodeDisruptionPolicyStatusActionApplyConfiguration struct {
- Type *v1.NodeDisruptionPolicyStatusActionType `json:"type,omitempty"`
- Reload *ReloadServiceApplyConfiguration `json:"reload,omitempty"`
- Restart *RestartServiceApplyConfiguration `json:"restart,omitempty"`
+ Type *operatorv1.NodeDisruptionPolicyStatusActionType `json:"type,omitempty"`
+ Reload *ReloadServiceApplyConfiguration `json:"reload,omitempty"`
+ Restart *RestartServiceApplyConfiguration `json:"restart,omitempty"`
}
// NodeDisruptionPolicyStatusActionApplyConfiguration constructs a declarative configuration of the NodeDisruptionPolicyStatusAction type for use with
@@ -23,7 +23,7 @@ func NodeDisruptionPolicyStatusAction() *NodeDisruptionPolicyStatusActionApplyCo
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *NodeDisruptionPolicyStatusActionApplyConfiguration) WithType(value v1.NodeDisruptionPolicyStatusActionType) *NodeDisruptionPolicyStatusActionApplyConfiguration {
+func (b *NodeDisruptionPolicyStatusActionApplyConfiguration) WithType(value operatorv1.NodeDisruptionPolicyStatusActionType) *NodeDisruptionPolicyStatusActionApplyConfiguration {
b.Type = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/nodedisruptionpolicystatusunit.go b/operator/applyconfigurations/operator/v1/nodedisruptionpolicystatusunit.go
index f4dd5fac7..5d97a2661 100644
--- a/operator/applyconfigurations/operator/v1/nodedisruptionpolicystatusunit.go
+++ b/operator/applyconfigurations/operator/v1/nodedisruptionpolicystatusunit.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// NodeDisruptionPolicyStatusUnitApplyConfiguration represents a declarative configuration of the NodeDisruptionPolicyStatusUnit type for use
// with apply.
type NodeDisruptionPolicyStatusUnitApplyConfiguration struct {
- Name *v1.NodeDisruptionPolicyServiceName `json:"name,omitempty"`
+ Name *operatorv1.NodeDisruptionPolicyServiceName `json:"name,omitempty"`
Actions []NodeDisruptionPolicyStatusActionApplyConfiguration `json:"actions,omitempty"`
}
@@ -22,7 +22,7 @@ func NodeDisruptionPolicyStatusUnit() *NodeDisruptionPolicyStatusUnitApplyConfig
// WithName sets the Name field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Name field is set to the value of the last call.
-func (b *NodeDisruptionPolicyStatusUnitApplyConfiguration) WithName(value v1.NodeDisruptionPolicyServiceName) *NodeDisruptionPolicyStatusUnitApplyConfiguration {
+func (b *NodeDisruptionPolicyStatusUnitApplyConfiguration) WithName(value operatorv1.NodeDisruptionPolicyServiceName) *NodeDisruptionPolicyStatusUnitApplyConfiguration {
b.Name = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/nodeplacement.go b/operator/applyconfigurations/operator/v1/nodeplacement.go
index 5f387ac71..a9fca2963 100644
--- a/operator/applyconfigurations/operator/v1/nodeplacement.go
+++ b/operator/applyconfigurations/operator/v1/nodeplacement.go
@@ -4,14 +4,14 @@ package v1
import (
corev1 "k8s.io/api/core/v1"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// NodePlacementApplyConfiguration represents a declarative configuration of the NodePlacement type for use
// with apply.
type NodePlacementApplyConfiguration struct {
- NodeSelector *v1.LabelSelectorApplyConfiguration `json:"nodeSelector,omitempty"`
- Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
+ NodeSelector *metav1.LabelSelectorApplyConfiguration `json:"nodeSelector,omitempty"`
+ Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
}
// NodePlacementApplyConfiguration constructs a declarative configuration of the NodePlacement type for use with
@@ -23,7 +23,7 @@ func NodePlacement() *NodePlacementApplyConfiguration {
// WithNodeSelector sets the NodeSelector field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the NodeSelector field is set to the value of the last call.
-func (b *NodePlacementApplyConfiguration) WithNodeSelector(value *v1.LabelSelectorApplyConfiguration) *NodePlacementApplyConfiguration {
+func (b *NodePlacementApplyConfiguration) WithNodeSelector(value *metav1.LabelSelectorApplyConfiguration) *NodePlacementApplyConfiguration {
b.NodeSelector = value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/nodeportstrategy.go b/operator/applyconfigurations/operator/v1/nodeportstrategy.go
index 01167311f..cb3f65687 100644
--- a/operator/applyconfigurations/operator/v1/nodeportstrategy.go
+++ b/operator/applyconfigurations/operator/v1/nodeportstrategy.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// NodePortStrategyApplyConfiguration represents a declarative configuration of the NodePortStrategy type for use
// with apply.
type NodePortStrategyApplyConfiguration struct {
- Protocol *v1.IngressControllerProtocol `json:"protocol,omitempty"`
+ Protocol *operatorv1.IngressControllerProtocol `json:"protocol,omitempty"`
}
// NodePortStrategyApplyConfiguration constructs a declarative configuration of the NodePortStrategy type for use with
@@ -21,7 +21,7 @@ func NodePortStrategy() *NodePortStrategyApplyConfiguration {
// WithProtocol sets the Protocol field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Protocol field is set to the value of the last call.
-func (b *NodePortStrategyApplyConfiguration) WithProtocol(value v1.IngressControllerProtocol) *NodePortStrategyApplyConfiguration {
+func (b *NodePortStrategyApplyConfiguration) WithProtocol(value operatorv1.IngressControllerProtocol) *NodePortStrategyApplyConfiguration {
b.Protocol = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/nodestatus.go b/operator/applyconfigurations/operator/v1/nodestatus.go
index b5a3cac33..3c53a88f0 100644
--- a/operator/applyconfigurations/operator/v1/nodestatus.go
+++ b/operator/applyconfigurations/operator/v1/nodestatus.go
@@ -3,21 +3,21 @@
package v1
import (
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// NodeStatusApplyConfiguration represents a declarative configuration of the NodeStatus type for use
// with apply.
type NodeStatusApplyConfiguration struct {
- NodeName *string `json:"nodeName,omitempty"`
- CurrentRevision *int32 `json:"currentRevision,omitempty"`
- TargetRevision *int32 `json:"targetRevision,omitempty"`
- LastFailedRevision *int32 `json:"lastFailedRevision,omitempty"`
- LastFailedTime *v1.Time `json:"lastFailedTime,omitempty"`
- LastFailedReason *string `json:"lastFailedReason,omitempty"`
- LastFailedCount *int `json:"lastFailedCount,omitempty"`
- LastFallbackCount *int `json:"lastFallbackCount,omitempty"`
- LastFailedRevisionErrors []string `json:"lastFailedRevisionErrors,omitempty"`
+ NodeName *string `json:"nodeName,omitempty"`
+ CurrentRevision *int32 `json:"currentRevision,omitempty"`
+ TargetRevision *int32 `json:"targetRevision,omitempty"`
+ LastFailedRevision *int32 `json:"lastFailedRevision,omitempty"`
+ LastFailedTime *metav1.Time `json:"lastFailedTime,omitempty"`
+ LastFailedReason *string `json:"lastFailedReason,omitempty"`
+ LastFailedCount *int `json:"lastFailedCount,omitempty"`
+ LastFallbackCount *int `json:"lastFallbackCount,omitempty"`
+ LastFailedRevisionErrors []string `json:"lastFailedRevisionErrors,omitempty"`
}
// NodeStatusApplyConfiguration constructs a declarative configuration of the NodeStatus type for use with
@@ -61,7 +61,7 @@ func (b *NodeStatusApplyConfiguration) WithLastFailedRevision(value int32) *Node
// WithLastFailedTime sets the LastFailedTime field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LastFailedTime field is set to the value of the last call.
-func (b *NodeStatusApplyConfiguration) WithLastFailedTime(value v1.Time) *NodeStatusApplyConfiguration {
+func (b *NodeStatusApplyConfiguration) WithLastFailedTime(value metav1.Time) *NodeStatusApplyConfiguration {
b.LastFailedTime = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/olm.go b/operator/applyconfigurations/operator/v1/olm.go
index d1fb73953..93b3c4e79 100644
--- a/operator/applyconfigurations/operator/v1/olm.go
+++ b/operator/applyconfigurations/operator/v1/olm.go
@@ -3,21 +3,21 @@
package v1
import (
- apioperatorv1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
internal "github.com/openshift/client-go/operator/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// OLMApplyConfiguration represents a declarative configuration of the OLM type for use
// with apply.
type OLMApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *OLMSpecApplyConfiguration `json:"spec,omitempty"`
- Status *OLMStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *OLMSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *OLMStatusApplyConfiguration `json:"status,omitempty"`
}
// OLM constructs a declarative configuration of the OLM type for use with
@@ -41,18 +41,18 @@ func OLM(name string) *OLMApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractOLM(oLM *apioperatorv1.OLM, fieldManager string) (*OLMApplyConfiguration, error) {
+func ExtractOLM(oLM *operatorv1.OLM, fieldManager string) (*OLMApplyConfiguration, error) {
return extractOLM(oLM, fieldManager, "")
}
// ExtractOLMStatus is the same as ExtractOLM except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractOLMStatus(oLM *apioperatorv1.OLM, fieldManager string) (*OLMApplyConfiguration, error) {
+func ExtractOLMStatus(oLM *operatorv1.OLM, fieldManager string) (*OLMApplyConfiguration, error) {
return extractOLM(oLM, fieldManager, "status")
}
-func extractOLM(oLM *apioperatorv1.OLM, fieldManager string, subresource string) (*OLMApplyConfiguration, error) {
+func extractOLM(oLM *operatorv1.OLM, fieldManager string, subresource string) (*OLMApplyConfiguration, error) {
b := &OLMApplyConfiguration{}
err := managedfields.ExtractInto(oLM, internal.Parser().Type("com.github.openshift.api.operator.v1.OLM"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractOLM(oLM *apioperatorv1.OLM, fieldManager string, subresource string)
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *OLMApplyConfiguration) WithKind(value string) *OLMApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *OLMApplyConfiguration) WithKind(value string) *OLMApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *OLMApplyConfiguration) WithAPIVersion(value string) *OLMApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *OLMApplyConfiguration) WithAPIVersion(value string) *OLMApplyConfigurat
// If called multiple times, the Name field is set to the value of the last call.
func (b *OLMApplyConfiguration) WithName(value string) *OLMApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *OLMApplyConfiguration) WithName(value string) *OLMApplyConfiguration {
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *OLMApplyConfiguration) WithGenerateName(value string) *OLMApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *OLMApplyConfiguration) WithGenerateName(value string) *OLMApplyConfigur
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *OLMApplyConfiguration) WithNamespace(value string) *OLMApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *OLMApplyConfiguration) WithNamespace(value string) *OLMApplyConfigurati
// If called multiple times, the UID field is set to the value of the last call.
func (b *OLMApplyConfiguration) WithUID(value types.UID) *OLMApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *OLMApplyConfiguration) WithUID(value types.UID) *OLMApplyConfiguration
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *OLMApplyConfiguration) WithResourceVersion(value string) *OLMApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *OLMApplyConfiguration) WithResourceVersion(value string) *OLMApplyConfi
// If called multiple times, the Generation field is set to the value of the last call.
func (b *OLMApplyConfiguration) WithGeneration(value int64) *OLMApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *OLMApplyConfiguration) WithCreationTimestamp(value metav1.Time) *OLMApplyConfiguration {
+func (b *OLMApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *OLMApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *OLMApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *OLMApplyConfiguration {
+func (b *OLMApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *OLMApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *OLMApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *OLMApp
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *OLMApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *OLMApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *OLMApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *OLM
// overwriting an existing map entries in Labels field with the same key.
func (b *OLMApplyConfiguration) WithLabels(entries map[string]string) *OLMApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *OLMApplyConfiguration) WithLabels(entries map[string]string) *OLMApplyC
// overwriting an existing map entries in Annotations field with the same key.
func (b *OLMApplyConfiguration) WithAnnotations(entries map[string]string) *OLMApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *OLMApplyConfiguration) WithAnnotations(entries map[string]string) *OLMA
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *OLMApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *OLMApplyConfiguration {
+func (b *OLMApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *OLMApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *OLMApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReference
func (b *OLMApplyConfiguration) WithFinalizers(values ...string) *OLMApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *OLMApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *OLMApplyConfiguration) WithStatus(value *OLMStatusApplyConfiguration) *
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *OLMApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/operator/applyconfigurations/operator/v1/olmspec.go b/operator/applyconfigurations/operator/v1/olmspec.go
index 6639c0c46..69309aa49 100644
--- a/operator/applyconfigurations/operator/v1/olmspec.go
+++ b/operator/applyconfigurations/operator/v1/olmspec.go
@@ -23,7 +23,7 @@ func OLMSpec() *OLMSpecApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ManagementState field is set to the value of the last call.
func (b *OLMSpecApplyConfiguration) WithManagementState(value operatorv1.ManagementState) *OLMSpecApplyConfiguration {
- b.ManagementState = &value
+ b.OperatorSpecApplyConfiguration.ManagementState = &value
return b
}
@@ -31,7 +31,7 @@ func (b *OLMSpecApplyConfiguration) WithManagementState(value operatorv1.Managem
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LogLevel field is set to the value of the last call.
func (b *OLMSpecApplyConfiguration) WithLogLevel(value operatorv1.LogLevel) *OLMSpecApplyConfiguration {
- b.LogLevel = &value
+ b.OperatorSpecApplyConfiguration.LogLevel = &value
return b
}
@@ -39,7 +39,7 @@ func (b *OLMSpecApplyConfiguration) WithLogLevel(value operatorv1.LogLevel) *OLM
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the OperatorLogLevel field is set to the value of the last call.
func (b *OLMSpecApplyConfiguration) WithOperatorLogLevel(value operatorv1.LogLevel) *OLMSpecApplyConfiguration {
- b.OperatorLogLevel = &value
+ b.OperatorSpecApplyConfiguration.OperatorLogLevel = &value
return b
}
@@ -47,7 +47,7 @@ func (b *OLMSpecApplyConfiguration) WithOperatorLogLevel(value operatorv1.LogLev
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the UnsupportedConfigOverrides field is set to the value of the last call.
func (b *OLMSpecApplyConfiguration) WithUnsupportedConfigOverrides(value runtime.RawExtension) *OLMSpecApplyConfiguration {
- b.UnsupportedConfigOverrides = &value
+ b.OperatorSpecApplyConfiguration.UnsupportedConfigOverrides = &value
return b
}
@@ -55,6 +55,6 @@ func (b *OLMSpecApplyConfiguration) WithUnsupportedConfigOverrides(value runtime
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedConfig field is set to the value of the last call.
func (b *OLMSpecApplyConfiguration) WithObservedConfig(value runtime.RawExtension) *OLMSpecApplyConfiguration {
- b.ObservedConfig = &value
+ b.OperatorSpecApplyConfiguration.ObservedConfig = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/olmstatus.go b/operator/applyconfigurations/operator/v1/olmstatus.go
index be8e647f3..3c2d4a184 100644
--- a/operator/applyconfigurations/operator/v1/olmstatus.go
+++ b/operator/applyconfigurations/operator/v1/olmstatus.go
@@ -18,7 +18,7 @@ func OLMStatus() *OLMStatusApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedGeneration field is set to the value of the last call.
func (b *OLMStatusApplyConfiguration) WithObservedGeneration(value int64) *OLMStatusApplyConfiguration {
- b.ObservedGeneration = &value
+ b.OperatorStatusApplyConfiguration.ObservedGeneration = &value
return b
}
@@ -30,7 +30,7 @@ func (b *OLMStatusApplyConfiguration) WithConditions(values ...*OperatorConditio
if values[i] == nil {
panic("nil value passed to WithConditions")
}
- b.Conditions = append(b.Conditions, *values[i])
+ b.OperatorStatusApplyConfiguration.Conditions = append(b.OperatorStatusApplyConfiguration.Conditions, *values[i])
}
return b
}
@@ -39,7 +39,7 @@ func (b *OLMStatusApplyConfiguration) WithConditions(values ...*OperatorConditio
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Version field is set to the value of the last call.
func (b *OLMStatusApplyConfiguration) WithVersion(value string) *OLMStatusApplyConfiguration {
- b.Version = &value
+ b.OperatorStatusApplyConfiguration.Version = &value
return b
}
@@ -47,7 +47,7 @@ func (b *OLMStatusApplyConfiguration) WithVersion(value string) *OLMStatusApplyC
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ReadyReplicas field is set to the value of the last call.
func (b *OLMStatusApplyConfiguration) WithReadyReplicas(value int32) *OLMStatusApplyConfiguration {
- b.ReadyReplicas = &value
+ b.OperatorStatusApplyConfiguration.ReadyReplicas = &value
return b
}
@@ -55,7 +55,7 @@ func (b *OLMStatusApplyConfiguration) WithReadyReplicas(value int32) *OLMStatusA
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LatestAvailableRevision field is set to the value of the last call.
func (b *OLMStatusApplyConfiguration) WithLatestAvailableRevision(value int32) *OLMStatusApplyConfiguration {
- b.LatestAvailableRevision = &value
+ b.OperatorStatusApplyConfiguration.LatestAvailableRevision = &value
return b
}
@@ -67,7 +67,7 @@ func (b *OLMStatusApplyConfiguration) WithGenerations(values ...*GenerationStatu
if values[i] == nil {
panic("nil value passed to WithGenerations")
}
- b.Generations = append(b.Generations, *values[i])
+ b.OperatorStatusApplyConfiguration.Generations = append(b.OperatorStatusApplyConfiguration.Generations, *values[i])
}
return b
}
diff --git a/operator/applyconfigurations/operator/v1/openshiftapiserver.go b/operator/applyconfigurations/operator/v1/openshiftapiserver.go
index 34bc2a1b1..f78286043 100644
--- a/operator/applyconfigurations/operator/v1/openshiftapiserver.go
+++ b/operator/applyconfigurations/operator/v1/openshiftapiserver.go
@@ -3,21 +3,21 @@
package v1
import (
- apioperatorv1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
internal "github.com/openshift/client-go/operator/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// OpenShiftAPIServerApplyConfiguration represents a declarative configuration of the OpenShiftAPIServer type for use
// with apply.
type OpenShiftAPIServerApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *OpenShiftAPIServerSpecApplyConfiguration `json:"spec,omitempty"`
- Status *OpenShiftAPIServerStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *OpenShiftAPIServerSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *OpenShiftAPIServerStatusApplyConfiguration `json:"status,omitempty"`
}
// OpenShiftAPIServer constructs a declarative configuration of the OpenShiftAPIServer type for use with
@@ -41,18 +41,18 @@ func OpenShiftAPIServer(name string) *OpenShiftAPIServerApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractOpenShiftAPIServer(openShiftAPIServer *apioperatorv1.OpenShiftAPIServer, fieldManager string) (*OpenShiftAPIServerApplyConfiguration, error) {
+func ExtractOpenShiftAPIServer(openShiftAPIServer *operatorv1.OpenShiftAPIServer, fieldManager string) (*OpenShiftAPIServerApplyConfiguration, error) {
return extractOpenShiftAPIServer(openShiftAPIServer, fieldManager, "")
}
// ExtractOpenShiftAPIServerStatus is the same as ExtractOpenShiftAPIServer except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractOpenShiftAPIServerStatus(openShiftAPIServer *apioperatorv1.OpenShiftAPIServer, fieldManager string) (*OpenShiftAPIServerApplyConfiguration, error) {
+func ExtractOpenShiftAPIServerStatus(openShiftAPIServer *operatorv1.OpenShiftAPIServer, fieldManager string) (*OpenShiftAPIServerApplyConfiguration, error) {
return extractOpenShiftAPIServer(openShiftAPIServer, fieldManager, "status")
}
-func extractOpenShiftAPIServer(openShiftAPIServer *apioperatorv1.OpenShiftAPIServer, fieldManager string, subresource string) (*OpenShiftAPIServerApplyConfiguration, error) {
+func extractOpenShiftAPIServer(openShiftAPIServer *operatorv1.OpenShiftAPIServer, fieldManager string, subresource string) (*OpenShiftAPIServerApplyConfiguration, error) {
b := &OpenShiftAPIServerApplyConfiguration{}
err := managedfields.ExtractInto(openShiftAPIServer, internal.Parser().Type("com.github.openshift.api.operator.v1.OpenShiftAPIServer"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractOpenShiftAPIServer(openShiftAPIServer *apioperatorv1.OpenShiftAPISer
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *OpenShiftAPIServerApplyConfiguration) WithKind(value string) *OpenShiftAPIServerApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *OpenShiftAPIServerApplyConfiguration) WithKind(value string) *OpenShift
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *OpenShiftAPIServerApplyConfiguration) WithAPIVersion(value string) *OpenShiftAPIServerApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *OpenShiftAPIServerApplyConfiguration) WithAPIVersion(value string) *Ope
// If called multiple times, the Name field is set to the value of the last call.
func (b *OpenShiftAPIServerApplyConfiguration) WithName(value string) *OpenShiftAPIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *OpenShiftAPIServerApplyConfiguration) WithName(value string) *OpenShift
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *OpenShiftAPIServerApplyConfiguration) WithGenerateName(value string) *OpenShiftAPIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *OpenShiftAPIServerApplyConfiguration) WithGenerateName(value string) *O
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *OpenShiftAPIServerApplyConfiguration) WithNamespace(value string) *OpenShiftAPIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *OpenShiftAPIServerApplyConfiguration) WithNamespace(value string) *Open
// If called multiple times, the UID field is set to the value of the last call.
func (b *OpenShiftAPIServerApplyConfiguration) WithUID(value types.UID) *OpenShiftAPIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *OpenShiftAPIServerApplyConfiguration) WithUID(value types.UID) *OpenShi
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *OpenShiftAPIServerApplyConfiguration) WithResourceVersion(value string) *OpenShiftAPIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *OpenShiftAPIServerApplyConfiguration) WithResourceVersion(value string)
// If called multiple times, the Generation field is set to the value of the last call.
func (b *OpenShiftAPIServerApplyConfiguration) WithGeneration(value int64) *OpenShiftAPIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *OpenShiftAPIServerApplyConfiguration) WithCreationTimestamp(value metav1.Time) *OpenShiftAPIServerApplyConfiguration {
+func (b *OpenShiftAPIServerApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *OpenShiftAPIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *OpenShiftAPIServerApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *OpenShiftAPIServerApplyConfiguration {
+func (b *OpenShiftAPIServerApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *OpenShiftAPIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *OpenShiftAPIServerApplyConfiguration) WithDeletionTimestamp(value metav
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *OpenShiftAPIServerApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *OpenShiftAPIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *OpenShiftAPIServerApplyConfiguration) WithDeletionGracePeriodSeconds(va
// overwriting an existing map entries in Labels field with the same key.
func (b *OpenShiftAPIServerApplyConfiguration) WithLabels(entries map[string]string) *OpenShiftAPIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *OpenShiftAPIServerApplyConfiguration) WithLabels(entries map[string]str
// overwriting an existing map entries in Annotations field with the same key.
func (b *OpenShiftAPIServerApplyConfiguration) WithAnnotations(entries map[string]string) *OpenShiftAPIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *OpenShiftAPIServerApplyConfiguration) WithAnnotations(entries map[strin
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *OpenShiftAPIServerApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *OpenShiftAPIServerApplyConfiguration {
+func (b *OpenShiftAPIServerApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *OpenShiftAPIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *OpenShiftAPIServerApplyConfiguration) WithOwnerReferences(values ...*v1
func (b *OpenShiftAPIServerApplyConfiguration) WithFinalizers(values ...string) *OpenShiftAPIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *OpenShiftAPIServerApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *OpenShiftAPIServerApplyConfiguration) WithStatus(value *OpenShiftAPISer
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *OpenShiftAPIServerApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/operator/applyconfigurations/operator/v1/openshiftapiserverspec.go b/operator/applyconfigurations/operator/v1/openshiftapiserverspec.go
index 1e5545164..562b43032 100644
--- a/operator/applyconfigurations/operator/v1/openshiftapiserverspec.go
+++ b/operator/applyconfigurations/operator/v1/openshiftapiserverspec.go
@@ -23,7 +23,7 @@ func OpenShiftAPIServerSpec() *OpenShiftAPIServerSpecApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ManagementState field is set to the value of the last call.
func (b *OpenShiftAPIServerSpecApplyConfiguration) WithManagementState(value operatorv1.ManagementState) *OpenShiftAPIServerSpecApplyConfiguration {
- b.ManagementState = &value
+ b.OperatorSpecApplyConfiguration.ManagementState = &value
return b
}
@@ -31,7 +31,7 @@ func (b *OpenShiftAPIServerSpecApplyConfiguration) WithManagementState(value ope
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LogLevel field is set to the value of the last call.
func (b *OpenShiftAPIServerSpecApplyConfiguration) WithLogLevel(value operatorv1.LogLevel) *OpenShiftAPIServerSpecApplyConfiguration {
- b.LogLevel = &value
+ b.OperatorSpecApplyConfiguration.LogLevel = &value
return b
}
@@ -39,7 +39,7 @@ func (b *OpenShiftAPIServerSpecApplyConfiguration) WithLogLevel(value operatorv1
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the OperatorLogLevel field is set to the value of the last call.
func (b *OpenShiftAPIServerSpecApplyConfiguration) WithOperatorLogLevel(value operatorv1.LogLevel) *OpenShiftAPIServerSpecApplyConfiguration {
- b.OperatorLogLevel = &value
+ b.OperatorSpecApplyConfiguration.OperatorLogLevel = &value
return b
}
@@ -47,7 +47,7 @@ func (b *OpenShiftAPIServerSpecApplyConfiguration) WithOperatorLogLevel(value op
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the UnsupportedConfigOverrides field is set to the value of the last call.
func (b *OpenShiftAPIServerSpecApplyConfiguration) WithUnsupportedConfigOverrides(value runtime.RawExtension) *OpenShiftAPIServerSpecApplyConfiguration {
- b.UnsupportedConfigOverrides = &value
+ b.OperatorSpecApplyConfiguration.UnsupportedConfigOverrides = &value
return b
}
@@ -55,6 +55,6 @@ func (b *OpenShiftAPIServerSpecApplyConfiguration) WithUnsupportedConfigOverride
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedConfig field is set to the value of the last call.
func (b *OpenShiftAPIServerSpecApplyConfiguration) WithObservedConfig(value runtime.RawExtension) *OpenShiftAPIServerSpecApplyConfiguration {
- b.ObservedConfig = &value
+ b.OperatorSpecApplyConfiguration.ObservedConfig = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/openshiftapiserverstatus.go b/operator/applyconfigurations/operator/v1/openshiftapiserverstatus.go
index 8abe09c0a..776701d54 100644
--- a/operator/applyconfigurations/operator/v1/openshiftapiserverstatus.go
+++ b/operator/applyconfigurations/operator/v1/openshiftapiserverstatus.go
@@ -18,7 +18,7 @@ func OpenShiftAPIServerStatus() *OpenShiftAPIServerStatusApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedGeneration field is set to the value of the last call.
func (b *OpenShiftAPIServerStatusApplyConfiguration) WithObservedGeneration(value int64) *OpenShiftAPIServerStatusApplyConfiguration {
- b.ObservedGeneration = &value
+ b.OperatorStatusApplyConfiguration.ObservedGeneration = &value
return b
}
@@ -30,7 +30,7 @@ func (b *OpenShiftAPIServerStatusApplyConfiguration) WithConditions(values ...*O
if values[i] == nil {
panic("nil value passed to WithConditions")
}
- b.Conditions = append(b.Conditions, *values[i])
+ b.OperatorStatusApplyConfiguration.Conditions = append(b.OperatorStatusApplyConfiguration.Conditions, *values[i])
}
return b
}
@@ -39,7 +39,7 @@ func (b *OpenShiftAPIServerStatusApplyConfiguration) WithConditions(values ...*O
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Version field is set to the value of the last call.
func (b *OpenShiftAPIServerStatusApplyConfiguration) WithVersion(value string) *OpenShiftAPIServerStatusApplyConfiguration {
- b.Version = &value
+ b.OperatorStatusApplyConfiguration.Version = &value
return b
}
@@ -47,7 +47,7 @@ func (b *OpenShiftAPIServerStatusApplyConfiguration) WithVersion(value string) *
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ReadyReplicas field is set to the value of the last call.
func (b *OpenShiftAPIServerStatusApplyConfiguration) WithReadyReplicas(value int32) *OpenShiftAPIServerStatusApplyConfiguration {
- b.ReadyReplicas = &value
+ b.OperatorStatusApplyConfiguration.ReadyReplicas = &value
return b
}
@@ -55,7 +55,7 @@ func (b *OpenShiftAPIServerStatusApplyConfiguration) WithReadyReplicas(value int
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LatestAvailableRevision field is set to the value of the last call.
func (b *OpenShiftAPIServerStatusApplyConfiguration) WithLatestAvailableRevision(value int32) *OpenShiftAPIServerStatusApplyConfiguration {
- b.LatestAvailableRevision = &value
+ b.OperatorStatusApplyConfiguration.LatestAvailableRevision = &value
return b
}
@@ -67,7 +67,7 @@ func (b *OpenShiftAPIServerStatusApplyConfiguration) WithGenerations(values ...*
if values[i] == nil {
panic("nil value passed to WithGenerations")
}
- b.Generations = append(b.Generations, *values[i])
+ b.OperatorStatusApplyConfiguration.Generations = append(b.OperatorStatusApplyConfiguration.Generations, *values[i])
}
return b
}
diff --git a/operator/applyconfigurations/operator/v1/openshiftcontrollermanager.go b/operator/applyconfigurations/operator/v1/openshiftcontrollermanager.go
index d72eb42c7..d8dbb4848 100644
--- a/operator/applyconfigurations/operator/v1/openshiftcontrollermanager.go
+++ b/operator/applyconfigurations/operator/v1/openshiftcontrollermanager.go
@@ -3,21 +3,21 @@
package v1
import (
- apioperatorv1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
internal "github.com/openshift/client-go/operator/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// OpenShiftControllerManagerApplyConfiguration represents a declarative configuration of the OpenShiftControllerManager type for use
// with apply.
type OpenShiftControllerManagerApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *OpenShiftControllerManagerSpecApplyConfiguration `json:"spec,omitempty"`
- Status *OpenShiftControllerManagerStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *OpenShiftControllerManagerSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *OpenShiftControllerManagerStatusApplyConfiguration `json:"status,omitempty"`
}
// OpenShiftControllerManager constructs a declarative configuration of the OpenShiftControllerManager type for use with
@@ -41,18 +41,18 @@ func OpenShiftControllerManager(name string) *OpenShiftControllerManagerApplyCon
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractOpenShiftControllerManager(openShiftControllerManager *apioperatorv1.OpenShiftControllerManager, fieldManager string) (*OpenShiftControllerManagerApplyConfiguration, error) {
+func ExtractOpenShiftControllerManager(openShiftControllerManager *operatorv1.OpenShiftControllerManager, fieldManager string) (*OpenShiftControllerManagerApplyConfiguration, error) {
return extractOpenShiftControllerManager(openShiftControllerManager, fieldManager, "")
}
// ExtractOpenShiftControllerManagerStatus is the same as ExtractOpenShiftControllerManager except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractOpenShiftControllerManagerStatus(openShiftControllerManager *apioperatorv1.OpenShiftControllerManager, fieldManager string) (*OpenShiftControllerManagerApplyConfiguration, error) {
+func ExtractOpenShiftControllerManagerStatus(openShiftControllerManager *operatorv1.OpenShiftControllerManager, fieldManager string) (*OpenShiftControllerManagerApplyConfiguration, error) {
return extractOpenShiftControllerManager(openShiftControllerManager, fieldManager, "status")
}
-func extractOpenShiftControllerManager(openShiftControllerManager *apioperatorv1.OpenShiftControllerManager, fieldManager string, subresource string) (*OpenShiftControllerManagerApplyConfiguration, error) {
+func extractOpenShiftControllerManager(openShiftControllerManager *operatorv1.OpenShiftControllerManager, fieldManager string, subresource string) (*OpenShiftControllerManagerApplyConfiguration, error) {
b := &OpenShiftControllerManagerApplyConfiguration{}
err := managedfields.ExtractInto(openShiftControllerManager, internal.Parser().Type("com.github.openshift.api.operator.v1.OpenShiftControllerManager"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractOpenShiftControllerManager(openShiftControllerManager *apioperatorv1
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *OpenShiftControllerManagerApplyConfiguration) WithKind(value string) *OpenShiftControllerManagerApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *OpenShiftControllerManagerApplyConfiguration) WithKind(value string) *O
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *OpenShiftControllerManagerApplyConfiguration) WithAPIVersion(value string) *OpenShiftControllerManagerApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *OpenShiftControllerManagerApplyConfiguration) WithAPIVersion(value stri
// If called multiple times, the Name field is set to the value of the last call.
func (b *OpenShiftControllerManagerApplyConfiguration) WithName(value string) *OpenShiftControllerManagerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *OpenShiftControllerManagerApplyConfiguration) WithName(value string) *O
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *OpenShiftControllerManagerApplyConfiguration) WithGenerateName(value string) *OpenShiftControllerManagerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *OpenShiftControllerManagerApplyConfiguration) WithGenerateName(value st
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *OpenShiftControllerManagerApplyConfiguration) WithNamespace(value string) *OpenShiftControllerManagerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *OpenShiftControllerManagerApplyConfiguration) WithNamespace(value strin
// If called multiple times, the UID field is set to the value of the last call.
func (b *OpenShiftControllerManagerApplyConfiguration) WithUID(value types.UID) *OpenShiftControllerManagerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *OpenShiftControllerManagerApplyConfiguration) WithUID(value types.UID)
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *OpenShiftControllerManagerApplyConfiguration) WithResourceVersion(value string) *OpenShiftControllerManagerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *OpenShiftControllerManagerApplyConfiguration) WithResourceVersion(value
// If called multiple times, the Generation field is set to the value of the last call.
func (b *OpenShiftControllerManagerApplyConfiguration) WithGeneration(value int64) *OpenShiftControllerManagerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *OpenShiftControllerManagerApplyConfiguration) WithCreationTimestamp(value metav1.Time) *OpenShiftControllerManagerApplyConfiguration {
+func (b *OpenShiftControllerManagerApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *OpenShiftControllerManagerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *OpenShiftControllerManagerApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *OpenShiftControllerManagerApplyConfiguration {
+func (b *OpenShiftControllerManagerApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *OpenShiftControllerManagerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *OpenShiftControllerManagerApplyConfiguration) WithDeletionTimestamp(val
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *OpenShiftControllerManagerApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *OpenShiftControllerManagerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *OpenShiftControllerManagerApplyConfiguration) WithDeletionGracePeriodSe
// overwriting an existing map entries in Labels field with the same key.
func (b *OpenShiftControllerManagerApplyConfiguration) WithLabels(entries map[string]string) *OpenShiftControllerManagerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *OpenShiftControllerManagerApplyConfiguration) WithLabels(entries map[st
// overwriting an existing map entries in Annotations field with the same key.
func (b *OpenShiftControllerManagerApplyConfiguration) WithAnnotations(entries map[string]string) *OpenShiftControllerManagerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *OpenShiftControllerManagerApplyConfiguration) WithAnnotations(entries m
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *OpenShiftControllerManagerApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *OpenShiftControllerManagerApplyConfiguration {
+func (b *OpenShiftControllerManagerApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *OpenShiftControllerManagerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *OpenShiftControllerManagerApplyConfiguration) WithOwnerReferences(value
func (b *OpenShiftControllerManagerApplyConfiguration) WithFinalizers(values ...string) *OpenShiftControllerManagerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *OpenShiftControllerManagerApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *OpenShiftControllerManagerApplyConfiguration) WithStatus(value *OpenShi
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *OpenShiftControllerManagerApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/operator/applyconfigurations/operator/v1/openshiftcontrollermanagerspec.go b/operator/applyconfigurations/operator/v1/openshiftcontrollermanagerspec.go
index feea2556f..5c6a0ff50 100644
--- a/operator/applyconfigurations/operator/v1/openshiftcontrollermanagerspec.go
+++ b/operator/applyconfigurations/operator/v1/openshiftcontrollermanagerspec.go
@@ -23,7 +23,7 @@ func OpenShiftControllerManagerSpec() *OpenShiftControllerManagerSpecApplyConfig
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ManagementState field is set to the value of the last call.
func (b *OpenShiftControllerManagerSpecApplyConfiguration) WithManagementState(value operatorv1.ManagementState) *OpenShiftControllerManagerSpecApplyConfiguration {
- b.ManagementState = &value
+ b.OperatorSpecApplyConfiguration.ManagementState = &value
return b
}
@@ -31,7 +31,7 @@ func (b *OpenShiftControllerManagerSpecApplyConfiguration) WithManagementState(v
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LogLevel field is set to the value of the last call.
func (b *OpenShiftControllerManagerSpecApplyConfiguration) WithLogLevel(value operatorv1.LogLevel) *OpenShiftControllerManagerSpecApplyConfiguration {
- b.LogLevel = &value
+ b.OperatorSpecApplyConfiguration.LogLevel = &value
return b
}
@@ -39,7 +39,7 @@ func (b *OpenShiftControllerManagerSpecApplyConfiguration) WithLogLevel(value op
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the OperatorLogLevel field is set to the value of the last call.
func (b *OpenShiftControllerManagerSpecApplyConfiguration) WithOperatorLogLevel(value operatorv1.LogLevel) *OpenShiftControllerManagerSpecApplyConfiguration {
- b.OperatorLogLevel = &value
+ b.OperatorSpecApplyConfiguration.OperatorLogLevel = &value
return b
}
@@ -47,7 +47,7 @@ func (b *OpenShiftControllerManagerSpecApplyConfiguration) WithOperatorLogLevel(
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the UnsupportedConfigOverrides field is set to the value of the last call.
func (b *OpenShiftControllerManagerSpecApplyConfiguration) WithUnsupportedConfigOverrides(value runtime.RawExtension) *OpenShiftControllerManagerSpecApplyConfiguration {
- b.UnsupportedConfigOverrides = &value
+ b.OperatorSpecApplyConfiguration.UnsupportedConfigOverrides = &value
return b
}
@@ -55,6 +55,6 @@ func (b *OpenShiftControllerManagerSpecApplyConfiguration) WithUnsupportedConfig
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedConfig field is set to the value of the last call.
func (b *OpenShiftControllerManagerSpecApplyConfiguration) WithObservedConfig(value runtime.RawExtension) *OpenShiftControllerManagerSpecApplyConfiguration {
- b.ObservedConfig = &value
+ b.OperatorSpecApplyConfiguration.ObservedConfig = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/openshiftcontrollermanagerstatus.go b/operator/applyconfigurations/operator/v1/openshiftcontrollermanagerstatus.go
index 77cffb09f..c5b960e23 100644
--- a/operator/applyconfigurations/operator/v1/openshiftcontrollermanagerstatus.go
+++ b/operator/applyconfigurations/operator/v1/openshiftcontrollermanagerstatus.go
@@ -18,7 +18,7 @@ func OpenShiftControllerManagerStatus() *OpenShiftControllerManagerStatusApplyCo
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedGeneration field is set to the value of the last call.
func (b *OpenShiftControllerManagerStatusApplyConfiguration) WithObservedGeneration(value int64) *OpenShiftControllerManagerStatusApplyConfiguration {
- b.ObservedGeneration = &value
+ b.OperatorStatusApplyConfiguration.ObservedGeneration = &value
return b
}
@@ -30,7 +30,7 @@ func (b *OpenShiftControllerManagerStatusApplyConfiguration) WithConditions(valu
if values[i] == nil {
panic("nil value passed to WithConditions")
}
- b.Conditions = append(b.Conditions, *values[i])
+ b.OperatorStatusApplyConfiguration.Conditions = append(b.OperatorStatusApplyConfiguration.Conditions, *values[i])
}
return b
}
@@ -39,7 +39,7 @@ func (b *OpenShiftControllerManagerStatusApplyConfiguration) WithConditions(valu
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Version field is set to the value of the last call.
func (b *OpenShiftControllerManagerStatusApplyConfiguration) WithVersion(value string) *OpenShiftControllerManagerStatusApplyConfiguration {
- b.Version = &value
+ b.OperatorStatusApplyConfiguration.Version = &value
return b
}
@@ -47,7 +47,7 @@ func (b *OpenShiftControllerManagerStatusApplyConfiguration) WithVersion(value s
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ReadyReplicas field is set to the value of the last call.
func (b *OpenShiftControllerManagerStatusApplyConfiguration) WithReadyReplicas(value int32) *OpenShiftControllerManagerStatusApplyConfiguration {
- b.ReadyReplicas = &value
+ b.OperatorStatusApplyConfiguration.ReadyReplicas = &value
return b
}
@@ -55,7 +55,7 @@ func (b *OpenShiftControllerManagerStatusApplyConfiguration) WithReadyReplicas(v
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LatestAvailableRevision field is set to the value of the last call.
func (b *OpenShiftControllerManagerStatusApplyConfiguration) WithLatestAvailableRevision(value int32) *OpenShiftControllerManagerStatusApplyConfiguration {
- b.LatestAvailableRevision = &value
+ b.OperatorStatusApplyConfiguration.LatestAvailableRevision = &value
return b
}
@@ -67,7 +67,7 @@ func (b *OpenShiftControllerManagerStatusApplyConfiguration) WithGenerations(val
if values[i] == nil {
panic("nil value passed to WithGenerations")
}
- b.Generations = append(b.Generations, *values[i])
+ b.OperatorStatusApplyConfiguration.Generations = append(b.OperatorStatusApplyConfiguration.Generations, *values[i])
}
return b
}
diff --git a/operator/applyconfigurations/operator/v1/openshiftsdnconfig.go b/operator/applyconfigurations/operator/v1/openshiftsdnconfig.go
index 416f9099c..b1dd640f6 100644
--- a/operator/applyconfigurations/operator/v1/openshiftsdnconfig.go
+++ b/operator/applyconfigurations/operator/v1/openshiftsdnconfig.go
@@ -3,17 +3,17 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// OpenShiftSDNConfigApplyConfiguration represents a declarative configuration of the OpenShiftSDNConfig type for use
// with apply.
type OpenShiftSDNConfigApplyConfiguration struct {
- Mode *v1.SDNMode `json:"mode,omitempty"`
- VXLANPort *uint32 `json:"vxlanPort,omitempty"`
- MTU *uint32 `json:"mtu,omitempty"`
- UseExternalOpenvswitch *bool `json:"useExternalOpenvswitch,omitempty"`
- EnableUnidling *bool `json:"enableUnidling,omitempty"`
+ Mode *operatorv1.SDNMode `json:"mode,omitempty"`
+ VXLANPort *uint32 `json:"vxlanPort,omitempty"`
+ MTU *uint32 `json:"mtu,omitempty"`
+ UseExternalOpenvswitch *bool `json:"useExternalOpenvswitch,omitempty"`
+ EnableUnidling *bool `json:"enableUnidling,omitempty"`
}
// OpenShiftSDNConfigApplyConfiguration constructs a declarative configuration of the OpenShiftSDNConfig type for use with
@@ -25,7 +25,7 @@ func OpenShiftSDNConfig() *OpenShiftSDNConfigApplyConfiguration {
// WithMode sets the Mode field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Mode field is set to the value of the last call.
-func (b *OpenShiftSDNConfigApplyConfiguration) WithMode(value v1.SDNMode) *OpenShiftSDNConfigApplyConfiguration {
+func (b *OpenShiftSDNConfigApplyConfiguration) WithMode(value operatorv1.SDNMode) *OpenShiftSDNConfigApplyConfiguration {
b.Mode = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/operatorcondition.go b/operator/applyconfigurations/operator/v1/operatorcondition.go
index 974f12d16..57bffabd2 100644
--- a/operator/applyconfigurations/operator/v1/operatorcondition.go
+++ b/operator/applyconfigurations/operator/v1/operatorcondition.go
@@ -3,18 +3,18 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// OperatorConditionApplyConfiguration represents a declarative configuration of the OperatorCondition type for use
// with apply.
type OperatorConditionApplyConfiguration struct {
- Type *string `json:"type,omitempty"`
- Status *v1.ConditionStatus `json:"status,omitempty"`
- LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
- Reason *string `json:"reason,omitempty"`
- Message *string `json:"message,omitempty"`
+ Type *string `json:"type,omitempty"`
+ Status *operatorv1.ConditionStatus `json:"status,omitempty"`
+ LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
+ Reason *string `json:"reason,omitempty"`
+ Message *string `json:"message,omitempty"`
}
// OperatorConditionApplyConfiguration constructs a declarative configuration of the OperatorCondition type for use with
@@ -34,7 +34,7 @@ func (b *OperatorConditionApplyConfiguration) WithType(value string) *OperatorCo
// WithStatus sets the Status field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Status field is set to the value of the last call.
-func (b *OperatorConditionApplyConfiguration) WithStatus(value v1.ConditionStatus) *OperatorConditionApplyConfiguration {
+func (b *OperatorConditionApplyConfiguration) WithStatus(value operatorv1.ConditionStatus) *OperatorConditionApplyConfiguration {
b.Status = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/operatorspec.go b/operator/applyconfigurations/operator/v1/operatorspec.go
index acbba63c5..6be07d417 100644
--- a/operator/applyconfigurations/operator/v1/operatorspec.go
+++ b/operator/applyconfigurations/operator/v1/operatorspec.go
@@ -3,18 +3,18 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
)
// OperatorSpecApplyConfiguration represents a declarative configuration of the OperatorSpec type for use
// with apply.
type OperatorSpecApplyConfiguration struct {
- ManagementState *v1.ManagementState `json:"managementState,omitempty"`
- LogLevel *v1.LogLevel `json:"logLevel,omitempty"`
- OperatorLogLevel *v1.LogLevel `json:"operatorLogLevel,omitempty"`
- UnsupportedConfigOverrides *runtime.RawExtension `json:"unsupportedConfigOverrides,omitempty"`
- ObservedConfig *runtime.RawExtension `json:"observedConfig,omitempty"`
+ ManagementState *operatorv1.ManagementState `json:"managementState,omitempty"`
+ LogLevel *operatorv1.LogLevel `json:"logLevel,omitempty"`
+ OperatorLogLevel *operatorv1.LogLevel `json:"operatorLogLevel,omitempty"`
+ UnsupportedConfigOverrides *runtime.RawExtension `json:"unsupportedConfigOverrides,omitempty"`
+ ObservedConfig *runtime.RawExtension `json:"observedConfig,omitempty"`
}
// OperatorSpecApplyConfiguration constructs a declarative configuration of the OperatorSpec type for use with
@@ -26,7 +26,7 @@ func OperatorSpec() *OperatorSpecApplyConfiguration {
// WithManagementState sets the ManagementState field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ManagementState field is set to the value of the last call.
-func (b *OperatorSpecApplyConfiguration) WithManagementState(value v1.ManagementState) *OperatorSpecApplyConfiguration {
+func (b *OperatorSpecApplyConfiguration) WithManagementState(value operatorv1.ManagementState) *OperatorSpecApplyConfiguration {
b.ManagementState = &value
return b
}
@@ -34,7 +34,7 @@ func (b *OperatorSpecApplyConfiguration) WithManagementState(value v1.Management
// WithLogLevel sets the LogLevel field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LogLevel field is set to the value of the last call.
-func (b *OperatorSpecApplyConfiguration) WithLogLevel(value v1.LogLevel) *OperatorSpecApplyConfiguration {
+func (b *OperatorSpecApplyConfiguration) WithLogLevel(value operatorv1.LogLevel) *OperatorSpecApplyConfiguration {
b.LogLevel = &value
return b
}
@@ -42,7 +42,7 @@ func (b *OperatorSpecApplyConfiguration) WithLogLevel(value v1.LogLevel) *Operat
// WithOperatorLogLevel sets the OperatorLogLevel field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the OperatorLogLevel field is set to the value of the last call.
-func (b *OperatorSpecApplyConfiguration) WithOperatorLogLevel(value v1.LogLevel) *OperatorSpecApplyConfiguration {
+func (b *OperatorSpecApplyConfiguration) WithOperatorLogLevel(value operatorv1.LogLevel) *OperatorSpecApplyConfiguration {
b.OperatorLogLevel = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/partialselector.go b/operator/applyconfigurations/operator/v1/partialselector.go
index 040357597..885c40279 100644
--- a/operator/applyconfigurations/operator/v1/partialselector.go
+++ b/operator/applyconfigurations/operator/v1/partialselector.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// PartialSelectorApplyConfiguration represents a declarative configuration of the PartialSelector type for use
// with apply.
type PartialSelectorApplyConfiguration struct {
- MachineResourceSelector *v1.LabelSelectorApplyConfiguration `json:"machineResourceSelector,omitempty"`
+ MachineResourceSelector *metav1.LabelSelectorApplyConfiguration `json:"machineResourceSelector,omitempty"`
}
// PartialSelectorApplyConfiguration constructs a declarative configuration of the PartialSelector type for use with
@@ -21,7 +21,7 @@ func PartialSelector() *PartialSelectorApplyConfiguration {
// WithMachineResourceSelector sets the MachineResourceSelector field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the MachineResourceSelector field is set to the value of the last call.
-func (b *PartialSelectorApplyConfiguration) WithMachineResourceSelector(value *v1.LabelSelectorApplyConfiguration) *PartialSelectorApplyConfiguration {
+func (b *PartialSelectorApplyConfiguration) WithMachineResourceSelector(value *metav1.LabelSelectorApplyConfiguration) *PartialSelectorApplyConfiguration {
b.MachineResourceSelector = value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/perspectivevisibility.go b/operator/applyconfigurations/operator/v1/perspectivevisibility.go
index 1dd11f800..222557419 100644
--- a/operator/applyconfigurations/operator/v1/perspectivevisibility.go
+++ b/operator/applyconfigurations/operator/v1/perspectivevisibility.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// PerspectiveVisibilityApplyConfiguration represents a declarative configuration of the PerspectiveVisibility type for use
// with apply.
type PerspectiveVisibilityApplyConfiguration struct {
- State *v1.PerspectiveState `json:"state,omitempty"`
+ State *operatorv1.PerspectiveState `json:"state,omitempty"`
AccessReview *ResourceAttributesAccessReviewApplyConfiguration `json:"accessReview,omitempty"`
}
@@ -22,7 +22,7 @@ func PerspectiveVisibility() *PerspectiveVisibilityApplyConfiguration {
// WithState sets the State field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the State field is set to the value of the last call.
-func (b *PerspectiveVisibilityApplyConfiguration) WithState(value v1.PerspectiveState) *PerspectiveVisibilityApplyConfiguration {
+func (b *PerspectiveVisibilityApplyConfiguration) WithState(value operatorv1.PerspectiveState) *PerspectiveVisibilityApplyConfiguration {
b.State = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/privatestrategy.go b/operator/applyconfigurations/operator/v1/privatestrategy.go
index 4154e999d..411571380 100644
--- a/operator/applyconfigurations/operator/v1/privatestrategy.go
+++ b/operator/applyconfigurations/operator/v1/privatestrategy.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// PrivateStrategyApplyConfiguration represents a declarative configuration of the PrivateStrategy type for use
// with apply.
type PrivateStrategyApplyConfiguration struct {
- Protocol *v1.IngressControllerProtocol `json:"protocol,omitempty"`
+ Protocol *operatorv1.IngressControllerProtocol `json:"protocol,omitempty"`
}
// PrivateStrategyApplyConfiguration constructs a declarative configuration of the PrivateStrategy type for use with
@@ -21,7 +21,7 @@ func PrivateStrategy() *PrivateStrategyApplyConfiguration {
// WithProtocol sets the Protocol field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Protocol field is set to the value of the last call.
-func (b *PrivateStrategyApplyConfiguration) WithProtocol(value v1.IngressControllerProtocol) *PrivateStrategyApplyConfiguration {
+func (b *PrivateStrategyApplyConfiguration) WithProtocol(value operatorv1.IngressControllerProtocol) *PrivateStrategyApplyConfiguration {
b.Protocol = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/providerloadbalancerparameters.go b/operator/applyconfigurations/operator/v1/providerloadbalancerparameters.go
index 6f8675764..0812e6974 100644
--- a/operator/applyconfigurations/operator/v1/providerloadbalancerparameters.go
+++ b/operator/applyconfigurations/operator/v1/providerloadbalancerparameters.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// ProviderLoadBalancerParametersApplyConfiguration represents a declarative configuration of the ProviderLoadBalancerParameters type for use
// with apply.
type ProviderLoadBalancerParametersApplyConfiguration struct {
- Type *v1.LoadBalancerProviderType `json:"type,omitempty"`
+ Type *operatorv1.LoadBalancerProviderType `json:"type,omitempty"`
AWS *AWSLoadBalancerParametersApplyConfiguration `json:"aws,omitempty"`
GCP *GCPLoadBalancerParametersApplyConfiguration `json:"gcp,omitempty"`
IBM *IBMLoadBalancerParametersApplyConfiguration `json:"ibm,omitempty"`
@@ -25,7 +25,7 @@ func ProviderLoadBalancerParameters() *ProviderLoadBalancerParametersApplyConfig
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *ProviderLoadBalancerParametersApplyConfiguration) WithType(value v1.LoadBalancerProviderType) *ProviderLoadBalancerParametersApplyConfiguration {
+func (b *ProviderLoadBalancerParametersApplyConfiguration) WithType(value operatorv1.LoadBalancerProviderType) *ProviderLoadBalancerParametersApplyConfiguration {
b.Type = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/proxyconfig.go b/operator/applyconfigurations/operator/v1/proxyconfig.go
index 334264d97..2565e3876 100644
--- a/operator/applyconfigurations/operator/v1/proxyconfig.go
+++ b/operator/applyconfigurations/operator/v1/proxyconfig.go
@@ -3,15 +3,15 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// ProxyConfigApplyConfiguration represents a declarative configuration of the ProxyConfig type for use
// with apply.
type ProxyConfigApplyConfiguration struct {
- IptablesSyncPeriod *string `json:"iptablesSyncPeriod,omitempty"`
- BindAddress *string `json:"bindAddress,omitempty"`
- ProxyArguments map[string]v1.ProxyArgumentList `json:"proxyArguments,omitempty"`
+ IptablesSyncPeriod *string `json:"iptablesSyncPeriod,omitempty"`
+ BindAddress *string `json:"bindAddress,omitempty"`
+ ProxyArguments map[string]operatorv1.ProxyArgumentList `json:"proxyArguments,omitempty"`
}
// ProxyConfigApplyConfiguration constructs a declarative configuration of the ProxyConfig type for use with
@@ -40,9 +40,9 @@ func (b *ProxyConfigApplyConfiguration) WithBindAddress(value string) *ProxyConf
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, the entries provided by each call will be put on the ProxyArguments field,
// overwriting an existing map entries in ProxyArguments field with the same key.
-func (b *ProxyConfigApplyConfiguration) WithProxyArguments(entries map[string]v1.ProxyArgumentList) *ProxyConfigApplyConfiguration {
+func (b *ProxyConfigApplyConfiguration) WithProxyArguments(entries map[string]operatorv1.ProxyArgumentList) *ProxyConfigApplyConfiguration {
if b.ProxyArguments == nil && len(entries) > 0 {
- b.ProxyArguments = make(map[string]v1.ProxyArgumentList, len(entries))
+ b.ProxyArguments = make(map[string]operatorv1.ProxyArgumentList, len(entries))
}
for k, v := range entries {
b.ProxyArguments[k] = v
diff --git a/operator/applyconfigurations/operator/v1/reloadservice.go b/operator/applyconfigurations/operator/v1/reloadservice.go
index 5eb52c9f0..aef55a1b1 100644
--- a/operator/applyconfigurations/operator/v1/reloadservice.go
+++ b/operator/applyconfigurations/operator/v1/reloadservice.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// ReloadServiceApplyConfiguration represents a declarative configuration of the ReloadService type for use
// with apply.
type ReloadServiceApplyConfiguration struct {
- ServiceName *v1.NodeDisruptionPolicyServiceName `json:"serviceName,omitempty"`
+ ServiceName *operatorv1.NodeDisruptionPolicyServiceName `json:"serviceName,omitempty"`
}
// ReloadServiceApplyConfiguration constructs a declarative configuration of the ReloadService type for use with
@@ -21,7 +21,7 @@ func ReloadService() *ReloadServiceApplyConfiguration {
// WithServiceName sets the ServiceName field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ServiceName field is set to the value of the last call.
-func (b *ReloadServiceApplyConfiguration) WithServiceName(value v1.NodeDisruptionPolicyServiceName) *ReloadServiceApplyConfiguration {
+func (b *ReloadServiceApplyConfiguration) WithServiceName(value operatorv1.NodeDisruptionPolicyServiceName) *ReloadServiceApplyConfiguration {
b.ServiceName = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/resourceattributesaccessreview.go b/operator/applyconfigurations/operator/v1/resourceattributesaccessreview.go
index 8e4b24966..96e749c5f 100644
--- a/operator/applyconfigurations/operator/v1/resourceattributesaccessreview.go
+++ b/operator/applyconfigurations/operator/v1/resourceattributesaccessreview.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "k8s.io/api/authorization/v1"
+ authorizationv1 "k8s.io/api/authorization/v1"
)
// ResourceAttributesAccessReviewApplyConfiguration represents a declarative configuration of the ResourceAttributesAccessReview type for use
// with apply.
type ResourceAttributesAccessReviewApplyConfiguration struct {
- Required []v1.ResourceAttributes `json:"required,omitempty"`
- Missing []v1.ResourceAttributes `json:"missing,omitempty"`
+ Required []authorizationv1.ResourceAttributes `json:"required,omitempty"`
+ Missing []authorizationv1.ResourceAttributes `json:"missing,omitempty"`
}
// ResourceAttributesAccessReviewApplyConfiguration constructs a declarative configuration of the ResourceAttributesAccessReview type for use with
@@ -22,7 +22,7 @@ func ResourceAttributesAccessReview() *ResourceAttributesAccessReviewApplyConfig
// WithRequired adds the given value to the Required field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Required field.
-func (b *ResourceAttributesAccessReviewApplyConfiguration) WithRequired(values ...v1.ResourceAttributes) *ResourceAttributesAccessReviewApplyConfiguration {
+func (b *ResourceAttributesAccessReviewApplyConfiguration) WithRequired(values ...authorizationv1.ResourceAttributes) *ResourceAttributesAccessReviewApplyConfiguration {
for i := range values {
b.Required = append(b.Required, values[i])
}
@@ -32,7 +32,7 @@ func (b *ResourceAttributesAccessReviewApplyConfiguration) WithRequired(values .
// WithMissing adds the given value to the Missing field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Missing field.
-func (b *ResourceAttributesAccessReviewApplyConfiguration) WithMissing(values ...v1.ResourceAttributes) *ResourceAttributesAccessReviewApplyConfiguration {
+func (b *ResourceAttributesAccessReviewApplyConfiguration) WithMissing(values ...authorizationv1.ResourceAttributes) *ResourceAttributesAccessReviewApplyConfiguration {
for i := range values {
b.Missing = append(b.Missing, values[i])
}
diff --git a/operator/applyconfigurations/operator/v1/restartservice.go b/operator/applyconfigurations/operator/v1/restartservice.go
index 54b9051a3..36c43a116 100644
--- a/operator/applyconfigurations/operator/v1/restartservice.go
+++ b/operator/applyconfigurations/operator/v1/restartservice.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// RestartServiceApplyConfiguration represents a declarative configuration of the RestartService type for use
// with apply.
type RestartServiceApplyConfiguration struct {
- ServiceName *v1.NodeDisruptionPolicyServiceName `json:"serviceName,omitempty"`
+ ServiceName *operatorv1.NodeDisruptionPolicyServiceName `json:"serviceName,omitempty"`
}
// RestartServiceApplyConfiguration constructs a declarative configuration of the RestartService type for use with
@@ -21,7 +21,7 @@ func RestartService() *RestartServiceApplyConfiguration {
// WithServiceName sets the ServiceName field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ServiceName field is set to the value of the last call.
-func (b *RestartServiceApplyConfiguration) WithServiceName(value v1.NodeDisruptionPolicyServiceName) *RestartServiceApplyConfiguration {
+func (b *RestartServiceApplyConfiguration) WithServiceName(value operatorv1.NodeDisruptionPolicyServiceName) *RestartServiceApplyConfiguration {
b.ServiceName = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/routeadmissionpolicy.go b/operator/applyconfigurations/operator/v1/routeadmissionpolicy.go
index d51355123..5faa3c56b 100644
--- a/operator/applyconfigurations/operator/v1/routeadmissionpolicy.go
+++ b/operator/applyconfigurations/operator/v1/routeadmissionpolicy.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// RouteAdmissionPolicyApplyConfiguration represents a declarative configuration of the RouteAdmissionPolicy type for use
// with apply.
type RouteAdmissionPolicyApplyConfiguration struct {
- NamespaceOwnership *v1.NamespaceOwnershipCheck `json:"namespaceOwnership,omitempty"`
- WildcardPolicy *v1.WildcardPolicy `json:"wildcardPolicy,omitempty"`
+ NamespaceOwnership *operatorv1.NamespaceOwnershipCheck `json:"namespaceOwnership,omitempty"`
+ WildcardPolicy *operatorv1.WildcardPolicy `json:"wildcardPolicy,omitempty"`
}
// RouteAdmissionPolicyApplyConfiguration constructs a declarative configuration of the RouteAdmissionPolicy type for use with
@@ -22,7 +22,7 @@ func RouteAdmissionPolicy() *RouteAdmissionPolicyApplyConfiguration {
// WithNamespaceOwnership sets the NamespaceOwnership field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the NamespaceOwnership field is set to the value of the last call.
-func (b *RouteAdmissionPolicyApplyConfiguration) WithNamespaceOwnership(value v1.NamespaceOwnershipCheck) *RouteAdmissionPolicyApplyConfiguration {
+func (b *RouteAdmissionPolicyApplyConfiguration) WithNamespaceOwnership(value operatorv1.NamespaceOwnershipCheck) *RouteAdmissionPolicyApplyConfiguration {
b.NamespaceOwnership = &value
return b
}
@@ -30,7 +30,7 @@ func (b *RouteAdmissionPolicyApplyConfiguration) WithNamespaceOwnership(value v1
// WithWildcardPolicy sets the WildcardPolicy field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the WildcardPolicy field is set to the value of the last call.
-func (b *RouteAdmissionPolicyApplyConfiguration) WithWildcardPolicy(value v1.WildcardPolicy) *RouteAdmissionPolicyApplyConfiguration {
+func (b *RouteAdmissionPolicyApplyConfiguration) WithWildcardPolicy(value operatorv1.WildcardPolicy) *RouteAdmissionPolicyApplyConfiguration {
b.WildcardPolicy = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/serviceaccountissuerstatus.go b/operator/applyconfigurations/operator/v1/serviceaccountissuerstatus.go
index b8962296f..f4a6de0b6 100644
--- a/operator/applyconfigurations/operator/v1/serviceaccountissuerstatus.go
+++ b/operator/applyconfigurations/operator/v1/serviceaccountissuerstatus.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// ServiceAccountIssuerStatusApplyConfiguration represents a declarative configuration of the ServiceAccountIssuerStatus type for use
// with apply.
type ServiceAccountIssuerStatusApplyConfiguration struct {
- Name *string `json:"name,omitempty"`
- ExpirationTime *v1.Time `json:"expirationTime,omitempty"`
+ Name *string `json:"name,omitempty"`
+ ExpirationTime *metav1.Time `json:"expirationTime,omitempty"`
}
// ServiceAccountIssuerStatusApplyConfiguration constructs a declarative configuration of the ServiceAccountIssuerStatus type for use with
@@ -30,7 +30,7 @@ func (b *ServiceAccountIssuerStatusApplyConfiguration) WithName(value string) *S
// WithExpirationTime sets the ExpirationTime field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ExpirationTime field is set to the value of the last call.
-func (b *ServiceAccountIssuerStatusApplyConfiguration) WithExpirationTime(value v1.Time) *ServiceAccountIssuerStatusApplyConfiguration {
+func (b *ServiceAccountIssuerStatusApplyConfiguration) WithExpirationTime(value metav1.Time) *ServiceAccountIssuerStatusApplyConfiguration {
b.ExpirationTime = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/serviceca.go b/operator/applyconfigurations/operator/v1/serviceca.go
index cceba5d9d..bb0757381 100644
--- a/operator/applyconfigurations/operator/v1/serviceca.go
+++ b/operator/applyconfigurations/operator/v1/serviceca.go
@@ -3,21 +3,21 @@
package v1
import (
- apioperatorv1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
internal "github.com/openshift/client-go/operator/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ServiceCAApplyConfiguration represents a declarative configuration of the ServiceCA type for use
// with apply.
type ServiceCAApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *ServiceCASpecApplyConfiguration `json:"spec,omitempty"`
- Status *ServiceCAStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *ServiceCASpecApplyConfiguration `json:"spec,omitempty"`
+ Status *ServiceCAStatusApplyConfiguration `json:"status,omitempty"`
}
// ServiceCA constructs a declarative configuration of the ServiceCA type for use with
@@ -41,18 +41,18 @@ func ServiceCA(name string) *ServiceCAApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractServiceCA(serviceCA *apioperatorv1.ServiceCA, fieldManager string) (*ServiceCAApplyConfiguration, error) {
+func ExtractServiceCA(serviceCA *operatorv1.ServiceCA, fieldManager string) (*ServiceCAApplyConfiguration, error) {
return extractServiceCA(serviceCA, fieldManager, "")
}
// ExtractServiceCAStatus is the same as ExtractServiceCA except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractServiceCAStatus(serviceCA *apioperatorv1.ServiceCA, fieldManager string) (*ServiceCAApplyConfiguration, error) {
+func ExtractServiceCAStatus(serviceCA *operatorv1.ServiceCA, fieldManager string) (*ServiceCAApplyConfiguration, error) {
return extractServiceCA(serviceCA, fieldManager, "status")
}
-func extractServiceCA(serviceCA *apioperatorv1.ServiceCA, fieldManager string, subresource string) (*ServiceCAApplyConfiguration, error) {
+func extractServiceCA(serviceCA *operatorv1.ServiceCA, fieldManager string, subresource string) (*ServiceCAApplyConfiguration, error) {
b := &ServiceCAApplyConfiguration{}
err := managedfields.ExtractInto(serviceCA, internal.Parser().Type("com.github.openshift.api.operator.v1.ServiceCA"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractServiceCA(serviceCA *apioperatorv1.ServiceCA, fieldManager string, s
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ServiceCAApplyConfiguration) WithKind(value string) *ServiceCAApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *ServiceCAApplyConfiguration) WithKind(value string) *ServiceCAApplyConf
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ServiceCAApplyConfiguration) WithAPIVersion(value string) *ServiceCAApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *ServiceCAApplyConfiguration) WithAPIVersion(value string) *ServiceCAApp
// If called multiple times, the Name field is set to the value of the last call.
func (b *ServiceCAApplyConfiguration) WithName(value string) *ServiceCAApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *ServiceCAApplyConfiguration) WithName(value string) *ServiceCAApplyConf
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ServiceCAApplyConfiguration) WithGenerateName(value string) *ServiceCAApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *ServiceCAApplyConfiguration) WithGenerateName(value string) *ServiceCAA
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ServiceCAApplyConfiguration) WithNamespace(value string) *ServiceCAApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *ServiceCAApplyConfiguration) WithNamespace(value string) *ServiceCAAppl
// If called multiple times, the UID field is set to the value of the last call.
func (b *ServiceCAApplyConfiguration) WithUID(value types.UID) *ServiceCAApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *ServiceCAApplyConfiguration) WithUID(value types.UID) *ServiceCAApplyCo
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ServiceCAApplyConfiguration) WithResourceVersion(value string) *ServiceCAApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *ServiceCAApplyConfiguration) WithResourceVersion(value string) *Service
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ServiceCAApplyConfiguration) WithGeneration(value int64) *ServiceCAApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *ServiceCAApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ServiceCAApplyConfiguration {
+func (b *ServiceCAApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ServiceCAApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *ServiceCAApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ServiceCAApplyConfiguration {
+func (b *ServiceCAApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ServiceCAApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *ServiceCAApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ServiceCAApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ServiceCAApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *ServiceCAApplyConfiguration) WithDeletionGracePeriodSeconds(value int64
// overwriting an existing map entries in Labels field with the same key.
func (b *ServiceCAApplyConfiguration) WithLabels(entries map[string]string) *ServiceCAApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *ServiceCAApplyConfiguration) WithLabels(entries map[string]string) *Ser
// overwriting an existing map entries in Annotations field with the same key.
func (b *ServiceCAApplyConfiguration) WithAnnotations(entries map[string]string) *ServiceCAApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *ServiceCAApplyConfiguration) WithAnnotations(entries map[string]string)
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *ServiceCAApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ServiceCAApplyConfiguration {
+func (b *ServiceCAApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ServiceCAApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *ServiceCAApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRef
func (b *ServiceCAApplyConfiguration) WithFinalizers(values ...string) *ServiceCAApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *ServiceCAApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *ServiceCAApplyConfiguration) WithStatus(value *ServiceCAStatusApplyConf
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ServiceCAApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/operator/applyconfigurations/operator/v1/servicecaspec.go b/operator/applyconfigurations/operator/v1/servicecaspec.go
index c083e932e..844041ef3 100644
--- a/operator/applyconfigurations/operator/v1/servicecaspec.go
+++ b/operator/applyconfigurations/operator/v1/servicecaspec.go
@@ -23,7 +23,7 @@ func ServiceCASpec() *ServiceCASpecApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ManagementState field is set to the value of the last call.
func (b *ServiceCASpecApplyConfiguration) WithManagementState(value operatorv1.ManagementState) *ServiceCASpecApplyConfiguration {
- b.ManagementState = &value
+ b.OperatorSpecApplyConfiguration.ManagementState = &value
return b
}
@@ -31,7 +31,7 @@ func (b *ServiceCASpecApplyConfiguration) WithManagementState(value operatorv1.M
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LogLevel field is set to the value of the last call.
func (b *ServiceCASpecApplyConfiguration) WithLogLevel(value operatorv1.LogLevel) *ServiceCASpecApplyConfiguration {
- b.LogLevel = &value
+ b.OperatorSpecApplyConfiguration.LogLevel = &value
return b
}
@@ -39,7 +39,7 @@ func (b *ServiceCASpecApplyConfiguration) WithLogLevel(value operatorv1.LogLevel
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the OperatorLogLevel field is set to the value of the last call.
func (b *ServiceCASpecApplyConfiguration) WithOperatorLogLevel(value operatorv1.LogLevel) *ServiceCASpecApplyConfiguration {
- b.OperatorLogLevel = &value
+ b.OperatorSpecApplyConfiguration.OperatorLogLevel = &value
return b
}
@@ -47,7 +47,7 @@ func (b *ServiceCASpecApplyConfiguration) WithOperatorLogLevel(value operatorv1.
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the UnsupportedConfigOverrides field is set to the value of the last call.
func (b *ServiceCASpecApplyConfiguration) WithUnsupportedConfigOverrides(value runtime.RawExtension) *ServiceCASpecApplyConfiguration {
- b.UnsupportedConfigOverrides = &value
+ b.OperatorSpecApplyConfiguration.UnsupportedConfigOverrides = &value
return b
}
@@ -55,6 +55,6 @@ func (b *ServiceCASpecApplyConfiguration) WithUnsupportedConfigOverrides(value r
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedConfig field is set to the value of the last call.
func (b *ServiceCASpecApplyConfiguration) WithObservedConfig(value runtime.RawExtension) *ServiceCASpecApplyConfiguration {
- b.ObservedConfig = &value
+ b.OperatorSpecApplyConfiguration.ObservedConfig = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/servicecastatus.go b/operator/applyconfigurations/operator/v1/servicecastatus.go
index 91fdbaf2d..957190e8b 100644
--- a/operator/applyconfigurations/operator/v1/servicecastatus.go
+++ b/operator/applyconfigurations/operator/v1/servicecastatus.go
@@ -18,7 +18,7 @@ func ServiceCAStatus() *ServiceCAStatusApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedGeneration field is set to the value of the last call.
func (b *ServiceCAStatusApplyConfiguration) WithObservedGeneration(value int64) *ServiceCAStatusApplyConfiguration {
- b.ObservedGeneration = &value
+ b.OperatorStatusApplyConfiguration.ObservedGeneration = &value
return b
}
@@ -30,7 +30,7 @@ func (b *ServiceCAStatusApplyConfiguration) WithConditions(values ...*OperatorCo
if values[i] == nil {
panic("nil value passed to WithConditions")
}
- b.Conditions = append(b.Conditions, *values[i])
+ b.OperatorStatusApplyConfiguration.Conditions = append(b.OperatorStatusApplyConfiguration.Conditions, *values[i])
}
return b
}
@@ -39,7 +39,7 @@ func (b *ServiceCAStatusApplyConfiguration) WithConditions(values ...*OperatorCo
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Version field is set to the value of the last call.
func (b *ServiceCAStatusApplyConfiguration) WithVersion(value string) *ServiceCAStatusApplyConfiguration {
- b.Version = &value
+ b.OperatorStatusApplyConfiguration.Version = &value
return b
}
@@ -47,7 +47,7 @@ func (b *ServiceCAStatusApplyConfiguration) WithVersion(value string) *ServiceCA
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ReadyReplicas field is set to the value of the last call.
func (b *ServiceCAStatusApplyConfiguration) WithReadyReplicas(value int32) *ServiceCAStatusApplyConfiguration {
- b.ReadyReplicas = &value
+ b.OperatorStatusApplyConfiguration.ReadyReplicas = &value
return b
}
@@ -55,7 +55,7 @@ func (b *ServiceCAStatusApplyConfiguration) WithReadyReplicas(value int32) *Serv
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LatestAvailableRevision field is set to the value of the last call.
func (b *ServiceCAStatusApplyConfiguration) WithLatestAvailableRevision(value int32) *ServiceCAStatusApplyConfiguration {
- b.LatestAvailableRevision = &value
+ b.OperatorStatusApplyConfiguration.LatestAvailableRevision = &value
return b
}
@@ -67,7 +67,7 @@ func (b *ServiceCAStatusApplyConfiguration) WithGenerations(values ...*Generatio
if values[i] == nil {
panic("nil value passed to WithGenerations")
}
- b.Generations = append(b.Generations, *values[i])
+ b.OperatorStatusApplyConfiguration.Generations = append(b.OperatorStatusApplyConfiguration.Generations, *values[i])
}
return b
}
diff --git a/operator/applyconfigurations/operator/v1/servicecatalogapiserver.go b/operator/applyconfigurations/operator/v1/servicecatalogapiserver.go
index 62bbc1637..52981ca86 100644
--- a/operator/applyconfigurations/operator/v1/servicecatalogapiserver.go
+++ b/operator/applyconfigurations/operator/v1/servicecatalogapiserver.go
@@ -3,21 +3,21 @@
package v1
import (
- apioperatorv1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
internal "github.com/openshift/client-go/operator/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ServiceCatalogAPIServerApplyConfiguration represents a declarative configuration of the ServiceCatalogAPIServer type for use
// with apply.
type ServiceCatalogAPIServerApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *ServiceCatalogAPIServerSpecApplyConfiguration `json:"spec,omitempty"`
- Status *ServiceCatalogAPIServerStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *ServiceCatalogAPIServerSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *ServiceCatalogAPIServerStatusApplyConfiguration `json:"status,omitempty"`
}
// ServiceCatalogAPIServer constructs a declarative configuration of the ServiceCatalogAPIServer type for use with
@@ -41,18 +41,18 @@ func ServiceCatalogAPIServer(name string) *ServiceCatalogAPIServerApplyConfigura
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractServiceCatalogAPIServer(serviceCatalogAPIServer *apioperatorv1.ServiceCatalogAPIServer, fieldManager string) (*ServiceCatalogAPIServerApplyConfiguration, error) {
+func ExtractServiceCatalogAPIServer(serviceCatalogAPIServer *operatorv1.ServiceCatalogAPIServer, fieldManager string) (*ServiceCatalogAPIServerApplyConfiguration, error) {
return extractServiceCatalogAPIServer(serviceCatalogAPIServer, fieldManager, "")
}
// ExtractServiceCatalogAPIServerStatus is the same as ExtractServiceCatalogAPIServer except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractServiceCatalogAPIServerStatus(serviceCatalogAPIServer *apioperatorv1.ServiceCatalogAPIServer, fieldManager string) (*ServiceCatalogAPIServerApplyConfiguration, error) {
+func ExtractServiceCatalogAPIServerStatus(serviceCatalogAPIServer *operatorv1.ServiceCatalogAPIServer, fieldManager string) (*ServiceCatalogAPIServerApplyConfiguration, error) {
return extractServiceCatalogAPIServer(serviceCatalogAPIServer, fieldManager, "status")
}
-func extractServiceCatalogAPIServer(serviceCatalogAPIServer *apioperatorv1.ServiceCatalogAPIServer, fieldManager string, subresource string) (*ServiceCatalogAPIServerApplyConfiguration, error) {
+func extractServiceCatalogAPIServer(serviceCatalogAPIServer *operatorv1.ServiceCatalogAPIServer, fieldManager string, subresource string) (*ServiceCatalogAPIServerApplyConfiguration, error) {
b := &ServiceCatalogAPIServerApplyConfiguration{}
err := managedfields.ExtractInto(serviceCatalogAPIServer, internal.Parser().Type("com.github.openshift.api.operator.v1.ServiceCatalogAPIServer"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractServiceCatalogAPIServer(serviceCatalogAPIServer *apioperatorv1.Servi
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ServiceCatalogAPIServerApplyConfiguration) WithKind(value string) *ServiceCatalogAPIServerApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *ServiceCatalogAPIServerApplyConfiguration) WithKind(value string) *Serv
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ServiceCatalogAPIServerApplyConfiguration) WithAPIVersion(value string) *ServiceCatalogAPIServerApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *ServiceCatalogAPIServerApplyConfiguration) WithAPIVersion(value string)
// If called multiple times, the Name field is set to the value of the last call.
func (b *ServiceCatalogAPIServerApplyConfiguration) WithName(value string) *ServiceCatalogAPIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *ServiceCatalogAPIServerApplyConfiguration) WithName(value string) *Serv
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ServiceCatalogAPIServerApplyConfiguration) WithGenerateName(value string) *ServiceCatalogAPIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *ServiceCatalogAPIServerApplyConfiguration) WithGenerateName(value strin
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ServiceCatalogAPIServerApplyConfiguration) WithNamespace(value string) *ServiceCatalogAPIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *ServiceCatalogAPIServerApplyConfiguration) WithNamespace(value string)
// If called multiple times, the UID field is set to the value of the last call.
func (b *ServiceCatalogAPIServerApplyConfiguration) WithUID(value types.UID) *ServiceCatalogAPIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *ServiceCatalogAPIServerApplyConfiguration) WithUID(value types.UID) *Se
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ServiceCatalogAPIServerApplyConfiguration) WithResourceVersion(value string) *ServiceCatalogAPIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *ServiceCatalogAPIServerApplyConfiguration) WithResourceVersion(value st
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ServiceCatalogAPIServerApplyConfiguration) WithGeneration(value int64) *ServiceCatalogAPIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *ServiceCatalogAPIServerApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ServiceCatalogAPIServerApplyConfiguration {
+func (b *ServiceCatalogAPIServerApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ServiceCatalogAPIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *ServiceCatalogAPIServerApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ServiceCatalogAPIServerApplyConfiguration {
+func (b *ServiceCatalogAPIServerApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ServiceCatalogAPIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *ServiceCatalogAPIServerApplyConfiguration) WithDeletionTimestamp(value
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ServiceCatalogAPIServerApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ServiceCatalogAPIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *ServiceCatalogAPIServerApplyConfiguration) WithDeletionGracePeriodSecon
// overwriting an existing map entries in Labels field with the same key.
func (b *ServiceCatalogAPIServerApplyConfiguration) WithLabels(entries map[string]string) *ServiceCatalogAPIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *ServiceCatalogAPIServerApplyConfiguration) WithLabels(entries map[strin
// overwriting an existing map entries in Annotations field with the same key.
func (b *ServiceCatalogAPIServerApplyConfiguration) WithAnnotations(entries map[string]string) *ServiceCatalogAPIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *ServiceCatalogAPIServerApplyConfiguration) WithAnnotations(entries map[
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *ServiceCatalogAPIServerApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ServiceCatalogAPIServerApplyConfiguration {
+func (b *ServiceCatalogAPIServerApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ServiceCatalogAPIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *ServiceCatalogAPIServerApplyConfiguration) WithOwnerReferences(values .
func (b *ServiceCatalogAPIServerApplyConfiguration) WithFinalizers(values ...string) *ServiceCatalogAPIServerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *ServiceCatalogAPIServerApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *ServiceCatalogAPIServerApplyConfiguration) WithStatus(value *ServiceCat
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ServiceCatalogAPIServerApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/operator/applyconfigurations/operator/v1/servicecatalogapiserverspec.go b/operator/applyconfigurations/operator/v1/servicecatalogapiserverspec.go
index c43a956eb..b5271a409 100644
--- a/operator/applyconfigurations/operator/v1/servicecatalogapiserverspec.go
+++ b/operator/applyconfigurations/operator/v1/servicecatalogapiserverspec.go
@@ -23,7 +23,7 @@ func ServiceCatalogAPIServerSpec() *ServiceCatalogAPIServerSpecApplyConfiguratio
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ManagementState field is set to the value of the last call.
func (b *ServiceCatalogAPIServerSpecApplyConfiguration) WithManagementState(value operatorv1.ManagementState) *ServiceCatalogAPIServerSpecApplyConfiguration {
- b.ManagementState = &value
+ b.OperatorSpecApplyConfiguration.ManagementState = &value
return b
}
@@ -31,7 +31,7 @@ func (b *ServiceCatalogAPIServerSpecApplyConfiguration) WithManagementState(valu
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LogLevel field is set to the value of the last call.
func (b *ServiceCatalogAPIServerSpecApplyConfiguration) WithLogLevel(value operatorv1.LogLevel) *ServiceCatalogAPIServerSpecApplyConfiguration {
- b.LogLevel = &value
+ b.OperatorSpecApplyConfiguration.LogLevel = &value
return b
}
@@ -39,7 +39,7 @@ func (b *ServiceCatalogAPIServerSpecApplyConfiguration) WithLogLevel(value opera
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the OperatorLogLevel field is set to the value of the last call.
func (b *ServiceCatalogAPIServerSpecApplyConfiguration) WithOperatorLogLevel(value operatorv1.LogLevel) *ServiceCatalogAPIServerSpecApplyConfiguration {
- b.OperatorLogLevel = &value
+ b.OperatorSpecApplyConfiguration.OperatorLogLevel = &value
return b
}
@@ -47,7 +47,7 @@ func (b *ServiceCatalogAPIServerSpecApplyConfiguration) WithOperatorLogLevel(val
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the UnsupportedConfigOverrides field is set to the value of the last call.
func (b *ServiceCatalogAPIServerSpecApplyConfiguration) WithUnsupportedConfigOverrides(value runtime.RawExtension) *ServiceCatalogAPIServerSpecApplyConfiguration {
- b.UnsupportedConfigOverrides = &value
+ b.OperatorSpecApplyConfiguration.UnsupportedConfigOverrides = &value
return b
}
@@ -55,6 +55,6 @@ func (b *ServiceCatalogAPIServerSpecApplyConfiguration) WithUnsupportedConfigOve
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedConfig field is set to the value of the last call.
func (b *ServiceCatalogAPIServerSpecApplyConfiguration) WithObservedConfig(value runtime.RawExtension) *ServiceCatalogAPIServerSpecApplyConfiguration {
- b.ObservedConfig = &value
+ b.OperatorSpecApplyConfiguration.ObservedConfig = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/servicecatalogapiserverstatus.go b/operator/applyconfigurations/operator/v1/servicecatalogapiserverstatus.go
index e7e16aebd..a82e4e5f0 100644
--- a/operator/applyconfigurations/operator/v1/servicecatalogapiserverstatus.go
+++ b/operator/applyconfigurations/operator/v1/servicecatalogapiserverstatus.go
@@ -18,7 +18,7 @@ func ServiceCatalogAPIServerStatus() *ServiceCatalogAPIServerStatusApplyConfigur
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedGeneration field is set to the value of the last call.
func (b *ServiceCatalogAPIServerStatusApplyConfiguration) WithObservedGeneration(value int64) *ServiceCatalogAPIServerStatusApplyConfiguration {
- b.ObservedGeneration = &value
+ b.OperatorStatusApplyConfiguration.ObservedGeneration = &value
return b
}
@@ -30,7 +30,7 @@ func (b *ServiceCatalogAPIServerStatusApplyConfiguration) WithConditions(values
if values[i] == nil {
panic("nil value passed to WithConditions")
}
- b.Conditions = append(b.Conditions, *values[i])
+ b.OperatorStatusApplyConfiguration.Conditions = append(b.OperatorStatusApplyConfiguration.Conditions, *values[i])
}
return b
}
@@ -39,7 +39,7 @@ func (b *ServiceCatalogAPIServerStatusApplyConfiguration) WithConditions(values
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Version field is set to the value of the last call.
func (b *ServiceCatalogAPIServerStatusApplyConfiguration) WithVersion(value string) *ServiceCatalogAPIServerStatusApplyConfiguration {
- b.Version = &value
+ b.OperatorStatusApplyConfiguration.Version = &value
return b
}
@@ -47,7 +47,7 @@ func (b *ServiceCatalogAPIServerStatusApplyConfiguration) WithVersion(value stri
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ReadyReplicas field is set to the value of the last call.
func (b *ServiceCatalogAPIServerStatusApplyConfiguration) WithReadyReplicas(value int32) *ServiceCatalogAPIServerStatusApplyConfiguration {
- b.ReadyReplicas = &value
+ b.OperatorStatusApplyConfiguration.ReadyReplicas = &value
return b
}
@@ -55,7 +55,7 @@ func (b *ServiceCatalogAPIServerStatusApplyConfiguration) WithReadyReplicas(valu
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LatestAvailableRevision field is set to the value of the last call.
func (b *ServiceCatalogAPIServerStatusApplyConfiguration) WithLatestAvailableRevision(value int32) *ServiceCatalogAPIServerStatusApplyConfiguration {
- b.LatestAvailableRevision = &value
+ b.OperatorStatusApplyConfiguration.LatestAvailableRevision = &value
return b
}
@@ -67,7 +67,7 @@ func (b *ServiceCatalogAPIServerStatusApplyConfiguration) WithGenerations(values
if values[i] == nil {
panic("nil value passed to WithGenerations")
}
- b.Generations = append(b.Generations, *values[i])
+ b.OperatorStatusApplyConfiguration.Generations = append(b.OperatorStatusApplyConfiguration.Generations, *values[i])
}
return b
}
diff --git a/operator/applyconfigurations/operator/v1/servicecatalogcontrollermanager.go b/operator/applyconfigurations/operator/v1/servicecatalogcontrollermanager.go
index 3755bd1c4..f01957710 100644
--- a/operator/applyconfigurations/operator/v1/servicecatalogcontrollermanager.go
+++ b/operator/applyconfigurations/operator/v1/servicecatalogcontrollermanager.go
@@ -3,21 +3,21 @@
package v1
import (
- apioperatorv1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
internal "github.com/openshift/client-go/operator/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ServiceCatalogControllerManagerApplyConfiguration represents a declarative configuration of the ServiceCatalogControllerManager type for use
// with apply.
type ServiceCatalogControllerManagerApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *ServiceCatalogControllerManagerSpecApplyConfiguration `json:"spec,omitempty"`
- Status *ServiceCatalogControllerManagerStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *ServiceCatalogControllerManagerSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *ServiceCatalogControllerManagerStatusApplyConfiguration `json:"status,omitempty"`
}
// ServiceCatalogControllerManager constructs a declarative configuration of the ServiceCatalogControllerManager type for use with
@@ -41,18 +41,18 @@ func ServiceCatalogControllerManager(name string) *ServiceCatalogControllerManag
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractServiceCatalogControllerManager(serviceCatalogControllerManager *apioperatorv1.ServiceCatalogControllerManager, fieldManager string) (*ServiceCatalogControllerManagerApplyConfiguration, error) {
+func ExtractServiceCatalogControllerManager(serviceCatalogControllerManager *operatorv1.ServiceCatalogControllerManager, fieldManager string) (*ServiceCatalogControllerManagerApplyConfiguration, error) {
return extractServiceCatalogControllerManager(serviceCatalogControllerManager, fieldManager, "")
}
// ExtractServiceCatalogControllerManagerStatus is the same as ExtractServiceCatalogControllerManager except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractServiceCatalogControllerManagerStatus(serviceCatalogControllerManager *apioperatorv1.ServiceCatalogControllerManager, fieldManager string) (*ServiceCatalogControllerManagerApplyConfiguration, error) {
+func ExtractServiceCatalogControllerManagerStatus(serviceCatalogControllerManager *operatorv1.ServiceCatalogControllerManager, fieldManager string) (*ServiceCatalogControllerManagerApplyConfiguration, error) {
return extractServiceCatalogControllerManager(serviceCatalogControllerManager, fieldManager, "status")
}
-func extractServiceCatalogControllerManager(serviceCatalogControllerManager *apioperatorv1.ServiceCatalogControllerManager, fieldManager string, subresource string) (*ServiceCatalogControllerManagerApplyConfiguration, error) {
+func extractServiceCatalogControllerManager(serviceCatalogControllerManager *operatorv1.ServiceCatalogControllerManager, fieldManager string, subresource string) (*ServiceCatalogControllerManagerApplyConfiguration, error) {
b := &ServiceCatalogControllerManagerApplyConfiguration{}
err := managedfields.ExtractInto(serviceCatalogControllerManager, internal.Parser().Type("com.github.openshift.api.operator.v1.ServiceCatalogControllerManager"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractServiceCatalogControllerManager(serviceCatalogControllerManager *api
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ServiceCatalogControllerManagerApplyConfiguration) WithKind(value string) *ServiceCatalogControllerManagerApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *ServiceCatalogControllerManagerApplyConfiguration) WithKind(value strin
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ServiceCatalogControllerManagerApplyConfiguration) WithAPIVersion(value string) *ServiceCatalogControllerManagerApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *ServiceCatalogControllerManagerApplyConfiguration) WithAPIVersion(value
// If called multiple times, the Name field is set to the value of the last call.
func (b *ServiceCatalogControllerManagerApplyConfiguration) WithName(value string) *ServiceCatalogControllerManagerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *ServiceCatalogControllerManagerApplyConfiguration) WithName(value strin
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ServiceCatalogControllerManagerApplyConfiguration) WithGenerateName(value string) *ServiceCatalogControllerManagerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *ServiceCatalogControllerManagerApplyConfiguration) WithGenerateName(val
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ServiceCatalogControllerManagerApplyConfiguration) WithNamespace(value string) *ServiceCatalogControllerManagerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *ServiceCatalogControllerManagerApplyConfiguration) WithNamespace(value
// If called multiple times, the UID field is set to the value of the last call.
func (b *ServiceCatalogControllerManagerApplyConfiguration) WithUID(value types.UID) *ServiceCatalogControllerManagerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *ServiceCatalogControllerManagerApplyConfiguration) WithUID(value types.
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ServiceCatalogControllerManagerApplyConfiguration) WithResourceVersion(value string) *ServiceCatalogControllerManagerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *ServiceCatalogControllerManagerApplyConfiguration) WithResourceVersion(
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ServiceCatalogControllerManagerApplyConfiguration) WithGeneration(value int64) *ServiceCatalogControllerManagerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *ServiceCatalogControllerManagerApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ServiceCatalogControllerManagerApplyConfiguration {
+func (b *ServiceCatalogControllerManagerApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ServiceCatalogControllerManagerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *ServiceCatalogControllerManagerApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ServiceCatalogControllerManagerApplyConfiguration {
+func (b *ServiceCatalogControllerManagerApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ServiceCatalogControllerManagerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *ServiceCatalogControllerManagerApplyConfiguration) WithDeletionTimestam
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ServiceCatalogControllerManagerApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ServiceCatalogControllerManagerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *ServiceCatalogControllerManagerApplyConfiguration) WithDeletionGracePer
// overwriting an existing map entries in Labels field with the same key.
func (b *ServiceCatalogControllerManagerApplyConfiguration) WithLabels(entries map[string]string) *ServiceCatalogControllerManagerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *ServiceCatalogControllerManagerApplyConfiguration) WithLabels(entries m
// overwriting an existing map entries in Annotations field with the same key.
func (b *ServiceCatalogControllerManagerApplyConfiguration) WithAnnotations(entries map[string]string) *ServiceCatalogControllerManagerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *ServiceCatalogControllerManagerApplyConfiguration) WithAnnotations(entr
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *ServiceCatalogControllerManagerApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ServiceCatalogControllerManagerApplyConfiguration {
+func (b *ServiceCatalogControllerManagerApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ServiceCatalogControllerManagerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *ServiceCatalogControllerManagerApplyConfiguration) WithOwnerReferences(
func (b *ServiceCatalogControllerManagerApplyConfiguration) WithFinalizers(values ...string) *ServiceCatalogControllerManagerApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *ServiceCatalogControllerManagerApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *ServiceCatalogControllerManagerApplyConfiguration) WithStatus(value *Se
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ServiceCatalogControllerManagerApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/operator/applyconfigurations/operator/v1/servicecatalogcontrollermanagerspec.go b/operator/applyconfigurations/operator/v1/servicecatalogcontrollermanagerspec.go
index 301fd67b5..83df00b3b 100644
--- a/operator/applyconfigurations/operator/v1/servicecatalogcontrollermanagerspec.go
+++ b/operator/applyconfigurations/operator/v1/servicecatalogcontrollermanagerspec.go
@@ -23,7 +23,7 @@ func ServiceCatalogControllerManagerSpec() *ServiceCatalogControllerManagerSpecA
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ManagementState field is set to the value of the last call.
func (b *ServiceCatalogControllerManagerSpecApplyConfiguration) WithManagementState(value operatorv1.ManagementState) *ServiceCatalogControllerManagerSpecApplyConfiguration {
- b.ManagementState = &value
+ b.OperatorSpecApplyConfiguration.ManagementState = &value
return b
}
@@ -31,7 +31,7 @@ func (b *ServiceCatalogControllerManagerSpecApplyConfiguration) WithManagementSt
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LogLevel field is set to the value of the last call.
func (b *ServiceCatalogControllerManagerSpecApplyConfiguration) WithLogLevel(value operatorv1.LogLevel) *ServiceCatalogControllerManagerSpecApplyConfiguration {
- b.LogLevel = &value
+ b.OperatorSpecApplyConfiguration.LogLevel = &value
return b
}
@@ -39,7 +39,7 @@ func (b *ServiceCatalogControllerManagerSpecApplyConfiguration) WithLogLevel(val
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the OperatorLogLevel field is set to the value of the last call.
func (b *ServiceCatalogControllerManagerSpecApplyConfiguration) WithOperatorLogLevel(value operatorv1.LogLevel) *ServiceCatalogControllerManagerSpecApplyConfiguration {
- b.OperatorLogLevel = &value
+ b.OperatorSpecApplyConfiguration.OperatorLogLevel = &value
return b
}
@@ -47,7 +47,7 @@ func (b *ServiceCatalogControllerManagerSpecApplyConfiguration) WithOperatorLogL
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the UnsupportedConfigOverrides field is set to the value of the last call.
func (b *ServiceCatalogControllerManagerSpecApplyConfiguration) WithUnsupportedConfigOverrides(value runtime.RawExtension) *ServiceCatalogControllerManagerSpecApplyConfiguration {
- b.UnsupportedConfigOverrides = &value
+ b.OperatorSpecApplyConfiguration.UnsupportedConfigOverrides = &value
return b
}
@@ -55,6 +55,6 @@ func (b *ServiceCatalogControllerManagerSpecApplyConfiguration) WithUnsupportedC
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedConfig field is set to the value of the last call.
func (b *ServiceCatalogControllerManagerSpecApplyConfiguration) WithObservedConfig(value runtime.RawExtension) *ServiceCatalogControllerManagerSpecApplyConfiguration {
- b.ObservedConfig = &value
+ b.OperatorSpecApplyConfiguration.ObservedConfig = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/servicecatalogcontrollermanagerstatus.go b/operator/applyconfigurations/operator/v1/servicecatalogcontrollermanagerstatus.go
index f01f6f796..d15370217 100644
--- a/operator/applyconfigurations/operator/v1/servicecatalogcontrollermanagerstatus.go
+++ b/operator/applyconfigurations/operator/v1/servicecatalogcontrollermanagerstatus.go
@@ -18,7 +18,7 @@ func ServiceCatalogControllerManagerStatus() *ServiceCatalogControllerManagerSta
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedGeneration field is set to the value of the last call.
func (b *ServiceCatalogControllerManagerStatusApplyConfiguration) WithObservedGeneration(value int64) *ServiceCatalogControllerManagerStatusApplyConfiguration {
- b.ObservedGeneration = &value
+ b.OperatorStatusApplyConfiguration.ObservedGeneration = &value
return b
}
@@ -30,7 +30,7 @@ func (b *ServiceCatalogControllerManagerStatusApplyConfiguration) WithConditions
if values[i] == nil {
panic("nil value passed to WithConditions")
}
- b.Conditions = append(b.Conditions, *values[i])
+ b.OperatorStatusApplyConfiguration.Conditions = append(b.OperatorStatusApplyConfiguration.Conditions, *values[i])
}
return b
}
@@ -39,7 +39,7 @@ func (b *ServiceCatalogControllerManagerStatusApplyConfiguration) WithConditions
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Version field is set to the value of the last call.
func (b *ServiceCatalogControllerManagerStatusApplyConfiguration) WithVersion(value string) *ServiceCatalogControllerManagerStatusApplyConfiguration {
- b.Version = &value
+ b.OperatorStatusApplyConfiguration.Version = &value
return b
}
@@ -47,7 +47,7 @@ func (b *ServiceCatalogControllerManagerStatusApplyConfiguration) WithVersion(va
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ReadyReplicas field is set to the value of the last call.
func (b *ServiceCatalogControllerManagerStatusApplyConfiguration) WithReadyReplicas(value int32) *ServiceCatalogControllerManagerStatusApplyConfiguration {
- b.ReadyReplicas = &value
+ b.OperatorStatusApplyConfiguration.ReadyReplicas = &value
return b
}
@@ -55,7 +55,7 @@ func (b *ServiceCatalogControllerManagerStatusApplyConfiguration) WithReadyRepli
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LatestAvailableRevision field is set to the value of the last call.
func (b *ServiceCatalogControllerManagerStatusApplyConfiguration) WithLatestAvailableRevision(value int32) *ServiceCatalogControllerManagerStatusApplyConfiguration {
- b.LatestAvailableRevision = &value
+ b.OperatorStatusApplyConfiguration.LatestAvailableRevision = &value
return b
}
@@ -67,7 +67,7 @@ func (b *ServiceCatalogControllerManagerStatusApplyConfiguration) WithGeneration
if values[i] == nil {
panic("nil value passed to WithGenerations")
}
- b.Generations = append(b.Generations, *values[i])
+ b.OperatorStatusApplyConfiguration.Generations = append(b.OperatorStatusApplyConfiguration.Generations, *values[i])
}
return b
}
diff --git a/operator/applyconfigurations/operator/v1/sflowconfig.go b/operator/applyconfigurations/operator/v1/sflowconfig.go
index 3b03dda22..350bfbd98 100644
--- a/operator/applyconfigurations/operator/v1/sflowconfig.go
+++ b/operator/applyconfigurations/operator/v1/sflowconfig.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// SFlowConfigApplyConfiguration represents a declarative configuration of the SFlowConfig type for use
// with apply.
type SFlowConfigApplyConfiguration struct {
- Collectors []v1.IPPort `json:"collectors,omitempty"`
+ Collectors []operatorv1.IPPort `json:"collectors,omitempty"`
}
// SFlowConfigApplyConfiguration constructs a declarative configuration of the SFlowConfig type for use with
@@ -21,7 +21,7 @@ func SFlowConfig() *SFlowConfigApplyConfiguration {
// WithCollectors adds the given value to the Collectors field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Collectors field.
-func (b *SFlowConfigApplyConfiguration) WithCollectors(values ...v1.IPPort) *SFlowConfigApplyConfiguration {
+func (b *SFlowConfigApplyConfiguration) WithCollectors(values ...operatorv1.IPPort) *SFlowConfigApplyConfiguration {
for i := range values {
b.Collectors = append(b.Collectors, values[i])
}
diff --git a/operator/applyconfigurations/operator/v1/staticpodoperatorspec.go b/operator/applyconfigurations/operator/v1/staticpodoperatorspec.go
index b033f0d9a..b2434f8d7 100644
--- a/operator/applyconfigurations/operator/v1/staticpodoperatorspec.go
+++ b/operator/applyconfigurations/operator/v1/staticpodoperatorspec.go
@@ -26,7 +26,7 @@ func StaticPodOperatorSpec() *StaticPodOperatorSpecApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ManagementState field is set to the value of the last call.
func (b *StaticPodOperatorSpecApplyConfiguration) WithManagementState(value operatorv1.ManagementState) *StaticPodOperatorSpecApplyConfiguration {
- b.ManagementState = &value
+ b.OperatorSpecApplyConfiguration.ManagementState = &value
return b
}
@@ -34,7 +34,7 @@ func (b *StaticPodOperatorSpecApplyConfiguration) WithManagementState(value oper
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LogLevel field is set to the value of the last call.
func (b *StaticPodOperatorSpecApplyConfiguration) WithLogLevel(value operatorv1.LogLevel) *StaticPodOperatorSpecApplyConfiguration {
- b.LogLevel = &value
+ b.OperatorSpecApplyConfiguration.LogLevel = &value
return b
}
@@ -42,7 +42,7 @@ func (b *StaticPodOperatorSpecApplyConfiguration) WithLogLevel(value operatorv1.
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the OperatorLogLevel field is set to the value of the last call.
func (b *StaticPodOperatorSpecApplyConfiguration) WithOperatorLogLevel(value operatorv1.LogLevel) *StaticPodOperatorSpecApplyConfiguration {
- b.OperatorLogLevel = &value
+ b.OperatorSpecApplyConfiguration.OperatorLogLevel = &value
return b
}
@@ -50,7 +50,7 @@ func (b *StaticPodOperatorSpecApplyConfiguration) WithOperatorLogLevel(value ope
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the UnsupportedConfigOverrides field is set to the value of the last call.
func (b *StaticPodOperatorSpecApplyConfiguration) WithUnsupportedConfigOverrides(value runtime.RawExtension) *StaticPodOperatorSpecApplyConfiguration {
- b.UnsupportedConfigOverrides = &value
+ b.OperatorSpecApplyConfiguration.UnsupportedConfigOverrides = &value
return b
}
@@ -58,7 +58,7 @@ func (b *StaticPodOperatorSpecApplyConfiguration) WithUnsupportedConfigOverrides
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedConfig field is set to the value of the last call.
func (b *StaticPodOperatorSpecApplyConfiguration) WithObservedConfig(value runtime.RawExtension) *StaticPodOperatorSpecApplyConfiguration {
- b.ObservedConfig = &value
+ b.OperatorSpecApplyConfiguration.ObservedConfig = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/staticpodoperatorstatus.go b/operator/applyconfigurations/operator/v1/staticpodoperatorstatus.go
index d805f0a63..0067b78c7 100644
--- a/operator/applyconfigurations/operator/v1/staticpodoperatorstatus.go
+++ b/operator/applyconfigurations/operator/v1/staticpodoperatorstatus.go
@@ -20,7 +20,7 @@ func StaticPodOperatorStatus() *StaticPodOperatorStatusApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedGeneration field is set to the value of the last call.
func (b *StaticPodOperatorStatusApplyConfiguration) WithObservedGeneration(value int64) *StaticPodOperatorStatusApplyConfiguration {
- b.ObservedGeneration = &value
+ b.OperatorStatusApplyConfiguration.ObservedGeneration = &value
return b
}
@@ -32,7 +32,7 @@ func (b *StaticPodOperatorStatusApplyConfiguration) WithConditions(values ...*Op
if values[i] == nil {
panic("nil value passed to WithConditions")
}
- b.Conditions = append(b.Conditions, *values[i])
+ b.OperatorStatusApplyConfiguration.Conditions = append(b.OperatorStatusApplyConfiguration.Conditions, *values[i])
}
return b
}
@@ -41,7 +41,7 @@ func (b *StaticPodOperatorStatusApplyConfiguration) WithConditions(values ...*Op
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Version field is set to the value of the last call.
func (b *StaticPodOperatorStatusApplyConfiguration) WithVersion(value string) *StaticPodOperatorStatusApplyConfiguration {
- b.Version = &value
+ b.OperatorStatusApplyConfiguration.Version = &value
return b
}
@@ -49,7 +49,7 @@ func (b *StaticPodOperatorStatusApplyConfiguration) WithVersion(value string) *S
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ReadyReplicas field is set to the value of the last call.
func (b *StaticPodOperatorStatusApplyConfiguration) WithReadyReplicas(value int32) *StaticPodOperatorStatusApplyConfiguration {
- b.ReadyReplicas = &value
+ b.OperatorStatusApplyConfiguration.ReadyReplicas = &value
return b
}
@@ -57,7 +57,7 @@ func (b *StaticPodOperatorStatusApplyConfiguration) WithReadyReplicas(value int3
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LatestAvailableRevision field is set to the value of the last call.
func (b *StaticPodOperatorStatusApplyConfiguration) WithLatestAvailableRevision(value int32) *StaticPodOperatorStatusApplyConfiguration {
- b.LatestAvailableRevision = &value
+ b.OperatorStatusApplyConfiguration.LatestAvailableRevision = &value
return b
}
@@ -69,7 +69,7 @@ func (b *StaticPodOperatorStatusApplyConfiguration) WithGenerations(values ...*G
if values[i] == nil {
panic("nil value passed to WithGenerations")
}
- b.Generations = append(b.Generations, *values[i])
+ b.OperatorStatusApplyConfiguration.Generations = append(b.OperatorStatusApplyConfiguration.Generations, *values[i])
}
return b
}
diff --git a/operator/applyconfigurations/operator/v1/storage.go b/operator/applyconfigurations/operator/v1/storage.go
index 418d1dcc2..fe464c41e 100644
--- a/operator/applyconfigurations/operator/v1/storage.go
+++ b/operator/applyconfigurations/operator/v1/storage.go
@@ -3,21 +3,21 @@
package v1
import (
- apioperatorv1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
internal "github.com/openshift/client-go/operator/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// StorageApplyConfiguration represents a declarative configuration of the Storage type for use
// with apply.
type StorageApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *StorageSpecApplyConfiguration `json:"spec,omitempty"`
- Status *StorageStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *StorageSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *StorageStatusApplyConfiguration `json:"status,omitempty"`
}
// Storage constructs a declarative configuration of the Storage type for use with
@@ -41,18 +41,18 @@ func Storage(name string) *StorageApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractStorage(storage *apioperatorv1.Storage, fieldManager string) (*StorageApplyConfiguration, error) {
+func ExtractStorage(storage *operatorv1.Storage, fieldManager string) (*StorageApplyConfiguration, error) {
return extractStorage(storage, fieldManager, "")
}
// ExtractStorageStatus is the same as ExtractStorage except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractStorageStatus(storage *apioperatorv1.Storage, fieldManager string) (*StorageApplyConfiguration, error) {
+func ExtractStorageStatus(storage *operatorv1.Storage, fieldManager string) (*StorageApplyConfiguration, error) {
return extractStorage(storage, fieldManager, "status")
}
-func extractStorage(storage *apioperatorv1.Storage, fieldManager string, subresource string) (*StorageApplyConfiguration, error) {
+func extractStorage(storage *operatorv1.Storage, fieldManager string, subresource string) (*StorageApplyConfiguration, error) {
b := &StorageApplyConfiguration{}
err := managedfields.ExtractInto(storage, internal.Parser().Type("com.github.openshift.api.operator.v1.Storage"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractStorage(storage *apioperatorv1.Storage, fieldManager string, subreso
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *StorageApplyConfiguration) WithKind(value string) *StorageApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *StorageApplyConfiguration) WithKind(value string) *StorageApplyConfigur
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *StorageApplyConfiguration) WithAPIVersion(value string) *StorageApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *StorageApplyConfiguration) WithAPIVersion(value string) *StorageApplyCo
// If called multiple times, the Name field is set to the value of the last call.
func (b *StorageApplyConfiguration) WithName(value string) *StorageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *StorageApplyConfiguration) WithName(value string) *StorageApplyConfigur
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *StorageApplyConfiguration) WithGenerateName(value string) *StorageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *StorageApplyConfiguration) WithGenerateName(value string) *StorageApply
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *StorageApplyConfiguration) WithNamespace(value string) *StorageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *StorageApplyConfiguration) WithNamespace(value string) *StorageApplyCon
// If called multiple times, the UID field is set to the value of the last call.
func (b *StorageApplyConfiguration) WithUID(value types.UID) *StorageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *StorageApplyConfiguration) WithUID(value types.UID) *StorageApplyConfig
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *StorageApplyConfiguration) WithResourceVersion(value string) *StorageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *StorageApplyConfiguration) WithResourceVersion(value string) *StorageAp
// If called multiple times, the Generation field is set to the value of the last call.
func (b *StorageApplyConfiguration) WithGeneration(value int64) *StorageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *StorageApplyConfiguration) WithCreationTimestamp(value metav1.Time) *StorageApplyConfiguration {
+func (b *StorageApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *StorageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *StorageApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *StorageApplyConfiguration {
+func (b *StorageApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *StorageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *StorageApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *St
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *StorageApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *StorageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *StorageApplyConfiguration) WithDeletionGracePeriodSeconds(value int64)
// overwriting an existing map entries in Labels field with the same key.
func (b *StorageApplyConfiguration) WithLabels(entries map[string]string) *StorageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *StorageApplyConfiguration) WithLabels(entries map[string]string) *Stora
// overwriting an existing map entries in Annotations field with the same key.
func (b *StorageApplyConfiguration) WithAnnotations(entries map[string]string) *StorageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *StorageApplyConfiguration) WithAnnotations(entries map[string]string) *
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *StorageApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *StorageApplyConfiguration {
+func (b *StorageApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *StorageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *StorageApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefer
func (b *StorageApplyConfiguration) WithFinalizers(values ...string) *StorageApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *StorageApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *StorageApplyConfiguration) WithStatus(value *StorageStatusApplyConfigur
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *StorageApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/operator/applyconfigurations/operator/v1/storagespec.go b/operator/applyconfigurations/operator/v1/storagespec.go
index 735723c11..152ea2fe0 100644
--- a/operator/applyconfigurations/operator/v1/storagespec.go
+++ b/operator/applyconfigurations/operator/v1/storagespec.go
@@ -24,7 +24,7 @@ func StorageSpec() *StorageSpecApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ManagementState field is set to the value of the last call.
func (b *StorageSpecApplyConfiguration) WithManagementState(value operatorv1.ManagementState) *StorageSpecApplyConfiguration {
- b.ManagementState = &value
+ b.OperatorSpecApplyConfiguration.ManagementState = &value
return b
}
@@ -32,7 +32,7 @@ func (b *StorageSpecApplyConfiguration) WithManagementState(value operatorv1.Man
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LogLevel field is set to the value of the last call.
func (b *StorageSpecApplyConfiguration) WithLogLevel(value operatorv1.LogLevel) *StorageSpecApplyConfiguration {
- b.LogLevel = &value
+ b.OperatorSpecApplyConfiguration.LogLevel = &value
return b
}
@@ -40,7 +40,7 @@ func (b *StorageSpecApplyConfiguration) WithLogLevel(value operatorv1.LogLevel)
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the OperatorLogLevel field is set to the value of the last call.
func (b *StorageSpecApplyConfiguration) WithOperatorLogLevel(value operatorv1.LogLevel) *StorageSpecApplyConfiguration {
- b.OperatorLogLevel = &value
+ b.OperatorSpecApplyConfiguration.OperatorLogLevel = &value
return b
}
@@ -48,7 +48,7 @@ func (b *StorageSpecApplyConfiguration) WithOperatorLogLevel(value operatorv1.Lo
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the UnsupportedConfigOverrides field is set to the value of the last call.
func (b *StorageSpecApplyConfiguration) WithUnsupportedConfigOverrides(value runtime.RawExtension) *StorageSpecApplyConfiguration {
- b.UnsupportedConfigOverrides = &value
+ b.OperatorSpecApplyConfiguration.UnsupportedConfigOverrides = &value
return b
}
@@ -56,7 +56,7 @@ func (b *StorageSpecApplyConfiguration) WithUnsupportedConfigOverrides(value run
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedConfig field is set to the value of the last call.
func (b *StorageSpecApplyConfiguration) WithObservedConfig(value runtime.RawExtension) *StorageSpecApplyConfiguration {
- b.ObservedConfig = &value
+ b.OperatorSpecApplyConfiguration.ObservedConfig = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1/storagestatus.go b/operator/applyconfigurations/operator/v1/storagestatus.go
index 13f796797..f6a034906 100644
--- a/operator/applyconfigurations/operator/v1/storagestatus.go
+++ b/operator/applyconfigurations/operator/v1/storagestatus.go
@@ -18,7 +18,7 @@ func StorageStatus() *StorageStatusApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedGeneration field is set to the value of the last call.
func (b *StorageStatusApplyConfiguration) WithObservedGeneration(value int64) *StorageStatusApplyConfiguration {
- b.ObservedGeneration = &value
+ b.OperatorStatusApplyConfiguration.ObservedGeneration = &value
return b
}
@@ -30,7 +30,7 @@ func (b *StorageStatusApplyConfiguration) WithConditions(values ...*OperatorCond
if values[i] == nil {
panic("nil value passed to WithConditions")
}
- b.Conditions = append(b.Conditions, *values[i])
+ b.OperatorStatusApplyConfiguration.Conditions = append(b.OperatorStatusApplyConfiguration.Conditions, *values[i])
}
return b
}
@@ -39,7 +39,7 @@ func (b *StorageStatusApplyConfiguration) WithConditions(values ...*OperatorCond
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Version field is set to the value of the last call.
func (b *StorageStatusApplyConfiguration) WithVersion(value string) *StorageStatusApplyConfiguration {
- b.Version = &value
+ b.OperatorStatusApplyConfiguration.Version = &value
return b
}
@@ -47,7 +47,7 @@ func (b *StorageStatusApplyConfiguration) WithVersion(value string) *StorageStat
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ReadyReplicas field is set to the value of the last call.
func (b *StorageStatusApplyConfiguration) WithReadyReplicas(value int32) *StorageStatusApplyConfiguration {
- b.ReadyReplicas = &value
+ b.OperatorStatusApplyConfiguration.ReadyReplicas = &value
return b
}
@@ -55,7 +55,7 @@ func (b *StorageStatusApplyConfiguration) WithReadyReplicas(value int32) *Storag
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LatestAvailableRevision field is set to the value of the last call.
func (b *StorageStatusApplyConfiguration) WithLatestAvailableRevision(value int32) *StorageStatusApplyConfiguration {
- b.LatestAvailableRevision = &value
+ b.OperatorStatusApplyConfiguration.LatestAvailableRevision = &value
return b
}
@@ -67,7 +67,7 @@ func (b *StorageStatusApplyConfiguration) WithGenerations(values ...*GenerationS
if values[i] == nil {
panic("nil value passed to WithGenerations")
}
- b.Generations = append(b.Generations, *values[i])
+ b.OperatorStatusApplyConfiguration.Generations = append(b.OperatorStatusApplyConfiguration.Generations, *values[i])
}
return b
}
diff --git a/operator/applyconfigurations/operator/v1/upstream.go b/operator/applyconfigurations/operator/v1/upstream.go
index 07eca5ee3..8f666cd18 100644
--- a/operator/applyconfigurations/operator/v1/upstream.go
+++ b/operator/applyconfigurations/operator/v1/upstream.go
@@ -3,15 +3,15 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// UpstreamApplyConfiguration represents a declarative configuration of the Upstream type for use
// with apply.
type UpstreamApplyConfiguration struct {
- Type *v1.UpstreamType `json:"type,omitempty"`
- Address *string `json:"address,omitempty"`
- Port *uint32 `json:"port,omitempty"`
+ Type *operatorv1.UpstreamType `json:"type,omitempty"`
+ Address *string `json:"address,omitempty"`
+ Port *uint32 `json:"port,omitempty"`
}
// UpstreamApplyConfiguration constructs a declarative configuration of the Upstream type for use with
@@ -23,7 +23,7 @@ func Upstream() *UpstreamApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *UpstreamApplyConfiguration) WithType(value v1.UpstreamType) *UpstreamApplyConfiguration {
+func (b *UpstreamApplyConfiguration) WithType(value operatorv1.UpstreamType) *UpstreamApplyConfiguration {
b.Type = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1alpha1/clusterversionoperator.go b/operator/applyconfigurations/operator/v1alpha1/clusterversionoperator.go
index b6d9afcf4..079fca881 100644
--- a/operator/applyconfigurations/operator/v1alpha1/clusterversionoperator.go
+++ b/operator/applyconfigurations/operator/v1alpha1/clusterversionoperator.go
@@ -69,7 +69,7 @@ func extractClusterVersionOperator(clusterVersionOperator *operatorv1alpha1.Clus
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ClusterVersionOperatorApplyConfiguration) WithKind(value string) *ClusterVersionOperatorApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *ClusterVersionOperatorApplyConfiguration) WithKind(value string) *Clust
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ClusterVersionOperatorApplyConfiguration) WithAPIVersion(value string) *ClusterVersionOperatorApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *ClusterVersionOperatorApplyConfiguration) WithAPIVersion(value string)
// If called multiple times, the Name field is set to the value of the last call.
func (b *ClusterVersionOperatorApplyConfiguration) WithName(value string) *ClusterVersionOperatorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *ClusterVersionOperatorApplyConfiguration) WithName(value string) *Clust
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ClusterVersionOperatorApplyConfiguration) WithGenerateName(value string) *ClusterVersionOperatorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *ClusterVersionOperatorApplyConfiguration) WithGenerateName(value string
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ClusterVersionOperatorApplyConfiguration) WithNamespace(value string) *ClusterVersionOperatorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *ClusterVersionOperatorApplyConfiguration) WithNamespace(value string) *
// If called multiple times, the UID field is set to the value of the last call.
func (b *ClusterVersionOperatorApplyConfiguration) WithUID(value types.UID) *ClusterVersionOperatorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *ClusterVersionOperatorApplyConfiguration) WithUID(value types.UID) *Clu
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ClusterVersionOperatorApplyConfiguration) WithResourceVersion(value string) *ClusterVersionOperatorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,7 +131,7 @@ func (b *ClusterVersionOperatorApplyConfiguration) WithResourceVersion(value str
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ClusterVersionOperatorApplyConfiguration) WithGeneration(value int64) *ClusterVersionOperatorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
@@ -140,7 +140,7 @@ func (b *ClusterVersionOperatorApplyConfiguration) WithGeneration(value int64) *
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
func (b *ClusterVersionOperatorApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ClusterVersionOperatorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
@@ -149,7 +149,7 @@ func (b *ClusterVersionOperatorApplyConfiguration) WithCreationTimestamp(value m
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
func (b *ClusterVersionOperatorApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ClusterVersionOperatorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *ClusterVersionOperatorApplyConfiguration) WithDeletionTimestamp(value m
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ClusterVersionOperatorApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ClusterVersionOperatorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *ClusterVersionOperatorApplyConfiguration) WithDeletionGracePeriodSecond
// overwriting an existing map entries in Labels field with the same key.
func (b *ClusterVersionOperatorApplyConfiguration) WithLabels(entries map[string]string) *ClusterVersionOperatorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *ClusterVersionOperatorApplyConfiguration) WithLabels(entries map[string
// overwriting an existing map entries in Annotations field with the same key.
func (b *ClusterVersionOperatorApplyConfiguration) WithAnnotations(entries map[string]string) *ClusterVersionOperatorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -201,7 +201,7 @@ func (b *ClusterVersionOperatorApplyConfiguration) WithOwnerReferences(values ..
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,7 +212,7 @@ func (b *ClusterVersionOperatorApplyConfiguration) WithOwnerReferences(values ..
func (b *ClusterVersionOperatorApplyConfiguration) WithFinalizers(values ...string) *ClusterVersionOperatorApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
@@ -242,5 +242,5 @@ func (b *ClusterVersionOperatorApplyConfiguration) WithStatus(value *ClusterVers
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ClusterVersionOperatorApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/operator/applyconfigurations/operator/v1alpha1/etcdbackup.go b/operator/applyconfigurations/operator/v1alpha1/etcdbackup.go
index 867403966..7f4a38dac 100644
--- a/operator/applyconfigurations/operator/v1alpha1/etcdbackup.go
+++ b/operator/applyconfigurations/operator/v1alpha1/etcdbackup.go
@@ -69,7 +69,7 @@ func extractEtcdBackup(etcdBackup *operatorv1alpha1.EtcdBackup, fieldManager str
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *EtcdBackupApplyConfiguration) WithKind(value string) *EtcdBackupApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *EtcdBackupApplyConfiguration) WithKind(value string) *EtcdBackupApplyCo
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *EtcdBackupApplyConfiguration) WithAPIVersion(value string) *EtcdBackupApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *EtcdBackupApplyConfiguration) WithAPIVersion(value string) *EtcdBackupA
// If called multiple times, the Name field is set to the value of the last call.
func (b *EtcdBackupApplyConfiguration) WithName(value string) *EtcdBackupApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *EtcdBackupApplyConfiguration) WithName(value string) *EtcdBackupApplyCo
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *EtcdBackupApplyConfiguration) WithGenerateName(value string) *EtcdBackupApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *EtcdBackupApplyConfiguration) WithGenerateName(value string) *EtcdBacku
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *EtcdBackupApplyConfiguration) WithNamespace(value string) *EtcdBackupApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *EtcdBackupApplyConfiguration) WithNamespace(value string) *EtcdBackupAp
// If called multiple times, the UID field is set to the value of the last call.
func (b *EtcdBackupApplyConfiguration) WithUID(value types.UID) *EtcdBackupApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *EtcdBackupApplyConfiguration) WithUID(value types.UID) *EtcdBackupApply
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *EtcdBackupApplyConfiguration) WithResourceVersion(value string) *EtcdBackupApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,7 +131,7 @@ func (b *EtcdBackupApplyConfiguration) WithResourceVersion(value string) *EtcdBa
// If called multiple times, the Generation field is set to the value of the last call.
func (b *EtcdBackupApplyConfiguration) WithGeneration(value int64) *EtcdBackupApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
@@ -140,7 +140,7 @@ func (b *EtcdBackupApplyConfiguration) WithGeneration(value int64) *EtcdBackupAp
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
func (b *EtcdBackupApplyConfiguration) WithCreationTimestamp(value metav1.Time) *EtcdBackupApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
@@ -149,7 +149,7 @@ func (b *EtcdBackupApplyConfiguration) WithCreationTimestamp(value metav1.Time)
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
func (b *EtcdBackupApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *EtcdBackupApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *EtcdBackupApplyConfiguration) WithDeletionTimestamp(value metav1.Time)
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *EtcdBackupApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *EtcdBackupApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *EtcdBackupApplyConfiguration) WithDeletionGracePeriodSeconds(value int6
// overwriting an existing map entries in Labels field with the same key.
func (b *EtcdBackupApplyConfiguration) WithLabels(entries map[string]string) *EtcdBackupApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *EtcdBackupApplyConfiguration) WithLabels(entries map[string]string) *Et
// overwriting an existing map entries in Annotations field with the same key.
func (b *EtcdBackupApplyConfiguration) WithAnnotations(entries map[string]string) *EtcdBackupApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -201,7 +201,7 @@ func (b *EtcdBackupApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRe
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,7 +212,7 @@ func (b *EtcdBackupApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRe
func (b *EtcdBackupApplyConfiguration) WithFinalizers(values ...string) *EtcdBackupApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
@@ -242,5 +242,5 @@ func (b *EtcdBackupApplyConfiguration) WithStatus(value *EtcdBackupStatusApplyCo
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *EtcdBackupApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/operator/applyconfigurations/operator/v1alpha1/imagecontentsourcepolicy.go b/operator/applyconfigurations/operator/v1alpha1/imagecontentsourcepolicy.go
index dbe09c1a9..91a03771d 100644
--- a/operator/applyconfigurations/operator/v1alpha1/imagecontentsourcepolicy.go
+++ b/operator/applyconfigurations/operator/v1alpha1/imagecontentsourcepolicy.go
@@ -68,7 +68,7 @@ func extractImageContentSourcePolicy(imageContentSourcePolicy *operatorv1alpha1.
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ImageContentSourcePolicyApplyConfiguration) WithKind(value string) *ImageContentSourcePolicyApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -76,7 +76,7 @@ func (b *ImageContentSourcePolicyApplyConfiguration) WithKind(value string) *Ima
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ImageContentSourcePolicyApplyConfiguration) WithAPIVersion(value string) *ImageContentSourcePolicyApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -85,7 +85,7 @@ func (b *ImageContentSourcePolicyApplyConfiguration) WithAPIVersion(value string
// If called multiple times, the Name field is set to the value of the last call.
func (b *ImageContentSourcePolicyApplyConfiguration) WithName(value string) *ImageContentSourcePolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -94,7 +94,7 @@ func (b *ImageContentSourcePolicyApplyConfiguration) WithName(value string) *Ima
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ImageContentSourcePolicyApplyConfiguration) WithGenerateName(value string) *ImageContentSourcePolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -103,7 +103,7 @@ func (b *ImageContentSourcePolicyApplyConfiguration) WithGenerateName(value stri
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ImageContentSourcePolicyApplyConfiguration) WithNamespace(value string) *ImageContentSourcePolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -112,7 +112,7 @@ func (b *ImageContentSourcePolicyApplyConfiguration) WithNamespace(value string)
// If called multiple times, the UID field is set to the value of the last call.
func (b *ImageContentSourcePolicyApplyConfiguration) WithUID(value types.UID) *ImageContentSourcePolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -121,7 +121,7 @@ func (b *ImageContentSourcePolicyApplyConfiguration) WithUID(value types.UID) *I
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ImageContentSourcePolicyApplyConfiguration) WithResourceVersion(value string) *ImageContentSourcePolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -130,7 +130,7 @@ func (b *ImageContentSourcePolicyApplyConfiguration) WithResourceVersion(value s
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ImageContentSourcePolicyApplyConfiguration) WithGeneration(value int64) *ImageContentSourcePolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
@@ -139,7 +139,7 @@ func (b *ImageContentSourcePolicyApplyConfiguration) WithGeneration(value int64)
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
func (b *ImageContentSourcePolicyApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ImageContentSourcePolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
@@ -148,7 +148,7 @@ func (b *ImageContentSourcePolicyApplyConfiguration) WithCreationTimestamp(value
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
func (b *ImageContentSourcePolicyApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ImageContentSourcePolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -157,7 +157,7 @@ func (b *ImageContentSourcePolicyApplyConfiguration) WithDeletionTimestamp(value
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ImageContentSourcePolicyApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ImageContentSourcePolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -167,11 +167,11 @@ func (b *ImageContentSourcePolicyApplyConfiguration) WithDeletionGracePeriodSeco
// overwriting an existing map entries in Labels field with the same key.
func (b *ImageContentSourcePolicyApplyConfiguration) WithLabels(entries map[string]string) *ImageContentSourcePolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -182,11 +182,11 @@ func (b *ImageContentSourcePolicyApplyConfiguration) WithLabels(entries map[stri
// overwriting an existing map entries in Annotations field with the same key.
func (b *ImageContentSourcePolicyApplyConfiguration) WithAnnotations(entries map[string]string) *ImageContentSourcePolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -200,7 +200,7 @@ func (b *ImageContentSourcePolicyApplyConfiguration) WithOwnerReferences(values
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -211,7 +211,7 @@ func (b *ImageContentSourcePolicyApplyConfiguration) WithOwnerReferences(values
func (b *ImageContentSourcePolicyApplyConfiguration) WithFinalizers(values ...string) *ImageContentSourcePolicyApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
@@ -233,5 +233,5 @@ func (b *ImageContentSourcePolicyApplyConfiguration) WithSpec(value *ImageConten
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ImageContentSourcePolicyApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/operator/applyconfigurations/operator/v1alpha1/olm.go b/operator/applyconfigurations/operator/v1alpha1/olm.go
index 5eeb8b870..2d475924e 100644
--- a/operator/applyconfigurations/operator/v1alpha1/olm.go
+++ b/operator/applyconfigurations/operator/v1alpha1/olm.go
@@ -69,7 +69,7 @@ func extractOLM(oLM *operatorv1alpha1.OLM, fieldManager string, subresource stri
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *OLMApplyConfiguration) WithKind(value string) *OLMApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *OLMApplyConfiguration) WithKind(value string) *OLMApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *OLMApplyConfiguration) WithAPIVersion(value string) *OLMApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *OLMApplyConfiguration) WithAPIVersion(value string) *OLMApplyConfigurat
// If called multiple times, the Name field is set to the value of the last call.
func (b *OLMApplyConfiguration) WithName(value string) *OLMApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *OLMApplyConfiguration) WithName(value string) *OLMApplyConfiguration {
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *OLMApplyConfiguration) WithGenerateName(value string) *OLMApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *OLMApplyConfiguration) WithGenerateName(value string) *OLMApplyConfigur
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *OLMApplyConfiguration) WithNamespace(value string) *OLMApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *OLMApplyConfiguration) WithNamespace(value string) *OLMApplyConfigurati
// If called multiple times, the UID field is set to the value of the last call.
func (b *OLMApplyConfiguration) WithUID(value types.UID) *OLMApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *OLMApplyConfiguration) WithUID(value types.UID) *OLMApplyConfiguration
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *OLMApplyConfiguration) WithResourceVersion(value string) *OLMApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,7 +131,7 @@ func (b *OLMApplyConfiguration) WithResourceVersion(value string) *OLMApplyConfi
// If called multiple times, the Generation field is set to the value of the last call.
func (b *OLMApplyConfiguration) WithGeneration(value int64) *OLMApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
@@ -140,7 +140,7 @@ func (b *OLMApplyConfiguration) WithGeneration(value int64) *OLMApplyConfigurati
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
func (b *OLMApplyConfiguration) WithCreationTimestamp(value metav1.Time) *OLMApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
@@ -149,7 +149,7 @@ func (b *OLMApplyConfiguration) WithCreationTimestamp(value metav1.Time) *OLMApp
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
func (b *OLMApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *OLMApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *OLMApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *OLMApp
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *OLMApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *OLMApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *OLMApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *OLM
// overwriting an existing map entries in Labels field with the same key.
func (b *OLMApplyConfiguration) WithLabels(entries map[string]string) *OLMApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *OLMApplyConfiguration) WithLabels(entries map[string]string) *OLMApplyC
// overwriting an existing map entries in Annotations field with the same key.
func (b *OLMApplyConfiguration) WithAnnotations(entries map[string]string) *OLMApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -201,7 +201,7 @@ func (b *OLMApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReference
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,7 +212,7 @@ func (b *OLMApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReference
func (b *OLMApplyConfiguration) WithFinalizers(values ...string) *OLMApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
@@ -242,5 +242,5 @@ func (b *OLMApplyConfiguration) WithStatus(value *OLMStatusApplyConfiguration) *
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *OLMApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/operator/applyconfigurations/operator/v1alpha1/olmspec.go b/operator/applyconfigurations/operator/v1alpha1/olmspec.go
index e36556165..e60f59692 100644
--- a/operator/applyconfigurations/operator/v1alpha1/olmspec.go
+++ b/operator/applyconfigurations/operator/v1alpha1/olmspec.go
@@ -24,7 +24,7 @@ func OLMSpec() *OLMSpecApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ManagementState field is set to the value of the last call.
func (b *OLMSpecApplyConfiguration) WithManagementState(value operatorv1.ManagementState) *OLMSpecApplyConfiguration {
- b.ManagementState = &value
+ b.OperatorSpecApplyConfiguration.ManagementState = &value
return b
}
@@ -32,7 +32,7 @@ func (b *OLMSpecApplyConfiguration) WithManagementState(value operatorv1.Managem
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LogLevel field is set to the value of the last call.
func (b *OLMSpecApplyConfiguration) WithLogLevel(value operatorv1.LogLevel) *OLMSpecApplyConfiguration {
- b.LogLevel = &value
+ b.OperatorSpecApplyConfiguration.LogLevel = &value
return b
}
@@ -40,7 +40,7 @@ func (b *OLMSpecApplyConfiguration) WithLogLevel(value operatorv1.LogLevel) *OLM
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the OperatorLogLevel field is set to the value of the last call.
func (b *OLMSpecApplyConfiguration) WithOperatorLogLevel(value operatorv1.LogLevel) *OLMSpecApplyConfiguration {
- b.OperatorLogLevel = &value
+ b.OperatorSpecApplyConfiguration.OperatorLogLevel = &value
return b
}
@@ -48,7 +48,7 @@ func (b *OLMSpecApplyConfiguration) WithOperatorLogLevel(value operatorv1.LogLev
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the UnsupportedConfigOverrides field is set to the value of the last call.
func (b *OLMSpecApplyConfiguration) WithUnsupportedConfigOverrides(value runtime.RawExtension) *OLMSpecApplyConfiguration {
- b.UnsupportedConfigOverrides = &value
+ b.OperatorSpecApplyConfiguration.UnsupportedConfigOverrides = &value
return b
}
@@ -56,6 +56,6 @@ func (b *OLMSpecApplyConfiguration) WithUnsupportedConfigOverrides(value runtime
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedConfig field is set to the value of the last call.
func (b *OLMSpecApplyConfiguration) WithObservedConfig(value runtime.RawExtension) *OLMSpecApplyConfiguration {
- b.ObservedConfig = &value
+ b.OperatorSpecApplyConfiguration.ObservedConfig = &value
return b
}
diff --git a/operator/applyconfigurations/operator/v1alpha1/olmstatus.go b/operator/applyconfigurations/operator/v1alpha1/olmstatus.go
index 94a98202e..88f44e160 100644
--- a/operator/applyconfigurations/operator/v1alpha1/olmstatus.go
+++ b/operator/applyconfigurations/operator/v1alpha1/olmstatus.go
@@ -22,7 +22,7 @@ func OLMStatus() *OLMStatusApplyConfiguration {
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedGeneration field is set to the value of the last call.
func (b *OLMStatusApplyConfiguration) WithObservedGeneration(value int64) *OLMStatusApplyConfiguration {
- b.ObservedGeneration = &value
+ b.OperatorStatusApplyConfiguration.ObservedGeneration = &value
return b
}
@@ -34,7 +34,7 @@ func (b *OLMStatusApplyConfiguration) WithConditions(values ...*v1.OperatorCondi
if values[i] == nil {
panic("nil value passed to WithConditions")
}
- b.Conditions = append(b.Conditions, *values[i])
+ b.OperatorStatusApplyConfiguration.Conditions = append(b.OperatorStatusApplyConfiguration.Conditions, *values[i])
}
return b
}
@@ -43,7 +43,7 @@ func (b *OLMStatusApplyConfiguration) WithConditions(values ...*v1.OperatorCondi
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Version field is set to the value of the last call.
func (b *OLMStatusApplyConfiguration) WithVersion(value string) *OLMStatusApplyConfiguration {
- b.Version = &value
+ b.OperatorStatusApplyConfiguration.Version = &value
return b
}
@@ -51,7 +51,7 @@ func (b *OLMStatusApplyConfiguration) WithVersion(value string) *OLMStatusApplyC
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ReadyReplicas field is set to the value of the last call.
func (b *OLMStatusApplyConfiguration) WithReadyReplicas(value int32) *OLMStatusApplyConfiguration {
- b.ReadyReplicas = &value
+ b.OperatorStatusApplyConfiguration.ReadyReplicas = &value
return b
}
@@ -59,7 +59,7 @@ func (b *OLMStatusApplyConfiguration) WithReadyReplicas(value int32) *OLMStatusA
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LatestAvailableRevision field is set to the value of the last call.
func (b *OLMStatusApplyConfiguration) WithLatestAvailableRevision(value int32) *OLMStatusApplyConfiguration {
- b.LatestAvailableRevision = &value
+ b.OperatorStatusApplyConfiguration.LatestAvailableRevision = &value
return b
}
@@ -71,7 +71,7 @@ func (b *OLMStatusApplyConfiguration) WithGenerations(values ...*v1.GenerationSt
if values[i] == nil {
panic("nil value passed to WithGenerations")
}
- b.Generations = append(b.Generations, *values[i])
+ b.OperatorStatusApplyConfiguration.Generations = append(b.OperatorStatusApplyConfiguration.Generations, *values[i])
}
return b
}
diff --git a/operator/clientset/versioned/clientset.go b/operator/clientset/versioned/clientset.go
index 326e04676..20e2c729a 100644
--- a/operator/clientset/versioned/clientset.go
+++ b/operator/clientset/versioned/clientset.go
@@ -3,8 +3,8 @@
package versioned
import (
- "fmt"
- "net/http"
+ fmt "fmt"
+ http "net/http"
operatorv1 "github.com/openshift/client-go/operator/clientset/versioned/typed/operator/v1"
operatorv1alpha1 "github.com/openshift/client-go/operator/clientset/versioned/typed/operator/v1alpha1"
diff --git a/operator/clientset/versioned/typed/operator/v1/authentication.go b/operator/clientset/versioned/typed/operator/v1/authentication.go
index 0cfae027a..b94b23970 100644
--- a/operator/clientset/versioned/typed/operator/v1/authentication.go
+++ b/operator/clientset/versioned/typed/operator/v1/authentication.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/operator/v1"
- operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ applyconfigurationsoperatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
scheme "github.com/openshift/client-go/operator/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type AuthenticationsGetter interface {
// AuthenticationInterface has methods to work with Authentication resources.
type AuthenticationInterface interface {
- Create(ctx context.Context, authentication *v1.Authentication, opts metav1.CreateOptions) (*v1.Authentication, error)
- Update(ctx context.Context, authentication *v1.Authentication, opts metav1.UpdateOptions) (*v1.Authentication, error)
+ Create(ctx context.Context, authentication *operatorv1.Authentication, opts metav1.CreateOptions) (*operatorv1.Authentication, error)
+ Update(ctx context.Context, authentication *operatorv1.Authentication, opts metav1.UpdateOptions) (*operatorv1.Authentication, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, authentication *v1.Authentication, opts metav1.UpdateOptions) (*v1.Authentication, error)
+ UpdateStatus(ctx context.Context, authentication *operatorv1.Authentication, opts metav1.UpdateOptions) (*operatorv1.Authentication, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Authentication, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.AuthenticationList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*operatorv1.Authentication, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*operatorv1.AuthenticationList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Authentication, err error)
- Apply(ctx context.Context, authentication *operatorv1.AuthenticationApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Authentication, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *operatorv1.Authentication, err error)
+ Apply(ctx context.Context, authentication *applyconfigurationsoperatorv1.AuthenticationApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.Authentication, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, authentication *operatorv1.AuthenticationApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Authentication, err error)
+ ApplyStatus(ctx context.Context, authentication *applyconfigurationsoperatorv1.AuthenticationApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.Authentication, err error)
AuthenticationExpansion
}
// authentications implements AuthenticationInterface
type authentications struct {
- *gentype.ClientWithListAndApply[*v1.Authentication, *v1.AuthenticationList, *operatorv1.AuthenticationApplyConfiguration]
+ *gentype.ClientWithListAndApply[*operatorv1.Authentication, *operatorv1.AuthenticationList, *applyconfigurationsoperatorv1.AuthenticationApplyConfiguration]
}
// newAuthentications returns a Authentications
func newAuthentications(c *OperatorV1Client) *authentications {
return &authentications{
- gentype.NewClientWithListAndApply[*v1.Authentication, *v1.AuthenticationList, *operatorv1.AuthenticationApplyConfiguration](
+ gentype.NewClientWithListAndApply[*operatorv1.Authentication, *operatorv1.AuthenticationList, *applyconfigurationsoperatorv1.AuthenticationApplyConfiguration](
"authentications",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.Authentication { return &v1.Authentication{} },
- func() *v1.AuthenticationList { return &v1.AuthenticationList{} }),
+ func() *operatorv1.Authentication { return &operatorv1.Authentication{} },
+ func() *operatorv1.AuthenticationList { return &operatorv1.AuthenticationList{} },
+ ),
}
}
diff --git a/operator/clientset/versioned/typed/operator/v1/cloudcredential.go b/operator/clientset/versioned/typed/operator/v1/cloudcredential.go
index 252ec2b45..17f053d45 100644
--- a/operator/clientset/versioned/typed/operator/v1/cloudcredential.go
+++ b/operator/clientset/versioned/typed/operator/v1/cloudcredential.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/operator/v1"
- operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ applyconfigurationsoperatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
scheme "github.com/openshift/client-go/operator/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type CloudCredentialsGetter interface {
// CloudCredentialInterface has methods to work with CloudCredential resources.
type CloudCredentialInterface interface {
- Create(ctx context.Context, cloudCredential *v1.CloudCredential, opts metav1.CreateOptions) (*v1.CloudCredential, error)
- Update(ctx context.Context, cloudCredential *v1.CloudCredential, opts metav1.UpdateOptions) (*v1.CloudCredential, error)
+ Create(ctx context.Context, cloudCredential *operatorv1.CloudCredential, opts metav1.CreateOptions) (*operatorv1.CloudCredential, error)
+ Update(ctx context.Context, cloudCredential *operatorv1.CloudCredential, opts metav1.UpdateOptions) (*operatorv1.CloudCredential, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, cloudCredential *v1.CloudCredential, opts metav1.UpdateOptions) (*v1.CloudCredential, error)
+ UpdateStatus(ctx context.Context, cloudCredential *operatorv1.CloudCredential, opts metav1.UpdateOptions) (*operatorv1.CloudCredential, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.CloudCredential, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.CloudCredentialList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*operatorv1.CloudCredential, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*operatorv1.CloudCredentialList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CloudCredential, err error)
- Apply(ctx context.Context, cloudCredential *operatorv1.CloudCredentialApplyConfiguration, opts metav1.ApplyOptions) (result *v1.CloudCredential, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *operatorv1.CloudCredential, err error)
+ Apply(ctx context.Context, cloudCredential *applyconfigurationsoperatorv1.CloudCredentialApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.CloudCredential, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, cloudCredential *operatorv1.CloudCredentialApplyConfiguration, opts metav1.ApplyOptions) (result *v1.CloudCredential, err error)
+ ApplyStatus(ctx context.Context, cloudCredential *applyconfigurationsoperatorv1.CloudCredentialApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.CloudCredential, err error)
CloudCredentialExpansion
}
// cloudCredentials implements CloudCredentialInterface
type cloudCredentials struct {
- *gentype.ClientWithListAndApply[*v1.CloudCredential, *v1.CloudCredentialList, *operatorv1.CloudCredentialApplyConfiguration]
+ *gentype.ClientWithListAndApply[*operatorv1.CloudCredential, *operatorv1.CloudCredentialList, *applyconfigurationsoperatorv1.CloudCredentialApplyConfiguration]
}
// newCloudCredentials returns a CloudCredentials
func newCloudCredentials(c *OperatorV1Client) *cloudCredentials {
return &cloudCredentials{
- gentype.NewClientWithListAndApply[*v1.CloudCredential, *v1.CloudCredentialList, *operatorv1.CloudCredentialApplyConfiguration](
+ gentype.NewClientWithListAndApply[*operatorv1.CloudCredential, *operatorv1.CloudCredentialList, *applyconfigurationsoperatorv1.CloudCredentialApplyConfiguration](
"cloudcredentials",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.CloudCredential { return &v1.CloudCredential{} },
- func() *v1.CloudCredentialList { return &v1.CloudCredentialList{} }),
+ func() *operatorv1.CloudCredential { return &operatorv1.CloudCredential{} },
+ func() *operatorv1.CloudCredentialList { return &operatorv1.CloudCredentialList{} },
+ ),
}
}
diff --git a/operator/clientset/versioned/typed/operator/v1/clustercsidriver.go b/operator/clientset/versioned/typed/operator/v1/clustercsidriver.go
index 8c54ca9b5..19d6aec94 100644
--- a/operator/clientset/versioned/typed/operator/v1/clustercsidriver.go
+++ b/operator/clientset/versioned/typed/operator/v1/clustercsidriver.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/operator/v1"
- operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ applyconfigurationsoperatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
scheme "github.com/openshift/client-go/operator/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type ClusterCSIDriversGetter interface {
// ClusterCSIDriverInterface has methods to work with ClusterCSIDriver resources.
type ClusterCSIDriverInterface interface {
- Create(ctx context.Context, clusterCSIDriver *v1.ClusterCSIDriver, opts metav1.CreateOptions) (*v1.ClusterCSIDriver, error)
- Update(ctx context.Context, clusterCSIDriver *v1.ClusterCSIDriver, opts metav1.UpdateOptions) (*v1.ClusterCSIDriver, error)
+ Create(ctx context.Context, clusterCSIDriver *operatorv1.ClusterCSIDriver, opts metav1.CreateOptions) (*operatorv1.ClusterCSIDriver, error)
+ Update(ctx context.Context, clusterCSIDriver *operatorv1.ClusterCSIDriver, opts metav1.UpdateOptions) (*operatorv1.ClusterCSIDriver, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, clusterCSIDriver *v1.ClusterCSIDriver, opts metav1.UpdateOptions) (*v1.ClusterCSIDriver, error)
+ UpdateStatus(ctx context.Context, clusterCSIDriver *operatorv1.ClusterCSIDriver, opts metav1.UpdateOptions) (*operatorv1.ClusterCSIDriver, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ClusterCSIDriver, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.ClusterCSIDriverList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*operatorv1.ClusterCSIDriver, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*operatorv1.ClusterCSIDriverList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterCSIDriver, err error)
- Apply(ctx context.Context, clusterCSIDriver *operatorv1.ClusterCSIDriverApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ClusterCSIDriver, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *operatorv1.ClusterCSIDriver, err error)
+ Apply(ctx context.Context, clusterCSIDriver *applyconfigurationsoperatorv1.ClusterCSIDriverApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.ClusterCSIDriver, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, clusterCSIDriver *operatorv1.ClusterCSIDriverApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ClusterCSIDriver, err error)
+ ApplyStatus(ctx context.Context, clusterCSIDriver *applyconfigurationsoperatorv1.ClusterCSIDriverApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.ClusterCSIDriver, err error)
ClusterCSIDriverExpansion
}
// clusterCSIDrivers implements ClusterCSIDriverInterface
type clusterCSIDrivers struct {
- *gentype.ClientWithListAndApply[*v1.ClusterCSIDriver, *v1.ClusterCSIDriverList, *operatorv1.ClusterCSIDriverApplyConfiguration]
+ *gentype.ClientWithListAndApply[*operatorv1.ClusterCSIDriver, *operatorv1.ClusterCSIDriverList, *applyconfigurationsoperatorv1.ClusterCSIDriverApplyConfiguration]
}
// newClusterCSIDrivers returns a ClusterCSIDrivers
func newClusterCSIDrivers(c *OperatorV1Client) *clusterCSIDrivers {
return &clusterCSIDrivers{
- gentype.NewClientWithListAndApply[*v1.ClusterCSIDriver, *v1.ClusterCSIDriverList, *operatorv1.ClusterCSIDriverApplyConfiguration](
+ gentype.NewClientWithListAndApply[*operatorv1.ClusterCSIDriver, *operatorv1.ClusterCSIDriverList, *applyconfigurationsoperatorv1.ClusterCSIDriverApplyConfiguration](
"clustercsidrivers",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.ClusterCSIDriver { return &v1.ClusterCSIDriver{} },
- func() *v1.ClusterCSIDriverList { return &v1.ClusterCSIDriverList{} }),
+ func() *operatorv1.ClusterCSIDriver { return &operatorv1.ClusterCSIDriver{} },
+ func() *operatorv1.ClusterCSIDriverList { return &operatorv1.ClusterCSIDriverList{} },
+ ),
}
}
diff --git a/operator/clientset/versioned/typed/operator/v1/config.go b/operator/clientset/versioned/typed/operator/v1/config.go
index 378f00557..71662a63c 100644
--- a/operator/clientset/versioned/typed/operator/v1/config.go
+++ b/operator/clientset/versioned/typed/operator/v1/config.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/operator/v1"
- operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ applyconfigurationsoperatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
scheme "github.com/openshift/client-go/operator/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type ConfigsGetter interface {
// ConfigInterface has methods to work with Config resources.
type ConfigInterface interface {
- Create(ctx context.Context, config *v1.Config, opts metav1.CreateOptions) (*v1.Config, error)
- Update(ctx context.Context, config *v1.Config, opts metav1.UpdateOptions) (*v1.Config, error)
+ Create(ctx context.Context, config *operatorv1.Config, opts metav1.CreateOptions) (*operatorv1.Config, error)
+ Update(ctx context.Context, config *operatorv1.Config, opts metav1.UpdateOptions) (*operatorv1.Config, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, config *v1.Config, opts metav1.UpdateOptions) (*v1.Config, error)
+ UpdateStatus(ctx context.Context, config *operatorv1.Config, opts metav1.UpdateOptions) (*operatorv1.Config, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Config, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.ConfigList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*operatorv1.Config, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*operatorv1.ConfigList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Config, err error)
- Apply(ctx context.Context, config *operatorv1.ConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Config, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *operatorv1.Config, err error)
+ Apply(ctx context.Context, config *applyconfigurationsoperatorv1.ConfigApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.Config, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, config *operatorv1.ConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Config, err error)
+ ApplyStatus(ctx context.Context, config *applyconfigurationsoperatorv1.ConfigApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.Config, err error)
ConfigExpansion
}
// configs implements ConfigInterface
type configs struct {
- *gentype.ClientWithListAndApply[*v1.Config, *v1.ConfigList, *operatorv1.ConfigApplyConfiguration]
+ *gentype.ClientWithListAndApply[*operatorv1.Config, *operatorv1.ConfigList, *applyconfigurationsoperatorv1.ConfigApplyConfiguration]
}
// newConfigs returns a Configs
func newConfigs(c *OperatorV1Client) *configs {
return &configs{
- gentype.NewClientWithListAndApply[*v1.Config, *v1.ConfigList, *operatorv1.ConfigApplyConfiguration](
+ gentype.NewClientWithListAndApply[*operatorv1.Config, *operatorv1.ConfigList, *applyconfigurationsoperatorv1.ConfigApplyConfiguration](
"configs",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.Config { return &v1.Config{} },
- func() *v1.ConfigList { return &v1.ConfigList{} }),
+ func() *operatorv1.Config { return &operatorv1.Config{} },
+ func() *operatorv1.ConfigList { return &operatorv1.ConfigList{} },
+ ),
}
}
diff --git a/operator/clientset/versioned/typed/operator/v1/console.go b/operator/clientset/versioned/typed/operator/v1/console.go
index a082ea15d..1e87763ca 100644
--- a/operator/clientset/versioned/typed/operator/v1/console.go
+++ b/operator/clientset/versioned/typed/operator/v1/console.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/operator/v1"
- operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ applyconfigurationsoperatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
scheme "github.com/openshift/client-go/operator/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type ConsolesGetter interface {
// ConsoleInterface has methods to work with Console resources.
type ConsoleInterface interface {
- Create(ctx context.Context, console *v1.Console, opts metav1.CreateOptions) (*v1.Console, error)
- Update(ctx context.Context, console *v1.Console, opts metav1.UpdateOptions) (*v1.Console, error)
+ Create(ctx context.Context, console *operatorv1.Console, opts metav1.CreateOptions) (*operatorv1.Console, error)
+ Update(ctx context.Context, console *operatorv1.Console, opts metav1.UpdateOptions) (*operatorv1.Console, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, console *v1.Console, opts metav1.UpdateOptions) (*v1.Console, error)
+ UpdateStatus(ctx context.Context, console *operatorv1.Console, opts metav1.UpdateOptions) (*operatorv1.Console, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Console, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.ConsoleList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*operatorv1.Console, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*operatorv1.ConsoleList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Console, err error)
- Apply(ctx context.Context, console *operatorv1.ConsoleApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Console, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *operatorv1.Console, err error)
+ Apply(ctx context.Context, console *applyconfigurationsoperatorv1.ConsoleApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.Console, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, console *operatorv1.ConsoleApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Console, err error)
+ ApplyStatus(ctx context.Context, console *applyconfigurationsoperatorv1.ConsoleApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.Console, err error)
ConsoleExpansion
}
// consoles implements ConsoleInterface
type consoles struct {
- *gentype.ClientWithListAndApply[*v1.Console, *v1.ConsoleList, *operatorv1.ConsoleApplyConfiguration]
+ *gentype.ClientWithListAndApply[*operatorv1.Console, *operatorv1.ConsoleList, *applyconfigurationsoperatorv1.ConsoleApplyConfiguration]
}
// newConsoles returns a Consoles
func newConsoles(c *OperatorV1Client) *consoles {
return &consoles{
- gentype.NewClientWithListAndApply[*v1.Console, *v1.ConsoleList, *operatorv1.ConsoleApplyConfiguration](
+ gentype.NewClientWithListAndApply[*operatorv1.Console, *operatorv1.ConsoleList, *applyconfigurationsoperatorv1.ConsoleApplyConfiguration](
"consoles",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.Console { return &v1.Console{} },
- func() *v1.ConsoleList { return &v1.ConsoleList{} }),
+ func() *operatorv1.Console { return &operatorv1.Console{} },
+ func() *operatorv1.ConsoleList { return &operatorv1.ConsoleList{} },
+ ),
}
}
diff --git a/operator/clientset/versioned/typed/operator/v1/csisnapshotcontroller.go b/operator/clientset/versioned/typed/operator/v1/csisnapshotcontroller.go
index 67cb1e58d..9ce7cf19b 100644
--- a/operator/clientset/versioned/typed/operator/v1/csisnapshotcontroller.go
+++ b/operator/clientset/versioned/typed/operator/v1/csisnapshotcontroller.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/operator/v1"
- operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ applyconfigurationsoperatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
scheme "github.com/openshift/client-go/operator/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type CSISnapshotControllersGetter interface {
// CSISnapshotControllerInterface has methods to work with CSISnapshotController resources.
type CSISnapshotControllerInterface interface {
- Create(ctx context.Context, cSISnapshotController *v1.CSISnapshotController, opts metav1.CreateOptions) (*v1.CSISnapshotController, error)
- Update(ctx context.Context, cSISnapshotController *v1.CSISnapshotController, opts metav1.UpdateOptions) (*v1.CSISnapshotController, error)
+ Create(ctx context.Context, cSISnapshotController *operatorv1.CSISnapshotController, opts metav1.CreateOptions) (*operatorv1.CSISnapshotController, error)
+ Update(ctx context.Context, cSISnapshotController *operatorv1.CSISnapshotController, opts metav1.UpdateOptions) (*operatorv1.CSISnapshotController, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, cSISnapshotController *v1.CSISnapshotController, opts metav1.UpdateOptions) (*v1.CSISnapshotController, error)
+ UpdateStatus(ctx context.Context, cSISnapshotController *operatorv1.CSISnapshotController, opts metav1.UpdateOptions) (*operatorv1.CSISnapshotController, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.CSISnapshotController, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.CSISnapshotControllerList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*operatorv1.CSISnapshotController, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*operatorv1.CSISnapshotControllerList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CSISnapshotController, err error)
- Apply(ctx context.Context, cSISnapshotController *operatorv1.CSISnapshotControllerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.CSISnapshotController, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *operatorv1.CSISnapshotController, err error)
+ Apply(ctx context.Context, cSISnapshotController *applyconfigurationsoperatorv1.CSISnapshotControllerApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.CSISnapshotController, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, cSISnapshotController *operatorv1.CSISnapshotControllerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.CSISnapshotController, err error)
+ ApplyStatus(ctx context.Context, cSISnapshotController *applyconfigurationsoperatorv1.CSISnapshotControllerApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.CSISnapshotController, err error)
CSISnapshotControllerExpansion
}
// cSISnapshotControllers implements CSISnapshotControllerInterface
type cSISnapshotControllers struct {
- *gentype.ClientWithListAndApply[*v1.CSISnapshotController, *v1.CSISnapshotControllerList, *operatorv1.CSISnapshotControllerApplyConfiguration]
+ *gentype.ClientWithListAndApply[*operatorv1.CSISnapshotController, *operatorv1.CSISnapshotControllerList, *applyconfigurationsoperatorv1.CSISnapshotControllerApplyConfiguration]
}
// newCSISnapshotControllers returns a CSISnapshotControllers
func newCSISnapshotControllers(c *OperatorV1Client) *cSISnapshotControllers {
return &cSISnapshotControllers{
- gentype.NewClientWithListAndApply[*v1.CSISnapshotController, *v1.CSISnapshotControllerList, *operatorv1.CSISnapshotControllerApplyConfiguration](
+ gentype.NewClientWithListAndApply[*operatorv1.CSISnapshotController, *operatorv1.CSISnapshotControllerList, *applyconfigurationsoperatorv1.CSISnapshotControllerApplyConfiguration](
"csisnapshotcontrollers",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.CSISnapshotController { return &v1.CSISnapshotController{} },
- func() *v1.CSISnapshotControllerList { return &v1.CSISnapshotControllerList{} }),
+ func() *operatorv1.CSISnapshotController { return &operatorv1.CSISnapshotController{} },
+ func() *operatorv1.CSISnapshotControllerList { return &operatorv1.CSISnapshotControllerList{} },
+ ),
}
}
diff --git a/operator/clientset/versioned/typed/operator/v1/dns.go b/operator/clientset/versioned/typed/operator/v1/dns.go
index 9298406b2..95b89cfbe 100644
--- a/operator/clientset/versioned/typed/operator/v1/dns.go
+++ b/operator/clientset/versioned/typed/operator/v1/dns.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/operator/v1"
- operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ applyconfigurationsoperatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
scheme "github.com/openshift/client-go/operator/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type DNSesGetter interface {
// DNSInterface has methods to work with DNS resources.
type DNSInterface interface {
- Create(ctx context.Context, dNS *v1.DNS, opts metav1.CreateOptions) (*v1.DNS, error)
- Update(ctx context.Context, dNS *v1.DNS, opts metav1.UpdateOptions) (*v1.DNS, error)
+ Create(ctx context.Context, dNS *operatorv1.DNS, opts metav1.CreateOptions) (*operatorv1.DNS, error)
+ Update(ctx context.Context, dNS *operatorv1.DNS, opts metav1.UpdateOptions) (*operatorv1.DNS, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, dNS *v1.DNS, opts metav1.UpdateOptions) (*v1.DNS, error)
+ UpdateStatus(ctx context.Context, dNS *operatorv1.DNS, opts metav1.UpdateOptions) (*operatorv1.DNS, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.DNS, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.DNSList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*operatorv1.DNS, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*operatorv1.DNSList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DNS, err error)
- Apply(ctx context.Context, dNS *operatorv1.DNSApplyConfiguration, opts metav1.ApplyOptions) (result *v1.DNS, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *operatorv1.DNS, err error)
+ Apply(ctx context.Context, dNS *applyconfigurationsoperatorv1.DNSApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.DNS, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, dNS *operatorv1.DNSApplyConfiguration, opts metav1.ApplyOptions) (result *v1.DNS, err error)
+ ApplyStatus(ctx context.Context, dNS *applyconfigurationsoperatorv1.DNSApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.DNS, err error)
DNSExpansion
}
// dNSes implements DNSInterface
type dNSes struct {
- *gentype.ClientWithListAndApply[*v1.DNS, *v1.DNSList, *operatorv1.DNSApplyConfiguration]
+ *gentype.ClientWithListAndApply[*operatorv1.DNS, *operatorv1.DNSList, *applyconfigurationsoperatorv1.DNSApplyConfiguration]
}
// newDNSes returns a DNSes
func newDNSes(c *OperatorV1Client) *dNSes {
return &dNSes{
- gentype.NewClientWithListAndApply[*v1.DNS, *v1.DNSList, *operatorv1.DNSApplyConfiguration](
+ gentype.NewClientWithListAndApply[*operatorv1.DNS, *operatorv1.DNSList, *applyconfigurationsoperatorv1.DNSApplyConfiguration](
"dnses",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.DNS { return &v1.DNS{} },
- func() *v1.DNSList { return &v1.DNSList{} }),
+ func() *operatorv1.DNS { return &operatorv1.DNS{} },
+ func() *operatorv1.DNSList { return &operatorv1.DNSList{} },
+ ),
}
}
diff --git a/operator/clientset/versioned/typed/operator/v1/etcd.go b/operator/clientset/versioned/typed/operator/v1/etcd.go
index de79cdb61..291445dc8 100644
--- a/operator/clientset/versioned/typed/operator/v1/etcd.go
+++ b/operator/clientset/versioned/typed/operator/v1/etcd.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/operator/v1"
- operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ applyconfigurationsoperatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
scheme "github.com/openshift/client-go/operator/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type EtcdsGetter interface {
// EtcdInterface has methods to work with Etcd resources.
type EtcdInterface interface {
- Create(ctx context.Context, etcd *v1.Etcd, opts metav1.CreateOptions) (*v1.Etcd, error)
- Update(ctx context.Context, etcd *v1.Etcd, opts metav1.UpdateOptions) (*v1.Etcd, error)
+ Create(ctx context.Context, etcd *operatorv1.Etcd, opts metav1.CreateOptions) (*operatorv1.Etcd, error)
+ Update(ctx context.Context, etcd *operatorv1.Etcd, opts metav1.UpdateOptions) (*operatorv1.Etcd, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, etcd *v1.Etcd, opts metav1.UpdateOptions) (*v1.Etcd, error)
+ UpdateStatus(ctx context.Context, etcd *operatorv1.Etcd, opts metav1.UpdateOptions) (*operatorv1.Etcd, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Etcd, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.EtcdList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*operatorv1.Etcd, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*operatorv1.EtcdList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Etcd, err error)
- Apply(ctx context.Context, etcd *operatorv1.EtcdApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Etcd, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *operatorv1.Etcd, err error)
+ Apply(ctx context.Context, etcd *applyconfigurationsoperatorv1.EtcdApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.Etcd, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, etcd *operatorv1.EtcdApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Etcd, err error)
+ ApplyStatus(ctx context.Context, etcd *applyconfigurationsoperatorv1.EtcdApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.Etcd, err error)
EtcdExpansion
}
// etcds implements EtcdInterface
type etcds struct {
- *gentype.ClientWithListAndApply[*v1.Etcd, *v1.EtcdList, *operatorv1.EtcdApplyConfiguration]
+ *gentype.ClientWithListAndApply[*operatorv1.Etcd, *operatorv1.EtcdList, *applyconfigurationsoperatorv1.EtcdApplyConfiguration]
}
// newEtcds returns a Etcds
func newEtcds(c *OperatorV1Client) *etcds {
return &etcds{
- gentype.NewClientWithListAndApply[*v1.Etcd, *v1.EtcdList, *operatorv1.EtcdApplyConfiguration](
+ gentype.NewClientWithListAndApply[*operatorv1.Etcd, *operatorv1.EtcdList, *applyconfigurationsoperatorv1.EtcdApplyConfiguration](
"etcds",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.Etcd { return &v1.Etcd{} },
- func() *v1.EtcdList { return &v1.EtcdList{} }),
+ func() *operatorv1.Etcd { return &operatorv1.Etcd{} },
+ func() *operatorv1.EtcdList { return &operatorv1.EtcdList{} },
+ ),
}
}
diff --git a/operator/clientset/versioned/typed/operator/v1/fake/fake_authentication.go b/operator/clientset/versioned/typed/operator/v1/fake/fake_authentication.go
index 8679a87a2..924d030e9 100644
--- a/operator/clientset/versioned/typed/operator/v1/fake/fake_authentication.go
+++ b/operator/clientset/versioned/typed/operator/v1/fake/fake_authentication.go
@@ -3,168 +3,33 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/operator/v1"
operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedoperatorv1 "github.com/openshift/client-go/operator/clientset/versioned/typed/operator/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeAuthentications implements AuthenticationInterface
-type FakeAuthentications struct {
+// fakeAuthentications implements AuthenticationInterface
+type fakeAuthentications struct {
+ *gentype.FakeClientWithListAndApply[*v1.Authentication, *v1.AuthenticationList, *operatorv1.AuthenticationApplyConfiguration]
Fake *FakeOperatorV1
}
-var authenticationsResource = v1.SchemeGroupVersion.WithResource("authentications")
-
-var authenticationsKind = v1.SchemeGroupVersion.WithKind("Authentication")
-
-// Get takes name of the authentication, and returns the corresponding authentication object, and an error if there is any.
-func (c *FakeAuthentications) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Authentication, err error) {
- emptyResult := &v1.Authentication{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(authenticationsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Authentication), err
-}
-
-// List takes label and field selectors, and returns the list of Authentications that match those selectors.
-func (c *FakeAuthentications) List(ctx context.Context, opts metav1.ListOptions) (result *v1.AuthenticationList, err error) {
- emptyResult := &v1.AuthenticationList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(authenticationsResource, authenticationsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.AuthenticationList{ListMeta: obj.(*v1.AuthenticationList).ListMeta}
- for _, item := range obj.(*v1.AuthenticationList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested authentications.
-func (c *FakeAuthentications) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(authenticationsResource, opts))
-}
-
-// Create takes the representation of a authentication and creates it. Returns the server's representation of the authentication, and an error, if there is any.
-func (c *FakeAuthentications) Create(ctx context.Context, authentication *v1.Authentication, opts metav1.CreateOptions) (result *v1.Authentication, err error) {
- emptyResult := &v1.Authentication{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(authenticationsResource, authentication, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Authentication), err
-}
-
-// Update takes the representation of a authentication and updates it. Returns the server's representation of the authentication, and an error, if there is any.
-func (c *FakeAuthentications) Update(ctx context.Context, authentication *v1.Authentication, opts metav1.UpdateOptions) (result *v1.Authentication, err error) {
- emptyResult := &v1.Authentication{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(authenticationsResource, authentication, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Authentication), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeAuthentications) UpdateStatus(ctx context.Context, authentication *v1.Authentication, opts metav1.UpdateOptions) (result *v1.Authentication, err error) {
- emptyResult := &v1.Authentication{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(authenticationsResource, "status", authentication, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Authentication), err
-}
-
-// Delete takes name of the authentication and deletes it. Returns an error if one occurs.
-func (c *FakeAuthentications) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(authenticationsResource, name, opts), &v1.Authentication{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeAuthentications) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(authenticationsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.AuthenticationList{})
- return err
-}
-
-// Patch applies the patch and returns the patched authentication.
-func (c *FakeAuthentications) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Authentication, err error) {
- emptyResult := &v1.Authentication{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(authenticationsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Authentication), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied authentication.
-func (c *FakeAuthentications) Apply(ctx context.Context, authentication *operatorv1.AuthenticationApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Authentication, err error) {
- if authentication == nil {
- return nil, fmt.Errorf("authentication provided to Apply must not be nil")
- }
- data, err := json.Marshal(authentication)
- if err != nil {
- return nil, err
- }
- name := authentication.Name
- if name == nil {
- return nil, fmt.Errorf("authentication.Name must be provided to Apply")
- }
- emptyResult := &v1.Authentication{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(authenticationsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Authentication), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeAuthentications) ApplyStatus(ctx context.Context, authentication *operatorv1.AuthenticationApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Authentication, err error) {
- if authentication == nil {
- return nil, fmt.Errorf("authentication provided to Apply must not be nil")
- }
- data, err := json.Marshal(authentication)
- if err != nil {
- return nil, err
- }
- name := authentication.Name
- if name == nil {
- return nil, fmt.Errorf("authentication.Name must be provided to Apply")
- }
- emptyResult := &v1.Authentication{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(authenticationsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeAuthentications(fake *FakeOperatorV1) typedoperatorv1.AuthenticationInterface {
+ return &fakeAuthentications{
+ gentype.NewFakeClientWithListAndApply[*v1.Authentication, *v1.AuthenticationList, *operatorv1.AuthenticationApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("authentications"),
+ v1.SchemeGroupVersion.WithKind("Authentication"),
+ func() *v1.Authentication { return &v1.Authentication{} },
+ func() *v1.AuthenticationList { return &v1.AuthenticationList{} },
+ func(dst, src *v1.AuthenticationList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.AuthenticationList) []*v1.Authentication { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.AuthenticationList, items []*v1.Authentication) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.Authentication), err
}
diff --git a/operator/clientset/versioned/typed/operator/v1/fake/fake_cloudcredential.go b/operator/clientset/versioned/typed/operator/v1/fake/fake_cloudcredential.go
index c9f711a1f..861a2c062 100644
--- a/operator/clientset/versioned/typed/operator/v1/fake/fake_cloudcredential.go
+++ b/operator/clientset/versioned/typed/operator/v1/fake/fake_cloudcredential.go
@@ -3,168 +3,33 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/operator/v1"
operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedoperatorv1 "github.com/openshift/client-go/operator/clientset/versioned/typed/operator/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeCloudCredentials implements CloudCredentialInterface
-type FakeCloudCredentials struct {
+// fakeCloudCredentials implements CloudCredentialInterface
+type fakeCloudCredentials struct {
+ *gentype.FakeClientWithListAndApply[*v1.CloudCredential, *v1.CloudCredentialList, *operatorv1.CloudCredentialApplyConfiguration]
Fake *FakeOperatorV1
}
-var cloudcredentialsResource = v1.SchemeGroupVersion.WithResource("cloudcredentials")
-
-var cloudcredentialsKind = v1.SchemeGroupVersion.WithKind("CloudCredential")
-
-// Get takes name of the cloudCredential, and returns the corresponding cloudCredential object, and an error if there is any.
-func (c *FakeCloudCredentials) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.CloudCredential, err error) {
- emptyResult := &v1.CloudCredential{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(cloudcredentialsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.CloudCredential), err
-}
-
-// List takes label and field selectors, and returns the list of CloudCredentials that match those selectors.
-func (c *FakeCloudCredentials) List(ctx context.Context, opts metav1.ListOptions) (result *v1.CloudCredentialList, err error) {
- emptyResult := &v1.CloudCredentialList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(cloudcredentialsResource, cloudcredentialsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.CloudCredentialList{ListMeta: obj.(*v1.CloudCredentialList).ListMeta}
- for _, item := range obj.(*v1.CloudCredentialList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested cloudCredentials.
-func (c *FakeCloudCredentials) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(cloudcredentialsResource, opts))
-}
-
-// Create takes the representation of a cloudCredential and creates it. Returns the server's representation of the cloudCredential, and an error, if there is any.
-func (c *FakeCloudCredentials) Create(ctx context.Context, cloudCredential *v1.CloudCredential, opts metav1.CreateOptions) (result *v1.CloudCredential, err error) {
- emptyResult := &v1.CloudCredential{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(cloudcredentialsResource, cloudCredential, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.CloudCredential), err
-}
-
-// Update takes the representation of a cloudCredential and updates it. Returns the server's representation of the cloudCredential, and an error, if there is any.
-func (c *FakeCloudCredentials) Update(ctx context.Context, cloudCredential *v1.CloudCredential, opts metav1.UpdateOptions) (result *v1.CloudCredential, err error) {
- emptyResult := &v1.CloudCredential{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(cloudcredentialsResource, cloudCredential, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.CloudCredential), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeCloudCredentials) UpdateStatus(ctx context.Context, cloudCredential *v1.CloudCredential, opts metav1.UpdateOptions) (result *v1.CloudCredential, err error) {
- emptyResult := &v1.CloudCredential{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(cloudcredentialsResource, "status", cloudCredential, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.CloudCredential), err
-}
-
-// Delete takes name of the cloudCredential and deletes it. Returns an error if one occurs.
-func (c *FakeCloudCredentials) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(cloudcredentialsResource, name, opts), &v1.CloudCredential{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeCloudCredentials) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(cloudcredentialsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.CloudCredentialList{})
- return err
-}
-
-// Patch applies the patch and returns the patched cloudCredential.
-func (c *FakeCloudCredentials) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CloudCredential, err error) {
- emptyResult := &v1.CloudCredential{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(cloudcredentialsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.CloudCredential), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied cloudCredential.
-func (c *FakeCloudCredentials) Apply(ctx context.Context, cloudCredential *operatorv1.CloudCredentialApplyConfiguration, opts metav1.ApplyOptions) (result *v1.CloudCredential, err error) {
- if cloudCredential == nil {
- return nil, fmt.Errorf("cloudCredential provided to Apply must not be nil")
- }
- data, err := json.Marshal(cloudCredential)
- if err != nil {
- return nil, err
- }
- name := cloudCredential.Name
- if name == nil {
- return nil, fmt.Errorf("cloudCredential.Name must be provided to Apply")
- }
- emptyResult := &v1.CloudCredential{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(cloudcredentialsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.CloudCredential), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeCloudCredentials) ApplyStatus(ctx context.Context, cloudCredential *operatorv1.CloudCredentialApplyConfiguration, opts metav1.ApplyOptions) (result *v1.CloudCredential, err error) {
- if cloudCredential == nil {
- return nil, fmt.Errorf("cloudCredential provided to Apply must not be nil")
- }
- data, err := json.Marshal(cloudCredential)
- if err != nil {
- return nil, err
- }
- name := cloudCredential.Name
- if name == nil {
- return nil, fmt.Errorf("cloudCredential.Name must be provided to Apply")
- }
- emptyResult := &v1.CloudCredential{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(cloudcredentialsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeCloudCredentials(fake *FakeOperatorV1) typedoperatorv1.CloudCredentialInterface {
+ return &fakeCloudCredentials{
+ gentype.NewFakeClientWithListAndApply[*v1.CloudCredential, *v1.CloudCredentialList, *operatorv1.CloudCredentialApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("cloudcredentials"),
+ v1.SchemeGroupVersion.WithKind("CloudCredential"),
+ func() *v1.CloudCredential { return &v1.CloudCredential{} },
+ func() *v1.CloudCredentialList { return &v1.CloudCredentialList{} },
+ func(dst, src *v1.CloudCredentialList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.CloudCredentialList) []*v1.CloudCredential { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.CloudCredentialList, items []*v1.CloudCredential) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.CloudCredential), err
}
diff --git a/operator/clientset/versioned/typed/operator/v1/fake/fake_clustercsidriver.go b/operator/clientset/versioned/typed/operator/v1/fake/fake_clustercsidriver.go
index 9ab25093d..57cff1cf6 100644
--- a/operator/clientset/versioned/typed/operator/v1/fake/fake_clustercsidriver.go
+++ b/operator/clientset/versioned/typed/operator/v1/fake/fake_clustercsidriver.go
@@ -3,168 +3,33 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/operator/v1"
operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedoperatorv1 "github.com/openshift/client-go/operator/clientset/versioned/typed/operator/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeClusterCSIDrivers implements ClusterCSIDriverInterface
-type FakeClusterCSIDrivers struct {
+// fakeClusterCSIDrivers implements ClusterCSIDriverInterface
+type fakeClusterCSIDrivers struct {
+ *gentype.FakeClientWithListAndApply[*v1.ClusterCSIDriver, *v1.ClusterCSIDriverList, *operatorv1.ClusterCSIDriverApplyConfiguration]
Fake *FakeOperatorV1
}
-var clustercsidriversResource = v1.SchemeGroupVersion.WithResource("clustercsidrivers")
-
-var clustercsidriversKind = v1.SchemeGroupVersion.WithKind("ClusterCSIDriver")
-
-// Get takes name of the clusterCSIDriver, and returns the corresponding clusterCSIDriver object, and an error if there is any.
-func (c *FakeClusterCSIDrivers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ClusterCSIDriver, err error) {
- emptyResult := &v1.ClusterCSIDriver{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(clustercsidriversResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterCSIDriver), err
-}
-
-// List takes label and field selectors, and returns the list of ClusterCSIDrivers that match those selectors.
-func (c *FakeClusterCSIDrivers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterCSIDriverList, err error) {
- emptyResult := &v1.ClusterCSIDriverList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(clustercsidriversResource, clustercsidriversKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.ClusterCSIDriverList{ListMeta: obj.(*v1.ClusterCSIDriverList).ListMeta}
- for _, item := range obj.(*v1.ClusterCSIDriverList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested clusterCSIDrivers.
-func (c *FakeClusterCSIDrivers) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(clustercsidriversResource, opts))
-}
-
-// Create takes the representation of a clusterCSIDriver and creates it. Returns the server's representation of the clusterCSIDriver, and an error, if there is any.
-func (c *FakeClusterCSIDrivers) Create(ctx context.Context, clusterCSIDriver *v1.ClusterCSIDriver, opts metav1.CreateOptions) (result *v1.ClusterCSIDriver, err error) {
- emptyResult := &v1.ClusterCSIDriver{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(clustercsidriversResource, clusterCSIDriver, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterCSIDriver), err
-}
-
-// Update takes the representation of a clusterCSIDriver and updates it. Returns the server's representation of the clusterCSIDriver, and an error, if there is any.
-func (c *FakeClusterCSIDrivers) Update(ctx context.Context, clusterCSIDriver *v1.ClusterCSIDriver, opts metav1.UpdateOptions) (result *v1.ClusterCSIDriver, err error) {
- emptyResult := &v1.ClusterCSIDriver{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(clustercsidriversResource, clusterCSIDriver, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterCSIDriver), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeClusterCSIDrivers) UpdateStatus(ctx context.Context, clusterCSIDriver *v1.ClusterCSIDriver, opts metav1.UpdateOptions) (result *v1.ClusterCSIDriver, err error) {
- emptyResult := &v1.ClusterCSIDriver{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(clustercsidriversResource, "status", clusterCSIDriver, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterCSIDriver), err
-}
-
-// Delete takes name of the clusterCSIDriver and deletes it. Returns an error if one occurs.
-func (c *FakeClusterCSIDrivers) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(clustercsidriversResource, name, opts), &v1.ClusterCSIDriver{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeClusterCSIDrivers) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(clustercsidriversResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.ClusterCSIDriverList{})
- return err
-}
-
-// Patch applies the patch and returns the patched clusterCSIDriver.
-func (c *FakeClusterCSIDrivers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterCSIDriver, err error) {
- emptyResult := &v1.ClusterCSIDriver{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(clustercsidriversResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterCSIDriver), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied clusterCSIDriver.
-func (c *FakeClusterCSIDrivers) Apply(ctx context.Context, clusterCSIDriver *operatorv1.ClusterCSIDriverApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ClusterCSIDriver, err error) {
- if clusterCSIDriver == nil {
- return nil, fmt.Errorf("clusterCSIDriver provided to Apply must not be nil")
- }
- data, err := json.Marshal(clusterCSIDriver)
- if err != nil {
- return nil, err
- }
- name := clusterCSIDriver.Name
- if name == nil {
- return nil, fmt.Errorf("clusterCSIDriver.Name must be provided to Apply")
- }
- emptyResult := &v1.ClusterCSIDriver{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(clustercsidriversResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterCSIDriver), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeClusterCSIDrivers) ApplyStatus(ctx context.Context, clusterCSIDriver *operatorv1.ClusterCSIDriverApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ClusterCSIDriver, err error) {
- if clusterCSIDriver == nil {
- return nil, fmt.Errorf("clusterCSIDriver provided to Apply must not be nil")
- }
- data, err := json.Marshal(clusterCSIDriver)
- if err != nil {
- return nil, err
- }
- name := clusterCSIDriver.Name
- if name == nil {
- return nil, fmt.Errorf("clusterCSIDriver.Name must be provided to Apply")
- }
- emptyResult := &v1.ClusterCSIDriver{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(clustercsidriversResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeClusterCSIDrivers(fake *FakeOperatorV1) typedoperatorv1.ClusterCSIDriverInterface {
+ return &fakeClusterCSIDrivers{
+ gentype.NewFakeClientWithListAndApply[*v1.ClusterCSIDriver, *v1.ClusterCSIDriverList, *operatorv1.ClusterCSIDriverApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("clustercsidrivers"),
+ v1.SchemeGroupVersion.WithKind("ClusterCSIDriver"),
+ func() *v1.ClusterCSIDriver { return &v1.ClusterCSIDriver{} },
+ func() *v1.ClusterCSIDriverList { return &v1.ClusterCSIDriverList{} },
+ func(dst, src *v1.ClusterCSIDriverList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.ClusterCSIDriverList) []*v1.ClusterCSIDriver { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.ClusterCSIDriverList, items []*v1.ClusterCSIDriver) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.ClusterCSIDriver), err
}
diff --git a/operator/clientset/versioned/typed/operator/v1/fake/fake_config.go b/operator/clientset/versioned/typed/operator/v1/fake/fake_config.go
index 9d377b209..2d6dd4976 100644
--- a/operator/clientset/versioned/typed/operator/v1/fake/fake_config.go
+++ b/operator/clientset/versioned/typed/operator/v1/fake/fake_config.go
@@ -3,168 +3,31 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/operator/v1"
operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedoperatorv1 "github.com/openshift/client-go/operator/clientset/versioned/typed/operator/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeConfigs implements ConfigInterface
-type FakeConfigs struct {
+// fakeConfigs implements ConfigInterface
+type fakeConfigs struct {
+ *gentype.FakeClientWithListAndApply[*v1.Config, *v1.ConfigList, *operatorv1.ConfigApplyConfiguration]
Fake *FakeOperatorV1
}
-var configsResource = v1.SchemeGroupVersion.WithResource("configs")
-
-var configsKind = v1.SchemeGroupVersion.WithKind("Config")
-
-// Get takes name of the config, and returns the corresponding config object, and an error if there is any.
-func (c *FakeConfigs) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Config, err error) {
- emptyResult := &v1.Config{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(configsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Config), err
-}
-
-// List takes label and field selectors, and returns the list of Configs that match those selectors.
-func (c *FakeConfigs) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ConfigList, err error) {
- emptyResult := &v1.ConfigList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(configsResource, configsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.ConfigList{ListMeta: obj.(*v1.ConfigList).ListMeta}
- for _, item := range obj.(*v1.ConfigList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested configs.
-func (c *FakeConfigs) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(configsResource, opts))
-}
-
-// Create takes the representation of a config and creates it. Returns the server's representation of the config, and an error, if there is any.
-func (c *FakeConfigs) Create(ctx context.Context, config *v1.Config, opts metav1.CreateOptions) (result *v1.Config, err error) {
- emptyResult := &v1.Config{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(configsResource, config, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Config), err
-}
-
-// Update takes the representation of a config and updates it. Returns the server's representation of the config, and an error, if there is any.
-func (c *FakeConfigs) Update(ctx context.Context, config *v1.Config, opts metav1.UpdateOptions) (result *v1.Config, err error) {
- emptyResult := &v1.Config{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(configsResource, config, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Config), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeConfigs) UpdateStatus(ctx context.Context, config *v1.Config, opts metav1.UpdateOptions) (result *v1.Config, err error) {
- emptyResult := &v1.Config{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(configsResource, "status", config, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Config), err
-}
-
-// Delete takes name of the config and deletes it. Returns an error if one occurs.
-func (c *FakeConfigs) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(configsResource, name, opts), &v1.Config{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeConfigs) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(configsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.ConfigList{})
- return err
-}
-
-// Patch applies the patch and returns the patched config.
-func (c *FakeConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Config, err error) {
- emptyResult := &v1.Config{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(configsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Config), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied config.
-func (c *FakeConfigs) Apply(ctx context.Context, config *operatorv1.ConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Config, err error) {
- if config == nil {
- return nil, fmt.Errorf("config provided to Apply must not be nil")
- }
- data, err := json.Marshal(config)
- if err != nil {
- return nil, err
- }
- name := config.Name
- if name == nil {
- return nil, fmt.Errorf("config.Name must be provided to Apply")
- }
- emptyResult := &v1.Config{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(configsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Config), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeConfigs) ApplyStatus(ctx context.Context, config *operatorv1.ConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Config, err error) {
- if config == nil {
- return nil, fmt.Errorf("config provided to Apply must not be nil")
- }
- data, err := json.Marshal(config)
- if err != nil {
- return nil, err
- }
- name := config.Name
- if name == nil {
- return nil, fmt.Errorf("config.Name must be provided to Apply")
- }
- emptyResult := &v1.Config{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(configsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeConfigs(fake *FakeOperatorV1) typedoperatorv1.ConfigInterface {
+ return &fakeConfigs{
+ gentype.NewFakeClientWithListAndApply[*v1.Config, *v1.ConfigList, *operatorv1.ConfigApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("configs"),
+ v1.SchemeGroupVersion.WithKind("Config"),
+ func() *v1.Config { return &v1.Config{} },
+ func() *v1.ConfigList { return &v1.ConfigList{} },
+ func(dst, src *v1.ConfigList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.ConfigList) []*v1.Config { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.ConfigList, items []*v1.Config) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.Config), err
}
diff --git a/operator/clientset/versioned/typed/operator/v1/fake/fake_console.go b/operator/clientset/versioned/typed/operator/v1/fake/fake_console.go
index ed5b5b54a..e903d0e2c 100644
--- a/operator/clientset/versioned/typed/operator/v1/fake/fake_console.go
+++ b/operator/clientset/versioned/typed/operator/v1/fake/fake_console.go
@@ -3,168 +3,31 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/operator/v1"
operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedoperatorv1 "github.com/openshift/client-go/operator/clientset/versioned/typed/operator/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeConsoles implements ConsoleInterface
-type FakeConsoles struct {
+// fakeConsoles implements ConsoleInterface
+type fakeConsoles struct {
+ *gentype.FakeClientWithListAndApply[*v1.Console, *v1.ConsoleList, *operatorv1.ConsoleApplyConfiguration]
Fake *FakeOperatorV1
}
-var consolesResource = v1.SchemeGroupVersion.WithResource("consoles")
-
-var consolesKind = v1.SchemeGroupVersion.WithKind("Console")
-
-// Get takes name of the console, and returns the corresponding console object, and an error if there is any.
-func (c *FakeConsoles) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Console, err error) {
- emptyResult := &v1.Console{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(consolesResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Console), err
-}
-
-// List takes label and field selectors, and returns the list of Consoles that match those selectors.
-func (c *FakeConsoles) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ConsoleList, err error) {
- emptyResult := &v1.ConsoleList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(consolesResource, consolesKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.ConsoleList{ListMeta: obj.(*v1.ConsoleList).ListMeta}
- for _, item := range obj.(*v1.ConsoleList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested consoles.
-func (c *FakeConsoles) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(consolesResource, opts))
-}
-
-// Create takes the representation of a console and creates it. Returns the server's representation of the console, and an error, if there is any.
-func (c *FakeConsoles) Create(ctx context.Context, console *v1.Console, opts metav1.CreateOptions) (result *v1.Console, err error) {
- emptyResult := &v1.Console{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(consolesResource, console, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Console), err
-}
-
-// Update takes the representation of a console and updates it. Returns the server's representation of the console, and an error, if there is any.
-func (c *FakeConsoles) Update(ctx context.Context, console *v1.Console, opts metav1.UpdateOptions) (result *v1.Console, err error) {
- emptyResult := &v1.Console{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(consolesResource, console, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Console), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeConsoles) UpdateStatus(ctx context.Context, console *v1.Console, opts metav1.UpdateOptions) (result *v1.Console, err error) {
- emptyResult := &v1.Console{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(consolesResource, "status", console, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Console), err
-}
-
-// Delete takes name of the console and deletes it. Returns an error if one occurs.
-func (c *FakeConsoles) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(consolesResource, name, opts), &v1.Console{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeConsoles) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(consolesResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.ConsoleList{})
- return err
-}
-
-// Patch applies the patch and returns the patched console.
-func (c *FakeConsoles) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Console, err error) {
- emptyResult := &v1.Console{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(consolesResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Console), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied console.
-func (c *FakeConsoles) Apply(ctx context.Context, console *operatorv1.ConsoleApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Console, err error) {
- if console == nil {
- return nil, fmt.Errorf("console provided to Apply must not be nil")
- }
- data, err := json.Marshal(console)
- if err != nil {
- return nil, err
- }
- name := console.Name
- if name == nil {
- return nil, fmt.Errorf("console.Name must be provided to Apply")
- }
- emptyResult := &v1.Console{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(consolesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Console), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeConsoles) ApplyStatus(ctx context.Context, console *operatorv1.ConsoleApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Console, err error) {
- if console == nil {
- return nil, fmt.Errorf("console provided to Apply must not be nil")
- }
- data, err := json.Marshal(console)
- if err != nil {
- return nil, err
- }
- name := console.Name
- if name == nil {
- return nil, fmt.Errorf("console.Name must be provided to Apply")
- }
- emptyResult := &v1.Console{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(consolesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeConsoles(fake *FakeOperatorV1) typedoperatorv1.ConsoleInterface {
+ return &fakeConsoles{
+ gentype.NewFakeClientWithListAndApply[*v1.Console, *v1.ConsoleList, *operatorv1.ConsoleApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("consoles"),
+ v1.SchemeGroupVersion.WithKind("Console"),
+ func() *v1.Console { return &v1.Console{} },
+ func() *v1.ConsoleList { return &v1.ConsoleList{} },
+ func(dst, src *v1.ConsoleList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.ConsoleList) []*v1.Console { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.ConsoleList, items []*v1.Console) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.Console), err
}
diff --git a/operator/clientset/versioned/typed/operator/v1/fake/fake_csisnapshotcontroller.go b/operator/clientset/versioned/typed/operator/v1/fake/fake_csisnapshotcontroller.go
index 9956d1c6c..5005b96f1 100644
--- a/operator/clientset/versioned/typed/operator/v1/fake/fake_csisnapshotcontroller.go
+++ b/operator/clientset/versioned/typed/operator/v1/fake/fake_csisnapshotcontroller.go
@@ -3,168 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/operator/v1"
operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedoperatorv1 "github.com/openshift/client-go/operator/clientset/versioned/typed/operator/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeCSISnapshotControllers implements CSISnapshotControllerInterface
-type FakeCSISnapshotControllers struct {
+// fakeCSISnapshotControllers implements CSISnapshotControllerInterface
+type fakeCSISnapshotControllers struct {
+ *gentype.FakeClientWithListAndApply[*v1.CSISnapshotController, *v1.CSISnapshotControllerList, *operatorv1.CSISnapshotControllerApplyConfiguration]
Fake *FakeOperatorV1
}
-var csisnapshotcontrollersResource = v1.SchemeGroupVersion.WithResource("csisnapshotcontrollers")
-
-var csisnapshotcontrollersKind = v1.SchemeGroupVersion.WithKind("CSISnapshotController")
-
-// Get takes name of the cSISnapshotController, and returns the corresponding cSISnapshotController object, and an error if there is any.
-func (c *FakeCSISnapshotControllers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.CSISnapshotController, err error) {
- emptyResult := &v1.CSISnapshotController{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(csisnapshotcontrollersResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.CSISnapshotController), err
-}
-
-// List takes label and field selectors, and returns the list of CSISnapshotControllers that match those selectors.
-func (c *FakeCSISnapshotControllers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.CSISnapshotControllerList, err error) {
- emptyResult := &v1.CSISnapshotControllerList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(csisnapshotcontrollersResource, csisnapshotcontrollersKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.CSISnapshotControllerList{ListMeta: obj.(*v1.CSISnapshotControllerList).ListMeta}
- for _, item := range obj.(*v1.CSISnapshotControllerList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested cSISnapshotControllers.
-func (c *FakeCSISnapshotControllers) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(csisnapshotcontrollersResource, opts))
-}
-
-// Create takes the representation of a cSISnapshotController and creates it. Returns the server's representation of the cSISnapshotController, and an error, if there is any.
-func (c *FakeCSISnapshotControllers) Create(ctx context.Context, cSISnapshotController *v1.CSISnapshotController, opts metav1.CreateOptions) (result *v1.CSISnapshotController, err error) {
- emptyResult := &v1.CSISnapshotController{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(csisnapshotcontrollersResource, cSISnapshotController, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.CSISnapshotController), err
-}
-
-// Update takes the representation of a cSISnapshotController and updates it. Returns the server's representation of the cSISnapshotController, and an error, if there is any.
-func (c *FakeCSISnapshotControllers) Update(ctx context.Context, cSISnapshotController *v1.CSISnapshotController, opts metav1.UpdateOptions) (result *v1.CSISnapshotController, err error) {
- emptyResult := &v1.CSISnapshotController{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(csisnapshotcontrollersResource, cSISnapshotController, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.CSISnapshotController), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeCSISnapshotControllers) UpdateStatus(ctx context.Context, cSISnapshotController *v1.CSISnapshotController, opts metav1.UpdateOptions) (result *v1.CSISnapshotController, err error) {
- emptyResult := &v1.CSISnapshotController{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(csisnapshotcontrollersResource, "status", cSISnapshotController, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.CSISnapshotController), err
-}
-
-// Delete takes name of the cSISnapshotController and deletes it. Returns an error if one occurs.
-func (c *FakeCSISnapshotControllers) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(csisnapshotcontrollersResource, name, opts), &v1.CSISnapshotController{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeCSISnapshotControllers) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(csisnapshotcontrollersResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.CSISnapshotControllerList{})
- return err
-}
-
-// Patch applies the patch and returns the patched cSISnapshotController.
-func (c *FakeCSISnapshotControllers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CSISnapshotController, err error) {
- emptyResult := &v1.CSISnapshotController{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(csisnapshotcontrollersResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.CSISnapshotController), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied cSISnapshotController.
-func (c *FakeCSISnapshotControllers) Apply(ctx context.Context, cSISnapshotController *operatorv1.CSISnapshotControllerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.CSISnapshotController, err error) {
- if cSISnapshotController == nil {
- return nil, fmt.Errorf("cSISnapshotController provided to Apply must not be nil")
- }
- data, err := json.Marshal(cSISnapshotController)
- if err != nil {
- return nil, err
- }
- name := cSISnapshotController.Name
- if name == nil {
- return nil, fmt.Errorf("cSISnapshotController.Name must be provided to Apply")
- }
- emptyResult := &v1.CSISnapshotController{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(csisnapshotcontrollersResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.CSISnapshotController), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeCSISnapshotControllers) ApplyStatus(ctx context.Context, cSISnapshotController *operatorv1.CSISnapshotControllerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.CSISnapshotController, err error) {
- if cSISnapshotController == nil {
- return nil, fmt.Errorf("cSISnapshotController provided to Apply must not be nil")
- }
- data, err := json.Marshal(cSISnapshotController)
- if err != nil {
- return nil, err
- }
- name := cSISnapshotController.Name
- if name == nil {
- return nil, fmt.Errorf("cSISnapshotController.Name must be provided to Apply")
- }
- emptyResult := &v1.CSISnapshotController{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(csisnapshotcontrollersResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeCSISnapshotControllers(fake *FakeOperatorV1) typedoperatorv1.CSISnapshotControllerInterface {
+ return &fakeCSISnapshotControllers{
+ gentype.NewFakeClientWithListAndApply[*v1.CSISnapshotController, *v1.CSISnapshotControllerList, *operatorv1.CSISnapshotControllerApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("csisnapshotcontrollers"),
+ v1.SchemeGroupVersion.WithKind("CSISnapshotController"),
+ func() *v1.CSISnapshotController { return &v1.CSISnapshotController{} },
+ func() *v1.CSISnapshotControllerList { return &v1.CSISnapshotControllerList{} },
+ func(dst, src *v1.CSISnapshotControllerList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.CSISnapshotControllerList) []*v1.CSISnapshotController {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1.CSISnapshotControllerList, items []*v1.CSISnapshotController) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.CSISnapshotController), err
}
diff --git a/operator/clientset/versioned/typed/operator/v1/fake/fake_dns.go b/operator/clientset/versioned/typed/operator/v1/fake/fake_dns.go
index e5fd0a673..4d1e8fa61 100644
--- a/operator/clientset/versioned/typed/operator/v1/fake/fake_dns.go
+++ b/operator/clientset/versioned/typed/operator/v1/fake/fake_dns.go
@@ -3,168 +3,31 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/operator/v1"
operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedoperatorv1 "github.com/openshift/client-go/operator/clientset/versioned/typed/operator/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeDNSes implements DNSInterface
-type FakeDNSes struct {
+// fakeDNSes implements DNSInterface
+type fakeDNSes struct {
+ *gentype.FakeClientWithListAndApply[*v1.DNS, *v1.DNSList, *operatorv1.DNSApplyConfiguration]
Fake *FakeOperatorV1
}
-var dnsesResource = v1.SchemeGroupVersion.WithResource("dnses")
-
-var dnsesKind = v1.SchemeGroupVersion.WithKind("DNS")
-
-// Get takes name of the dNS, and returns the corresponding dNS object, and an error if there is any.
-func (c *FakeDNSes) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.DNS, err error) {
- emptyResult := &v1.DNS{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(dnsesResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.DNS), err
-}
-
-// List takes label and field selectors, and returns the list of DNSes that match those selectors.
-func (c *FakeDNSes) List(ctx context.Context, opts metav1.ListOptions) (result *v1.DNSList, err error) {
- emptyResult := &v1.DNSList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(dnsesResource, dnsesKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.DNSList{ListMeta: obj.(*v1.DNSList).ListMeta}
- for _, item := range obj.(*v1.DNSList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested dNSes.
-func (c *FakeDNSes) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(dnsesResource, opts))
-}
-
-// Create takes the representation of a dNS and creates it. Returns the server's representation of the dNS, and an error, if there is any.
-func (c *FakeDNSes) Create(ctx context.Context, dNS *v1.DNS, opts metav1.CreateOptions) (result *v1.DNS, err error) {
- emptyResult := &v1.DNS{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(dnsesResource, dNS, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.DNS), err
-}
-
-// Update takes the representation of a dNS and updates it. Returns the server's representation of the dNS, and an error, if there is any.
-func (c *FakeDNSes) Update(ctx context.Context, dNS *v1.DNS, opts metav1.UpdateOptions) (result *v1.DNS, err error) {
- emptyResult := &v1.DNS{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(dnsesResource, dNS, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.DNS), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeDNSes) UpdateStatus(ctx context.Context, dNS *v1.DNS, opts metav1.UpdateOptions) (result *v1.DNS, err error) {
- emptyResult := &v1.DNS{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(dnsesResource, "status", dNS, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.DNS), err
-}
-
-// Delete takes name of the dNS and deletes it. Returns an error if one occurs.
-func (c *FakeDNSes) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(dnsesResource, name, opts), &v1.DNS{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeDNSes) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(dnsesResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.DNSList{})
- return err
-}
-
-// Patch applies the patch and returns the patched dNS.
-func (c *FakeDNSes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DNS, err error) {
- emptyResult := &v1.DNS{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(dnsesResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.DNS), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied dNS.
-func (c *FakeDNSes) Apply(ctx context.Context, dNS *operatorv1.DNSApplyConfiguration, opts metav1.ApplyOptions) (result *v1.DNS, err error) {
- if dNS == nil {
- return nil, fmt.Errorf("dNS provided to Apply must not be nil")
- }
- data, err := json.Marshal(dNS)
- if err != nil {
- return nil, err
- }
- name := dNS.Name
- if name == nil {
- return nil, fmt.Errorf("dNS.Name must be provided to Apply")
- }
- emptyResult := &v1.DNS{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(dnsesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.DNS), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeDNSes) ApplyStatus(ctx context.Context, dNS *operatorv1.DNSApplyConfiguration, opts metav1.ApplyOptions) (result *v1.DNS, err error) {
- if dNS == nil {
- return nil, fmt.Errorf("dNS provided to Apply must not be nil")
- }
- data, err := json.Marshal(dNS)
- if err != nil {
- return nil, err
- }
- name := dNS.Name
- if name == nil {
- return nil, fmt.Errorf("dNS.Name must be provided to Apply")
- }
- emptyResult := &v1.DNS{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(dnsesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeDNSes(fake *FakeOperatorV1) typedoperatorv1.DNSInterface {
+ return &fakeDNSes{
+ gentype.NewFakeClientWithListAndApply[*v1.DNS, *v1.DNSList, *operatorv1.DNSApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("dnses"),
+ v1.SchemeGroupVersion.WithKind("DNS"),
+ func() *v1.DNS { return &v1.DNS{} },
+ func() *v1.DNSList { return &v1.DNSList{} },
+ func(dst, src *v1.DNSList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.DNSList) []*v1.DNS { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.DNSList, items []*v1.DNS) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.DNS), err
}
diff --git a/operator/clientset/versioned/typed/operator/v1/fake/fake_etcd.go b/operator/clientset/versioned/typed/operator/v1/fake/fake_etcd.go
index 0952eebd7..b79b463d1 100644
--- a/operator/clientset/versioned/typed/operator/v1/fake/fake_etcd.go
+++ b/operator/clientset/versioned/typed/operator/v1/fake/fake_etcd.go
@@ -3,168 +3,31 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/operator/v1"
operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedoperatorv1 "github.com/openshift/client-go/operator/clientset/versioned/typed/operator/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeEtcds implements EtcdInterface
-type FakeEtcds struct {
+// fakeEtcds implements EtcdInterface
+type fakeEtcds struct {
+ *gentype.FakeClientWithListAndApply[*v1.Etcd, *v1.EtcdList, *operatorv1.EtcdApplyConfiguration]
Fake *FakeOperatorV1
}
-var etcdsResource = v1.SchemeGroupVersion.WithResource("etcds")
-
-var etcdsKind = v1.SchemeGroupVersion.WithKind("Etcd")
-
-// Get takes name of the etcd, and returns the corresponding etcd object, and an error if there is any.
-func (c *FakeEtcds) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Etcd, err error) {
- emptyResult := &v1.Etcd{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(etcdsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Etcd), err
-}
-
-// List takes label and field selectors, and returns the list of Etcds that match those selectors.
-func (c *FakeEtcds) List(ctx context.Context, opts metav1.ListOptions) (result *v1.EtcdList, err error) {
- emptyResult := &v1.EtcdList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(etcdsResource, etcdsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.EtcdList{ListMeta: obj.(*v1.EtcdList).ListMeta}
- for _, item := range obj.(*v1.EtcdList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested etcds.
-func (c *FakeEtcds) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(etcdsResource, opts))
-}
-
-// Create takes the representation of a etcd and creates it. Returns the server's representation of the etcd, and an error, if there is any.
-func (c *FakeEtcds) Create(ctx context.Context, etcd *v1.Etcd, opts metav1.CreateOptions) (result *v1.Etcd, err error) {
- emptyResult := &v1.Etcd{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(etcdsResource, etcd, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Etcd), err
-}
-
-// Update takes the representation of a etcd and updates it. Returns the server's representation of the etcd, and an error, if there is any.
-func (c *FakeEtcds) Update(ctx context.Context, etcd *v1.Etcd, opts metav1.UpdateOptions) (result *v1.Etcd, err error) {
- emptyResult := &v1.Etcd{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(etcdsResource, etcd, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Etcd), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeEtcds) UpdateStatus(ctx context.Context, etcd *v1.Etcd, opts metav1.UpdateOptions) (result *v1.Etcd, err error) {
- emptyResult := &v1.Etcd{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(etcdsResource, "status", etcd, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Etcd), err
-}
-
-// Delete takes name of the etcd and deletes it. Returns an error if one occurs.
-func (c *FakeEtcds) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(etcdsResource, name, opts), &v1.Etcd{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeEtcds) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(etcdsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.EtcdList{})
- return err
-}
-
-// Patch applies the patch and returns the patched etcd.
-func (c *FakeEtcds) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Etcd, err error) {
- emptyResult := &v1.Etcd{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(etcdsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Etcd), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied etcd.
-func (c *FakeEtcds) Apply(ctx context.Context, etcd *operatorv1.EtcdApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Etcd, err error) {
- if etcd == nil {
- return nil, fmt.Errorf("etcd provided to Apply must not be nil")
- }
- data, err := json.Marshal(etcd)
- if err != nil {
- return nil, err
- }
- name := etcd.Name
- if name == nil {
- return nil, fmt.Errorf("etcd.Name must be provided to Apply")
- }
- emptyResult := &v1.Etcd{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(etcdsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Etcd), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeEtcds) ApplyStatus(ctx context.Context, etcd *operatorv1.EtcdApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Etcd, err error) {
- if etcd == nil {
- return nil, fmt.Errorf("etcd provided to Apply must not be nil")
- }
- data, err := json.Marshal(etcd)
- if err != nil {
- return nil, err
- }
- name := etcd.Name
- if name == nil {
- return nil, fmt.Errorf("etcd.Name must be provided to Apply")
- }
- emptyResult := &v1.Etcd{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(etcdsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeEtcds(fake *FakeOperatorV1) typedoperatorv1.EtcdInterface {
+ return &fakeEtcds{
+ gentype.NewFakeClientWithListAndApply[*v1.Etcd, *v1.EtcdList, *operatorv1.EtcdApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("etcds"),
+ v1.SchemeGroupVersion.WithKind("Etcd"),
+ func() *v1.Etcd { return &v1.Etcd{} },
+ func() *v1.EtcdList { return &v1.EtcdList{} },
+ func(dst, src *v1.EtcdList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.EtcdList) []*v1.Etcd { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.EtcdList, items []*v1.Etcd) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.Etcd), err
}
diff --git a/operator/clientset/versioned/typed/operator/v1/fake/fake_ingresscontroller.go b/operator/clientset/versioned/typed/operator/v1/fake/fake_ingresscontroller.go
index 71689cbf4..0e81be795 100644
--- a/operator/clientset/versioned/typed/operator/v1/fake/fake_ingresscontroller.go
+++ b/operator/clientset/versioned/typed/operator/v1/fake/fake_ingresscontroller.go
@@ -3,179 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/operator/v1"
operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedoperatorv1 "github.com/openshift/client-go/operator/clientset/versioned/typed/operator/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeIngressControllers implements IngressControllerInterface
-type FakeIngressControllers struct {
+// fakeIngressControllers implements IngressControllerInterface
+type fakeIngressControllers struct {
+ *gentype.FakeClientWithListAndApply[*v1.IngressController, *v1.IngressControllerList, *operatorv1.IngressControllerApplyConfiguration]
Fake *FakeOperatorV1
- ns string
-}
-
-var ingresscontrollersResource = v1.SchemeGroupVersion.WithResource("ingresscontrollers")
-
-var ingresscontrollersKind = v1.SchemeGroupVersion.WithKind("IngressController")
-
-// Get takes name of the ingressController, and returns the corresponding ingressController object, and an error if there is any.
-func (c *FakeIngressControllers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.IngressController, err error) {
- emptyResult := &v1.IngressController{}
- obj, err := c.Fake.
- Invokes(testing.NewGetActionWithOptions(ingresscontrollersResource, c.ns, name, options), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.IngressController), err
-}
-
-// List takes label and field selectors, and returns the list of IngressControllers that match those selectors.
-func (c *FakeIngressControllers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.IngressControllerList, err error) {
- emptyResult := &v1.IngressControllerList{}
- obj, err := c.Fake.
- Invokes(testing.NewListActionWithOptions(ingresscontrollersResource, ingresscontrollersKind, c.ns, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.IngressControllerList{ListMeta: obj.(*v1.IngressControllerList).ListMeta}
- for _, item := range obj.(*v1.IngressControllerList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested ingressControllers.
-func (c *FakeIngressControllers) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewWatchActionWithOptions(ingresscontrollersResource, c.ns, opts))
-
-}
-
-// Create takes the representation of a ingressController and creates it. Returns the server's representation of the ingressController, and an error, if there is any.
-func (c *FakeIngressControllers) Create(ctx context.Context, ingressController *v1.IngressController, opts metav1.CreateOptions) (result *v1.IngressController, err error) {
- emptyResult := &v1.IngressController{}
- obj, err := c.Fake.
- Invokes(testing.NewCreateActionWithOptions(ingresscontrollersResource, c.ns, ingressController, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.IngressController), err
-}
-
-// Update takes the representation of a ingressController and updates it. Returns the server's representation of the ingressController, and an error, if there is any.
-func (c *FakeIngressControllers) Update(ctx context.Context, ingressController *v1.IngressController, opts metav1.UpdateOptions) (result *v1.IngressController, err error) {
- emptyResult := &v1.IngressController{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateActionWithOptions(ingresscontrollersResource, c.ns, ingressController, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.IngressController), err
}
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeIngressControllers) UpdateStatus(ctx context.Context, ingressController *v1.IngressController, opts metav1.UpdateOptions) (result *v1.IngressController, err error) {
- emptyResult := &v1.IngressController{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateSubresourceActionWithOptions(ingresscontrollersResource, "status", c.ns, ingressController, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.IngressController), err
-}
-
-// Delete takes name of the ingressController and deletes it. Returns an error if one occurs.
-func (c *FakeIngressControllers) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewDeleteActionWithOptions(ingresscontrollersResource, c.ns, name, opts), &v1.IngressController{})
-
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeIngressControllers) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewDeleteCollectionActionWithOptions(ingresscontrollersResource, c.ns, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.IngressControllerList{})
- return err
-}
-
-// Patch applies the patch and returns the patched ingressController.
-func (c *FakeIngressControllers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.IngressController, err error) {
- emptyResult := &v1.IngressController{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(ingresscontrollersResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.IngressController), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied ingressController.
-func (c *FakeIngressControllers) Apply(ctx context.Context, ingressController *operatorv1.IngressControllerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.IngressController, err error) {
- if ingressController == nil {
- return nil, fmt.Errorf("ingressController provided to Apply must not be nil")
- }
- data, err := json.Marshal(ingressController)
- if err != nil {
- return nil, err
- }
- name := ingressController.Name
- if name == nil {
- return nil, fmt.Errorf("ingressController.Name must be provided to Apply")
- }
- emptyResult := &v1.IngressController{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(ingresscontrollersResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.IngressController), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeIngressControllers) ApplyStatus(ctx context.Context, ingressController *operatorv1.IngressControllerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.IngressController, err error) {
- if ingressController == nil {
- return nil, fmt.Errorf("ingressController provided to Apply must not be nil")
- }
- data, err := json.Marshal(ingressController)
- if err != nil {
- return nil, err
- }
- name := ingressController.Name
- if name == nil {
- return nil, fmt.Errorf("ingressController.Name must be provided to Apply")
- }
- emptyResult := &v1.IngressController{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(ingresscontrollersResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
-
- if obj == nil {
- return emptyResult, err
+func newFakeIngressControllers(fake *FakeOperatorV1, namespace string) typedoperatorv1.IngressControllerInterface {
+ return &fakeIngressControllers{
+ gentype.NewFakeClientWithListAndApply[*v1.IngressController, *v1.IngressControllerList, *operatorv1.IngressControllerApplyConfiguration](
+ fake.Fake,
+ namespace,
+ v1.SchemeGroupVersion.WithResource("ingresscontrollers"),
+ v1.SchemeGroupVersion.WithKind("IngressController"),
+ func() *v1.IngressController { return &v1.IngressController{} },
+ func() *v1.IngressControllerList { return &v1.IngressControllerList{} },
+ func(dst, src *v1.IngressControllerList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.IngressControllerList) []*v1.IngressController {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1.IngressControllerList, items []*v1.IngressController) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.IngressController), err
}
diff --git a/operator/clientset/versioned/typed/operator/v1/fake/fake_insightsoperator.go b/operator/clientset/versioned/typed/operator/v1/fake/fake_insightsoperator.go
index 0da35b96a..82e68c515 100644
--- a/operator/clientset/versioned/typed/operator/v1/fake/fake_insightsoperator.go
+++ b/operator/clientset/versioned/typed/operator/v1/fake/fake_insightsoperator.go
@@ -3,168 +3,33 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/operator/v1"
operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedoperatorv1 "github.com/openshift/client-go/operator/clientset/versioned/typed/operator/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeInsightsOperators implements InsightsOperatorInterface
-type FakeInsightsOperators struct {
+// fakeInsightsOperators implements InsightsOperatorInterface
+type fakeInsightsOperators struct {
+ *gentype.FakeClientWithListAndApply[*v1.InsightsOperator, *v1.InsightsOperatorList, *operatorv1.InsightsOperatorApplyConfiguration]
Fake *FakeOperatorV1
}
-var insightsoperatorsResource = v1.SchemeGroupVersion.WithResource("insightsoperators")
-
-var insightsoperatorsKind = v1.SchemeGroupVersion.WithKind("InsightsOperator")
-
-// Get takes name of the insightsOperator, and returns the corresponding insightsOperator object, and an error if there is any.
-func (c *FakeInsightsOperators) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.InsightsOperator, err error) {
- emptyResult := &v1.InsightsOperator{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(insightsoperatorsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.InsightsOperator), err
-}
-
-// List takes label and field selectors, and returns the list of InsightsOperators that match those selectors.
-func (c *FakeInsightsOperators) List(ctx context.Context, opts metav1.ListOptions) (result *v1.InsightsOperatorList, err error) {
- emptyResult := &v1.InsightsOperatorList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(insightsoperatorsResource, insightsoperatorsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.InsightsOperatorList{ListMeta: obj.(*v1.InsightsOperatorList).ListMeta}
- for _, item := range obj.(*v1.InsightsOperatorList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested insightsOperators.
-func (c *FakeInsightsOperators) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(insightsoperatorsResource, opts))
-}
-
-// Create takes the representation of a insightsOperator and creates it. Returns the server's representation of the insightsOperator, and an error, if there is any.
-func (c *FakeInsightsOperators) Create(ctx context.Context, insightsOperator *v1.InsightsOperator, opts metav1.CreateOptions) (result *v1.InsightsOperator, err error) {
- emptyResult := &v1.InsightsOperator{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(insightsoperatorsResource, insightsOperator, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.InsightsOperator), err
-}
-
-// Update takes the representation of a insightsOperator and updates it. Returns the server's representation of the insightsOperator, and an error, if there is any.
-func (c *FakeInsightsOperators) Update(ctx context.Context, insightsOperator *v1.InsightsOperator, opts metav1.UpdateOptions) (result *v1.InsightsOperator, err error) {
- emptyResult := &v1.InsightsOperator{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(insightsoperatorsResource, insightsOperator, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.InsightsOperator), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeInsightsOperators) UpdateStatus(ctx context.Context, insightsOperator *v1.InsightsOperator, opts metav1.UpdateOptions) (result *v1.InsightsOperator, err error) {
- emptyResult := &v1.InsightsOperator{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(insightsoperatorsResource, "status", insightsOperator, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.InsightsOperator), err
-}
-
-// Delete takes name of the insightsOperator and deletes it. Returns an error if one occurs.
-func (c *FakeInsightsOperators) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(insightsoperatorsResource, name, opts), &v1.InsightsOperator{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeInsightsOperators) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(insightsoperatorsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.InsightsOperatorList{})
- return err
-}
-
-// Patch applies the patch and returns the patched insightsOperator.
-func (c *FakeInsightsOperators) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.InsightsOperator, err error) {
- emptyResult := &v1.InsightsOperator{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(insightsoperatorsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.InsightsOperator), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied insightsOperator.
-func (c *FakeInsightsOperators) Apply(ctx context.Context, insightsOperator *operatorv1.InsightsOperatorApplyConfiguration, opts metav1.ApplyOptions) (result *v1.InsightsOperator, err error) {
- if insightsOperator == nil {
- return nil, fmt.Errorf("insightsOperator provided to Apply must not be nil")
- }
- data, err := json.Marshal(insightsOperator)
- if err != nil {
- return nil, err
- }
- name := insightsOperator.Name
- if name == nil {
- return nil, fmt.Errorf("insightsOperator.Name must be provided to Apply")
- }
- emptyResult := &v1.InsightsOperator{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(insightsoperatorsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.InsightsOperator), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeInsightsOperators) ApplyStatus(ctx context.Context, insightsOperator *operatorv1.InsightsOperatorApplyConfiguration, opts metav1.ApplyOptions) (result *v1.InsightsOperator, err error) {
- if insightsOperator == nil {
- return nil, fmt.Errorf("insightsOperator provided to Apply must not be nil")
- }
- data, err := json.Marshal(insightsOperator)
- if err != nil {
- return nil, err
- }
- name := insightsOperator.Name
- if name == nil {
- return nil, fmt.Errorf("insightsOperator.Name must be provided to Apply")
- }
- emptyResult := &v1.InsightsOperator{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(insightsoperatorsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeInsightsOperators(fake *FakeOperatorV1) typedoperatorv1.InsightsOperatorInterface {
+ return &fakeInsightsOperators{
+ gentype.NewFakeClientWithListAndApply[*v1.InsightsOperator, *v1.InsightsOperatorList, *operatorv1.InsightsOperatorApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("insightsoperators"),
+ v1.SchemeGroupVersion.WithKind("InsightsOperator"),
+ func() *v1.InsightsOperator { return &v1.InsightsOperator{} },
+ func() *v1.InsightsOperatorList { return &v1.InsightsOperatorList{} },
+ func(dst, src *v1.InsightsOperatorList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.InsightsOperatorList) []*v1.InsightsOperator { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.InsightsOperatorList, items []*v1.InsightsOperator) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.InsightsOperator), err
}
diff --git a/operator/clientset/versioned/typed/operator/v1/fake/fake_kubeapiserver.go b/operator/clientset/versioned/typed/operator/v1/fake/fake_kubeapiserver.go
index 7bbe53581..5f74443a3 100644
--- a/operator/clientset/versioned/typed/operator/v1/fake/fake_kubeapiserver.go
+++ b/operator/clientset/versioned/typed/operator/v1/fake/fake_kubeapiserver.go
@@ -3,168 +3,33 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/operator/v1"
operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedoperatorv1 "github.com/openshift/client-go/operator/clientset/versioned/typed/operator/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeKubeAPIServers implements KubeAPIServerInterface
-type FakeKubeAPIServers struct {
+// fakeKubeAPIServers implements KubeAPIServerInterface
+type fakeKubeAPIServers struct {
+ *gentype.FakeClientWithListAndApply[*v1.KubeAPIServer, *v1.KubeAPIServerList, *operatorv1.KubeAPIServerApplyConfiguration]
Fake *FakeOperatorV1
}
-var kubeapiserversResource = v1.SchemeGroupVersion.WithResource("kubeapiservers")
-
-var kubeapiserversKind = v1.SchemeGroupVersion.WithKind("KubeAPIServer")
-
-// Get takes name of the kubeAPIServer, and returns the corresponding kubeAPIServer object, and an error if there is any.
-func (c *FakeKubeAPIServers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.KubeAPIServer, err error) {
- emptyResult := &v1.KubeAPIServer{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(kubeapiserversResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.KubeAPIServer), err
-}
-
-// List takes label and field selectors, and returns the list of KubeAPIServers that match those selectors.
-func (c *FakeKubeAPIServers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.KubeAPIServerList, err error) {
- emptyResult := &v1.KubeAPIServerList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(kubeapiserversResource, kubeapiserversKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.KubeAPIServerList{ListMeta: obj.(*v1.KubeAPIServerList).ListMeta}
- for _, item := range obj.(*v1.KubeAPIServerList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested kubeAPIServers.
-func (c *FakeKubeAPIServers) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(kubeapiserversResource, opts))
-}
-
-// Create takes the representation of a kubeAPIServer and creates it. Returns the server's representation of the kubeAPIServer, and an error, if there is any.
-func (c *FakeKubeAPIServers) Create(ctx context.Context, kubeAPIServer *v1.KubeAPIServer, opts metav1.CreateOptions) (result *v1.KubeAPIServer, err error) {
- emptyResult := &v1.KubeAPIServer{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(kubeapiserversResource, kubeAPIServer, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.KubeAPIServer), err
-}
-
-// Update takes the representation of a kubeAPIServer and updates it. Returns the server's representation of the kubeAPIServer, and an error, if there is any.
-func (c *FakeKubeAPIServers) Update(ctx context.Context, kubeAPIServer *v1.KubeAPIServer, opts metav1.UpdateOptions) (result *v1.KubeAPIServer, err error) {
- emptyResult := &v1.KubeAPIServer{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(kubeapiserversResource, kubeAPIServer, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.KubeAPIServer), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeKubeAPIServers) UpdateStatus(ctx context.Context, kubeAPIServer *v1.KubeAPIServer, opts metav1.UpdateOptions) (result *v1.KubeAPIServer, err error) {
- emptyResult := &v1.KubeAPIServer{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(kubeapiserversResource, "status", kubeAPIServer, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.KubeAPIServer), err
-}
-
-// Delete takes name of the kubeAPIServer and deletes it. Returns an error if one occurs.
-func (c *FakeKubeAPIServers) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(kubeapiserversResource, name, opts), &v1.KubeAPIServer{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeKubeAPIServers) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(kubeapiserversResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.KubeAPIServerList{})
- return err
-}
-
-// Patch applies the patch and returns the patched kubeAPIServer.
-func (c *FakeKubeAPIServers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.KubeAPIServer, err error) {
- emptyResult := &v1.KubeAPIServer{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(kubeapiserversResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.KubeAPIServer), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied kubeAPIServer.
-func (c *FakeKubeAPIServers) Apply(ctx context.Context, kubeAPIServer *operatorv1.KubeAPIServerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.KubeAPIServer, err error) {
- if kubeAPIServer == nil {
- return nil, fmt.Errorf("kubeAPIServer provided to Apply must not be nil")
- }
- data, err := json.Marshal(kubeAPIServer)
- if err != nil {
- return nil, err
- }
- name := kubeAPIServer.Name
- if name == nil {
- return nil, fmt.Errorf("kubeAPIServer.Name must be provided to Apply")
- }
- emptyResult := &v1.KubeAPIServer{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(kubeapiserversResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.KubeAPIServer), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeKubeAPIServers) ApplyStatus(ctx context.Context, kubeAPIServer *operatorv1.KubeAPIServerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.KubeAPIServer, err error) {
- if kubeAPIServer == nil {
- return nil, fmt.Errorf("kubeAPIServer provided to Apply must not be nil")
- }
- data, err := json.Marshal(kubeAPIServer)
- if err != nil {
- return nil, err
- }
- name := kubeAPIServer.Name
- if name == nil {
- return nil, fmt.Errorf("kubeAPIServer.Name must be provided to Apply")
- }
- emptyResult := &v1.KubeAPIServer{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(kubeapiserversResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeKubeAPIServers(fake *FakeOperatorV1) typedoperatorv1.KubeAPIServerInterface {
+ return &fakeKubeAPIServers{
+ gentype.NewFakeClientWithListAndApply[*v1.KubeAPIServer, *v1.KubeAPIServerList, *operatorv1.KubeAPIServerApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("kubeapiservers"),
+ v1.SchemeGroupVersion.WithKind("KubeAPIServer"),
+ func() *v1.KubeAPIServer { return &v1.KubeAPIServer{} },
+ func() *v1.KubeAPIServerList { return &v1.KubeAPIServerList{} },
+ func(dst, src *v1.KubeAPIServerList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.KubeAPIServerList) []*v1.KubeAPIServer { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.KubeAPIServerList, items []*v1.KubeAPIServer) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.KubeAPIServer), err
}
diff --git a/operator/clientset/versioned/typed/operator/v1/fake/fake_kubecontrollermanager.go b/operator/clientset/versioned/typed/operator/v1/fake/fake_kubecontrollermanager.go
index a45e2520c..e918a82d7 100644
--- a/operator/clientset/versioned/typed/operator/v1/fake/fake_kubecontrollermanager.go
+++ b/operator/clientset/versioned/typed/operator/v1/fake/fake_kubecontrollermanager.go
@@ -3,168 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/operator/v1"
operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedoperatorv1 "github.com/openshift/client-go/operator/clientset/versioned/typed/operator/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeKubeControllerManagers implements KubeControllerManagerInterface
-type FakeKubeControllerManagers struct {
+// fakeKubeControllerManagers implements KubeControllerManagerInterface
+type fakeKubeControllerManagers struct {
+ *gentype.FakeClientWithListAndApply[*v1.KubeControllerManager, *v1.KubeControllerManagerList, *operatorv1.KubeControllerManagerApplyConfiguration]
Fake *FakeOperatorV1
}
-var kubecontrollermanagersResource = v1.SchemeGroupVersion.WithResource("kubecontrollermanagers")
-
-var kubecontrollermanagersKind = v1.SchemeGroupVersion.WithKind("KubeControllerManager")
-
-// Get takes name of the kubeControllerManager, and returns the corresponding kubeControllerManager object, and an error if there is any.
-func (c *FakeKubeControllerManagers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.KubeControllerManager, err error) {
- emptyResult := &v1.KubeControllerManager{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(kubecontrollermanagersResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.KubeControllerManager), err
-}
-
-// List takes label and field selectors, and returns the list of KubeControllerManagers that match those selectors.
-func (c *FakeKubeControllerManagers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.KubeControllerManagerList, err error) {
- emptyResult := &v1.KubeControllerManagerList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(kubecontrollermanagersResource, kubecontrollermanagersKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.KubeControllerManagerList{ListMeta: obj.(*v1.KubeControllerManagerList).ListMeta}
- for _, item := range obj.(*v1.KubeControllerManagerList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested kubeControllerManagers.
-func (c *FakeKubeControllerManagers) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(kubecontrollermanagersResource, opts))
-}
-
-// Create takes the representation of a kubeControllerManager and creates it. Returns the server's representation of the kubeControllerManager, and an error, if there is any.
-func (c *FakeKubeControllerManagers) Create(ctx context.Context, kubeControllerManager *v1.KubeControllerManager, opts metav1.CreateOptions) (result *v1.KubeControllerManager, err error) {
- emptyResult := &v1.KubeControllerManager{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(kubecontrollermanagersResource, kubeControllerManager, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.KubeControllerManager), err
-}
-
-// Update takes the representation of a kubeControllerManager and updates it. Returns the server's representation of the kubeControllerManager, and an error, if there is any.
-func (c *FakeKubeControllerManagers) Update(ctx context.Context, kubeControllerManager *v1.KubeControllerManager, opts metav1.UpdateOptions) (result *v1.KubeControllerManager, err error) {
- emptyResult := &v1.KubeControllerManager{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(kubecontrollermanagersResource, kubeControllerManager, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.KubeControllerManager), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeKubeControllerManagers) UpdateStatus(ctx context.Context, kubeControllerManager *v1.KubeControllerManager, opts metav1.UpdateOptions) (result *v1.KubeControllerManager, err error) {
- emptyResult := &v1.KubeControllerManager{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(kubecontrollermanagersResource, "status", kubeControllerManager, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.KubeControllerManager), err
-}
-
-// Delete takes name of the kubeControllerManager and deletes it. Returns an error if one occurs.
-func (c *FakeKubeControllerManagers) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(kubecontrollermanagersResource, name, opts), &v1.KubeControllerManager{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeKubeControllerManagers) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(kubecontrollermanagersResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.KubeControllerManagerList{})
- return err
-}
-
-// Patch applies the patch and returns the patched kubeControllerManager.
-func (c *FakeKubeControllerManagers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.KubeControllerManager, err error) {
- emptyResult := &v1.KubeControllerManager{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(kubecontrollermanagersResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.KubeControllerManager), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied kubeControllerManager.
-func (c *FakeKubeControllerManagers) Apply(ctx context.Context, kubeControllerManager *operatorv1.KubeControllerManagerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.KubeControllerManager, err error) {
- if kubeControllerManager == nil {
- return nil, fmt.Errorf("kubeControllerManager provided to Apply must not be nil")
- }
- data, err := json.Marshal(kubeControllerManager)
- if err != nil {
- return nil, err
- }
- name := kubeControllerManager.Name
- if name == nil {
- return nil, fmt.Errorf("kubeControllerManager.Name must be provided to Apply")
- }
- emptyResult := &v1.KubeControllerManager{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(kubecontrollermanagersResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.KubeControllerManager), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeKubeControllerManagers) ApplyStatus(ctx context.Context, kubeControllerManager *operatorv1.KubeControllerManagerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.KubeControllerManager, err error) {
- if kubeControllerManager == nil {
- return nil, fmt.Errorf("kubeControllerManager provided to Apply must not be nil")
- }
- data, err := json.Marshal(kubeControllerManager)
- if err != nil {
- return nil, err
- }
- name := kubeControllerManager.Name
- if name == nil {
- return nil, fmt.Errorf("kubeControllerManager.Name must be provided to Apply")
- }
- emptyResult := &v1.KubeControllerManager{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(kubecontrollermanagersResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeKubeControllerManagers(fake *FakeOperatorV1) typedoperatorv1.KubeControllerManagerInterface {
+ return &fakeKubeControllerManagers{
+ gentype.NewFakeClientWithListAndApply[*v1.KubeControllerManager, *v1.KubeControllerManagerList, *operatorv1.KubeControllerManagerApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("kubecontrollermanagers"),
+ v1.SchemeGroupVersion.WithKind("KubeControllerManager"),
+ func() *v1.KubeControllerManager { return &v1.KubeControllerManager{} },
+ func() *v1.KubeControllerManagerList { return &v1.KubeControllerManagerList{} },
+ func(dst, src *v1.KubeControllerManagerList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.KubeControllerManagerList) []*v1.KubeControllerManager {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1.KubeControllerManagerList, items []*v1.KubeControllerManager) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.KubeControllerManager), err
}
diff --git a/operator/clientset/versioned/typed/operator/v1/fake/fake_kubescheduler.go b/operator/clientset/versioned/typed/operator/v1/fake/fake_kubescheduler.go
index 4a68325fd..aa213e140 100644
--- a/operator/clientset/versioned/typed/operator/v1/fake/fake_kubescheduler.go
+++ b/operator/clientset/versioned/typed/operator/v1/fake/fake_kubescheduler.go
@@ -3,168 +3,33 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/operator/v1"
operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedoperatorv1 "github.com/openshift/client-go/operator/clientset/versioned/typed/operator/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeKubeSchedulers implements KubeSchedulerInterface
-type FakeKubeSchedulers struct {
+// fakeKubeSchedulers implements KubeSchedulerInterface
+type fakeKubeSchedulers struct {
+ *gentype.FakeClientWithListAndApply[*v1.KubeScheduler, *v1.KubeSchedulerList, *operatorv1.KubeSchedulerApplyConfiguration]
Fake *FakeOperatorV1
}
-var kubeschedulersResource = v1.SchemeGroupVersion.WithResource("kubeschedulers")
-
-var kubeschedulersKind = v1.SchemeGroupVersion.WithKind("KubeScheduler")
-
-// Get takes name of the kubeScheduler, and returns the corresponding kubeScheduler object, and an error if there is any.
-func (c *FakeKubeSchedulers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.KubeScheduler, err error) {
- emptyResult := &v1.KubeScheduler{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(kubeschedulersResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.KubeScheduler), err
-}
-
-// List takes label and field selectors, and returns the list of KubeSchedulers that match those selectors.
-func (c *FakeKubeSchedulers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.KubeSchedulerList, err error) {
- emptyResult := &v1.KubeSchedulerList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(kubeschedulersResource, kubeschedulersKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.KubeSchedulerList{ListMeta: obj.(*v1.KubeSchedulerList).ListMeta}
- for _, item := range obj.(*v1.KubeSchedulerList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested kubeSchedulers.
-func (c *FakeKubeSchedulers) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(kubeschedulersResource, opts))
-}
-
-// Create takes the representation of a kubeScheduler and creates it. Returns the server's representation of the kubeScheduler, and an error, if there is any.
-func (c *FakeKubeSchedulers) Create(ctx context.Context, kubeScheduler *v1.KubeScheduler, opts metav1.CreateOptions) (result *v1.KubeScheduler, err error) {
- emptyResult := &v1.KubeScheduler{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(kubeschedulersResource, kubeScheduler, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.KubeScheduler), err
-}
-
-// Update takes the representation of a kubeScheduler and updates it. Returns the server's representation of the kubeScheduler, and an error, if there is any.
-func (c *FakeKubeSchedulers) Update(ctx context.Context, kubeScheduler *v1.KubeScheduler, opts metav1.UpdateOptions) (result *v1.KubeScheduler, err error) {
- emptyResult := &v1.KubeScheduler{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(kubeschedulersResource, kubeScheduler, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.KubeScheduler), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeKubeSchedulers) UpdateStatus(ctx context.Context, kubeScheduler *v1.KubeScheduler, opts metav1.UpdateOptions) (result *v1.KubeScheduler, err error) {
- emptyResult := &v1.KubeScheduler{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(kubeschedulersResource, "status", kubeScheduler, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.KubeScheduler), err
-}
-
-// Delete takes name of the kubeScheduler and deletes it. Returns an error if one occurs.
-func (c *FakeKubeSchedulers) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(kubeschedulersResource, name, opts), &v1.KubeScheduler{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeKubeSchedulers) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(kubeschedulersResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.KubeSchedulerList{})
- return err
-}
-
-// Patch applies the patch and returns the patched kubeScheduler.
-func (c *FakeKubeSchedulers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.KubeScheduler, err error) {
- emptyResult := &v1.KubeScheduler{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(kubeschedulersResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.KubeScheduler), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied kubeScheduler.
-func (c *FakeKubeSchedulers) Apply(ctx context.Context, kubeScheduler *operatorv1.KubeSchedulerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.KubeScheduler, err error) {
- if kubeScheduler == nil {
- return nil, fmt.Errorf("kubeScheduler provided to Apply must not be nil")
- }
- data, err := json.Marshal(kubeScheduler)
- if err != nil {
- return nil, err
- }
- name := kubeScheduler.Name
- if name == nil {
- return nil, fmt.Errorf("kubeScheduler.Name must be provided to Apply")
- }
- emptyResult := &v1.KubeScheduler{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(kubeschedulersResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.KubeScheduler), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeKubeSchedulers) ApplyStatus(ctx context.Context, kubeScheduler *operatorv1.KubeSchedulerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.KubeScheduler, err error) {
- if kubeScheduler == nil {
- return nil, fmt.Errorf("kubeScheduler provided to Apply must not be nil")
- }
- data, err := json.Marshal(kubeScheduler)
- if err != nil {
- return nil, err
- }
- name := kubeScheduler.Name
- if name == nil {
- return nil, fmt.Errorf("kubeScheduler.Name must be provided to Apply")
- }
- emptyResult := &v1.KubeScheduler{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(kubeschedulersResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeKubeSchedulers(fake *FakeOperatorV1) typedoperatorv1.KubeSchedulerInterface {
+ return &fakeKubeSchedulers{
+ gentype.NewFakeClientWithListAndApply[*v1.KubeScheduler, *v1.KubeSchedulerList, *operatorv1.KubeSchedulerApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("kubeschedulers"),
+ v1.SchemeGroupVersion.WithKind("KubeScheduler"),
+ func() *v1.KubeScheduler { return &v1.KubeScheduler{} },
+ func() *v1.KubeSchedulerList { return &v1.KubeSchedulerList{} },
+ func(dst, src *v1.KubeSchedulerList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.KubeSchedulerList) []*v1.KubeScheduler { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.KubeSchedulerList, items []*v1.KubeScheduler) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.KubeScheduler), err
}
diff --git a/operator/clientset/versioned/typed/operator/v1/fake/fake_kubestorageversionmigrator.go b/operator/clientset/versioned/typed/operator/v1/fake/fake_kubestorageversionmigrator.go
index eb916847f..cbfdc3e0b 100644
--- a/operator/clientset/versioned/typed/operator/v1/fake/fake_kubestorageversionmigrator.go
+++ b/operator/clientset/versioned/typed/operator/v1/fake/fake_kubestorageversionmigrator.go
@@ -3,168 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/operator/v1"
operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedoperatorv1 "github.com/openshift/client-go/operator/clientset/versioned/typed/operator/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeKubeStorageVersionMigrators implements KubeStorageVersionMigratorInterface
-type FakeKubeStorageVersionMigrators struct {
+// fakeKubeStorageVersionMigrators implements KubeStorageVersionMigratorInterface
+type fakeKubeStorageVersionMigrators struct {
+ *gentype.FakeClientWithListAndApply[*v1.KubeStorageVersionMigrator, *v1.KubeStorageVersionMigratorList, *operatorv1.KubeStorageVersionMigratorApplyConfiguration]
Fake *FakeOperatorV1
}
-var kubestorageversionmigratorsResource = v1.SchemeGroupVersion.WithResource("kubestorageversionmigrators")
-
-var kubestorageversionmigratorsKind = v1.SchemeGroupVersion.WithKind("KubeStorageVersionMigrator")
-
-// Get takes name of the kubeStorageVersionMigrator, and returns the corresponding kubeStorageVersionMigrator object, and an error if there is any.
-func (c *FakeKubeStorageVersionMigrators) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.KubeStorageVersionMigrator, err error) {
- emptyResult := &v1.KubeStorageVersionMigrator{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(kubestorageversionmigratorsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.KubeStorageVersionMigrator), err
-}
-
-// List takes label and field selectors, and returns the list of KubeStorageVersionMigrators that match those selectors.
-func (c *FakeKubeStorageVersionMigrators) List(ctx context.Context, opts metav1.ListOptions) (result *v1.KubeStorageVersionMigratorList, err error) {
- emptyResult := &v1.KubeStorageVersionMigratorList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(kubestorageversionmigratorsResource, kubestorageversionmigratorsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.KubeStorageVersionMigratorList{ListMeta: obj.(*v1.KubeStorageVersionMigratorList).ListMeta}
- for _, item := range obj.(*v1.KubeStorageVersionMigratorList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested kubeStorageVersionMigrators.
-func (c *FakeKubeStorageVersionMigrators) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(kubestorageversionmigratorsResource, opts))
-}
-
-// Create takes the representation of a kubeStorageVersionMigrator and creates it. Returns the server's representation of the kubeStorageVersionMigrator, and an error, if there is any.
-func (c *FakeKubeStorageVersionMigrators) Create(ctx context.Context, kubeStorageVersionMigrator *v1.KubeStorageVersionMigrator, opts metav1.CreateOptions) (result *v1.KubeStorageVersionMigrator, err error) {
- emptyResult := &v1.KubeStorageVersionMigrator{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(kubestorageversionmigratorsResource, kubeStorageVersionMigrator, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.KubeStorageVersionMigrator), err
-}
-
-// Update takes the representation of a kubeStorageVersionMigrator and updates it. Returns the server's representation of the kubeStorageVersionMigrator, and an error, if there is any.
-func (c *FakeKubeStorageVersionMigrators) Update(ctx context.Context, kubeStorageVersionMigrator *v1.KubeStorageVersionMigrator, opts metav1.UpdateOptions) (result *v1.KubeStorageVersionMigrator, err error) {
- emptyResult := &v1.KubeStorageVersionMigrator{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(kubestorageversionmigratorsResource, kubeStorageVersionMigrator, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.KubeStorageVersionMigrator), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeKubeStorageVersionMigrators) UpdateStatus(ctx context.Context, kubeStorageVersionMigrator *v1.KubeStorageVersionMigrator, opts metav1.UpdateOptions) (result *v1.KubeStorageVersionMigrator, err error) {
- emptyResult := &v1.KubeStorageVersionMigrator{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(kubestorageversionmigratorsResource, "status", kubeStorageVersionMigrator, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.KubeStorageVersionMigrator), err
-}
-
-// Delete takes name of the kubeStorageVersionMigrator and deletes it. Returns an error if one occurs.
-func (c *FakeKubeStorageVersionMigrators) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(kubestorageversionmigratorsResource, name, opts), &v1.KubeStorageVersionMigrator{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeKubeStorageVersionMigrators) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(kubestorageversionmigratorsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.KubeStorageVersionMigratorList{})
- return err
-}
-
-// Patch applies the patch and returns the patched kubeStorageVersionMigrator.
-func (c *FakeKubeStorageVersionMigrators) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.KubeStorageVersionMigrator, err error) {
- emptyResult := &v1.KubeStorageVersionMigrator{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(kubestorageversionmigratorsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.KubeStorageVersionMigrator), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied kubeStorageVersionMigrator.
-func (c *FakeKubeStorageVersionMigrators) Apply(ctx context.Context, kubeStorageVersionMigrator *operatorv1.KubeStorageVersionMigratorApplyConfiguration, opts metav1.ApplyOptions) (result *v1.KubeStorageVersionMigrator, err error) {
- if kubeStorageVersionMigrator == nil {
- return nil, fmt.Errorf("kubeStorageVersionMigrator provided to Apply must not be nil")
- }
- data, err := json.Marshal(kubeStorageVersionMigrator)
- if err != nil {
- return nil, err
- }
- name := kubeStorageVersionMigrator.Name
- if name == nil {
- return nil, fmt.Errorf("kubeStorageVersionMigrator.Name must be provided to Apply")
- }
- emptyResult := &v1.KubeStorageVersionMigrator{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(kubestorageversionmigratorsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.KubeStorageVersionMigrator), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeKubeStorageVersionMigrators) ApplyStatus(ctx context.Context, kubeStorageVersionMigrator *operatorv1.KubeStorageVersionMigratorApplyConfiguration, opts metav1.ApplyOptions) (result *v1.KubeStorageVersionMigrator, err error) {
- if kubeStorageVersionMigrator == nil {
- return nil, fmt.Errorf("kubeStorageVersionMigrator provided to Apply must not be nil")
- }
- data, err := json.Marshal(kubeStorageVersionMigrator)
- if err != nil {
- return nil, err
- }
- name := kubeStorageVersionMigrator.Name
- if name == nil {
- return nil, fmt.Errorf("kubeStorageVersionMigrator.Name must be provided to Apply")
- }
- emptyResult := &v1.KubeStorageVersionMigrator{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(kubestorageversionmigratorsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeKubeStorageVersionMigrators(fake *FakeOperatorV1) typedoperatorv1.KubeStorageVersionMigratorInterface {
+ return &fakeKubeStorageVersionMigrators{
+ gentype.NewFakeClientWithListAndApply[*v1.KubeStorageVersionMigrator, *v1.KubeStorageVersionMigratorList, *operatorv1.KubeStorageVersionMigratorApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("kubestorageversionmigrators"),
+ v1.SchemeGroupVersion.WithKind("KubeStorageVersionMigrator"),
+ func() *v1.KubeStorageVersionMigrator { return &v1.KubeStorageVersionMigrator{} },
+ func() *v1.KubeStorageVersionMigratorList { return &v1.KubeStorageVersionMigratorList{} },
+ func(dst, src *v1.KubeStorageVersionMigratorList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.KubeStorageVersionMigratorList) []*v1.KubeStorageVersionMigrator {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1.KubeStorageVersionMigratorList, items []*v1.KubeStorageVersionMigrator) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.KubeStorageVersionMigrator), err
}
diff --git a/operator/clientset/versioned/typed/operator/v1/fake/fake_machineconfiguration.go b/operator/clientset/versioned/typed/operator/v1/fake/fake_machineconfiguration.go
index 53ff482ae..f29860c55 100644
--- a/operator/clientset/versioned/typed/operator/v1/fake/fake_machineconfiguration.go
+++ b/operator/clientset/versioned/typed/operator/v1/fake/fake_machineconfiguration.go
@@ -3,168 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/operator/v1"
operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedoperatorv1 "github.com/openshift/client-go/operator/clientset/versioned/typed/operator/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeMachineConfigurations implements MachineConfigurationInterface
-type FakeMachineConfigurations struct {
+// fakeMachineConfigurations implements MachineConfigurationInterface
+type fakeMachineConfigurations struct {
+ *gentype.FakeClientWithListAndApply[*v1.MachineConfiguration, *v1.MachineConfigurationList, *operatorv1.MachineConfigurationApplyConfiguration]
Fake *FakeOperatorV1
}
-var machineconfigurationsResource = v1.SchemeGroupVersion.WithResource("machineconfigurations")
-
-var machineconfigurationsKind = v1.SchemeGroupVersion.WithKind("MachineConfiguration")
-
-// Get takes name of the machineConfiguration, and returns the corresponding machineConfiguration object, and an error if there is any.
-func (c *FakeMachineConfigurations) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.MachineConfiguration, err error) {
- emptyResult := &v1.MachineConfiguration{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(machineconfigurationsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.MachineConfiguration), err
-}
-
-// List takes label and field selectors, and returns the list of MachineConfigurations that match those selectors.
-func (c *FakeMachineConfigurations) List(ctx context.Context, opts metav1.ListOptions) (result *v1.MachineConfigurationList, err error) {
- emptyResult := &v1.MachineConfigurationList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(machineconfigurationsResource, machineconfigurationsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.MachineConfigurationList{ListMeta: obj.(*v1.MachineConfigurationList).ListMeta}
- for _, item := range obj.(*v1.MachineConfigurationList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested machineConfigurations.
-func (c *FakeMachineConfigurations) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(machineconfigurationsResource, opts))
-}
-
-// Create takes the representation of a machineConfiguration and creates it. Returns the server's representation of the machineConfiguration, and an error, if there is any.
-func (c *FakeMachineConfigurations) Create(ctx context.Context, machineConfiguration *v1.MachineConfiguration, opts metav1.CreateOptions) (result *v1.MachineConfiguration, err error) {
- emptyResult := &v1.MachineConfiguration{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(machineconfigurationsResource, machineConfiguration, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.MachineConfiguration), err
-}
-
-// Update takes the representation of a machineConfiguration and updates it. Returns the server's representation of the machineConfiguration, and an error, if there is any.
-func (c *FakeMachineConfigurations) Update(ctx context.Context, machineConfiguration *v1.MachineConfiguration, opts metav1.UpdateOptions) (result *v1.MachineConfiguration, err error) {
- emptyResult := &v1.MachineConfiguration{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(machineconfigurationsResource, machineConfiguration, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.MachineConfiguration), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeMachineConfigurations) UpdateStatus(ctx context.Context, machineConfiguration *v1.MachineConfiguration, opts metav1.UpdateOptions) (result *v1.MachineConfiguration, err error) {
- emptyResult := &v1.MachineConfiguration{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(machineconfigurationsResource, "status", machineConfiguration, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.MachineConfiguration), err
-}
-
-// Delete takes name of the machineConfiguration and deletes it. Returns an error if one occurs.
-func (c *FakeMachineConfigurations) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(machineconfigurationsResource, name, opts), &v1.MachineConfiguration{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeMachineConfigurations) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(machineconfigurationsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.MachineConfigurationList{})
- return err
-}
-
-// Patch applies the patch and returns the patched machineConfiguration.
-func (c *FakeMachineConfigurations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.MachineConfiguration, err error) {
- emptyResult := &v1.MachineConfiguration{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(machineconfigurationsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.MachineConfiguration), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied machineConfiguration.
-func (c *FakeMachineConfigurations) Apply(ctx context.Context, machineConfiguration *operatorv1.MachineConfigurationApplyConfiguration, opts metav1.ApplyOptions) (result *v1.MachineConfiguration, err error) {
- if machineConfiguration == nil {
- return nil, fmt.Errorf("machineConfiguration provided to Apply must not be nil")
- }
- data, err := json.Marshal(machineConfiguration)
- if err != nil {
- return nil, err
- }
- name := machineConfiguration.Name
- if name == nil {
- return nil, fmt.Errorf("machineConfiguration.Name must be provided to Apply")
- }
- emptyResult := &v1.MachineConfiguration{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(machineconfigurationsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.MachineConfiguration), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeMachineConfigurations) ApplyStatus(ctx context.Context, machineConfiguration *operatorv1.MachineConfigurationApplyConfiguration, opts metav1.ApplyOptions) (result *v1.MachineConfiguration, err error) {
- if machineConfiguration == nil {
- return nil, fmt.Errorf("machineConfiguration provided to Apply must not be nil")
- }
- data, err := json.Marshal(machineConfiguration)
- if err != nil {
- return nil, err
- }
- name := machineConfiguration.Name
- if name == nil {
- return nil, fmt.Errorf("machineConfiguration.Name must be provided to Apply")
- }
- emptyResult := &v1.MachineConfiguration{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(machineconfigurationsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeMachineConfigurations(fake *FakeOperatorV1) typedoperatorv1.MachineConfigurationInterface {
+ return &fakeMachineConfigurations{
+ gentype.NewFakeClientWithListAndApply[*v1.MachineConfiguration, *v1.MachineConfigurationList, *operatorv1.MachineConfigurationApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("machineconfigurations"),
+ v1.SchemeGroupVersion.WithKind("MachineConfiguration"),
+ func() *v1.MachineConfiguration { return &v1.MachineConfiguration{} },
+ func() *v1.MachineConfigurationList { return &v1.MachineConfigurationList{} },
+ func(dst, src *v1.MachineConfigurationList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.MachineConfigurationList) []*v1.MachineConfiguration {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1.MachineConfigurationList, items []*v1.MachineConfiguration) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.MachineConfiguration), err
}
diff --git a/operator/clientset/versioned/typed/operator/v1/fake/fake_network.go b/operator/clientset/versioned/typed/operator/v1/fake/fake_network.go
index 7564ca3cd..77bdc90ed 100644
--- a/operator/clientset/versioned/typed/operator/v1/fake/fake_network.go
+++ b/operator/clientset/versioned/typed/operator/v1/fake/fake_network.go
@@ -3,168 +3,31 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/operator/v1"
operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedoperatorv1 "github.com/openshift/client-go/operator/clientset/versioned/typed/operator/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeNetworks implements NetworkInterface
-type FakeNetworks struct {
+// fakeNetworks implements NetworkInterface
+type fakeNetworks struct {
+ *gentype.FakeClientWithListAndApply[*v1.Network, *v1.NetworkList, *operatorv1.NetworkApplyConfiguration]
Fake *FakeOperatorV1
}
-var networksResource = v1.SchemeGroupVersion.WithResource("networks")
-
-var networksKind = v1.SchemeGroupVersion.WithKind("Network")
-
-// Get takes name of the network, and returns the corresponding network object, and an error if there is any.
-func (c *FakeNetworks) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Network, err error) {
- emptyResult := &v1.Network{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(networksResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Network), err
-}
-
-// List takes label and field selectors, and returns the list of Networks that match those selectors.
-func (c *FakeNetworks) List(ctx context.Context, opts metav1.ListOptions) (result *v1.NetworkList, err error) {
- emptyResult := &v1.NetworkList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(networksResource, networksKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.NetworkList{ListMeta: obj.(*v1.NetworkList).ListMeta}
- for _, item := range obj.(*v1.NetworkList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested networks.
-func (c *FakeNetworks) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(networksResource, opts))
-}
-
-// Create takes the representation of a network and creates it. Returns the server's representation of the network, and an error, if there is any.
-func (c *FakeNetworks) Create(ctx context.Context, network *v1.Network, opts metav1.CreateOptions) (result *v1.Network, err error) {
- emptyResult := &v1.Network{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(networksResource, network, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Network), err
-}
-
-// Update takes the representation of a network and updates it. Returns the server's representation of the network, and an error, if there is any.
-func (c *FakeNetworks) Update(ctx context.Context, network *v1.Network, opts metav1.UpdateOptions) (result *v1.Network, err error) {
- emptyResult := &v1.Network{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(networksResource, network, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Network), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeNetworks) UpdateStatus(ctx context.Context, network *v1.Network, opts metav1.UpdateOptions) (result *v1.Network, err error) {
- emptyResult := &v1.Network{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(networksResource, "status", network, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Network), err
-}
-
-// Delete takes name of the network and deletes it. Returns an error if one occurs.
-func (c *FakeNetworks) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(networksResource, name, opts), &v1.Network{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeNetworks) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(networksResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.NetworkList{})
- return err
-}
-
-// Patch applies the patch and returns the patched network.
-func (c *FakeNetworks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Network, err error) {
- emptyResult := &v1.Network{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(networksResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Network), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied network.
-func (c *FakeNetworks) Apply(ctx context.Context, network *operatorv1.NetworkApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Network, err error) {
- if network == nil {
- return nil, fmt.Errorf("network provided to Apply must not be nil")
- }
- data, err := json.Marshal(network)
- if err != nil {
- return nil, err
- }
- name := network.Name
- if name == nil {
- return nil, fmt.Errorf("network.Name must be provided to Apply")
- }
- emptyResult := &v1.Network{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(networksResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Network), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeNetworks) ApplyStatus(ctx context.Context, network *operatorv1.NetworkApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Network, err error) {
- if network == nil {
- return nil, fmt.Errorf("network provided to Apply must not be nil")
- }
- data, err := json.Marshal(network)
- if err != nil {
- return nil, err
- }
- name := network.Name
- if name == nil {
- return nil, fmt.Errorf("network.Name must be provided to Apply")
- }
- emptyResult := &v1.Network{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(networksResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeNetworks(fake *FakeOperatorV1) typedoperatorv1.NetworkInterface {
+ return &fakeNetworks{
+ gentype.NewFakeClientWithListAndApply[*v1.Network, *v1.NetworkList, *operatorv1.NetworkApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("networks"),
+ v1.SchemeGroupVersion.WithKind("Network"),
+ func() *v1.Network { return &v1.Network{} },
+ func() *v1.NetworkList { return &v1.NetworkList{} },
+ func(dst, src *v1.NetworkList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.NetworkList) []*v1.Network { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.NetworkList, items []*v1.Network) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.Network), err
}
diff --git a/operator/clientset/versioned/typed/operator/v1/fake/fake_olm.go b/operator/clientset/versioned/typed/operator/v1/fake/fake_olm.go
index 2b5f3806c..bc67b5eee 100644
--- a/operator/clientset/versioned/typed/operator/v1/fake/fake_olm.go
+++ b/operator/clientset/versioned/typed/operator/v1/fake/fake_olm.go
@@ -3,168 +3,31 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/operator/v1"
operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedoperatorv1 "github.com/openshift/client-go/operator/clientset/versioned/typed/operator/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeOLMs implements OLMInterface
-type FakeOLMs struct {
+// fakeOLMs implements OLMInterface
+type fakeOLMs struct {
+ *gentype.FakeClientWithListAndApply[*v1.OLM, *v1.OLMList, *operatorv1.OLMApplyConfiguration]
Fake *FakeOperatorV1
}
-var olmsResource = v1.SchemeGroupVersion.WithResource("olms")
-
-var olmsKind = v1.SchemeGroupVersion.WithKind("OLM")
-
-// Get takes name of the oLM, and returns the corresponding oLM object, and an error if there is any.
-func (c *FakeOLMs) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.OLM, err error) {
- emptyResult := &v1.OLM{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(olmsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OLM), err
-}
-
-// List takes label and field selectors, and returns the list of OLMs that match those selectors.
-func (c *FakeOLMs) List(ctx context.Context, opts metav1.ListOptions) (result *v1.OLMList, err error) {
- emptyResult := &v1.OLMList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(olmsResource, olmsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.OLMList{ListMeta: obj.(*v1.OLMList).ListMeta}
- for _, item := range obj.(*v1.OLMList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested oLMs.
-func (c *FakeOLMs) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(olmsResource, opts))
-}
-
-// Create takes the representation of a oLM and creates it. Returns the server's representation of the oLM, and an error, if there is any.
-func (c *FakeOLMs) Create(ctx context.Context, oLM *v1.OLM, opts metav1.CreateOptions) (result *v1.OLM, err error) {
- emptyResult := &v1.OLM{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(olmsResource, oLM, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OLM), err
-}
-
-// Update takes the representation of a oLM and updates it. Returns the server's representation of the oLM, and an error, if there is any.
-func (c *FakeOLMs) Update(ctx context.Context, oLM *v1.OLM, opts metav1.UpdateOptions) (result *v1.OLM, err error) {
- emptyResult := &v1.OLM{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(olmsResource, oLM, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OLM), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeOLMs) UpdateStatus(ctx context.Context, oLM *v1.OLM, opts metav1.UpdateOptions) (result *v1.OLM, err error) {
- emptyResult := &v1.OLM{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(olmsResource, "status", oLM, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OLM), err
-}
-
-// Delete takes name of the oLM and deletes it. Returns an error if one occurs.
-func (c *FakeOLMs) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(olmsResource, name, opts), &v1.OLM{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeOLMs) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(olmsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.OLMList{})
- return err
-}
-
-// Patch applies the patch and returns the patched oLM.
-func (c *FakeOLMs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.OLM, err error) {
- emptyResult := &v1.OLM{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(olmsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OLM), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied oLM.
-func (c *FakeOLMs) Apply(ctx context.Context, oLM *operatorv1.OLMApplyConfiguration, opts metav1.ApplyOptions) (result *v1.OLM, err error) {
- if oLM == nil {
- return nil, fmt.Errorf("oLM provided to Apply must not be nil")
- }
- data, err := json.Marshal(oLM)
- if err != nil {
- return nil, err
- }
- name := oLM.Name
- if name == nil {
- return nil, fmt.Errorf("oLM.Name must be provided to Apply")
- }
- emptyResult := &v1.OLM{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(olmsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OLM), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeOLMs) ApplyStatus(ctx context.Context, oLM *operatorv1.OLMApplyConfiguration, opts metav1.ApplyOptions) (result *v1.OLM, err error) {
- if oLM == nil {
- return nil, fmt.Errorf("oLM provided to Apply must not be nil")
- }
- data, err := json.Marshal(oLM)
- if err != nil {
- return nil, err
- }
- name := oLM.Name
- if name == nil {
- return nil, fmt.Errorf("oLM.Name must be provided to Apply")
- }
- emptyResult := &v1.OLM{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(olmsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeOLMs(fake *FakeOperatorV1) typedoperatorv1.OLMInterface {
+ return &fakeOLMs{
+ gentype.NewFakeClientWithListAndApply[*v1.OLM, *v1.OLMList, *operatorv1.OLMApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("olms"),
+ v1.SchemeGroupVersion.WithKind("OLM"),
+ func() *v1.OLM { return &v1.OLM{} },
+ func() *v1.OLMList { return &v1.OLMList{} },
+ func(dst, src *v1.OLMList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.OLMList) []*v1.OLM { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.OLMList, items []*v1.OLM) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.OLM), err
}
diff --git a/operator/clientset/versioned/typed/operator/v1/fake/fake_openshiftapiserver.go b/operator/clientset/versioned/typed/operator/v1/fake/fake_openshiftapiserver.go
index 05bb1630e..a1183304a 100644
--- a/operator/clientset/versioned/typed/operator/v1/fake/fake_openshiftapiserver.go
+++ b/operator/clientset/versioned/typed/operator/v1/fake/fake_openshiftapiserver.go
@@ -3,168 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/operator/v1"
operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedoperatorv1 "github.com/openshift/client-go/operator/clientset/versioned/typed/operator/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeOpenShiftAPIServers implements OpenShiftAPIServerInterface
-type FakeOpenShiftAPIServers struct {
+// fakeOpenShiftAPIServers implements OpenShiftAPIServerInterface
+type fakeOpenShiftAPIServers struct {
+ *gentype.FakeClientWithListAndApply[*v1.OpenShiftAPIServer, *v1.OpenShiftAPIServerList, *operatorv1.OpenShiftAPIServerApplyConfiguration]
Fake *FakeOperatorV1
}
-var openshiftapiserversResource = v1.SchemeGroupVersion.WithResource("openshiftapiservers")
-
-var openshiftapiserversKind = v1.SchemeGroupVersion.WithKind("OpenShiftAPIServer")
-
-// Get takes name of the openShiftAPIServer, and returns the corresponding openShiftAPIServer object, and an error if there is any.
-func (c *FakeOpenShiftAPIServers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.OpenShiftAPIServer, err error) {
- emptyResult := &v1.OpenShiftAPIServer{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(openshiftapiserversResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OpenShiftAPIServer), err
-}
-
-// List takes label and field selectors, and returns the list of OpenShiftAPIServers that match those selectors.
-func (c *FakeOpenShiftAPIServers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.OpenShiftAPIServerList, err error) {
- emptyResult := &v1.OpenShiftAPIServerList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(openshiftapiserversResource, openshiftapiserversKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.OpenShiftAPIServerList{ListMeta: obj.(*v1.OpenShiftAPIServerList).ListMeta}
- for _, item := range obj.(*v1.OpenShiftAPIServerList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested openShiftAPIServers.
-func (c *FakeOpenShiftAPIServers) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(openshiftapiserversResource, opts))
-}
-
-// Create takes the representation of a openShiftAPIServer and creates it. Returns the server's representation of the openShiftAPIServer, and an error, if there is any.
-func (c *FakeOpenShiftAPIServers) Create(ctx context.Context, openShiftAPIServer *v1.OpenShiftAPIServer, opts metav1.CreateOptions) (result *v1.OpenShiftAPIServer, err error) {
- emptyResult := &v1.OpenShiftAPIServer{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(openshiftapiserversResource, openShiftAPIServer, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OpenShiftAPIServer), err
-}
-
-// Update takes the representation of a openShiftAPIServer and updates it. Returns the server's representation of the openShiftAPIServer, and an error, if there is any.
-func (c *FakeOpenShiftAPIServers) Update(ctx context.Context, openShiftAPIServer *v1.OpenShiftAPIServer, opts metav1.UpdateOptions) (result *v1.OpenShiftAPIServer, err error) {
- emptyResult := &v1.OpenShiftAPIServer{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(openshiftapiserversResource, openShiftAPIServer, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OpenShiftAPIServer), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeOpenShiftAPIServers) UpdateStatus(ctx context.Context, openShiftAPIServer *v1.OpenShiftAPIServer, opts metav1.UpdateOptions) (result *v1.OpenShiftAPIServer, err error) {
- emptyResult := &v1.OpenShiftAPIServer{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(openshiftapiserversResource, "status", openShiftAPIServer, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OpenShiftAPIServer), err
-}
-
-// Delete takes name of the openShiftAPIServer and deletes it. Returns an error if one occurs.
-func (c *FakeOpenShiftAPIServers) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(openshiftapiserversResource, name, opts), &v1.OpenShiftAPIServer{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeOpenShiftAPIServers) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(openshiftapiserversResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.OpenShiftAPIServerList{})
- return err
-}
-
-// Patch applies the patch and returns the patched openShiftAPIServer.
-func (c *FakeOpenShiftAPIServers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.OpenShiftAPIServer, err error) {
- emptyResult := &v1.OpenShiftAPIServer{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(openshiftapiserversResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OpenShiftAPIServer), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied openShiftAPIServer.
-func (c *FakeOpenShiftAPIServers) Apply(ctx context.Context, openShiftAPIServer *operatorv1.OpenShiftAPIServerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.OpenShiftAPIServer, err error) {
- if openShiftAPIServer == nil {
- return nil, fmt.Errorf("openShiftAPIServer provided to Apply must not be nil")
- }
- data, err := json.Marshal(openShiftAPIServer)
- if err != nil {
- return nil, err
- }
- name := openShiftAPIServer.Name
- if name == nil {
- return nil, fmt.Errorf("openShiftAPIServer.Name must be provided to Apply")
- }
- emptyResult := &v1.OpenShiftAPIServer{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(openshiftapiserversResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OpenShiftAPIServer), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeOpenShiftAPIServers) ApplyStatus(ctx context.Context, openShiftAPIServer *operatorv1.OpenShiftAPIServerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.OpenShiftAPIServer, err error) {
- if openShiftAPIServer == nil {
- return nil, fmt.Errorf("openShiftAPIServer provided to Apply must not be nil")
- }
- data, err := json.Marshal(openShiftAPIServer)
- if err != nil {
- return nil, err
- }
- name := openShiftAPIServer.Name
- if name == nil {
- return nil, fmt.Errorf("openShiftAPIServer.Name must be provided to Apply")
- }
- emptyResult := &v1.OpenShiftAPIServer{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(openshiftapiserversResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeOpenShiftAPIServers(fake *FakeOperatorV1) typedoperatorv1.OpenShiftAPIServerInterface {
+ return &fakeOpenShiftAPIServers{
+ gentype.NewFakeClientWithListAndApply[*v1.OpenShiftAPIServer, *v1.OpenShiftAPIServerList, *operatorv1.OpenShiftAPIServerApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("openshiftapiservers"),
+ v1.SchemeGroupVersion.WithKind("OpenShiftAPIServer"),
+ func() *v1.OpenShiftAPIServer { return &v1.OpenShiftAPIServer{} },
+ func() *v1.OpenShiftAPIServerList { return &v1.OpenShiftAPIServerList{} },
+ func(dst, src *v1.OpenShiftAPIServerList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.OpenShiftAPIServerList) []*v1.OpenShiftAPIServer {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1.OpenShiftAPIServerList, items []*v1.OpenShiftAPIServer) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.OpenShiftAPIServer), err
}
diff --git a/operator/clientset/versioned/typed/operator/v1/fake/fake_openshiftcontrollermanager.go b/operator/clientset/versioned/typed/operator/v1/fake/fake_openshiftcontrollermanager.go
index adfeb9a79..5ba51ae7a 100644
--- a/operator/clientset/versioned/typed/operator/v1/fake/fake_openshiftcontrollermanager.go
+++ b/operator/clientset/versioned/typed/operator/v1/fake/fake_openshiftcontrollermanager.go
@@ -3,168 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/operator/v1"
operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedoperatorv1 "github.com/openshift/client-go/operator/clientset/versioned/typed/operator/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeOpenShiftControllerManagers implements OpenShiftControllerManagerInterface
-type FakeOpenShiftControllerManagers struct {
+// fakeOpenShiftControllerManagers implements OpenShiftControllerManagerInterface
+type fakeOpenShiftControllerManagers struct {
+ *gentype.FakeClientWithListAndApply[*v1.OpenShiftControllerManager, *v1.OpenShiftControllerManagerList, *operatorv1.OpenShiftControllerManagerApplyConfiguration]
Fake *FakeOperatorV1
}
-var openshiftcontrollermanagersResource = v1.SchemeGroupVersion.WithResource("openshiftcontrollermanagers")
-
-var openshiftcontrollermanagersKind = v1.SchemeGroupVersion.WithKind("OpenShiftControllerManager")
-
-// Get takes name of the openShiftControllerManager, and returns the corresponding openShiftControllerManager object, and an error if there is any.
-func (c *FakeOpenShiftControllerManagers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.OpenShiftControllerManager, err error) {
- emptyResult := &v1.OpenShiftControllerManager{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(openshiftcontrollermanagersResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OpenShiftControllerManager), err
-}
-
-// List takes label and field selectors, and returns the list of OpenShiftControllerManagers that match those selectors.
-func (c *FakeOpenShiftControllerManagers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.OpenShiftControllerManagerList, err error) {
- emptyResult := &v1.OpenShiftControllerManagerList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(openshiftcontrollermanagersResource, openshiftcontrollermanagersKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.OpenShiftControllerManagerList{ListMeta: obj.(*v1.OpenShiftControllerManagerList).ListMeta}
- for _, item := range obj.(*v1.OpenShiftControllerManagerList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested openShiftControllerManagers.
-func (c *FakeOpenShiftControllerManagers) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(openshiftcontrollermanagersResource, opts))
-}
-
-// Create takes the representation of a openShiftControllerManager and creates it. Returns the server's representation of the openShiftControllerManager, and an error, if there is any.
-func (c *FakeOpenShiftControllerManagers) Create(ctx context.Context, openShiftControllerManager *v1.OpenShiftControllerManager, opts metav1.CreateOptions) (result *v1.OpenShiftControllerManager, err error) {
- emptyResult := &v1.OpenShiftControllerManager{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(openshiftcontrollermanagersResource, openShiftControllerManager, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OpenShiftControllerManager), err
-}
-
-// Update takes the representation of a openShiftControllerManager and updates it. Returns the server's representation of the openShiftControllerManager, and an error, if there is any.
-func (c *FakeOpenShiftControllerManagers) Update(ctx context.Context, openShiftControllerManager *v1.OpenShiftControllerManager, opts metav1.UpdateOptions) (result *v1.OpenShiftControllerManager, err error) {
- emptyResult := &v1.OpenShiftControllerManager{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(openshiftcontrollermanagersResource, openShiftControllerManager, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OpenShiftControllerManager), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeOpenShiftControllerManagers) UpdateStatus(ctx context.Context, openShiftControllerManager *v1.OpenShiftControllerManager, opts metav1.UpdateOptions) (result *v1.OpenShiftControllerManager, err error) {
- emptyResult := &v1.OpenShiftControllerManager{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(openshiftcontrollermanagersResource, "status", openShiftControllerManager, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OpenShiftControllerManager), err
-}
-
-// Delete takes name of the openShiftControllerManager and deletes it. Returns an error if one occurs.
-func (c *FakeOpenShiftControllerManagers) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(openshiftcontrollermanagersResource, name, opts), &v1.OpenShiftControllerManager{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeOpenShiftControllerManagers) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(openshiftcontrollermanagersResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.OpenShiftControllerManagerList{})
- return err
-}
-
-// Patch applies the patch and returns the patched openShiftControllerManager.
-func (c *FakeOpenShiftControllerManagers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.OpenShiftControllerManager, err error) {
- emptyResult := &v1.OpenShiftControllerManager{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(openshiftcontrollermanagersResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OpenShiftControllerManager), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied openShiftControllerManager.
-func (c *FakeOpenShiftControllerManagers) Apply(ctx context.Context, openShiftControllerManager *operatorv1.OpenShiftControllerManagerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.OpenShiftControllerManager, err error) {
- if openShiftControllerManager == nil {
- return nil, fmt.Errorf("openShiftControllerManager provided to Apply must not be nil")
- }
- data, err := json.Marshal(openShiftControllerManager)
- if err != nil {
- return nil, err
- }
- name := openShiftControllerManager.Name
- if name == nil {
- return nil, fmt.Errorf("openShiftControllerManager.Name must be provided to Apply")
- }
- emptyResult := &v1.OpenShiftControllerManager{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(openshiftcontrollermanagersResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.OpenShiftControllerManager), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeOpenShiftControllerManagers) ApplyStatus(ctx context.Context, openShiftControllerManager *operatorv1.OpenShiftControllerManagerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.OpenShiftControllerManager, err error) {
- if openShiftControllerManager == nil {
- return nil, fmt.Errorf("openShiftControllerManager provided to Apply must not be nil")
- }
- data, err := json.Marshal(openShiftControllerManager)
- if err != nil {
- return nil, err
- }
- name := openShiftControllerManager.Name
- if name == nil {
- return nil, fmt.Errorf("openShiftControllerManager.Name must be provided to Apply")
- }
- emptyResult := &v1.OpenShiftControllerManager{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(openshiftcontrollermanagersResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeOpenShiftControllerManagers(fake *FakeOperatorV1) typedoperatorv1.OpenShiftControllerManagerInterface {
+ return &fakeOpenShiftControllerManagers{
+ gentype.NewFakeClientWithListAndApply[*v1.OpenShiftControllerManager, *v1.OpenShiftControllerManagerList, *operatorv1.OpenShiftControllerManagerApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("openshiftcontrollermanagers"),
+ v1.SchemeGroupVersion.WithKind("OpenShiftControllerManager"),
+ func() *v1.OpenShiftControllerManager { return &v1.OpenShiftControllerManager{} },
+ func() *v1.OpenShiftControllerManagerList { return &v1.OpenShiftControllerManagerList{} },
+ func(dst, src *v1.OpenShiftControllerManagerList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.OpenShiftControllerManagerList) []*v1.OpenShiftControllerManager {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1.OpenShiftControllerManagerList, items []*v1.OpenShiftControllerManager) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.OpenShiftControllerManager), err
}
diff --git a/operator/clientset/versioned/typed/operator/v1/fake/fake_operator_client.go b/operator/clientset/versioned/typed/operator/v1/fake/fake_operator_client.go
index c85265610..ef8bbec66 100644
--- a/operator/clientset/versioned/typed/operator/v1/fake/fake_operator_client.go
+++ b/operator/clientset/versioned/typed/operator/v1/fake/fake_operator_client.go
@@ -13,95 +13,95 @@ type FakeOperatorV1 struct {
}
func (c *FakeOperatorV1) Authentications() v1.AuthenticationInterface {
- return &FakeAuthentications{c}
+ return newFakeAuthentications(c)
}
func (c *FakeOperatorV1) CSISnapshotControllers() v1.CSISnapshotControllerInterface {
- return &FakeCSISnapshotControllers{c}
+ return newFakeCSISnapshotControllers(c)
}
func (c *FakeOperatorV1) CloudCredentials() v1.CloudCredentialInterface {
- return &FakeCloudCredentials{c}
+ return newFakeCloudCredentials(c)
}
func (c *FakeOperatorV1) ClusterCSIDrivers() v1.ClusterCSIDriverInterface {
- return &FakeClusterCSIDrivers{c}
+ return newFakeClusterCSIDrivers(c)
}
func (c *FakeOperatorV1) Configs() v1.ConfigInterface {
- return &FakeConfigs{c}
+ return newFakeConfigs(c)
}
func (c *FakeOperatorV1) Consoles() v1.ConsoleInterface {
- return &FakeConsoles{c}
+ return newFakeConsoles(c)
}
func (c *FakeOperatorV1) DNSes() v1.DNSInterface {
- return &FakeDNSes{c}
+ return newFakeDNSes(c)
}
func (c *FakeOperatorV1) Etcds() v1.EtcdInterface {
- return &FakeEtcds{c}
+ return newFakeEtcds(c)
}
func (c *FakeOperatorV1) IngressControllers(namespace string) v1.IngressControllerInterface {
- return &FakeIngressControllers{c, namespace}
+ return newFakeIngressControllers(c, namespace)
}
func (c *FakeOperatorV1) InsightsOperators() v1.InsightsOperatorInterface {
- return &FakeInsightsOperators{c}
+ return newFakeInsightsOperators(c)
}
func (c *FakeOperatorV1) KubeAPIServers() v1.KubeAPIServerInterface {
- return &FakeKubeAPIServers{c}
+ return newFakeKubeAPIServers(c)
}
func (c *FakeOperatorV1) KubeControllerManagers() v1.KubeControllerManagerInterface {
- return &FakeKubeControllerManagers{c}
+ return newFakeKubeControllerManagers(c)
}
func (c *FakeOperatorV1) KubeSchedulers() v1.KubeSchedulerInterface {
- return &FakeKubeSchedulers{c}
+ return newFakeKubeSchedulers(c)
}
func (c *FakeOperatorV1) KubeStorageVersionMigrators() v1.KubeStorageVersionMigratorInterface {
- return &FakeKubeStorageVersionMigrators{c}
+ return newFakeKubeStorageVersionMigrators(c)
}
func (c *FakeOperatorV1) MachineConfigurations() v1.MachineConfigurationInterface {
- return &FakeMachineConfigurations{c}
+ return newFakeMachineConfigurations(c)
}
func (c *FakeOperatorV1) Networks() v1.NetworkInterface {
- return &FakeNetworks{c}
+ return newFakeNetworks(c)
}
func (c *FakeOperatorV1) OLMs() v1.OLMInterface {
- return &FakeOLMs{c}
+ return newFakeOLMs(c)
}
func (c *FakeOperatorV1) OpenShiftAPIServers() v1.OpenShiftAPIServerInterface {
- return &FakeOpenShiftAPIServers{c}
+ return newFakeOpenShiftAPIServers(c)
}
func (c *FakeOperatorV1) OpenShiftControllerManagers() v1.OpenShiftControllerManagerInterface {
- return &FakeOpenShiftControllerManagers{c}
+ return newFakeOpenShiftControllerManagers(c)
}
func (c *FakeOperatorV1) ServiceCAs() v1.ServiceCAInterface {
- return &FakeServiceCAs{c}
+ return newFakeServiceCAs(c)
}
func (c *FakeOperatorV1) ServiceCatalogAPIServers() v1.ServiceCatalogAPIServerInterface {
- return &FakeServiceCatalogAPIServers{c}
+ return newFakeServiceCatalogAPIServers(c)
}
func (c *FakeOperatorV1) ServiceCatalogControllerManagers() v1.ServiceCatalogControllerManagerInterface {
- return &FakeServiceCatalogControllerManagers{c}
+ return newFakeServiceCatalogControllerManagers(c)
}
func (c *FakeOperatorV1) Storages() v1.StorageInterface {
- return &FakeStorages{c}
+ return newFakeStorages(c)
}
// RESTClient returns a RESTClient that is used to communicate
diff --git a/operator/clientset/versioned/typed/operator/v1/fake/fake_serviceca.go b/operator/clientset/versioned/typed/operator/v1/fake/fake_serviceca.go
index 8755229da..649158b6e 100644
--- a/operator/clientset/versioned/typed/operator/v1/fake/fake_serviceca.go
+++ b/operator/clientset/versioned/typed/operator/v1/fake/fake_serviceca.go
@@ -3,168 +3,31 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/operator/v1"
operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedoperatorv1 "github.com/openshift/client-go/operator/clientset/versioned/typed/operator/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeServiceCAs implements ServiceCAInterface
-type FakeServiceCAs struct {
+// fakeServiceCAs implements ServiceCAInterface
+type fakeServiceCAs struct {
+ *gentype.FakeClientWithListAndApply[*v1.ServiceCA, *v1.ServiceCAList, *operatorv1.ServiceCAApplyConfiguration]
Fake *FakeOperatorV1
}
-var servicecasResource = v1.SchemeGroupVersion.WithResource("servicecas")
-
-var servicecasKind = v1.SchemeGroupVersion.WithKind("ServiceCA")
-
-// Get takes name of the serviceCA, and returns the corresponding serviceCA object, and an error if there is any.
-func (c *FakeServiceCAs) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ServiceCA, err error) {
- emptyResult := &v1.ServiceCA{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(servicecasResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ServiceCA), err
-}
-
-// List takes label and field selectors, and returns the list of ServiceCAs that match those selectors.
-func (c *FakeServiceCAs) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ServiceCAList, err error) {
- emptyResult := &v1.ServiceCAList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(servicecasResource, servicecasKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.ServiceCAList{ListMeta: obj.(*v1.ServiceCAList).ListMeta}
- for _, item := range obj.(*v1.ServiceCAList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested serviceCAs.
-func (c *FakeServiceCAs) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(servicecasResource, opts))
-}
-
-// Create takes the representation of a serviceCA and creates it. Returns the server's representation of the serviceCA, and an error, if there is any.
-func (c *FakeServiceCAs) Create(ctx context.Context, serviceCA *v1.ServiceCA, opts metav1.CreateOptions) (result *v1.ServiceCA, err error) {
- emptyResult := &v1.ServiceCA{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(servicecasResource, serviceCA, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ServiceCA), err
-}
-
-// Update takes the representation of a serviceCA and updates it. Returns the server's representation of the serviceCA, and an error, if there is any.
-func (c *FakeServiceCAs) Update(ctx context.Context, serviceCA *v1.ServiceCA, opts metav1.UpdateOptions) (result *v1.ServiceCA, err error) {
- emptyResult := &v1.ServiceCA{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(servicecasResource, serviceCA, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ServiceCA), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeServiceCAs) UpdateStatus(ctx context.Context, serviceCA *v1.ServiceCA, opts metav1.UpdateOptions) (result *v1.ServiceCA, err error) {
- emptyResult := &v1.ServiceCA{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(servicecasResource, "status", serviceCA, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ServiceCA), err
-}
-
-// Delete takes name of the serviceCA and deletes it. Returns an error if one occurs.
-func (c *FakeServiceCAs) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(servicecasResource, name, opts), &v1.ServiceCA{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeServiceCAs) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(servicecasResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.ServiceCAList{})
- return err
-}
-
-// Patch applies the patch and returns the patched serviceCA.
-func (c *FakeServiceCAs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ServiceCA, err error) {
- emptyResult := &v1.ServiceCA{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(servicecasResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ServiceCA), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied serviceCA.
-func (c *FakeServiceCAs) Apply(ctx context.Context, serviceCA *operatorv1.ServiceCAApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ServiceCA, err error) {
- if serviceCA == nil {
- return nil, fmt.Errorf("serviceCA provided to Apply must not be nil")
- }
- data, err := json.Marshal(serviceCA)
- if err != nil {
- return nil, err
- }
- name := serviceCA.Name
- if name == nil {
- return nil, fmt.Errorf("serviceCA.Name must be provided to Apply")
- }
- emptyResult := &v1.ServiceCA{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(servicecasResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ServiceCA), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeServiceCAs) ApplyStatus(ctx context.Context, serviceCA *operatorv1.ServiceCAApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ServiceCA, err error) {
- if serviceCA == nil {
- return nil, fmt.Errorf("serviceCA provided to Apply must not be nil")
- }
- data, err := json.Marshal(serviceCA)
- if err != nil {
- return nil, err
- }
- name := serviceCA.Name
- if name == nil {
- return nil, fmt.Errorf("serviceCA.Name must be provided to Apply")
- }
- emptyResult := &v1.ServiceCA{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(servicecasResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeServiceCAs(fake *FakeOperatorV1) typedoperatorv1.ServiceCAInterface {
+ return &fakeServiceCAs{
+ gentype.NewFakeClientWithListAndApply[*v1.ServiceCA, *v1.ServiceCAList, *operatorv1.ServiceCAApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("servicecas"),
+ v1.SchemeGroupVersion.WithKind("ServiceCA"),
+ func() *v1.ServiceCA { return &v1.ServiceCA{} },
+ func() *v1.ServiceCAList { return &v1.ServiceCAList{} },
+ func(dst, src *v1.ServiceCAList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.ServiceCAList) []*v1.ServiceCA { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.ServiceCAList, items []*v1.ServiceCA) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.ServiceCA), err
}
diff --git a/operator/clientset/versioned/typed/operator/v1/fake/fake_servicecatalogapiserver.go b/operator/clientset/versioned/typed/operator/v1/fake/fake_servicecatalogapiserver.go
index 98344e868..992c32a8a 100644
--- a/operator/clientset/versioned/typed/operator/v1/fake/fake_servicecatalogapiserver.go
+++ b/operator/clientset/versioned/typed/operator/v1/fake/fake_servicecatalogapiserver.go
@@ -3,168 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/operator/v1"
operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedoperatorv1 "github.com/openshift/client-go/operator/clientset/versioned/typed/operator/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeServiceCatalogAPIServers implements ServiceCatalogAPIServerInterface
-type FakeServiceCatalogAPIServers struct {
+// fakeServiceCatalogAPIServers implements ServiceCatalogAPIServerInterface
+type fakeServiceCatalogAPIServers struct {
+ *gentype.FakeClientWithListAndApply[*v1.ServiceCatalogAPIServer, *v1.ServiceCatalogAPIServerList, *operatorv1.ServiceCatalogAPIServerApplyConfiguration]
Fake *FakeOperatorV1
}
-var servicecatalogapiserversResource = v1.SchemeGroupVersion.WithResource("servicecatalogapiservers")
-
-var servicecatalogapiserversKind = v1.SchemeGroupVersion.WithKind("ServiceCatalogAPIServer")
-
-// Get takes name of the serviceCatalogAPIServer, and returns the corresponding serviceCatalogAPIServer object, and an error if there is any.
-func (c *FakeServiceCatalogAPIServers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ServiceCatalogAPIServer, err error) {
- emptyResult := &v1.ServiceCatalogAPIServer{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(servicecatalogapiserversResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ServiceCatalogAPIServer), err
-}
-
-// List takes label and field selectors, and returns the list of ServiceCatalogAPIServers that match those selectors.
-func (c *FakeServiceCatalogAPIServers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ServiceCatalogAPIServerList, err error) {
- emptyResult := &v1.ServiceCatalogAPIServerList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(servicecatalogapiserversResource, servicecatalogapiserversKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.ServiceCatalogAPIServerList{ListMeta: obj.(*v1.ServiceCatalogAPIServerList).ListMeta}
- for _, item := range obj.(*v1.ServiceCatalogAPIServerList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested serviceCatalogAPIServers.
-func (c *FakeServiceCatalogAPIServers) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(servicecatalogapiserversResource, opts))
-}
-
-// Create takes the representation of a serviceCatalogAPIServer and creates it. Returns the server's representation of the serviceCatalogAPIServer, and an error, if there is any.
-func (c *FakeServiceCatalogAPIServers) Create(ctx context.Context, serviceCatalogAPIServer *v1.ServiceCatalogAPIServer, opts metav1.CreateOptions) (result *v1.ServiceCatalogAPIServer, err error) {
- emptyResult := &v1.ServiceCatalogAPIServer{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(servicecatalogapiserversResource, serviceCatalogAPIServer, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ServiceCatalogAPIServer), err
-}
-
-// Update takes the representation of a serviceCatalogAPIServer and updates it. Returns the server's representation of the serviceCatalogAPIServer, and an error, if there is any.
-func (c *FakeServiceCatalogAPIServers) Update(ctx context.Context, serviceCatalogAPIServer *v1.ServiceCatalogAPIServer, opts metav1.UpdateOptions) (result *v1.ServiceCatalogAPIServer, err error) {
- emptyResult := &v1.ServiceCatalogAPIServer{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(servicecatalogapiserversResource, serviceCatalogAPIServer, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ServiceCatalogAPIServer), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeServiceCatalogAPIServers) UpdateStatus(ctx context.Context, serviceCatalogAPIServer *v1.ServiceCatalogAPIServer, opts metav1.UpdateOptions) (result *v1.ServiceCatalogAPIServer, err error) {
- emptyResult := &v1.ServiceCatalogAPIServer{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(servicecatalogapiserversResource, "status", serviceCatalogAPIServer, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ServiceCatalogAPIServer), err
-}
-
-// Delete takes name of the serviceCatalogAPIServer and deletes it. Returns an error if one occurs.
-func (c *FakeServiceCatalogAPIServers) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(servicecatalogapiserversResource, name, opts), &v1.ServiceCatalogAPIServer{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeServiceCatalogAPIServers) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(servicecatalogapiserversResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.ServiceCatalogAPIServerList{})
- return err
-}
-
-// Patch applies the patch and returns the patched serviceCatalogAPIServer.
-func (c *FakeServiceCatalogAPIServers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ServiceCatalogAPIServer, err error) {
- emptyResult := &v1.ServiceCatalogAPIServer{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(servicecatalogapiserversResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ServiceCatalogAPIServer), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied serviceCatalogAPIServer.
-func (c *FakeServiceCatalogAPIServers) Apply(ctx context.Context, serviceCatalogAPIServer *operatorv1.ServiceCatalogAPIServerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ServiceCatalogAPIServer, err error) {
- if serviceCatalogAPIServer == nil {
- return nil, fmt.Errorf("serviceCatalogAPIServer provided to Apply must not be nil")
- }
- data, err := json.Marshal(serviceCatalogAPIServer)
- if err != nil {
- return nil, err
- }
- name := serviceCatalogAPIServer.Name
- if name == nil {
- return nil, fmt.Errorf("serviceCatalogAPIServer.Name must be provided to Apply")
- }
- emptyResult := &v1.ServiceCatalogAPIServer{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(servicecatalogapiserversResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ServiceCatalogAPIServer), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeServiceCatalogAPIServers) ApplyStatus(ctx context.Context, serviceCatalogAPIServer *operatorv1.ServiceCatalogAPIServerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ServiceCatalogAPIServer, err error) {
- if serviceCatalogAPIServer == nil {
- return nil, fmt.Errorf("serviceCatalogAPIServer provided to Apply must not be nil")
- }
- data, err := json.Marshal(serviceCatalogAPIServer)
- if err != nil {
- return nil, err
- }
- name := serviceCatalogAPIServer.Name
- if name == nil {
- return nil, fmt.Errorf("serviceCatalogAPIServer.Name must be provided to Apply")
- }
- emptyResult := &v1.ServiceCatalogAPIServer{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(servicecatalogapiserversResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeServiceCatalogAPIServers(fake *FakeOperatorV1) typedoperatorv1.ServiceCatalogAPIServerInterface {
+ return &fakeServiceCatalogAPIServers{
+ gentype.NewFakeClientWithListAndApply[*v1.ServiceCatalogAPIServer, *v1.ServiceCatalogAPIServerList, *operatorv1.ServiceCatalogAPIServerApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("servicecatalogapiservers"),
+ v1.SchemeGroupVersion.WithKind("ServiceCatalogAPIServer"),
+ func() *v1.ServiceCatalogAPIServer { return &v1.ServiceCatalogAPIServer{} },
+ func() *v1.ServiceCatalogAPIServerList { return &v1.ServiceCatalogAPIServerList{} },
+ func(dst, src *v1.ServiceCatalogAPIServerList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.ServiceCatalogAPIServerList) []*v1.ServiceCatalogAPIServer {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1.ServiceCatalogAPIServerList, items []*v1.ServiceCatalogAPIServer) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.ServiceCatalogAPIServer), err
}
diff --git a/operator/clientset/versioned/typed/operator/v1/fake/fake_servicecatalogcontrollermanager.go b/operator/clientset/versioned/typed/operator/v1/fake/fake_servicecatalogcontrollermanager.go
index e31df3689..4be4be0cf 100644
--- a/operator/clientset/versioned/typed/operator/v1/fake/fake_servicecatalogcontrollermanager.go
+++ b/operator/clientset/versioned/typed/operator/v1/fake/fake_servicecatalogcontrollermanager.go
@@ -3,168 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/operator/v1"
operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedoperatorv1 "github.com/openshift/client-go/operator/clientset/versioned/typed/operator/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeServiceCatalogControllerManagers implements ServiceCatalogControllerManagerInterface
-type FakeServiceCatalogControllerManagers struct {
+// fakeServiceCatalogControllerManagers implements ServiceCatalogControllerManagerInterface
+type fakeServiceCatalogControllerManagers struct {
+ *gentype.FakeClientWithListAndApply[*v1.ServiceCatalogControllerManager, *v1.ServiceCatalogControllerManagerList, *operatorv1.ServiceCatalogControllerManagerApplyConfiguration]
Fake *FakeOperatorV1
}
-var servicecatalogcontrollermanagersResource = v1.SchemeGroupVersion.WithResource("servicecatalogcontrollermanagers")
-
-var servicecatalogcontrollermanagersKind = v1.SchemeGroupVersion.WithKind("ServiceCatalogControllerManager")
-
-// Get takes name of the serviceCatalogControllerManager, and returns the corresponding serviceCatalogControllerManager object, and an error if there is any.
-func (c *FakeServiceCatalogControllerManagers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ServiceCatalogControllerManager, err error) {
- emptyResult := &v1.ServiceCatalogControllerManager{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(servicecatalogcontrollermanagersResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ServiceCatalogControllerManager), err
-}
-
-// List takes label and field selectors, and returns the list of ServiceCatalogControllerManagers that match those selectors.
-func (c *FakeServiceCatalogControllerManagers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ServiceCatalogControllerManagerList, err error) {
- emptyResult := &v1.ServiceCatalogControllerManagerList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(servicecatalogcontrollermanagersResource, servicecatalogcontrollermanagersKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.ServiceCatalogControllerManagerList{ListMeta: obj.(*v1.ServiceCatalogControllerManagerList).ListMeta}
- for _, item := range obj.(*v1.ServiceCatalogControllerManagerList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested serviceCatalogControllerManagers.
-func (c *FakeServiceCatalogControllerManagers) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(servicecatalogcontrollermanagersResource, opts))
-}
-
-// Create takes the representation of a serviceCatalogControllerManager and creates it. Returns the server's representation of the serviceCatalogControllerManager, and an error, if there is any.
-func (c *FakeServiceCatalogControllerManagers) Create(ctx context.Context, serviceCatalogControllerManager *v1.ServiceCatalogControllerManager, opts metav1.CreateOptions) (result *v1.ServiceCatalogControllerManager, err error) {
- emptyResult := &v1.ServiceCatalogControllerManager{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(servicecatalogcontrollermanagersResource, serviceCatalogControllerManager, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ServiceCatalogControllerManager), err
-}
-
-// Update takes the representation of a serviceCatalogControllerManager and updates it. Returns the server's representation of the serviceCatalogControllerManager, and an error, if there is any.
-func (c *FakeServiceCatalogControllerManagers) Update(ctx context.Context, serviceCatalogControllerManager *v1.ServiceCatalogControllerManager, opts metav1.UpdateOptions) (result *v1.ServiceCatalogControllerManager, err error) {
- emptyResult := &v1.ServiceCatalogControllerManager{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(servicecatalogcontrollermanagersResource, serviceCatalogControllerManager, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ServiceCatalogControllerManager), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeServiceCatalogControllerManagers) UpdateStatus(ctx context.Context, serviceCatalogControllerManager *v1.ServiceCatalogControllerManager, opts metav1.UpdateOptions) (result *v1.ServiceCatalogControllerManager, err error) {
- emptyResult := &v1.ServiceCatalogControllerManager{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(servicecatalogcontrollermanagersResource, "status", serviceCatalogControllerManager, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ServiceCatalogControllerManager), err
-}
-
-// Delete takes name of the serviceCatalogControllerManager and deletes it. Returns an error if one occurs.
-func (c *FakeServiceCatalogControllerManagers) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(servicecatalogcontrollermanagersResource, name, opts), &v1.ServiceCatalogControllerManager{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeServiceCatalogControllerManagers) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(servicecatalogcontrollermanagersResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.ServiceCatalogControllerManagerList{})
- return err
-}
-
-// Patch applies the patch and returns the patched serviceCatalogControllerManager.
-func (c *FakeServiceCatalogControllerManagers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ServiceCatalogControllerManager, err error) {
- emptyResult := &v1.ServiceCatalogControllerManager{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(servicecatalogcontrollermanagersResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ServiceCatalogControllerManager), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied serviceCatalogControllerManager.
-func (c *FakeServiceCatalogControllerManagers) Apply(ctx context.Context, serviceCatalogControllerManager *operatorv1.ServiceCatalogControllerManagerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ServiceCatalogControllerManager, err error) {
- if serviceCatalogControllerManager == nil {
- return nil, fmt.Errorf("serviceCatalogControllerManager provided to Apply must not be nil")
- }
- data, err := json.Marshal(serviceCatalogControllerManager)
- if err != nil {
- return nil, err
- }
- name := serviceCatalogControllerManager.Name
- if name == nil {
- return nil, fmt.Errorf("serviceCatalogControllerManager.Name must be provided to Apply")
- }
- emptyResult := &v1.ServiceCatalogControllerManager{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(servicecatalogcontrollermanagersResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ServiceCatalogControllerManager), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeServiceCatalogControllerManagers) ApplyStatus(ctx context.Context, serviceCatalogControllerManager *operatorv1.ServiceCatalogControllerManagerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ServiceCatalogControllerManager, err error) {
- if serviceCatalogControllerManager == nil {
- return nil, fmt.Errorf("serviceCatalogControllerManager provided to Apply must not be nil")
- }
- data, err := json.Marshal(serviceCatalogControllerManager)
- if err != nil {
- return nil, err
- }
- name := serviceCatalogControllerManager.Name
- if name == nil {
- return nil, fmt.Errorf("serviceCatalogControllerManager.Name must be provided to Apply")
- }
- emptyResult := &v1.ServiceCatalogControllerManager{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(servicecatalogcontrollermanagersResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeServiceCatalogControllerManagers(fake *FakeOperatorV1) typedoperatorv1.ServiceCatalogControllerManagerInterface {
+ return &fakeServiceCatalogControllerManagers{
+ gentype.NewFakeClientWithListAndApply[*v1.ServiceCatalogControllerManager, *v1.ServiceCatalogControllerManagerList, *operatorv1.ServiceCatalogControllerManagerApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("servicecatalogcontrollermanagers"),
+ v1.SchemeGroupVersion.WithKind("ServiceCatalogControllerManager"),
+ func() *v1.ServiceCatalogControllerManager { return &v1.ServiceCatalogControllerManager{} },
+ func() *v1.ServiceCatalogControllerManagerList { return &v1.ServiceCatalogControllerManagerList{} },
+ func(dst, src *v1.ServiceCatalogControllerManagerList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.ServiceCatalogControllerManagerList) []*v1.ServiceCatalogControllerManager {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1.ServiceCatalogControllerManagerList, items []*v1.ServiceCatalogControllerManager) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.ServiceCatalogControllerManager), err
}
diff --git a/operator/clientset/versioned/typed/operator/v1/fake/fake_storage.go b/operator/clientset/versioned/typed/operator/v1/fake/fake_storage.go
index 6c121fa7c..def97086f 100644
--- a/operator/clientset/versioned/typed/operator/v1/fake/fake_storage.go
+++ b/operator/clientset/versioned/typed/operator/v1/fake/fake_storage.go
@@ -3,168 +3,31 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/operator/v1"
operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedoperatorv1 "github.com/openshift/client-go/operator/clientset/versioned/typed/operator/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeStorages implements StorageInterface
-type FakeStorages struct {
+// fakeStorages implements StorageInterface
+type fakeStorages struct {
+ *gentype.FakeClientWithListAndApply[*v1.Storage, *v1.StorageList, *operatorv1.StorageApplyConfiguration]
Fake *FakeOperatorV1
}
-var storagesResource = v1.SchemeGroupVersion.WithResource("storages")
-
-var storagesKind = v1.SchemeGroupVersion.WithKind("Storage")
-
-// Get takes name of the storage, and returns the corresponding storage object, and an error if there is any.
-func (c *FakeStorages) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Storage, err error) {
- emptyResult := &v1.Storage{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(storagesResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Storage), err
-}
-
-// List takes label and field selectors, and returns the list of Storages that match those selectors.
-func (c *FakeStorages) List(ctx context.Context, opts metav1.ListOptions) (result *v1.StorageList, err error) {
- emptyResult := &v1.StorageList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(storagesResource, storagesKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.StorageList{ListMeta: obj.(*v1.StorageList).ListMeta}
- for _, item := range obj.(*v1.StorageList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested storages.
-func (c *FakeStorages) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(storagesResource, opts))
-}
-
-// Create takes the representation of a storage and creates it. Returns the server's representation of the storage, and an error, if there is any.
-func (c *FakeStorages) Create(ctx context.Context, storage *v1.Storage, opts metav1.CreateOptions) (result *v1.Storage, err error) {
- emptyResult := &v1.Storage{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(storagesResource, storage, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Storage), err
-}
-
-// Update takes the representation of a storage and updates it. Returns the server's representation of the storage, and an error, if there is any.
-func (c *FakeStorages) Update(ctx context.Context, storage *v1.Storage, opts metav1.UpdateOptions) (result *v1.Storage, err error) {
- emptyResult := &v1.Storage{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(storagesResource, storage, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Storage), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeStorages) UpdateStatus(ctx context.Context, storage *v1.Storage, opts metav1.UpdateOptions) (result *v1.Storage, err error) {
- emptyResult := &v1.Storage{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(storagesResource, "status", storage, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Storage), err
-}
-
-// Delete takes name of the storage and deletes it. Returns an error if one occurs.
-func (c *FakeStorages) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(storagesResource, name, opts), &v1.Storage{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeStorages) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(storagesResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.StorageList{})
- return err
-}
-
-// Patch applies the patch and returns the patched storage.
-func (c *FakeStorages) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Storage, err error) {
- emptyResult := &v1.Storage{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(storagesResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Storage), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied storage.
-func (c *FakeStorages) Apply(ctx context.Context, storage *operatorv1.StorageApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Storage, err error) {
- if storage == nil {
- return nil, fmt.Errorf("storage provided to Apply must not be nil")
- }
- data, err := json.Marshal(storage)
- if err != nil {
- return nil, err
- }
- name := storage.Name
- if name == nil {
- return nil, fmt.Errorf("storage.Name must be provided to Apply")
- }
- emptyResult := &v1.Storage{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(storagesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Storage), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeStorages) ApplyStatus(ctx context.Context, storage *operatorv1.StorageApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Storage, err error) {
- if storage == nil {
- return nil, fmt.Errorf("storage provided to Apply must not be nil")
- }
- data, err := json.Marshal(storage)
- if err != nil {
- return nil, err
- }
- name := storage.Name
- if name == nil {
- return nil, fmt.Errorf("storage.Name must be provided to Apply")
- }
- emptyResult := &v1.Storage{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(storagesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeStorages(fake *FakeOperatorV1) typedoperatorv1.StorageInterface {
+ return &fakeStorages{
+ gentype.NewFakeClientWithListAndApply[*v1.Storage, *v1.StorageList, *operatorv1.StorageApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("storages"),
+ v1.SchemeGroupVersion.WithKind("Storage"),
+ func() *v1.Storage { return &v1.Storage{} },
+ func() *v1.StorageList { return &v1.StorageList{} },
+ func(dst, src *v1.StorageList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.StorageList) []*v1.Storage { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.StorageList, items []*v1.Storage) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.Storage), err
}
diff --git a/operator/clientset/versioned/typed/operator/v1/ingresscontroller.go b/operator/clientset/versioned/typed/operator/v1/ingresscontroller.go
index 632b307a7..601562e1e 100644
--- a/operator/clientset/versioned/typed/operator/v1/ingresscontroller.go
+++ b/operator/clientset/versioned/typed/operator/v1/ingresscontroller.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/operator/v1"
- operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ applyconfigurationsoperatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
scheme "github.com/openshift/client-go/operator/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type IngressControllersGetter interface {
// IngressControllerInterface has methods to work with IngressController resources.
type IngressControllerInterface interface {
- Create(ctx context.Context, ingressController *v1.IngressController, opts metav1.CreateOptions) (*v1.IngressController, error)
- Update(ctx context.Context, ingressController *v1.IngressController, opts metav1.UpdateOptions) (*v1.IngressController, error)
+ Create(ctx context.Context, ingressController *operatorv1.IngressController, opts metav1.CreateOptions) (*operatorv1.IngressController, error)
+ Update(ctx context.Context, ingressController *operatorv1.IngressController, opts metav1.UpdateOptions) (*operatorv1.IngressController, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, ingressController *v1.IngressController, opts metav1.UpdateOptions) (*v1.IngressController, error)
+ UpdateStatus(ctx context.Context, ingressController *operatorv1.IngressController, opts metav1.UpdateOptions) (*operatorv1.IngressController, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.IngressController, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.IngressControllerList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*operatorv1.IngressController, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*operatorv1.IngressControllerList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.IngressController, err error)
- Apply(ctx context.Context, ingressController *operatorv1.IngressControllerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.IngressController, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *operatorv1.IngressController, err error)
+ Apply(ctx context.Context, ingressController *applyconfigurationsoperatorv1.IngressControllerApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.IngressController, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, ingressController *operatorv1.IngressControllerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.IngressController, err error)
+ ApplyStatus(ctx context.Context, ingressController *applyconfigurationsoperatorv1.IngressControllerApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.IngressController, err error)
IngressControllerExpansion
}
// ingressControllers implements IngressControllerInterface
type ingressControllers struct {
- *gentype.ClientWithListAndApply[*v1.IngressController, *v1.IngressControllerList, *operatorv1.IngressControllerApplyConfiguration]
+ *gentype.ClientWithListAndApply[*operatorv1.IngressController, *operatorv1.IngressControllerList, *applyconfigurationsoperatorv1.IngressControllerApplyConfiguration]
}
// newIngressControllers returns a IngressControllers
func newIngressControllers(c *OperatorV1Client, namespace string) *ingressControllers {
return &ingressControllers{
- gentype.NewClientWithListAndApply[*v1.IngressController, *v1.IngressControllerList, *operatorv1.IngressControllerApplyConfiguration](
+ gentype.NewClientWithListAndApply[*operatorv1.IngressController, *operatorv1.IngressControllerList, *applyconfigurationsoperatorv1.IngressControllerApplyConfiguration](
"ingresscontrollers",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
- func() *v1.IngressController { return &v1.IngressController{} },
- func() *v1.IngressControllerList { return &v1.IngressControllerList{} }),
+ func() *operatorv1.IngressController { return &operatorv1.IngressController{} },
+ func() *operatorv1.IngressControllerList { return &operatorv1.IngressControllerList{} },
+ ),
}
}
diff --git a/operator/clientset/versioned/typed/operator/v1/insightsoperator.go b/operator/clientset/versioned/typed/operator/v1/insightsoperator.go
index afe872fb4..6e541dba8 100644
--- a/operator/clientset/versioned/typed/operator/v1/insightsoperator.go
+++ b/operator/clientset/versioned/typed/operator/v1/insightsoperator.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/operator/v1"
- operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ applyconfigurationsoperatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
scheme "github.com/openshift/client-go/operator/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type InsightsOperatorsGetter interface {
// InsightsOperatorInterface has methods to work with InsightsOperator resources.
type InsightsOperatorInterface interface {
- Create(ctx context.Context, insightsOperator *v1.InsightsOperator, opts metav1.CreateOptions) (*v1.InsightsOperator, error)
- Update(ctx context.Context, insightsOperator *v1.InsightsOperator, opts metav1.UpdateOptions) (*v1.InsightsOperator, error)
+ Create(ctx context.Context, insightsOperator *operatorv1.InsightsOperator, opts metav1.CreateOptions) (*operatorv1.InsightsOperator, error)
+ Update(ctx context.Context, insightsOperator *operatorv1.InsightsOperator, opts metav1.UpdateOptions) (*operatorv1.InsightsOperator, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, insightsOperator *v1.InsightsOperator, opts metav1.UpdateOptions) (*v1.InsightsOperator, error)
+ UpdateStatus(ctx context.Context, insightsOperator *operatorv1.InsightsOperator, opts metav1.UpdateOptions) (*operatorv1.InsightsOperator, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.InsightsOperator, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.InsightsOperatorList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*operatorv1.InsightsOperator, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*operatorv1.InsightsOperatorList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.InsightsOperator, err error)
- Apply(ctx context.Context, insightsOperator *operatorv1.InsightsOperatorApplyConfiguration, opts metav1.ApplyOptions) (result *v1.InsightsOperator, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *operatorv1.InsightsOperator, err error)
+ Apply(ctx context.Context, insightsOperator *applyconfigurationsoperatorv1.InsightsOperatorApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.InsightsOperator, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, insightsOperator *operatorv1.InsightsOperatorApplyConfiguration, opts metav1.ApplyOptions) (result *v1.InsightsOperator, err error)
+ ApplyStatus(ctx context.Context, insightsOperator *applyconfigurationsoperatorv1.InsightsOperatorApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.InsightsOperator, err error)
InsightsOperatorExpansion
}
// insightsOperators implements InsightsOperatorInterface
type insightsOperators struct {
- *gentype.ClientWithListAndApply[*v1.InsightsOperator, *v1.InsightsOperatorList, *operatorv1.InsightsOperatorApplyConfiguration]
+ *gentype.ClientWithListAndApply[*operatorv1.InsightsOperator, *operatorv1.InsightsOperatorList, *applyconfigurationsoperatorv1.InsightsOperatorApplyConfiguration]
}
// newInsightsOperators returns a InsightsOperators
func newInsightsOperators(c *OperatorV1Client) *insightsOperators {
return &insightsOperators{
- gentype.NewClientWithListAndApply[*v1.InsightsOperator, *v1.InsightsOperatorList, *operatorv1.InsightsOperatorApplyConfiguration](
+ gentype.NewClientWithListAndApply[*operatorv1.InsightsOperator, *operatorv1.InsightsOperatorList, *applyconfigurationsoperatorv1.InsightsOperatorApplyConfiguration](
"insightsoperators",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.InsightsOperator { return &v1.InsightsOperator{} },
- func() *v1.InsightsOperatorList { return &v1.InsightsOperatorList{} }),
+ func() *operatorv1.InsightsOperator { return &operatorv1.InsightsOperator{} },
+ func() *operatorv1.InsightsOperatorList { return &operatorv1.InsightsOperatorList{} },
+ ),
}
}
diff --git a/operator/clientset/versioned/typed/operator/v1/kubeapiserver.go b/operator/clientset/versioned/typed/operator/v1/kubeapiserver.go
index 3b965994e..9bfb6ce74 100644
--- a/operator/clientset/versioned/typed/operator/v1/kubeapiserver.go
+++ b/operator/clientset/versioned/typed/operator/v1/kubeapiserver.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/operator/v1"
- operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ applyconfigurationsoperatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
scheme "github.com/openshift/client-go/operator/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type KubeAPIServersGetter interface {
// KubeAPIServerInterface has methods to work with KubeAPIServer resources.
type KubeAPIServerInterface interface {
- Create(ctx context.Context, kubeAPIServer *v1.KubeAPIServer, opts metav1.CreateOptions) (*v1.KubeAPIServer, error)
- Update(ctx context.Context, kubeAPIServer *v1.KubeAPIServer, opts metav1.UpdateOptions) (*v1.KubeAPIServer, error)
+ Create(ctx context.Context, kubeAPIServer *operatorv1.KubeAPIServer, opts metav1.CreateOptions) (*operatorv1.KubeAPIServer, error)
+ Update(ctx context.Context, kubeAPIServer *operatorv1.KubeAPIServer, opts metav1.UpdateOptions) (*operatorv1.KubeAPIServer, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, kubeAPIServer *v1.KubeAPIServer, opts metav1.UpdateOptions) (*v1.KubeAPIServer, error)
+ UpdateStatus(ctx context.Context, kubeAPIServer *operatorv1.KubeAPIServer, opts metav1.UpdateOptions) (*operatorv1.KubeAPIServer, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.KubeAPIServer, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.KubeAPIServerList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*operatorv1.KubeAPIServer, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*operatorv1.KubeAPIServerList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.KubeAPIServer, err error)
- Apply(ctx context.Context, kubeAPIServer *operatorv1.KubeAPIServerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.KubeAPIServer, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *operatorv1.KubeAPIServer, err error)
+ Apply(ctx context.Context, kubeAPIServer *applyconfigurationsoperatorv1.KubeAPIServerApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.KubeAPIServer, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, kubeAPIServer *operatorv1.KubeAPIServerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.KubeAPIServer, err error)
+ ApplyStatus(ctx context.Context, kubeAPIServer *applyconfigurationsoperatorv1.KubeAPIServerApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.KubeAPIServer, err error)
KubeAPIServerExpansion
}
// kubeAPIServers implements KubeAPIServerInterface
type kubeAPIServers struct {
- *gentype.ClientWithListAndApply[*v1.KubeAPIServer, *v1.KubeAPIServerList, *operatorv1.KubeAPIServerApplyConfiguration]
+ *gentype.ClientWithListAndApply[*operatorv1.KubeAPIServer, *operatorv1.KubeAPIServerList, *applyconfigurationsoperatorv1.KubeAPIServerApplyConfiguration]
}
// newKubeAPIServers returns a KubeAPIServers
func newKubeAPIServers(c *OperatorV1Client) *kubeAPIServers {
return &kubeAPIServers{
- gentype.NewClientWithListAndApply[*v1.KubeAPIServer, *v1.KubeAPIServerList, *operatorv1.KubeAPIServerApplyConfiguration](
+ gentype.NewClientWithListAndApply[*operatorv1.KubeAPIServer, *operatorv1.KubeAPIServerList, *applyconfigurationsoperatorv1.KubeAPIServerApplyConfiguration](
"kubeapiservers",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.KubeAPIServer { return &v1.KubeAPIServer{} },
- func() *v1.KubeAPIServerList { return &v1.KubeAPIServerList{} }),
+ func() *operatorv1.KubeAPIServer { return &operatorv1.KubeAPIServer{} },
+ func() *operatorv1.KubeAPIServerList { return &operatorv1.KubeAPIServerList{} },
+ ),
}
}
diff --git a/operator/clientset/versioned/typed/operator/v1/kubecontrollermanager.go b/operator/clientset/versioned/typed/operator/v1/kubecontrollermanager.go
index 9eef99815..4e5bc0181 100644
--- a/operator/clientset/versioned/typed/operator/v1/kubecontrollermanager.go
+++ b/operator/clientset/versioned/typed/operator/v1/kubecontrollermanager.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/operator/v1"
- operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ applyconfigurationsoperatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
scheme "github.com/openshift/client-go/operator/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type KubeControllerManagersGetter interface {
// KubeControllerManagerInterface has methods to work with KubeControllerManager resources.
type KubeControllerManagerInterface interface {
- Create(ctx context.Context, kubeControllerManager *v1.KubeControllerManager, opts metav1.CreateOptions) (*v1.KubeControllerManager, error)
- Update(ctx context.Context, kubeControllerManager *v1.KubeControllerManager, opts metav1.UpdateOptions) (*v1.KubeControllerManager, error)
+ Create(ctx context.Context, kubeControllerManager *operatorv1.KubeControllerManager, opts metav1.CreateOptions) (*operatorv1.KubeControllerManager, error)
+ Update(ctx context.Context, kubeControllerManager *operatorv1.KubeControllerManager, opts metav1.UpdateOptions) (*operatorv1.KubeControllerManager, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, kubeControllerManager *v1.KubeControllerManager, opts metav1.UpdateOptions) (*v1.KubeControllerManager, error)
+ UpdateStatus(ctx context.Context, kubeControllerManager *operatorv1.KubeControllerManager, opts metav1.UpdateOptions) (*operatorv1.KubeControllerManager, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.KubeControllerManager, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.KubeControllerManagerList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*operatorv1.KubeControllerManager, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*operatorv1.KubeControllerManagerList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.KubeControllerManager, err error)
- Apply(ctx context.Context, kubeControllerManager *operatorv1.KubeControllerManagerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.KubeControllerManager, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *operatorv1.KubeControllerManager, err error)
+ Apply(ctx context.Context, kubeControllerManager *applyconfigurationsoperatorv1.KubeControllerManagerApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.KubeControllerManager, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, kubeControllerManager *operatorv1.KubeControllerManagerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.KubeControllerManager, err error)
+ ApplyStatus(ctx context.Context, kubeControllerManager *applyconfigurationsoperatorv1.KubeControllerManagerApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.KubeControllerManager, err error)
KubeControllerManagerExpansion
}
// kubeControllerManagers implements KubeControllerManagerInterface
type kubeControllerManagers struct {
- *gentype.ClientWithListAndApply[*v1.KubeControllerManager, *v1.KubeControllerManagerList, *operatorv1.KubeControllerManagerApplyConfiguration]
+ *gentype.ClientWithListAndApply[*operatorv1.KubeControllerManager, *operatorv1.KubeControllerManagerList, *applyconfigurationsoperatorv1.KubeControllerManagerApplyConfiguration]
}
// newKubeControllerManagers returns a KubeControllerManagers
func newKubeControllerManagers(c *OperatorV1Client) *kubeControllerManagers {
return &kubeControllerManagers{
- gentype.NewClientWithListAndApply[*v1.KubeControllerManager, *v1.KubeControllerManagerList, *operatorv1.KubeControllerManagerApplyConfiguration](
+ gentype.NewClientWithListAndApply[*operatorv1.KubeControllerManager, *operatorv1.KubeControllerManagerList, *applyconfigurationsoperatorv1.KubeControllerManagerApplyConfiguration](
"kubecontrollermanagers",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.KubeControllerManager { return &v1.KubeControllerManager{} },
- func() *v1.KubeControllerManagerList { return &v1.KubeControllerManagerList{} }),
+ func() *operatorv1.KubeControllerManager { return &operatorv1.KubeControllerManager{} },
+ func() *operatorv1.KubeControllerManagerList { return &operatorv1.KubeControllerManagerList{} },
+ ),
}
}
diff --git a/operator/clientset/versioned/typed/operator/v1/kubescheduler.go b/operator/clientset/versioned/typed/operator/v1/kubescheduler.go
index ea29a0098..fe5bde8ff 100644
--- a/operator/clientset/versioned/typed/operator/v1/kubescheduler.go
+++ b/operator/clientset/versioned/typed/operator/v1/kubescheduler.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/operator/v1"
- operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ applyconfigurationsoperatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
scheme "github.com/openshift/client-go/operator/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type KubeSchedulersGetter interface {
// KubeSchedulerInterface has methods to work with KubeScheduler resources.
type KubeSchedulerInterface interface {
- Create(ctx context.Context, kubeScheduler *v1.KubeScheduler, opts metav1.CreateOptions) (*v1.KubeScheduler, error)
- Update(ctx context.Context, kubeScheduler *v1.KubeScheduler, opts metav1.UpdateOptions) (*v1.KubeScheduler, error)
+ Create(ctx context.Context, kubeScheduler *operatorv1.KubeScheduler, opts metav1.CreateOptions) (*operatorv1.KubeScheduler, error)
+ Update(ctx context.Context, kubeScheduler *operatorv1.KubeScheduler, opts metav1.UpdateOptions) (*operatorv1.KubeScheduler, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, kubeScheduler *v1.KubeScheduler, opts metav1.UpdateOptions) (*v1.KubeScheduler, error)
+ UpdateStatus(ctx context.Context, kubeScheduler *operatorv1.KubeScheduler, opts metav1.UpdateOptions) (*operatorv1.KubeScheduler, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.KubeScheduler, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.KubeSchedulerList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*operatorv1.KubeScheduler, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*operatorv1.KubeSchedulerList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.KubeScheduler, err error)
- Apply(ctx context.Context, kubeScheduler *operatorv1.KubeSchedulerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.KubeScheduler, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *operatorv1.KubeScheduler, err error)
+ Apply(ctx context.Context, kubeScheduler *applyconfigurationsoperatorv1.KubeSchedulerApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.KubeScheduler, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, kubeScheduler *operatorv1.KubeSchedulerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.KubeScheduler, err error)
+ ApplyStatus(ctx context.Context, kubeScheduler *applyconfigurationsoperatorv1.KubeSchedulerApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.KubeScheduler, err error)
KubeSchedulerExpansion
}
// kubeSchedulers implements KubeSchedulerInterface
type kubeSchedulers struct {
- *gentype.ClientWithListAndApply[*v1.KubeScheduler, *v1.KubeSchedulerList, *operatorv1.KubeSchedulerApplyConfiguration]
+ *gentype.ClientWithListAndApply[*operatorv1.KubeScheduler, *operatorv1.KubeSchedulerList, *applyconfigurationsoperatorv1.KubeSchedulerApplyConfiguration]
}
// newKubeSchedulers returns a KubeSchedulers
func newKubeSchedulers(c *OperatorV1Client) *kubeSchedulers {
return &kubeSchedulers{
- gentype.NewClientWithListAndApply[*v1.KubeScheduler, *v1.KubeSchedulerList, *operatorv1.KubeSchedulerApplyConfiguration](
+ gentype.NewClientWithListAndApply[*operatorv1.KubeScheduler, *operatorv1.KubeSchedulerList, *applyconfigurationsoperatorv1.KubeSchedulerApplyConfiguration](
"kubeschedulers",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.KubeScheduler { return &v1.KubeScheduler{} },
- func() *v1.KubeSchedulerList { return &v1.KubeSchedulerList{} }),
+ func() *operatorv1.KubeScheduler { return &operatorv1.KubeScheduler{} },
+ func() *operatorv1.KubeSchedulerList { return &operatorv1.KubeSchedulerList{} },
+ ),
}
}
diff --git a/operator/clientset/versioned/typed/operator/v1/kubestorageversionmigrator.go b/operator/clientset/versioned/typed/operator/v1/kubestorageversionmigrator.go
index baa091575..b15f2b902 100644
--- a/operator/clientset/versioned/typed/operator/v1/kubestorageversionmigrator.go
+++ b/operator/clientset/versioned/typed/operator/v1/kubestorageversionmigrator.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/operator/v1"
- operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ applyconfigurationsoperatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
scheme "github.com/openshift/client-go/operator/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type KubeStorageVersionMigratorsGetter interface {
// KubeStorageVersionMigratorInterface has methods to work with KubeStorageVersionMigrator resources.
type KubeStorageVersionMigratorInterface interface {
- Create(ctx context.Context, kubeStorageVersionMigrator *v1.KubeStorageVersionMigrator, opts metav1.CreateOptions) (*v1.KubeStorageVersionMigrator, error)
- Update(ctx context.Context, kubeStorageVersionMigrator *v1.KubeStorageVersionMigrator, opts metav1.UpdateOptions) (*v1.KubeStorageVersionMigrator, error)
+ Create(ctx context.Context, kubeStorageVersionMigrator *operatorv1.KubeStorageVersionMigrator, opts metav1.CreateOptions) (*operatorv1.KubeStorageVersionMigrator, error)
+ Update(ctx context.Context, kubeStorageVersionMigrator *operatorv1.KubeStorageVersionMigrator, opts metav1.UpdateOptions) (*operatorv1.KubeStorageVersionMigrator, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, kubeStorageVersionMigrator *v1.KubeStorageVersionMigrator, opts metav1.UpdateOptions) (*v1.KubeStorageVersionMigrator, error)
+ UpdateStatus(ctx context.Context, kubeStorageVersionMigrator *operatorv1.KubeStorageVersionMigrator, opts metav1.UpdateOptions) (*operatorv1.KubeStorageVersionMigrator, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.KubeStorageVersionMigrator, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.KubeStorageVersionMigratorList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*operatorv1.KubeStorageVersionMigrator, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*operatorv1.KubeStorageVersionMigratorList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.KubeStorageVersionMigrator, err error)
- Apply(ctx context.Context, kubeStorageVersionMigrator *operatorv1.KubeStorageVersionMigratorApplyConfiguration, opts metav1.ApplyOptions) (result *v1.KubeStorageVersionMigrator, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *operatorv1.KubeStorageVersionMigrator, err error)
+ Apply(ctx context.Context, kubeStorageVersionMigrator *applyconfigurationsoperatorv1.KubeStorageVersionMigratorApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.KubeStorageVersionMigrator, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, kubeStorageVersionMigrator *operatorv1.KubeStorageVersionMigratorApplyConfiguration, opts metav1.ApplyOptions) (result *v1.KubeStorageVersionMigrator, err error)
+ ApplyStatus(ctx context.Context, kubeStorageVersionMigrator *applyconfigurationsoperatorv1.KubeStorageVersionMigratorApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.KubeStorageVersionMigrator, err error)
KubeStorageVersionMigratorExpansion
}
// kubeStorageVersionMigrators implements KubeStorageVersionMigratorInterface
type kubeStorageVersionMigrators struct {
- *gentype.ClientWithListAndApply[*v1.KubeStorageVersionMigrator, *v1.KubeStorageVersionMigratorList, *operatorv1.KubeStorageVersionMigratorApplyConfiguration]
+ *gentype.ClientWithListAndApply[*operatorv1.KubeStorageVersionMigrator, *operatorv1.KubeStorageVersionMigratorList, *applyconfigurationsoperatorv1.KubeStorageVersionMigratorApplyConfiguration]
}
// newKubeStorageVersionMigrators returns a KubeStorageVersionMigrators
func newKubeStorageVersionMigrators(c *OperatorV1Client) *kubeStorageVersionMigrators {
return &kubeStorageVersionMigrators{
- gentype.NewClientWithListAndApply[*v1.KubeStorageVersionMigrator, *v1.KubeStorageVersionMigratorList, *operatorv1.KubeStorageVersionMigratorApplyConfiguration](
+ gentype.NewClientWithListAndApply[*operatorv1.KubeStorageVersionMigrator, *operatorv1.KubeStorageVersionMigratorList, *applyconfigurationsoperatorv1.KubeStorageVersionMigratorApplyConfiguration](
"kubestorageversionmigrators",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.KubeStorageVersionMigrator { return &v1.KubeStorageVersionMigrator{} },
- func() *v1.KubeStorageVersionMigratorList { return &v1.KubeStorageVersionMigratorList{} }),
+ func() *operatorv1.KubeStorageVersionMigrator { return &operatorv1.KubeStorageVersionMigrator{} },
+ func() *operatorv1.KubeStorageVersionMigratorList { return &operatorv1.KubeStorageVersionMigratorList{} },
+ ),
}
}
diff --git a/operator/clientset/versioned/typed/operator/v1/machineconfiguration.go b/operator/clientset/versioned/typed/operator/v1/machineconfiguration.go
index bfd3520ab..813bc2f2e 100644
--- a/operator/clientset/versioned/typed/operator/v1/machineconfiguration.go
+++ b/operator/clientset/versioned/typed/operator/v1/machineconfiguration.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/operator/v1"
- operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ applyconfigurationsoperatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
scheme "github.com/openshift/client-go/operator/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type MachineConfigurationsGetter interface {
// MachineConfigurationInterface has methods to work with MachineConfiguration resources.
type MachineConfigurationInterface interface {
- Create(ctx context.Context, machineConfiguration *v1.MachineConfiguration, opts metav1.CreateOptions) (*v1.MachineConfiguration, error)
- Update(ctx context.Context, machineConfiguration *v1.MachineConfiguration, opts metav1.UpdateOptions) (*v1.MachineConfiguration, error)
+ Create(ctx context.Context, machineConfiguration *operatorv1.MachineConfiguration, opts metav1.CreateOptions) (*operatorv1.MachineConfiguration, error)
+ Update(ctx context.Context, machineConfiguration *operatorv1.MachineConfiguration, opts metav1.UpdateOptions) (*operatorv1.MachineConfiguration, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, machineConfiguration *v1.MachineConfiguration, opts metav1.UpdateOptions) (*v1.MachineConfiguration, error)
+ UpdateStatus(ctx context.Context, machineConfiguration *operatorv1.MachineConfiguration, opts metav1.UpdateOptions) (*operatorv1.MachineConfiguration, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.MachineConfiguration, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.MachineConfigurationList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*operatorv1.MachineConfiguration, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*operatorv1.MachineConfigurationList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.MachineConfiguration, err error)
- Apply(ctx context.Context, machineConfiguration *operatorv1.MachineConfigurationApplyConfiguration, opts metav1.ApplyOptions) (result *v1.MachineConfiguration, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *operatorv1.MachineConfiguration, err error)
+ Apply(ctx context.Context, machineConfiguration *applyconfigurationsoperatorv1.MachineConfigurationApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.MachineConfiguration, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, machineConfiguration *operatorv1.MachineConfigurationApplyConfiguration, opts metav1.ApplyOptions) (result *v1.MachineConfiguration, err error)
+ ApplyStatus(ctx context.Context, machineConfiguration *applyconfigurationsoperatorv1.MachineConfigurationApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.MachineConfiguration, err error)
MachineConfigurationExpansion
}
// machineConfigurations implements MachineConfigurationInterface
type machineConfigurations struct {
- *gentype.ClientWithListAndApply[*v1.MachineConfiguration, *v1.MachineConfigurationList, *operatorv1.MachineConfigurationApplyConfiguration]
+ *gentype.ClientWithListAndApply[*operatorv1.MachineConfiguration, *operatorv1.MachineConfigurationList, *applyconfigurationsoperatorv1.MachineConfigurationApplyConfiguration]
}
// newMachineConfigurations returns a MachineConfigurations
func newMachineConfigurations(c *OperatorV1Client) *machineConfigurations {
return &machineConfigurations{
- gentype.NewClientWithListAndApply[*v1.MachineConfiguration, *v1.MachineConfigurationList, *operatorv1.MachineConfigurationApplyConfiguration](
+ gentype.NewClientWithListAndApply[*operatorv1.MachineConfiguration, *operatorv1.MachineConfigurationList, *applyconfigurationsoperatorv1.MachineConfigurationApplyConfiguration](
"machineconfigurations",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.MachineConfiguration { return &v1.MachineConfiguration{} },
- func() *v1.MachineConfigurationList { return &v1.MachineConfigurationList{} }),
+ func() *operatorv1.MachineConfiguration { return &operatorv1.MachineConfiguration{} },
+ func() *operatorv1.MachineConfigurationList { return &operatorv1.MachineConfigurationList{} },
+ ),
}
}
diff --git a/operator/clientset/versioned/typed/operator/v1/network.go b/operator/clientset/versioned/typed/operator/v1/network.go
index 17d6f0959..d4777b024 100644
--- a/operator/clientset/versioned/typed/operator/v1/network.go
+++ b/operator/clientset/versioned/typed/operator/v1/network.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/operator/v1"
- operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ applyconfigurationsoperatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
scheme "github.com/openshift/client-go/operator/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type NetworksGetter interface {
// NetworkInterface has methods to work with Network resources.
type NetworkInterface interface {
- Create(ctx context.Context, network *v1.Network, opts metav1.CreateOptions) (*v1.Network, error)
- Update(ctx context.Context, network *v1.Network, opts metav1.UpdateOptions) (*v1.Network, error)
+ Create(ctx context.Context, network *operatorv1.Network, opts metav1.CreateOptions) (*operatorv1.Network, error)
+ Update(ctx context.Context, network *operatorv1.Network, opts metav1.UpdateOptions) (*operatorv1.Network, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, network *v1.Network, opts metav1.UpdateOptions) (*v1.Network, error)
+ UpdateStatus(ctx context.Context, network *operatorv1.Network, opts metav1.UpdateOptions) (*operatorv1.Network, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Network, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.NetworkList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*operatorv1.Network, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*operatorv1.NetworkList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Network, err error)
- Apply(ctx context.Context, network *operatorv1.NetworkApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Network, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *operatorv1.Network, err error)
+ Apply(ctx context.Context, network *applyconfigurationsoperatorv1.NetworkApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.Network, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, network *operatorv1.NetworkApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Network, err error)
+ ApplyStatus(ctx context.Context, network *applyconfigurationsoperatorv1.NetworkApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.Network, err error)
NetworkExpansion
}
// networks implements NetworkInterface
type networks struct {
- *gentype.ClientWithListAndApply[*v1.Network, *v1.NetworkList, *operatorv1.NetworkApplyConfiguration]
+ *gentype.ClientWithListAndApply[*operatorv1.Network, *operatorv1.NetworkList, *applyconfigurationsoperatorv1.NetworkApplyConfiguration]
}
// newNetworks returns a Networks
func newNetworks(c *OperatorV1Client) *networks {
return &networks{
- gentype.NewClientWithListAndApply[*v1.Network, *v1.NetworkList, *operatorv1.NetworkApplyConfiguration](
+ gentype.NewClientWithListAndApply[*operatorv1.Network, *operatorv1.NetworkList, *applyconfigurationsoperatorv1.NetworkApplyConfiguration](
"networks",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.Network { return &v1.Network{} },
- func() *v1.NetworkList { return &v1.NetworkList{} }),
+ func() *operatorv1.Network { return &operatorv1.Network{} },
+ func() *operatorv1.NetworkList { return &operatorv1.NetworkList{} },
+ ),
}
}
diff --git a/operator/clientset/versioned/typed/operator/v1/olm.go b/operator/clientset/versioned/typed/operator/v1/olm.go
index 6adb68c89..866906e68 100644
--- a/operator/clientset/versioned/typed/operator/v1/olm.go
+++ b/operator/clientset/versioned/typed/operator/v1/olm.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/operator/v1"
- operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ applyconfigurationsoperatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
scheme "github.com/openshift/client-go/operator/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type OLMsGetter interface {
// OLMInterface has methods to work with OLM resources.
type OLMInterface interface {
- Create(ctx context.Context, oLM *v1.OLM, opts metav1.CreateOptions) (*v1.OLM, error)
- Update(ctx context.Context, oLM *v1.OLM, opts metav1.UpdateOptions) (*v1.OLM, error)
+ Create(ctx context.Context, oLM *operatorv1.OLM, opts metav1.CreateOptions) (*operatorv1.OLM, error)
+ Update(ctx context.Context, oLM *operatorv1.OLM, opts metav1.UpdateOptions) (*operatorv1.OLM, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, oLM *v1.OLM, opts metav1.UpdateOptions) (*v1.OLM, error)
+ UpdateStatus(ctx context.Context, oLM *operatorv1.OLM, opts metav1.UpdateOptions) (*operatorv1.OLM, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.OLM, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.OLMList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*operatorv1.OLM, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*operatorv1.OLMList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.OLM, err error)
- Apply(ctx context.Context, oLM *operatorv1.OLMApplyConfiguration, opts metav1.ApplyOptions) (result *v1.OLM, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *operatorv1.OLM, err error)
+ Apply(ctx context.Context, oLM *applyconfigurationsoperatorv1.OLMApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.OLM, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, oLM *operatorv1.OLMApplyConfiguration, opts metav1.ApplyOptions) (result *v1.OLM, err error)
+ ApplyStatus(ctx context.Context, oLM *applyconfigurationsoperatorv1.OLMApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.OLM, err error)
OLMExpansion
}
// oLMs implements OLMInterface
type oLMs struct {
- *gentype.ClientWithListAndApply[*v1.OLM, *v1.OLMList, *operatorv1.OLMApplyConfiguration]
+ *gentype.ClientWithListAndApply[*operatorv1.OLM, *operatorv1.OLMList, *applyconfigurationsoperatorv1.OLMApplyConfiguration]
}
// newOLMs returns a OLMs
func newOLMs(c *OperatorV1Client) *oLMs {
return &oLMs{
- gentype.NewClientWithListAndApply[*v1.OLM, *v1.OLMList, *operatorv1.OLMApplyConfiguration](
+ gentype.NewClientWithListAndApply[*operatorv1.OLM, *operatorv1.OLMList, *applyconfigurationsoperatorv1.OLMApplyConfiguration](
"olms",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.OLM { return &v1.OLM{} },
- func() *v1.OLMList { return &v1.OLMList{} }),
+ func() *operatorv1.OLM { return &operatorv1.OLM{} },
+ func() *operatorv1.OLMList { return &operatorv1.OLMList{} },
+ ),
}
}
diff --git a/operator/clientset/versioned/typed/operator/v1/openshiftapiserver.go b/operator/clientset/versioned/typed/operator/v1/openshiftapiserver.go
index ab6d0a15b..942c8fc6f 100644
--- a/operator/clientset/versioned/typed/operator/v1/openshiftapiserver.go
+++ b/operator/clientset/versioned/typed/operator/v1/openshiftapiserver.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/operator/v1"
- operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ applyconfigurationsoperatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
scheme "github.com/openshift/client-go/operator/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type OpenShiftAPIServersGetter interface {
// OpenShiftAPIServerInterface has methods to work with OpenShiftAPIServer resources.
type OpenShiftAPIServerInterface interface {
- Create(ctx context.Context, openShiftAPIServer *v1.OpenShiftAPIServer, opts metav1.CreateOptions) (*v1.OpenShiftAPIServer, error)
- Update(ctx context.Context, openShiftAPIServer *v1.OpenShiftAPIServer, opts metav1.UpdateOptions) (*v1.OpenShiftAPIServer, error)
+ Create(ctx context.Context, openShiftAPIServer *operatorv1.OpenShiftAPIServer, opts metav1.CreateOptions) (*operatorv1.OpenShiftAPIServer, error)
+ Update(ctx context.Context, openShiftAPIServer *operatorv1.OpenShiftAPIServer, opts metav1.UpdateOptions) (*operatorv1.OpenShiftAPIServer, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, openShiftAPIServer *v1.OpenShiftAPIServer, opts metav1.UpdateOptions) (*v1.OpenShiftAPIServer, error)
+ UpdateStatus(ctx context.Context, openShiftAPIServer *operatorv1.OpenShiftAPIServer, opts metav1.UpdateOptions) (*operatorv1.OpenShiftAPIServer, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.OpenShiftAPIServer, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.OpenShiftAPIServerList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*operatorv1.OpenShiftAPIServer, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*operatorv1.OpenShiftAPIServerList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.OpenShiftAPIServer, err error)
- Apply(ctx context.Context, openShiftAPIServer *operatorv1.OpenShiftAPIServerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.OpenShiftAPIServer, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *operatorv1.OpenShiftAPIServer, err error)
+ Apply(ctx context.Context, openShiftAPIServer *applyconfigurationsoperatorv1.OpenShiftAPIServerApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.OpenShiftAPIServer, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, openShiftAPIServer *operatorv1.OpenShiftAPIServerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.OpenShiftAPIServer, err error)
+ ApplyStatus(ctx context.Context, openShiftAPIServer *applyconfigurationsoperatorv1.OpenShiftAPIServerApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.OpenShiftAPIServer, err error)
OpenShiftAPIServerExpansion
}
// openShiftAPIServers implements OpenShiftAPIServerInterface
type openShiftAPIServers struct {
- *gentype.ClientWithListAndApply[*v1.OpenShiftAPIServer, *v1.OpenShiftAPIServerList, *operatorv1.OpenShiftAPIServerApplyConfiguration]
+ *gentype.ClientWithListAndApply[*operatorv1.OpenShiftAPIServer, *operatorv1.OpenShiftAPIServerList, *applyconfigurationsoperatorv1.OpenShiftAPIServerApplyConfiguration]
}
// newOpenShiftAPIServers returns a OpenShiftAPIServers
func newOpenShiftAPIServers(c *OperatorV1Client) *openShiftAPIServers {
return &openShiftAPIServers{
- gentype.NewClientWithListAndApply[*v1.OpenShiftAPIServer, *v1.OpenShiftAPIServerList, *operatorv1.OpenShiftAPIServerApplyConfiguration](
+ gentype.NewClientWithListAndApply[*operatorv1.OpenShiftAPIServer, *operatorv1.OpenShiftAPIServerList, *applyconfigurationsoperatorv1.OpenShiftAPIServerApplyConfiguration](
"openshiftapiservers",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.OpenShiftAPIServer { return &v1.OpenShiftAPIServer{} },
- func() *v1.OpenShiftAPIServerList { return &v1.OpenShiftAPIServerList{} }),
+ func() *operatorv1.OpenShiftAPIServer { return &operatorv1.OpenShiftAPIServer{} },
+ func() *operatorv1.OpenShiftAPIServerList { return &operatorv1.OpenShiftAPIServerList{} },
+ ),
}
}
diff --git a/operator/clientset/versioned/typed/operator/v1/openshiftcontrollermanager.go b/operator/clientset/versioned/typed/operator/v1/openshiftcontrollermanager.go
index 9537fa949..0f729ad33 100644
--- a/operator/clientset/versioned/typed/operator/v1/openshiftcontrollermanager.go
+++ b/operator/clientset/versioned/typed/operator/v1/openshiftcontrollermanager.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/operator/v1"
- operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ applyconfigurationsoperatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
scheme "github.com/openshift/client-go/operator/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type OpenShiftControllerManagersGetter interface {
// OpenShiftControllerManagerInterface has methods to work with OpenShiftControllerManager resources.
type OpenShiftControllerManagerInterface interface {
- Create(ctx context.Context, openShiftControllerManager *v1.OpenShiftControllerManager, opts metav1.CreateOptions) (*v1.OpenShiftControllerManager, error)
- Update(ctx context.Context, openShiftControllerManager *v1.OpenShiftControllerManager, opts metav1.UpdateOptions) (*v1.OpenShiftControllerManager, error)
+ Create(ctx context.Context, openShiftControllerManager *operatorv1.OpenShiftControllerManager, opts metav1.CreateOptions) (*operatorv1.OpenShiftControllerManager, error)
+ Update(ctx context.Context, openShiftControllerManager *operatorv1.OpenShiftControllerManager, opts metav1.UpdateOptions) (*operatorv1.OpenShiftControllerManager, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, openShiftControllerManager *v1.OpenShiftControllerManager, opts metav1.UpdateOptions) (*v1.OpenShiftControllerManager, error)
+ UpdateStatus(ctx context.Context, openShiftControllerManager *operatorv1.OpenShiftControllerManager, opts metav1.UpdateOptions) (*operatorv1.OpenShiftControllerManager, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.OpenShiftControllerManager, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.OpenShiftControllerManagerList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*operatorv1.OpenShiftControllerManager, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*operatorv1.OpenShiftControllerManagerList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.OpenShiftControllerManager, err error)
- Apply(ctx context.Context, openShiftControllerManager *operatorv1.OpenShiftControllerManagerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.OpenShiftControllerManager, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *operatorv1.OpenShiftControllerManager, err error)
+ Apply(ctx context.Context, openShiftControllerManager *applyconfigurationsoperatorv1.OpenShiftControllerManagerApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.OpenShiftControllerManager, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, openShiftControllerManager *operatorv1.OpenShiftControllerManagerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.OpenShiftControllerManager, err error)
+ ApplyStatus(ctx context.Context, openShiftControllerManager *applyconfigurationsoperatorv1.OpenShiftControllerManagerApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.OpenShiftControllerManager, err error)
OpenShiftControllerManagerExpansion
}
// openShiftControllerManagers implements OpenShiftControllerManagerInterface
type openShiftControllerManagers struct {
- *gentype.ClientWithListAndApply[*v1.OpenShiftControllerManager, *v1.OpenShiftControllerManagerList, *operatorv1.OpenShiftControllerManagerApplyConfiguration]
+ *gentype.ClientWithListAndApply[*operatorv1.OpenShiftControllerManager, *operatorv1.OpenShiftControllerManagerList, *applyconfigurationsoperatorv1.OpenShiftControllerManagerApplyConfiguration]
}
// newOpenShiftControllerManagers returns a OpenShiftControllerManagers
func newOpenShiftControllerManagers(c *OperatorV1Client) *openShiftControllerManagers {
return &openShiftControllerManagers{
- gentype.NewClientWithListAndApply[*v1.OpenShiftControllerManager, *v1.OpenShiftControllerManagerList, *operatorv1.OpenShiftControllerManagerApplyConfiguration](
+ gentype.NewClientWithListAndApply[*operatorv1.OpenShiftControllerManager, *operatorv1.OpenShiftControllerManagerList, *applyconfigurationsoperatorv1.OpenShiftControllerManagerApplyConfiguration](
"openshiftcontrollermanagers",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.OpenShiftControllerManager { return &v1.OpenShiftControllerManager{} },
- func() *v1.OpenShiftControllerManagerList { return &v1.OpenShiftControllerManagerList{} }),
+ func() *operatorv1.OpenShiftControllerManager { return &operatorv1.OpenShiftControllerManager{} },
+ func() *operatorv1.OpenShiftControllerManagerList { return &operatorv1.OpenShiftControllerManagerList{} },
+ ),
}
}
diff --git a/operator/clientset/versioned/typed/operator/v1/operator_client.go b/operator/clientset/versioned/typed/operator/v1/operator_client.go
index 9ba66e07c..0b52301c5 100644
--- a/operator/clientset/versioned/typed/operator/v1/operator_client.go
+++ b/operator/clientset/versioned/typed/operator/v1/operator_client.go
@@ -3,10 +3,10 @@
package v1
import (
- "net/http"
+ http "net/http"
- v1 "github.com/openshift/api/operator/v1"
- "github.com/openshift/client-go/operator/clientset/versioned/scheme"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ scheme "github.com/openshift/client-go/operator/clientset/versioned/scheme"
rest "k8s.io/client-go/rest"
)
@@ -179,10 +179,10 @@ func New(c rest.Interface) *OperatorV1Client {
}
func setConfigDefaults(config *rest.Config) error {
- gv := v1.SchemeGroupVersion
+ gv := operatorv1.SchemeGroupVersion
config.GroupVersion = &gv
config.APIPath = "/apis"
- config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
+ config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion()
if config.UserAgent == "" {
config.UserAgent = rest.DefaultKubernetesUserAgent()
diff --git a/operator/clientset/versioned/typed/operator/v1/serviceca.go b/operator/clientset/versioned/typed/operator/v1/serviceca.go
index 47feeb828..1827f8793 100644
--- a/operator/clientset/versioned/typed/operator/v1/serviceca.go
+++ b/operator/clientset/versioned/typed/operator/v1/serviceca.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/operator/v1"
- operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ applyconfigurationsoperatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
scheme "github.com/openshift/client-go/operator/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type ServiceCAsGetter interface {
// ServiceCAInterface has methods to work with ServiceCA resources.
type ServiceCAInterface interface {
- Create(ctx context.Context, serviceCA *v1.ServiceCA, opts metav1.CreateOptions) (*v1.ServiceCA, error)
- Update(ctx context.Context, serviceCA *v1.ServiceCA, opts metav1.UpdateOptions) (*v1.ServiceCA, error)
+ Create(ctx context.Context, serviceCA *operatorv1.ServiceCA, opts metav1.CreateOptions) (*operatorv1.ServiceCA, error)
+ Update(ctx context.Context, serviceCA *operatorv1.ServiceCA, opts metav1.UpdateOptions) (*operatorv1.ServiceCA, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, serviceCA *v1.ServiceCA, opts metav1.UpdateOptions) (*v1.ServiceCA, error)
+ UpdateStatus(ctx context.Context, serviceCA *operatorv1.ServiceCA, opts metav1.UpdateOptions) (*operatorv1.ServiceCA, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ServiceCA, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.ServiceCAList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*operatorv1.ServiceCA, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*operatorv1.ServiceCAList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ServiceCA, err error)
- Apply(ctx context.Context, serviceCA *operatorv1.ServiceCAApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ServiceCA, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *operatorv1.ServiceCA, err error)
+ Apply(ctx context.Context, serviceCA *applyconfigurationsoperatorv1.ServiceCAApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.ServiceCA, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, serviceCA *operatorv1.ServiceCAApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ServiceCA, err error)
+ ApplyStatus(ctx context.Context, serviceCA *applyconfigurationsoperatorv1.ServiceCAApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.ServiceCA, err error)
ServiceCAExpansion
}
// serviceCAs implements ServiceCAInterface
type serviceCAs struct {
- *gentype.ClientWithListAndApply[*v1.ServiceCA, *v1.ServiceCAList, *operatorv1.ServiceCAApplyConfiguration]
+ *gentype.ClientWithListAndApply[*operatorv1.ServiceCA, *operatorv1.ServiceCAList, *applyconfigurationsoperatorv1.ServiceCAApplyConfiguration]
}
// newServiceCAs returns a ServiceCAs
func newServiceCAs(c *OperatorV1Client) *serviceCAs {
return &serviceCAs{
- gentype.NewClientWithListAndApply[*v1.ServiceCA, *v1.ServiceCAList, *operatorv1.ServiceCAApplyConfiguration](
+ gentype.NewClientWithListAndApply[*operatorv1.ServiceCA, *operatorv1.ServiceCAList, *applyconfigurationsoperatorv1.ServiceCAApplyConfiguration](
"servicecas",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.ServiceCA { return &v1.ServiceCA{} },
- func() *v1.ServiceCAList { return &v1.ServiceCAList{} }),
+ func() *operatorv1.ServiceCA { return &operatorv1.ServiceCA{} },
+ func() *operatorv1.ServiceCAList { return &operatorv1.ServiceCAList{} },
+ ),
}
}
diff --git a/operator/clientset/versioned/typed/operator/v1/servicecatalogapiserver.go b/operator/clientset/versioned/typed/operator/v1/servicecatalogapiserver.go
index fc39f2ac7..9c31f0a3e 100644
--- a/operator/clientset/versioned/typed/operator/v1/servicecatalogapiserver.go
+++ b/operator/clientset/versioned/typed/operator/v1/servicecatalogapiserver.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/operator/v1"
- operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ applyconfigurationsoperatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
scheme "github.com/openshift/client-go/operator/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type ServiceCatalogAPIServersGetter interface {
// ServiceCatalogAPIServerInterface has methods to work with ServiceCatalogAPIServer resources.
type ServiceCatalogAPIServerInterface interface {
- Create(ctx context.Context, serviceCatalogAPIServer *v1.ServiceCatalogAPIServer, opts metav1.CreateOptions) (*v1.ServiceCatalogAPIServer, error)
- Update(ctx context.Context, serviceCatalogAPIServer *v1.ServiceCatalogAPIServer, opts metav1.UpdateOptions) (*v1.ServiceCatalogAPIServer, error)
+ Create(ctx context.Context, serviceCatalogAPIServer *operatorv1.ServiceCatalogAPIServer, opts metav1.CreateOptions) (*operatorv1.ServiceCatalogAPIServer, error)
+ Update(ctx context.Context, serviceCatalogAPIServer *operatorv1.ServiceCatalogAPIServer, opts metav1.UpdateOptions) (*operatorv1.ServiceCatalogAPIServer, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, serviceCatalogAPIServer *v1.ServiceCatalogAPIServer, opts metav1.UpdateOptions) (*v1.ServiceCatalogAPIServer, error)
+ UpdateStatus(ctx context.Context, serviceCatalogAPIServer *operatorv1.ServiceCatalogAPIServer, opts metav1.UpdateOptions) (*operatorv1.ServiceCatalogAPIServer, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ServiceCatalogAPIServer, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.ServiceCatalogAPIServerList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*operatorv1.ServiceCatalogAPIServer, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*operatorv1.ServiceCatalogAPIServerList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ServiceCatalogAPIServer, err error)
- Apply(ctx context.Context, serviceCatalogAPIServer *operatorv1.ServiceCatalogAPIServerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ServiceCatalogAPIServer, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *operatorv1.ServiceCatalogAPIServer, err error)
+ Apply(ctx context.Context, serviceCatalogAPIServer *applyconfigurationsoperatorv1.ServiceCatalogAPIServerApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.ServiceCatalogAPIServer, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, serviceCatalogAPIServer *operatorv1.ServiceCatalogAPIServerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ServiceCatalogAPIServer, err error)
+ ApplyStatus(ctx context.Context, serviceCatalogAPIServer *applyconfigurationsoperatorv1.ServiceCatalogAPIServerApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.ServiceCatalogAPIServer, err error)
ServiceCatalogAPIServerExpansion
}
// serviceCatalogAPIServers implements ServiceCatalogAPIServerInterface
type serviceCatalogAPIServers struct {
- *gentype.ClientWithListAndApply[*v1.ServiceCatalogAPIServer, *v1.ServiceCatalogAPIServerList, *operatorv1.ServiceCatalogAPIServerApplyConfiguration]
+ *gentype.ClientWithListAndApply[*operatorv1.ServiceCatalogAPIServer, *operatorv1.ServiceCatalogAPIServerList, *applyconfigurationsoperatorv1.ServiceCatalogAPIServerApplyConfiguration]
}
// newServiceCatalogAPIServers returns a ServiceCatalogAPIServers
func newServiceCatalogAPIServers(c *OperatorV1Client) *serviceCatalogAPIServers {
return &serviceCatalogAPIServers{
- gentype.NewClientWithListAndApply[*v1.ServiceCatalogAPIServer, *v1.ServiceCatalogAPIServerList, *operatorv1.ServiceCatalogAPIServerApplyConfiguration](
+ gentype.NewClientWithListAndApply[*operatorv1.ServiceCatalogAPIServer, *operatorv1.ServiceCatalogAPIServerList, *applyconfigurationsoperatorv1.ServiceCatalogAPIServerApplyConfiguration](
"servicecatalogapiservers",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.ServiceCatalogAPIServer { return &v1.ServiceCatalogAPIServer{} },
- func() *v1.ServiceCatalogAPIServerList { return &v1.ServiceCatalogAPIServerList{} }),
+ func() *operatorv1.ServiceCatalogAPIServer { return &operatorv1.ServiceCatalogAPIServer{} },
+ func() *operatorv1.ServiceCatalogAPIServerList { return &operatorv1.ServiceCatalogAPIServerList{} },
+ ),
}
}
diff --git a/operator/clientset/versioned/typed/operator/v1/servicecatalogcontrollermanager.go b/operator/clientset/versioned/typed/operator/v1/servicecatalogcontrollermanager.go
index 0f9fc299b..5e5e3f208 100644
--- a/operator/clientset/versioned/typed/operator/v1/servicecatalogcontrollermanager.go
+++ b/operator/clientset/versioned/typed/operator/v1/servicecatalogcontrollermanager.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/operator/v1"
- operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ applyconfigurationsoperatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
scheme "github.com/openshift/client-go/operator/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,41 @@ type ServiceCatalogControllerManagersGetter interface {
// ServiceCatalogControllerManagerInterface has methods to work with ServiceCatalogControllerManager resources.
type ServiceCatalogControllerManagerInterface interface {
- Create(ctx context.Context, serviceCatalogControllerManager *v1.ServiceCatalogControllerManager, opts metav1.CreateOptions) (*v1.ServiceCatalogControllerManager, error)
- Update(ctx context.Context, serviceCatalogControllerManager *v1.ServiceCatalogControllerManager, opts metav1.UpdateOptions) (*v1.ServiceCatalogControllerManager, error)
+ Create(ctx context.Context, serviceCatalogControllerManager *operatorv1.ServiceCatalogControllerManager, opts metav1.CreateOptions) (*operatorv1.ServiceCatalogControllerManager, error)
+ Update(ctx context.Context, serviceCatalogControllerManager *operatorv1.ServiceCatalogControllerManager, opts metav1.UpdateOptions) (*operatorv1.ServiceCatalogControllerManager, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, serviceCatalogControllerManager *v1.ServiceCatalogControllerManager, opts metav1.UpdateOptions) (*v1.ServiceCatalogControllerManager, error)
+ UpdateStatus(ctx context.Context, serviceCatalogControllerManager *operatorv1.ServiceCatalogControllerManager, opts metav1.UpdateOptions) (*operatorv1.ServiceCatalogControllerManager, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ServiceCatalogControllerManager, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.ServiceCatalogControllerManagerList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*operatorv1.ServiceCatalogControllerManager, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*operatorv1.ServiceCatalogControllerManagerList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ServiceCatalogControllerManager, err error)
- Apply(ctx context.Context, serviceCatalogControllerManager *operatorv1.ServiceCatalogControllerManagerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ServiceCatalogControllerManager, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *operatorv1.ServiceCatalogControllerManager, err error)
+ Apply(ctx context.Context, serviceCatalogControllerManager *applyconfigurationsoperatorv1.ServiceCatalogControllerManagerApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.ServiceCatalogControllerManager, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, serviceCatalogControllerManager *operatorv1.ServiceCatalogControllerManagerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ServiceCatalogControllerManager, err error)
+ ApplyStatus(ctx context.Context, serviceCatalogControllerManager *applyconfigurationsoperatorv1.ServiceCatalogControllerManagerApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.ServiceCatalogControllerManager, err error)
ServiceCatalogControllerManagerExpansion
}
// serviceCatalogControllerManagers implements ServiceCatalogControllerManagerInterface
type serviceCatalogControllerManagers struct {
- *gentype.ClientWithListAndApply[*v1.ServiceCatalogControllerManager, *v1.ServiceCatalogControllerManagerList, *operatorv1.ServiceCatalogControllerManagerApplyConfiguration]
+ *gentype.ClientWithListAndApply[*operatorv1.ServiceCatalogControllerManager, *operatorv1.ServiceCatalogControllerManagerList, *applyconfigurationsoperatorv1.ServiceCatalogControllerManagerApplyConfiguration]
}
// newServiceCatalogControllerManagers returns a ServiceCatalogControllerManagers
func newServiceCatalogControllerManagers(c *OperatorV1Client) *serviceCatalogControllerManagers {
return &serviceCatalogControllerManagers{
- gentype.NewClientWithListAndApply[*v1.ServiceCatalogControllerManager, *v1.ServiceCatalogControllerManagerList, *operatorv1.ServiceCatalogControllerManagerApplyConfiguration](
+ gentype.NewClientWithListAndApply[*operatorv1.ServiceCatalogControllerManager, *operatorv1.ServiceCatalogControllerManagerList, *applyconfigurationsoperatorv1.ServiceCatalogControllerManagerApplyConfiguration](
"servicecatalogcontrollermanagers",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.ServiceCatalogControllerManager { return &v1.ServiceCatalogControllerManager{} },
- func() *v1.ServiceCatalogControllerManagerList { return &v1.ServiceCatalogControllerManagerList{} }),
+ func() *operatorv1.ServiceCatalogControllerManager {
+ return &operatorv1.ServiceCatalogControllerManager{}
+ },
+ func() *operatorv1.ServiceCatalogControllerManagerList {
+ return &operatorv1.ServiceCatalogControllerManagerList{}
+ },
+ ),
}
}
diff --git a/operator/clientset/versioned/typed/operator/v1/storage.go b/operator/clientset/versioned/typed/operator/v1/storage.go
index 410aa6799..e1110785f 100644
--- a/operator/clientset/versioned/typed/operator/v1/storage.go
+++ b/operator/clientset/versioned/typed/operator/v1/storage.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/operator/v1"
- operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ applyconfigurationsoperatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
scheme "github.com/openshift/client-go/operator/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type StoragesGetter interface {
// StorageInterface has methods to work with Storage resources.
type StorageInterface interface {
- Create(ctx context.Context, storage *v1.Storage, opts metav1.CreateOptions) (*v1.Storage, error)
- Update(ctx context.Context, storage *v1.Storage, opts metav1.UpdateOptions) (*v1.Storage, error)
+ Create(ctx context.Context, storage *operatorv1.Storage, opts metav1.CreateOptions) (*operatorv1.Storage, error)
+ Update(ctx context.Context, storage *operatorv1.Storage, opts metav1.UpdateOptions) (*operatorv1.Storage, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, storage *v1.Storage, opts metav1.UpdateOptions) (*v1.Storage, error)
+ UpdateStatus(ctx context.Context, storage *operatorv1.Storage, opts metav1.UpdateOptions) (*operatorv1.Storage, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Storage, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.StorageList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*operatorv1.Storage, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*operatorv1.StorageList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Storage, err error)
- Apply(ctx context.Context, storage *operatorv1.StorageApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Storage, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *operatorv1.Storage, err error)
+ Apply(ctx context.Context, storage *applyconfigurationsoperatorv1.StorageApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.Storage, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, storage *operatorv1.StorageApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Storage, err error)
+ ApplyStatus(ctx context.Context, storage *applyconfigurationsoperatorv1.StorageApplyConfiguration, opts metav1.ApplyOptions) (result *operatorv1.Storage, err error)
StorageExpansion
}
// storages implements StorageInterface
type storages struct {
- *gentype.ClientWithListAndApply[*v1.Storage, *v1.StorageList, *operatorv1.StorageApplyConfiguration]
+ *gentype.ClientWithListAndApply[*operatorv1.Storage, *operatorv1.StorageList, *applyconfigurationsoperatorv1.StorageApplyConfiguration]
}
// newStorages returns a Storages
func newStorages(c *OperatorV1Client) *storages {
return &storages{
- gentype.NewClientWithListAndApply[*v1.Storage, *v1.StorageList, *operatorv1.StorageApplyConfiguration](
+ gentype.NewClientWithListAndApply[*operatorv1.Storage, *operatorv1.StorageList, *applyconfigurationsoperatorv1.StorageApplyConfiguration](
"storages",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.Storage { return &v1.Storage{} },
- func() *v1.StorageList { return &v1.StorageList{} }),
+ func() *operatorv1.Storage { return &operatorv1.Storage{} },
+ func() *operatorv1.StorageList { return &operatorv1.StorageList{} },
+ ),
}
}
diff --git a/operator/clientset/versioned/typed/operator/v1alpha1/clusterversionoperator.go b/operator/clientset/versioned/typed/operator/v1alpha1/clusterversionoperator.go
index cb105fe54..f55e61009 100644
--- a/operator/clientset/versioned/typed/operator/v1alpha1/clusterversionoperator.go
+++ b/operator/clientset/versioned/typed/operator/v1alpha1/clusterversionoperator.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- "context"
+ context "context"
- v1alpha1 "github.com/openshift/api/operator/v1alpha1"
- operatorv1alpha1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1alpha1"
+ operatorv1alpha1 "github.com/openshift/api/operator/v1alpha1"
+ applyconfigurationsoperatorv1alpha1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1alpha1"
scheme "github.com/openshift/client-go/operator/clientset/versioned/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,39 @@ type ClusterVersionOperatorsGetter interface {
// ClusterVersionOperatorInterface has methods to work with ClusterVersionOperator resources.
type ClusterVersionOperatorInterface interface {
- Create(ctx context.Context, clusterVersionOperator *v1alpha1.ClusterVersionOperator, opts v1.CreateOptions) (*v1alpha1.ClusterVersionOperator, error)
- Update(ctx context.Context, clusterVersionOperator *v1alpha1.ClusterVersionOperator, opts v1.UpdateOptions) (*v1alpha1.ClusterVersionOperator, error)
+ Create(ctx context.Context, clusterVersionOperator *operatorv1alpha1.ClusterVersionOperator, opts v1.CreateOptions) (*operatorv1alpha1.ClusterVersionOperator, error)
+ Update(ctx context.Context, clusterVersionOperator *operatorv1alpha1.ClusterVersionOperator, opts v1.UpdateOptions) (*operatorv1alpha1.ClusterVersionOperator, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, clusterVersionOperator *v1alpha1.ClusterVersionOperator, opts v1.UpdateOptions) (*v1alpha1.ClusterVersionOperator, error)
+ UpdateStatus(ctx context.Context, clusterVersionOperator *operatorv1alpha1.ClusterVersionOperator, opts v1.UpdateOptions) (*operatorv1alpha1.ClusterVersionOperator, error)
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.ClusterVersionOperator, error)
- List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.ClusterVersionOperatorList, error)
+ Get(ctx context.Context, name string, opts v1.GetOptions) (*operatorv1alpha1.ClusterVersionOperator, error)
+ List(ctx context.Context, opts v1.ListOptions) (*operatorv1alpha1.ClusterVersionOperatorList, error)
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ClusterVersionOperator, err error)
- Apply(ctx context.Context, clusterVersionOperator *operatorv1alpha1.ClusterVersionOperatorApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.ClusterVersionOperator, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *operatorv1alpha1.ClusterVersionOperator, err error)
+ Apply(ctx context.Context, clusterVersionOperator *applyconfigurationsoperatorv1alpha1.ClusterVersionOperatorApplyConfiguration, opts v1.ApplyOptions) (result *operatorv1alpha1.ClusterVersionOperator, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, clusterVersionOperator *operatorv1alpha1.ClusterVersionOperatorApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.ClusterVersionOperator, err error)
+ ApplyStatus(ctx context.Context, clusterVersionOperator *applyconfigurationsoperatorv1alpha1.ClusterVersionOperatorApplyConfiguration, opts v1.ApplyOptions) (result *operatorv1alpha1.ClusterVersionOperator, err error)
ClusterVersionOperatorExpansion
}
// clusterVersionOperators implements ClusterVersionOperatorInterface
type clusterVersionOperators struct {
- *gentype.ClientWithListAndApply[*v1alpha1.ClusterVersionOperator, *v1alpha1.ClusterVersionOperatorList, *operatorv1alpha1.ClusterVersionOperatorApplyConfiguration]
+ *gentype.ClientWithListAndApply[*operatorv1alpha1.ClusterVersionOperator, *operatorv1alpha1.ClusterVersionOperatorList, *applyconfigurationsoperatorv1alpha1.ClusterVersionOperatorApplyConfiguration]
}
// newClusterVersionOperators returns a ClusterVersionOperators
func newClusterVersionOperators(c *OperatorV1alpha1Client) *clusterVersionOperators {
return &clusterVersionOperators{
- gentype.NewClientWithListAndApply[*v1alpha1.ClusterVersionOperator, *v1alpha1.ClusterVersionOperatorList, *operatorv1alpha1.ClusterVersionOperatorApplyConfiguration](
+ gentype.NewClientWithListAndApply[*operatorv1alpha1.ClusterVersionOperator, *operatorv1alpha1.ClusterVersionOperatorList, *applyconfigurationsoperatorv1alpha1.ClusterVersionOperatorApplyConfiguration](
"clusterversionoperators",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1alpha1.ClusterVersionOperator { return &v1alpha1.ClusterVersionOperator{} },
- func() *v1alpha1.ClusterVersionOperatorList { return &v1alpha1.ClusterVersionOperatorList{} }),
+ func() *operatorv1alpha1.ClusterVersionOperator { return &operatorv1alpha1.ClusterVersionOperator{} },
+ func() *operatorv1alpha1.ClusterVersionOperatorList {
+ return &operatorv1alpha1.ClusterVersionOperatorList{}
+ },
+ ),
}
}
diff --git a/operator/clientset/versioned/typed/operator/v1alpha1/etcdbackup.go b/operator/clientset/versioned/typed/operator/v1alpha1/etcdbackup.go
index 53787cc4b..cc2889e44 100644
--- a/operator/clientset/versioned/typed/operator/v1alpha1/etcdbackup.go
+++ b/operator/clientset/versioned/typed/operator/v1alpha1/etcdbackup.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- "context"
+ context "context"
- v1alpha1 "github.com/openshift/api/operator/v1alpha1"
- operatorv1alpha1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1alpha1"
+ operatorv1alpha1 "github.com/openshift/api/operator/v1alpha1"
+ applyconfigurationsoperatorv1alpha1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1alpha1"
scheme "github.com/openshift/client-go/operator/clientset/versioned/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type EtcdBackupsGetter interface {
// EtcdBackupInterface has methods to work with EtcdBackup resources.
type EtcdBackupInterface interface {
- Create(ctx context.Context, etcdBackup *v1alpha1.EtcdBackup, opts v1.CreateOptions) (*v1alpha1.EtcdBackup, error)
- Update(ctx context.Context, etcdBackup *v1alpha1.EtcdBackup, opts v1.UpdateOptions) (*v1alpha1.EtcdBackup, error)
+ Create(ctx context.Context, etcdBackup *operatorv1alpha1.EtcdBackup, opts v1.CreateOptions) (*operatorv1alpha1.EtcdBackup, error)
+ Update(ctx context.Context, etcdBackup *operatorv1alpha1.EtcdBackup, opts v1.UpdateOptions) (*operatorv1alpha1.EtcdBackup, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, etcdBackup *v1alpha1.EtcdBackup, opts v1.UpdateOptions) (*v1alpha1.EtcdBackup, error)
+ UpdateStatus(ctx context.Context, etcdBackup *operatorv1alpha1.EtcdBackup, opts v1.UpdateOptions) (*operatorv1alpha1.EtcdBackup, error)
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.EtcdBackup, error)
- List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.EtcdBackupList, error)
+ Get(ctx context.Context, name string, opts v1.GetOptions) (*operatorv1alpha1.EtcdBackup, error)
+ List(ctx context.Context, opts v1.ListOptions) (*operatorv1alpha1.EtcdBackupList, error)
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.EtcdBackup, err error)
- Apply(ctx context.Context, etcdBackup *operatorv1alpha1.EtcdBackupApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.EtcdBackup, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *operatorv1alpha1.EtcdBackup, err error)
+ Apply(ctx context.Context, etcdBackup *applyconfigurationsoperatorv1alpha1.EtcdBackupApplyConfiguration, opts v1.ApplyOptions) (result *operatorv1alpha1.EtcdBackup, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, etcdBackup *operatorv1alpha1.EtcdBackupApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.EtcdBackup, err error)
+ ApplyStatus(ctx context.Context, etcdBackup *applyconfigurationsoperatorv1alpha1.EtcdBackupApplyConfiguration, opts v1.ApplyOptions) (result *operatorv1alpha1.EtcdBackup, err error)
EtcdBackupExpansion
}
// etcdBackups implements EtcdBackupInterface
type etcdBackups struct {
- *gentype.ClientWithListAndApply[*v1alpha1.EtcdBackup, *v1alpha1.EtcdBackupList, *operatorv1alpha1.EtcdBackupApplyConfiguration]
+ *gentype.ClientWithListAndApply[*operatorv1alpha1.EtcdBackup, *operatorv1alpha1.EtcdBackupList, *applyconfigurationsoperatorv1alpha1.EtcdBackupApplyConfiguration]
}
// newEtcdBackups returns a EtcdBackups
func newEtcdBackups(c *OperatorV1alpha1Client) *etcdBackups {
return &etcdBackups{
- gentype.NewClientWithListAndApply[*v1alpha1.EtcdBackup, *v1alpha1.EtcdBackupList, *operatorv1alpha1.EtcdBackupApplyConfiguration](
+ gentype.NewClientWithListAndApply[*operatorv1alpha1.EtcdBackup, *operatorv1alpha1.EtcdBackupList, *applyconfigurationsoperatorv1alpha1.EtcdBackupApplyConfiguration](
"etcdbackups",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1alpha1.EtcdBackup { return &v1alpha1.EtcdBackup{} },
- func() *v1alpha1.EtcdBackupList { return &v1alpha1.EtcdBackupList{} }),
+ func() *operatorv1alpha1.EtcdBackup { return &operatorv1alpha1.EtcdBackup{} },
+ func() *operatorv1alpha1.EtcdBackupList { return &operatorv1alpha1.EtcdBackupList{} },
+ ),
}
}
diff --git a/operator/clientset/versioned/typed/operator/v1alpha1/fake/fake_clusterversionoperator.go b/operator/clientset/versioned/typed/operator/v1alpha1/fake/fake_clusterversionoperator.go
index da8d9ea5b..359dfc910 100644
--- a/operator/clientset/versioned/typed/operator/v1alpha1/fake/fake_clusterversionoperator.go
+++ b/operator/clientset/versioned/typed/operator/v1alpha1/fake/fake_clusterversionoperator.go
@@ -3,168 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1alpha1 "github.com/openshift/api/operator/v1alpha1"
operatorv1alpha1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1alpha1"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedoperatorv1alpha1 "github.com/openshift/client-go/operator/clientset/versioned/typed/operator/v1alpha1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeClusterVersionOperators implements ClusterVersionOperatorInterface
-type FakeClusterVersionOperators struct {
+// fakeClusterVersionOperators implements ClusterVersionOperatorInterface
+type fakeClusterVersionOperators struct {
+ *gentype.FakeClientWithListAndApply[*v1alpha1.ClusterVersionOperator, *v1alpha1.ClusterVersionOperatorList, *operatorv1alpha1.ClusterVersionOperatorApplyConfiguration]
Fake *FakeOperatorV1alpha1
}
-var clusterversionoperatorsResource = v1alpha1.SchemeGroupVersion.WithResource("clusterversionoperators")
-
-var clusterversionoperatorsKind = v1alpha1.SchemeGroupVersion.WithKind("ClusterVersionOperator")
-
-// Get takes name of the clusterVersionOperator, and returns the corresponding clusterVersionOperator object, and an error if there is any.
-func (c *FakeClusterVersionOperators) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ClusterVersionOperator, err error) {
- emptyResult := &v1alpha1.ClusterVersionOperator{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(clusterversionoperatorsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.ClusterVersionOperator), err
-}
-
-// List takes label and field selectors, and returns the list of ClusterVersionOperators that match those selectors.
-func (c *FakeClusterVersionOperators) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ClusterVersionOperatorList, err error) {
- emptyResult := &v1alpha1.ClusterVersionOperatorList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(clusterversionoperatorsResource, clusterversionoperatorsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1alpha1.ClusterVersionOperatorList{ListMeta: obj.(*v1alpha1.ClusterVersionOperatorList).ListMeta}
- for _, item := range obj.(*v1alpha1.ClusterVersionOperatorList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested clusterVersionOperators.
-func (c *FakeClusterVersionOperators) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(clusterversionoperatorsResource, opts))
-}
-
-// Create takes the representation of a clusterVersionOperator and creates it. Returns the server's representation of the clusterVersionOperator, and an error, if there is any.
-func (c *FakeClusterVersionOperators) Create(ctx context.Context, clusterVersionOperator *v1alpha1.ClusterVersionOperator, opts v1.CreateOptions) (result *v1alpha1.ClusterVersionOperator, err error) {
- emptyResult := &v1alpha1.ClusterVersionOperator{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(clusterversionoperatorsResource, clusterVersionOperator, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.ClusterVersionOperator), err
-}
-
-// Update takes the representation of a clusterVersionOperator and updates it. Returns the server's representation of the clusterVersionOperator, and an error, if there is any.
-func (c *FakeClusterVersionOperators) Update(ctx context.Context, clusterVersionOperator *v1alpha1.ClusterVersionOperator, opts v1.UpdateOptions) (result *v1alpha1.ClusterVersionOperator, err error) {
- emptyResult := &v1alpha1.ClusterVersionOperator{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(clusterversionoperatorsResource, clusterVersionOperator, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.ClusterVersionOperator), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeClusterVersionOperators) UpdateStatus(ctx context.Context, clusterVersionOperator *v1alpha1.ClusterVersionOperator, opts v1.UpdateOptions) (result *v1alpha1.ClusterVersionOperator, err error) {
- emptyResult := &v1alpha1.ClusterVersionOperator{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(clusterversionoperatorsResource, "status", clusterVersionOperator, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.ClusterVersionOperator), err
-}
-
-// Delete takes name of the clusterVersionOperator and deletes it. Returns an error if one occurs.
-func (c *FakeClusterVersionOperators) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(clusterversionoperatorsResource, name, opts), &v1alpha1.ClusterVersionOperator{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeClusterVersionOperators) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(clusterversionoperatorsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1alpha1.ClusterVersionOperatorList{})
- return err
-}
-
-// Patch applies the patch and returns the patched clusterVersionOperator.
-func (c *FakeClusterVersionOperators) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ClusterVersionOperator, err error) {
- emptyResult := &v1alpha1.ClusterVersionOperator{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(clusterversionoperatorsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.ClusterVersionOperator), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied clusterVersionOperator.
-func (c *FakeClusterVersionOperators) Apply(ctx context.Context, clusterVersionOperator *operatorv1alpha1.ClusterVersionOperatorApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.ClusterVersionOperator, err error) {
- if clusterVersionOperator == nil {
- return nil, fmt.Errorf("clusterVersionOperator provided to Apply must not be nil")
- }
- data, err := json.Marshal(clusterVersionOperator)
- if err != nil {
- return nil, err
- }
- name := clusterVersionOperator.Name
- if name == nil {
- return nil, fmt.Errorf("clusterVersionOperator.Name must be provided to Apply")
- }
- emptyResult := &v1alpha1.ClusterVersionOperator{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(clusterversionoperatorsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.ClusterVersionOperator), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeClusterVersionOperators) ApplyStatus(ctx context.Context, clusterVersionOperator *operatorv1alpha1.ClusterVersionOperatorApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.ClusterVersionOperator, err error) {
- if clusterVersionOperator == nil {
- return nil, fmt.Errorf("clusterVersionOperator provided to Apply must not be nil")
- }
- data, err := json.Marshal(clusterVersionOperator)
- if err != nil {
- return nil, err
- }
- name := clusterVersionOperator.Name
- if name == nil {
- return nil, fmt.Errorf("clusterVersionOperator.Name must be provided to Apply")
- }
- emptyResult := &v1alpha1.ClusterVersionOperator{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(clusterversionoperatorsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeClusterVersionOperators(fake *FakeOperatorV1alpha1) typedoperatorv1alpha1.ClusterVersionOperatorInterface {
+ return &fakeClusterVersionOperators{
+ gentype.NewFakeClientWithListAndApply[*v1alpha1.ClusterVersionOperator, *v1alpha1.ClusterVersionOperatorList, *operatorv1alpha1.ClusterVersionOperatorApplyConfiguration](
+ fake.Fake,
+ "",
+ v1alpha1.SchemeGroupVersion.WithResource("clusterversionoperators"),
+ v1alpha1.SchemeGroupVersion.WithKind("ClusterVersionOperator"),
+ func() *v1alpha1.ClusterVersionOperator { return &v1alpha1.ClusterVersionOperator{} },
+ func() *v1alpha1.ClusterVersionOperatorList { return &v1alpha1.ClusterVersionOperatorList{} },
+ func(dst, src *v1alpha1.ClusterVersionOperatorList) { dst.ListMeta = src.ListMeta },
+ func(list *v1alpha1.ClusterVersionOperatorList) []*v1alpha1.ClusterVersionOperator {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1alpha1.ClusterVersionOperatorList, items []*v1alpha1.ClusterVersionOperator) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1alpha1.ClusterVersionOperator), err
}
diff --git a/operator/clientset/versioned/typed/operator/v1alpha1/fake/fake_etcdbackup.go b/operator/clientset/versioned/typed/operator/v1alpha1/fake/fake_etcdbackup.go
index f1bb3c76f..be8667235 100644
--- a/operator/clientset/versioned/typed/operator/v1alpha1/fake/fake_etcdbackup.go
+++ b/operator/clientset/versioned/typed/operator/v1alpha1/fake/fake_etcdbackup.go
@@ -3,168 +3,33 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1alpha1 "github.com/openshift/api/operator/v1alpha1"
operatorv1alpha1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1alpha1"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedoperatorv1alpha1 "github.com/openshift/client-go/operator/clientset/versioned/typed/operator/v1alpha1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeEtcdBackups implements EtcdBackupInterface
-type FakeEtcdBackups struct {
+// fakeEtcdBackups implements EtcdBackupInterface
+type fakeEtcdBackups struct {
+ *gentype.FakeClientWithListAndApply[*v1alpha1.EtcdBackup, *v1alpha1.EtcdBackupList, *operatorv1alpha1.EtcdBackupApplyConfiguration]
Fake *FakeOperatorV1alpha1
}
-var etcdbackupsResource = v1alpha1.SchemeGroupVersion.WithResource("etcdbackups")
-
-var etcdbackupsKind = v1alpha1.SchemeGroupVersion.WithKind("EtcdBackup")
-
-// Get takes name of the etcdBackup, and returns the corresponding etcdBackup object, and an error if there is any.
-func (c *FakeEtcdBackups) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.EtcdBackup, err error) {
- emptyResult := &v1alpha1.EtcdBackup{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(etcdbackupsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.EtcdBackup), err
-}
-
-// List takes label and field selectors, and returns the list of EtcdBackups that match those selectors.
-func (c *FakeEtcdBackups) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.EtcdBackupList, err error) {
- emptyResult := &v1alpha1.EtcdBackupList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(etcdbackupsResource, etcdbackupsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1alpha1.EtcdBackupList{ListMeta: obj.(*v1alpha1.EtcdBackupList).ListMeta}
- for _, item := range obj.(*v1alpha1.EtcdBackupList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested etcdBackups.
-func (c *FakeEtcdBackups) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(etcdbackupsResource, opts))
-}
-
-// Create takes the representation of a etcdBackup and creates it. Returns the server's representation of the etcdBackup, and an error, if there is any.
-func (c *FakeEtcdBackups) Create(ctx context.Context, etcdBackup *v1alpha1.EtcdBackup, opts v1.CreateOptions) (result *v1alpha1.EtcdBackup, err error) {
- emptyResult := &v1alpha1.EtcdBackup{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(etcdbackupsResource, etcdBackup, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.EtcdBackup), err
-}
-
-// Update takes the representation of a etcdBackup and updates it. Returns the server's representation of the etcdBackup, and an error, if there is any.
-func (c *FakeEtcdBackups) Update(ctx context.Context, etcdBackup *v1alpha1.EtcdBackup, opts v1.UpdateOptions) (result *v1alpha1.EtcdBackup, err error) {
- emptyResult := &v1alpha1.EtcdBackup{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(etcdbackupsResource, etcdBackup, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.EtcdBackup), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeEtcdBackups) UpdateStatus(ctx context.Context, etcdBackup *v1alpha1.EtcdBackup, opts v1.UpdateOptions) (result *v1alpha1.EtcdBackup, err error) {
- emptyResult := &v1alpha1.EtcdBackup{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(etcdbackupsResource, "status", etcdBackup, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.EtcdBackup), err
-}
-
-// Delete takes name of the etcdBackup and deletes it. Returns an error if one occurs.
-func (c *FakeEtcdBackups) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(etcdbackupsResource, name, opts), &v1alpha1.EtcdBackup{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeEtcdBackups) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(etcdbackupsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1alpha1.EtcdBackupList{})
- return err
-}
-
-// Patch applies the patch and returns the patched etcdBackup.
-func (c *FakeEtcdBackups) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.EtcdBackup, err error) {
- emptyResult := &v1alpha1.EtcdBackup{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(etcdbackupsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.EtcdBackup), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied etcdBackup.
-func (c *FakeEtcdBackups) Apply(ctx context.Context, etcdBackup *operatorv1alpha1.EtcdBackupApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.EtcdBackup, err error) {
- if etcdBackup == nil {
- return nil, fmt.Errorf("etcdBackup provided to Apply must not be nil")
- }
- data, err := json.Marshal(etcdBackup)
- if err != nil {
- return nil, err
- }
- name := etcdBackup.Name
- if name == nil {
- return nil, fmt.Errorf("etcdBackup.Name must be provided to Apply")
- }
- emptyResult := &v1alpha1.EtcdBackup{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(etcdbackupsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.EtcdBackup), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeEtcdBackups) ApplyStatus(ctx context.Context, etcdBackup *operatorv1alpha1.EtcdBackupApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.EtcdBackup, err error) {
- if etcdBackup == nil {
- return nil, fmt.Errorf("etcdBackup provided to Apply must not be nil")
- }
- data, err := json.Marshal(etcdBackup)
- if err != nil {
- return nil, err
- }
- name := etcdBackup.Name
- if name == nil {
- return nil, fmt.Errorf("etcdBackup.Name must be provided to Apply")
- }
- emptyResult := &v1alpha1.EtcdBackup{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(etcdbackupsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeEtcdBackups(fake *FakeOperatorV1alpha1) typedoperatorv1alpha1.EtcdBackupInterface {
+ return &fakeEtcdBackups{
+ gentype.NewFakeClientWithListAndApply[*v1alpha1.EtcdBackup, *v1alpha1.EtcdBackupList, *operatorv1alpha1.EtcdBackupApplyConfiguration](
+ fake.Fake,
+ "",
+ v1alpha1.SchemeGroupVersion.WithResource("etcdbackups"),
+ v1alpha1.SchemeGroupVersion.WithKind("EtcdBackup"),
+ func() *v1alpha1.EtcdBackup { return &v1alpha1.EtcdBackup{} },
+ func() *v1alpha1.EtcdBackupList { return &v1alpha1.EtcdBackupList{} },
+ func(dst, src *v1alpha1.EtcdBackupList) { dst.ListMeta = src.ListMeta },
+ func(list *v1alpha1.EtcdBackupList) []*v1alpha1.EtcdBackup { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1alpha1.EtcdBackupList, items []*v1alpha1.EtcdBackup) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1alpha1.EtcdBackup), err
}
diff --git a/operator/clientset/versioned/typed/operator/v1alpha1/fake/fake_imagecontentsourcepolicy.go b/operator/clientset/versioned/typed/operator/v1alpha1/fake/fake_imagecontentsourcepolicy.go
index e7a60d83e..1cac3dbe3 100644
--- a/operator/clientset/versioned/typed/operator/v1alpha1/fake/fake_imagecontentsourcepolicy.go
+++ b/operator/clientset/versioned/typed/operator/v1alpha1/fake/fake_imagecontentsourcepolicy.go
@@ -3,133 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1alpha1 "github.com/openshift/api/operator/v1alpha1"
operatorv1alpha1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1alpha1"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedoperatorv1alpha1 "github.com/openshift/client-go/operator/clientset/versioned/typed/operator/v1alpha1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeImageContentSourcePolicies implements ImageContentSourcePolicyInterface
-type FakeImageContentSourcePolicies struct {
+// fakeImageContentSourcePolicies implements ImageContentSourcePolicyInterface
+type fakeImageContentSourcePolicies struct {
+ *gentype.FakeClientWithListAndApply[*v1alpha1.ImageContentSourcePolicy, *v1alpha1.ImageContentSourcePolicyList, *operatorv1alpha1.ImageContentSourcePolicyApplyConfiguration]
Fake *FakeOperatorV1alpha1
}
-var imagecontentsourcepoliciesResource = v1alpha1.SchemeGroupVersion.WithResource("imagecontentsourcepolicies")
-
-var imagecontentsourcepoliciesKind = v1alpha1.SchemeGroupVersion.WithKind("ImageContentSourcePolicy")
-
-// Get takes name of the imageContentSourcePolicy, and returns the corresponding imageContentSourcePolicy object, and an error if there is any.
-func (c *FakeImageContentSourcePolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ImageContentSourcePolicy, err error) {
- emptyResult := &v1alpha1.ImageContentSourcePolicy{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(imagecontentsourcepoliciesResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.ImageContentSourcePolicy), err
-}
-
-// List takes label and field selectors, and returns the list of ImageContentSourcePolicies that match those selectors.
-func (c *FakeImageContentSourcePolicies) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ImageContentSourcePolicyList, err error) {
- emptyResult := &v1alpha1.ImageContentSourcePolicyList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(imagecontentsourcepoliciesResource, imagecontentsourcepoliciesKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1alpha1.ImageContentSourcePolicyList{ListMeta: obj.(*v1alpha1.ImageContentSourcePolicyList).ListMeta}
- for _, item := range obj.(*v1alpha1.ImageContentSourcePolicyList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested imageContentSourcePolicies.
-func (c *FakeImageContentSourcePolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(imagecontentsourcepoliciesResource, opts))
-}
-
-// Create takes the representation of a imageContentSourcePolicy and creates it. Returns the server's representation of the imageContentSourcePolicy, and an error, if there is any.
-func (c *FakeImageContentSourcePolicies) Create(ctx context.Context, imageContentSourcePolicy *v1alpha1.ImageContentSourcePolicy, opts v1.CreateOptions) (result *v1alpha1.ImageContentSourcePolicy, err error) {
- emptyResult := &v1alpha1.ImageContentSourcePolicy{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(imagecontentsourcepoliciesResource, imageContentSourcePolicy, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.ImageContentSourcePolicy), err
-}
-
-// Update takes the representation of a imageContentSourcePolicy and updates it. Returns the server's representation of the imageContentSourcePolicy, and an error, if there is any.
-func (c *FakeImageContentSourcePolicies) Update(ctx context.Context, imageContentSourcePolicy *v1alpha1.ImageContentSourcePolicy, opts v1.UpdateOptions) (result *v1alpha1.ImageContentSourcePolicy, err error) {
- emptyResult := &v1alpha1.ImageContentSourcePolicy{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(imagecontentsourcepoliciesResource, imageContentSourcePolicy, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.ImageContentSourcePolicy), err
-}
-
-// Delete takes name of the imageContentSourcePolicy and deletes it. Returns an error if one occurs.
-func (c *FakeImageContentSourcePolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(imagecontentsourcepoliciesResource, name, opts), &v1alpha1.ImageContentSourcePolicy{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeImageContentSourcePolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(imagecontentsourcepoliciesResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1alpha1.ImageContentSourcePolicyList{})
- return err
-}
-
-// Patch applies the patch and returns the patched imageContentSourcePolicy.
-func (c *FakeImageContentSourcePolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ImageContentSourcePolicy, err error) {
- emptyResult := &v1alpha1.ImageContentSourcePolicy{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(imagecontentsourcepoliciesResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.ImageContentSourcePolicy), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied imageContentSourcePolicy.
-func (c *FakeImageContentSourcePolicies) Apply(ctx context.Context, imageContentSourcePolicy *operatorv1alpha1.ImageContentSourcePolicyApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.ImageContentSourcePolicy, err error) {
- if imageContentSourcePolicy == nil {
- return nil, fmt.Errorf("imageContentSourcePolicy provided to Apply must not be nil")
- }
- data, err := json.Marshal(imageContentSourcePolicy)
- if err != nil {
- return nil, err
- }
- name := imageContentSourcePolicy.Name
- if name == nil {
- return nil, fmt.Errorf("imageContentSourcePolicy.Name must be provided to Apply")
- }
- emptyResult := &v1alpha1.ImageContentSourcePolicy{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(imagecontentsourcepoliciesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeImageContentSourcePolicies(fake *FakeOperatorV1alpha1) typedoperatorv1alpha1.ImageContentSourcePolicyInterface {
+ return &fakeImageContentSourcePolicies{
+ gentype.NewFakeClientWithListAndApply[*v1alpha1.ImageContentSourcePolicy, *v1alpha1.ImageContentSourcePolicyList, *operatorv1alpha1.ImageContentSourcePolicyApplyConfiguration](
+ fake.Fake,
+ "",
+ v1alpha1.SchemeGroupVersion.WithResource("imagecontentsourcepolicies"),
+ v1alpha1.SchemeGroupVersion.WithKind("ImageContentSourcePolicy"),
+ func() *v1alpha1.ImageContentSourcePolicy { return &v1alpha1.ImageContentSourcePolicy{} },
+ func() *v1alpha1.ImageContentSourcePolicyList { return &v1alpha1.ImageContentSourcePolicyList{} },
+ func(dst, src *v1alpha1.ImageContentSourcePolicyList) { dst.ListMeta = src.ListMeta },
+ func(list *v1alpha1.ImageContentSourcePolicyList) []*v1alpha1.ImageContentSourcePolicy {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1alpha1.ImageContentSourcePolicyList, items []*v1alpha1.ImageContentSourcePolicy) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1alpha1.ImageContentSourcePolicy), err
}
diff --git a/operator/clientset/versioned/typed/operator/v1alpha1/fake/fake_olm.go b/operator/clientset/versioned/typed/operator/v1alpha1/fake/fake_olm.go
index ad17394bf..d5dddebc2 100644
--- a/operator/clientset/versioned/typed/operator/v1alpha1/fake/fake_olm.go
+++ b/operator/clientset/versioned/typed/operator/v1alpha1/fake/fake_olm.go
@@ -3,168 +3,31 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1alpha1 "github.com/openshift/api/operator/v1alpha1"
operatorv1alpha1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1alpha1"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedoperatorv1alpha1 "github.com/openshift/client-go/operator/clientset/versioned/typed/operator/v1alpha1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeOLMs implements OLMInterface
-type FakeOLMs struct {
+// fakeOLMs implements OLMInterface
+type fakeOLMs struct {
+ *gentype.FakeClientWithListAndApply[*v1alpha1.OLM, *v1alpha1.OLMList, *operatorv1alpha1.OLMApplyConfiguration]
Fake *FakeOperatorV1alpha1
}
-var olmsResource = v1alpha1.SchemeGroupVersion.WithResource("olms")
-
-var olmsKind = v1alpha1.SchemeGroupVersion.WithKind("OLM")
-
-// Get takes name of the oLM, and returns the corresponding oLM object, and an error if there is any.
-func (c *FakeOLMs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.OLM, err error) {
- emptyResult := &v1alpha1.OLM{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(olmsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.OLM), err
-}
-
-// List takes label and field selectors, and returns the list of OLMs that match those selectors.
-func (c *FakeOLMs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.OLMList, err error) {
- emptyResult := &v1alpha1.OLMList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(olmsResource, olmsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1alpha1.OLMList{ListMeta: obj.(*v1alpha1.OLMList).ListMeta}
- for _, item := range obj.(*v1alpha1.OLMList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested oLMs.
-func (c *FakeOLMs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(olmsResource, opts))
-}
-
-// Create takes the representation of a oLM and creates it. Returns the server's representation of the oLM, and an error, if there is any.
-func (c *FakeOLMs) Create(ctx context.Context, oLM *v1alpha1.OLM, opts v1.CreateOptions) (result *v1alpha1.OLM, err error) {
- emptyResult := &v1alpha1.OLM{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(olmsResource, oLM, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.OLM), err
-}
-
-// Update takes the representation of a oLM and updates it. Returns the server's representation of the oLM, and an error, if there is any.
-func (c *FakeOLMs) Update(ctx context.Context, oLM *v1alpha1.OLM, opts v1.UpdateOptions) (result *v1alpha1.OLM, err error) {
- emptyResult := &v1alpha1.OLM{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(olmsResource, oLM, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.OLM), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeOLMs) UpdateStatus(ctx context.Context, oLM *v1alpha1.OLM, opts v1.UpdateOptions) (result *v1alpha1.OLM, err error) {
- emptyResult := &v1alpha1.OLM{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(olmsResource, "status", oLM, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.OLM), err
-}
-
-// Delete takes name of the oLM and deletes it. Returns an error if one occurs.
-func (c *FakeOLMs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(olmsResource, name, opts), &v1alpha1.OLM{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeOLMs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(olmsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1alpha1.OLMList{})
- return err
-}
-
-// Patch applies the patch and returns the patched oLM.
-func (c *FakeOLMs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.OLM, err error) {
- emptyResult := &v1alpha1.OLM{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(olmsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.OLM), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied oLM.
-func (c *FakeOLMs) Apply(ctx context.Context, oLM *operatorv1alpha1.OLMApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.OLM, err error) {
- if oLM == nil {
- return nil, fmt.Errorf("oLM provided to Apply must not be nil")
- }
- data, err := json.Marshal(oLM)
- if err != nil {
- return nil, err
- }
- name := oLM.Name
- if name == nil {
- return nil, fmt.Errorf("oLM.Name must be provided to Apply")
- }
- emptyResult := &v1alpha1.OLM{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(olmsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.OLM), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeOLMs) ApplyStatus(ctx context.Context, oLM *operatorv1alpha1.OLMApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.OLM, err error) {
- if oLM == nil {
- return nil, fmt.Errorf("oLM provided to Apply must not be nil")
- }
- data, err := json.Marshal(oLM)
- if err != nil {
- return nil, err
- }
- name := oLM.Name
- if name == nil {
- return nil, fmt.Errorf("oLM.Name must be provided to Apply")
- }
- emptyResult := &v1alpha1.OLM{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(olmsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeOLMs(fake *FakeOperatorV1alpha1) typedoperatorv1alpha1.OLMInterface {
+ return &fakeOLMs{
+ gentype.NewFakeClientWithListAndApply[*v1alpha1.OLM, *v1alpha1.OLMList, *operatorv1alpha1.OLMApplyConfiguration](
+ fake.Fake,
+ "",
+ v1alpha1.SchemeGroupVersion.WithResource("olms"),
+ v1alpha1.SchemeGroupVersion.WithKind("OLM"),
+ func() *v1alpha1.OLM { return &v1alpha1.OLM{} },
+ func() *v1alpha1.OLMList { return &v1alpha1.OLMList{} },
+ func(dst, src *v1alpha1.OLMList) { dst.ListMeta = src.ListMeta },
+ func(list *v1alpha1.OLMList) []*v1alpha1.OLM { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1alpha1.OLMList, items []*v1alpha1.OLM) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1alpha1.OLM), err
}
diff --git a/operator/clientset/versioned/typed/operator/v1alpha1/fake/fake_operator_client.go b/operator/clientset/versioned/typed/operator/v1alpha1/fake/fake_operator_client.go
index 44aa96919..5d8398bf8 100644
--- a/operator/clientset/versioned/typed/operator/v1alpha1/fake/fake_operator_client.go
+++ b/operator/clientset/versioned/typed/operator/v1alpha1/fake/fake_operator_client.go
@@ -13,19 +13,19 @@ type FakeOperatorV1alpha1 struct {
}
func (c *FakeOperatorV1alpha1) ClusterVersionOperators() v1alpha1.ClusterVersionOperatorInterface {
- return &FakeClusterVersionOperators{c}
+ return newFakeClusterVersionOperators(c)
}
func (c *FakeOperatorV1alpha1) EtcdBackups() v1alpha1.EtcdBackupInterface {
- return &FakeEtcdBackups{c}
+ return newFakeEtcdBackups(c)
}
func (c *FakeOperatorV1alpha1) ImageContentSourcePolicies() v1alpha1.ImageContentSourcePolicyInterface {
- return &FakeImageContentSourcePolicies{c}
+ return newFakeImageContentSourcePolicies(c)
}
func (c *FakeOperatorV1alpha1) OLMs() v1alpha1.OLMInterface {
- return &FakeOLMs{c}
+ return newFakeOLMs(c)
}
// RESTClient returns a RESTClient that is used to communicate
diff --git a/operator/clientset/versioned/typed/operator/v1alpha1/imagecontentsourcepolicy.go b/operator/clientset/versioned/typed/operator/v1alpha1/imagecontentsourcepolicy.go
index db39b2bc5..8073b59e1 100644
--- a/operator/clientset/versioned/typed/operator/v1alpha1/imagecontentsourcepolicy.go
+++ b/operator/clientset/versioned/typed/operator/v1alpha1/imagecontentsourcepolicy.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- "context"
+ context "context"
- v1alpha1 "github.com/openshift/api/operator/v1alpha1"
- operatorv1alpha1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1alpha1"
+ operatorv1alpha1 "github.com/openshift/api/operator/v1alpha1"
+ applyconfigurationsoperatorv1alpha1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1alpha1"
scheme "github.com/openshift/client-go/operator/clientset/versioned/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,32 +22,35 @@ type ImageContentSourcePoliciesGetter interface {
// ImageContentSourcePolicyInterface has methods to work with ImageContentSourcePolicy resources.
type ImageContentSourcePolicyInterface interface {
- Create(ctx context.Context, imageContentSourcePolicy *v1alpha1.ImageContentSourcePolicy, opts v1.CreateOptions) (*v1alpha1.ImageContentSourcePolicy, error)
- Update(ctx context.Context, imageContentSourcePolicy *v1alpha1.ImageContentSourcePolicy, opts v1.UpdateOptions) (*v1alpha1.ImageContentSourcePolicy, error)
+ Create(ctx context.Context, imageContentSourcePolicy *operatorv1alpha1.ImageContentSourcePolicy, opts v1.CreateOptions) (*operatorv1alpha1.ImageContentSourcePolicy, error)
+ Update(ctx context.Context, imageContentSourcePolicy *operatorv1alpha1.ImageContentSourcePolicy, opts v1.UpdateOptions) (*operatorv1alpha1.ImageContentSourcePolicy, error)
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.ImageContentSourcePolicy, error)
- List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.ImageContentSourcePolicyList, error)
+ Get(ctx context.Context, name string, opts v1.GetOptions) (*operatorv1alpha1.ImageContentSourcePolicy, error)
+ List(ctx context.Context, opts v1.ListOptions) (*operatorv1alpha1.ImageContentSourcePolicyList, error)
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ImageContentSourcePolicy, err error)
- Apply(ctx context.Context, imageContentSourcePolicy *operatorv1alpha1.ImageContentSourcePolicyApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.ImageContentSourcePolicy, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *operatorv1alpha1.ImageContentSourcePolicy, err error)
+ Apply(ctx context.Context, imageContentSourcePolicy *applyconfigurationsoperatorv1alpha1.ImageContentSourcePolicyApplyConfiguration, opts v1.ApplyOptions) (result *operatorv1alpha1.ImageContentSourcePolicy, err error)
ImageContentSourcePolicyExpansion
}
// imageContentSourcePolicies implements ImageContentSourcePolicyInterface
type imageContentSourcePolicies struct {
- *gentype.ClientWithListAndApply[*v1alpha1.ImageContentSourcePolicy, *v1alpha1.ImageContentSourcePolicyList, *operatorv1alpha1.ImageContentSourcePolicyApplyConfiguration]
+ *gentype.ClientWithListAndApply[*operatorv1alpha1.ImageContentSourcePolicy, *operatorv1alpha1.ImageContentSourcePolicyList, *applyconfigurationsoperatorv1alpha1.ImageContentSourcePolicyApplyConfiguration]
}
// newImageContentSourcePolicies returns a ImageContentSourcePolicies
func newImageContentSourcePolicies(c *OperatorV1alpha1Client) *imageContentSourcePolicies {
return &imageContentSourcePolicies{
- gentype.NewClientWithListAndApply[*v1alpha1.ImageContentSourcePolicy, *v1alpha1.ImageContentSourcePolicyList, *operatorv1alpha1.ImageContentSourcePolicyApplyConfiguration](
+ gentype.NewClientWithListAndApply[*operatorv1alpha1.ImageContentSourcePolicy, *operatorv1alpha1.ImageContentSourcePolicyList, *applyconfigurationsoperatorv1alpha1.ImageContentSourcePolicyApplyConfiguration](
"imagecontentsourcepolicies",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1alpha1.ImageContentSourcePolicy { return &v1alpha1.ImageContentSourcePolicy{} },
- func() *v1alpha1.ImageContentSourcePolicyList { return &v1alpha1.ImageContentSourcePolicyList{} }),
+ func() *operatorv1alpha1.ImageContentSourcePolicy { return &operatorv1alpha1.ImageContentSourcePolicy{} },
+ func() *operatorv1alpha1.ImageContentSourcePolicyList {
+ return &operatorv1alpha1.ImageContentSourcePolicyList{}
+ },
+ ),
}
}
diff --git a/operator/clientset/versioned/typed/operator/v1alpha1/olm.go b/operator/clientset/versioned/typed/operator/v1alpha1/olm.go
index e5b701abb..6a8bfd05c 100644
--- a/operator/clientset/versioned/typed/operator/v1alpha1/olm.go
+++ b/operator/clientset/versioned/typed/operator/v1alpha1/olm.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- "context"
+ context "context"
- v1alpha1 "github.com/openshift/api/operator/v1alpha1"
- operatorv1alpha1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1alpha1"
+ operatorv1alpha1 "github.com/openshift/api/operator/v1alpha1"
+ applyconfigurationsoperatorv1alpha1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1alpha1"
scheme "github.com/openshift/client-go/operator/clientset/versioned/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type OLMsGetter interface {
// OLMInterface has methods to work with OLM resources.
type OLMInterface interface {
- Create(ctx context.Context, oLM *v1alpha1.OLM, opts v1.CreateOptions) (*v1alpha1.OLM, error)
- Update(ctx context.Context, oLM *v1alpha1.OLM, opts v1.UpdateOptions) (*v1alpha1.OLM, error)
+ Create(ctx context.Context, oLM *operatorv1alpha1.OLM, opts v1.CreateOptions) (*operatorv1alpha1.OLM, error)
+ Update(ctx context.Context, oLM *operatorv1alpha1.OLM, opts v1.UpdateOptions) (*operatorv1alpha1.OLM, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, oLM *v1alpha1.OLM, opts v1.UpdateOptions) (*v1alpha1.OLM, error)
+ UpdateStatus(ctx context.Context, oLM *operatorv1alpha1.OLM, opts v1.UpdateOptions) (*operatorv1alpha1.OLM, error)
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.OLM, error)
- List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.OLMList, error)
+ Get(ctx context.Context, name string, opts v1.GetOptions) (*operatorv1alpha1.OLM, error)
+ List(ctx context.Context, opts v1.ListOptions) (*operatorv1alpha1.OLMList, error)
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.OLM, err error)
- Apply(ctx context.Context, oLM *operatorv1alpha1.OLMApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.OLM, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *operatorv1alpha1.OLM, err error)
+ Apply(ctx context.Context, oLM *applyconfigurationsoperatorv1alpha1.OLMApplyConfiguration, opts v1.ApplyOptions) (result *operatorv1alpha1.OLM, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, oLM *operatorv1alpha1.OLMApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.OLM, err error)
+ ApplyStatus(ctx context.Context, oLM *applyconfigurationsoperatorv1alpha1.OLMApplyConfiguration, opts v1.ApplyOptions) (result *operatorv1alpha1.OLM, err error)
OLMExpansion
}
// oLMs implements OLMInterface
type oLMs struct {
- *gentype.ClientWithListAndApply[*v1alpha1.OLM, *v1alpha1.OLMList, *operatorv1alpha1.OLMApplyConfiguration]
+ *gentype.ClientWithListAndApply[*operatorv1alpha1.OLM, *operatorv1alpha1.OLMList, *applyconfigurationsoperatorv1alpha1.OLMApplyConfiguration]
}
// newOLMs returns a OLMs
func newOLMs(c *OperatorV1alpha1Client) *oLMs {
return &oLMs{
- gentype.NewClientWithListAndApply[*v1alpha1.OLM, *v1alpha1.OLMList, *operatorv1alpha1.OLMApplyConfiguration](
+ gentype.NewClientWithListAndApply[*operatorv1alpha1.OLM, *operatorv1alpha1.OLMList, *applyconfigurationsoperatorv1alpha1.OLMApplyConfiguration](
"olms",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1alpha1.OLM { return &v1alpha1.OLM{} },
- func() *v1alpha1.OLMList { return &v1alpha1.OLMList{} }),
+ func() *operatorv1alpha1.OLM { return &operatorv1alpha1.OLM{} },
+ func() *operatorv1alpha1.OLMList { return &operatorv1alpha1.OLMList{} },
+ ),
}
}
diff --git a/operator/clientset/versioned/typed/operator/v1alpha1/operator_client.go b/operator/clientset/versioned/typed/operator/v1alpha1/operator_client.go
index 07a9fbcf7..f9db341b1 100644
--- a/operator/clientset/versioned/typed/operator/v1alpha1/operator_client.go
+++ b/operator/clientset/versioned/typed/operator/v1alpha1/operator_client.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- "net/http"
+ http "net/http"
- v1alpha1 "github.com/openshift/api/operator/v1alpha1"
- "github.com/openshift/client-go/operator/clientset/versioned/scheme"
+ operatorv1alpha1 "github.com/openshift/api/operator/v1alpha1"
+ scheme "github.com/openshift/client-go/operator/clientset/versioned/scheme"
rest "k8s.io/client-go/rest"
)
@@ -84,10 +84,10 @@ func New(c rest.Interface) *OperatorV1alpha1Client {
}
func setConfigDefaults(config *rest.Config) error {
- gv := v1alpha1.SchemeGroupVersion
+ gv := operatorv1alpha1.SchemeGroupVersion
config.GroupVersion = &gv
config.APIPath = "/apis"
- config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
+ config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion()
if config.UserAgent == "" {
config.UserAgent = rest.DefaultKubernetesUserAgent()
diff --git a/operator/informers/externalversions/generic.go b/operator/informers/externalversions/generic.go
index fbc83e5ef..9ef7b51e1 100644
--- a/operator/informers/externalversions/generic.go
+++ b/operator/informers/externalversions/generic.go
@@ -3,7 +3,7 @@
package externalversions
import (
- "fmt"
+ fmt "fmt"
v1 "github.com/openshift/api/operator/v1"
v1alpha1 "github.com/openshift/api/operator/v1alpha1"
diff --git a/operator/informers/externalversions/operator/v1/authentication.go b/operator/informers/externalversions/operator/v1/authentication.go
index 5ba8a37c1..6fb982888 100644
--- a/operator/informers/externalversions/operator/v1/authentication.go
+++ b/operator/informers/externalversions/operator/v1/authentication.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- operatorv1 "github.com/openshift/api/operator/v1"
+ apioperatorv1 "github.com/openshift/api/operator/v1"
versioned "github.com/openshift/client-go/operator/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/operator/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/operator/listers/operator/v1"
+ operatorv1 "github.com/openshift/client-go/operator/listers/operator/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// Authentications.
type AuthenticationInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.AuthenticationLister
+ Lister() operatorv1.AuthenticationLister
}
type authenticationInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredAuthenticationInformer(client versioned.Interface, resyncPeriod
return client.OperatorV1().Authentications().Watch(context.TODO(), options)
},
},
- &operatorv1.Authentication{},
+ &apioperatorv1.Authentication{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *authenticationInformer) defaultInformer(client versioned.Interface, res
}
func (f *authenticationInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&operatorv1.Authentication{}, f.defaultInformer)
+ return f.factory.InformerFor(&apioperatorv1.Authentication{}, f.defaultInformer)
}
-func (f *authenticationInformer) Lister() v1.AuthenticationLister {
- return v1.NewAuthenticationLister(f.Informer().GetIndexer())
+func (f *authenticationInformer) Lister() operatorv1.AuthenticationLister {
+ return operatorv1.NewAuthenticationLister(f.Informer().GetIndexer())
}
diff --git a/operator/informers/externalversions/operator/v1/cloudcredential.go b/operator/informers/externalversions/operator/v1/cloudcredential.go
index f2e7c71d1..c3aa02afd 100644
--- a/operator/informers/externalversions/operator/v1/cloudcredential.go
+++ b/operator/informers/externalversions/operator/v1/cloudcredential.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- operatorv1 "github.com/openshift/api/operator/v1"
+ apioperatorv1 "github.com/openshift/api/operator/v1"
versioned "github.com/openshift/client-go/operator/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/operator/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/operator/listers/operator/v1"
+ operatorv1 "github.com/openshift/client-go/operator/listers/operator/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// CloudCredentials.
type CloudCredentialInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.CloudCredentialLister
+ Lister() operatorv1.CloudCredentialLister
}
type cloudCredentialInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredCloudCredentialInformer(client versioned.Interface, resyncPeriod
return client.OperatorV1().CloudCredentials().Watch(context.TODO(), options)
},
},
- &operatorv1.CloudCredential{},
+ &apioperatorv1.CloudCredential{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *cloudCredentialInformer) defaultInformer(client versioned.Interface, re
}
func (f *cloudCredentialInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&operatorv1.CloudCredential{}, f.defaultInformer)
+ return f.factory.InformerFor(&apioperatorv1.CloudCredential{}, f.defaultInformer)
}
-func (f *cloudCredentialInformer) Lister() v1.CloudCredentialLister {
- return v1.NewCloudCredentialLister(f.Informer().GetIndexer())
+func (f *cloudCredentialInformer) Lister() operatorv1.CloudCredentialLister {
+ return operatorv1.NewCloudCredentialLister(f.Informer().GetIndexer())
}
diff --git a/operator/informers/externalversions/operator/v1/clustercsidriver.go b/operator/informers/externalversions/operator/v1/clustercsidriver.go
index 8f3991e89..c9cf5143e 100644
--- a/operator/informers/externalversions/operator/v1/clustercsidriver.go
+++ b/operator/informers/externalversions/operator/v1/clustercsidriver.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- operatorv1 "github.com/openshift/api/operator/v1"
+ apioperatorv1 "github.com/openshift/api/operator/v1"
versioned "github.com/openshift/client-go/operator/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/operator/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/operator/listers/operator/v1"
+ operatorv1 "github.com/openshift/client-go/operator/listers/operator/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// ClusterCSIDrivers.
type ClusterCSIDriverInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.ClusterCSIDriverLister
+ Lister() operatorv1.ClusterCSIDriverLister
}
type clusterCSIDriverInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredClusterCSIDriverInformer(client versioned.Interface, resyncPerio
return client.OperatorV1().ClusterCSIDrivers().Watch(context.TODO(), options)
},
},
- &operatorv1.ClusterCSIDriver{},
+ &apioperatorv1.ClusterCSIDriver{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *clusterCSIDriverInformer) defaultInformer(client versioned.Interface, r
}
func (f *clusterCSIDriverInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&operatorv1.ClusterCSIDriver{}, f.defaultInformer)
+ return f.factory.InformerFor(&apioperatorv1.ClusterCSIDriver{}, f.defaultInformer)
}
-func (f *clusterCSIDriverInformer) Lister() v1.ClusterCSIDriverLister {
- return v1.NewClusterCSIDriverLister(f.Informer().GetIndexer())
+func (f *clusterCSIDriverInformer) Lister() operatorv1.ClusterCSIDriverLister {
+ return operatorv1.NewClusterCSIDriverLister(f.Informer().GetIndexer())
}
diff --git a/operator/informers/externalversions/operator/v1/config.go b/operator/informers/externalversions/operator/v1/config.go
index b75116935..6af4ed2d3 100644
--- a/operator/informers/externalversions/operator/v1/config.go
+++ b/operator/informers/externalversions/operator/v1/config.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- operatorv1 "github.com/openshift/api/operator/v1"
+ apioperatorv1 "github.com/openshift/api/operator/v1"
versioned "github.com/openshift/client-go/operator/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/operator/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/operator/listers/operator/v1"
+ operatorv1 "github.com/openshift/client-go/operator/listers/operator/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// Configs.
type ConfigInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.ConfigLister
+ Lister() operatorv1.ConfigLister
}
type configInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredConfigInformer(client versioned.Interface, resyncPeriod time.Dur
return client.OperatorV1().Configs().Watch(context.TODO(), options)
},
},
- &operatorv1.Config{},
+ &apioperatorv1.Config{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *configInformer) defaultInformer(client versioned.Interface, resyncPerio
}
func (f *configInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&operatorv1.Config{}, f.defaultInformer)
+ return f.factory.InformerFor(&apioperatorv1.Config{}, f.defaultInformer)
}
-func (f *configInformer) Lister() v1.ConfigLister {
- return v1.NewConfigLister(f.Informer().GetIndexer())
+func (f *configInformer) Lister() operatorv1.ConfigLister {
+ return operatorv1.NewConfigLister(f.Informer().GetIndexer())
}
diff --git a/operator/informers/externalversions/operator/v1/console.go b/operator/informers/externalversions/operator/v1/console.go
index 587f0cc0c..18c824457 100644
--- a/operator/informers/externalversions/operator/v1/console.go
+++ b/operator/informers/externalversions/operator/v1/console.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- operatorv1 "github.com/openshift/api/operator/v1"
+ apioperatorv1 "github.com/openshift/api/operator/v1"
versioned "github.com/openshift/client-go/operator/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/operator/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/operator/listers/operator/v1"
+ operatorv1 "github.com/openshift/client-go/operator/listers/operator/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// Consoles.
type ConsoleInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.ConsoleLister
+ Lister() operatorv1.ConsoleLister
}
type consoleInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredConsoleInformer(client versioned.Interface, resyncPeriod time.Du
return client.OperatorV1().Consoles().Watch(context.TODO(), options)
},
},
- &operatorv1.Console{},
+ &apioperatorv1.Console{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *consoleInformer) defaultInformer(client versioned.Interface, resyncPeri
}
func (f *consoleInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&operatorv1.Console{}, f.defaultInformer)
+ return f.factory.InformerFor(&apioperatorv1.Console{}, f.defaultInformer)
}
-func (f *consoleInformer) Lister() v1.ConsoleLister {
- return v1.NewConsoleLister(f.Informer().GetIndexer())
+func (f *consoleInformer) Lister() operatorv1.ConsoleLister {
+ return operatorv1.NewConsoleLister(f.Informer().GetIndexer())
}
diff --git a/operator/informers/externalversions/operator/v1/csisnapshotcontroller.go b/operator/informers/externalversions/operator/v1/csisnapshotcontroller.go
index 2319c7090..ca889d29c 100644
--- a/operator/informers/externalversions/operator/v1/csisnapshotcontroller.go
+++ b/operator/informers/externalversions/operator/v1/csisnapshotcontroller.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- operatorv1 "github.com/openshift/api/operator/v1"
+ apioperatorv1 "github.com/openshift/api/operator/v1"
versioned "github.com/openshift/client-go/operator/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/operator/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/operator/listers/operator/v1"
+ operatorv1 "github.com/openshift/client-go/operator/listers/operator/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// CSISnapshotControllers.
type CSISnapshotControllerInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.CSISnapshotControllerLister
+ Lister() operatorv1.CSISnapshotControllerLister
}
type cSISnapshotControllerInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredCSISnapshotControllerInformer(client versioned.Interface, resync
return client.OperatorV1().CSISnapshotControllers().Watch(context.TODO(), options)
},
},
- &operatorv1.CSISnapshotController{},
+ &apioperatorv1.CSISnapshotController{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *cSISnapshotControllerInformer) defaultInformer(client versioned.Interfa
}
func (f *cSISnapshotControllerInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&operatorv1.CSISnapshotController{}, f.defaultInformer)
+ return f.factory.InformerFor(&apioperatorv1.CSISnapshotController{}, f.defaultInformer)
}
-func (f *cSISnapshotControllerInformer) Lister() v1.CSISnapshotControllerLister {
- return v1.NewCSISnapshotControllerLister(f.Informer().GetIndexer())
+func (f *cSISnapshotControllerInformer) Lister() operatorv1.CSISnapshotControllerLister {
+ return operatorv1.NewCSISnapshotControllerLister(f.Informer().GetIndexer())
}
diff --git a/operator/informers/externalversions/operator/v1/dns.go b/operator/informers/externalversions/operator/v1/dns.go
index 8e718ddbc..a97b10064 100644
--- a/operator/informers/externalversions/operator/v1/dns.go
+++ b/operator/informers/externalversions/operator/v1/dns.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- operatorv1 "github.com/openshift/api/operator/v1"
+ apioperatorv1 "github.com/openshift/api/operator/v1"
versioned "github.com/openshift/client-go/operator/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/operator/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/operator/listers/operator/v1"
+ operatorv1 "github.com/openshift/client-go/operator/listers/operator/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// DNSes.
type DNSInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.DNSLister
+ Lister() operatorv1.DNSLister
}
type dNSInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredDNSInformer(client versioned.Interface, resyncPeriod time.Durati
return client.OperatorV1().DNSes().Watch(context.TODO(), options)
},
},
- &operatorv1.DNS{},
+ &apioperatorv1.DNS{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *dNSInformer) defaultInformer(client versioned.Interface, resyncPeriod t
}
func (f *dNSInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&operatorv1.DNS{}, f.defaultInformer)
+ return f.factory.InformerFor(&apioperatorv1.DNS{}, f.defaultInformer)
}
-func (f *dNSInformer) Lister() v1.DNSLister {
- return v1.NewDNSLister(f.Informer().GetIndexer())
+func (f *dNSInformer) Lister() operatorv1.DNSLister {
+ return operatorv1.NewDNSLister(f.Informer().GetIndexer())
}
diff --git a/operator/informers/externalversions/operator/v1/etcd.go b/operator/informers/externalversions/operator/v1/etcd.go
index bd4ee72db..e410bd016 100644
--- a/operator/informers/externalversions/operator/v1/etcd.go
+++ b/operator/informers/externalversions/operator/v1/etcd.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- operatorv1 "github.com/openshift/api/operator/v1"
+ apioperatorv1 "github.com/openshift/api/operator/v1"
versioned "github.com/openshift/client-go/operator/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/operator/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/operator/listers/operator/v1"
+ operatorv1 "github.com/openshift/client-go/operator/listers/operator/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// Etcds.
type EtcdInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.EtcdLister
+ Lister() operatorv1.EtcdLister
}
type etcdInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredEtcdInformer(client versioned.Interface, resyncPeriod time.Durat
return client.OperatorV1().Etcds().Watch(context.TODO(), options)
},
},
- &operatorv1.Etcd{},
+ &apioperatorv1.Etcd{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *etcdInformer) defaultInformer(client versioned.Interface, resyncPeriod
}
func (f *etcdInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&operatorv1.Etcd{}, f.defaultInformer)
+ return f.factory.InformerFor(&apioperatorv1.Etcd{}, f.defaultInformer)
}
-func (f *etcdInformer) Lister() v1.EtcdLister {
- return v1.NewEtcdLister(f.Informer().GetIndexer())
+func (f *etcdInformer) Lister() operatorv1.EtcdLister {
+ return operatorv1.NewEtcdLister(f.Informer().GetIndexer())
}
diff --git a/operator/informers/externalversions/operator/v1/ingresscontroller.go b/operator/informers/externalversions/operator/v1/ingresscontroller.go
index 06578a2b8..daa94221e 100644
--- a/operator/informers/externalversions/operator/v1/ingresscontroller.go
+++ b/operator/informers/externalversions/operator/v1/ingresscontroller.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- operatorv1 "github.com/openshift/api/operator/v1"
+ apioperatorv1 "github.com/openshift/api/operator/v1"
versioned "github.com/openshift/client-go/operator/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/operator/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/operator/listers/operator/v1"
+ operatorv1 "github.com/openshift/client-go/operator/listers/operator/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// IngressControllers.
type IngressControllerInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.IngressControllerLister
+ Lister() operatorv1.IngressControllerLister
}
type ingressControllerInformer struct {
@@ -55,7 +55,7 @@ func NewFilteredIngressControllerInformer(client versioned.Interface, namespace
return client.OperatorV1().IngressControllers(namespace).Watch(context.TODO(), options)
},
},
- &operatorv1.IngressController{},
+ &apioperatorv1.IngressController{},
resyncPeriod,
indexers,
)
@@ -66,9 +66,9 @@ func (f *ingressControllerInformer) defaultInformer(client versioned.Interface,
}
func (f *ingressControllerInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&operatorv1.IngressController{}, f.defaultInformer)
+ return f.factory.InformerFor(&apioperatorv1.IngressController{}, f.defaultInformer)
}
-func (f *ingressControllerInformer) Lister() v1.IngressControllerLister {
- return v1.NewIngressControllerLister(f.Informer().GetIndexer())
+func (f *ingressControllerInformer) Lister() operatorv1.IngressControllerLister {
+ return operatorv1.NewIngressControllerLister(f.Informer().GetIndexer())
}
diff --git a/operator/informers/externalversions/operator/v1/insightsoperator.go b/operator/informers/externalversions/operator/v1/insightsoperator.go
index 422800665..1ea8c183a 100644
--- a/operator/informers/externalversions/operator/v1/insightsoperator.go
+++ b/operator/informers/externalversions/operator/v1/insightsoperator.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- operatorv1 "github.com/openshift/api/operator/v1"
+ apioperatorv1 "github.com/openshift/api/operator/v1"
versioned "github.com/openshift/client-go/operator/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/operator/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/operator/listers/operator/v1"
+ operatorv1 "github.com/openshift/client-go/operator/listers/operator/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// InsightsOperators.
type InsightsOperatorInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.InsightsOperatorLister
+ Lister() operatorv1.InsightsOperatorLister
}
type insightsOperatorInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredInsightsOperatorInformer(client versioned.Interface, resyncPerio
return client.OperatorV1().InsightsOperators().Watch(context.TODO(), options)
},
},
- &operatorv1.InsightsOperator{},
+ &apioperatorv1.InsightsOperator{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *insightsOperatorInformer) defaultInformer(client versioned.Interface, r
}
func (f *insightsOperatorInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&operatorv1.InsightsOperator{}, f.defaultInformer)
+ return f.factory.InformerFor(&apioperatorv1.InsightsOperator{}, f.defaultInformer)
}
-func (f *insightsOperatorInformer) Lister() v1.InsightsOperatorLister {
- return v1.NewInsightsOperatorLister(f.Informer().GetIndexer())
+func (f *insightsOperatorInformer) Lister() operatorv1.InsightsOperatorLister {
+ return operatorv1.NewInsightsOperatorLister(f.Informer().GetIndexer())
}
diff --git a/operator/informers/externalversions/operator/v1/kubeapiserver.go b/operator/informers/externalversions/operator/v1/kubeapiserver.go
index 6aa0cd4eb..21ffb7900 100644
--- a/operator/informers/externalversions/operator/v1/kubeapiserver.go
+++ b/operator/informers/externalversions/operator/v1/kubeapiserver.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- operatorv1 "github.com/openshift/api/operator/v1"
+ apioperatorv1 "github.com/openshift/api/operator/v1"
versioned "github.com/openshift/client-go/operator/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/operator/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/operator/listers/operator/v1"
+ operatorv1 "github.com/openshift/client-go/operator/listers/operator/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// KubeAPIServers.
type KubeAPIServerInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.KubeAPIServerLister
+ Lister() operatorv1.KubeAPIServerLister
}
type kubeAPIServerInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredKubeAPIServerInformer(client versioned.Interface, resyncPeriod t
return client.OperatorV1().KubeAPIServers().Watch(context.TODO(), options)
},
},
- &operatorv1.KubeAPIServer{},
+ &apioperatorv1.KubeAPIServer{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *kubeAPIServerInformer) defaultInformer(client versioned.Interface, resy
}
func (f *kubeAPIServerInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&operatorv1.KubeAPIServer{}, f.defaultInformer)
+ return f.factory.InformerFor(&apioperatorv1.KubeAPIServer{}, f.defaultInformer)
}
-func (f *kubeAPIServerInformer) Lister() v1.KubeAPIServerLister {
- return v1.NewKubeAPIServerLister(f.Informer().GetIndexer())
+func (f *kubeAPIServerInformer) Lister() operatorv1.KubeAPIServerLister {
+ return operatorv1.NewKubeAPIServerLister(f.Informer().GetIndexer())
}
diff --git a/operator/informers/externalversions/operator/v1/kubecontrollermanager.go b/operator/informers/externalversions/operator/v1/kubecontrollermanager.go
index 277ea92fc..3554d60f5 100644
--- a/operator/informers/externalversions/operator/v1/kubecontrollermanager.go
+++ b/operator/informers/externalversions/operator/v1/kubecontrollermanager.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- operatorv1 "github.com/openshift/api/operator/v1"
+ apioperatorv1 "github.com/openshift/api/operator/v1"
versioned "github.com/openshift/client-go/operator/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/operator/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/operator/listers/operator/v1"
+ operatorv1 "github.com/openshift/client-go/operator/listers/operator/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// KubeControllerManagers.
type KubeControllerManagerInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.KubeControllerManagerLister
+ Lister() operatorv1.KubeControllerManagerLister
}
type kubeControllerManagerInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredKubeControllerManagerInformer(client versioned.Interface, resync
return client.OperatorV1().KubeControllerManagers().Watch(context.TODO(), options)
},
},
- &operatorv1.KubeControllerManager{},
+ &apioperatorv1.KubeControllerManager{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *kubeControllerManagerInformer) defaultInformer(client versioned.Interfa
}
func (f *kubeControllerManagerInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&operatorv1.KubeControllerManager{}, f.defaultInformer)
+ return f.factory.InformerFor(&apioperatorv1.KubeControllerManager{}, f.defaultInformer)
}
-func (f *kubeControllerManagerInformer) Lister() v1.KubeControllerManagerLister {
- return v1.NewKubeControllerManagerLister(f.Informer().GetIndexer())
+func (f *kubeControllerManagerInformer) Lister() operatorv1.KubeControllerManagerLister {
+ return operatorv1.NewKubeControllerManagerLister(f.Informer().GetIndexer())
}
diff --git a/operator/informers/externalversions/operator/v1/kubescheduler.go b/operator/informers/externalversions/operator/v1/kubescheduler.go
index 91d55bd53..cf1dac5a7 100644
--- a/operator/informers/externalversions/operator/v1/kubescheduler.go
+++ b/operator/informers/externalversions/operator/v1/kubescheduler.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- operatorv1 "github.com/openshift/api/operator/v1"
+ apioperatorv1 "github.com/openshift/api/operator/v1"
versioned "github.com/openshift/client-go/operator/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/operator/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/operator/listers/operator/v1"
+ operatorv1 "github.com/openshift/client-go/operator/listers/operator/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// KubeSchedulers.
type KubeSchedulerInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.KubeSchedulerLister
+ Lister() operatorv1.KubeSchedulerLister
}
type kubeSchedulerInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredKubeSchedulerInformer(client versioned.Interface, resyncPeriod t
return client.OperatorV1().KubeSchedulers().Watch(context.TODO(), options)
},
},
- &operatorv1.KubeScheduler{},
+ &apioperatorv1.KubeScheduler{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *kubeSchedulerInformer) defaultInformer(client versioned.Interface, resy
}
func (f *kubeSchedulerInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&operatorv1.KubeScheduler{}, f.defaultInformer)
+ return f.factory.InformerFor(&apioperatorv1.KubeScheduler{}, f.defaultInformer)
}
-func (f *kubeSchedulerInformer) Lister() v1.KubeSchedulerLister {
- return v1.NewKubeSchedulerLister(f.Informer().GetIndexer())
+func (f *kubeSchedulerInformer) Lister() operatorv1.KubeSchedulerLister {
+ return operatorv1.NewKubeSchedulerLister(f.Informer().GetIndexer())
}
diff --git a/operator/informers/externalversions/operator/v1/kubestorageversionmigrator.go b/operator/informers/externalversions/operator/v1/kubestorageversionmigrator.go
index 0be7bce90..0693a366b 100644
--- a/operator/informers/externalversions/operator/v1/kubestorageversionmigrator.go
+++ b/operator/informers/externalversions/operator/v1/kubestorageversionmigrator.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- operatorv1 "github.com/openshift/api/operator/v1"
+ apioperatorv1 "github.com/openshift/api/operator/v1"
versioned "github.com/openshift/client-go/operator/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/operator/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/operator/listers/operator/v1"
+ operatorv1 "github.com/openshift/client-go/operator/listers/operator/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// KubeStorageVersionMigrators.
type KubeStorageVersionMigratorInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.KubeStorageVersionMigratorLister
+ Lister() operatorv1.KubeStorageVersionMigratorLister
}
type kubeStorageVersionMigratorInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredKubeStorageVersionMigratorInformer(client versioned.Interface, r
return client.OperatorV1().KubeStorageVersionMigrators().Watch(context.TODO(), options)
},
},
- &operatorv1.KubeStorageVersionMigrator{},
+ &apioperatorv1.KubeStorageVersionMigrator{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *kubeStorageVersionMigratorInformer) defaultInformer(client versioned.In
}
func (f *kubeStorageVersionMigratorInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&operatorv1.KubeStorageVersionMigrator{}, f.defaultInformer)
+ return f.factory.InformerFor(&apioperatorv1.KubeStorageVersionMigrator{}, f.defaultInformer)
}
-func (f *kubeStorageVersionMigratorInformer) Lister() v1.KubeStorageVersionMigratorLister {
- return v1.NewKubeStorageVersionMigratorLister(f.Informer().GetIndexer())
+func (f *kubeStorageVersionMigratorInformer) Lister() operatorv1.KubeStorageVersionMigratorLister {
+ return operatorv1.NewKubeStorageVersionMigratorLister(f.Informer().GetIndexer())
}
diff --git a/operator/informers/externalversions/operator/v1/machineconfiguration.go b/operator/informers/externalversions/operator/v1/machineconfiguration.go
index e16f6ff10..07180912b 100644
--- a/operator/informers/externalversions/operator/v1/machineconfiguration.go
+++ b/operator/informers/externalversions/operator/v1/machineconfiguration.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- operatorv1 "github.com/openshift/api/operator/v1"
+ apioperatorv1 "github.com/openshift/api/operator/v1"
versioned "github.com/openshift/client-go/operator/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/operator/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/operator/listers/operator/v1"
+ operatorv1 "github.com/openshift/client-go/operator/listers/operator/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// MachineConfigurations.
type MachineConfigurationInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.MachineConfigurationLister
+ Lister() operatorv1.MachineConfigurationLister
}
type machineConfigurationInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredMachineConfigurationInformer(client versioned.Interface, resyncP
return client.OperatorV1().MachineConfigurations().Watch(context.TODO(), options)
},
},
- &operatorv1.MachineConfiguration{},
+ &apioperatorv1.MachineConfiguration{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *machineConfigurationInformer) defaultInformer(client versioned.Interfac
}
func (f *machineConfigurationInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&operatorv1.MachineConfiguration{}, f.defaultInformer)
+ return f.factory.InformerFor(&apioperatorv1.MachineConfiguration{}, f.defaultInformer)
}
-func (f *machineConfigurationInformer) Lister() v1.MachineConfigurationLister {
- return v1.NewMachineConfigurationLister(f.Informer().GetIndexer())
+func (f *machineConfigurationInformer) Lister() operatorv1.MachineConfigurationLister {
+ return operatorv1.NewMachineConfigurationLister(f.Informer().GetIndexer())
}
diff --git a/operator/informers/externalversions/operator/v1/network.go b/operator/informers/externalversions/operator/v1/network.go
index 7f9e7b59b..8b2342c7d 100644
--- a/operator/informers/externalversions/operator/v1/network.go
+++ b/operator/informers/externalversions/operator/v1/network.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- operatorv1 "github.com/openshift/api/operator/v1"
+ apioperatorv1 "github.com/openshift/api/operator/v1"
versioned "github.com/openshift/client-go/operator/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/operator/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/operator/listers/operator/v1"
+ operatorv1 "github.com/openshift/client-go/operator/listers/operator/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// Networks.
type NetworkInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.NetworkLister
+ Lister() operatorv1.NetworkLister
}
type networkInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredNetworkInformer(client versioned.Interface, resyncPeriod time.Du
return client.OperatorV1().Networks().Watch(context.TODO(), options)
},
},
- &operatorv1.Network{},
+ &apioperatorv1.Network{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *networkInformer) defaultInformer(client versioned.Interface, resyncPeri
}
func (f *networkInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&operatorv1.Network{}, f.defaultInformer)
+ return f.factory.InformerFor(&apioperatorv1.Network{}, f.defaultInformer)
}
-func (f *networkInformer) Lister() v1.NetworkLister {
- return v1.NewNetworkLister(f.Informer().GetIndexer())
+func (f *networkInformer) Lister() operatorv1.NetworkLister {
+ return operatorv1.NewNetworkLister(f.Informer().GetIndexer())
}
diff --git a/operator/informers/externalversions/operator/v1/olm.go b/operator/informers/externalversions/operator/v1/olm.go
index eafc07f47..dbfeca071 100644
--- a/operator/informers/externalversions/operator/v1/olm.go
+++ b/operator/informers/externalversions/operator/v1/olm.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- operatorv1 "github.com/openshift/api/operator/v1"
+ apioperatorv1 "github.com/openshift/api/operator/v1"
versioned "github.com/openshift/client-go/operator/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/operator/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/operator/listers/operator/v1"
+ operatorv1 "github.com/openshift/client-go/operator/listers/operator/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// OLMs.
type OLMInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.OLMLister
+ Lister() operatorv1.OLMLister
}
type oLMInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredOLMInformer(client versioned.Interface, resyncPeriod time.Durati
return client.OperatorV1().OLMs().Watch(context.TODO(), options)
},
},
- &operatorv1.OLM{},
+ &apioperatorv1.OLM{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *oLMInformer) defaultInformer(client versioned.Interface, resyncPeriod t
}
func (f *oLMInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&operatorv1.OLM{}, f.defaultInformer)
+ return f.factory.InformerFor(&apioperatorv1.OLM{}, f.defaultInformer)
}
-func (f *oLMInformer) Lister() v1.OLMLister {
- return v1.NewOLMLister(f.Informer().GetIndexer())
+func (f *oLMInformer) Lister() operatorv1.OLMLister {
+ return operatorv1.NewOLMLister(f.Informer().GetIndexer())
}
diff --git a/operator/informers/externalversions/operator/v1/openshiftapiserver.go b/operator/informers/externalversions/operator/v1/openshiftapiserver.go
index ee75de02c..56d0e087e 100644
--- a/operator/informers/externalversions/operator/v1/openshiftapiserver.go
+++ b/operator/informers/externalversions/operator/v1/openshiftapiserver.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- operatorv1 "github.com/openshift/api/operator/v1"
+ apioperatorv1 "github.com/openshift/api/operator/v1"
versioned "github.com/openshift/client-go/operator/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/operator/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/operator/listers/operator/v1"
+ operatorv1 "github.com/openshift/client-go/operator/listers/operator/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// OpenShiftAPIServers.
type OpenShiftAPIServerInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.OpenShiftAPIServerLister
+ Lister() operatorv1.OpenShiftAPIServerLister
}
type openShiftAPIServerInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredOpenShiftAPIServerInformer(client versioned.Interface, resyncPer
return client.OperatorV1().OpenShiftAPIServers().Watch(context.TODO(), options)
},
},
- &operatorv1.OpenShiftAPIServer{},
+ &apioperatorv1.OpenShiftAPIServer{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *openShiftAPIServerInformer) defaultInformer(client versioned.Interface,
}
func (f *openShiftAPIServerInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&operatorv1.OpenShiftAPIServer{}, f.defaultInformer)
+ return f.factory.InformerFor(&apioperatorv1.OpenShiftAPIServer{}, f.defaultInformer)
}
-func (f *openShiftAPIServerInformer) Lister() v1.OpenShiftAPIServerLister {
- return v1.NewOpenShiftAPIServerLister(f.Informer().GetIndexer())
+func (f *openShiftAPIServerInformer) Lister() operatorv1.OpenShiftAPIServerLister {
+ return operatorv1.NewOpenShiftAPIServerLister(f.Informer().GetIndexer())
}
diff --git a/operator/informers/externalversions/operator/v1/openshiftcontrollermanager.go b/operator/informers/externalversions/operator/v1/openshiftcontrollermanager.go
index bea5c96bb..27a323169 100644
--- a/operator/informers/externalversions/operator/v1/openshiftcontrollermanager.go
+++ b/operator/informers/externalversions/operator/v1/openshiftcontrollermanager.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- operatorv1 "github.com/openshift/api/operator/v1"
+ apioperatorv1 "github.com/openshift/api/operator/v1"
versioned "github.com/openshift/client-go/operator/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/operator/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/operator/listers/operator/v1"
+ operatorv1 "github.com/openshift/client-go/operator/listers/operator/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// OpenShiftControllerManagers.
type OpenShiftControllerManagerInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.OpenShiftControllerManagerLister
+ Lister() operatorv1.OpenShiftControllerManagerLister
}
type openShiftControllerManagerInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredOpenShiftControllerManagerInformer(client versioned.Interface, r
return client.OperatorV1().OpenShiftControllerManagers().Watch(context.TODO(), options)
},
},
- &operatorv1.OpenShiftControllerManager{},
+ &apioperatorv1.OpenShiftControllerManager{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *openShiftControllerManagerInformer) defaultInformer(client versioned.In
}
func (f *openShiftControllerManagerInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&operatorv1.OpenShiftControllerManager{}, f.defaultInformer)
+ return f.factory.InformerFor(&apioperatorv1.OpenShiftControllerManager{}, f.defaultInformer)
}
-func (f *openShiftControllerManagerInformer) Lister() v1.OpenShiftControllerManagerLister {
- return v1.NewOpenShiftControllerManagerLister(f.Informer().GetIndexer())
+func (f *openShiftControllerManagerInformer) Lister() operatorv1.OpenShiftControllerManagerLister {
+ return operatorv1.NewOpenShiftControllerManagerLister(f.Informer().GetIndexer())
}
diff --git a/operator/informers/externalversions/operator/v1/serviceca.go b/operator/informers/externalversions/operator/v1/serviceca.go
index c75dd0a6f..5676dc15c 100644
--- a/operator/informers/externalversions/operator/v1/serviceca.go
+++ b/operator/informers/externalversions/operator/v1/serviceca.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- operatorv1 "github.com/openshift/api/operator/v1"
+ apioperatorv1 "github.com/openshift/api/operator/v1"
versioned "github.com/openshift/client-go/operator/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/operator/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/operator/listers/operator/v1"
+ operatorv1 "github.com/openshift/client-go/operator/listers/operator/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// ServiceCAs.
type ServiceCAInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.ServiceCALister
+ Lister() operatorv1.ServiceCALister
}
type serviceCAInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredServiceCAInformer(client versioned.Interface, resyncPeriod time.
return client.OperatorV1().ServiceCAs().Watch(context.TODO(), options)
},
},
- &operatorv1.ServiceCA{},
+ &apioperatorv1.ServiceCA{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *serviceCAInformer) defaultInformer(client versioned.Interface, resyncPe
}
func (f *serviceCAInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&operatorv1.ServiceCA{}, f.defaultInformer)
+ return f.factory.InformerFor(&apioperatorv1.ServiceCA{}, f.defaultInformer)
}
-func (f *serviceCAInformer) Lister() v1.ServiceCALister {
- return v1.NewServiceCALister(f.Informer().GetIndexer())
+func (f *serviceCAInformer) Lister() operatorv1.ServiceCALister {
+ return operatorv1.NewServiceCALister(f.Informer().GetIndexer())
}
diff --git a/operator/informers/externalversions/operator/v1/servicecatalogapiserver.go b/operator/informers/externalversions/operator/v1/servicecatalogapiserver.go
index af1852053..8a13dfbb9 100644
--- a/operator/informers/externalversions/operator/v1/servicecatalogapiserver.go
+++ b/operator/informers/externalversions/operator/v1/servicecatalogapiserver.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- operatorv1 "github.com/openshift/api/operator/v1"
+ apioperatorv1 "github.com/openshift/api/operator/v1"
versioned "github.com/openshift/client-go/operator/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/operator/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/operator/listers/operator/v1"
+ operatorv1 "github.com/openshift/client-go/operator/listers/operator/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// ServiceCatalogAPIServers.
type ServiceCatalogAPIServerInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.ServiceCatalogAPIServerLister
+ Lister() operatorv1.ServiceCatalogAPIServerLister
}
type serviceCatalogAPIServerInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredServiceCatalogAPIServerInformer(client versioned.Interface, resy
return client.OperatorV1().ServiceCatalogAPIServers().Watch(context.TODO(), options)
},
},
- &operatorv1.ServiceCatalogAPIServer{},
+ &apioperatorv1.ServiceCatalogAPIServer{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *serviceCatalogAPIServerInformer) defaultInformer(client versioned.Inter
}
func (f *serviceCatalogAPIServerInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&operatorv1.ServiceCatalogAPIServer{}, f.defaultInformer)
+ return f.factory.InformerFor(&apioperatorv1.ServiceCatalogAPIServer{}, f.defaultInformer)
}
-func (f *serviceCatalogAPIServerInformer) Lister() v1.ServiceCatalogAPIServerLister {
- return v1.NewServiceCatalogAPIServerLister(f.Informer().GetIndexer())
+func (f *serviceCatalogAPIServerInformer) Lister() operatorv1.ServiceCatalogAPIServerLister {
+ return operatorv1.NewServiceCatalogAPIServerLister(f.Informer().GetIndexer())
}
diff --git a/operator/informers/externalversions/operator/v1/servicecatalogcontrollermanager.go b/operator/informers/externalversions/operator/v1/servicecatalogcontrollermanager.go
index 6f629dc4a..e527150c3 100644
--- a/operator/informers/externalversions/operator/v1/servicecatalogcontrollermanager.go
+++ b/operator/informers/externalversions/operator/v1/servicecatalogcontrollermanager.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- operatorv1 "github.com/openshift/api/operator/v1"
+ apioperatorv1 "github.com/openshift/api/operator/v1"
versioned "github.com/openshift/client-go/operator/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/operator/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/operator/listers/operator/v1"
+ operatorv1 "github.com/openshift/client-go/operator/listers/operator/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// ServiceCatalogControllerManagers.
type ServiceCatalogControllerManagerInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.ServiceCatalogControllerManagerLister
+ Lister() operatorv1.ServiceCatalogControllerManagerLister
}
type serviceCatalogControllerManagerInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredServiceCatalogControllerManagerInformer(client versioned.Interfa
return client.OperatorV1().ServiceCatalogControllerManagers().Watch(context.TODO(), options)
},
},
- &operatorv1.ServiceCatalogControllerManager{},
+ &apioperatorv1.ServiceCatalogControllerManager{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *serviceCatalogControllerManagerInformer) defaultInformer(client version
}
func (f *serviceCatalogControllerManagerInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&operatorv1.ServiceCatalogControllerManager{}, f.defaultInformer)
+ return f.factory.InformerFor(&apioperatorv1.ServiceCatalogControllerManager{}, f.defaultInformer)
}
-func (f *serviceCatalogControllerManagerInformer) Lister() v1.ServiceCatalogControllerManagerLister {
- return v1.NewServiceCatalogControllerManagerLister(f.Informer().GetIndexer())
+func (f *serviceCatalogControllerManagerInformer) Lister() operatorv1.ServiceCatalogControllerManagerLister {
+ return operatorv1.NewServiceCatalogControllerManagerLister(f.Informer().GetIndexer())
}
diff --git a/operator/informers/externalversions/operator/v1/storage.go b/operator/informers/externalversions/operator/v1/storage.go
index 982ed1828..4f6c6b331 100644
--- a/operator/informers/externalversions/operator/v1/storage.go
+++ b/operator/informers/externalversions/operator/v1/storage.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- operatorv1 "github.com/openshift/api/operator/v1"
+ apioperatorv1 "github.com/openshift/api/operator/v1"
versioned "github.com/openshift/client-go/operator/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/operator/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/operator/listers/operator/v1"
+ operatorv1 "github.com/openshift/client-go/operator/listers/operator/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// Storages.
type StorageInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.StorageLister
+ Lister() operatorv1.StorageLister
}
type storageInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredStorageInformer(client versioned.Interface, resyncPeriod time.Du
return client.OperatorV1().Storages().Watch(context.TODO(), options)
},
},
- &operatorv1.Storage{},
+ &apioperatorv1.Storage{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *storageInformer) defaultInformer(client versioned.Interface, resyncPeri
}
func (f *storageInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&operatorv1.Storage{}, f.defaultInformer)
+ return f.factory.InformerFor(&apioperatorv1.Storage{}, f.defaultInformer)
}
-func (f *storageInformer) Lister() v1.StorageLister {
- return v1.NewStorageLister(f.Informer().GetIndexer())
+func (f *storageInformer) Lister() operatorv1.StorageLister {
+ return operatorv1.NewStorageLister(f.Informer().GetIndexer())
}
diff --git a/operator/informers/externalversions/operator/v1alpha1/clusterversionoperator.go b/operator/informers/externalversions/operator/v1alpha1/clusterversionoperator.go
index 998622c33..134f9a2a7 100644
--- a/operator/informers/externalversions/operator/v1alpha1/clusterversionoperator.go
+++ b/operator/informers/externalversions/operator/v1alpha1/clusterversionoperator.go
@@ -3,13 +3,13 @@
package v1alpha1
import (
- "context"
+ context "context"
time "time"
- operatorv1alpha1 "github.com/openshift/api/operator/v1alpha1"
+ apioperatorv1alpha1 "github.com/openshift/api/operator/v1alpha1"
versioned "github.com/openshift/client-go/operator/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/operator/informers/externalversions/internalinterfaces"
- v1alpha1 "github.com/openshift/client-go/operator/listers/operator/v1alpha1"
+ operatorv1alpha1 "github.com/openshift/client-go/operator/listers/operator/v1alpha1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// ClusterVersionOperators.
type ClusterVersionOperatorInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1alpha1.ClusterVersionOperatorLister
+ Lister() operatorv1alpha1.ClusterVersionOperatorLister
}
type clusterVersionOperatorInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredClusterVersionOperatorInformer(client versioned.Interface, resyn
return client.OperatorV1alpha1().ClusterVersionOperators().Watch(context.TODO(), options)
},
},
- &operatorv1alpha1.ClusterVersionOperator{},
+ &apioperatorv1alpha1.ClusterVersionOperator{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *clusterVersionOperatorInformer) defaultInformer(client versioned.Interf
}
func (f *clusterVersionOperatorInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&operatorv1alpha1.ClusterVersionOperator{}, f.defaultInformer)
+ return f.factory.InformerFor(&apioperatorv1alpha1.ClusterVersionOperator{}, f.defaultInformer)
}
-func (f *clusterVersionOperatorInformer) Lister() v1alpha1.ClusterVersionOperatorLister {
- return v1alpha1.NewClusterVersionOperatorLister(f.Informer().GetIndexer())
+func (f *clusterVersionOperatorInformer) Lister() operatorv1alpha1.ClusterVersionOperatorLister {
+ return operatorv1alpha1.NewClusterVersionOperatorLister(f.Informer().GetIndexer())
}
diff --git a/operator/informers/externalversions/operator/v1alpha1/etcdbackup.go b/operator/informers/externalversions/operator/v1alpha1/etcdbackup.go
index 7a1814400..2558b9b24 100644
--- a/operator/informers/externalversions/operator/v1alpha1/etcdbackup.go
+++ b/operator/informers/externalversions/operator/v1alpha1/etcdbackup.go
@@ -3,13 +3,13 @@
package v1alpha1
import (
- "context"
+ context "context"
time "time"
- operatorv1alpha1 "github.com/openshift/api/operator/v1alpha1"
+ apioperatorv1alpha1 "github.com/openshift/api/operator/v1alpha1"
versioned "github.com/openshift/client-go/operator/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/operator/informers/externalversions/internalinterfaces"
- v1alpha1 "github.com/openshift/client-go/operator/listers/operator/v1alpha1"
+ operatorv1alpha1 "github.com/openshift/client-go/operator/listers/operator/v1alpha1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// EtcdBackups.
type EtcdBackupInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1alpha1.EtcdBackupLister
+ Lister() operatorv1alpha1.EtcdBackupLister
}
type etcdBackupInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredEtcdBackupInformer(client versioned.Interface, resyncPeriod time
return client.OperatorV1alpha1().EtcdBackups().Watch(context.TODO(), options)
},
},
- &operatorv1alpha1.EtcdBackup{},
+ &apioperatorv1alpha1.EtcdBackup{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *etcdBackupInformer) defaultInformer(client versioned.Interface, resyncP
}
func (f *etcdBackupInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&operatorv1alpha1.EtcdBackup{}, f.defaultInformer)
+ return f.factory.InformerFor(&apioperatorv1alpha1.EtcdBackup{}, f.defaultInformer)
}
-func (f *etcdBackupInformer) Lister() v1alpha1.EtcdBackupLister {
- return v1alpha1.NewEtcdBackupLister(f.Informer().GetIndexer())
+func (f *etcdBackupInformer) Lister() operatorv1alpha1.EtcdBackupLister {
+ return operatorv1alpha1.NewEtcdBackupLister(f.Informer().GetIndexer())
}
diff --git a/operator/informers/externalversions/operator/v1alpha1/imagecontentsourcepolicy.go b/operator/informers/externalversions/operator/v1alpha1/imagecontentsourcepolicy.go
index be4c20715..b5d4fcf06 100644
--- a/operator/informers/externalversions/operator/v1alpha1/imagecontentsourcepolicy.go
+++ b/operator/informers/externalversions/operator/v1alpha1/imagecontentsourcepolicy.go
@@ -3,13 +3,13 @@
package v1alpha1
import (
- "context"
+ context "context"
time "time"
- operatorv1alpha1 "github.com/openshift/api/operator/v1alpha1"
+ apioperatorv1alpha1 "github.com/openshift/api/operator/v1alpha1"
versioned "github.com/openshift/client-go/operator/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/operator/informers/externalversions/internalinterfaces"
- v1alpha1 "github.com/openshift/client-go/operator/listers/operator/v1alpha1"
+ operatorv1alpha1 "github.com/openshift/client-go/operator/listers/operator/v1alpha1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// ImageContentSourcePolicies.
type ImageContentSourcePolicyInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1alpha1.ImageContentSourcePolicyLister
+ Lister() operatorv1alpha1.ImageContentSourcePolicyLister
}
type imageContentSourcePolicyInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredImageContentSourcePolicyInformer(client versioned.Interface, res
return client.OperatorV1alpha1().ImageContentSourcePolicies().Watch(context.TODO(), options)
},
},
- &operatorv1alpha1.ImageContentSourcePolicy{},
+ &apioperatorv1alpha1.ImageContentSourcePolicy{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *imageContentSourcePolicyInformer) defaultInformer(client versioned.Inte
}
func (f *imageContentSourcePolicyInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&operatorv1alpha1.ImageContentSourcePolicy{}, f.defaultInformer)
+ return f.factory.InformerFor(&apioperatorv1alpha1.ImageContentSourcePolicy{}, f.defaultInformer)
}
-func (f *imageContentSourcePolicyInformer) Lister() v1alpha1.ImageContentSourcePolicyLister {
- return v1alpha1.NewImageContentSourcePolicyLister(f.Informer().GetIndexer())
+func (f *imageContentSourcePolicyInformer) Lister() operatorv1alpha1.ImageContentSourcePolicyLister {
+ return operatorv1alpha1.NewImageContentSourcePolicyLister(f.Informer().GetIndexer())
}
diff --git a/operator/informers/externalversions/operator/v1alpha1/olm.go b/operator/informers/externalversions/operator/v1alpha1/olm.go
index cd904a948..1bce2de82 100644
--- a/operator/informers/externalversions/operator/v1alpha1/olm.go
+++ b/operator/informers/externalversions/operator/v1alpha1/olm.go
@@ -3,13 +3,13 @@
package v1alpha1
import (
- "context"
+ context "context"
time "time"
- operatorv1alpha1 "github.com/openshift/api/operator/v1alpha1"
+ apioperatorv1alpha1 "github.com/openshift/api/operator/v1alpha1"
versioned "github.com/openshift/client-go/operator/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/operator/informers/externalversions/internalinterfaces"
- v1alpha1 "github.com/openshift/client-go/operator/listers/operator/v1alpha1"
+ operatorv1alpha1 "github.com/openshift/client-go/operator/listers/operator/v1alpha1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// OLMs.
type OLMInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1alpha1.OLMLister
+ Lister() operatorv1alpha1.OLMLister
}
type oLMInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredOLMInformer(client versioned.Interface, resyncPeriod time.Durati
return client.OperatorV1alpha1().OLMs().Watch(context.TODO(), options)
},
},
- &operatorv1alpha1.OLM{},
+ &apioperatorv1alpha1.OLM{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *oLMInformer) defaultInformer(client versioned.Interface, resyncPeriod t
}
func (f *oLMInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&operatorv1alpha1.OLM{}, f.defaultInformer)
+ return f.factory.InformerFor(&apioperatorv1alpha1.OLM{}, f.defaultInformer)
}
-func (f *oLMInformer) Lister() v1alpha1.OLMLister {
- return v1alpha1.NewOLMLister(f.Informer().GetIndexer())
+func (f *oLMInformer) Lister() operatorv1alpha1.OLMLister {
+ return operatorv1alpha1.NewOLMLister(f.Informer().GetIndexer())
}
diff --git a/operator/listers/operator/v1/authentication.go b/operator/listers/operator/v1/authentication.go
index 2009c59a4..1b77a086e 100644
--- a/operator/listers/operator/v1/authentication.go
+++ b/operator/listers/operator/v1/authentication.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// AuthenticationLister helps list Authentications.
@@ -14,19 +14,19 @@ import (
type AuthenticationLister interface {
// List lists all Authentications in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.Authentication, err error)
+ List(selector labels.Selector) (ret []*operatorv1.Authentication, err error)
// Get retrieves the Authentication from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.Authentication, error)
+ Get(name string) (*operatorv1.Authentication, error)
AuthenticationListerExpansion
}
// authenticationLister implements the AuthenticationLister interface.
type authenticationLister struct {
- listers.ResourceIndexer[*v1.Authentication]
+ listers.ResourceIndexer[*operatorv1.Authentication]
}
// NewAuthenticationLister returns a new AuthenticationLister.
func NewAuthenticationLister(indexer cache.Indexer) AuthenticationLister {
- return &authenticationLister{listers.New[*v1.Authentication](indexer, v1.Resource("authentication"))}
+ return &authenticationLister{listers.New[*operatorv1.Authentication](indexer, operatorv1.Resource("authentication"))}
}
diff --git a/operator/listers/operator/v1/cloudcredential.go b/operator/listers/operator/v1/cloudcredential.go
index 00e760257..b968bbee4 100644
--- a/operator/listers/operator/v1/cloudcredential.go
+++ b/operator/listers/operator/v1/cloudcredential.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// CloudCredentialLister helps list CloudCredentials.
@@ -14,19 +14,19 @@ import (
type CloudCredentialLister interface {
// List lists all CloudCredentials in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.CloudCredential, err error)
+ List(selector labels.Selector) (ret []*operatorv1.CloudCredential, err error)
// Get retrieves the CloudCredential from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.CloudCredential, error)
+ Get(name string) (*operatorv1.CloudCredential, error)
CloudCredentialListerExpansion
}
// cloudCredentialLister implements the CloudCredentialLister interface.
type cloudCredentialLister struct {
- listers.ResourceIndexer[*v1.CloudCredential]
+ listers.ResourceIndexer[*operatorv1.CloudCredential]
}
// NewCloudCredentialLister returns a new CloudCredentialLister.
func NewCloudCredentialLister(indexer cache.Indexer) CloudCredentialLister {
- return &cloudCredentialLister{listers.New[*v1.CloudCredential](indexer, v1.Resource("cloudcredential"))}
+ return &cloudCredentialLister{listers.New[*operatorv1.CloudCredential](indexer, operatorv1.Resource("cloudcredential"))}
}
diff --git a/operator/listers/operator/v1/clustercsidriver.go b/operator/listers/operator/v1/clustercsidriver.go
index 01505eeb5..d28e7f1e9 100644
--- a/operator/listers/operator/v1/clustercsidriver.go
+++ b/operator/listers/operator/v1/clustercsidriver.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ClusterCSIDriverLister helps list ClusterCSIDrivers.
@@ -14,19 +14,19 @@ import (
type ClusterCSIDriverLister interface {
// List lists all ClusterCSIDrivers in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.ClusterCSIDriver, err error)
+ List(selector labels.Selector) (ret []*operatorv1.ClusterCSIDriver, err error)
// Get retrieves the ClusterCSIDriver from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.ClusterCSIDriver, error)
+ Get(name string) (*operatorv1.ClusterCSIDriver, error)
ClusterCSIDriverListerExpansion
}
// clusterCSIDriverLister implements the ClusterCSIDriverLister interface.
type clusterCSIDriverLister struct {
- listers.ResourceIndexer[*v1.ClusterCSIDriver]
+ listers.ResourceIndexer[*operatorv1.ClusterCSIDriver]
}
// NewClusterCSIDriverLister returns a new ClusterCSIDriverLister.
func NewClusterCSIDriverLister(indexer cache.Indexer) ClusterCSIDriverLister {
- return &clusterCSIDriverLister{listers.New[*v1.ClusterCSIDriver](indexer, v1.Resource("clustercsidriver"))}
+ return &clusterCSIDriverLister{listers.New[*operatorv1.ClusterCSIDriver](indexer, operatorv1.Resource("clustercsidriver"))}
}
diff --git a/operator/listers/operator/v1/config.go b/operator/listers/operator/v1/config.go
index 8610d0a07..916abbb4e 100644
--- a/operator/listers/operator/v1/config.go
+++ b/operator/listers/operator/v1/config.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ConfigLister helps list Configs.
@@ -14,19 +14,19 @@ import (
type ConfigLister interface {
// List lists all Configs in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.Config, err error)
+ List(selector labels.Selector) (ret []*operatorv1.Config, err error)
// Get retrieves the Config from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.Config, error)
+ Get(name string) (*operatorv1.Config, error)
ConfigListerExpansion
}
// configLister implements the ConfigLister interface.
type configLister struct {
- listers.ResourceIndexer[*v1.Config]
+ listers.ResourceIndexer[*operatorv1.Config]
}
// NewConfigLister returns a new ConfigLister.
func NewConfigLister(indexer cache.Indexer) ConfigLister {
- return &configLister{listers.New[*v1.Config](indexer, v1.Resource("config"))}
+ return &configLister{listers.New[*operatorv1.Config](indexer, operatorv1.Resource("config"))}
}
diff --git a/operator/listers/operator/v1/console.go b/operator/listers/operator/v1/console.go
index a102eb5df..45b9e3672 100644
--- a/operator/listers/operator/v1/console.go
+++ b/operator/listers/operator/v1/console.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ConsoleLister helps list Consoles.
@@ -14,19 +14,19 @@ import (
type ConsoleLister interface {
// List lists all Consoles in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.Console, err error)
+ List(selector labels.Selector) (ret []*operatorv1.Console, err error)
// Get retrieves the Console from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.Console, error)
+ Get(name string) (*operatorv1.Console, error)
ConsoleListerExpansion
}
// consoleLister implements the ConsoleLister interface.
type consoleLister struct {
- listers.ResourceIndexer[*v1.Console]
+ listers.ResourceIndexer[*operatorv1.Console]
}
// NewConsoleLister returns a new ConsoleLister.
func NewConsoleLister(indexer cache.Indexer) ConsoleLister {
- return &consoleLister{listers.New[*v1.Console](indexer, v1.Resource("console"))}
+ return &consoleLister{listers.New[*operatorv1.Console](indexer, operatorv1.Resource("console"))}
}
diff --git a/operator/listers/operator/v1/csisnapshotcontroller.go b/operator/listers/operator/v1/csisnapshotcontroller.go
index 44a9d30c4..a73ca72e5 100644
--- a/operator/listers/operator/v1/csisnapshotcontroller.go
+++ b/operator/listers/operator/v1/csisnapshotcontroller.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// CSISnapshotControllerLister helps list CSISnapshotControllers.
@@ -14,19 +14,19 @@ import (
type CSISnapshotControllerLister interface {
// List lists all CSISnapshotControllers in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.CSISnapshotController, err error)
+ List(selector labels.Selector) (ret []*operatorv1.CSISnapshotController, err error)
// Get retrieves the CSISnapshotController from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.CSISnapshotController, error)
+ Get(name string) (*operatorv1.CSISnapshotController, error)
CSISnapshotControllerListerExpansion
}
// cSISnapshotControllerLister implements the CSISnapshotControllerLister interface.
type cSISnapshotControllerLister struct {
- listers.ResourceIndexer[*v1.CSISnapshotController]
+ listers.ResourceIndexer[*operatorv1.CSISnapshotController]
}
// NewCSISnapshotControllerLister returns a new CSISnapshotControllerLister.
func NewCSISnapshotControllerLister(indexer cache.Indexer) CSISnapshotControllerLister {
- return &cSISnapshotControllerLister{listers.New[*v1.CSISnapshotController](indexer, v1.Resource("csisnapshotcontroller"))}
+ return &cSISnapshotControllerLister{listers.New[*operatorv1.CSISnapshotController](indexer, operatorv1.Resource("csisnapshotcontroller"))}
}
diff --git a/operator/listers/operator/v1/dns.go b/operator/listers/operator/v1/dns.go
index 5e4d5e0ca..4ecdd8bb0 100644
--- a/operator/listers/operator/v1/dns.go
+++ b/operator/listers/operator/v1/dns.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// DNSLister helps list DNSes.
@@ -14,19 +14,19 @@ import (
type DNSLister interface {
// List lists all DNSes in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.DNS, err error)
+ List(selector labels.Selector) (ret []*operatorv1.DNS, err error)
// Get retrieves the DNS from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.DNS, error)
+ Get(name string) (*operatorv1.DNS, error)
DNSListerExpansion
}
// dNSLister implements the DNSLister interface.
type dNSLister struct {
- listers.ResourceIndexer[*v1.DNS]
+ listers.ResourceIndexer[*operatorv1.DNS]
}
// NewDNSLister returns a new DNSLister.
func NewDNSLister(indexer cache.Indexer) DNSLister {
- return &dNSLister{listers.New[*v1.DNS](indexer, v1.Resource("dns"))}
+ return &dNSLister{listers.New[*operatorv1.DNS](indexer, operatorv1.Resource("dns"))}
}
diff --git a/operator/listers/operator/v1/etcd.go b/operator/listers/operator/v1/etcd.go
index 817f120db..0708fcf85 100644
--- a/operator/listers/operator/v1/etcd.go
+++ b/operator/listers/operator/v1/etcd.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// EtcdLister helps list Etcds.
@@ -14,19 +14,19 @@ import (
type EtcdLister interface {
// List lists all Etcds in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.Etcd, err error)
+ List(selector labels.Selector) (ret []*operatorv1.Etcd, err error)
// Get retrieves the Etcd from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.Etcd, error)
+ Get(name string) (*operatorv1.Etcd, error)
EtcdListerExpansion
}
// etcdLister implements the EtcdLister interface.
type etcdLister struct {
- listers.ResourceIndexer[*v1.Etcd]
+ listers.ResourceIndexer[*operatorv1.Etcd]
}
// NewEtcdLister returns a new EtcdLister.
func NewEtcdLister(indexer cache.Indexer) EtcdLister {
- return &etcdLister{listers.New[*v1.Etcd](indexer, v1.Resource("etcd"))}
+ return &etcdLister{listers.New[*operatorv1.Etcd](indexer, operatorv1.Resource("etcd"))}
}
diff --git a/operator/listers/operator/v1/ingresscontroller.go b/operator/listers/operator/v1/ingresscontroller.go
index 76fde745d..322952fd7 100644
--- a/operator/listers/operator/v1/ingresscontroller.go
+++ b/operator/listers/operator/v1/ingresscontroller.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// IngressControllerLister helps list IngressControllers.
@@ -14,7 +14,7 @@ import (
type IngressControllerLister interface {
// List lists all IngressControllers in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.IngressController, err error)
+ List(selector labels.Selector) (ret []*operatorv1.IngressController, err error)
// IngressControllers returns an object that can list and get IngressControllers.
IngressControllers(namespace string) IngressControllerNamespaceLister
IngressControllerListerExpansion
@@ -22,17 +22,17 @@ type IngressControllerLister interface {
// ingressControllerLister implements the IngressControllerLister interface.
type ingressControllerLister struct {
- listers.ResourceIndexer[*v1.IngressController]
+ listers.ResourceIndexer[*operatorv1.IngressController]
}
// NewIngressControllerLister returns a new IngressControllerLister.
func NewIngressControllerLister(indexer cache.Indexer) IngressControllerLister {
- return &ingressControllerLister{listers.New[*v1.IngressController](indexer, v1.Resource("ingresscontroller"))}
+ return &ingressControllerLister{listers.New[*operatorv1.IngressController](indexer, operatorv1.Resource("ingresscontroller"))}
}
// IngressControllers returns an object that can list and get IngressControllers.
func (s *ingressControllerLister) IngressControllers(namespace string) IngressControllerNamespaceLister {
- return ingressControllerNamespaceLister{listers.NewNamespaced[*v1.IngressController](s.ResourceIndexer, namespace)}
+ return ingressControllerNamespaceLister{listers.NewNamespaced[*operatorv1.IngressController](s.ResourceIndexer, namespace)}
}
// IngressControllerNamespaceLister helps list and get IngressControllers.
@@ -40,15 +40,15 @@ func (s *ingressControllerLister) IngressControllers(namespace string) IngressCo
type IngressControllerNamespaceLister interface {
// List lists all IngressControllers in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.IngressController, err error)
+ List(selector labels.Selector) (ret []*operatorv1.IngressController, err error)
// Get retrieves the IngressController from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.IngressController, error)
+ Get(name string) (*operatorv1.IngressController, error)
IngressControllerNamespaceListerExpansion
}
// ingressControllerNamespaceLister implements the IngressControllerNamespaceLister
// interface.
type ingressControllerNamespaceLister struct {
- listers.ResourceIndexer[*v1.IngressController]
+ listers.ResourceIndexer[*operatorv1.IngressController]
}
diff --git a/operator/listers/operator/v1/insightsoperator.go b/operator/listers/operator/v1/insightsoperator.go
index 159429c0a..0a79b9aa0 100644
--- a/operator/listers/operator/v1/insightsoperator.go
+++ b/operator/listers/operator/v1/insightsoperator.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// InsightsOperatorLister helps list InsightsOperators.
@@ -14,19 +14,19 @@ import (
type InsightsOperatorLister interface {
// List lists all InsightsOperators in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.InsightsOperator, err error)
+ List(selector labels.Selector) (ret []*operatorv1.InsightsOperator, err error)
// Get retrieves the InsightsOperator from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.InsightsOperator, error)
+ Get(name string) (*operatorv1.InsightsOperator, error)
InsightsOperatorListerExpansion
}
// insightsOperatorLister implements the InsightsOperatorLister interface.
type insightsOperatorLister struct {
- listers.ResourceIndexer[*v1.InsightsOperator]
+ listers.ResourceIndexer[*operatorv1.InsightsOperator]
}
// NewInsightsOperatorLister returns a new InsightsOperatorLister.
func NewInsightsOperatorLister(indexer cache.Indexer) InsightsOperatorLister {
- return &insightsOperatorLister{listers.New[*v1.InsightsOperator](indexer, v1.Resource("insightsoperator"))}
+ return &insightsOperatorLister{listers.New[*operatorv1.InsightsOperator](indexer, operatorv1.Resource("insightsoperator"))}
}
diff --git a/operator/listers/operator/v1/kubeapiserver.go b/operator/listers/operator/v1/kubeapiserver.go
index 4e03cf9bb..99744ebc3 100644
--- a/operator/listers/operator/v1/kubeapiserver.go
+++ b/operator/listers/operator/v1/kubeapiserver.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// KubeAPIServerLister helps list KubeAPIServers.
@@ -14,19 +14,19 @@ import (
type KubeAPIServerLister interface {
// List lists all KubeAPIServers in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.KubeAPIServer, err error)
+ List(selector labels.Selector) (ret []*operatorv1.KubeAPIServer, err error)
// Get retrieves the KubeAPIServer from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.KubeAPIServer, error)
+ Get(name string) (*operatorv1.KubeAPIServer, error)
KubeAPIServerListerExpansion
}
// kubeAPIServerLister implements the KubeAPIServerLister interface.
type kubeAPIServerLister struct {
- listers.ResourceIndexer[*v1.KubeAPIServer]
+ listers.ResourceIndexer[*operatorv1.KubeAPIServer]
}
// NewKubeAPIServerLister returns a new KubeAPIServerLister.
func NewKubeAPIServerLister(indexer cache.Indexer) KubeAPIServerLister {
- return &kubeAPIServerLister{listers.New[*v1.KubeAPIServer](indexer, v1.Resource("kubeapiserver"))}
+ return &kubeAPIServerLister{listers.New[*operatorv1.KubeAPIServer](indexer, operatorv1.Resource("kubeapiserver"))}
}
diff --git a/operator/listers/operator/v1/kubecontrollermanager.go b/operator/listers/operator/v1/kubecontrollermanager.go
index 18e082cec..dbca5fea8 100644
--- a/operator/listers/operator/v1/kubecontrollermanager.go
+++ b/operator/listers/operator/v1/kubecontrollermanager.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// KubeControllerManagerLister helps list KubeControllerManagers.
@@ -14,19 +14,19 @@ import (
type KubeControllerManagerLister interface {
// List lists all KubeControllerManagers in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.KubeControllerManager, err error)
+ List(selector labels.Selector) (ret []*operatorv1.KubeControllerManager, err error)
// Get retrieves the KubeControllerManager from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.KubeControllerManager, error)
+ Get(name string) (*operatorv1.KubeControllerManager, error)
KubeControllerManagerListerExpansion
}
// kubeControllerManagerLister implements the KubeControllerManagerLister interface.
type kubeControllerManagerLister struct {
- listers.ResourceIndexer[*v1.KubeControllerManager]
+ listers.ResourceIndexer[*operatorv1.KubeControllerManager]
}
// NewKubeControllerManagerLister returns a new KubeControllerManagerLister.
func NewKubeControllerManagerLister(indexer cache.Indexer) KubeControllerManagerLister {
- return &kubeControllerManagerLister{listers.New[*v1.KubeControllerManager](indexer, v1.Resource("kubecontrollermanager"))}
+ return &kubeControllerManagerLister{listers.New[*operatorv1.KubeControllerManager](indexer, operatorv1.Resource("kubecontrollermanager"))}
}
diff --git a/operator/listers/operator/v1/kubescheduler.go b/operator/listers/operator/v1/kubescheduler.go
index 73e44219a..2c9ca49f6 100644
--- a/operator/listers/operator/v1/kubescheduler.go
+++ b/operator/listers/operator/v1/kubescheduler.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// KubeSchedulerLister helps list KubeSchedulers.
@@ -14,19 +14,19 @@ import (
type KubeSchedulerLister interface {
// List lists all KubeSchedulers in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.KubeScheduler, err error)
+ List(selector labels.Selector) (ret []*operatorv1.KubeScheduler, err error)
// Get retrieves the KubeScheduler from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.KubeScheduler, error)
+ Get(name string) (*operatorv1.KubeScheduler, error)
KubeSchedulerListerExpansion
}
// kubeSchedulerLister implements the KubeSchedulerLister interface.
type kubeSchedulerLister struct {
- listers.ResourceIndexer[*v1.KubeScheduler]
+ listers.ResourceIndexer[*operatorv1.KubeScheduler]
}
// NewKubeSchedulerLister returns a new KubeSchedulerLister.
func NewKubeSchedulerLister(indexer cache.Indexer) KubeSchedulerLister {
- return &kubeSchedulerLister{listers.New[*v1.KubeScheduler](indexer, v1.Resource("kubescheduler"))}
+ return &kubeSchedulerLister{listers.New[*operatorv1.KubeScheduler](indexer, operatorv1.Resource("kubescheduler"))}
}
diff --git a/operator/listers/operator/v1/kubestorageversionmigrator.go b/operator/listers/operator/v1/kubestorageversionmigrator.go
index c6e3f9b03..0f00042e7 100644
--- a/operator/listers/operator/v1/kubestorageversionmigrator.go
+++ b/operator/listers/operator/v1/kubestorageversionmigrator.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// KubeStorageVersionMigratorLister helps list KubeStorageVersionMigrators.
@@ -14,19 +14,19 @@ import (
type KubeStorageVersionMigratorLister interface {
// List lists all KubeStorageVersionMigrators in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.KubeStorageVersionMigrator, err error)
+ List(selector labels.Selector) (ret []*operatorv1.KubeStorageVersionMigrator, err error)
// Get retrieves the KubeStorageVersionMigrator from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.KubeStorageVersionMigrator, error)
+ Get(name string) (*operatorv1.KubeStorageVersionMigrator, error)
KubeStorageVersionMigratorListerExpansion
}
// kubeStorageVersionMigratorLister implements the KubeStorageVersionMigratorLister interface.
type kubeStorageVersionMigratorLister struct {
- listers.ResourceIndexer[*v1.KubeStorageVersionMigrator]
+ listers.ResourceIndexer[*operatorv1.KubeStorageVersionMigrator]
}
// NewKubeStorageVersionMigratorLister returns a new KubeStorageVersionMigratorLister.
func NewKubeStorageVersionMigratorLister(indexer cache.Indexer) KubeStorageVersionMigratorLister {
- return &kubeStorageVersionMigratorLister{listers.New[*v1.KubeStorageVersionMigrator](indexer, v1.Resource("kubestorageversionmigrator"))}
+ return &kubeStorageVersionMigratorLister{listers.New[*operatorv1.KubeStorageVersionMigrator](indexer, operatorv1.Resource("kubestorageversionmigrator"))}
}
diff --git a/operator/listers/operator/v1/machineconfiguration.go b/operator/listers/operator/v1/machineconfiguration.go
index 6444b4d9a..c9ef3def5 100644
--- a/operator/listers/operator/v1/machineconfiguration.go
+++ b/operator/listers/operator/v1/machineconfiguration.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// MachineConfigurationLister helps list MachineConfigurations.
@@ -14,19 +14,19 @@ import (
type MachineConfigurationLister interface {
// List lists all MachineConfigurations in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.MachineConfiguration, err error)
+ List(selector labels.Selector) (ret []*operatorv1.MachineConfiguration, err error)
// Get retrieves the MachineConfiguration from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.MachineConfiguration, error)
+ Get(name string) (*operatorv1.MachineConfiguration, error)
MachineConfigurationListerExpansion
}
// machineConfigurationLister implements the MachineConfigurationLister interface.
type machineConfigurationLister struct {
- listers.ResourceIndexer[*v1.MachineConfiguration]
+ listers.ResourceIndexer[*operatorv1.MachineConfiguration]
}
// NewMachineConfigurationLister returns a new MachineConfigurationLister.
func NewMachineConfigurationLister(indexer cache.Indexer) MachineConfigurationLister {
- return &machineConfigurationLister{listers.New[*v1.MachineConfiguration](indexer, v1.Resource("machineconfiguration"))}
+ return &machineConfigurationLister{listers.New[*operatorv1.MachineConfiguration](indexer, operatorv1.Resource("machineconfiguration"))}
}
diff --git a/operator/listers/operator/v1/network.go b/operator/listers/operator/v1/network.go
index e4748e29e..d9b678162 100644
--- a/operator/listers/operator/v1/network.go
+++ b/operator/listers/operator/v1/network.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// NetworkLister helps list Networks.
@@ -14,19 +14,19 @@ import (
type NetworkLister interface {
// List lists all Networks in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.Network, err error)
+ List(selector labels.Selector) (ret []*operatorv1.Network, err error)
// Get retrieves the Network from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.Network, error)
+ Get(name string) (*operatorv1.Network, error)
NetworkListerExpansion
}
// networkLister implements the NetworkLister interface.
type networkLister struct {
- listers.ResourceIndexer[*v1.Network]
+ listers.ResourceIndexer[*operatorv1.Network]
}
// NewNetworkLister returns a new NetworkLister.
func NewNetworkLister(indexer cache.Indexer) NetworkLister {
- return &networkLister{listers.New[*v1.Network](indexer, v1.Resource("network"))}
+ return &networkLister{listers.New[*operatorv1.Network](indexer, operatorv1.Resource("network"))}
}
diff --git a/operator/listers/operator/v1/olm.go b/operator/listers/operator/v1/olm.go
index c1ce00955..c5f641705 100644
--- a/operator/listers/operator/v1/olm.go
+++ b/operator/listers/operator/v1/olm.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// OLMLister helps list OLMs.
@@ -14,19 +14,19 @@ import (
type OLMLister interface {
// List lists all OLMs in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.OLM, err error)
+ List(selector labels.Selector) (ret []*operatorv1.OLM, err error)
// Get retrieves the OLM from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.OLM, error)
+ Get(name string) (*operatorv1.OLM, error)
OLMListerExpansion
}
// oLMLister implements the OLMLister interface.
type oLMLister struct {
- listers.ResourceIndexer[*v1.OLM]
+ listers.ResourceIndexer[*operatorv1.OLM]
}
// NewOLMLister returns a new OLMLister.
func NewOLMLister(indexer cache.Indexer) OLMLister {
- return &oLMLister{listers.New[*v1.OLM](indexer, v1.Resource("olm"))}
+ return &oLMLister{listers.New[*operatorv1.OLM](indexer, operatorv1.Resource("olm"))}
}
diff --git a/operator/listers/operator/v1/openshiftapiserver.go b/operator/listers/operator/v1/openshiftapiserver.go
index 797c3d5d2..96ad171cb 100644
--- a/operator/listers/operator/v1/openshiftapiserver.go
+++ b/operator/listers/operator/v1/openshiftapiserver.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// OpenShiftAPIServerLister helps list OpenShiftAPIServers.
@@ -14,19 +14,19 @@ import (
type OpenShiftAPIServerLister interface {
// List lists all OpenShiftAPIServers in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.OpenShiftAPIServer, err error)
+ List(selector labels.Selector) (ret []*operatorv1.OpenShiftAPIServer, err error)
// Get retrieves the OpenShiftAPIServer from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.OpenShiftAPIServer, error)
+ Get(name string) (*operatorv1.OpenShiftAPIServer, error)
OpenShiftAPIServerListerExpansion
}
// openShiftAPIServerLister implements the OpenShiftAPIServerLister interface.
type openShiftAPIServerLister struct {
- listers.ResourceIndexer[*v1.OpenShiftAPIServer]
+ listers.ResourceIndexer[*operatorv1.OpenShiftAPIServer]
}
// NewOpenShiftAPIServerLister returns a new OpenShiftAPIServerLister.
func NewOpenShiftAPIServerLister(indexer cache.Indexer) OpenShiftAPIServerLister {
- return &openShiftAPIServerLister{listers.New[*v1.OpenShiftAPIServer](indexer, v1.Resource("openshiftapiserver"))}
+ return &openShiftAPIServerLister{listers.New[*operatorv1.OpenShiftAPIServer](indexer, operatorv1.Resource("openshiftapiserver"))}
}
diff --git a/operator/listers/operator/v1/openshiftcontrollermanager.go b/operator/listers/operator/v1/openshiftcontrollermanager.go
index 023156cd8..66e4d9af0 100644
--- a/operator/listers/operator/v1/openshiftcontrollermanager.go
+++ b/operator/listers/operator/v1/openshiftcontrollermanager.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// OpenShiftControllerManagerLister helps list OpenShiftControllerManagers.
@@ -14,19 +14,19 @@ import (
type OpenShiftControllerManagerLister interface {
// List lists all OpenShiftControllerManagers in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.OpenShiftControllerManager, err error)
+ List(selector labels.Selector) (ret []*operatorv1.OpenShiftControllerManager, err error)
// Get retrieves the OpenShiftControllerManager from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.OpenShiftControllerManager, error)
+ Get(name string) (*operatorv1.OpenShiftControllerManager, error)
OpenShiftControllerManagerListerExpansion
}
// openShiftControllerManagerLister implements the OpenShiftControllerManagerLister interface.
type openShiftControllerManagerLister struct {
- listers.ResourceIndexer[*v1.OpenShiftControllerManager]
+ listers.ResourceIndexer[*operatorv1.OpenShiftControllerManager]
}
// NewOpenShiftControllerManagerLister returns a new OpenShiftControllerManagerLister.
func NewOpenShiftControllerManagerLister(indexer cache.Indexer) OpenShiftControllerManagerLister {
- return &openShiftControllerManagerLister{listers.New[*v1.OpenShiftControllerManager](indexer, v1.Resource("openshiftcontrollermanager"))}
+ return &openShiftControllerManagerLister{listers.New[*operatorv1.OpenShiftControllerManager](indexer, operatorv1.Resource("openshiftcontrollermanager"))}
}
diff --git a/operator/listers/operator/v1/serviceca.go b/operator/listers/operator/v1/serviceca.go
index 361ed3741..68e3678f6 100644
--- a/operator/listers/operator/v1/serviceca.go
+++ b/operator/listers/operator/v1/serviceca.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ServiceCALister helps list ServiceCAs.
@@ -14,19 +14,19 @@ import (
type ServiceCALister interface {
// List lists all ServiceCAs in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.ServiceCA, err error)
+ List(selector labels.Selector) (ret []*operatorv1.ServiceCA, err error)
// Get retrieves the ServiceCA from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.ServiceCA, error)
+ Get(name string) (*operatorv1.ServiceCA, error)
ServiceCAListerExpansion
}
// serviceCALister implements the ServiceCALister interface.
type serviceCALister struct {
- listers.ResourceIndexer[*v1.ServiceCA]
+ listers.ResourceIndexer[*operatorv1.ServiceCA]
}
// NewServiceCALister returns a new ServiceCALister.
func NewServiceCALister(indexer cache.Indexer) ServiceCALister {
- return &serviceCALister{listers.New[*v1.ServiceCA](indexer, v1.Resource("serviceca"))}
+ return &serviceCALister{listers.New[*operatorv1.ServiceCA](indexer, operatorv1.Resource("serviceca"))}
}
diff --git a/operator/listers/operator/v1/servicecatalogapiserver.go b/operator/listers/operator/v1/servicecatalogapiserver.go
index e4828fc0a..b82d90a51 100644
--- a/operator/listers/operator/v1/servicecatalogapiserver.go
+++ b/operator/listers/operator/v1/servicecatalogapiserver.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ServiceCatalogAPIServerLister helps list ServiceCatalogAPIServers.
@@ -14,19 +14,19 @@ import (
type ServiceCatalogAPIServerLister interface {
// List lists all ServiceCatalogAPIServers in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.ServiceCatalogAPIServer, err error)
+ List(selector labels.Selector) (ret []*operatorv1.ServiceCatalogAPIServer, err error)
// Get retrieves the ServiceCatalogAPIServer from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.ServiceCatalogAPIServer, error)
+ Get(name string) (*operatorv1.ServiceCatalogAPIServer, error)
ServiceCatalogAPIServerListerExpansion
}
// serviceCatalogAPIServerLister implements the ServiceCatalogAPIServerLister interface.
type serviceCatalogAPIServerLister struct {
- listers.ResourceIndexer[*v1.ServiceCatalogAPIServer]
+ listers.ResourceIndexer[*operatorv1.ServiceCatalogAPIServer]
}
// NewServiceCatalogAPIServerLister returns a new ServiceCatalogAPIServerLister.
func NewServiceCatalogAPIServerLister(indexer cache.Indexer) ServiceCatalogAPIServerLister {
- return &serviceCatalogAPIServerLister{listers.New[*v1.ServiceCatalogAPIServer](indexer, v1.Resource("servicecatalogapiserver"))}
+ return &serviceCatalogAPIServerLister{listers.New[*operatorv1.ServiceCatalogAPIServer](indexer, operatorv1.Resource("servicecatalogapiserver"))}
}
diff --git a/operator/listers/operator/v1/servicecatalogcontrollermanager.go b/operator/listers/operator/v1/servicecatalogcontrollermanager.go
index c98632f6e..32c70828b 100644
--- a/operator/listers/operator/v1/servicecatalogcontrollermanager.go
+++ b/operator/listers/operator/v1/servicecatalogcontrollermanager.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ServiceCatalogControllerManagerLister helps list ServiceCatalogControllerManagers.
@@ -14,19 +14,19 @@ import (
type ServiceCatalogControllerManagerLister interface {
// List lists all ServiceCatalogControllerManagers in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.ServiceCatalogControllerManager, err error)
+ List(selector labels.Selector) (ret []*operatorv1.ServiceCatalogControllerManager, err error)
// Get retrieves the ServiceCatalogControllerManager from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.ServiceCatalogControllerManager, error)
+ Get(name string) (*operatorv1.ServiceCatalogControllerManager, error)
ServiceCatalogControllerManagerListerExpansion
}
// serviceCatalogControllerManagerLister implements the ServiceCatalogControllerManagerLister interface.
type serviceCatalogControllerManagerLister struct {
- listers.ResourceIndexer[*v1.ServiceCatalogControllerManager]
+ listers.ResourceIndexer[*operatorv1.ServiceCatalogControllerManager]
}
// NewServiceCatalogControllerManagerLister returns a new ServiceCatalogControllerManagerLister.
func NewServiceCatalogControllerManagerLister(indexer cache.Indexer) ServiceCatalogControllerManagerLister {
- return &serviceCatalogControllerManagerLister{listers.New[*v1.ServiceCatalogControllerManager](indexer, v1.Resource("servicecatalogcontrollermanager"))}
+ return &serviceCatalogControllerManagerLister{listers.New[*operatorv1.ServiceCatalogControllerManager](indexer, operatorv1.Resource("servicecatalogcontrollermanager"))}
}
diff --git a/operator/listers/operator/v1/storage.go b/operator/listers/operator/v1/storage.go
index 77144c787..9817c3cbc 100644
--- a/operator/listers/operator/v1/storage.go
+++ b/operator/listers/operator/v1/storage.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ operatorv1 "github.com/openshift/api/operator/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// StorageLister helps list Storages.
@@ -14,19 +14,19 @@ import (
type StorageLister interface {
// List lists all Storages in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.Storage, err error)
+ List(selector labels.Selector) (ret []*operatorv1.Storage, err error)
// Get retrieves the Storage from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.Storage, error)
+ Get(name string) (*operatorv1.Storage, error)
StorageListerExpansion
}
// storageLister implements the StorageLister interface.
type storageLister struct {
- listers.ResourceIndexer[*v1.Storage]
+ listers.ResourceIndexer[*operatorv1.Storage]
}
// NewStorageLister returns a new StorageLister.
func NewStorageLister(indexer cache.Indexer) StorageLister {
- return &storageLister{listers.New[*v1.Storage](indexer, v1.Resource("storage"))}
+ return &storageLister{listers.New[*operatorv1.Storage](indexer, operatorv1.Resource("storage"))}
}
diff --git a/operator/listers/operator/v1alpha1/clusterversionoperator.go b/operator/listers/operator/v1alpha1/clusterversionoperator.go
index ad504829b..bd07dd3c4 100644
--- a/operator/listers/operator/v1alpha1/clusterversionoperator.go
+++ b/operator/listers/operator/v1alpha1/clusterversionoperator.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- v1alpha1 "github.com/openshift/api/operator/v1alpha1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ operatorv1alpha1 "github.com/openshift/api/operator/v1alpha1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ClusterVersionOperatorLister helps list ClusterVersionOperators.
@@ -14,19 +14,19 @@ import (
type ClusterVersionOperatorLister interface {
// List lists all ClusterVersionOperators in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1alpha1.ClusterVersionOperator, err error)
+ List(selector labels.Selector) (ret []*operatorv1alpha1.ClusterVersionOperator, err error)
// Get retrieves the ClusterVersionOperator from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1alpha1.ClusterVersionOperator, error)
+ Get(name string) (*operatorv1alpha1.ClusterVersionOperator, error)
ClusterVersionOperatorListerExpansion
}
// clusterVersionOperatorLister implements the ClusterVersionOperatorLister interface.
type clusterVersionOperatorLister struct {
- listers.ResourceIndexer[*v1alpha1.ClusterVersionOperator]
+ listers.ResourceIndexer[*operatorv1alpha1.ClusterVersionOperator]
}
// NewClusterVersionOperatorLister returns a new ClusterVersionOperatorLister.
func NewClusterVersionOperatorLister(indexer cache.Indexer) ClusterVersionOperatorLister {
- return &clusterVersionOperatorLister{listers.New[*v1alpha1.ClusterVersionOperator](indexer, v1alpha1.Resource("clusterversionoperator"))}
+ return &clusterVersionOperatorLister{listers.New[*operatorv1alpha1.ClusterVersionOperator](indexer, operatorv1alpha1.Resource("clusterversionoperator"))}
}
diff --git a/operator/listers/operator/v1alpha1/etcdbackup.go b/operator/listers/operator/v1alpha1/etcdbackup.go
index c039ef29e..d44cce337 100644
--- a/operator/listers/operator/v1alpha1/etcdbackup.go
+++ b/operator/listers/operator/v1alpha1/etcdbackup.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- v1alpha1 "github.com/openshift/api/operator/v1alpha1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ operatorv1alpha1 "github.com/openshift/api/operator/v1alpha1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// EtcdBackupLister helps list EtcdBackups.
@@ -14,19 +14,19 @@ import (
type EtcdBackupLister interface {
// List lists all EtcdBackups in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1alpha1.EtcdBackup, err error)
+ List(selector labels.Selector) (ret []*operatorv1alpha1.EtcdBackup, err error)
// Get retrieves the EtcdBackup from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1alpha1.EtcdBackup, error)
+ Get(name string) (*operatorv1alpha1.EtcdBackup, error)
EtcdBackupListerExpansion
}
// etcdBackupLister implements the EtcdBackupLister interface.
type etcdBackupLister struct {
- listers.ResourceIndexer[*v1alpha1.EtcdBackup]
+ listers.ResourceIndexer[*operatorv1alpha1.EtcdBackup]
}
// NewEtcdBackupLister returns a new EtcdBackupLister.
func NewEtcdBackupLister(indexer cache.Indexer) EtcdBackupLister {
- return &etcdBackupLister{listers.New[*v1alpha1.EtcdBackup](indexer, v1alpha1.Resource("etcdbackup"))}
+ return &etcdBackupLister{listers.New[*operatorv1alpha1.EtcdBackup](indexer, operatorv1alpha1.Resource("etcdbackup"))}
}
diff --git a/operator/listers/operator/v1alpha1/imagecontentsourcepolicy.go b/operator/listers/operator/v1alpha1/imagecontentsourcepolicy.go
index 7a502744a..8408ee2b2 100644
--- a/operator/listers/operator/v1alpha1/imagecontentsourcepolicy.go
+++ b/operator/listers/operator/v1alpha1/imagecontentsourcepolicy.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- v1alpha1 "github.com/openshift/api/operator/v1alpha1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ operatorv1alpha1 "github.com/openshift/api/operator/v1alpha1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ImageContentSourcePolicyLister helps list ImageContentSourcePolicies.
@@ -14,19 +14,19 @@ import (
type ImageContentSourcePolicyLister interface {
// List lists all ImageContentSourcePolicies in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1alpha1.ImageContentSourcePolicy, err error)
+ List(selector labels.Selector) (ret []*operatorv1alpha1.ImageContentSourcePolicy, err error)
// Get retrieves the ImageContentSourcePolicy from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1alpha1.ImageContentSourcePolicy, error)
+ Get(name string) (*operatorv1alpha1.ImageContentSourcePolicy, error)
ImageContentSourcePolicyListerExpansion
}
// imageContentSourcePolicyLister implements the ImageContentSourcePolicyLister interface.
type imageContentSourcePolicyLister struct {
- listers.ResourceIndexer[*v1alpha1.ImageContentSourcePolicy]
+ listers.ResourceIndexer[*operatorv1alpha1.ImageContentSourcePolicy]
}
// NewImageContentSourcePolicyLister returns a new ImageContentSourcePolicyLister.
func NewImageContentSourcePolicyLister(indexer cache.Indexer) ImageContentSourcePolicyLister {
- return &imageContentSourcePolicyLister{listers.New[*v1alpha1.ImageContentSourcePolicy](indexer, v1alpha1.Resource("imagecontentsourcepolicy"))}
+ return &imageContentSourcePolicyLister{listers.New[*operatorv1alpha1.ImageContentSourcePolicy](indexer, operatorv1alpha1.Resource("imagecontentsourcepolicy"))}
}
diff --git a/operator/listers/operator/v1alpha1/olm.go b/operator/listers/operator/v1alpha1/olm.go
index c6c2727cb..0a6615065 100644
--- a/operator/listers/operator/v1alpha1/olm.go
+++ b/operator/listers/operator/v1alpha1/olm.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- v1alpha1 "github.com/openshift/api/operator/v1alpha1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ operatorv1alpha1 "github.com/openshift/api/operator/v1alpha1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// OLMLister helps list OLMs.
@@ -14,19 +14,19 @@ import (
type OLMLister interface {
// List lists all OLMs in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1alpha1.OLM, err error)
+ List(selector labels.Selector) (ret []*operatorv1alpha1.OLM, err error)
// Get retrieves the OLM from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1alpha1.OLM, error)
+ Get(name string) (*operatorv1alpha1.OLM, error)
OLMListerExpansion
}
// oLMLister implements the OLMLister interface.
type oLMLister struct {
- listers.ResourceIndexer[*v1alpha1.OLM]
+ listers.ResourceIndexer[*operatorv1alpha1.OLM]
}
// NewOLMLister returns a new OLMLister.
func NewOLMLister(indexer cache.Indexer) OLMLister {
- return &oLMLister{listers.New[*v1alpha1.OLM](indexer, v1alpha1.Resource("olm"))}
+ return &oLMLister{listers.New[*operatorv1alpha1.OLM](indexer, operatorv1alpha1.Resource("olm"))}
}
diff --git a/operatorcontrolplane/applyconfigurations/internal/internal.go b/operatorcontrolplane/applyconfigurations/internal/internal.go
index 30e4c8f16..5a955d9b3 100644
--- a/operatorcontrolplane/applyconfigurations/internal/internal.go
+++ b/operatorcontrolplane/applyconfigurations/internal/internal.go
@@ -3,8 +3,8 @@
package internal
import (
- "fmt"
- "sync"
+ fmt "fmt"
+ sync "sync"
typed "sigs.k8s.io/structured-merge-diff/v4/typed"
)
diff --git a/operatorcontrolplane/applyconfigurations/operatorcontrolplane/v1alpha1/podnetworkconnectivitycheck.go b/operatorcontrolplane/applyconfigurations/operatorcontrolplane/v1alpha1/podnetworkconnectivitycheck.go
index c1286effe..e8445ff8e 100644
--- a/operatorcontrolplane/applyconfigurations/operatorcontrolplane/v1alpha1/podnetworkconnectivitycheck.go
+++ b/operatorcontrolplane/applyconfigurations/operatorcontrolplane/v1alpha1/podnetworkconnectivitycheck.go
@@ -71,7 +71,7 @@ func extractPodNetworkConnectivityCheck(podNetworkConnectivityCheck *operatorcon
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *PodNetworkConnectivityCheckApplyConfiguration) WithKind(value string) *PodNetworkConnectivityCheckApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -79,7 +79,7 @@ func (b *PodNetworkConnectivityCheckApplyConfiguration) WithKind(value string) *
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *PodNetworkConnectivityCheckApplyConfiguration) WithAPIVersion(value string) *PodNetworkConnectivityCheckApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -88,7 +88,7 @@ func (b *PodNetworkConnectivityCheckApplyConfiguration) WithAPIVersion(value str
// If called multiple times, the Name field is set to the value of the last call.
func (b *PodNetworkConnectivityCheckApplyConfiguration) WithName(value string) *PodNetworkConnectivityCheckApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -97,7 +97,7 @@ func (b *PodNetworkConnectivityCheckApplyConfiguration) WithName(value string) *
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *PodNetworkConnectivityCheckApplyConfiguration) WithGenerateName(value string) *PodNetworkConnectivityCheckApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -106,7 +106,7 @@ func (b *PodNetworkConnectivityCheckApplyConfiguration) WithGenerateName(value s
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *PodNetworkConnectivityCheckApplyConfiguration) WithNamespace(value string) *PodNetworkConnectivityCheckApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -115,7 +115,7 @@ func (b *PodNetworkConnectivityCheckApplyConfiguration) WithNamespace(value stri
// If called multiple times, the UID field is set to the value of the last call.
func (b *PodNetworkConnectivityCheckApplyConfiguration) WithUID(value types.UID) *PodNetworkConnectivityCheckApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -124,7 +124,7 @@ func (b *PodNetworkConnectivityCheckApplyConfiguration) WithUID(value types.UID)
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *PodNetworkConnectivityCheckApplyConfiguration) WithResourceVersion(value string) *PodNetworkConnectivityCheckApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -133,7 +133,7 @@ func (b *PodNetworkConnectivityCheckApplyConfiguration) WithResourceVersion(valu
// If called multiple times, the Generation field is set to the value of the last call.
func (b *PodNetworkConnectivityCheckApplyConfiguration) WithGeneration(value int64) *PodNetworkConnectivityCheckApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
@@ -142,7 +142,7 @@ func (b *PodNetworkConnectivityCheckApplyConfiguration) WithGeneration(value int
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
func (b *PodNetworkConnectivityCheckApplyConfiguration) WithCreationTimestamp(value metav1.Time) *PodNetworkConnectivityCheckApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
@@ -151,7 +151,7 @@ func (b *PodNetworkConnectivityCheckApplyConfiguration) WithCreationTimestamp(va
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
func (b *PodNetworkConnectivityCheckApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *PodNetworkConnectivityCheckApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -160,7 +160,7 @@ func (b *PodNetworkConnectivityCheckApplyConfiguration) WithDeletionTimestamp(va
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *PodNetworkConnectivityCheckApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *PodNetworkConnectivityCheckApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -170,11 +170,11 @@ func (b *PodNetworkConnectivityCheckApplyConfiguration) WithDeletionGracePeriodS
// overwriting an existing map entries in Labels field with the same key.
func (b *PodNetworkConnectivityCheckApplyConfiguration) WithLabels(entries map[string]string) *PodNetworkConnectivityCheckApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -185,11 +185,11 @@ func (b *PodNetworkConnectivityCheckApplyConfiguration) WithLabels(entries map[s
// overwriting an existing map entries in Annotations field with the same key.
func (b *PodNetworkConnectivityCheckApplyConfiguration) WithAnnotations(entries map[string]string) *PodNetworkConnectivityCheckApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -203,7 +203,7 @@ func (b *PodNetworkConnectivityCheckApplyConfiguration) WithOwnerReferences(valu
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -214,7 +214,7 @@ func (b *PodNetworkConnectivityCheckApplyConfiguration) WithOwnerReferences(valu
func (b *PodNetworkConnectivityCheckApplyConfiguration) WithFinalizers(values ...string) *PodNetworkConnectivityCheckApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
@@ -244,5 +244,5 @@ func (b *PodNetworkConnectivityCheckApplyConfiguration) WithStatus(value *PodNet
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *PodNetworkConnectivityCheckApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/operatorcontrolplane/applyconfigurations/operatorcontrolplane/v1alpha1/podnetworkconnectivitycheckcondition.go b/operatorcontrolplane/applyconfigurations/operatorcontrolplane/v1alpha1/podnetworkconnectivitycheckcondition.go
index 493ac4026..404e4ab85 100644
--- a/operatorcontrolplane/applyconfigurations/operatorcontrolplane/v1alpha1/podnetworkconnectivitycheckcondition.go
+++ b/operatorcontrolplane/applyconfigurations/operatorcontrolplane/v1alpha1/podnetworkconnectivitycheckcondition.go
@@ -3,18 +3,18 @@
package v1alpha1
import (
- v1alpha1 "github.com/openshift/api/operatorcontrolplane/v1alpha1"
+ operatorcontrolplanev1alpha1 "github.com/openshift/api/operatorcontrolplane/v1alpha1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// PodNetworkConnectivityCheckConditionApplyConfiguration represents a declarative configuration of the PodNetworkConnectivityCheckCondition type for use
// with apply.
type PodNetworkConnectivityCheckConditionApplyConfiguration struct {
- Type *v1alpha1.PodNetworkConnectivityCheckConditionType `json:"type,omitempty"`
- Status *v1.ConditionStatus `json:"status,omitempty"`
- Reason *string `json:"reason,omitempty"`
- Message *string `json:"message,omitempty"`
- LastTransitionTime *v1.Time `json:"lastTransitionTime,omitempty"`
+ Type *operatorcontrolplanev1alpha1.PodNetworkConnectivityCheckConditionType `json:"type,omitempty"`
+ Status *v1.ConditionStatus `json:"status,omitempty"`
+ Reason *string `json:"reason,omitempty"`
+ Message *string `json:"message,omitempty"`
+ LastTransitionTime *v1.Time `json:"lastTransitionTime,omitempty"`
}
// PodNetworkConnectivityCheckConditionApplyConfiguration constructs a declarative configuration of the PodNetworkConnectivityCheckCondition type for use with
@@ -26,7 +26,7 @@ func PodNetworkConnectivityCheckCondition() *PodNetworkConnectivityCheckConditio
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *PodNetworkConnectivityCheckConditionApplyConfiguration) WithType(value v1alpha1.PodNetworkConnectivityCheckConditionType) *PodNetworkConnectivityCheckConditionApplyConfiguration {
+func (b *PodNetworkConnectivityCheckConditionApplyConfiguration) WithType(value operatorcontrolplanev1alpha1.PodNetworkConnectivityCheckConditionType) *PodNetworkConnectivityCheckConditionApplyConfiguration {
b.Type = &value
return b
}
diff --git a/operatorcontrolplane/clientset/versioned/clientset.go b/operatorcontrolplane/clientset/versioned/clientset.go
index 0a03d2e18..07f9902a7 100644
--- a/operatorcontrolplane/clientset/versioned/clientset.go
+++ b/operatorcontrolplane/clientset/versioned/clientset.go
@@ -3,8 +3,8 @@
package versioned
import (
- "fmt"
- "net/http"
+ fmt "fmt"
+ http "net/http"
controlplanev1alpha1 "github.com/openshift/client-go/operatorcontrolplane/clientset/versioned/typed/operatorcontrolplane/v1alpha1"
discovery "k8s.io/client-go/discovery"
diff --git a/operatorcontrolplane/clientset/versioned/typed/operatorcontrolplane/v1alpha1/fake/fake_operatorcontrolplane_client.go b/operatorcontrolplane/clientset/versioned/typed/operatorcontrolplane/v1alpha1/fake/fake_operatorcontrolplane_client.go
index 3c64a0682..aa4fb6a4c 100644
--- a/operatorcontrolplane/clientset/versioned/typed/operatorcontrolplane/v1alpha1/fake/fake_operatorcontrolplane_client.go
+++ b/operatorcontrolplane/clientset/versioned/typed/operatorcontrolplane/v1alpha1/fake/fake_operatorcontrolplane_client.go
@@ -13,7 +13,7 @@ type FakeControlplaneV1alpha1 struct {
}
func (c *FakeControlplaneV1alpha1) PodNetworkConnectivityChecks(namespace string) v1alpha1.PodNetworkConnectivityCheckInterface {
- return &FakePodNetworkConnectivityChecks{c, namespace}
+ return newFakePodNetworkConnectivityChecks(c, namespace)
}
// RESTClient returns a RESTClient that is used to communicate
diff --git a/operatorcontrolplane/clientset/versioned/typed/operatorcontrolplane/v1alpha1/fake/fake_podnetworkconnectivitycheck.go b/operatorcontrolplane/clientset/versioned/typed/operatorcontrolplane/v1alpha1/fake/fake_podnetworkconnectivitycheck.go
index deff34949..b97dd81f0 100644
--- a/operatorcontrolplane/clientset/versioned/typed/operatorcontrolplane/v1alpha1/fake/fake_podnetworkconnectivitycheck.go
+++ b/operatorcontrolplane/clientset/versioned/typed/operatorcontrolplane/v1alpha1/fake/fake_podnetworkconnectivitycheck.go
@@ -3,179 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1alpha1 "github.com/openshift/api/operatorcontrolplane/v1alpha1"
operatorcontrolplanev1alpha1 "github.com/openshift/client-go/operatorcontrolplane/applyconfigurations/operatorcontrolplane/v1alpha1"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedoperatorcontrolplanev1alpha1 "github.com/openshift/client-go/operatorcontrolplane/clientset/versioned/typed/operatorcontrolplane/v1alpha1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakePodNetworkConnectivityChecks implements PodNetworkConnectivityCheckInterface
-type FakePodNetworkConnectivityChecks struct {
+// fakePodNetworkConnectivityChecks implements PodNetworkConnectivityCheckInterface
+type fakePodNetworkConnectivityChecks struct {
+ *gentype.FakeClientWithListAndApply[*v1alpha1.PodNetworkConnectivityCheck, *v1alpha1.PodNetworkConnectivityCheckList, *operatorcontrolplanev1alpha1.PodNetworkConnectivityCheckApplyConfiguration]
Fake *FakeControlplaneV1alpha1
- ns string
-}
-
-var podnetworkconnectivitychecksResource = v1alpha1.SchemeGroupVersion.WithResource("podnetworkconnectivitychecks")
-
-var podnetworkconnectivitychecksKind = v1alpha1.SchemeGroupVersion.WithKind("PodNetworkConnectivityCheck")
-
-// Get takes name of the podNetworkConnectivityCheck, and returns the corresponding podNetworkConnectivityCheck object, and an error if there is any.
-func (c *FakePodNetworkConnectivityChecks) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PodNetworkConnectivityCheck, err error) {
- emptyResult := &v1alpha1.PodNetworkConnectivityCheck{}
- obj, err := c.Fake.
- Invokes(testing.NewGetActionWithOptions(podnetworkconnectivitychecksResource, c.ns, name, options), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.PodNetworkConnectivityCheck), err
-}
-
-// List takes label and field selectors, and returns the list of PodNetworkConnectivityChecks that match those selectors.
-func (c *FakePodNetworkConnectivityChecks) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PodNetworkConnectivityCheckList, err error) {
- emptyResult := &v1alpha1.PodNetworkConnectivityCheckList{}
- obj, err := c.Fake.
- Invokes(testing.NewListActionWithOptions(podnetworkconnectivitychecksResource, podnetworkconnectivitychecksKind, c.ns, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1alpha1.PodNetworkConnectivityCheckList{ListMeta: obj.(*v1alpha1.PodNetworkConnectivityCheckList).ListMeta}
- for _, item := range obj.(*v1alpha1.PodNetworkConnectivityCheckList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested podNetworkConnectivityChecks.
-func (c *FakePodNetworkConnectivityChecks) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewWatchActionWithOptions(podnetworkconnectivitychecksResource, c.ns, opts))
-
-}
-
-// Create takes the representation of a podNetworkConnectivityCheck and creates it. Returns the server's representation of the podNetworkConnectivityCheck, and an error, if there is any.
-func (c *FakePodNetworkConnectivityChecks) Create(ctx context.Context, podNetworkConnectivityCheck *v1alpha1.PodNetworkConnectivityCheck, opts v1.CreateOptions) (result *v1alpha1.PodNetworkConnectivityCheck, err error) {
- emptyResult := &v1alpha1.PodNetworkConnectivityCheck{}
- obj, err := c.Fake.
- Invokes(testing.NewCreateActionWithOptions(podnetworkconnectivitychecksResource, c.ns, podNetworkConnectivityCheck, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.PodNetworkConnectivityCheck), err
-}
-
-// Update takes the representation of a podNetworkConnectivityCheck and updates it. Returns the server's representation of the podNetworkConnectivityCheck, and an error, if there is any.
-func (c *FakePodNetworkConnectivityChecks) Update(ctx context.Context, podNetworkConnectivityCheck *v1alpha1.PodNetworkConnectivityCheck, opts v1.UpdateOptions) (result *v1alpha1.PodNetworkConnectivityCheck, err error) {
- emptyResult := &v1alpha1.PodNetworkConnectivityCheck{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateActionWithOptions(podnetworkconnectivitychecksResource, c.ns, podNetworkConnectivityCheck, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.PodNetworkConnectivityCheck), err
}
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakePodNetworkConnectivityChecks) UpdateStatus(ctx context.Context, podNetworkConnectivityCheck *v1alpha1.PodNetworkConnectivityCheck, opts v1.UpdateOptions) (result *v1alpha1.PodNetworkConnectivityCheck, err error) {
- emptyResult := &v1alpha1.PodNetworkConnectivityCheck{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateSubresourceActionWithOptions(podnetworkconnectivitychecksResource, "status", c.ns, podNetworkConnectivityCheck, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.PodNetworkConnectivityCheck), err
-}
-
-// Delete takes name of the podNetworkConnectivityCheck and deletes it. Returns an error if one occurs.
-func (c *FakePodNetworkConnectivityChecks) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewDeleteActionWithOptions(podnetworkconnectivitychecksResource, c.ns, name, opts), &v1alpha1.PodNetworkConnectivityCheck{})
-
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakePodNetworkConnectivityChecks) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewDeleteCollectionActionWithOptions(podnetworkconnectivitychecksResource, c.ns, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1alpha1.PodNetworkConnectivityCheckList{})
- return err
-}
-
-// Patch applies the patch and returns the patched podNetworkConnectivityCheck.
-func (c *FakePodNetworkConnectivityChecks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PodNetworkConnectivityCheck, err error) {
- emptyResult := &v1alpha1.PodNetworkConnectivityCheck{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(podnetworkconnectivitychecksResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.PodNetworkConnectivityCheck), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied podNetworkConnectivityCheck.
-func (c *FakePodNetworkConnectivityChecks) Apply(ctx context.Context, podNetworkConnectivityCheck *operatorcontrolplanev1alpha1.PodNetworkConnectivityCheckApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.PodNetworkConnectivityCheck, err error) {
- if podNetworkConnectivityCheck == nil {
- return nil, fmt.Errorf("podNetworkConnectivityCheck provided to Apply must not be nil")
- }
- data, err := json.Marshal(podNetworkConnectivityCheck)
- if err != nil {
- return nil, err
- }
- name := podNetworkConnectivityCheck.Name
- if name == nil {
- return nil, fmt.Errorf("podNetworkConnectivityCheck.Name must be provided to Apply")
- }
- emptyResult := &v1alpha1.PodNetworkConnectivityCheck{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(podnetworkconnectivitychecksResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.PodNetworkConnectivityCheck), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakePodNetworkConnectivityChecks) ApplyStatus(ctx context.Context, podNetworkConnectivityCheck *operatorcontrolplanev1alpha1.PodNetworkConnectivityCheckApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.PodNetworkConnectivityCheck, err error) {
- if podNetworkConnectivityCheck == nil {
- return nil, fmt.Errorf("podNetworkConnectivityCheck provided to Apply must not be nil")
- }
- data, err := json.Marshal(podNetworkConnectivityCheck)
- if err != nil {
- return nil, err
- }
- name := podNetworkConnectivityCheck.Name
- if name == nil {
- return nil, fmt.Errorf("podNetworkConnectivityCheck.Name must be provided to Apply")
- }
- emptyResult := &v1alpha1.PodNetworkConnectivityCheck{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(podnetworkconnectivitychecksResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
-
- if obj == nil {
- return emptyResult, err
+func newFakePodNetworkConnectivityChecks(fake *FakeControlplaneV1alpha1, namespace string) typedoperatorcontrolplanev1alpha1.PodNetworkConnectivityCheckInterface {
+ return &fakePodNetworkConnectivityChecks{
+ gentype.NewFakeClientWithListAndApply[*v1alpha1.PodNetworkConnectivityCheck, *v1alpha1.PodNetworkConnectivityCheckList, *operatorcontrolplanev1alpha1.PodNetworkConnectivityCheckApplyConfiguration](
+ fake.Fake,
+ namespace,
+ v1alpha1.SchemeGroupVersion.WithResource("podnetworkconnectivitychecks"),
+ v1alpha1.SchemeGroupVersion.WithKind("PodNetworkConnectivityCheck"),
+ func() *v1alpha1.PodNetworkConnectivityCheck { return &v1alpha1.PodNetworkConnectivityCheck{} },
+ func() *v1alpha1.PodNetworkConnectivityCheckList { return &v1alpha1.PodNetworkConnectivityCheckList{} },
+ func(dst, src *v1alpha1.PodNetworkConnectivityCheckList) { dst.ListMeta = src.ListMeta },
+ func(list *v1alpha1.PodNetworkConnectivityCheckList) []*v1alpha1.PodNetworkConnectivityCheck {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1alpha1.PodNetworkConnectivityCheckList, items []*v1alpha1.PodNetworkConnectivityCheck) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1alpha1.PodNetworkConnectivityCheck), err
}
diff --git a/operatorcontrolplane/clientset/versioned/typed/operatorcontrolplane/v1alpha1/operatorcontrolplane_client.go b/operatorcontrolplane/clientset/versioned/typed/operatorcontrolplane/v1alpha1/operatorcontrolplane_client.go
index 29c600d3c..cf04fb289 100644
--- a/operatorcontrolplane/clientset/versioned/typed/operatorcontrolplane/v1alpha1/operatorcontrolplane_client.go
+++ b/operatorcontrolplane/clientset/versioned/typed/operatorcontrolplane/v1alpha1/operatorcontrolplane_client.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- "net/http"
+ http "net/http"
- v1alpha1 "github.com/openshift/api/operatorcontrolplane/v1alpha1"
- "github.com/openshift/client-go/operatorcontrolplane/clientset/versioned/scheme"
+ operatorcontrolplanev1alpha1 "github.com/openshift/api/operatorcontrolplane/v1alpha1"
+ scheme "github.com/openshift/client-go/operatorcontrolplane/clientset/versioned/scheme"
rest "k8s.io/client-go/rest"
)
@@ -69,10 +69,10 @@ func New(c rest.Interface) *ControlplaneV1alpha1Client {
}
func setConfigDefaults(config *rest.Config) error {
- gv := v1alpha1.SchemeGroupVersion
+ gv := operatorcontrolplanev1alpha1.SchemeGroupVersion
config.GroupVersion = &gv
config.APIPath = "/apis"
- config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
+ config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion()
if config.UserAgent == "" {
config.UserAgent = rest.DefaultKubernetesUserAgent()
diff --git a/operatorcontrolplane/clientset/versioned/typed/operatorcontrolplane/v1alpha1/podnetworkconnectivitycheck.go b/operatorcontrolplane/clientset/versioned/typed/operatorcontrolplane/v1alpha1/podnetworkconnectivitycheck.go
index 503561a13..5177a2e14 100644
--- a/operatorcontrolplane/clientset/versioned/typed/operatorcontrolplane/v1alpha1/podnetworkconnectivitycheck.go
+++ b/operatorcontrolplane/clientset/versioned/typed/operatorcontrolplane/v1alpha1/podnetworkconnectivitycheck.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- "context"
+ context "context"
- v1alpha1 "github.com/openshift/api/operatorcontrolplane/v1alpha1"
- operatorcontrolplanev1alpha1 "github.com/openshift/client-go/operatorcontrolplane/applyconfigurations/operatorcontrolplane/v1alpha1"
+ operatorcontrolplanev1alpha1 "github.com/openshift/api/operatorcontrolplane/v1alpha1"
+ applyconfigurationsoperatorcontrolplanev1alpha1 "github.com/openshift/client-go/operatorcontrolplane/applyconfigurations/operatorcontrolplane/v1alpha1"
scheme "github.com/openshift/client-go/operatorcontrolplane/clientset/versioned/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,41 @@ type PodNetworkConnectivityChecksGetter interface {
// PodNetworkConnectivityCheckInterface has methods to work with PodNetworkConnectivityCheck resources.
type PodNetworkConnectivityCheckInterface interface {
- Create(ctx context.Context, podNetworkConnectivityCheck *v1alpha1.PodNetworkConnectivityCheck, opts v1.CreateOptions) (*v1alpha1.PodNetworkConnectivityCheck, error)
- Update(ctx context.Context, podNetworkConnectivityCheck *v1alpha1.PodNetworkConnectivityCheck, opts v1.UpdateOptions) (*v1alpha1.PodNetworkConnectivityCheck, error)
+ Create(ctx context.Context, podNetworkConnectivityCheck *operatorcontrolplanev1alpha1.PodNetworkConnectivityCheck, opts v1.CreateOptions) (*operatorcontrolplanev1alpha1.PodNetworkConnectivityCheck, error)
+ Update(ctx context.Context, podNetworkConnectivityCheck *operatorcontrolplanev1alpha1.PodNetworkConnectivityCheck, opts v1.UpdateOptions) (*operatorcontrolplanev1alpha1.PodNetworkConnectivityCheck, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, podNetworkConnectivityCheck *v1alpha1.PodNetworkConnectivityCheck, opts v1.UpdateOptions) (*v1alpha1.PodNetworkConnectivityCheck, error)
+ UpdateStatus(ctx context.Context, podNetworkConnectivityCheck *operatorcontrolplanev1alpha1.PodNetworkConnectivityCheck, opts v1.UpdateOptions) (*operatorcontrolplanev1alpha1.PodNetworkConnectivityCheck, error)
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.PodNetworkConnectivityCheck, error)
- List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.PodNetworkConnectivityCheckList, error)
+ Get(ctx context.Context, name string, opts v1.GetOptions) (*operatorcontrolplanev1alpha1.PodNetworkConnectivityCheck, error)
+ List(ctx context.Context, opts v1.ListOptions) (*operatorcontrolplanev1alpha1.PodNetworkConnectivityCheckList, error)
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PodNetworkConnectivityCheck, err error)
- Apply(ctx context.Context, podNetworkConnectivityCheck *operatorcontrolplanev1alpha1.PodNetworkConnectivityCheckApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.PodNetworkConnectivityCheck, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *operatorcontrolplanev1alpha1.PodNetworkConnectivityCheck, err error)
+ Apply(ctx context.Context, podNetworkConnectivityCheck *applyconfigurationsoperatorcontrolplanev1alpha1.PodNetworkConnectivityCheckApplyConfiguration, opts v1.ApplyOptions) (result *operatorcontrolplanev1alpha1.PodNetworkConnectivityCheck, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, podNetworkConnectivityCheck *operatorcontrolplanev1alpha1.PodNetworkConnectivityCheckApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.PodNetworkConnectivityCheck, err error)
+ ApplyStatus(ctx context.Context, podNetworkConnectivityCheck *applyconfigurationsoperatorcontrolplanev1alpha1.PodNetworkConnectivityCheckApplyConfiguration, opts v1.ApplyOptions) (result *operatorcontrolplanev1alpha1.PodNetworkConnectivityCheck, err error)
PodNetworkConnectivityCheckExpansion
}
// podNetworkConnectivityChecks implements PodNetworkConnectivityCheckInterface
type podNetworkConnectivityChecks struct {
- *gentype.ClientWithListAndApply[*v1alpha1.PodNetworkConnectivityCheck, *v1alpha1.PodNetworkConnectivityCheckList, *operatorcontrolplanev1alpha1.PodNetworkConnectivityCheckApplyConfiguration]
+ *gentype.ClientWithListAndApply[*operatorcontrolplanev1alpha1.PodNetworkConnectivityCheck, *operatorcontrolplanev1alpha1.PodNetworkConnectivityCheckList, *applyconfigurationsoperatorcontrolplanev1alpha1.PodNetworkConnectivityCheckApplyConfiguration]
}
// newPodNetworkConnectivityChecks returns a PodNetworkConnectivityChecks
func newPodNetworkConnectivityChecks(c *ControlplaneV1alpha1Client, namespace string) *podNetworkConnectivityChecks {
return &podNetworkConnectivityChecks{
- gentype.NewClientWithListAndApply[*v1alpha1.PodNetworkConnectivityCheck, *v1alpha1.PodNetworkConnectivityCheckList, *operatorcontrolplanev1alpha1.PodNetworkConnectivityCheckApplyConfiguration](
+ gentype.NewClientWithListAndApply[*operatorcontrolplanev1alpha1.PodNetworkConnectivityCheck, *operatorcontrolplanev1alpha1.PodNetworkConnectivityCheckList, *applyconfigurationsoperatorcontrolplanev1alpha1.PodNetworkConnectivityCheckApplyConfiguration](
"podnetworkconnectivitychecks",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
- func() *v1alpha1.PodNetworkConnectivityCheck { return &v1alpha1.PodNetworkConnectivityCheck{} },
- func() *v1alpha1.PodNetworkConnectivityCheckList { return &v1alpha1.PodNetworkConnectivityCheckList{} }),
+ func() *operatorcontrolplanev1alpha1.PodNetworkConnectivityCheck {
+ return &operatorcontrolplanev1alpha1.PodNetworkConnectivityCheck{}
+ },
+ func() *operatorcontrolplanev1alpha1.PodNetworkConnectivityCheckList {
+ return &operatorcontrolplanev1alpha1.PodNetworkConnectivityCheckList{}
+ },
+ ),
}
}
diff --git a/operatorcontrolplane/informers/externalversions/generic.go b/operatorcontrolplane/informers/externalversions/generic.go
index 5adcac48b..02a29ddf0 100644
--- a/operatorcontrolplane/informers/externalversions/generic.go
+++ b/operatorcontrolplane/informers/externalversions/generic.go
@@ -3,7 +3,7 @@
package externalversions
import (
- "fmt"
+ fmt "fmt"
v1alpha1 "github.com/openshift/api/operatorcontrolplane/v1alpha1"
schema "k8s.io/apimachinery/pkg/runtime/schema"
diff --git a/operatorcontrolplane/informers/externalversions/operatorcontrolplane/v1alpha1/podnetworkconnectivitycheck.go b/operatorcontrolplane/informers/externalversions/operatorcontrolplane/v1alpha1/podnetworkconnectivitycheck.go
index 8b828c505..4f2b1e943 100644
--- a/operatorcontrolplane/informers/externalversions/operatorcontrolplane/v1alpha1/podnetworkconnectivitycheck.go
+++ b/operatorcontrolplane/informers/externalversions/operatorcontrolplane/v1alpha1/podnetworkconnectivitycheck.go
@@ -3,13 +3,13 @@
package v1alpha1
import (
- "context"
+ context "context"
time "time"
- operatorcontrolplanev1alpha1 "github.com/openshift/api/operatorcontrolplane/v1alpha1"
+ apioperatorcontrolplanev1alpha1 "github.com/openshift/api/operatorcontrolplane/v1alpha1"
versioned "github.com/openshift/client-go/operatorcontrolplane/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/operatorcontrolplane/informers/externalversions/internalinterfaces"
- v1alpha1 "github.com/openshift/client-go/operatorcontrolplane/listers/operatorcontrolplane/v1alpha1"
+ operatorcontrolplanev1alpha1 "github.com/openshift/client-go/operatorcontrolplane/listers/operatorcontrolplane/v1alpha1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// PodNetworkConnectivityChecks.
type PodNetworkConnectivityCheckInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1alpha1.PodNetworkConnectivityCheckLister
+ Lister() operatorcontrolplanev1alpha1.PodNetworkConnectivityCheckLister
}
type podNetworkConnectivityCheckInformer struct {
@@ -55,7 +55,7 @@ func NewFilteredPodNetworkConnectivityCheckInformer(client versioned.Interface,
return client.ControlplaneV1alpha1().PodNetworkConnectivityChecks(namespace).Watch(context.TODO(), options)
},
},
- &operatorcontrolplanev1alpha1.PodNetworkConnectivityCheck{},
+ &apioperatorcontrolplanev1alpha1.PodNetworkConnectivityCheck{},
resyncPeriod,
indexers,
)
@@ -66,9 +66,9 @@ func (f *podNetworkConnectivityCheckInformer) defaultInformer(client versioned.I
}
func (f *podNetworkConnectivityCheckInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&operatorcontrolplanev1alpha1.PodNetworkConnectivityCheck{}, f.defaultInformer)
+ return f.factory.InformerFor(&apioperatorcontrolplanev1alpha1.PodNetworkConnectivityCheck{}, f.defaultInformer)
}
-func (f *podNetworkConnectivityCheckInformer) Lister() v1alpha1.PodNetworkConnectivityCheckLister {
- return v1alpha1.NewPodNetworkConnectivityCheckLister(f.Informer().GetIndexer())
+func (f *podNetworkConnectivityCheckInformer) Lister() operatorcontrolplanev1alpha1.PodNetworkConnectivityCheckLister {
+ return operatorcontrolplanev1alpha1.NewPodNetworkConnectivityCheckLister(f.Informer().GetIndexer())
}
diff --git a/operatorcontrolplane/listers/operatorcontrolplane/v1alpha1/podnetworkconnectivitycheck.go b/operatorcontrolplane/listers/operatorcontrolplane/v1alpha1/podnetworkconnectivitycheck.go
index 1085dd477..ebffd8bcb 100644
--- a/operatorcontrolplane/listers/operatorcontrolplane/v1alpha1/podnetworkconnectivitycheck.go
+++ b/operatorcontrolplane/listers/operatorcontrolplane/v1alpha1/podnetworkconnectivitycheck.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- v1alpha1 "github.com/openshift/api/operatorcontrolplane/v1alpha1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ operatorcontrolplanev1alpha1 "github.com/openshift/api/operatorcontrolplane/v1alpha1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// PodNetworkConnectivityCheckLister helps list PodNetworkConnectivityChecks.
@@ -14,7 +14,7 @@ import (
type PodNetworkConnectivityCheckLister interface {
// List lists all PodNetworkConnectivityChecks in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1alpha1.PodNetworkConnectivityCheck, err error)
+ List(selector labels.Selector) (ret []*operatorcontrolplanev1alpha1.PodNetworkConnectivityCheck, err error)
// PodNetworkConnectivityChecks returns an object that can list and get PodNetworkConnectivityChecks.
PodNetworkConnectivityChecks(namespace string) PodNetworkConnectivityCheckNamespaceLister
PodNetworkConnectivityCheckListerExpansion
@@ -22,17 +22,17 @@ type PodNetworkConnectivityCheckLister interface {
// podNetworkConnectivityCheckLister implements the PodNetworkConnectivityCheckLister interface.
type podNetworkConnectivityCheckLister struct {
- listers.ResourceIndexer[*v1alpha1.PodNetworkConnectivityCheck]
+ listers.ResourceIndexer[*operatorcontrolplanev1alpha1.PodNetworkConnectivityCheck]
}
// NewPodNetworkConnectivityCheckLister returns a new PodNetworkConnectivityCheckLister.
func NewPodNetworkConnectivityCheckLister(indexer cache.Indexer) PodNetworkConnectivityCheckLister {
- return &podNetworkConnectivityCheckLister{listers.New[*v1alpha1.PodNetworkConnectivityCheck](indexer, v1alpha1.Resource("podnetworkconnectivitycheck"))}
+ return &podNetworkConnectivityCheckLister{listers.New[*operatorcontrolplanev1alpha1.PodNetworkConnectivityCheck](indexer, operatorcontrolplanev1alpha1.Resource("podnetworkconnectivitycheck"))}
}
// PodNetworkConnectivityChecks returns an object that can list and get PodNetworkConnectivityChecks.
func (s *podNetworkConnectivityCheckLister) PodNetworkConnectivityChecks(namespace string) PodNetworkConnectivityCheckNamespaceLister {
- return podNetworkConnectivityCheckNamespaceLister{listers.NewNamespaced[*v1alpha1.PodNetworkConnectivityCheck](s.ResourceIndexer, namespace)}
+ return podNetworkConnectivityCheckNamespaceLister{listers.NewNamespaced[*operatorcontrolplanev1alpha1.PodNetworkConnectivityCheck](s.ResourceIndexer, namespace)}
}
// PodNetworkConnectivityCheckNamespaceLister helps list and get PodNetworkConnectivityChecks.
@@ -40,15 +40,15 @@ func (s *podNetworkConnectivityCheckLister) PodNetworkConnectivityChecks(namespa
type PodNetworkConnectivityCheckNamespaceLister interface {
// List lists all PodNetworkConnectivityChecks in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1alpha1.PodNetworkConnectivityCheck, err error)
+ List(selector labels.Selector) (ret []*operatorcontrolplanev1alpha1.PodNetworkConnectivityCheck, err error)
// Get retrieves the PodNetworkConnectivityCheck from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1alpha1.PodNetworkConnectivityCheck, error)
+ Get(name string) (*operatorcontrolplanev1alpha1.PodNetworkConnectivityCheck, error)
PodNetworkConnectivityCheckNamespaceListerExpansion
}
// podNetworkConnectivityCheckNamespaceLister implements the PodNetworkConnectivityCheckNamespaceLister
// interface.
type podNetworkConnectivityCheckNamespaceLister struct {
- listers.ResourceIndexer[*v1alpha1.PodNetworkConnectivityCheck]
+ listers.ResourceIndexer[*operatorcontrolplanev1alpha1.PodNetworkConnectivityCheck]
}
diff --git a/project/applyconfigurations/internal/internal.go b/project/applyconfigurations/internal/internal.go
index c66a56681..7ae7830c2 100644
--- a/project/applyconfigurations/internal/internal.go
+++ b/project/applyconfigurations/internal/internal.go
@@ -3,8 +3,8 @@
package internal
import (
- "fmt"
- "sync"
+ fmt "fmt"
+ sync "sync"
typed "sigs.k8s.io/structured-merge-diff/v4/typed"
)
diff --git a/project/applyconfigurations/project/v1/project.go b/project/applyconfigurations/project/v1/project.go
index 59555ec2b..6a59c4072 100644
--- a/project/applyconfigurations/project/v1/project.go
+++ b/project/applyconfigurations/project/v1/project.go
@@ -3,21 +3,21 @@
package v1
import (
- apiprojectv1 "github.com/openshift/api/project/v1"
+ projectv1 "github.com/openshift/api/project/v1"
internal "github.com/openshift/client-go/project/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ProjectApplyConfiguration represents a declarative configuration of the Project type for use
// with apply.
type ProjectApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *ProjectSpecApplyConfiguration `json:"spec,omitempty"`
- Status *ProjectStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *ProjectSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *ProjectStatusApplyConfiguration `json:"status,omitempty"`
}
// Project constructs a declarative configuration of the Project type for use with
@@ -41,18 +41,18 @@ func Project(name string) *ProjectApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractProject(project *apiprojectv1.Project, fieldManager string) (*ProjectApplyConfiguration, error) {
+func ExtractProject(project *projectv1.Project, fieldManager string) (*ProjectApplyConfiguration, error) {
return extractProject(project, fieldManager, "")
}
// ExtractProjectStatus is the same as ExtractProject except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractProjectStatus(project *apiprojectv1.Project, fieldManager string) (*ProjectApplyConfiguration, error) {
+func ExtractProjectStatus(project *projectv1.Project, fieldManager string) (*ProjectApplyConfiguration, error) {
return extractProject(project, fieldManager, "status")
}
-func extractProject(project *apiprojectv1.Project, fieldManager string, subresource string) (*ProjectApplyConfiguration, error) {
+func extractProject(project *projectv1.Project, fieldManager string, subresource string) (*ProjectApplyConfiguration, error) {
b := &ProjectApplyConfiguration{}
err := managedfields.ExtractInto(project, internal.Parser().Type("com.github.openshift.api.project.v1.Project"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractProject(project *apiprojectv1.Project, fieldManager string, subresou
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ProjectApplyConfiguration) WithKind(value string) *ProjectApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *ProjectApplyConfiguration) WithKind(value string) *ProjectApplyConfigur
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ProjectApplyConfiguration) WithAPIVersion(value string) *ProjectApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *ProjectApplyConfiguration) WithAPIVersion(value string) *ProjectApplyCo
// If called multiple times, the Name field is set to the value of the last call.
func (b *ProjectApplyConfiguration) WithName(value string) *ProjectApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *ProjectApplyConfiguration) WithName(value string) *ProjectApplyConfigur
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ProjectApplyConfiguration) WithGenerateName(value string) *ProjectApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *ProjectApplyConfiguration) WithGenerateName(value string) *ProjectApply
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ProjectApplyConfiguration) WithNamespace(value string) *ProjectApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *ProjectApplyConfiguration) WithNamespace(value string) *ProjectApplyCon
// If called multiple times, the UID field is set to the value of the last call.
func (b *ProjectApplyConfiguration) WithUID(value types.UID) *ProjectApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *ProjectApplyConfiguration) WithUID(value types.UID) *ProjectApplyConfig
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ProjectApplyConfiguration) WithResourceVersion(value string) *ProjectApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *ProjectApplyConfiguration) WithResourceVersion(value string) *ProjectAp
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ProjectApplyConfiguration) WithGeneration(value int64) *ProjectApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *ProjectApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ProjectApplyConfiguration {
+func (b *ProjectApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ProjectApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *ProjectApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ProjectApplyConfiguration {
+func (b *ProjectApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ProjectApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *ProjectApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *Pr
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ProjectApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ProjectApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *ProjectApplyConfiguration) WithDeletionGracePeriodSeconds(value int64)
// overwriting an existing map entries in Labels field with the same key.
func (b *ProjectApplyConfiguration) WithLabels(entries map[string]string) *ProjectApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *ProjectApplyConfiguration) WithLabels(entries map[string]string) *Proje
// overwriting an existing map entries in Annotations field with the same key.
func (b *ProjectApplyConfiguration) WithAnnotations(entries map[string]string) *ProjectApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *ProjectApplyConfiguration) WithAnnotations(entries map[string]string) *
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *ProjectApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ProjectApplyConfiguration {
+func (b *ProjectApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ProjectApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *ProjectApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefer
func (b *ProjectApplyConfiguration) WithFinalizers(values ...string) *ProjectApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *ProjectApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *ProjectApplyConfiguration) WithStatus(value *ProjectStatusApplyConfigur
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ProjectApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/project/applyconfigurations/project/v1/projectrequest.go b/project/applyconfigurations/project/v1/projectrequest.go
index acfca5efa..a5d484dd2 100644
--- a/project/applyconfigurations/project/v1/projectrequest.go
+++ b/project/applyconfigurations/project/v1/projectrequest.go
@@ -5,19 +5,19 @@ package v1
import (
projectv1 "github.com/openshift/api/project/v1"
internal "github.com/openshift/client-go/project/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ProjectRequestApplyConfiguration represents a declarative configuration of the ProjectRequest type for use
// with apply.
type ProjectRequestApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- DisplayName *string `json:"displayName,omitempty"`
- Description *string `json:"description,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ DisplayName *string `json:"displayName,omitempty"`
+ Description *string `json:"description,omitempty"`
}
// ProjectRequest constructs a declarative configuration of the ProjectRequest type for use with
@@ -69,7 +69,7 @@ func extractProjectRequest(projectRequest *projectv1.ProjectRequest, fieldManage
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ProjectRequestApplyConfiguration) WithKind(value string) *ProjectRequestApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *ProjectRequestApplyConfiguration) WithKind(value string) *ProjectReques
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ProjectRequestApplyConfiguration) WithAPIVersion(value string) *ProjectRequestApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *ProjectRequestApplyConfiguration) WithAPIVersion(value string) *Project
// If called multiple times, the Name field is set to the value of the last call.
func (b *ProjectRequestApplyConfiguration) WithName(value string) *ProjectRequestApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *ProjectRequestApplyConfiguration) WithName(value string) *ProjectReques
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ProjectRequestApplyConfiguration) WithGenerateName(value string) *ProjectRequestApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *ProjectRequestApplyConfiguration) WithGenerateName(value string) *Proje
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ProjectRequestApplyConfiguration) WithNamespace(value string) *ProjectRequestApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *ProjectRequestApplyConfiguration) WithNamespace(value string) *ProjectR
// If called multiple times, the UID field is set to the value of the last call.
func (b *ProjectRequestApplyConfiguration) WithUID(value types.UID) *ProjectRequestApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *ProjectRequestApplyConfiguration) WithUID(value types.UID) *ProjectRequ
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ProjectRequestApplyConfiguration) WithResourceVersion(value string) *ProjectRequestApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *ProjectRequestApplyConfiguration) WithResourceVersion(value string) *Pr
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ProjectRequestApplyConfiguration) WithGeneration(value int64) *ProjectRequestApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *ProjectRequestApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ProjectRequestApplyConfiguration {
+func (b *ProjectRequestApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ProjectRequestApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *ProjectRequestApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ProjectRequestApplyConfiguration {
+func (b *ProjectRequestApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ProjectRequestApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *ProjectRequestApplyConfiguration) WithDeletionTimestamp(value metav1.Ti
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ProjectRequestApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ProjectRequestApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *ProjectRequestApplyConfiguration) WithDeletionGracePeriodSeconds(value
// overwriting an existing map entries in Labels field with the same key.
func (b *ProjectRequestApplyConfiguration) WithLabels(entries map[string]string) *ProjectRequestApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *ProjectRequestApplyConfiguration) WithLabels(entries map[string]string)
// overwriting an existing map entries in Annotations field with the same key.
func (b *ProjectRequestApplyConfiguration) WithAnnotations(entries map[string]string) *ProjectRequestApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *ProjectRequestApplyConfiguration) WithAnnotations(entries map[string]st
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *ProjectRequestApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ProjectRequestApplyConfiguration {
+func (b *ProjectRequestApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ProjectRequestApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *ProjectRequestApplyConfiguration) WithOwnerReferences(values ...*v1.Own
func (b *ProjectRequestApplyConfiguration) WithFinalizers(values ...string) *ProjectRequestApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *ProjectRequestApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *ProjectRequestApplyConfiguration) WithDescription(value string) *Projec
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ProjectRequestApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/project/applyconfigurations/project/v1/projectspec.go b/project/applyconfigurations/project/v1/projectspec.go
index df5f8bcb6..49765c170 100644
--- a/project/applyconfigurations/project/v1/projectspec.go
+++ b/project/applyconfigurations/project/v1/projectspec.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "k8s.io/api/core/v1"
+ corev1 "k8s.io/api/core/v1"
)
// ProjectSpecApplyConfiguration represents a declarative configuration of the ProjectSpec type for use
// with apply.
type ProjectSpecApplyConfiguration struct {
- Finalizers []v1.FinalizerName `json:"finalizers,omitempty"`
+ Finalizers []corev1.FinalizerName `json:"finalizers,omitempty"`
}
// ProjectSpecApplyConfiguration constructs a declarative configuration of the ProjectSpec type for use with
@@ -21,7 +21,7 @@ func ProjectSpec() *ProjectSpecApplyConfiguration {
// WithFinalizers adds the given value to the Finalizers field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Finalizers field.
-func (b *ProjectSpecApplyConfiguration) WithFinalizers(values ...v1.FinalizerName) *ProjectSpecApplyConfiguration {
+func (b *ProjectSpecApplyConfiguration) WithFinalizers(values ...corev1.FinalizerName) *ProjectSpecApplyConfiguration {
for i := range values {
b.Finalizers = append(b.Finalizers, values[i])
}
diff --git a/project/applyconfigurations/project/v1/projectstatus.go b/project/applyconfigurations/project/v1/projectstatus.go
index 905379165..07ab025a7 100644
--- a/project/applyconfigurations/project/v1/projectstatus.go
+++ b/project/applyconfigurations/project/v1/projectstatus.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "k8s.io/api/core/v1"
+ corev1 "k8s.io/api/core/v1"
)
// ProjectStatusApplyConfiguration represents a declarative configuration of the ProjectStatus type for use
// with apply.
type ProjectStatusApplyConfiguration struct {
- Phase *v1.NamespacePhase `json:"phase,omitempty"`
- Conditions []v1.NamespaceCondition `json:"conditions,omitempty"`
+ Phase *corev1.NamespacePhase `json:"phase,omitempty"`
+ Conditions []corev1.NamespaceCondition `json:"conditions,omitempty"`
}
// ProjectStatusApplyConfiguration constructs a declarative configuration of the ProjectStatus type for use with
@@ -22,7 +22,7 @@ func ProjectStatus() *ProjectStatusApplyConfiguration {
// WithPhase sets the Phase field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Phase field is set to the value of the last call.
-func (b *ProjectStatusApplyConfiguration) WithPhase(value v1.NamespacePhase) *ProjectStatusApplyConfiguration {
+func (b *ProjectStatusApplyConfiguration) WithPhase(value corev1.NamespacePhase) *ProjectStatusApplyConfiguration {
b.Phase = &value
return b
}
@@ -30,7 +30,7 @@ func (b *ProjectStatusApplyConfiguration) WithPhase(value v1.NamespacePhase) *Pr
// WithConditions adds the given value to the Conditions field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Conditions field.
-func (b *ProjectStatusApplyConfiguration) WithConditions(values ...v1.NamespaceCondition) *ProjectStatusApplyConfiguration {
+func (b *ProjectStatusApplyConfiguration) WithConditions(values ...corev1.NamespaceCondition) *ProjectStatusApplyConfiguration {
for i := range values {
b.Conditions = append(b.Conditions, values[i])
}
diff --git a/project/clientset/versioned/clientset.go b/project/clientset/versioned/clientset.go
index 3489558fd..6925af6cb 100644
--- a/project/clientset/versioned/clientset.go
+++ b/project/clientset/versioned/clientset.go
@@ -3,8 +3,8 @@
package versioned
import (
- "fmt"
- "net/http"
+ fmt "fmt"
+ http "net/http"
projectv1 "github.com/openshift/client-go/project/clientset/versioned/typed/project/v1"
discovery "k8s.io/client-go/discovery"
diff --git a/project/clientset/versioned/typed/project/v1/fake/fake_project.go b/project/clientset/versioned/typed/project/v1/fake/fake_project.go
index 18cb924a1..a4b8ba74b 100644
--- a/project/clientset/versioned/typed/project/v1/fake/fake_project.go
+++ b/project/clientset/versioned/typed/project/v1/fake/fake_project.go
@@ -3,168 +3,31 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/project/v1"
projectv1 "github.com/openshift/client-go/project/applyconfigurations/project/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedprojectv1 "github.com/openshift/client-go/project/clientset/versioned/typed/project/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeProjects implements ProjectInterface
-type FakeProjects struct {
+// fakeProjects implements ProjectInterface
+type fakeProjects struct {
+ *gentype.FakeClientWithListAndApply[*v1.Project, *v1.ProjectList, *projectv1.ProjectApplyConfiguration]
Fake *FakeProjectV1
}
-var projectsResource = v1.SchemeGroupVersion.WithResource("projects")
-
-var projectsKind = v1.SchemeGroupVersion.WithKind("Project")
-
-// Get takes name of the project, and returns the corresponding project object, and an error if there is any.
-func (c *FakeProjects) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Project, err error) {
- emptyResult := &v1.Project{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(projectsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Project), err
-}
-
-// List takes label and field selectors, and returns the list of Projects that match those selectors.
-func (c *FakeProjects) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ProjectList, err error) {
- emptyResult := &v1.ProjectList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(projectsResource, projectsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.ProjectList{ListMeta: obj.(*v1.ProjectList).ListMeta}
- for _, item := range obj.(*v1.ProjectList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested projects.
-func (c *FakeProjects) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(projectsResource, opts))
-}
-
-// Create takes the representation of a project and creates it. Returns the server's representation of the project, and an error, if there is any.
-func (c *FakeProjects) Create(ctx context.Context, project *v1.Project, opts metav1.CreateOptions) (result *v1.Project, err error) {
- emptyResult := &v1.Project{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(projectsResource, project, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Project), err
-}
-
-// Update takes the representation of a project and updates it. Returns the server's representation of the project, and an error, if there is any.
-func (c *FakeProjects) Update(ctx context.Context, project *v1.Project, opts metav1.UpdateOptions) (result *v1.Project, err error) {
- emptyResult := &v1.Project{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(projectsResource, project, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Project), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeProjects) UpdateStatus(ctx context.Context, project *v1.Project, opts metav1.UpdateOptions) (result *v1.Project, err error) {
- emptyResult := &v1.Project{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(projectsResource, "status", project, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Project), err
-}
-
-// Delete takes name of the project and deletes it. Returns an error if one occurs.
-func (c *FakeProjects) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(projectsResource, name, opts), &v1.Project{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeProjects) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(projectsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.ProjectList{})
- return err
-}
-
-// Patch applies the patch and returns the patched project.
-func (c *FakeProjects) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Project, err error) {
- emptyResult := &v1.Project{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(projectsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Project), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied project.
-func (c *FakeProjects) Apply(ctx context.Context, project *projectv1.ProjectApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Project, err error) {
- if project == nil {
- return nil, fmt.Errorf("project provided to Apply must not be nil")
- }
- data, err := json.Marshal(project)
- if err != nil {
- return nil, err
- }
- name := project.Name
- if name == nil {
- return nil, fmt.Errorf("project.Name must be provided to Apply")
- }
- emptyResult := &v1.Project{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(projectsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Project), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeProjects) ApplyStatus(ctx context.Context, project *projectv1.ProjectApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Project, err error) {
- if project == nil {
- return nil, fmt.Errorf("project provided to Apply must not be nil")
- }
- data, err := json.Marshal(project)
- if err != nil {
- return nil, err
- }
- name := project.Name
- if name == nil {
- return nil, fmt.Errorf("project.Name must be provided to Apply")
- }
- emptyResult := &v1.Project{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(projectsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeProjects(fake *FakeProjectV1) typedprojectv1.ProjectInterface {
+ return &fakeProjects{
+ gentype.NewFakeClientWithListAndApply[*v1.Project, *v1.ProjectList, *projectv1.ProjectApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("projects"),
+ v1.SchemeGroupVersion.WithKind("Project"),
+ func() *v1.Project { return &v1.Project{} },
+ func() *v1.ProjectList { return &v1.ProjectList{} },
+ func(dst, src *v1.ProjectList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.ProjectList) []*v1.Project { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.ProjectList, items []*v1.Project) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.Project), err
}
diff --git a/project/clientset/versioned/typed/project/v1/fake/fake_project_client.go b/project/clientset/versioned/typed/project/v1/fake/fake_project_client.go
index 7cec01253..a38ab7afc 100644
--- a/project/clientset/versioned/typed/project/v1/fake/fake_project_client.go
+++ b/project/clientset/versioned/typed/project/v1/fake/fake_project_client.go
@@ -13,11 +13,11 @@ type FakeProjectV1 struct {
}
func (c *FakeProjectV1) Projects() v1.ProjectInterface {
- return &FakeProjects{c}
+ return newFakeProjects(c)
}
func (c *FakeProjectV1) ProjectRequests() v1.ProjectRequestInterface {
- return &FakeProjectRequests{c}
+ return newFakeProjectRequests(c)
}
// RESTClient returns a RESTClient that is used to communicate
diff --git a/project/clientset/versioned/typed/project/v1/fake/fake_projectrequest.go b/project/clientset/versioned/typed/project/v1/fake/fake_projectrequest.go
index e6cd00a30..4db074b29 100644
--- a/project/clientset/versioned/typed/project/v1/fake/fake_projectrequest.go
+++ b/project/clientset/versioned/typed/project/v1/fake/fake_projectrequest.go
@@ -3,53 +3,40 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
+ context "context"
v1 "github.com/openshift/api/project/v1"
projectv1 "github.com/openshift/client-go/project/applyconfigurations/project/v1"
+ typedprojectv1 "github.com/openshift/client-go/project/clientset/versioned/typed/project/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- types "k8s.io/apimachinery/pkg/types"
+ gentype "k8s.io/client-go/gentype"
testing "k8s.io/client-go/testing"
)
-// FakeProjectRequests implements ProjectRequestInterface
-type FakeProjectRequests struct {
+// fakeProjectRequests implements ProjectRequestInterface
+type fakeProjectRequests struct {
+ *gentype.FakeClientWithApply[*v1.ProjectRequest, *projectv1.ProjectRequestApplyConfiguration]
Fake *FakeProjectV1
}
-var projectrequestsResource = v1.SchemeGroupVersion.WithResource("projectrequests")
-
-var projectrequestsKind = v1.SchemeGroupVersion.WithKind("ProjectRequest")
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied projectRequest.
-func (c *FakeProjectRequests) Apply(ctx context.Context, projectRequest *projectv1.ProjectRequestApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ProjectRequest, err error) {
- if projectRequest == nil {
- return nil, fmt.Errorf("projectRequest provided to Apply must not be nil")
- }
- data, err := json.Marshal(projectRequest)
- if err != nil {
- return nil, err
- }
- name := projectRequest.Name
- if name == nil {
- return nil, fmt.Errorf("projectRequest.Name must be provided to Apply")
- }
- emptyResult := &v1.ProjectRequest{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(projectrequestsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeProjectRequests(fake *FakeProjectV1) typedprojectv1.ProjectRequestInterface {
+ return &fakeProjectRequests{
+ gentype.NewFakeClientWithApply[*v1.ProjectRequest, *projectv1.ProjectRequestApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("projectrequests"),
+ v1.SchemeGroupVersion.WithKind("ProjectRequest"),
+ func() *v1.ProjectRequest { return &v1.ProjectRequest{} },
+ ),
+ fake,
}
- return obj.(*v1.ProjectRequest), err
}
// Create takes the representation of a projectRequest and creates it. Returns the server's representation of the project, and an error, if there is any.
-func (c *FakeProjectRequests) Create(ctx context.Context, projectRequest *v1.ProjectRequest, opts metav1.CreateOptions) (result *v1.Project, err error) {
+func (c *fakeProjectRequests) Create(ctx context.Context, projectRequest *v1.ProjectRequest, opts metav1.CreateOptions) (result *v1.Project, err error) {
emptyResult := &v1.Project{}
obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(projectrequestsResource, projectRequest, opts), emptyResult)
+ Invokes(testing.NewRootCreateActionWithOptions(c.Resource(), projectRequest, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
diff --git a/project/clientset/versioned/typed/project/v1/project.go b/project/clientset/versioned/typed/project/v1/project.go
index c11c80ef5..20d0753e2 100644
--- a/project/clientset/versioned/typed/project/v1/project.go
+++ b/project/clientset/versioned/typed/project/v1/project.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/project/v1"
- projectv1 "github.com/openshift/client-go/project/applyconfigurations/project/v1"
+ projectv1 "github.com/openshift/api/project/v1"
+ applyconfigurationsprojectv1 "github.com/openshift/client-go/project/applyconfigurations/project/v1"
scheme "github.com/openshift/client-go/project/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type ProjectsGetter interface {
// ProjectInterface has methods to work with Project resources.
type ProjectInterface interface {
- Create(ctx context.Context, project *v1.Project, opts metav1.CreateOptions) (*v1.Project, error)
- Update(ctx context.Context, project *v1.Project, opts metav1.UpdateOptions) (*v1.Project, error)
+ Create(ctx context.Context, project *projectv1.Project, opts metav1.CreateOptions) (*projectv1.Project, error)
+ Update(ctx context.Context, project *projectv1.Project, opts metav1.UpdateOptions) (*projectv1.Project, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, project *v1.Project, opts metav1.UpdateOptions) (*v1.Project, error)
+ UpdateStatus(ctx context.Context, project *projectv1.Project, opts metav1.UpdateOptions) (*projectv1.Project, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Project, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.ProjectList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*projectv1.Project, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*projectv1.ProjectList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Project, err error)
- Apply(ctx context.Context, project *projectv1.ProjectApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Project, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *projectv1.Project, err error)
+ Apply(ctx context.Context, project *applyconfigurationsprojectv1.ProjectApplyConfiguration, opts metav1.ApplyOptions) (result *projectv1.Project, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, project *projectv1.ProjectApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Project, err error)
+ ApplyStatus(ctx context.Context, project *applyconfigurationsprojectv1.ProjectApplyConfiguration, opts metav1.ApplyOptions) (result *projectv1.Project, err error)
ProjectExpansion
}
// projects implements ProjectInterface
type projects struct {
- *gentype.ClientWithListAndApply[*v1.Project, *v1.ProjectList, *projectv1.ProjectApplyConfiguration]
+ *gentype.ClientWithListAndApply[*projectv1.Project, *projectv1.ProjectList, *applyconfigurationsprojectv1.ProjectApplyConfiguration]
}
// newProjects returns a Projects
func newProjects(c *ProjectV1Client) *projects {
return &projects{
- gentype.NewClientWithListAndApply[*v1.Project, *v1.ProjectList, *projectv1.ProjectApplyConfiguration](
+ gentype.NewClientWithListAndApply[*projectv1.Project, *projectv1.ProjectList, *applyconfigurationsprojectv1.ProjectApplyConfiguration](
"projects",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.Project { return &v1.Project{} },
- func() *v1.ProjectList { return &v1.ProjectList{} }),
+ func() *projectv1.Project { return &projectv1.Project{} },
+ func() *projectv1.ProjectList { return &projectv1.ProjectList{} },
+ ),
}
}
diff --git a/project/clientset/versioned/typed/project/v1/project_client.go b/project/clientset/versioned/typed/project/v1/project_client.go
index 4757d14a9..c7a95421c 100644
--- a/project/clientset/versioned/typed/project/v1/project_client.go
+++ b/project/clientset/versioned/typed/project/v1/project_client.go
@@ -3,10 +3,10 @@
package v1
import (
- "net/http"
+ http "net/http"
- v1 "github.com/openshift/api/project/v1"
- "github.com/openshift/client-go/project/clientset/versioned/scheme"
+ projectv1 "github.com/openshift/api/project/v1"
+ scheme "github.com/openshift/client-go/project/clientset/versioned/scheme"
rest "k8s.io/client-go/rest"
)
@@ -74,10 +74,10 @@ func New(c rest.Interface) *ProjectV1Client {
}
func setConfigDefaults(config *rest.Config) error {
- gv := v1.SchemeGroupVersion
+ gv := projectv1.SchemeGroupVersion
config.GroupVersion = &gv
config.APIPath = "/apis"
- config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
+ config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion()
if config.UserAgent == "" {
config.UserAgent = rest.DefaultKubernetesUserAgent()
diff --git a/project/clientset/versioned/typed/project/v1/projectrequest.go b/project/clientset/versioned/typed/project/v1/projectrequest.go
index 62e4d366b..33cdcaa5e 100644
--- a/project/clientset/versioned/typed/project/v1/projectrequest.go
+++ b/project/clientset/versioned/typed/project/v1/projectrequest.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- projectv1 "github.com/openshift/api/project/v1"
- v1 "github.com/openshift/client-go/project/applyconfigurations/project/v1"
+ apiprojectv1 "github.com/openshift/api/project/v1"
+ projectv1 "github.com/openshift/client-go/project/applyconfigurations/project/v1"
scheme "github.com/openshift/client-go/project/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
gentype "k8s.io/client-go/gentype"
@@ -20,32 +20,33 @@ type ProjectRequestsGetter interface {
// ProjectRequestInterface has methods to work with ProjectRequest resources.
type ProjectRequestInterface interface {
- Apply(ctx context.Context, projectRequest *v1.ProjectRequestApplyConfiguration, opts metav1.ApplyOptions) (result *projectv1.ProjectRequest, err error)
- Create(ctx context.Context, projectRequest *projectv1.ProjectRequest, opts metav1.CreateOptions) (*projectv1.Project, error)
+ Apply(ctx context.Context, projectRequest *projectv1.ProjectRequestApplyConfiguration, opts metav1.ApplyOptions) (result *apiprojectv1.ProjectRequest, err error)
+ Create(ctx context.Context, projectRequest *apiprojectv1.ProjectRequest, opts metav1.CreateOptions) (*apiprojectv1.Project, error)
ProjectRequestExpansion
}
// projectRequests implements ProjectRequestInterface
type projectRequests struct {
- *gentype.ClientWithApply[*projectv1.ProjectRequest, *v1.ProjectRequestApplyConfiguration]
+ *gentype.ClientWithApply[*apiprojectv1.ProjectRequest, *projectv1.ProjectRequestApplyConfiguration]
}
// newProjectRequests returns a ProjectRequests
func newProjectRequests(c *ProjectV1Client) *projectRequests {
return &projectRequests{
- gentype.NewClientWithApply[*projectv1.ProjectRequest, *v1.ProjectRequestApplyConfiguration](
+ gentype.NewClientWithApply[*apiprojectv1.ProjectRequest, *projectv1.ProjectRequestApplyConfiguration](
"projectrequests",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *projectv1.ProjectRequest { return &projectv1.ProjectRequest{} }),
+ func() *apiprojectv1.ProjectRequest { return &apiprojectv1.ProjectRequest{} },
+ ),
}
}
// Create takes the representation of a projectRequest and creates it. Returns the server's representation of the project, and an error, if there is any.
-func (c *projectRequests) Create(ctx context.Context, projectRequest *projectv1.ProjectRequest, opts metav1.CreateOptions) (result *projectv1.Project, err error) {
- result = &projectv1.Project{}
+func (c *projectRequests) Create(ctx context.Context, projectRequest *apiprojectv1.ProjectRequest, opts metav1.CreateOptions) (result *apiprojectv1.Project, err error) {
+ result = &apiprojectv1.Project{}
err = c.GetClient().Post().
Resource("projectrequests").
VersionedParams(&opts, scheme.ParameterCodec).
diff --git a/project/informers/externalversions/generic.go b/project/informers/externalversions/generic.go
index a92d6839c..3ebb948de 100644
--- a/project/informers/externalversions/generic.go
+++ b/project/informers/externalversions/generic.go
@@ -3,7 +3,7 @@
package externalversions
import (
- "fmt"
+ fmt "fmt"
v1 "github.com/openshift/api/project/v1"
schema "k8s.io/apimachinery/pkg/runtime/schema"
diff --git a/project/informers/externalversions/project/v1/project.go b/project/informers/externalversions/project/v1/project.go
index d7aab0f90..c12eb047e 100644
--- a/project/informers/externalversions/project/v1/project.go
+++ b/project/informers/externalversions/project/v1/project.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- projectv1 "github.com/openshift/api/project/v1"
+ apiprojectv1 "github.com/openshift/api/project/v1"
versioned "github.com/openshift/client-go/project/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/project/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/project/listers/project/v1"
+ projectv1 "github.com/openshift/client-go/project/listers/project/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// Projects.
type ProjectInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.ProjectLister
+ Lister() projectv1.ProjectLister
}
type projectInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredProjectInformer(client versioned.Interface, resyncPeriod time.Du
return client.ProjectV1().Projects().Watch(context.TODO(), options)
},
},
- &projectv1.Project{},
+ &apiprojectv1.Project{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *projectInformer) defaultInformer(client versioned.Interface, resyncPeri
}
func (f *projectInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&projectv1.Project{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiprojectv1.Project{}, f.defaultInformer)
}
-func (f *projectInformer) Lister() v1.ProjectLister {
- return v1.NewProjectLister(f.Informer().GetIndexer())
+func (f *projectInformer) Lister() projectv1.ProjectLister {
+ return projectv1.NewProjectLister(f.Informer().GetIndexer())
}
diff --git a/project/listers/project/v1/project.go b/project/listers/project/v1/project.go
index 6bb403fd6..8d397249c 100644
--- a/project/listers/project/v1/project.go
+++ b/project/listers/project/v1/project.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/project/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ projectv1 "github.com/openshift/api/project/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ProjectLister helps list Projects.
@@ -14,19 +14,19 @@ import (
type ProjectLister interface {
// List lists all Projects in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.Project, err error)
+ List(selector labels.Selector) (ret []*projectv1.Project, err error)
// Get retrieves the Project from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.Project, error)
+ Get(name string) (*projectv1.Project, error)
ProjectListerExpansion
}
// projectLister implements the ProjectLister interface.
type projectLister struct {
- listers.ResourceIndexer[*v1.Project]
+ listers.ResourceIndexer[*projectv1.Project]
}
// NewProjectLister returns a new ProjectLister.
func NewProjectLister(indexer cache.Indexer) ProjectLister {
- return &projectLister{listers.New[*v1.Project](indexer, v1.Resource("project"))}
+ return &projectLister{listers.New[*projectv1.Project](indexer, projectv1.Resource("project"))}
}
diff --git a/quota/applyconfigurations/internal/internal.go b/quota/applyconfigurations/internal/internal.go
index 9f68b9af2..003565e7a 100644
--- a/quota/applyconfigurations/internal/internal.go
+++ b/quota/applyconfigurations/internal/internal.go
@@ -3,8 +3,8 @@
package internal
import (
- "fmt"
- "sync"
+ fmt "fmt"
+ sync "sync"
typed "sigs.k8s.io/structured-merge-diff/v4/typed"
)
diff --git a/quota/applyconfigurations/quota/v1/clusterresourcequota.go b/quota/applyconfigurations/quota/v1/clusterresourcequota.go
index 4f03f4008..c279b2788 100644
--- a/quota/applyconfigurations/quota/v1/clusterresourcequota.go
+++ b/quota/applyconfigurations/quota/v1/clusterresourcequota.go
@@ -3,21 +3,21 @@
package v1
import (
- apiquotav1 "github.com/openshift/api/quota/v1"
+ quotav1 "github.com/openshift/api/quota/v1"
internal "github.com/openshift/client-go/quota/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ClusterResourceQuotaApplyConfiguration represents a declarative configuration of the ClusterResourceQuota type for use
// with apply.
type ClusterResourceQuotaApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *ClusterResourceQuotaSpecApplyConfiguration `json:"spec,omitempty"`
- Status *ClusterResourceQuotaStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *ClusterResourceQuotaSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *ClusterResourceQuotaStatusApplyConfiguration `json:"status,omitempty"`
}
// ClusterResourceQuota constructs a declarative configuration of the ClusterResourceQuota type for use with
@@ -41,18 +41,18 @@ func ClusterResourceQuota(name string) *ClusterResourceQuotaApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractClusterResourceQuota(clusterResourceQuota *apiquotav1.ClusterResourceQuota, fieldManager string) (*ClusterResourceQuotaApplyConfiguration, error) {
+func ExtractClusterResourceQuota(clusterResourceQuota *quotav1.ClusterResourceQuota, fieldManager string) (*ClusterResourceQuotaApplyConfiguration, error) {
return extractClusterResourceQuota(clusterResourceQuota, fieldManager, "")
}
// ExtractClusterResourceQuotaStatus is the same as ExtractClusterResourceQuota except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractClusterResourceQuotaStatus(clusterResourceQuota *apiquotav1.ClusterResourceQuota, fieldManager string) (*ClusterResourceQuotaApplyConfiguration, error) {
+func ExtractClusterResourceQuotaStatus(clusterResourceQuota *quotav1.ClusterResourceQuota, fieldManager string) (*ClusterResourceQuotaApplyConfiguration, error) {
return extractClusterResourceQuota(clusterResourceQuota, fieldManager, "status")
}
-func extractClusterResourceQuota(clusterResourceQuota *apiquotav1.ClusterResourceQuota, fieldManager string, subresource string) (*ClusterResourceQuotaApplyConfiguration, error) {
+func extractClusterResourceQuota(clusterResourceQuota *quotav1.ClusterResourceQuota, fieldManager string, subresource string) (*ClusterResourceQuotaApplyConfiguration, error) {
b := &ClusterResourceQuotaApplyConfiguration{}
err := managedfields.ExtractInto(clusterResourceQuota, internal.Parser().Type("com.github.openshift.api.quota.v1.ClusterResourceQuota"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractClusterResourceQuota(clusterResourceQuota *apiquotav1.ClusterResourc
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ClusterResourceQuotaApplyConfiguration) WithKind(value string) *ClusterResourceQuotaApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *ClusterResourceQuotaApplyConfiguration) WithKind(value string) *Cluster
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ClusterResourceQuotaApplyConfiguration) WithAPIVersion(value string) *ClusterResourceQuotaApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *ClusterResourceQuotaApplyConfiguration) WithAPIVersion(value string) *C
// If called multiple times, the Name field is set to the value of the last call.
func (b *ClusterResourceQuotaApplyConfiguration) WithName(value string) *ClusterResourceQuotaApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *ClusterResourceQuotaApplyConfiguration) WithName(value string) *Cluster
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ClusterResourceQuotaApplyConfiguration) WithGenerateName(value string) *ClusterResourceQuotaApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *ClusterResourceQuotaApplyConfiguration) WithGenerateName(value string)
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ClusterResourceQuotaApplyConfiguration) WithNamespace(value string) *ClusterResourceQuotaApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *ClusterResourceQuotaApplyConfiguration) WithNamespace(value string) *Cl
// If called multiple times, the UID field is set to the value of the last call.
func (b *ClusterResourceQuotaApplyConfiguration) WithUID(value types.UID) *ClusterResourceQuotaApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *ClusterResourceQuotaApplyConfiguration) WithUID(value types.UID) *Clust
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ClusterResourceQuotaApplyConfiguration) WithResourceVersion(value string) *ClusterResourceQuotaApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *ClusterResourceQuotaApplyConfiguration) WithResourceVersion(value strin
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ClusterResourceQuotaApplyConfiguration) WithGeneration(value int64) *ClusterResourceQuotaApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *ClusterResourceQuotaApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ClusterResourceQuotaApplyConfiguration {
+func (b *ClusterResourceQuotaApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ClusterResourceQuotaApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *ClusterResourceQuotaApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ClusterResourceQuotaApplyConfiguration {
+func (b *ClusterResourceQuotaApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ClusterResourceQuotaApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *ClusterResourceQuotaApplyConfiguration) WithDeletionTimestamp(value met
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ClusterResourceQuotaApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ClusterResourceQuotaApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *ClusterResourceQuotaApplyConfiguration) WithDeletionGracePeriodSeconds(
// overwriting an existing map entries in Labels field with the same key.
func (b *ClusterResourceQuotaApplyConfiguration) WithLabels(entries map[string]string) *ClusterResourceQuotaApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *ClusterResourceQuotaApplyConfiguration) WithLabels(entries map[string]s
// overwriting an existing map entries in Annotations field with the same key.
func (b *ClusterResourceQuotaApplyConfiguration) WithAnnotations(entries map[string]string) *ClusterResourceQuotaApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *ClusterResourceQuotaApplyConfiguration) WithAnnotations(entries map[str
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *ClusterResourceQuotaApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ClusterResourceQuotaApplyConfiguration {
+func (b *ClusterResourceQuotaApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ClusterResourceQuotaApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *ClusterResourceQuotaApplyConfiguration) WithOwnerReferences(values ...*
func (b *ClusterResourceQuotaApplyConfiguration) WithFinalizers(values ...string) *ClusterResourceQuotaApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *ClusterResourceQuotaApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *ClusterResourceQuotaApplyConfiguration) WithStatus(value *ClusterResour
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ClusterResourceQuotaApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/quota/applyconfigurations/quota/v1/clusterresourcequotaselector.go b/quota/applyconfigurations/quota/v1/clusterresourcequotaselector.go
index eadd4d610..a759a1b9b 100644
--- a/quota/applyconfigurations/quota/v1/clusterresourcequotaselector.go
+++ b/quota/applyconfigurations/quota/v1/clusterresourcequotaselector.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ClusterResourceQuotaSelectorApplyConfiguration represents a declarative configuration of the ClusterResourceQuotaSelector type for use
// with apply.
type ClusterResourceQuotaSelectorApplyConfiguration struct {
- LabelSelector *v1.LabelSelectorApplyConfiguration `json:"labels,omitempty"`
- AnnotationSelector map[string]string `json:"annotations,omitempty"`
+ LabelSelector *metav1.LabelSelectorApplyConfiguration `json:"labels,omitempty"`
+ AnnotationSelector map[string]string `json:"annotations,omitempty"`
}
// ClusterResourceQuotaSelectorApplyConfiguration constructs a declarative configuration of the ClusterResourceQuotaSelector type for use with
@@ -22,7 +22,7 @@ func ClusterResourceQuotaSelector() *ClusterResourceQuotaSelectorApplyConfigurat
// WithLabelSelector sets the LabelSelector field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LabelSelector field is set to the value of the last call.
-func (b *ClusterResourceQuotaSelectorApplyConfiguration) WithLabelSelector(value *v1.LabelSelectorApplyConfiguration) *ClusterResourceQuotaSelectorApplyConfiguration {
+func (b *ClusterResourceQuotaSelectorApplyConfiguration) WithLabelSelector(value *metav1.LabelSelectorApplyConfiguration) *ClusterResourceQuotaSelectorApplyConfiguration {
b.LabelSelector = value
return b
}
diff --git a/quota/applyconfigurations/quota/v1/clusterresourcequotastatus.go b/quota/applyconfigurations/quota/v1/clusterresourcequotastatus.go
index b87241343..bd5dbca4d 100644
--- a/quota/applyconfigurations/quota/v1/clusterresourcequotastatus.go
+++ b/quota/applyconfigurations/quota/v1/clusterresourcequotastatus.go
@@ -4,13 +4,13 @@ package v1
import (
quotav1 "github.com/openshift/api/quota/v1"
- v1 "k8s.io/api/core/v1"
+ corev1 "k8s.io/api/core/v1"
)
// ClusterResourceQuotaStatusApplyConfiguration represents a declarative configuration of the ClusterResourceQuotaStatus type for use
// with apply.
type ClusterResourceQuotaStatusApplyConfiguration struct {
- Total *v1.ResourceQuotaStatus `json:"total,omitempty"`
+ Total *corev1.ResourceQuotaStatus `json:"total,omitempty"`
Namespaces *quotav1.ResourceQuotasStatusByNamespace `json:"namespaces,omitempty"`
}
@@ -23,7 +23,7 @@ func ClusterResourceQuotaStatus() *ClusterResourceQuotaStatusApplyConfiguration
// WithTotal sets the Total field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Total field is set to the value of the last call.
-func (b *ClusterResourceQuotaStatusApplyConfiguration) WithTotal(value v1.ResourceQuotaStatus) *ClusterResourceQuotaStatusApplyConfiguration {
+func (b *ClusterResourceQuotaStatusApplyConfiguration) WithTotal(value corev1.ResourceQuotaStatus) *ClusterResourceQuotaStatusApplyConfiguration {
b.Total = &value
return b
}
diff --git a/quota/applyconfigurations/quota/v1/resourcequotastatusbynamespace.go b/quota/applyconfigurations/quota/v1/resourcequotastatusbynamespace.go
index dd854cbb5..973ba124f 100644
--- a/quota/applyconfigurations/quota/v1/resourcequotastatusbynamespace.go
+++ b/quota/applyconfigurations/quota/v1/resourcequotastatusbynamespace.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "k8s.io/api/core/v1"
+ corev1 "k8s.io/api/core/v1"
)
// ResourceQuotaStatusByNamespaceApplyConfiguration represents a declarative configuration of the ResourceQuotaStatusByNamespace type for use
// with apply.
type ResourceQuotaStatusByNamespaceApplyConfiguration struct {
- Namespace *string `json:"namespace,omitempty"`
- Status *v1.ResourceQuotaStatus `json:"status,omitempty"`
+ Namespace *string `json:"namespace,omitempty"`
+ Status *corev1.ResourceQuotaStatus `json:"status,omitempty"`
}
// ResourceQuotaStatusByNamespaceApplyConfiguration constructs a declarative configuration of the ResourceQuotaStatusByNamespace type for use with
@@ -30,7 +30,7 @@ func (b *ResourceQuotaStatusByNamespaceApplyConfiguration) WithNamespace(value s
// WithStatus sets the Status field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Status field is set to the value of the last call.
-func (b *ResourceQuotaStatusByNamespaceApplyConfiguration) WithStatus(value v1.ResourceQuotaStatus) *ResourceQuotaStatusByNamespaceApplyConfiguration {
+func (b *ResourceQuotaStatusByNamespaceApplyConfiguration) WithStatus(value corev1.ResourceQuotaStatus) *ResourceQuotaStatusByNamespaceApplyConfiguration {
b.Status = &value
return b
}
diff --git a/quota/clientset/versioned/clientset.go b/quota/clientset/versioned/clientset.go
index 1881a32a2..e3a6e4f13 100644
--- a/quota/clientset/versioned/clientset.go
+++ b/quota/clientset/versioned/clientset.go
@@ -3,8 +3,8 @@
package versioned
import (
- "fmt"
- "net/http"
+ fmt "fmt"
+ http "net/http"
quotav1 "github.com/openshift/client-go/quota/clientset/versioned/typed/quota/v1"
discovery "k8s.io/client-go/discovery"
diff --git a/quota/clientset/versioned/typed/quota/v1/appliedclusterresourcequota.go b/quota/clientset/versioned/typed/quota/v1/appliedclusterresourcequota.go
index 87d2ca7db..61015404d 100644
--- a/quota/clientset/versioned/typed/quota/v1/appliedclusterresourcequota.go
+++ b/quota/clientset/versioned/typed/quota/v1/appliedclusterresourcequota.go
@@ -3,11 +3,11 @@
package v1
import (
- "context"
+ context "context"
quotav1 "github.com/openshift/api/quota/v1"
scheme "github.com/openshift/client-go/quota/clientset/versioned/scheme"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
gentype "k8s.io/client-go/gentype"
)
@@ -19,8 +19,8 @@ type AppliedClusterResourceQuotasGetter interface {
// AppliedClusterResourceQuotaInterface has methods to work with AppliedClusterResourceQuota resources.
type AppliedClusterResourceQuotaInterface interface {
- Get(ctx context.Context, name string, opts v1.GetOptions) (*quotav1.AppliedClusterResourceQuota, error)
- List(ctx context.Context, opts v1.ListOptions) (*quotav1.AppliedClusterResourceQuotaList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*quotav1.AppliedClusterResourceQuota, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*quotav1.AppliedClusterResourceQuotaList, error)
AppliedClusterResourceQuotaExpansion
}
@@ -38,6 +38,7 @@ func newAppliedClusterResourceQuotas(c *QuotaV1Client, namespace string) *applie
scheme.ParameterCodec,
namespace,
func() *quotav1.AppliedClusterResourceQuota { return "av1.AppliedClusterResourceQuota{} },
- func() *quotav1.AppliedClusterResourceQuotaList { return "av1.AppliedClusterResourceQuotaList{} }),
+ func() *quotav1.AppliedClusterResourceQuotaList { return "av1.AppliedClusterResourceQuotaList{} },
+ ),
}
}
diff --git a/quota/clientset/versioned/typed/quota/v1/clusterresourcequota.go b/quota/clientset/versioned/typed/quota/v1/clusterresourcequota.go
index e18988eda..20f25acfd 100644
--- a/quota/clientset/versioned/typed/quota/v1/clusterresourcequota.go
+++ b/quota/clientset/versioned/typed/quota/v1/clusterresourcequota.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/quota/v1"
- quotav1 "github.com/openshift/client-go/quota/applyconfigurations/quota/v1"
+ quotav1 "github.com/openshift/api/quota/v1"
+ applyconfigurationsquotav1 "github.com/openshift/client-go/quota/applyconfigurations/quota/v1"
scheme "github.com/openshift/client-go/quota/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type ClusterResourceQuotasGetter interface {
// ClusterResourceQuotaInterface has methods to work with ClusterResourceQuota resources.
type ClusterResourceQuotaInterface interface {
- Create(ctx context.Context, clusterResourceQuota *v1.ClusterResourceQuota, opts metav1.CreateOptions) (*v1.ClusterResourceQuota, error)
- Update(ctx context.Context, clusterResourceQuota *v1.ClusterResourceQuota, opts metav1.UpdateOptions) (*v1.ClusterResourceQuota, error)
+ Create(ctx context.Context, clusterResourceQuota *quotav1.ClusterResourceQuota, opts metav1.CreateOptions) (*quotav1.ClusterResourceQuota, error)
+ Update(ctx context.Context, clusterResourceQuota *quotav1.ClusterResourceQuota, opts metav1.UpdateOptions) (*quotav1.ClusterResourceQuota, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, clusterResourceQuota *v1.ClusterResourceQuota, opts metav1.UpdateOptions) (*v1.ClusterResourceQuota, error)
+ UpdateStatus(ctx context.Context, clusterResourceQuota *quotav1.ClusterResourceQuota, opts metav1.UpdateOptions) (*quotav1.ClusterResourceQuota, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ClusterResourceQuota, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.ClusterResourceQuotaList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*quotav1.ClusterResourceQuota, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*quotav1.ClusterResourceQuotaList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterResourceQuota, err error)
- Apply(ctx context.Context, clusterResourceQuota *quotav1.ClusterResourceQuotaApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ClusterResourceQuota, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *quotav1.ClusterResourceQuota, err error)
+ Apply(ctx context.Context, clusterResourceQuota *applyconfigurationsquotav1.ClusterResourceQuotaApplyConfiguration, opts metav1.ApplyOptions) (result *quotav1.ClusterResourceQuota, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, clusterResourceQuota *quotav1.ClusterResourceQuotaApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ClusterResourceQuota, err error)
+ ApplyStatus(ctx context.Context, clusterResourceQuota *applyconfigurationsquotav1.ClusterResourceQuotaApplyConfiguration, opts metav1.ApplyOptions) (result *quotav1.ClusterResourceQuota, err error)
ClusterResourceQuotaExpansion
}
// clusterResourceQuotas implements ClusterResourceQuotaInterface
type clusterResourceQuotas struct {
- *gentype.ClientWithListAndApply[*v1.ClusterResourceQuota, *v1.ClusterResourceQuotaList, *quotav1.ClusterResourceQuotaApplyConfiguration]
+ *gentype.ClientWithListAndApply[*quotav1.ClusterResourceQuota, *quotav1.ClusterResourceQuotaList, *applyconfigurationsquotav1.ClusterResourceQuotaApplyConfiguration]
}
// newClusterResourceQuotas returns a ClusterResourceQuotas
func newClusterResourceQuotas(c *QuotaV1Client) *clusterResourceQuotas {
return &clusterResourceQuotas{
- gentype.NewClientWithListAndApply[*v1.ClusterResourceQuota, *v1.ClusterResourceQuotaList, *quotav1.ClusterResourceQuotaApplyConfiguration](
+ gentype.NewClientWithListAndApply[*quotav1.ClusterResourceQuota, *quotav1.ClusterResourceQuotaList, *applyconfigurationsquotav1.ClusterResourceQuotaApplyConfiguration](
"clusterresourcequotas",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.ClusterResourceQuota { return &v1.ClusterResourceQuota{} },
- func() *v1.ClusterResourceQuotaList { return &v1.ClusterResourceQuotaList{} }),
+ func() *quotav1.ClusterResourceQuota { return "av1.ClusterResourceQuota{} },
+ func() *quotav1.ClusterResourceQuotaList { return "av1.ClusterResourceQuotaList{} },
+ ),
}
}
diff --git a/quota/clientset/versioned/typed/quota/v1/fake/fake_appliedclusterresourcequota.go b/quota/clientset/versioned/typed/quota/v1/fake/fake_appliedclusterresourcequota.go
index 0a59e0df0..4f0aacb1a 100644
--- a/quota/clientset/versioned/typed/quota/v1/fake/fake_appliedclusterresourcequota.go
+++ b/quota/clientset/versioned/typed/quota/v1/fake/fake_appliedclusterresourcequota.go
@@ -3,55 +3,34 @@
package fake
import (
- "context"
-
v1 "github.com/openshift/api/quota/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- testing "k8s.io/client-go/testing"
+ quotav1 "github.com/openshift/client-go/quota/clientset/versioned/typed/quota/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeAppliedClusterResourceQuotas implements AppliedClusterResourceQuotaInterface
-type FakeAppliedClusterResourceQuotas struct {
+// fakeAppliedClusterResourceQuotas implements AppliedClusterResourceQuotaInterface
+type fakeAppliedClusterResourceQuotas struct {
+ *gentype.FakeClientWithList[*v1.AppliedClusterResourceQuota, *v1.AppliedClusterResourceQuotaList]
Fake *FakeQuotaV1
- ns string
}
-var appliedclusterresourcequotasResource = v1.SchemeGroupVersion.WithResource("appliedclusterresourcequotas")
-
-var appliedclusterresourcequotasKind = v1.SchemeGroupVersion.WithKind("AppliedClusterResourceQuota")
-
-// Get takes name of the appliedClusterResourceQuota, and returns the corresponding appliedClusterResourceQuota object, and an error if there is any.
-func (c *FakeAppliedClusterResourceQuotas) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.AppliedClusterResourceQuota, err error) {
- emptyResult := &v1.AppliedClusterResourceQuota{}
- obj, err := c.Fake.
- Invokes(testing.NewGetActionWithOptions(appliedclusterresourcequotasResource, c.ns, name, options), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.AppliedClusterResourceQuota), err
-}
-
-// List takes label and field selectors, and returns the list of AppliedClusterResourceQuotas that match those selectors.
-func (c *FakeAppliedClusterResourceQuotas) List(ctx context.Context, opts metav1.ListOptions) (result *v1.AppliedClusterResourceQuotaList, err error) {
- emptyResult := &v1.AppliedClusterResourceQuotaList{}
- obj, err := c.Fake.
- Invokes(testing.NewListActionWithOptions(appliedclusterresourcequotasResource, appliedclusterresourcequotasKind, c.ns, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.AppliedClusterResourceQuotaList{ListMeta: obj.(*v1.AppliedClusterResourceQuotaList).ListMeta}
- for _, item := range obj.(*v1.AppliedClusterResourceQuotaList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
+func newFakeAppliedClusterResourceQuotas(fake *FakeQuotaV1, namespace string) quotav1.AppliedClusterResourceQuotaInterface {
+ return &fakeAppliedClusterResourceQuotas{
+ gentype.NewFakeClientWithList[*v1.AppliedClusterResourceQuota, *v1.AppliedClusterResourceQuotaList](
+ fake.Fake,
+ namespace,
+ v1.SchemeGroupVersion.WithResource("appliedclusterresourcequotas"),
+ v1.SchemeGroupVersion.WithKind("AppliedClusterResourceQuota"),
+ func() *v1.AppliedClusterResourceQuota { return &v1.AppliedClusterResourceQuota{} },
+ func() *v1.AppliedClusterResourceQuotaList { return &v1.AppliedClusterResourceQuotaList{} },
+ func(dst, src *v1.AppliedClusterResourceQuotaList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.AppliedClusterResourceQuotaList) []*v1.AppliedClusterResourceQuota {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1.AppliedClusterResourceQuotaList, items []*v1.AppliedClusterResourceQuota) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return list, err
}
diff --git a/quota/clientset/versioned/typed/quota/v1/fake/fake_clusterresourcequota.go b/quota/clientset/versioned/typed/quota/v1/fake/fake_clusterresourcequota.go
index 3e596944a..1190f29aa 100644
--- a/quota/clientset/versioned/typed/quota/v1/fake/fake_clusterresourcequota.go
+++ b/quota/clientset/versioned/typed/quota/v1/fake/fake_clusterresourcequota.go
@@ -3,168 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/quota/v1"
quotav1 "github.com/openshift/client-go/quota/applyconfigurations/quota/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedquotav1 "github.com/openshift/client-go/quota/clientset/versioned/typed/quota/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeClusterResourceQuotas implements ClusterResourceQuotaInterface
-type FakeClusterResourceQuotas struct {
+// fakeClusterResourceQuotas implements ClusterResourceQuotaInterface
+type fakeClusterResourceQuotas struct {
+ *gentype.FakeClientWithListAndApply[*v1.ClusterResourceQuota, *v1.ClusterResourceQuotaList, *quotav1.ClusterResourceQuotaApplyConfiguration]
Fake *FakeQuotaV1
}
-var clusterresourcequotasResource = v1.SchemeGroupVersion.WithResource("clusterresourcequotas")
-
-var clusterresourcequotasKind = v1.SchemeGroupVersion.WithKind("ClusterResourceQuota")
-
-// Get takes name of the clusterResourceQuota, and returns the corresponding clusterResourceQuota object, and an error if there is any.
-func (c *FakeClusterResourceQuotas) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ClusterResourceQuota, err error) {
- emptyResult := &v1.ClusterResourceQuota{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(clusterresourcequotasResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterResourceQuota), err
-}
-
-// List takes label and field selectors, and returns the list of ClusterResourceQuotas that match those selectors.
-func (c *FakeClusterResourceQuotas) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterResourceQuotaList, err error) {
- emptyResult := &v1.ClusterResourceQuotaList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(clusterresourcequotasResource, clusterresourcequotasKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.ClusterResourceQuotaList{ListMeta: obj.(*v1.ClusterResourceQuotaList).ListMeta}
- for _, item := range obj.(*v1.ClusterResourceQuotaList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested clusterResourceQuotas.
-func (c *FakeClusterResourceQuotas) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(clusterresourcequotasResource, opts))
-}
-
-// Create takes the representation of a clusterResourceQuota and creates it. Returns the server's representation of the clusterResourceQuota, and an error, if there is any.
-func (c *FakeClusterResourceQuotas) Create(ctx context.Context, clusterResourceQuota *v1.ClusterResourceQuota, opts metav1.CreateOptions) (result *v1.ClusterResourceQuota, err error) {
- emptyResult := &v1.ClusterResourceQuota{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(clusterresourcequotasResource, clusterResourceQuota, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterResourceQuota), err
-}
-
-// Update takes the representation of a clusterResourceQuota and updates it. Returns the server's representation of the clusterResourceQuota, and an error, if there is any.
-func (c *FakeClusterResourceQuotas) Update(ctx context.Context, clusterResourceQuota *v1.ClusterResourceQuota, opts metav1.UpdateOptions) (result *v1.ClusterResourceQuota, err error) {
- emptyResult := &v1.ClusterResourceQuota{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(clusterresourcequotasResource, clusterResourceQuota, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterResourceQuota), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeClusterResourceQuotas) UpdateStatus(ctx context.Context, clusterResourceQuota *v1.ClusterResourceQuota, opts metav1.UpdateOptions) (result *v1.ClusterResourceQuota, err error) {
- emptyResult := &v1.ClusterResourceQuota{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(clusterresourcequotasResource, "status", clusterResourceQuota, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterResourceQuota), err
-}
-
-// Delete takes name of the clusterResourceQuota and deletes it. Returns an error if one occurs.
-func (c *FakeClusterResourceQuotas) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(clusterresourcequotasResource, name, opts), &v1.ClusterResourceQuota{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeClusterResourceQuotas) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(clusterresourcequotasResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.ClusterResourceQuotaList{})
- return err
-}
-
-// Patch applies the patch and returns the patched clusterResourceQuota.
-func (c *FakeClusterResourceQuotas) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterResourceQuota, err error) {
- emptyResult := &v1.ClusterResourceQuota{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(clusterresourcequotasResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterResourceQuota), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied clusterResourceQuota.
-func (c *FakeClusterResourceQuotas) Apply(ctx context.Context, clusterResourceQuota *quotav1.ClusterResourceQuotaApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ClusterResourceQuota, err error) {
- if clusterResourceQuota == nil {
- return nil, fmt.Errorf("clusterResourceQuota provided to Apply must not be nil")
- }
- data, err := json.Marshal(clusterResourceQuota)
- if err != nil {
- return nil, err
- }
- name := clusterResourceQuota.Name
- if name == nil {
- return nil, fmt.Errorf("clusterResourceQuota.Name must be provided to Apply")
- }
- emptyResult := &v1.ClusterResourceQuota{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(clusterresourcequotasResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.ClusterResourceQuota), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeClusterResourceQuotas) ApplyStatus(ctx context.Context, clusterResourceQuota *quotav1.ClusterResourceQuotaApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ClusterResourceQuota, err error) {
- if clusterResourceQuota == nil {
- return nil, fmt.Errorf("clusterResourceQuota provided to Apply must not be nil")
- }
- data, err := json.Marshal(clusterResourceQuota)
- if err != nil {
- return nil, err
- }
- name := clusterResourceQuota.Name
- if name == nil {
- return nil, fmt.Errorf("clusterResourceQuota.Name must be provided to Apply")
- }
- emptyResult := &v1.ClusterResourceQuota{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(clusterresourcequotasResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeClusterResourceQuotas(fake *FakeQuotaV1) typedquotav1.ClusterResourceQuotaInterface {
+ return &fakeClusterResourceQuotas{
+ gentype.NewFakeClientWithListAndApply[*v1.ClusterResourceQuota, *v1.ClusterResourceQuotaList, *quotav1.ClusterResourceQuotaApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("clusterresourcequotas"),
+ v1.SchemeGroupVersion.WithKind("ClusterResourceQuota"),
+ func() *v1.ClusterResourceQuota { return &v1.ClusterResourceQuota{} },
+ func() *v1.ClusterResourceQuotaList { return &v1.ClusterResourceQuotaList{} },
+ func(dst, src *v1.ClusterResourceQuotaList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.ClusterResourceQuotaList) []*v1.ClusterResourceQuota {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1.ClusterResourceQuotaList, items []*v1.ClusterResourceQuota) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.ClusterResourceQuota), err
}
diff --git a/quota/clientset/versioned/typed/quota/v1/fake/fake_quota_client.go b/quota/clientset/versioned/typed/quota/v1/fake/fake_quota_client.go
index 7cb456bdf..eef668c67 100644
--- a/quota/clientset/versioned/typed/quota/v1/fake/fake_quota_client.go
+++ b/quota/clientset/versioned/typed/quota/v1/fake/fake_quota_client.go
@@ -13,11 +13,11 @@ type FakeQuotaV1 struct {
}
func (c *FakeQuotaV1) AppliedClusterResourceQuotas(namespace string) v1.AppliedClusterResourceQuotaInterface {
- return &FakeAppliedClusterResourceQuotas{c, namespace}
+ return newFakeAppliedClusterResourceQuotas(c, namespace)
}
func (c *FakeQuotaV1) ClusterResourceQuotas() v1.ClusterResourceQuotaInterface {
- return &FakeClusterResourceQuotas{c}
+ return newFakeClusterResourceQuotas(c)
}
// RESTClient returns a RESTClient that is used to communicate
diff --git a/quota/clientset/versioned/typed/quota/v1/quota_client.go b/quota/clientset/versioned/typed/quota/v1/quota_client.go
index 7b0fc89a5..3ff815477 100644
--- a/quota/clientset/versioned/typed/quota/v1/quota_client.go
+++ b/quota/clientset/versioned/typed/quota/v1/quota_client.go
@@ -3,10 +3,10 @@
package v1
import (
- "net/http"
+ http "net/http"
- v1 "github.com/openshift/api/quota/v1"
- "github.com/openshift/client-go/quota/clientset/versioned/scheme"
+ quotav1 "github.com/openshift/api/quota/v1"
+ scheme "github.com/openshift/client-go/quota/clientset/versioned/scheme"
rest "k8s.io/client-go/rest"
)
@@ -74,10 +74,10 @@ func New(c rest.Interface) *QuotaV1Client {
}
func setConfigDefaults(config *rest.Config) error {
- gv := v1.SchemeGroupVersion
+ gv := quotav1.SchemeGroupVersion
config.GroupVersion = &gv
config.APIPath = "/apis"
- config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
+ config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion()
if config.UserAgent == "" {
config.UserAgent = rest.DefaultKubernetesUserAgent()
diff --git a/quota/informers/externalversions/generic.go b/quota/informers/externalversions/generic.go
index d739a07c9..54a2e3887 100644
--- a/quota/informers/externalversions/generic.go
+++ b/quota/informers/externalversions/generic.go
@@ -3,7 +3,7 @@
package externalversions
import (
- "fmt"
+ fmt "fmt"
v1 "github.com/openshift/api/quota/v1"
schema "k8s.io/apimachinery/pkg/runtime/schema"
diff --git a/quota/informers/externalversions/quota/v1/clusterresourcequota.go b/quota/informers/externalversions/quota/v1/clusterresourcequota.go
index cb8eb0e30..df790ff94 100644
--- a/quota/informers/externalversions/quota/v1/clusterresourcequota.go
+++ b/quota/informers/externalversions/quota/v1/clusterresourcequota.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- quotav1 "github.com/openshift/api/quota/v1"
+ apiquotav1 "github.com/openshift/api/quota/v1"
versioned "github.com/openshift/client-go/quota/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/quota/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/quota/listers/quota/v1"
+ quotav1 "github.com/openshift/client-go/quota/listers/quota/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// ClusterResourceQuotas.
type ClusterResourceQuotaInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.ClusterResourceQuotaLister
+ Lister() quotav1.ClusterResourceQuotaLister
}
type clusterResourceQuotaInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredClusterResourceQuotaInformer(client versioned.Interface, resyncP
return client.QuotaV1().ClusterResourceQuotas().Watch(context.TODO(), options)
},
},
- "av1.ClusterResourceQuota{},
+ &apiquotav1.ClusterResourceQuota{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *clusterResourceQuotaInformer) defaultInformer(client versioned.Interfac
}
func (f *clusterResourceQuotaInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor("av1.ClusterResourceQuota{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiquotav1.ClusterResourceQuota{}, f.defaultInformer)
}
-func (f *clusterResourceQuotaInformer) Lister() v1.ClusterResourceQuotaLister {
- return v1.NewClusterResourceQuotaLister(f.Informer().GetIndexer())
+func (f *clusterResourceQuotaInformer) Lister() quotav1.ClusterResourceQuotaLister {
+ return quotav1.NewClusterResourceQuotaLister(f.Informer().GetIndexer())
}
diff --git a/quota/listers/quota/v1/appliedclusterresourcequota.go b/quota/listers/quota/v1/appliedclusterresourcequota.go
index 795d7f347..6a393c066 100644
--- a/quota/listers/quota/v1/appliedclusterresourcequota.go
+++ b/quota/listers/quota/v1/appliedclusterresourcequota.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/quota/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ quotav1 "github.com/openshift/api/quota/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// AppliedClusterResourceQuotaLister helps list AppliedClusterResourceQuotas.
@@ -14,7 +14,7 @@ import (
type AppliedClusterResourceQuotaLister interface {
// List lists all AppliedClusterResourceQuotas in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.AppliedClusterResourceQuota, err error)
+ List(selector labels.Selector) (ret []*quotav1.AppliedClusterResourceQuota, err error)
// AppliedClusterResourceQuotas returns an object that can list and get AppliedClusterResourceQuotas.
AppliedClusterResourceQuotas(namespace string) AppliedClusterResourceQuotaNamespaceLister
AppliedClusterResourceQuotaListerExpansion
@@ -22,17 +22,17 @@ type AppliedClusterResourceQuotaLister interface {
// appliedClusterResourceQuotaLister implements the AppliedClusterResourceQuotaLister interface.
type appliedClusterResourceQuotaLister struct {
- listers.ResourceIndexer[*v1.AppliedClusterResourceQuota]
+ listers.ResourceIndexer[*quotav1.AppliedClusterResourceQuota]
}
// NewAppliedClusterResourceQuotaLister returns a new AppliedClusterResourceQuotaLister.
func NewAppliedClusterResourceQuotaLister(indexer cache.Indexer) AppliedClusterResourceQuotaLister {
- return &appliedClusterResourceQuotaLister{listers.New[*v1.AppliedClusterResourceQuota](indexer, v1.Resource("appliedclusterresourcequota"))}
+ return &appliedClusterResourceQuotaLister{listers.New[*quotav1.AppliedClusterResourceQuota](indexer, quotav1.Resource("appliedclusterresourcequota"))}
}
// AppliedClusterResourceQuotas returns an object that can list and get AppliedClusterResourceQuotas.
func (s *appliedClusterResourceQuotaLister) AppliedClusterResourceQuotas(namespace string) AppliedClusterResourceQuotaNamespaceLister {
- return appliedClusterResourceQuotaNamespaceLister{listers.NewNamespaced[*v1.AppliedClusterResourceQuota](s.ResourceIndexer, namespace)}
+ return appliedClusterResourceQuotaNamespaceLister{listers.NewNamespaced[*quotav1.AppliedClusterResourceQuota](s.ResourceIndexer, namespace)}
}
// AppliedClusterResourceQuotaNamespaceLister helps list and get AppliedClusterResourceQuotas.
@@ -40,15 +40,15 @@ func (s *appliedClusterResourceQuotaLister) AppliedClusterResourceQuotas(namespa
type AppliedClusterResourceQuotaNamespaceLister interface {
// List lists all AppliedClusterResourceQuotas in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.AppliedClusterResourceQuota, err error)
+ List(selector labels.Selector) (ret []*quotav1.AppliedClusterResourceQuota, err error)
// Get retrieves the AppliedClusterResourceQuota from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.AppliedClusterResourceQuota, error)
+ Get(name string) (*quotav1.AppliedClusterResourceQuota, error)
AppliedClusterResourceQuotaNamespaceListerExpansion
}
// appliedClusterResourceQuotaNamespaceLister implements the AppliedClusterResourceQuotaNamespaceLister
// interface.
type appliedClusterResourceQuotaNamespaceLister struct {
- listers.ResourceIndexer[*v1.AppliedClusterResourceQuota]
+ listers.ResourceIndexer[*quotav1.AppliedClusterResourceQuota]
}
diff --git a/quota/listers/quota/v1/clusterresourcequota.go b/quota/listers/quota/v1/clusterresourcequota.go
index 20c9bff34..ab47dd76c 100644
--- a/quota/listers/quota/v1/clusterresourcequota.go
+++ b/quota/listers/quota/v1/clusterresourcequota.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/quota/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ quotav1 "github.com/openshift/api/quota/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ClusterResourceQuotaLister helps list ClusterResourceQuotas.
@@ -14,19 +14,19 @@ import (
type ClusterResourceQuotaLister interface {
// List lists all ClusterResourceQuotas in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.ClusterResourceQuota, err error)
+ List(selector labels.Selector) (ret []*quotav1.ClusterResourceQuota, err error)
// Get retrieves the ClusterResourceQuota from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.ClusterResourceQuota, error)
+ Get(name string) (*quotav1.ClusterResourceQuota, error)
ClusterResourceQuotaListerExpansion
}
// clusterResourceQuotaLister implements the ClusterResourceQuotaLister interface.
type clusterResourceQuotaLister struct {
- listers.ResourceIndexer[*v1.ClusterResourceQuota]
+ listers.ResourceIndexer[*quotav1.ClusterResourceQuota]
}
// NewClusterResourceQuotaLister returns a new ClusterResourceQuotaLister.
func NewClusterResourceQuotaLister(indexer cache.Indexer) ClusterResourceQuotaLister {
- return &clusterResourceQuotaLister{listers.New[*v1.ClusterResourceQuota](indexer, v1.Resource("clusterresourcequota"))}
+ return &clusterResourceQuotaLister{listers.New[*quotav1.ClusterResourceQuota](indexer, quotav1.Resource("clusterresourcequota"))}
}
diff --git a/route/applyconfigurations/internal/internal.go b/route/applyconfigurations/internal/internal.go
index 3775c9b7a..028bb32f0 100644
--- a/route/applyconfigurations/internal/internal.go
+++ b/route/applyconfigurations/internal/internal.go
@@ -3,8 +3,8 @@
package internal
import (
- "fmt"
- "sync"
+ fmt "fmt"
+ sync "sync"
typed "sigs.k8s.io/structured-merge-diff/v4/typed"
)
diff --git a/route/applyconfigurations/route/v1/route.go b/route/applyconfigurations/route/v1/route.go
index c08d46b9b..b962647b8 100644
--- a/route/applyconfigurations/route/v1/route.go
+++ b/route/applyconfigurations/route/v1/route.go
@@ -3,21 +3,21 @@
package v1
import (
- apiroutev1 "github.com/openshift/api/route/v1"
+ routev1 "github.com/openshift/api/route/v1"
internal "github.com/openshift/client-go/route/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// RouteApplyConfiguration represents a declarative configuration of the Route type for use
// with apply.
type RouteApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *RouteSpecApplyConfiguration `json:"spec,omitempty"`
- Status *RouteStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *RouteSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *RouteStatusApplyConfiguration `json:"status,omitempty"`
}
// Route constructs a declarative configuration of the Route type for use with
@@ -42,18 +42,18 @@ func Route(name, namespace string) *RouteApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractRoute(route *apiroutev1.Route, fieldManager string) (*RouteApplyConfiguration, error) {
+func ExtractRoute(route *routev1.Route, fieldManager string) (*RouteApplyConfiguration, error) {
return extractRoute(route, fieldManager, "")
}
// ExtractRouteStatus is the same as ExtractRoute except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractRouteStatus(route *apiroutev1.Route, fieldManager string) (*RouteApplyConfiguration, error) {
+func ExtractRouteStatus(route *routev1.Route, fieldManager string) (*RouteApplyConfiguration, error) {
return extractRoute(route, fieldManager, "status")
}
-func extractRoute(route *apiroutev1.Route, fieldManager string, subresource string) (*RouteApplyConfiguration, error) {
+func extractRoute(route *routev1.Route, fieldManager string, subresource string) (*RouteApplyConfiguration, error) {
b := &RouteApplyConfiguration{}
err := managedfields.ExtractInto(route, internal.Parser().Type("com.github.openshift.api.route.v1.Route"), fieldManager, b, subresource)
if err != nil {
@@ -71,7 +71,7 @@ func extractRoute(route *apiroutev1.Route, fieldManager string, subresource stri
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *RouteApplyConfiguration) WithKind(value string) *RouteApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -79,7 +79,7 @@ func (b *RouteApplyConfiguration) WithKind(value string) *RouteApplyConfiguratio
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *RouteApplyConfiguration) WithAPIVersion(value string) *RouteApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -88,7 +88,7 @@ func (b *RouteApplyConfiguration) WithAPIVersion(value string) *RouteApplyConfig
// If called multiple times, the Name field is set to the value of the last call.
func (b *RouteApplyConfiguration) WithName(value string) *RouteApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -97,7 +97,7 @@ func (b *RouteApplyConfiguration) WithName(value string) *RouteApplyConfiguratio
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *RouteApplyConfiguration) WithGenerateName(value string) *RouteApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -106,7 +106,7 @@ func (b *RouteApplyConfiguration) WithGenerateName(value string) *RouteApplyConf
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *RouteApplyConfiguration) WithNamespace(value string) *RouteApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -115,7 +115,7 @@ func (b *RouteApplyConfiguration) WithNamespace(value string) *RouteApplyConfigu
// If called multiple times, the UID field is set to the value of the last call.
func (b *RouteApplyConfiguration) WithUID(value types.UID) *RouteApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -124,7 +124,7 @@ func (b *RouteApplyConfiguration) WithUID(value types.UID) *RouteApplyConfigurat
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *RouteApplyConfiguration) WithResourceVersion(value string) *RouteApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -133,25 +133,25 @@ func (b *RouteApplyConfiguration) WithResourceVersion(value string) *RouteApplyC
// If called multiple times, the Generation field is set to the value of the last call.
func (b *RouteApplyConfiguration) WithGeneration(value int64) *RouteApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *RouteApplyConfiguration) WithCreationTimestamp(value metav1.Time) *RouteApplyConfiguration {
+func (b *RouteApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *RouteApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *RouteApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *RouteApplyConfiguration {
+func (b *RouteApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *RouteApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -160,7 +160,7 @@ func (b *RouteApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *Rout
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *RouteApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *RouteApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -170,11 +170,11 @@ func (b *RouteApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *R
// overwriting an existing map entries in Labels field with the same key.
func (b *RouteApplyConfiguration) WithLabels(entries map[string]string) *RouteApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -185,11 +185,11 @@ func (b *RouteApplyConfiguration) WithLabels(entries map[string]string) *RouteAp
// overwriting an existing map entries in Annotations field with the same key.
func (b *RouteApplyConfiguration) WithAnnotations(entries map[string]string) *RouteApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -197,13 +197,13 @@ func (b *RouteApplyConfiguration) WithAnnotations(entries map[string]string) *Ro
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *RouteApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *RouteApplyConfiguration {
+func (b *RouteApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *RouteApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -214,14 +214,14 @@ func (b *RouteApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferen
func (b *RouteApplyConfiguration) WithFinalizers(values ...string) *RouteApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *RouteApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -244,5 +244,5 @@ func (b *RouteApplyConfiguration) WithStatus(value *RouteStatusApplyConfiguratio
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *RouteApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/route/applyconfigurations/route/v1/routehttpheaderactionunion.go b/route/applyconfigurations/route/v1/routehttpheaderactionunion.go
index 6dfe8916b..a54a0913c 100644
--- a/route/applyconfigurations/route/v1/routehttpheaderactionunion.go
+++ b/route/applyconfigurations/route/v1/routehttpheaderactionunion.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/route/v1"
+ routev1 "github.com/openshift/api/route/v1"
)
// RouteHTTPHeaderActionUnionApplyConfiguration represents a declarative configuration of the RouteHTTPHeaderActionUnion type for use
// with apply.
type RouteHTTPHeaderActionUnionApplyConfiguration struct {
- Type *v1.RouteHTTPHeaderActionType `json:"type,omitempty"`
+ Type *routev1.RouteHTTPHeaderActionType `json:"type,omitempty"`
Set *RouteSetHTTPHeaderApplyConfiguration `json:"set,omitempty"`
}
@@ -22,7 +22,7 @@ func RouteHTTPHeaderActionUnion() *RouteHTTPHeaderActionUnionApplyConfiguration
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *RouteHTTPHeaderActionUnionApplyConfiguration) WithType(value v1.RouteHTTPHeaderActionType) *RouteHTTPHeaderActionUnionApplyConfiguration {
+func (b *RouteHTTPHeaderActionUnionApplyConfiguration) WithType(value routev1.RouteHTTPHeaderActionType) *RouteHTTPHeaderActionUnionApplyConfiguration {
b.Type = &value
return b
}
diff --git a/route/applyconfigurations/route/v1/routeingresscondition.go b/route/applyconfigurations/route/v1/routeingresscondition.go
index 191ce5575..1ddebe528 100644
--- a/route/applyconfigurations/route/v1/routeingresscondition.go
+++ b/route/applyconfigurations/route/v1/routeingresscondition.go
@@ -3,7 +3,7 @@
package v1
import (
- v1 "github.com/openshift/api/route/v1"
+ routev1 "github.com/openshift/api/route/v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
@@ -11,11 +11,11 @@ import (
// RouteIngressConditionApplyConfiguration represents a declarative configuration of the RouteIngressCondition type for use
// with apply.
type RouteIngressConditionApplyConfiguration struct {
- Type *v1.RouteIngressConditionType `json:"type,omitempty"`
- Status *corev1.ConditionStatus `json:"status,omitempty"`
- Reason *string `json:"reason,omitempty"`
- Message *string `json:"message,omitempty"`
- LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
+ Type *routev1.RouteIngressConditionType `json:"type,omitempty"`
+ Status *corev1.ConditionStatus `json:"status,omitempty"`
+ Reason *string `json:"reason,omitempty"`
+ Message *string `json:"message,omitempty"`
+ LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
}
// RouteIngressConditionApplyConfiguration constructs a declarative configuration of the RouteIngressCondition type for use with
@@ -27,7 +27,7 @@ func RouteIngressCondition() *RouteIngressConditionApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *RouteIngressConditionApplyConfiguration) WithType(value v1.RouteIngressConditionType) *RouteIngressConditionApplyConfiguration {
+func (b *RouteIngressConditionApplyConfiguration) WithType(value routev1.RouteIngressConditionType) *RouteIngressConditionApplyConfiguration {
b.Type = &value
return b
}
diff --git a/route/applyconfigurations/route/v1/tlsconfig.go b/route/applyconfigurations/route/v1/tlsconfig.go
index e76edd2b8..296c4efc9 100644
--- a/route/applyconfigurations/route/v1/tlsconfig.go
+++ b/route/applyconfigurations/route/v1/tlsconfig.go
@@ -3,19 +3,19 @@
package v1
import (
- v1 "github.com/openshift/api/route/v1"
+ routev1 "github.com/openshift/api/route/v1"
)
// TLSConfigApplyConfiguration represents a declarative configuration of the TLSConfig type for use
// with apply.
type TLSConfigApplyConfiguration struct {
- Termination *v1.TLSTerminationType `json:"termination,omitempty"`
- Certificate *string `json:"certificate,omitempty"`
- Key *string `json:"key,omitempty"`
- CACertificate *string `json:"caCertificate,omitempty"`
- DestinationCACertificate *string `json:"destinationCACertificate,omitempty"`
- InsecureEdgeTerminationPolicy *v1.InsecureEdgeTerminationPolicyType `json:"insecureEdgeTerminationPolicy,omitempty"`
- ExternalCertificate *LocalObjectReferenceApplyConfiguration `json:"externalCertificate,omitempty"`
+ Termination *routev1.TLSTerminationType `json:"termination,omitempty"`
+ Certificate *string `json:"certificate,omitempty"`
+ Key *string `json:"key,omitempty"`
+ CACertificate *string `json:"caCertificate,omitempty"`
+ DestinationCACertificate *string `json:"destinationCACertificate,omitempty"`
+ InsecureEdgeTerminationPolicy *routev1.InsecureEdgeTerminationPolicyType `json:"insecureEdgeTerminationPolicy,omitempty"`
+ ExternalCertificate *LocalObjectReferenceApplyConfiguration `json:"externalCertificate,omitempty"`
}
// TLSConfigApplyConfiguration constructs a declarative configuration of the TLSConfig type for use with
@@ -27,7 +27,7 @@ func TLSConfig() *TLSConfigApplyConfiguration {
// WithTermination sets the Termination field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Termination field is set to the value of the last call.
-func (b *TLSConfigApplyConfiguration) WithTermination(value v1.TLSTerminationType) *TLSConfigApplyConfiguration {
+func (b *TLSConfigApplyConfiguration) WithTermination(value routev1.TLSTerminationType) *TLSConfigApplyConfiguration {
b.Termination = &value
return b
}
@@ -67,7 +67,7 @@ func (b *TLSConfigApplyConfiguration) WithDestinationCACertificate(value string)
// WithInsecureEdgeTerminationPolicy sets the InsecureEdgeTerminationPolicy field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the InsecureEdgeTerminationPolicy field is set to the value of the last call.
-func (b *TLSConfigApplyConfiguration) WithInsecureEdgeTerminationPolicy(value v1.InsecureEdgeTerminationPolicyType) *TLSConfigApplyConfiguration {
+func (b *TLSConfigApplyConfiguration) WithInsecureEdgeTerminationPolicy(value routev1.InsecureEdgeTerminationPolicyType) *TLSConfigApplyConfiguration {
b.InsecureEdgeTerminationPolicy = &value
return b
}
diff --git a/route/clientset/versioned/clientset.go b/route/clientset/versioned/clientset.go
index 23c80b601..e81ff98b3 100644
--- a/route/clientset/versioned/clientset.go
+++ b/route/clientset/versioned/clientset.go
@@ -3,8 +3,8 @@
package versioned
import (
- "fmt"
- "net/http"
+ fmt "fmt"
+ http "net/http"
routev1 "github.com/openshift/client-go/route/clientset/versioned/typed/route/v1"
discovery "k8s.io/client-go/discovery"
diff --git a/route/clientset/versioned/typed/route/v1/fake/fake_route.go b/route/clientset/versioned/typed/route/v1/fake/fake_route.go
index acf7eb8c5..08eb7215a 100644
--- a/route/clientset/versioned/typed/route/v1/fake/fake_route.go
+++ b/route/clientset/versioned/typed/route/v1/fake/fake_route.go
@@ -3,179 +3,31 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/route/v1"
routev1 "github.com/openshift/client-go/route/applyconfigurations/route/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedroutev1 "github.com/openshift/client-go/route/clientset/versioned/typed/route/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeRoutes implements RouteInterface
-type FakeRoutes struct {
+// fakeRoutes implements RouteInterface
+type fakeRoutes struct {
+ *gentype.FakeClientWithListAndApply[*v1.Route, *v1.RouteList, *routev1.RouteApplyConfiguration]
Fake *FakeRouteV1
- ns string
-}
-
-var routesResource = v1.SchemeGroupVersion.WithResource("routes")
-
-var routesKind = v1.SchemeGroupVersion.WithKind("Route")
-
-// Get takes name of the route, and returns the corresponding route object, and an error if there is any.
-func (c *FakeRoutes) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Route, err error) {
- emptyResult := &v1.Route{}
- obj, err := c.Fake.
- Invokes(testing.NewGetActionWithOptions(routesResource, c.ns, name, options), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Route), err
-}
-
-// List takes label and field selectors, and returns the list of Routes that match those selectors.
-func (c *FakeRoutes) List(ctx context.Context, opts metav1.ListOptions) (result *v1.RouteList, err error) {
- emptyResult := &v1.RouteList{}
- obj, err := c.Fake.
- Invokes(testing.NewListActionWithOptions(routesResource, routesKind, c.ns, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.RouteList{ListMeta: obj.(*v1.RouteList).ListMeta}
- for _, item := range obj.(*v1.RouteList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested routes.
-func (c *FakeRoutes) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewWatchActionWithOptions(routesResource, c.ns, opts))
-
-}
-
-// Create takes the representation of a route and creates it. Returns the server's representation of the route, and an error, if there is any.
-func (c *FakeRoutes) Create(ctx context.Context, route *v1.Route, opts metav1.CreateOptions) (result *v1.Route, err error) {
- emptyResult := &v1.Route{}
- obj, err := c.Fake.
- Invokes(testing.NewCreateActionWithOptions(routesResource, c.ns, route, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Route), err
-}
-
-// Update takes the representation of a route and updates it. Returns the server's representation of the route, and an error, if there is any.
-func (c *FakeRoutes) Update(ctx context.Context, route *v1.Route, opts metav1.UpdateOptions) (result *v1.Route, err error) {
- emptyResult := &v1.Route{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateActionWithOptions(routesResource, c.ns, route, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Route), err
}
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeRoutes) UpdateStatus(ctx context.Context, route *v1.Route, opts metav1.UpdateOptions) (result *v1.Route, err error) {
- emptyResult := &v1.Route{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateSubresourceActionWithOptions(routesResource, "status", c.ns, route, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Route), err
-}
-
-// Delete takes name of the route and deletes it. Returns an error if one occurs.
-func (c *FakeRoutes) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewDeleteActionWithOptions(routesResource, c.ns, name, opts), &v1.Route{})
-
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeRoutes) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewDeleteCollectionActionWithOptions(routesResource, c.ns, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.RouteList{})
- return err
-}
-
-// Patch applies the patch and returns the patched route.
-func (c *FakeRoutes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Route, err error) {
- emptyResult := &v1.Route{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(routesResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Route), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied route.
-func (c *FakeRoutes) Apply(ctx context.Context, route *routev1.RouteApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Route, err error) {
- if route == nil {
- return nil, fmt.Errorf("route provided to Apply must not be nil")
- }
- data, err := json.Marshal(route)
- if err != nil {
- return nil, err
- }
- name := route.Name
- if name == nil {
- return nil, fmt.Errorf("route.Name must be provided to Apply")
- }
- emptyResult := &v1.Route{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(routesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Route), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeRoutes) ApplyStatus(ctx context.Context, route *routev1.RouteApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Route, err error) {
- if route == nil {
- return nil, fmt.Errorf("route provided to Apply must not be nil")
- }
- data, err := json.Marshal(route)
- if err != nil {
- return nil, err
- }
- name := route.Name
- if name == nil {
- return nil, fmt.Errorf("route.Name must be provided to Apply")
- }
- emptyResult := &v1.Route{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(routesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
-
- if obj == nil {
- return emptyResult, err
+func newFakeRoutes(fake *FakeRouteV1, namespace string) typedroutev1.RouteInterface {
+ return &fakeRoutes{
+ gentype.NewFakeClientWithListAndApply[*v1.Route, *v1.RouteList, *routev1.RouteApplyConfiguration](
+ fake.Fake,
+ namespace,
+ v1.SchemeGroupVersion.WithResource("routes"),
+ v1.SchemeGroupVersion.WithKind("Route"),
+ func() *v1.Route { return &v1.Route{} },
+ func() *v1.RouteList { return &v1.RouteList{} },
+ func(dst, src *v1.RouteList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.RouteList) []*v1.Route { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.RouteList, items []*v1.Route) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.Route), err
}
diff --git a/route/clientset/versioned/typed/route/v1/fake/fake_route_client.go b/route/clientset/versioned/typed/route/v1/fake/fake_route_client.go
index f94296436..1dd296d72 100644
--- a/route/clientset/versioned/typed/route/v1/fake/fake_route_client.go
+++ b/route/clientset/versioned/typed/route/v1/fake/fake_route_client.go
@@ -13,7 +13,7 @@ type FakeRouteV1 struct {
}
func (c *FakeRouteV1) Routes(namespace string) v1.RouteInterface {
- return &FakeRoutes{c, namespace}
+ return newFakeRoutes(c, namespace)
}
// RESTClient returns a RESTClient that is used to communicate
diff --git a/route/clientset/versioned/typed/route/v1/route.go b/route/clientset/versioned/typed/route/v1/route.go
index c37f331af..fa11e4aa1 100644
--- a/route/clientset/versioned/typed/route/v1/route.go
+++ b/route/clientset/versioned/typed/route/v1/route.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/route/v1"
- routev1 "github.com/openshift/client-go/route/applyconfigurations/route/v1"
+ routev1 "github.com/openshift/api/route/v1"
+ applyconfigurationsroutev1 "github.com/openshift/client-go/route/applyconfigurations/route/v1"
scheme "github.com/openshift/client-go/route/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type RoutesGetter interface {
// RouteInterface has methods to work with Route resources.
type RouteInterface interface {
- Create(ctx context.Context, route *v1.Route, opts metav1.CreateOptions) (*v1.Route, error)
- Update(ctx context.Context, route *v1.Route, opts metav1.UpdateOptions) (*v1.Route, error)
+ Create(ctx context.Context, route *routev1.Route, opts metav1.CreateOptions) (*routev1.Route, error)
+ Update(ctx context.Context, route *routev1.Route, opts metav1.UpdateOptions) (*routev1.Route, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, route *v1.Route, opts metav1.UpdateOptions) (*v1.Route, error)
+ UpdateStatus(ctx context.Context, route *routev1.Route, opts metav1.UpdateOptions) (*routev1.Route, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Route, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.RouteList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*routev1.Route, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*routev1.RouteList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Route, err error)
- Apply(ctx context.Context, route *routev1.RouteApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Route, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *routev1.Route, err error)
+ Apply(ctx context.Context, route *applyconfigurationsroutev1.RouteApplyConfiguration, opts metav1.ApplyOptions) (result *routev1.Route, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, route *routev1.RouteApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Route, err error)
+ ApplyStatus(ctx context.Context, route *applyconfigurationsroutev1.RouteApplyConfiguration, opts metav1.ApplyOptions) (result *routev1.Route, err error)
RouteExpansion
}
// routes implements RouteInterface
type routes struct {
- *gentype.ClientWithListAndApply[*v1.Route, *v1.RouteList, *routev1.RouteApplyConfiguration]
+ *gentype.ClientWithListAndApply[*routev1.Route, *routev1.RouteList, *applyconfigurationsroutev1.RouteApplyConfiguration]
}
// newRoutes returns a Routes
func newRoutes(c *RouteV1Client, namespace string) *routes {
return &routes{
- gentype.NewClientWithListAndApply[*v1.Route, *v1.RouteList, *routev1.RouteApplyConfiguration](
+ gentype.NewClientWithListAndApply[*routev1.Route, *routev1.RouteList, *applyconfigurationsroutev1.RouteApplyConfiguration](
"routes",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
- func() *v1.Route { return &v1.Route{} },
- func() *v1.RouteList { return &v1.RouteList{} }),
+ func() *routev1.Route { return &routev1.Route{} },
+ func() *routev1.RouteList { return &routev1.RouteList{} },
+ ),
}
}
diff --git a/route/clientset/versioned/typed/route/v1/route_client.go b/route/clientset/versioned/typed/route/v1/route_client.go
index e71d826c9..44da893cd 100644
--- a/route/clientset/versioned/typed/route/v1/route_client.go
+++ b/route/clientset/versioned/typed/route/v1/route_client.go
@@ -3,10 +3,10 @@
package v1
import (
- "net/http"
+ http "net/http"
- v1 "github.com/openshift/api/route/v1"
- "github.com/openshift/client-go/route/clientset/versioned/scheme"
+ routev1 "github.com/openshift/api/route/v1"
+ scheme "github.com/openshift/client-go/route/clientset/versioned/scheme"
rest "k8s.io/client-go/rest"
)
@@ -69,10 +69,10 @@ func New(c rest.Interface) *RouteV1Client {
}
func setConfigDefaults(config *rest.Config) error {
- gv := v1.SchemeGroupVersion
+ gv := routev1.SchemeGroupVersion
config.GroupVersion = &gv
config.APIPath = "/apis"
- config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
+ config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion()
if config.UserAgent == "" {
config.UserAgent = rest.DefaultKubernetesUserAgent()
diff --git a/route/informers/externalversions/generic.go b/route/informers/externalversions/generic.go
index e0067144f..1615e24cd 100644
--- a/route/informers/externalversions/generic.go
+++ b/route/informers/externalversions/generic.go
@@ -3,7 +3,7 @@
package externalversions
import (
- "fmt"
+ fmt "fmt"
v1 "github.com/openshift/api/route/v1"
schema "k8s.io/apimachinery/pkg/runtime/schema"
diff --git a/route/informers/externalversions/route/v1/route.go b/route/informers/externalversions/route/v1/route.go
index adb845958..f437983ff 100644
--- a/route/informers/externalversions/route/v1/route.go
+++ b/route/informers/externalversions/route/v1/route.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- routev1 "github.com/openshift/api/route/v1"
+ apiroutev1 "github.com/openshift/api/route/v1"
versioned "github.com/openshift/client-go/route/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/route/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/route/listers/route/v1"
+ routev1 "github.com/openshift/client-go/route/listers/route/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// Routes.
type RouteInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.RouteLister
+ Lister() routev1.RouteLister
}
type routeInformer struct {
@@ -55,7 +55,7 @@ func NewFilteredRouteInformer(client versioned.Interface, namespace string, resy
return client.RouteV1().Routes(namespace).Watch(context.TODO(), options)
},
},
- &routev1.Route{},
+ &apiroutev1.Route{},
resyncPeriod,
indexers,
)
@@ -66,9 +66,9 @@ func (f *routeInformer) defaultInformer(client versioned.Interface, resyncPeriod
}
func (f *routeInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&routev1.Route{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiroutev1.Route{}, f.defaultInformer)
}
-func (f *routeInformer) Lister() v1.RouteLister {
- return v1.NewRouteLister(f.Informer().GetIndexer())
+func (f *routeInformer) Lister() routev1.RouteLister {
+ return routev1.NewRouteLister(f.Informer().GetIndexer())
}
diff --git a/route/listers/route/v1/route.go b/route/listers/route/v1/route.go
index f6dc2f852..abe1b0efd 100644
--- a/route/listers/route/v1/route.go
+++ b/route/listers/route/v1/route.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/route/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ routev1 "github.com/openshift/api/route/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// RouteLister helps list Routes.
@@ -14,7 +14,7 @@ import (
type RouteLister interface {
// List lists all Routes in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.Route, err error)
+ List(selector labels.Selector) (ret []*routev1.Route, err error)
// Routes returns an object that can list and get Routes.
Routes(namespace string) RouteNamespaceLister
RouteListerExpansion
@@ -22,17 +22,17 @@ type RouteLister interface {
// routeLister implements the RouteLister interface.
type routeLister struct {
- listers.ResourceIndexer[*v1.Route]
+ listers.ResourceIndexer[*routev1.Route]
}
// NewRouteLister returns a new RouteLister.
func NewRouteLister(indexer cache.Indexer) RouteLister {
- return &routeLister{listers.New[*v1.Route](indexer, v1.Resource("route"))}
+ return &routeLister{listers.New[*routev1.Route](indexer, routev1.Resource("route"))}
}
// Routes returns an object that can list and get Routes.
func (s *routeLister) Routes(namespace string) RouteNamespaceLister {
- return routeNamespaceLister{listers.NewNamespaced[*v1.Route](s.ResourceIndexer, namespace)}
+ return routeNamespaceLister{listers.NewNamespaced[*routev1.Route](s.ResourceIndexer, namespace)}
}
// RouteNamespaceLister helps list and get Routes.
@@ -40,15 +40,15 @@ func (s *routeLister) Routes(namespace string) RouteNamespaceLister {
type RouteNamespaceLister interface {
// List lists all Routes in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.Route, err error)
+ List(selector labels.Selector) (ret []*routev1.Route, err error)
// Get retrieves the Route from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.Route, error)
+ Get(name string) (*routev1.Route, error)
RouteNamespaceListerExpansion
}
// routeNamespaceLister implements the RouteNamespaceLister
// interface.
type routeNamespaceLister struct {
- listers.ResourceIndexer[*v1.Route]
+ listers.ResourceIndexer[*routev1.Route]
}
diff --git a/samples/applyconfigurations/internal/internal.go b/samples/applyconfigurations/internal/internal.go
index 2c728a1e2..344b96b10 100644
--- a/samples/applyconfigurations/internal/internal.go
+++ b/samples/applyconfigurations/internal/internal.go
@@ -3,8 +3,8 @@
package internal
import (
- "fmt"
- "sync"
+ fmt "fmt"
+ sync "sync"
typed "sigs.k8s.io/structured-merge-diff/v4/typed"
)
diff --git a/samples/applyconfigurations/samples/v1/config.go b/samples/applyconfigurations/samples/v1/config.go
index 1ba5160a5..05f973bf2 100644
--- a/samples/applyconfigurations/samples/v1/config.go
+++ b/samples/applyconfigurations/samples/v1/config.go
@@ -3,21 +3,21 @@
package v1
import (
- apisamplesv1 "github.com/openshift/api/samples/v1"
+ samplesv1 "github.com/openshift/api/samples/v1"
internal "github.com/openshift/client-go/samples/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// ConfigApplyConfiguration represents a declarative configuration of the Config type for use
// with apply.
type ConfigApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *ConfigSpecApplyConfiguration `json:"spec,omitempty"`
- Status *ConfigStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *ConfigSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *ConfigStatusApplyConfiguration `json:"status,omitempty"`
}
// Config constructs a declarative configuration of the Config type for use with
@@ -41,18 +41,18 @@ func Config(name string) *ConfigApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractConfig(config *apisamplesv1.Config, fieldManager string) (*ConfigApplyConfiguration, error) {
+func ExtractConfig(config *samplesv1.Config, fieldManager string) (*ConfigApplyConfiguration, error) {
return extractConfig(config, fieldManager, "")
}
// ExtractConfigStatus is the same as ExtractConfig except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractConfigStatus(config *apisamplesv1.Config, fieldManager string) (*ConfigApplyConfiguration, error) {
+func ExtractConfigStatus(config *samplesv1.Config, fieldManager string) (*ConfigApplyConfiguration, error) {
return extractConfig(config, fieldManager, "status")
}
-func extractConfig(config *apisamplesv1.Config, fieldManager string, subresource string) (*ConfigApplyConfiguration, error) {
+func extractConfig(config *samplesv1.Config, fieldManager string, subresource string) (*ConfigApplyConfiguration, error) {
b := &ConfigApplyConfiguration{}
err := managedfields.ExtractInto(config, internal.Parser().Type("com.github.openshift.api.samples.v1.Config"), fieldManager, b, subresource)
if err != nil {
@@ -69,7 +69,7 @@ func extractConfig(config *apisamplesv1.Config, fieldManager string, subresource
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ConfigApplyConfiguration) WithKind(value string) *ConfigApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *ConfigApplyConfiguration) WithKind(value string) *ConfigApplyConfigurat
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ConfigApplyConfiguration) WithAPIVersion(value string) *ConfigApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *ConfigApplyConfiguration) WithAPIVersion(value string) *ConfigApplyConf
// If called multiple times, the Name field is set to the value of the last call.
func (b *ConfigApplyConfiguration) WithName(value string) *ConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *ConfigApplyConfiguration) WithName(value string) *ConfigApplyConfigurat
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ConfigApplyConfiguration) WithGenerateName(value string) *ConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *ConfigApplyConfiguration) WithGenerateName(value string) *ConfigApplyCo
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ConfigApplyConfiguration) WithNamespace(value string) *ConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *ConfigApplyConfiguration) WithNamespace(value string) *ConfigApplyConfi
// If called multiple times, the UID field is set to the value of the last call.
func (b *ConfigApplyConfiguration) WithUID(value types.UID) *ConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *ConfigApplyConfiguration) WithUID(value types.UID) *ConfigApplyConfigur
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ConfigApplyConfiguration) WithResourceVersion(value string) *ConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *ConfigApplyConfiguration) WithResourceVersion(value string) *ConfigAppl
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ConfigApplyConfiguration) WithGeneration(value int64) *ConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *ConfigApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ConfigApplyConfiguration {
+func (b *ConfigApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *ConfigApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ConfigApplyConfiguration {
+func (b *ConfigApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *ConfigApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *Con
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ConfigApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *ConfigApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *
// overwriting an existing map entries in Labels field with the same key.
func (b *ConfigApplyConfiguration) WithLabels(entries map[string]string) *ConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *ConfigApplyConfiguration) WithLabels(entries map[string]string) *Config
// overwriting an existing map entries in Annotations field with the same key.
func (b *ConfigApplyConfiguration) WithAnnotations(entries map[string]string) *ConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *ConfigApplyConfiguration) WithAnnotations(entries map[string]string) *C
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *ConfigApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ConfigApplyConfiguration {
+func (b *ConfigApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *ConfigApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefere
func (b *ConfigApplyConfiguration) WithFinalizers(values ...string) *ConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *ConfigApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -242,5 +242,5 @@ func (b *ConfigApplyConfiguration) WithStatus(value *ConfigStatusApplyConfigurat
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ConfigApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/samples/applyconfigurations/samples/v1/configcondition.go b/samples/applyconfigurations/samples/v1/configcondition.go
index 7fc6dba29..cfadf45ff 100644
--- a/samples/applyconfigurations/samples/v1/configcondition.go
+++ b/samples/applyconfigurations/samples/v1/configcondition.go
@@ -3,7 +3,7 @@
package v1
import (
- v1 "github.com/openshift/api/samples/v1"
+ samplesv1 "github.com/openshift/api/samples/v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
@@ -11,12 +11,12 @@ import (
// ConfigConditionApplyConfiguration represents a declarative configuration of the ConfigCondition type for use
// with apply.
type ConfigConditionApplyConfiguration struct {
- Type *v1.ConfigConditionType `json:"type,omitempty"`
- Status *corev1.ConditionStatus `json:"status,omitempty"`
- LastUpdateTime *metav1.Time `json:"lastUpdateTime,omitempty"`
- LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
- Reason *string `json:"reason,omitempty"`
- Message *string `json:"message,omitempty"`
+ Type *samplesv1.ConfigConditionType `json:"type,omitempty"`
+ Status *corev1.ConditionStatus `json:"status,omitempty"`
+ LastUpdateTime *metav1.Time `json:"lastUpdateTime,omitempty"`
+ LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
+ Reason *string `json:"reason,omitempty"`
+ Message *string `json:"message,omitempty"`
}
// ConfigConditionApplyConfiguration constructs a declarative configuration of the ConfigCondition type for use with
@@ -28,7 +28,7 @@ func ConfigCondition() *ConfigConditionApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *ConfigConditionApplyConfiguration) WithType(value v1.ConfigConditionType) *ConfigConditionApplyConfiguration {
+func (b *ConfigConditionApplyConfiguration) WithType(value samplesv1.ConfigConditionType) *ConfigConditionApplyConfiguration {
b.Type = &value
return b
}
diff --git a/samples/applyconfigurations/samples/v1/configspec.go b/samples/applyconfigurations/samples/v1/configspec.go
index 7e5adae41..1e344032e 100644
--- a/samples/applyconfigurations/samples/v1/configspec.go
+++ b/samples/applyconfigurations/samples/v1/configspec.go
@@ -3,19 +3,19 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
samplesv1 "github.com/openshift/api/samples/v1"
)
// ConfigSpecApplyConfiguration represents a declarative configuration of the ConfigSpec type for use
// with apply.
type ConfigSpecApplyConfiguration struct {
- ManagementState *v1.ManagementState `json:"managementState,omitempty"`
- SamplesRegistry *string `json:"samplesRegistry,omitempty"`
- Architectures []string `json:"architectures,omitempty"`
- SkippedImagestreams []string `json:"skippedImagestreams,omitempty"`
- SkippedTemplates []string `json:"skippedTemplates,omitempty"`
- SkippedHelmCharts []samplesv1.HelmChartName `json:"skippedHelmCharts,omitempty"`
+ ManagementState *operatorv1.ManagementState `json:"managementState,omitempty"`
+ SamplesRegistry *string `json:"samplesRegistry,omitempty"`
+ Architectures []string `json:"architectures,omitempty"`
+ SkippedImagestreams []string `json:"skippedImagestreams,omitempty"`
+ SkippedTemplates []string `json:"skippedTemplates,omitempty"`
+ SkippedHelmCharts []samplesv1.HelmChartName `json:"skippedHelmCharts,omitempty"`
}
// ConfigSpecApplyConfiguration constructs a declarative configuration of the ConfigSpec type for use with
@@ -27,7 +27,7 @@ func ConfigSpec() *ConfigSpecApplyConfiguration {
// WithManagementState sets the ManagementState field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ManagementState field is set to the value of the last call.
-func (b *ConfigSpecApplyConfiguration) WithManagementState(value v1.ManagementState) *ConfigSpecApplyConfiguration {
+func (b *ConfigSpecApplyConfiguration) WithManagementState(value operatorv1.ManagementState) *ConfigSpecApplyConfiguration {
b.ManagementState = &value
return b
}
diff --git a/samples/applyconfigurations/samples/v1/configstatus.go b/samples/applyconfigurations/samples/v1/configstatus.go
index 2f242b7d2..2266418fd 100644
--- a/samples/applyconfigurations/samples/v1/configstatus.go
+++ b/samples/applyconfigurations/samples/v1/configstatus.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "github.com/openshift/api/operator/v1"
+ operatorv1 "github.com/openshift/api/operator/v1"
)
// ConfigStatusApplyConfiguration represents a declarative configuration of the ConfigStatus type for use
// with apply.
type ConfigStatusApplyConfiguration struct {
- ManagementState *v1.ManagementState `json:"managementState,omitempty"`
+ ManagementState *operatorv1.ManagementState `json:"managementState,omitempty"`
Conditions []ConfigConditionApplyConfiguration `json:"conditions,omitempty"`
SamplesRegistry *string `json:"samplesRegistry,omitempty"`
Architectures []string `json:"architectures,omitempty"`
@@ -27,7 +27,7 @@ func ConfigStatus() *ConfigStatusApplyConfiguration {
// WithManagementState sets the ManagementState field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ManagementState field is set to the value of the last call.
-func (b *ConfigStatusApplyConfiguration) WithManagementState(value v1.ManagementState) *ConfigStatusApplyConfiguration {
+func (b *ConfigStatusApplyConfiguration) WithManagementState(value operatorv1.ManagementState) *ConfigStatusApplyConfiguration {
b.ManagementState = &value
return b
}
diff --git a/samples/clientset/versioned/clientset.go b/samples/clientset/versioned/clientset.go
index a1120c2f9..c89f2b88e 100644
--- a/samples/clientset/versioned/clientset.go
+++ b/samples/clientset/versioned/clientset.go
@@ -3,8 +3,8 @@
package versioned
import (
- "fmt"
- "net/http"
+ fmt "fmt"
+ http "net/http"
samplesv1 "github.com/openshift/client-go/samples/clientset/versioned/typed/samples/v1"
discovery "k8s.io/client-go/discovery"
diff --git a/samples/clientset/versioned/typed/samples/v1/config.go b/samples/clientset/versioned/typed/samples/v1/config.go
index 7e9681d3c..39a059896 100644
--- a/samples/clientset/versioned/typed/samples/v1/config.go
+++ b/samples/clientset/versioned/typed/samples/v1/config.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/samples/v1"
- samplesv1 "github.com/openshift/client-go/samples/applyconfigurations/samples/v1"
+ samplesv1 "github.com/openshift/api/samples/v1"
+ applyconfigurationssamplesv1 "github.com/openshift/client-go/samples/applyconfigurations/samples/v1"
scheme "github.com/openshift/client-go/samples/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type ConfigsGetter interface {
// ConfigInterface has methods to work with Config resources.
type ConfigInterface interface {
- Create(ctx context.Context, config *v1.Config, opts metav1.CreateOptions) (*v1.Config, error)
- Update(ctx context.Context, config *v1.Config, opts metav1.UpdateOptions) (*v1.Config, error)
+ Create(ctx context.Context, config *samplesv1.Config, opts metav1.CreateOptions) (*samplesv1.Config, error)
+ Update(ctx context.Context, config *samplesv1.Config, opts metav1.UpdateOptions) (*samplesv1.Config, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, config *v1.Config, opts metav1.UpdateOptions) (*v1.Config, error)
+ UpdateStatus(ctx context.Context, config *samplesv1.Config, opts metav1.UpdateOptions) (*samplesv1.Config, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Config, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.ConfigList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*samplesv1.Config, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*samplesv1.ConfigList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Config, err error)
- Apply(ctx context.Context, config *samplesv1.ConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Config, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *samplesv1.Config, err error)
+ Apply(ctx context.Context, config *applyconfigurationssamplesv1.ConfigApplyConfiguration, opts metav1.ApplyOptions) (result *samplesv1.Config, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, config *samplesv1.ConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Config, err error)
+ ApplyStatus(ctx context.Context, config *applyconfigurationssamplesv1.ConfigApplyConfiguration, opts metav1.ApplyOptions) (result *samplesv1.Config, err error)
ConfigExpansion
}
// configs implements ConfigInterface
type configs struct {
- *gentype.ClientWithListAndApply[*v1.Config, *v1.ConfigList, *samplesv1.ConfigApplyConfiguration]
+ *gentype.ClientWithListAndApply[*samplesv1.Config, *samplesv1.ConfigList, *applyconfigurationssamplesv1.ConfigApplyConfiguration]
}
// newConfigs returns a Configs
func newConfigs(c *SamplesV1Client) *configs {
return &configs{
- gentype.NewClientWithListAndApply[*v1.Config, *v1.ConfigList, *samplesv1.ConfigApplyConfiguration](
+ gentype.NewClientWithListAndApply[*samplesv1.Config, *samplesv1.ConfigList, *applyconfigurationssamplesv1.ConfigApplyConfiguration](
"configs",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.Config { return &v1.Config{} },
- func() *v1.ConfigList { return &v1.ConfigList{} }),
+ func() *samplesv1.Config { return &samplesv1.Config{} },
+ func() *samplesv1.ConfigList { return &samplesv1.ConfigList{} },
+ ),
}
}
diff --git a/samples/clientset/versioned/typed/samples/v1/fake/fake_config.go b/samples/clientset/versioned/typed/samples/v1/fake/fake_config.go
index 765b27b3f..e189f2b11 100644
--- a/samples/clientset/versioned/typed/samples/v1/fake/fake_config.go
+++ b/samples/clientset/versioned/typed/samples/v1/fake/fake_config.go
@@ -3,168 +3,31 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/samples/v1"
samplesv1 "github.com/openshift/client-go/samples/applyconfigurations/samples/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedsamplesv1 "github.com/openshift/client-go/samples/clientset/versioned/typed/samples/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeConfigs implements ConfigInterface
-type FakeConfigs struct {
+// fakeConfigs implements ConfigInterface
+type fakeConfigs struct {
+ *gentype.FakeClientWithListAndApply[*v1.Config, *v1.ConfigList, *samplesv1.ConfigApplyConfiguration]
Fake *FakeSamplesV1
}
-var configsResource = v1.SchemeGroupVersion.WithResource("configs")
-
-var configsKind = v1.SchemeGroupVersion.WithKind("Config")
-
-// Get takes name of the config, and returns the corresponding config object, and an error if there is any.
-func (c *FakeConfigs) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Config, err error) {
- emptyResult := &v1.Config{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(configsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Config), err
-}
-
-// List takes label and field selectors, and returns the list of Configs that match those selectors.
-func (c *FakeConfigs) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ConfigList, err error) {
- emptyResult := &v1.ConfigList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(configsResource, configsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.ConfigList{ListMeta: obj.(*v1.ConfigList).ListMeta}
- for _, item := range obj.(*v1.ConfigList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested configs.
-func (c *FakeConfigs) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(configsResource, opts))
-}
-
-// Create takes the representation of a config and creates it. Returns the server's representation of the config, and an error, if there is any.
-func (c *FakeConfigs) Create(ctx context.Context, config *v1.Config, opts metav1.CreateOptions) (result *v1.Config, err error) {
- emptyResult := &v1.Config{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(configsResource, config, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Config), err
-}
-
-// Update takes the representation of a config and updates it. Returns the server's representation of the config, and an error, if there is any.
-func (c *FakeConfigs) Update(ctx context.Context, config *v1.Config, opts metav1.UpdateOptions) (result *v1.Config, err error) {
- emptyResult := &v1.Config{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(configsResource, config, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Config), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeConfigs) UpdateStatus(ctx context.Context, config *v1.Config, opts metav1.UpdateOptions) (result *v1.Config, err error) {
- emptyResult := &v1.Config{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(configsResource, "status", config, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Config), err
-}
-
-// Delete takes name of the config and deletes it. Returns an error if one occurs.
-func (c *FakeConfigs) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(configsResource, name, opts), &v1.Config{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeConfigs) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(configsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.ConfigList{})
- return err
-}
-
-// Patch applies the patch and returns the patched config.
-func (c *FakeConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Config, err error) {
- emptyResult := &v1.Config{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(configsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Config), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied config.
-func (c *FakeConfigs) Apply(ctx context.Context, config *samplesv1.ConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Config, err error) {
- if config == nil {
- return nil, fmt.Errorf("config provided to Apply must not be nil")
- }
- data, err := json.Marshal(config)
- if err != nil {
- return nil, err
- }
- name := config.Name
- if name == nil {
- return nil, fmt.Errorf("config.Name must be provided to Apply")
- }
- emptyResult := &v1.Config{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(configsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Config), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeConfigs) ApplyStatus(ctx context.Context, config *samplesv1.ConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Config, err error) {
- if config == nil {
- return nil, fmt.Errorf("config provided to Apply must not be nil")
- }
- data, err := json.Marshal(config)
- if err != nil {
- return nil, err
- }
- name := config.Name
- if name == nil {
- return nil, fmt.Errorf("config.Name must be provided to Apply")
- }
- emptyResult := &v1.Config{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(configsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeConfigs(fake *FakeSamplesV1) typedsamplesv1.ConfigInterface {
+ return &fakeConfigs{
+ gentype.NewFakeClientWithListAndApply[*v1.Config, *v1.ConfigList, *samplesv1.ConfigApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("configs"),
+ v1.SchemeGroupVersion.WithKind("Config"),
+ func() *v1.Config { return &v1.Config{} },
+ func() *v1.ConfigList { return &v1.ConfigList{} },
+ func(dst, src *v1.ConfigList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.ConfigList) []*v1.Config { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.ConfigList, items []*v1.Config) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.Config), err
}
diff --git a/samples/clientset/versioned/typed/samples/v1/fake/fake_samples_client.go b/samples/clientset/versioned/typed/samples/v1/fake/fake_samples_client.go
index ab849b20e..c823d5934 100644
--- a/samples/clientset/versioned/typed/samples/v1/fake/fake_samples_client.go
+++ b/samples/clientset/versioned/typed/samples/v1/fake/fake_samples_client.go
@@ -13,7 +13,7 @@ type FakeSamplesV1 struct {
}
func (c *FakeSamplesV1) Configs() v1.ConfigInterface {
- return &FakeConfigs{c}
+ return newFakeConfigs(c)
}
// RESTClient returns a RESTClient that is used to communicate
diff --git a/samples/clientset/versioned/typed/samples/v1/samples_client.go b/samples/clientset/versioned/typed/samples/v1/samples_client.go
index 7701965fb..49a978c5e 100644
--- a/samples/clientset/versioned/typed/samples/v1/samples_client.go
+++ b/samples/clientset/versioned/typed/samples/v1/samples_client.go
@@ -3,10 +3,10 @@
package v1
import (
- "net/http"
+ http "net/http"
- v1 "github.com/openshift/api/samples/v1"
- "github.com/openshift/client-go/samples/clientset/versioned/scheme"
+ samplesv1 "github.com/openshift/api/samples/v1"
+ scheme "github.com/openshift/client-go/samples/clientset/versioned/scheme"
rest "k8s.io/client-go/rest"
)
@@ -69,10 +69,10 @@ func New(c rest.Interface) *SamplesV1Client {
}
func setConfigDefaults(config *rest.Config) error {
- gv := v1.SchemeGroupVersion
+ gv := samplesv1.SchemeGroupVersion
config.GroupVersion = &gv
config.APIPath = "/apis"
- config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
+ config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion()
if config.UserAgent == "" {
config.UserAgent = rest.DefaultKubernetesUserAgent()
diff --git a/samples/informers/externalversions/generic.go b/samples/informers/externalversions/generic.go
index d5b5e1501..2a510665c 100644
--- a/samples/informers/externalversions/generic.go
+++ b/samples/informers/externalversions/generic.go
@@ -3,7 +3,7 @@
package externalversions
import (
- "fmt"
+ fmt "fmt"
v1 "github.com/openshift/api/samples/v1"
schema "k8s.io/apimachinery/pkg/runtime/schema"
diff --git a/samples/informers/externalversions/samples/v1/config.go b/samples/informers/externalversions/samples/v1/config.go
index 78e8b8d5c..82bb250f8 100644
--- a/samples/informers/externalversions/samples/v1/config.go
+++ b/samples/informers/externalversions/samples/v1/config.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- samplesv1 "github.com/openshift/api/samples/v1"
+ apisamplesv1 "github.com/openshift/api/samples/v1"
versioned "github.com/openshift/client-go/samples/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/samples/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/samples/listers/samples/v1"
+ samplesv1 "github.com/openshift/client-go/samples/listers/samples/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// Configs.
type ConfigInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.ConfigLister
+ Lister() samplesv1.ConfigLister
}
type configInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredConfigInformer(client versioned.Interface, resyncPeriod time.Dur
return client.SamplesV1().Configs().Watch(context.TODO(), options)
},
},
- &samplesv1.Config{},
+ &apisamplesv1.Config{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *configInformer) defaultInformer(client versioned.Interface, resyncPerio
}
func (f *configInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&samplesv1.Config{}, f.defaultInformer)
+ return f.factory.InformerFor(&apisamplesv1.Config{}, f.defaultInformer)
}
-func (f *configInformer) Lister() v1.ConfigLister {
- return v1.NewConfigLister(f.Informer().GetIndexer())
+func (f *configInformer) Lister() samplesv1.ConfigLister {
+ return samplesv1.NewConfigLister(f.Informer().GetIndexer())
}
diff --git a/samples/listers/samples/v1/config.go b/samples/listers/samples/v1/config.go
index bd44c9acc..5630a04fb 100644
--- a/samples/listers/samples/v1/config.go
+++ b/samples/listers/samples/v1/config.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/samples/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ samplesv1 "github.com/openshift/api/samples/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ConfigLister helps list Configs.
@@ -14,19 +14,19 @@ import (
type ConfigLister interface {
// List lists all Configs in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.Config, err error)
+ List(selector labels.Selector) (ret []*samplesv1.Config, err error)
// Get retrieves the Config from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.Config, error)
+ Get(name string) (*samplesv1.Config, error)
ConfigListerExpansion
}
// configLister implements the ConfigLister interface.
type configLister struct {
- listers.ResourceIndexer[*v1.Config]
+ listers.ResourceIndexer[*samplesv1.Config]
}
// NewConfigLister returns a new ConfigLister.
func NewConfigLister(indexer cache.Indexer) ConfigLister {
- return &configLister{listers.New[*v1.Config](indexer, v1.Resource("config"))}
+ return &configLister{listers.New[*samplesv1.Config](indexer, samplesv1.Resource("config"))}
}
diff --git a/security/applyconfigurations/internal/internal.go b/security/applyconfigurations/internal/internal.go
index b6dcc1548..995779a57 100644
--- a/security/applyconfigurations/internal/internal.go
+++ b/security/applyconfigurations/internal/internal.go
@@ -3,8 +3,8 @@
package internal
import (
- "fmt"
- "sync"
+ fmt "fmt"
+ sync "sync"
typed "sigs.k8s.io/structured-merge-diff/v4/typed"
)
diff --git a/security/applyconfigurations/security/v1/fsgroupstrategyoptions.go b/security/applyconfigurations/security/v1/fsgroupstrategyoptions.go
index d85d2a62f..d9c1dd1a6 100644
--- a/security/applyconfigurations/security/v1/fsgroupstrategyoptions.go
+++ b/security/applyconfigurations/security/v1/fsgroupstrategyoptions.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "github.com/openshift/api/security/v1"
+ securityv1 "github.com/openshift/api/security/v1"
)
// FSGroupStrategyOptionsApplyConfiguration represents a declarative configuration of the FSGroupStrategyOptions type for use
// with apply.
type FSGroupStrategyOptionsApplyConfiguration struct {
- Type *v1.FSGroupStrategyType `json:"type,omitempty"`
- Ranges []IDRangeApplyConfiguration `json:"ranges,omitempty"`
+ Type *securityv1.FSGroupStrategyType `json:"type,omitempty"`
+ Ranges []IDRangeApplyConfiguration `json:"ranges,omitempty"`
}
// FSGroupStrategyOptionsApplyConfiguration constructs a declarative configuration of the FSGroupStrategyOptions type for use with
@@ -22,7 +22,7 @@ func FSGroupStrategyOptions() *FSGroupStrategyOptionsApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *FSGroupStrategyOptionsApplyConfiguration) WithType(value v1.FSGroupStrategyType) *FSGroupStrategyOptionsApplyConfiguration {
+func (b *FSGroupStrategyOptionsApplyConfiguration) WithType(value securityv1.FSGroupStrategyType) *FSGroupStrategyOptionsApplyConfiguration {
b.Type = &value
return b
}
diff --git a/security/applyconfigurations/security/v1/rangeallocation.go b/security/applyconfigurations/security/v1/rangeallocation.go
index ecba8c6ac..1993bd8d7 100644
--- a/security/applyconfigurations/security/v1/rangeallocation.go
+++ b/security/applyconfigurations/security/v1/rangeallocation.go
@@ -5,19 +5,19 @@ package v1
import (
securityv1 "github.com/openshift/api/security/v1"
internal "github.com/openshift/client-go/security/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// RangeAllocationApplyConfiguration represents a declarative configuration of the RangeAllocation type for use
// with apply.
type RangeAllocationApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Range *string `json:"range,omitempty"`
- Data []byte `json:"data,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Range *string `json:"range,omitempty"`
+ Data []byte `json:"data,omitempty"`
}
// RangeAllocation constructs a declarative configuration of the RangeAllocation type for use with
@@ -69,7 +69,7 @@ func extractRangeAllocation(rangeAllocation *securityv1.RangeAllocation, fieldMa
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *RangeAllocationApplyConfiguration) WithKind(value string) *RangeAllocationApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *RangeAllocationApplyConfiguration) WithKind(value string) *RangeAllocat
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *RangeAllocationApplyConfiguration) WithAPIVersion(value string) *RangeAllocationApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *RangeAllocationApplyConfiguration) WithAPIVersion(value string) *RangeA
// If called multiple times, the Name field is set to the value of the last call.
func (b *RangeAllocationApplyConfiguration) WithName(value string) *RangeAllocationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *RangeAllocationApplyConfiguration) WithName(value string) *RangeAllocat
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *RangeAllocationApplyConfiguration) WithGenerateName(value string) *RangeAllocationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *RangeAllocationApplyConfiguration) WithGenerateName(value string) *Rang
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *RangeAllocationApplyConfiguration) WithNamespace(value string) *RangeAllocationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *RangeAllocationApplyConfiguration) WithNamespace(value string) *RangeAl
// If called multiple times, the UID field is set to the value of the last call.
func (b *RangeAllocationApplyConfiguration) WithUID(value types.UID) *RangeAllocationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *RangeAllocationApplyConfiguration) WithUID(value types.UID) *RangeAlloc
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *RangeAllocationApplyConfiguration) WithResourceVersion(value string) *RangeAllocationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *RangeAllocationApplyConfiguration) WithResourceVersion(value string) *R
// If called multiple times, the Generation field is set to the value of the last call.
func (b *RangeAllocationApplyConfiguration) WithGeneration(value int64) *RangeAllocationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *RangeAllocationApplyConfiguration) WithCreationTimestamp(value metav1.Time) *RangeAllocationApplyConfiguration {
+func (b *RangeAllocationApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *RangeAllocationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *RangeAllocationApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *RangeAllocationApplyConfiguration {
+func (b *RangeAllocationApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *RangeAllocationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *RangeAllocationApplyConfiguration) WithDeletionTimestamp(value metav1.T
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *RangeAllocationApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *RangeAllocationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *RangeAllocationApplyConfiguration) WithDeletionGracePeriodSeconds(value
// overwriting an existing map entries in Labels field with the same key.
func (b *RangeAllocationApplyConfiguration) WithLabels(entries map[string]string) *RangeAllocationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *RangeAllocationApplyConfiguration) WithLabels(entries map[string]string
// overwriting an existing map entries in Annotations field with the same key.
func (b *RangeAllocationApplyConfiguration) WithAnnotations(entries map[string]string) *RangeAllocationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *RangeAllocationApplyConfiguration) WithAnnotations(entries map[string]s
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *RangeAllocationApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *RangeAllocationApplyConfiguration {
+func (b *RangeAllocationApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *RangeAllocationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *RangeAllocationApplyConfiguration) WithOwnerReferences(values ...*v1.Ow
func (b *RangeAllocationApplyConfiguration) WithFinalizers(values ...string) *RangeAllocationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *RangeAllocationApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -244,5 +244,5 @@ func (b *RangeAllocationApplyConfiguration) WithData(values ...byte) *RangeAlloc
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *RangeAllocationApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/security/applyconfigurations/security/v1/runasuserstrategyoptions.go b/security/applyconfigurations/security/v1/runasuserstrategyoptions.go
index ed671136e..e93f8d643 100644
--- a/security/applyconfigurations/security/v1/runasuserstrategyoptions.go
+++ b/security/applyconfigurations/security/v1/runasuserstrategyoptions.go
@@ -3,16 +3,16 @@
package v1
import (
- v1 "github.com/openshift/api/security/v1"
+ securityv1 "github.com/openshift/api/security/v1"
)
// RunAsUserStrategyOptionsApplyConfiguration represents a declarative configuration of the RunAsUserStrategyOptions type for use
// with apply.
type RunAsUserStrategyOptionsApplyConfiguration struct {
- Type *v1.RunAsUserStrategyType `json:"type,omitempty"`
- UID *int64 `json:"uid,omitempty"`
- UIDRangeMin *int64 `json:"uidRangeMin,omitempty"`
- UIDRangeMax *int64 `json:"uidRangeMax,omitempty"`
+ Type *securityv1.RunAsUserStrategyType `json:"type,omitempty"`
+ UID *int64 `json:"uid,omitempty"`
+ UIDRangeMin *int64 `json:"uidRangeMin,omitempty"`
+ UIDRangeMax *int64 `json:"uidRangeMax,omitempty"`
}
// RunAsUserStrategyOptionsApplyConfiguration constructs a declarative configuration of the RunAsUserStrategyOptions type for use with
@@ -24,7 +24,7 @@ func RunAsUserStrategyOptions() *RunAsUserStrategyOptionsApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *RunAsUserStrategyOptionsApplyConfiguration) WithType(value v1.RunAsUserStrategyType) *RunAsUserStrategyOptionsApplyConfiguration {
+func (b *RunAsUserStrategyOptionsApplyConfiguration) WithType(value securityv1.RunAsUserStrategyType) *RunAsUserStrategyOptionsApplyConfiguration {
b.Type = &value
return b
}
diff --git a/security/applyconfigurations/security/v1/securitycontextconstraints.go b/security/applyconfigurations/security/v1/securitycontextconstraints.go
index d7026978e..ecd908713 100644
--- a/security/applyconfigurations/security/v1/securitycontextconstraints.go
+++ b/security/applyconfigurations/security/v1/securitycontextconstraints.go
@@ -6,42 +6,42 @@ import (
securityv1 "github.com/openshift/api/security/v1"
internal "github.com/openshift/client-go/security/applyconfigurations/internal"
corev1 "k8s.io/api/core/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// SecurityContextConstraintsApplyConfiguration represents a declarative configuration of the SecurityContextConstraints type for use
// with apply.
type SecurityContextConstraintsApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Priority *int32 `json:"priority,omitempty"`
- AllowPrivilegedContainer *bool `json:"allowPrivilegedContainer,omitempty"`
- DefaultAddCapabilities []corev1.Capability `json:"defaultAddCapabilities,omitempty"`
- RequiredDropCapabilities []corev1.Capability `json:"requiredDropCapabilities,omitempty"`
- AllowedCapabilities []corev1.Capability `json:"allowedCapabilities,omitempty"`
- AllowHostDirVolumePlugin *bool `json:"allowHostDirVolumePlugin,omitempty"`
- Volumes []securityv1.FSType `json:"volumes,omitempty"`
- AllowedFlexVolumes []AllowedFlexVolumeApplyConfiguration `json:"allowedFlexVolumes,omitempty"`
- AllowHostNetwork *bool `json:"allowHostNetwork,omitempty"`
- AllowHostPorts *bool `json:"allowHostPorts,omitempty"`
- AllowHostPID *bool `json:"allowHostPID,omitempty"`
- AllowHostIPC *bool `json:"allowHostIPC,omitempty"`
- UserNamespaceLevel *securityv1.NamespaceLevelType `json:"userNamespaceLevel,omitempty"`
- DefaultAllowPrivilegeEscalation *bool `json:"defaultAllowPrivilegeEscalation,omitempty"`
- AllowPrivilegeEscalation *bool `json:"allowPrivilegeEscalation,omitempty"`
- SELinuxContext *SELinuxContextStrategyOptionsApplyConfiguration `json:"seLinuxContext,omitempty"`
- RunAsUser *RunAsUserStrategyOptionsApplyConfiguration `json:"runAsUser,omitempty"`
- SupplementalGroups *SupplementalGroupsStrategyOptionsApplyConfiguration `json:"supplementalGroups,omitempty"`
- FSGroup *FSGroupStrategyOptionsApplyConfiguration `json:"fsGroup,omitempty"`
- ReadOnlyRootFilesystem *bool `json:"readOnlyRootFilesystem,omitempty"`
- Users []string `json:"users,omitempty"`
- Groups []string `json:"groups,omitempty"`
- SeccompProfiles []string `json:"seccompProfiles,omitempty"`
- AllowedUnsafeSysctls []string `json:"allowedUnsafeSysctls,omitempty"`
- ForbiddenSysctls []string `json:"forbiddenSysctls,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Priority *int32 `json:"priority,omitempty"`
+ AllowPrivilegedContainer *bool `json:"allowPrivilegedContainer,omitempty"`
+ DefaultAddCapabilities []corev1.Capability `json:"defaultAddCapabilities,omitempty"`
+ RequiredDropCapabilities []corev1.Capability `json:"requiredDropCapabilities,omitempty"`
+ AllowedCapabilities []corev1.Capability `json:"allowedCapabilities,omitempty"`
+ AllowHostDirVolumePlugin *bool `json:"allowHostDirVolumePlugin,omitempty"`
+ Volumes []securityv1.FSType `json:"volumes,omitempty"`
+ AllowedFlexVolumes []AllowedFlexVolumeApplyConfiguration `json:"allowedFlexVolumes,omitempty"`
+ AllowHostNetwork *bool `json:"allowHostNetwork,omitempty"`
+ AllowHostPorts *bool `json:"allowHostPorts,omitempty"`
+ AllowHostPID *bool `json:"allowHostPID,omitempty"`
+ AllowHostIPC *bool `json:"allowHostIPC,omitempty"`
+ UserNamespaceLevel *securityv1.NamespaceLevelType `json:"userNamespaceLevel,omitempty"`
+ DefaultAllowPrivilegeEscalation *bool `json:"defaultAllowPrivilegeEscalation,omitempty"`
+ AllowPrivilegeEscalation *bool `json:"allowPrivilegeEscalation,omitempty"`
+ SELinuxContext *SELinuxContextStrategyOptionsApplyConfiguration `json:"seLinuxContext,omitempty"`
+ RunAsUser *RunAsUserStrategyOptionsApplyConfiguration `json:"runAsUser,omitempty"`
+ SupplementalGroups *SupplementalGroupsStrategyOptionsApplyConfiguration `json:"supplementalGroups,omitempty"`
+ FSGroup *FSGroupStrategyOptionsApplyConfiguration `json:"fsGroup,omitempty"`
+ ReadOnlyRootFilesystem *bool `json:"readOnlyRootFilesystem,omitempty"`
+ Users []string `json:"users,omitempty"`
+ Groups []string `json:"groups,omitempty"`
+ SeccompProfiles []string `json:"seccompProfiles,omitempty"`
+ AllowedUnsafeSysctls []string `json:"allowedUnsafeSysctls,omitempty"`
+ ForbiddenSysctls []string `json:"forbiddenSysctls,omitempty"`
}
// SecurityContextConstraints constructs a declarative configuration of the SecurityContextConstraints type for use with
@@ -93,7 +93,7 @@ func extractSecurityContextConstraints(securityContextConstraints *securityv1.Se
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *SecurityContextConstraintsApplyConfiguration) WithKind(value string) *SecurityContextConstraintsApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -101,7 +101,7 @@ func (b *SecurityContextConstraintsApplyConfiguration) WithKind(value string) *S
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *SecurityContextConstraintsApplyConfiguration) WithAPIVersion(value string) *SecurityContextConstraintsApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -110,7 +110,7 @@ func (b *SecurityContextConstraintsApplyConfiguration) WithAPIVersion(value stri
// If called multiple times, the Name field is set to the value of the last call.
func (b *SecurityContextConstraintsApplyConfiguration) WithName(value string) *SecurityContextConstraintsApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -119,7 +119,7 @@ func (b *SecurityContextConstraintsApplyConfiguration) WithName(value string) *S
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *SecurityContextConstraintsApplyConfiguration) WithGenerateName(value string) *SecurityContextConstraintsApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -128,7 +128,7 @@ func (b *SecurityContextConstraintsApplyConfiguration) WithGenerateName(value st
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *SecurityContextConstraintsApplyConfiguration) WithNamespace(value string) *SecurityContextConstraintsApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -137,7 +137,7 @@ func (b *SecurityContextConstraintsApplyConfiguration) WithNamespace(value strin
// If called multiple times, the UID field is set to the value of the last call.
func (b *SecurityContextConstraintsApplyConfiguration) WithUID(value types.UID) *SecurityContextConstraintsApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -146,7 +146,7 @@ func (b *SecurityContextConstraintsApplyConfiguration) WithUID(value types.UID)
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *SecurityContextConstraintsApplyConfiguration) WithResourceVersion(value string) *SecurityContextConstraintsApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -155,25 +155,25 @@ func (b *SecurityContextConstraintsApplyConfiguration) WithResourceVersion(value
// If called multiple times, the Generation field is set to the value of the last call.
func (b *SecurityContextConstraintsApplyConfiguration) WithGeneration(value int64) *SecurityContextConstraintsApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *SecurityContextConstraintsApplyConfiguration) WithCreationTimestamp(value metav1.Time) *SecurityContextConstraintsApplyConfiguration {
+func (b *SecurityContextConstraintsApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *SecurityContextConstraintsApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *SecurityContextConstraintsApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *SecurityContextConstraintsApplyConfiguration {
+func (b *SecurityContextConstraintsApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *SecurityContextConstraintsApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -182,7 +182,7 @@ func (b *SecurityContextConstraintsApplyConfiguration) WithDeletionTimestamp(val
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *SecurityContextConstraintsApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *SecurityContextConstraintsApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -192,11 +192,11 @@ func (b *SecurityContextConstraintsApplyConfiguration) WithDeletionGracePeriodSe
// overwriting an existing map entries in Labels field with the same key.
func (b *SecurityContextConstraintsApplyConfiguration) WithLabels(entries map[string]string) *SecurityContextConstraintsApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -207,11 +207,11 @@ func (b *SecurityContextConstraintsApplyConfiguration) WithLabels(entries map[st
// overwriting an existing map entries in Annotations field with the same key.
func (b *SecurityContextConstraintsApplyConfiguration) WithAnnotations(entries map[string]string) *SecurityContextConstraintsApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -219,13 +219,13 @@ func (b *SecurityContextConstraintsApplyConfiguration) WithAnnotations(entries m
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *SecurityContextConstraintsApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *SecurityContextConstraintsApplyConfiguration {
+func (b *SecurityContextConstraintsApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *SecurityContextConstraintsApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -236,14 +236,14 @@ func (b *SecurityContextConstraintsApplyConfiguration) WithOwnerReferences(value
func (b *SecurityContextConstraintsApplyConfiguration) WithFinalizers(values ...string) *SecurityContextConstraintsApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *SecurityContextConstraintsApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -473,5 +473,5 @@ func (b *SecurityContextConstraintsApplyConfiguration) WithForbiddenSysctls(valu
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *SecurityContextConstraintsApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/security/applyconfigurations/security/v1/selinuxcontextstrategyoptions.go b/security/applyconfigurations/security/v1/selinuxcontextstrategyoptions.go
index 580c596b0..985472fea 100644
--- a/security/applyconfigurations/security/v1/selinuxcontextstrategyoptions.go
+++ b/security/applyconfigurations/security/v1/selinuxcontextstrategyoptions.go
@@ -3,15 +3,15 @@
package v1
import (
- v1 "github.com/openshift/api/security/v1"
+ securityv1 "github.com/openshift/api/security/v1"
corev1 "k8s.io/api/core/v1"
)
// SELinuxContextStrategyOptionsApplyConfiguration represents a declarative configuration of the SELinuxContextStrategyOptions type for use
// with apply.
type SELinuxContextStrategyOptionsApplyConfiguration struct {
- Type *v1.SELinuxContextStrategyType `json:"type,omitempty"`
- SELinuxOptions *corev1.SELinuxOptions `json:"seLinuxOptions,omitempty"`
+ Type *securityv1.SELinuxContextStrategyType `json:"type,omitempty"`
+ SELinuxOptions *corev1.SELinuxOptions `json:"seLinuxOptions,omitempty"`
}
// SELinuxContextStrategyOptionsApplyConfiguration constructs a declarative configuration of the SELinuxContextStrategyOptions type for use with
@@ -23,7 +23,7 @@ func SELinuxContextStrategyOptions() *SELinuxContextStrategyOptionsApplyConfigur
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *SELinuxContextStrategyOptionsApplyConfiguration) WithType(value v1.SELinuxContextStrategyType) *SELinuxContextStrategyOptionsApplyConfiguration {
+func (b *SELinuxContextStrategyOptionsApplyConfiguration) WithType(value securityv1.SELinuxContextStrategyType) *SELinuxContextStrategyOptionsApplyConfiguration {
b.Type = &value
return b
}
diff --git a/security/applyconfigurations/security/v1/supplementalgroupsstrategyoptions.go b/security/applyconfigurations/security/v1/supplementalgroupsstrategyoptions.go
index 563e9d285..e1f1db621 100644
--- a/security/applyconfigurations/security/v1/supplementalgroupsstrategyoptions.go
+++ b/security/applyconfigurations/security/v1/supplementalgroupsstrategyoptions.go
@@ -3,14 +3,14 @@
package v1
import (
- v1 "github.com/openshift/api/security/v1"
+ securityv1 "github.com/openshift/api/security/v1"
)
// SupplementalGroupsStrategyOptionsApplyConfiguration represents a declarative configuration of the SupplementalGroupsStrategyOptions type for use
// with apply.
type SupplementalGroupsStrategyOptionsApplyConfiguration struct {
- Type *v1.SupplementalGroupsStrategyType `json:"type,omitempty"`
- Ranges []IDRangeApplyConfiguration `json:"ranges,omitempty"`
+ Type *securityv1.SupplementalGroupsStrategyType `json:"type,omitempty"`
+ Ranges []IDRangeApplyConfiguration `json:"ranges,omitempty"`
}
// SupplementalGroupsStrategyOptionsApplyConfiguration constructs a declarative configuration of the SupplementalGroupsStrategyOptions type for use with
@@ -22,7 +22,7 @@ func SupplementalGroupsStrategyOptions() *SupplementalGroupsStrategyOptionsApply
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *SupplementalGroupsStrategyOptionsApplyConfiguration) WithType(value v1.SupplementalGroupsStrategyType) *SupplementalGroupsStrategyOptionsApplyConfiguration {
+func (b *SupplementalGroupsStrategyOptionsApplyConfiguration) WithType(value securityv1.SupplementalGroupsStrategyType) *SupplementalGroupsStrategyOptionsApplyConfiguration {
b.Type = &value
return b
}
diff --git a/security/clientset/versioned/clientset.go b/security/clientset/versioned/clientset.go
index 535a59d3e..62f63b51f 100644
--- a/security/clientset/versioned/clientset.go
+++ b/security/clientset/versioned/clientset.go
@@ -3,8 +3,8 @@
package versioned
import (
- "fmt"
- "net/http"
+ fmt "fmt"
+ http "net/http"
securityv1 "github.com/openshift/client-go/security/clientset/versioned/typed/security/v1"
discovery "k8s.io/client-go/discovery"
diff --git a/security/clientset/versioned/typed/security/v1/fake/fake_podsecuritypolicyreview.go b/security/clientset/versioned/typed/security/v1/fake/fake_podsecuritypolicyreview.go
index e48b7cb68..de05294ff 100644
--- a/security/clientset/versioned/typed/security/v1/fake/fake_podsecuritypolicyreview.go
+++ b/security/clientset/versioned/typed/security/v1/fake/fake_podsecuritypolicyreview.go
@@ -3,31 +3,26 @@
package fake
import (
- "context"
-
v1 "github.com/openshift/api/security/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- testing "k8s.io/client-go/testing"
+ securityv1 "github.com/openshift/client-go/security/clientset/versioned/typed/security/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakePodSecurityPolicyReviews implements PodSecurityPolicyReviewInterface
-type FakePodSecurityPolicyReviews struct {
+// fakePodSecurityPolicyReviews implements PodSecurityPolicyReviewInterface
+type fakePodSecurityPolicyReviews struct {
+ *gentype.FakeClient[*v1.PodSecurityPolicyReview]
Fake *FakeSecurityV1
- ns string
}
-var podsecuritypolicyreviewsResource = v1.SchemeGroupVersion.WithResource("podsecuritypolicyreviews")
-
-var podsecuritypolicyreviewsKind = v1.SchemeGroupVersion.WithKind("PodSecurityPolicyReview")
-
-// Create takes the representation of a podSecurityPolicyReview and creates it. Returns the server's representation of the podSecurityPolicyReview, and an error, if there is any.
-func (c *FakePodSecurityPolicyReviews) Create(ctx context.Context, podSecurityPolicyReview *v1.PodSecurityPolicyReview, opts metav1.CreateOptions) (result *v1.PodSecurityPolicyReview, err error) {
- emptyResult := &v1.PodSecurityPolicyReview{}
- obj, err := c.Fake.
- Invokes(testing.NewCreateActionWithOptions(podsecuritypolicyreviewsResource, c.ns, podSecurityPolicyReview, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
+func newFakePodSecurityPolicyReviews(fake *FakeSecurityV1, namespace string) securityv1.PodSecurityPolicyReviewInterface {
+ return &fakePodSecurityPolicyReviews{
+ gentype.NewFakeClient[*v1.PodSecurityPolicyReview](
+ fake.Fake,
+ namespace,
+ v1.SchemeGroupVersion.WithResource("podsecuritypolicyreviews"),
+ v1.SchemeGroupVersion.WithKind("PodSecurityPolicyReview"),
+ func() *v1.PodSecurityPolicyReview { return &v1.PodSecurityPolicyReview{} },
+ ),
+ fake,
}
- return obj.(*v1.PodSecurityPolicyReview), err
}
diff --git a/security/clientset/versioned/typed/security/v1/fake/fake_podsecuritypolicyselfsubjectreview.go b/security/clientset/versioned/typed/security/v1/fake/fake_podsecuritypolicyselfsubjectreview.go
index df5146969..96fc01729 100644
--- a/security/clientset/versioned/typed/security/v1/fake/fake_podsecuritypolicyselfsubjectreview.go
+++ b/security/clientset/versioned/typed/security/v1/fake/fake_podsecuritypolicyselfsubjectreview.go
@@ -3,31 +3,26 @@
package fake
import (
- "context"
-
v1 "github.com/openshift/api/security/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- testing "k8s.io/client-go/testing"
+ securityv1 "github.com/openshift/client-go/security/clientset/versioned/typed/security/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakePodSecurityPolicySelfSubjectReviews implements PodSecurityPolicySelfSubjectReviewInterface
-type FakePodSecurityPolicySelfSubjectReviews struct {
+// fakePodSecurityPolicySelfSubjectReviews implements PodSecurityPolicySelfSubjectReviewInterface
+type fakePodSecurityPolicySelfSubjectReviews struct {
+ *gentype.FakeClient[*v1.PodSecurityPolicySelfSubjectReview]
Fake *FakeSecurityV1
- ns string
}
-var podsecuritypolicyselfsubjectreviewsResource = v1.SchemeGroupVersion.WithResource("podsecuritypolicyselfsubjectreviews")
-
-var podsecuritypolicyselfsubjectreviewsKind = v1.SchemeGroupVersion.WithKind("PodSecurityPolicySelfSubjectReview")
-
-// Create takes the representation of a podSecurityPolicySelfSubjectReview and creates it. Returns the server's representation of the podSecurityPolicySelfSubjectReview, and an error, if there is any.
-func (c *FakePodSecurityPolicySelfSubjectReviews) Create(ctx context.Context, podSecurityPolicySelfSubjectReview *v1.PodSecurityPolicySelfSubjectReview, opts metav1.CreateOptions) (result *v1.PodSecurityPolicySelfSubjectReview, err error) {
- emptyResult := &v1.PodSecurityPolicySelfSubjectReview{}
- obj, err := c.Fake.
- Invokes(testing.NewCreateActionWithOptions(podsecuritypolicyselfsubjectreviewsResource, c.ns, podSecurityPolicySelfSubjectReview, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
+func newFakePodSecurityPolicySelfSubjectReviews(fake *FakeSecurityV1, namespace string) securityv1.PodSecurityPolicySelfSubjectReviewInterface {
+ return &fakePodSecurityPolicySelfSubjectReviews{
+ gentype.NewFakeClient[*v1.PodSecurityPolicySelfSubjectReview](
+ fake.Fake,
+ namespace,
+ v1.SchemeGroupVersion.WithResource("podsecuritypolicyselfsubjectreviews"),
+ v1.SchemeGroupVersion.WithKind("PodSecurityPolicySelfSubjectReview"),
+ func() *v1.PodSecurityPolicySelfSubjectReview { return &v1.PodSecurityPolicySelfSubjectReview{} },
+ ),
+ fake,
}
- return obj.(*v1.PodSecurityPolicySelfSubjectReview), err
}
diff --git a/security/clientset/versioned/typed/security/v1/fake/fake_podsecuritypolicysubjectreview.go b/security/clientset/versioned/typed/security/v1/fake/fake_podsecuritypolicysubjectreview.go
index 1927c7444..c49a19ce1 100644
--- a/security/clientset/versioned/typed/security/v1/fake/fake_podsecuritypolicysubjectreview.go
+++ b/security/clientset/versioned/typed/security/v1/fake/fake_podsecuritypolicysubjectreview.go
@@ -3,31 +3,26 @@
package fake
import (
- "context"
-
v1 "github.com/openshift/api/security/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- testing "k8s.io/client-go/testing"
+ securityv1 "github.com/openshift/client-go/security/clientset/versioned/typed/security/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakePodSecurityPolicySubjectReviews implements PodSecurityPolicySubjectReviewInterface
-type FakePodSecurityPolicySubjectReviews struct {
+// fakePodSecurityPolicySubjectReviews implements PodSecurityPolicySubjectReviewInterface
+type fakePodSecurityPolicySubjectReviews struct {
+ *gentype.FakeClient[*v1.PodSecurityPolicySubjectReview]
Fake *FakeSecurityV1
- ns string
}
-var podsecuritypolicysubjectreviewsResource = v1.SchemeGroupVersion.WithResource("podsecuritypolicysubjectreviews")
-
-var podsecuritypolicysubjectreviewsKind = v1.SchemeGroupVersion.WithKind("PodSecurityPolicySubjectReview")
-
-// Create takes the representation of a podSecurityPolicySubjectReview and creates it. Returns the server's representation of the podSecurityPolicySubjectReview, and an error, if there is any.
-func (c *FakePodSecurityPolicySubjectReviews) Create(ctx context.Context, podSecurityPolicySubjectReview *v1.PodSecurityPolicySubjectReview, opts metav1.CreateOptions) (result *v1.PodSecurityPolicySubjectReview, err error) {
- emptyResult := &v1.PodSecurityPolicySubjectReview{}
- obj, err := c.Fake.
- Invokes(testing.NewCreateActionWithOptions(podsecuritypolicysubjectreviewsResource, c.ns, podSecurityPolicySubjectReview, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
+func newFakePodSecurityPolicySubjectReviews(fake *FakeSecurityV1, namespace string) securityv1.PodSecurityPolicySubjectReviewInterface {
+ return &fakePodSecurityPolicySubjectReviews{
+ gentype.NewFakeClient[*v1.PodSecurityPolicySubjectReview](
+ fake.Fake,
+ namespace,
+ v1.SchemeGroupVersion.WithResource("podsecuritypolicysubjectreviews"),
+ v1.SchemeGroupVersion.WithKind("PodSecurityPolicySubjectReview"),
+ func() *v1.PodSecurityPolicySubjectReview { return &v1.PodSecurityPolicySubjectReview{} },
+ ),
+ fake,
}
- return obj.(*v1.PodSecurityPolicySubjectReview), err
}
diff --git a/security/clientset/versioned/typed/security/v1/fake/fake_rangeallocation.go b/security/clientset/versioned/typed/security/v1/fake/fake_rangeallocation.go
index cda0cc7b1..99667d11f 100644
--- a/security/clientset/versioned/typed/security/v1/fake/fake_rangeallocation.go
+++ b/security/clientset/versioned/typed/security/v1/fake/fake_rangeallocation.go
@@ -3,133 +3,33 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/security/v1"
securityv1 "github.com/openshift/client-go/security/applyconfigurations/security/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedsecurityv1 "github.com/openshift/client-go/security/clientset/versioned/typed/security/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeRangeAllocations implements RangeAllocationInterface
-type FakeRangeAllocations struct {
+// fakeRangeAllocations implements RangeAllocationInterface
+type fakeRangeAllocations struct {
+ *gentype.FakeClientWithListAndApply[*v1.RangeAllocation, *v1.RangeAllocationList, *securityv1.RangeAllocationApplyConfiguration]
Fake *FakeSecurityV1
}
-var rangeallocationsResource = v1.SchemeGroupVersion.WithResource("rangeallocations")
-
-var rangeallocationsKind = v1.SchemeGroupVersion.WithKind("RangeAllocation")
-
-// Get takes name of the rangeAllocation, and returns the corresponding rangeAllocation object, and an error if there is any.
-func (c *FakeRangeAllocations) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.RangeAllocation, err error) {
- emptyResult := &v1.RangeAllocation{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(rangeallocationsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.RangeAllocation), err
-}
-
-// List takes label and field selectors, and returns the list of RangeAllocations that match those selectors.
-func (c *FakeRangeAllocations) List(ctx context.Context, opts metav1.ListOptions) (result *v1.RangeAllocationList, err error) {
- emptyResult := &v1.RangeAllocationList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(rangeallocationsResource, rangeallocationsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.RangeAllocationList{ListMeta: obj.(*v1.RangeAllocationList).ListMeta}
- for _, item := range obj.(*v1.RangeAllocationList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested rangeAllocations.
-func (c *FakeRangeAllocations) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(rangeallocationsResource, opts))
-}
-
-// Create takes the representation of a rangeAllocation and creates it. Returns the server's representation of the rangeAllocation, and an error, if there is any.
-func (c *FakeRangeAllocations) Create(ctx context.Context, rangeAllocation *v1.RangeAllocation, opts metav1.CreateOptions) (result *v1.RangeAllocation, err error) {
- emptyResult := &v1.RangeAllocation{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(rangeallocationsResource, rangeAllocation, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.RangeAllocation), err
-}
-
-// Update takes the representation of a rangeAllocation and updates it. Returns the server's representation of the rangeAllocation, and an error, if there is any.
-func (c *FakeRangeAllocations) Update(ctx context.Context, rangeAllocation *v1.RangeAllocation, opts metav1.UpdateOptions) (result *v1.RangeAllocation, err error) {
- emptyResult := &v1.RangeAllocation{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(rangeallocationsResource, rangeAllocation, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.RangeAllocation), err
-}
-
-// Delete takes name of the rangeAllocation and deletes it. Returns an error if one occurs.
-func (c *FakeRangeAllocations) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(rangeallocationsResource, name, opts), &v1.RangeAllocation{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeRangeAllocations) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(rangeallocationsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.RangeAllocationList{})
- return err
-}
-
-// Patch applies the patch and returns the patched rangeAllocation.
-func (c *FakeRangeAllocations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.RangeAllocation, err error) {
- emptyResult := &v1.RangeAllocation{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(rangeallocationsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.RangeAllocation), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied rangeAllocation.
-func (c *FakeRangeAllocations) Apply(ctx context.Context, rangeAllocation *securityv1.RangeAllocationApplyConfiguration, opts metav1.ApplyOptions) (result *v1.RangeAllocation, err error) {
- if rangeAllocation == nil {
- return nil, fmt.Errorf("rangeAllocation provided to Apply must not be nil")
- }
- data, err := json.Marshal(rangeAllocation)
- if err != nil {
- return nil, err
- }
- name := rangeAllocation.Name
- if name == nil {
- return nil, fmt.Errorf("rangeAllocation.Name must be provided to Apply")
- }
- emptyResult := &v1.RangeAllocation{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(rangeallocationsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeRangeAllocations(fake *FakeSecurityV1) typedsecurityv1.RangeAllocationInterface {
+ return &fakeRangeAllocations{
+ gentype.NewFakeClientWithListAndApply[*v1.RangeAllocation, *v1.RangeAllocationList, *securityv1.RangeAllocationApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("rangeallocations"),
+ v1.SchemeGroupVersion.WithKind("RangeAllocation"),
+ func() *v1.RangeAllocation { return &v1.RangeAllocation{} },
+ func() *v1.RangeAllocationList { return &v1.RangeAllocationList{} },
+ func(dst, src *v1.RangeAllocationList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.RangeAllocationList) []*v1.RangeAllocation { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.RangeAllocationList, items []*v1.RangeAllocation) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.RangeAllocation), err
}
diff --git a/security/clientset/versioned/typed/security/v1/fake/fake_security_client.go b/security/clientset/versioned/typed/security/v1/fake/fake_security_client.go
index 33240c41c..36d54ae64 100644
--- a/security/clientset/versioned/typed/security/v1/fake/fake_security_client.go
+++ b/security/clientset/versioned/typed/security/v1/fake/fake_security_client.go
@@ -13,23 +13,23 @@ type FakeSecurityV1 struct {
}
func (c *FakeSecurityV1) PodSecurityPolicyReviews(namespace string) v1.PodSecurityPolicyReviewInterface {
- return &FakePodSecurityPolicyReviews{c, namespace}
+ return newFakePodSecurityPolicyReviews(c, namespace)
}
func (c *FakeSecurityV1) PodSecurityPolicySelfSubjectReviews(namespace string) v1.PodSecurityPolicySelfSubjectReviewInterface {
- return &FakePodSecurityPolicySelfSubjectReviews{c, namespace}
+ return newFakePodSecurityPolicySelfSubjectReviews(c, namespace)
}
func (c *FakeSecurityV1) PodSecurityPolicySubjectReviews(namespace string) v1.PodSecurityPolicySubjectReviewInterface {
- return &FakePodSecurityPolicySubjectReviews{c, namespace}
+ return newFakePodSecurityPolicySubjectReviews(c, namespace)
}
func (c *FakeSecurityV1) RangeAllocations() v1.RangeAllocationInterface {
- return &FakeRangeAllocations{c}
+ return newFakeRangeAllocations(c)
}
func (c *FakeSecurityV1) SecurityContextConstraints() v1.SecurityContextConstraintsInterface {
- return &FakeSecurityContextConstraints{c}
+ return newFakeSecurityContextConstraints(c)
}
// RESTClient returns a RESTClient that is used to communicate
diff --git a/security/clientset/versioned/typed/security/v1/fake/fake_securitycontextconstraints.go b/security/clientset/versioned/typed/security/v1/fake/fake_securitycontextconstraints.go
index d3674b611..f81699ac9 100644
--- a/security/clientset/versioned/typed/security/v1/fake/fake_securitycontextconstraints.go
+++ b/security/clientset/versioned/typed/security/v1/fake/fake_securitycontextconstraints.go
@@ -3,133 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/security/v1"
securityv1 "github.com/openshift/client-go/security/applyconfigurations/security/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedsecurityv1 "github.com/openshift/client-go/security/clientset/versioned/typed/security/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeSecurityContextConstraints implements SecurityContextConstraintsInterface
-type FakeSecurityContextConstraints struct {
+// fakeSecurityContextConstraints implements SecurityContextConstraintsInterface
+type fakeSecurityContextConstraints struct {
+ *gentype.FakeClientWithListAndApply[*v1.SecurityContextConstraints, *v1.SecurityContextConstraintsList, *securityv1.SecurityContextConstraintsApplyConfiguration]
Fake *FakeSecurityV1
}
-var securitycontextconstraintsResource = v1.SchemeGroupVersion.WithResource("securitycontextconstraints")
-
-var securitycontextconstraintsKind = v1.SchemeGroupVersion.WithKind("SecurityContextConstraints")
-
-// Get takes name of the securityContextConstraints, and returns the corresponding securityContextConstraints object, and an error if there is any.
-func (c *FakeSecurityContextConstraints) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.SecurityContextConstraints, err error) {
- emptyResult := &v1.SecurityContextConstraints{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(securitycontextconstraintsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.SecurityContextConstraints), err
-}
-
-// List takes label and field selectors, and returns the list of SecurityContextConstraints that match those selectors.
-func (c *FakeSecurityContextConstraints) List(ctx context.Context, opts metav1.ListOptions) (result *v1.SecurityContextConstraintsList, err error) {
- emptyResult := &v1.SecurityContextConstraintsList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(securitycontextconstraintsResource, securitycontextconstraintsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.SecurityContextConstraintsList{ListMeta: obj.(*v1.SecurityContextConstraintsList).ListMeta}
- for _, item := range obj.(*v1.SecurityContextConstraintsList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested securityContextConstraints.
-func (c *FakeSecurityContextConstraints) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(securitycontextconstraintsResource, opts))
-}
-
-// Create takes the representation of a securityContextConstraints and creates it. Returns the server's representation of the securityContextConstraints, and an error, if there is any.
-func (c *FakeSecurityContextConstraints) Create(ctx context.Context, securityContextConstraints *v1.SecurityContextConstraints, opts metav1.CreateOptions) (result *v1.SecurityContextConstraints, err error) {
- emptyResult := &v1.SecurityContextConstraints{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(securitycontextconstraintsResource, securityContextConstraints, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.SecurityContextConstraints), err
-}
-
-// Update takes the representation of a securityContextConstraints and updates it. Returns the server's representation of the securityContextConstraints, and an error, if there is any.
-func (c *FakeSecurityContextConstraints) Update(ctx context.Context, securityContextConstraints *v1.SecurityContextConstraints, opts metav1.UpdateOptions) (result *v1.SecurityContextConstraints, err error) {
- emptyResult := &v1.SecurityContextConstraints{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(securitycontextconstraintsResource, securityContextConstraints, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.SecurityContextConstraints), err
-}
-
-// Delete takes name of the securityContextConstraints and deletes it. Returns an error if one occurs.
-func (c *FakeSecurityContextConstraints) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(securitycontextconstraintsResource, name, opts), &v1.SecurityContextConstraints{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeSecurityContextConstraints) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(securitycontextconstraintsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.SecurityContextConstraintsList{})
- return err
-}
-
-// Patch applies the patch and returns the patched securityContextConstraints.
-func (c *FakeSecurityContextConstraints) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.SecurityContextConstraints, err error) {
- emptyResult := &v1.SecurityContextConstraints{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(securitycontextconstraintsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.SecurityContextConstraints), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied securityContextConstraints.
-func (c *FakeSecurityContextConstraints) Apply(ctx context.Context, securityContextConstraints *securityv1.SecurityContextConstraintsApplyConfiguration, opts metav1.ApplyOptions) (result *v1.SecurityContextConstraints, err error) {
- if securityContextConstraints == nil {
- return nil, fmt.Errorf("securityContextConstraints provided to Apply must not be nil")
- }
- data, err := json.Marshal(securityContextConstraints)
- if err != nil {
- return nil, err
- }
- name := securityContextConstraints.Name
- if name == nil {
- return nil, fmt.Errorf("securityContextConstraints.Name must be provided to Apply")
- }
- emptyResult := &v1.SecurityContextConstraints{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(securitycontextconstraintsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeSecurityContextConstraints(fake *FakeSecurityV1) typedsecurityv1.SecurityContextConstraintsInterface {
+ return &fakeSecurityContextConstraints{
+ gentype.NewFakeClientWithListAndApply[*v1.SecurityContextConstraints, *v1.SecurityContextConstraintsList, *securityv1.SecurityContextConstraintsApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("securitycontextconstraints"),
+ v1.SchemeGroupVersion.WithKind("SecurityContextConstraints"),
+ func() *v1.SecurityContextConstraints { return &v1.SecurityContextConstraints{} },
+ func() *v1.SecurityContextConstraintsList { return &v1.SecurityContextConstraintsList{} },
+ func(dst, src *v1.SecurityContextConstraintsList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.SecurityContextConstraintsList) []*v1.SecurityContextConstraints {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1.SecurityContextConstraintsList, items []*v1.SecurityContextConstraints) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.SecurityContextConstraints), err
}
diff --git a/security/clientset/versioned/typed/security/v1/podsecuritypolicyreview.go b/security/clientset/versioned/typed/security/v1/podsecuritypolicyreview.go
index 9ccf473a7..f92ff7f4f 100644
--- a/security/clientset/versioned/typed/security/v1/podsecuritypolicyreview.go
+++ b/security/clientset/versioned/typed/security/v1/podsecuritypolicyreview.go
@@ -3,9 +3,9 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/security/v1"
+ securityv1 "github.com/openshift/api/security/v1"
scheme "github.com/openshift/client-go/security/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
gentype "k8s.io/client-go/gentype"
@@ -19,23 +19,24 @@ type PodSecurityPolicyReviewsGetter interface {
// PodSecurityPolicyReviewInterface has methods to work with PodSecurityPolicyReview resources.
type PodSecurityPolicyReviewInterface interface {
- Create(ctx context.Context, podSecurityPolicyReview *v1.PodSecurityPolicyReview, opts metav1.CreateOptions) (*v1.PodSecurityPolicyReview, error)
+ Create(ctx context.Context, podSecurityPolicyReview *securityv1.PodSecurityPolicyReview, opts metav1.CreateOptions) (*securityv1.PodSecurityPolicyReview, error)
PodSecurityPolicyReviewExpansion
}
// podSecurityPolicyReviews implements PodSecurityPolicyReviewInterface
type podSecurityPolicyReviews struct {
- *gentype.Client[*v1.PodSecurityPolicyReview]
+ *gentype.Client[*securityv1.PodSecurityPolicyReview]
}
// newPodSecurityPolicyReviews returns a PodSecurityPolicyReviews
func newPodSecurityPolicyReviews(c *SecurityV1Client, namespace string) *podSecurityPolicyReviews {
return &podSecurityPolicyReviews{
- gentype.NewClient[*v1.PodSecurityPolicyReview](
+ gentype.NewClient[*securityv1.PodSecurityPolicyReview](
"podsecuritypolicyreviews",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
- func() *v1.PodSecurityPolicyReview { return &v1.PodSecurityPolicyReview{} }),
+ func() *securityv1.PodSecurityPolicyReview { return &securityv1.PodSecurityPolicyReview{} },
+ ),
}
}
diff --git a/security/clientset/versioned/typed/security/v1/podsecuritypolicyselfsubjectreview.go b/security/clientset/versioned/typed/security/v1/podsecuritypolicyselfsubjectreview.go
index 794322ea9..47afca097 100644
--- a/security/clientset/versioned/typed/security/v1/podsecuritypolicyselfsubjectreview.go
+++ b/security/clientset/versioned/typed/security/v1/podsecuritypolicyselfsubjectreview.go
@@ -3,9 +3,9 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/security/v1"
+ securityv1 "github.com/openshift/api/security/v1"
scheme "github.com/openshift/client-go/security/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
gentype "k8s.io/client-go/gentype"
@@ -19,23 +19,26 @@ type PodSecurityPolicySelfSubjectReviewsGetter interface {
// PodSecurityPolicySelfSubjectReviewInterface has methods to work with PodSecurityPolicySelfSubjectReview resources.
type PodSecurityPolicySelfSubjectReviewInterface interface {
- Create(ctx context.Context, podSecurityPolicySelfSubjectReview *v1.PodSecurityPolicySelfSubjectReview, opts metav1.CreateOptions) (*v1.PodSecurityPolicySelfSubjectReview, error)
+ Create(ctx context.Context, podSecurityPolicySelfSubjectReview *securityv1.PodSecurityPolicySelfSubjectReview, opts metav1.CreateOptions) (*securityv1.PodSecurityPolicySelfSubjectReview, error)
PodSecurityPolicySelfSubjectReviewExpansion
}
// podSecurityPolicySelfSubjectReviews implements PodSecurityPolicySelfSubjectReviewInterface
type podSecurityPolicySelfSubjectReviews struct {
- *gentype.Client[*v1.PodSecurityPolicySelfSubjectReview]
+ *gentype.Client[*securityv1.PodSecurityPolicySelfSubjectReview]
}
// newPodSecurityPolicySelfSubjectReviews returns a PodSecurityPolicySelfSubjectReviews
func newPodSecurityPolicySelfSubjectReviews(c *SecurityV1Client, namespace string) *podSecurityPolicySelfSubjectReviews {
return &podSecurityPolicySelfSubjectReviews{
- gentype.NewClient[*v1.PodSecurityPolicySelfSubjectReview](
+ gentype.NewClient[*securityv1.PodSecurityPolicySelfSubjectReview](
"podsecuritypolicyselfsubjectreviews",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
- func() *v1.PodSecurityPolicySelfSubjectReview { return &v1.PodSecurityPolicySelfSubjectReview{} }),
+ func() *securityv1.PodSecurityPolicySelfSubjectReview {
+ return &securityv1.PodSecurityPolicySelfSubjectReview{}
+ },
+ ),
}
}
diff --git a/security/clientset/versioned/typed/security/v1/podsecuritypolicysubjectreview.go b/security/clientset/versioned/typed/security/v1/podsecuritypolicysubjectreview.go
index 88bf62095..ebbcd8cb6 100644
--- a/security/clientset/versioned/typed/security/v1/podsecuritypolicysubjectreview.go
+++ b/security/clientset/versioned/typed/security/v1/podsecuritypolicysubjectreview.go
@@ -3,9 +3,9 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/security/v1"
+ securityv1 "github.com/openshift/api/security/v1"
scheme "github.com/openshift/client-go/security/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
gentype "k8s.io/client-go/gentype"
@@ -19,23 +19,24 @@ type PodSecurityPolicySubjectReviewsGetter interface {
// PodSecurityPolicySubjectReviewInterface has methods to work with PodSecurityPolicySubjectReview resources.
type PodSecurityPolicySubjectReviewInterface interface {
- Create(ctx context.Context, podSecurityPolicySubjectReview *v1.PodSecurityPolicySubjectReview, opts metav1.CreateOptions) (*v1.PodSecurityPolicySubjectReview, error)
+ Create(ctx context.Context, podSecurityPolicySubjectReview *securityv1.PodSecurityPolicySubjectReview, opts metav1.CreateOptions) (*securityv1.PodSecurityPolicySubjectReview, error)
PodSecurityPolicySubjectReviewExpansion
}
// podSecurityPolicySubjectReviews implements PodSecurityPolicySubjectReviewInterface
type podSecurityPolicySubjectReviews struct {
- *gentype.Client[*v1.PodSecurityPolicySubjectReview]
+ *gentype.Client[*securityv1.PodSecurityPolicySubjectReview]
}
// newPodSecurityPolicySubjectReviews returns a PodSecurityPolicySubjectReviews
func newPodSecurityPolicySubjectReviews(c *SecurityV1Client, namespace string) *podSecurityPolicySubjectReviews {
return &podSecurityPolicySubjectReviews{
- gentype.NewClient[*v1.PodSecurityPolicySubjectReview](
+ gentype.NewClient[*securityv1.PodSecurityPolicySubjectReview](
"podsecuritypolicysubjectreviews",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
- func() *v1.PodSecurityPolicySubjectReview { return &v1.PodSecurityPolicySubjectReview{} }),
+ func() *securityv1.PodSecurityPolicySubjectReview { return &securityv1.PodSecurityPolicySubjectReview{} },
+ ),
}
}
diff --git a/security/clientset/versioned/typed/security/v1/rangeallocation.go b/security/clientset/versioned/typed/security/v1/rangeallocation.go
index 8980a4d60..b4469ddff 100644
--- a/security/clientset/versioned/typed/security/v1/rangeallocation.go
+++ b/security/clientset/versioned/typed/security/v1/rangeallocation.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/security/v1"
- securityv1 "github.com/openshift/client-go/security/applyconfigurations/security/v1"
+ securityv1 "github.com/openshift/api/security/v1"
+ applyconfigurationssecurityv1 "github.com/openshift/client-go/security/applyconfigurations/security/v1"
scheme "github.com/openshift/client-go/security/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,32 +22,33 @@ type RangeAllocationsGetter interface {
// RangeAllocationInterface has methods to work with RangeAllocation resources.
type RangeAllocationInterface interface {
- Create(ctx context.Context, rangeAllocation *v1.RangeAllocation, opts metav1.CreateOptions) (*v1.RangeAllocation, error)
- Update(ctx context.Context, rangeAllocation *v1.RangeAllocation, opts metav1.UpdateOptions) (*v1.RangeAllocation, error)
+ Create(ctx context.Context, rangeAllocation *securityv1.RangeAllocation, opts metav1.CreateOptions) (*securityv1.RangeAllocation, error)
+ Update(ctx context.Context, rangeAllocation *securityv1.RangeAllocation, opts metav1.UpdateOptions) (*securityv1.RangeAllocation, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.RangeAllocation, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.RangeAllocationList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*securityv1.RangeAllocation, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*securityv1.RangeAllocationList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.RangeAllocation, err error)
- Apply(ctx context.Context, rangeAllocation *securityv1.RangeAllocationApplyConfiguration, opts metav1.ApplyOptions) (result *v1.RangeAllocation, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *securityv1.RangeAllocation, err error)
+ Apply(ctx context.Context, rangeAllocation *applyconfigurationssecurityv1.RangeAllocationApplyConfiguration, opts metav1.ApplyOptions) (result *securityv1.RangeAllocation, err error)
RangeAllocationExpansion
}
// rangeAllocations implements RangeAllocationInterface
type rangeAllocations struct {
- *gentype.ClientWithListAndApply[*v1.RangeAllocation, *v1.RangeAllocationList, *securityv1.RangeAllocationApplyConfiguration]
+ *gentype.ClientWithListAndApply[*securityv1.RangeAllocation, *securityv1.RangeAllocationList, *applyconfigurationssecurityv1.RangeAllocationApplyConfiguration]
}
// newRangeAllocations returns a RangeAllocations
func newRangeAllocations(c *SecurityV1Client) *rangeAllocations {
return &rangeAllocations{
- gentype.NewClientWithListAndApply[*v1.RangeAllocation, *v1.RangeAllocationList, *securityv1.RangeAllocationApplyConfiguration](
+ gentype.NewClientWithListAndApply[*securityv1.RangeAllocation, *securityv1.RangeAllocationList, *applyconfigurationssecurityv1.RangeAllocationApplyConfiguration](
"rangeallocations",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.RangeAllocation { return &v1.RangeAllocation{} },
- func() *v1.RangeAllocationList { return &v1.RangeAllocationList{} }),
+ func() *securityv1.RangeAllocation { return &securityv1.RangeAllocation{} },
+ func() *securityv1.RangeAllocationList { return &securityv1.RangeAllocationList{} },
+ ),
}
}
diff --git a/security/clientset/versioned/typed/security/v1/security_client.go b/security/clientset/versioned/typed/security/v1/security_client.go
index 8b87437ed..0fe95d028 100644
--- a/security/clientset/versioned/typed/security/v1/security_client.go
+++ b/security/clientset/versioned/typed/security/v1/security_client.go
@@ -3,10 +3,10 @@
package v1
import (
- "net/http"
+ http "net/http"
- v1 "github.com/openshift/api/security/v1"
- "github.com/openshift/client-go/security/clientset/versioned/scheme"
+ securityv1 "github.com/openshift/api/security/v1"
+ scheme "github.com/openshift/client-go/security/clientset/versioned/scheme"
rest "k8s.io/client-go/rest"
)
@@ -89,10 +89,10 @@ func New(c rest.Interface) *SecurityV1Client {
}
func setConfigDefaults(config *rest.Config) error {
- gv := v1.SchemeGroupVersion
+ gv := securityv1.SchemeGroupVersion
config.GroupVersion = &gv
config.APIPath = "/apis"
- config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
+ config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion()
if config.UserAgent == "" {
config.UserAgent = rest.DefaultKubernetesUserAgent()
diff --git a/security/clientset/versioned/typed/security/v1/securitycontextconstraints.go b/security/clientset/versioned/typed/security/v1/securitycontextconstraints.go
index f4b52587f..82eda438d 100644
--- a/security/clientset/versioned/typed/security/v1/securitycontextconstraints.go
+++ b/security/clientset/versioned/typed/security/v1/securitycontextconstraints.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/security/v1"
- securityv1 "github.com/openshift/client-go/security/applyconfigurations/security/v1"
+ securityv1 "github.com/openshift/api/security/v1"
+ applyconfigurationssecurityv1 "github.com/openshift/client-go/security/applyconfigurations/security/v1"
scheme "github.com/openshift/client-go/security/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,32 +22,33 @@ type SecurityContextConstraintsGetter interface {
// SecurityContextConstraintsInterface has methods to work with SecurityContextConstraints resources.
type SecurityContextConstraintsInterface interface {
- Create(ctx context.Context, securityContextConstraints *v1.SecurityContextConstraints, opts metav1.CreateOptions) (*v1.SecurityContextConstraints, error)
- Update(ctx context.Context, securityContextConstraints *v1.SecurityContextConstraints, opts metav1.UpdateOptions) (*v1.SecurityContextConstraints, error)
+ Create(ctx context.Context, securityContextConstraints *securityv1.SecurityContextConstraints, opts metav1.CreateOptions) (*securityv1.SecurityContextConstraints, error)
+ Update(ctx context.Context, securityContextConstraints *securityv1.SecurityContextConstraints, opts metav1.UpdateOptions) (*securityv1.SecurityContextConstraints, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.SecurityContextConstraints, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.SecurityContextConstraintsList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*securityv1.SecurityContextConstraints, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*securityv1.SecurityContextConstraintsList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.SecurityContextConstraints, err error)
- Apply(ctx context.Context, securityContextConstraints *securityv1.SecurityContextConstraintsApplyConfiguration, opts metav1.ApplyOptions) (result *v1.SecurityContextConstraints, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *securityv1.SecurityContextConstraints, err error)
+ Apply(ctx context.Context, securityContextConstraints *applyconfigurationssecurityv1.SecurityContextConstraintsApplyConfiguration, opts metav1.ApplyOptions) (result *securityv1.SecurityContextConstraints, err error)
SecurityContextConstraintsExpansion
}
// securityContextConstraints implements SecurityContextConstraintsInterface
type securityContextConstraints struct {
- *gentype.ClientWithListAndApply[*v1.SecurityContextConstraints, *v1.SecurityContextConstraintsList, *securityv1.SecurityContextConstraintsApplyConfiguration]
+ *gentype.ClientWithListAndApply[*securityv1.SecurityContextConstraints, *securityv1.SecurityContextConstraintsList, *applyconfigurationssecurityv1.SecurityContextConstraintsApplyConfiguration]
}
// newSecurityContextConstraints returns a SecurityContextConstraints
func newSecurityContextConstraints(c *SecurityV1Client) *securityContextConstraints {
return &securityContextConstraints{
- gentype.NewClientWithListAndApply[*v1.SecurityContextConstraints, *v1.SecurityContextConstraintsList, *securityv1.SecurityContextConstraintsApplyConfiguration](
+ gentype.NewClientWithListAndApply[*securityv1.SecurityContextConstraints, *securityv1.SecurityContextConstraintsList, *applyconfigurationssecurityv1.SecurityContextConstraintsApplyConfiguration](
"securitycontextconstraints",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.SecurityContextConstraints { return &v1.SecurityContextConstraints{} },
- func() *v1.SecurityContextConstraintsList { return &v1.SecurityContextConstraintsList{} }),
+ func() *securityv1.SecurityContextConstraints { return &securityv1.SecurityContextConstraints{} },
+ func() *securityv1.SecurityContextConstraintsList { return &securityv1.SecurityContextConstraintsList{} },
+ ),
}
}
diff --git a/security/informers/externalversions/generic.go b/security/informers/externalversions/generic.go
index 6a0d9f170..729e6666f 100644
--- a/security/informers/externalversions/generic.go
+++ b/security/informers/externalversions/generic.go
@@ -3,7 +3,7 @@
package externalversions
import (
- "fmt"
+ fmt "fmt"
v1 "github.com/openshift/api/security/v1"
schema "k8s.io/apimachinery/pkg/runtime/schema"
diff --git a/security/informers/externalversions/security/v1/rangeallocation.go b/security/informers/externalversions/security/v1/rangeallocation.go
index 98f26821a..34adaf89d 100644
--- a/security/informers/externalversions/security/v1/rangeallocation.go
+++ b/security/informers/externalversions/security/v1/rangeallocation.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- securityv1 "github.com/openshift/api/security/v1"
+ apisecurityv1 "github.com/openshift/api/security/v1"
versioned "github.com/openshift/client-go/security/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/security/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/security/listers/security/v1"
+ securityv1 "github.com/openshift/client-go/security/listers/security/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// RangeAllocations.
type RangeAllocationInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.RangeAllocationLister
+ Lister() securityv1.RangeAllocationLister
}
type rangeAllocationInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredRangeAllocationInformer(client versioned.Interface, resyncPeriod
return client.SecurityV1().RangeAllocations().Watch(context.TODO(), options)
},
},
- &securityv1.RangeAllocation{},
+ &apisecurityv1.RangeAllocation{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *rangeAllocationInformer) defaultInformer(client versioned.Interface, re
}
func (f *rangeAllocationInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&securityv1.RangeAllocation{}, f.defaultInformer)
+ return f.factory.InformerFor(&apisecurityv1.RangeAllocation{}, f.defaultInformer)
}
-func (f *rangeAllocationInformer) Lister() v1.RangeAllocationLister {
- return v1.NewRangeAllocationLister(f.Informer().GetIndexer())
+func (f *rangeAllocationInformer) Lister() securityv1.RangeAllocationLister {
+ return securityv1.NewRangeAllocationLister(f.Informer().GetIndexer())
}
diff --git a/security/informers/externalversions/security/v1/securitycontextconstraints.go b/security/informers/externalversions/security/v1/securitycontextconstraints.go
index 107888c45..5e7e6c982 100644
--- a/security/informers/externalversions/security/v1/securitycontextconstraints.go
+++ b/security/informers/externalversions/security/v1/securitycontextconstraints.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- securityv1 "github.com/openshift/api/security/v1"
+ apisecurityv1 "github.com/openshift/api/security/v1"
versioned "github.com/openshift/client-go/security/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/security/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/security/listers/security/v1"
+ securityv1 "github.com/openshift/client-go/security/listers/security/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// SecurityContextConstraints.
type SecurityContextConstraintsInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.SecurityContextConstraintsLister
+ Lister() securityv1.SecurityContextConstraintsLister
}
type securityContextConstraintsInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredSecurityContextConstraintsInformer(client versioned.Interface, r
return client.SecurityV1().SecurityContextConstraints().Watch(context.TODO(), options)
},
},
- &securityv1.SecurityContextConstraints{},
+ &apisecurityv1.SecurityContextConstraints{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *securityContextConstraintsInformer) defaultInformer(client versioned.In
}
func (f *securityContextConstraintsInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&securityv1.SecurityContextConstraints{}, f.defaultInformer)
+ return f.factory.InformerFor(&apisecurityv1.SecurityContextConstraints{}, f.defaultInformer)
}
-func (f *securityContextConstraintsInformer) Lister() v1.SecurityContextConstraintsLister {
- return v1.NewSecurityContextConstraintsLister(f.Informer().GetIndexer())
+func (f *securityContextConstraintsInformer) Lister() securityv1.SecurityContextConstraintsLister {
+ return securityv1.NewSecurityContextConstraintsLister(f.Informer().GetIndexer())
}
diff --git a/security/listers/security/v1/rangeallocation.go b/security/listers/security/v1/rangeallocation.go
index 394eea238..bb185f4a7 100644
--- a/security/listers/security/v1/rangeallocation.go
+++ b/security/listers/security/v1/rangeallocation.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/security/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ securityv1 "github.com/openshift/api/security/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// RangeAllocationLister helps list RangeAllocations.
@@ -14,19 +14,19 @@ import (
type RangeAllocationLister interface {
// List lists all RangeAllocations in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.RangeAllocation, err error)
+ List(selector labels.Selector) (ret []*securityv1.RangeAllocation, err error)
// Get retrieves the RangeAllocation from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.RangeAllocation, error)
+ Get(name string) (*securityv1.RangeAllocation, error)
RangeAllocationListerExpansion
}
// rangeAllocationLister implements the RangeAllocationLister interface.
type rangeAllocationLister struct {
- listers.ResourceIndexer[*v1.RangeAllocation]
+ listers.ResourceIndexer[*securityv1.RangeAllocation]
}
// NewRangeAllocationLister returns a new RangeAllocationLister.
func NewRangeAllocationLister(indexer cache.Indexer) RangeAllocationLister {
- return &rangeAllocationLister{listers.New[*v1.RangeAllocation](indexer, v1.Resource("rangeallocation"))}
+ return &rangeAllocationLister{listers.New[*securityv1.RangeAllocation](indexer, securityv1.Resource("rangeallocation"))}
}
diff --git a/security/listers/security/v1/securitycontextconstraints.go b/security/listers/security/v1/securitycontextconstraints.go
index 9c52d7ecf..f27825633 100644
--- a/security/listers/security/v1/securitycontextconstraints.go
+++ b/security/listers/security/v1/securitycontextconstraints.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/security/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ securityv1 "github.com/openshift/api/security/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// SecurityContextConstraintsLister helps list SecurityContextConstraints.
@@ -14,19 +14,19 @@ import (
type SecurityContextConstraintsLister interface {
// List lists all SecurityContextConstraints in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.SecurityContextConstraints, err error)
+ List(selector labels.Selector) (ret []*securityv1.SecurityContextConstraints, err error)
// Get retrieves the SecurityContextConstraints from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.SecurityContextConstraints, error)
+ Get(name string) (*securityv1.SecurityContextConstraints, error)
SecurityContextConstraintsListerExpansion
}
// securityContextConstraintsLister implements the SecurityContextConstraintsLister interface.
type securityContextConstraintsLister struct {
- listers.ResourceIndexer[*v1.SecurityContextConstraints]
+ listers.ResourceIndexer[*securityv1.SecurityContextConstraints]
}
// NewSecurityContextConstraintsLister returns a new SecurityContextConstraintsLister.
func NewSecurityContextConstraintsLister(indexer cache.Indexer) SecurityContextConstraintsLister {
- return &securityContextConstraintsLister{listers.New[*v1.SecurityContextConstraints](indexer, v1.Resource("securitycontextconstraints"))}
+ return &securityContextConstraintsLister{listers.New[*securityv1.SecurityContextConstraints](indexer, securityv1.Resource("securitycontextconstraints"))}
}
diff --git a/securityinternal/applyconfigurations/internal/internal.go b/securityinternal/applyconfigurations/internal/internal.go
index e364694a8..1cbe65fac 100644
--- a/securityinternal/applyconfigurations/internal/internal.go
+++ b/securityinternal/applyconfigurations/internal/internal.go
@@ -3,8 +3,8 @@
package internal
import (
- "fmt"
- "sync"
+ fmt "fmt"
+ sync "sync"
typed "sigs.k8s.io/structured-merge-diff/v4/typed"
)
diff --git a/securityinternal/applyconfigurations/securityinternal/v1/rangeallocation.go b/securityinternal/applyconfigurations/securityinternal/v1/rangeallocation.go
index df59ee794..9a0daa7ba 100644
--- a/securityinternal/applyconfigurations/securityinternal/v1/rangeallocation.go
+++ b/securityinternal/applyconfigurations/securityinternal/v1/rangeallocation.go
@@ -5,19 +5,19 @@ package v1
import (
securityinternalv1 "github.com/openshift/api/securityinternal/v1"
internal "github.com/openshift/client-go/securityinternal/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// RangeAllocationApplyConfiguration represents a declarative configuration of the RangeAllocation type for use
// with apply.
type RangeAllocationApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Range *string `json:"range,omitempty"`
- Data []byte `json:"data,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Range *string `json:"range,omitempty"`
+ Data []byte `json:"data,omitempty"`
}
// RangeAllocation constructs a declarative configuration of the RangeAllocation type for use with
@@ -69,7 +69,7 @@ func extractRangeAllocation(rangeAllocation *securityinternalv1.RangeAllocation,
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *RangeAllocationApplyConfiguration) WithKind(value string) *RangeAllocationApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *RangeAllocationApplyConfiguration) WithKind(value string) *RangeAllocat
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *RangeAllocationApplyConfiguration) WithAPIVersion(value string) *RangeAllocationApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *RangeAllocationApplyConfiguration) WithAPIVersion(value string) *RangeA
// If called multiple times, the Name field is set to the value of the last call.
func (b *RangeAllocationApplyConfiguration) WithName(value string) *RangeAllocationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *RangeAllocationApplyConfiguration) WithName(value string) *RangeAllocat
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *RangeAllocationApplyConfiguration) WithGenerateName(value string) *RangeAllocationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *RangeAllocationApplyConfiguration) WithGenerateName(value string) *Rang
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *RangeAllocationApplyConfiguration) WithNamespace(value string) *RangeAllocationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *RangeAllocationApplyConfiguration) WithNamespace(value string) *RangeAl
// If called multiple times, the UID field is set to the value of the last call.
func (b *RangeAllocationApplyConfiguration) WithUID(value types.UID) *RangeAllocationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *RangeAllocationApplyConfiguration) WithUID(value types.UID) *RangeAlloc
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *RangeAllocationApplyConfiguration) WithResourceVersion(value string) *RangeAllocationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,25 +131,25 @@ func (b *RangeAllocationApplyConfiguration) WithResourceVersion(value string) *R
// If called multiple times, the Generation field is set to the value of the last call.
func (b *RangeAllocationApplyConfiguration) WithGeneration(value int64) *RangeAllocationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *RangeAllocationApplyConfiguration) WithCreationTimestamp(value metav1.Time) *RangeAllocationApplyConfiguration {
+func (b *RangeAllocationApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *RangeAllocationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *RangeAllocationApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *RangeAllocationApplyConfiguration {
+func (b *RangeAllocationApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *RangeAllocationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *RangeAllocationApplyConfiguration) WithDeletionTimestamp(value metav1.T
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *RangeAllocationApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *RangeAllocationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *RangeAllocationApplyConfiguration) WithDeletionGracePeriodSeconds(value
// overwriting an existing map entries in Labels field with the same key.
func (b *RangeAllocationApplyConfiguration) WithLabels(entries map[string]string) *RangeAllocationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *RangeAllocationApplyConfiguration) WithLabels(entries map[string]string
// overwriting an existing map entries in Annotations field with the same key.
func (b *RangeAllocationApplyConfiguration) WithAnnotations(entries map[string]string) *RangeAllocationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -195,13 +195,13 @@ func (b *RangeAllocationApplyConfiguration) WithAnnotations(entries map[string]s
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *RangeAllocationApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *RangeAllocationApplyConfiguration {
+func (b *RangeAllocationApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *RangeAllocationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,14 +212,14 @@ func (b *RangeAllocationApplyConfiguration) WithOwnerReferences(values ...*v1.Ow
func (b *RangeAllocationApplyConfiguration) WithFinalizers(values ...string) *RangeAllocationApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *RangeAllocationApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -244,5 +244,5 @@ func (b *RangeAllocationApplyConfiguration) WithData(values ...byte) *RangeAlloc
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *RangeAllocationApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/securityinternal/clientset/versioned/clientset.go b/securityinternal/clientset/versioned/clientset.go
index c110c8b9b..56a052c27 100644
--- a/securityinternal/clientset/versioned/clientset.go
+++ b/securityinternal/clientset/versioned/clientset.go
@@ -3,8 +3,8 @@
package versioned
import (
- "fmt"
- "net/http"
+ fmt "fmt"
+ http "net/http"
securityv1 "github.com/openshift/client-go/securityinternal/clientset/versioned/typed/securityinternal/v1"
discovery "k8s.io/client-go/discovery"
diff --git a/securityinternal/clientset/versioned/typed/securityinternal/v1/fake/fake_rangeallocation.go b/securityinternal/clientset/versioned/typed/securityinternal/v1/fake/fake_rangeallocation.go
index 0c87218da..4d9a59411 100644
--- a/securityinternal/clientset/versioned/typed/securityinternal/v1/fake/fake_rangeallocation.go
+++ b/securityinternal/clientset/versioned/typed/securityinternal/v1/fake/fake_rangeallocation.go
@@ -3,133 +3,33 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/securityinternal/v1"
securityinternalv1 "github.com/openshift/client-go/securityinternal/applyconfigurations/securityinternal/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedsecurityinternalv1 "github.com/openshift/client-go/securityinternal/clientset/versioned/typed/securityinternal/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeRangeAllocations implements RangeAllocationInterface
-type FakeRangeAllocations struct {
+// fakeRangeAllocations implements RangeAllocationInterface
+type fakeRangeAllocations struct {
+ *gentype.FakeClientWithListAndApply[*v1.RangeAllocation, *v1.RangeAllocationList, *securityinternalv1.RangeAllocationApplyConfiguration]
Fake *FakeSecurityV1
}
-var rangeallocationsResource = v1.SchemeGroupVersion.WithResource("rangeallocations")
-
-var rangeallocationsKind = v1.SchemeGroupVersion.WithKind("RangeAllocation")
-
-// Get takes name of the rangeAllocation, and returns the corresponding rangeAllocation object, and an error if there is any.
-func (c *FakeRangeAllocations) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.RangeAllocation, err error) {
- emptyResult := &v1.RangeAllocation{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(rangeallocationsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.RangeAllocation), err
-}
-
-// List takes label and field selectors, and returns the list of RangeAllocations that match those selectors.
-func (c *FakeRangeAllocations) List(ctx context.Context, opts metav1.ListOptions) (result *v1.RangeAllocationList, err error) {
- emptyResult := &v1.RangeAllocationList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(rangeallocationsResource, rangeallocationsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.RangeAllocationList{ListMeta: obj.(*v1.RangeAllocationList).ListMeta}
- for _, item := range obj.(*v1.RangeAllocationList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested rangeAllocations.
-func (c *FakeRangeAllocations) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(rangeallocationsResource, opts))
-}
-
-// Create takes the representation of a rangeAllocation and creates it. Returns the server's representation of the rangeAllocation, and an error, if there is any.
-func (c *FakeRangeAllocations) Create(ctx context.Context, rangeAllocation *v1.RangeAllocation, opts metav1.CreateOptions) (result *v1.RangeAllocation, err error) {
- emptyResult := &v1.RangeAllocation{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(rangeallocationsResource, rangeAllocation, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.RangeAllocation), err
-}
-
-// Update takes the representation of a rangeAllocation and updates it. Returns the server's representation of the rangeAllocation, and an error, if there is any.
-func (c *FakeRangeAllocations) Update(ctx context.Context, rangeAllocation *v1.RangeAllocation, opts metav1.UpdateOptions) (result *v1.RangeAllocation, err error) {
- emptyResult := &v1.RangeAllocation{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(rangeallocationsResource, rangeAllocation, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.RangeAllocation), err
-}
-
-// Delete takes name of the rangeAllocation and deletes it. Returns an error if one occurs.
-func (c *FakeRangeAllocations) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(rangeallocationsResource, name, opts), &v1.RangeAllocation{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeRangeAllocations) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(rangeallocationsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.RangeAllocationList{})
- return err
-}
-
-// Patch applies the patch and returns the patched rangeAllocation.
-func (c *FakeRangeAllocations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.RangeAllocation, err error) {
- emptyResult := &v1.RangeAllocation{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(rangeallocationsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.RangeAllocation), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied rangeAllocation.
-func (c *FakeRangeAllocations) Apply(ctx context.Context, rangeAllocation *securityinternalv1.RangeAllocationApplyConfiguration, opts metav1.ApplyOptions) (result *v1.RangeAllocation, err error) {
- if rangeAllocation == nil {
- return nil, fmt.Errorf("rangeAllocation provided to Apply must not be nil")
- }
- data, err := json.Marshal(rangeAllocation)
- if err != nil {
- return nil, err
- }
- name := rangeAllocation.Name
- if name == nil {
- return nil, fmt.Errorf("rangeAllocation.Name must be provided to Apply")
- }
- emptyResult := &v1.RangeAllocation{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(rangeallocationsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeRangeAllocations(fake *FakeSecurityV1) typedsecurityinternalv1.RangeAllocationInterface {
+ return &fakeRangeAllocations{
+ gentype.NewFakeClientWithListAndApply[*v1.RangeAllocation, *v1.RangeAllocationList, *securityinternalv1.RangeAllocationApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("rangeallocations"),
+ v1.SchemeGroupVersion.WithKind("RangeAllocation"),
+ func() *v1.RangeAllocation { return &v1.RangeAllocation{} },
+ func() *v1.RangeAllocationList { return &v1.RangeAllocationList{} },
+ func(dst, src *v1.RangeAllocationList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.RangeAllocationList) []*v1.RangeAllocation { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.RangeAllocationList, items []*v1.RangeAllocation) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.RangeAllocation), err
}
diff --git a/securityinternal/clientset/versioned/typed/securityinternal/v1/fake/fake_securityinternal_client.go b/securityinternal/clientset/versioned/typed/securityinternal/v1/fake/fake_securityinternal_client.go
index d158142e3..559630ded 100644
--- a/securityinternal/clientset/versioned/typed/securityinternal/v1/fake/fake_securityinternal_client.go
+++ b/securityinternal/clientset/versioned/typed/securityinternal/v1/fake/fake_securityinternal_client.go
@@ -13,7 +13,7 @@ type FakeSecurityV1 struct {
}
func (c *FakeSecurityV1) RangeAllocations() v1.RangeAllocationInterface {
- return &FakeRangeAllocations{c}
+ return newFakeRangeAllocations(c)
}
// RESTClient returns a RESTClient that is used to communicate
diff --git a/securityinternal/clientset/versioned/typed/securityinternal/v1/rangeallocation.go b/securityinternal/clientset/versioned/typed/securityinternal/v1/rangeallocation.go
index ce8b9a0c5..19bda7726 100644
--- a/securityinternal/clientset/versioned/typed/securityinternal/v1/rangeallocation.go
+++ b/securityinternal/clientset/versioned/typed/securityinternal/v1/rangeallocation.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/securityinternal/v1"
- securityinternalv1 "github.com/openshift/client-go/securityinternal/applyconfigurations/securityinternal/v1"
+ securityinternalv1 "github.com/openshift/api/securityinternal/v1"
+ applyconfigurationssecurityinternalv1 "github.com/openshift/client-go/securityinternal/applyconfigurations/securityinternal/v1"
scheme "github.com/openshift/client-go/securityinternal/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,32 +22,33 @@ type RangeAllocationsGetter interface {
// RangeAllocationInterface has methods to work with RangeAllocation resources.
type RangeAllocationInterface interface {
- Create(ctx context.Context, rangeAllocation *v1.RangeAllocation, opts metav1.CreateOptions) (*v1.RangeAllocation, error)
- Update(ctx context.Context, rangeAllocation *v1.RangeAllocation, opts metav1.UpdateOptions) (*v1.RangeAllocation, error)
+ Create(ctx context.Context, rangeAllocation *securityinternalv1.RangeAllocation, opts metav1.CreateOptions) (*securityinternalv1.RangeAllocation, error)
+ Update(ctx context.Context, rangeAllocation *securityinternalv1.RangeAllocation, opts metav1.UpdateOptions) (*securityinternalv1.RangeAllocation, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.RangeAllocation, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.RangeAllocationList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*securityinternalv1.RangeAllocation, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*securityinternalv1.RangeAllocationList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.RangeAllocation, err error)
- Apply(ctx context.Context, rangeAllocation *securityinternalv1.RangeAllocationApplyConfiguration, opts metav1.ApplyOptions) (result *v1.RangeAllocation, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *securityinternalv1.RangeAllocation, err error)
+ Apply(ctx context.Context, rangeAllocation *applyconfigurationssecurityinternalv1.RangeAllocationApplyConfiguration, opts metav1.ApplyOptions) (result *securityinternalv1.RangeAllocation, err error)
RangeAllocationExpansion
}
// rangeAllocations implements RangeAllocationInterface
type rangeAllocations struct {
- *gentype.ClientWithListAndApply[*v1.RangeAllocation, *v1.RangeAllocationList, *securityinternalv1.RangeAllocationApplyConfiguration]
+ *gentype.ClientWithListAndApply[*securityinternalv1.RangeAllocation, *securityinternalv1.RangeAllocationList, *applyconfigurationssecurityinternalv1.RangeAllocationApplyConfiguration]
}
// newRangeAllocations returns a RangeAllocations
func newRangeAllocations(c *SecurityV1Client) *rangeAllocations {
return &rangeAllocations{
- gentype.NewClientWithListAndApply[*v1.RangeAllocation, *v1.RangeAllocationList, *securityinternalv1.RangeAllocationApplyConfiguration](
+ gentype.NewClientWithListAndApply[*securityinternalv1.RangeAllocation, *securityinternalv1.RangeAllocationList, *applyconfigurationssecurityinternalv1.RangeAllocationApplyConfiguration](
"rangeallocations",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.RangeAllocation { return &v1.RangeAllocation{} },
- func() *v1.RangeAllocationList { return &v1.RangeAllocationList{} }),
+ func() *securityinternalv1.RangeAllocation { return &securityinternalv1.RangeAllocation{} },
+ func() *securityinternalv1.RangeAllocationList { return &securityinternalv1.RangeAllocationList{} },
+ ),
}
}
diff --git a/securityinternal/clientset/versioned/typed/securityinternal/v1/securityinternal_client.go b/securityinternal/clientset/versioned/typed/securityinternal/v1/securityinternal_client.go
index f5aafde08..6a37e6120 100644
--- a/securityinternal/clientset/versioned/typed/securityinternal/v1/securityinternal_client.go
+++ b/securityinternal/clientset/versioned/typed/securityinternal/v1/securityinternal_client.go
@@ -3,10 +3,10 @@
package v1
import (
- "net/http"
+ http "net/http"
- v1 "github.com/openshift/api/securityinternal/v1"
- "github.com/openshift/client-go/securityinternal/clientset/versioned/scheme"
+ securityinternalv1 "github.com/openshift/api/securityinternal/v1"
+ scheme "github.com/openshift/client-go/securityinternal/clientset/versioned/scheme"
rest "k8s.io/client-go/rest"
)
@@ -69,10 +69,10 @@ func New(c rest.Interface) *SecurityV1Client {
}
func setConfigDefaults(config *rest.Config) error {
- gv := v1.SchemeGroupVersion
+ gv := securityinternalv1.SchemeGroupVersion
config.GroupVersion = &gv
config.APIPath = "/apis"
- config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
+ config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion()
if config.UserAgent == "" {
config.UserAgent = rest.DefaultKubernetesUserAgent()
diff --git a/securityinternal/informers/externalversions/generic.go b/securityinternal/informers/externalversions/generic.go
index 795a06a32..86a5a66fb 100644
--- a/securityinternal/informers/externalversions/generic.go
+++ b/securityinternal/informers/externalversions/generic.go
@@ -3,7 +3,7 @@
package externalversions
import (
- "fmt"
+ fmt "fmt"
v1 "github.com/openshift/api/securityinternal/v1"
schema "k8s.io/apimachinery/pkg/runtime/schema"
diff --git a/securityinternal/informers/externalversions/securityinternal/v1/rangeallocation.go b/securityinternal/informers/externalversions/securityinternal/v1/rangeallocation.go
index b0218553b..949c637bd 100644
--- a/securityinternal/informers/externalversions/securityinternal/v1/rangeallocation.go
+++ b/securityinternal/informers/externalversions/securityinternal/v1/rangeallocation.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- securityinternalv1 "github.com/openshift/api/securityinternal/v1"
+ apisecurityinternalv1 "github.com/openshift/api/securityinternal/v1"
versioned "github.com/openshift/client-go/securityinternal/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/securityinternal/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/securityinternal/listers/securityinternal/v1"
+ securityinternalv1 "github.com/openshift/client-go/securityinternal/listers/securityinternal/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// RangeAllocations.
type RangeAllocationInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.RangeAllocationLister
+ Lister() securityinternalv1.RangeAllocationLister
}
type rangeAllocationInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredRangeAllocationInformer(client versioned.Interface, resyncPeriod
return client.SecurityV1().RangeAllocations().Watch(context.TODO(), options)
},
},
- &securityinternalv1.RangeAllocation{},
+ &apisecurityinternalv1.RangeAllocation{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *rangeAllocationInformer) defaultInformer(client versioned.Interface, re
}
func (f *rangeAllocationInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&securityinternalv1.RangeAllocation{}, f.defaultInformer)
+ return f.factory.InformerFor(&apisecurityinternalv1.RangeAllocation{}, f.defaultInformer)
}
-func (f *rangeAllocationInformer) Lister() v1.RangeAllocationLister {
- return v1.NewRangeAllocationLister(f.Informer().GetIndexer())
+func (f *rangeAllocationInformer) Lister() securityinternalv1.RangeAllocationLister {
+ return securityinternalv1.NewRangeAllocationLister(f.Informer().GetIndexer())
}
diff --git a/securityinternal/listers/securityinternal/v1/rangeallocation.go b/securityinternal/listers/securityinternal/v1/rangeallocation.go
index 3a410c583..533b05412 100644
--- a/securityinternal/listers/securityinternal/v1/rangeallocation.go
+++ b/securityinternal/listers/securityinternal/v1/rangeallocation.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/securityinternal/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ securityinternalv1 "github.com/openshift/api/securityinternal/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// RangeAllocationLister helps list RangeAllocations.
@@ -14,19 +14,19 @@ import (
type RangeAllocationLister interface {
// List lists all RangeAllocations in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.RangeAllocation, err error)
+ List(selector labels.Selector) (ret []*securityinternalv1.RangeAllocation, err error)
// Get retrieves the RangeAllocation from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.RangeAllocation, error)
+ Get(name string) (*securityinternalv1.RangeAllocation, error)
RangeAllocationListerExpansion
}
// rangeAllocationLister implements the RangeAllocationLister interface.
type rangeAllocationLister struct {
- listers.ResourceIndexer[*v1.RangeAllocation]
+ listers.ResourceIndexer[*securityinternalv1.RangeAllocation]
}
// NewRangeAllocationLister returns a new RangeAllocationLister.
func NewRangeAllocationLister(indexer cache.Indexer) RangeAllocationLister {
- return &rangeAllocationLister{listers.New[*v1.RangeAllocation](indexer, v1.Resource("rangeallocation"))}
+ return &rangeAllocationLister{listers.New[*securityinternalv1.RangeAllocation](indexer, securityinternalv1.Resource("rangeallocation"))}
}
diff --git a/servicecertsigner/applyconfigurations/internal/internal.go b/servicecertsigner/applyconfigurations/internal/internal.go
index cf8ae386c..27de16dcd 100644
--- a/servicecertsigner/applyconfigurations/internal/internal.go
+++ b/servicecertsigner/applyconfigurations/internal/internal.go
@@ -3,8 +3,8 @@
package internal
import (
- "fmt"
- "sync"
+ fmt "fmt"
+ sync "sync"
typed "sigs.k8s.io/structured-merge-diff/v4/typed"
)
diff --git a/servicecertsigner/applyconfigurations/servicecertsigner/v1alpha1/servicecertsigneroperatorconfig.go b/servicecertsigner/applyconfigurations/servicecertsigner/v1alpha1/servicecertsigneroperatorconfig.go
index a540dd64d..f676842a3 100644
--- a/servicecertsigner/applyconfigurations/servicecertsigner/v1alpha1/servicecertsigneroperatorconfig.go
+++ b/servicecertsigner/applyconfigurations/servicecertsigner/v1alpha1/servicecertsigneroperatorconfig.go
@@ -69,7 +69,7 @@ func extractServiceCertSignerOperatorConfig(serviceCertSignerOperatorConfig *ser
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *ServiceCertSignerOperatorConfigApplyConfiguration) WithKind(value string) *ServiceCertSignerOperatorConfigApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *ServiceCertSignerOperatorConfigApplyConfiguration) WithKind(value strin
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *ServiceCertSignerOperatorConfigApplyConfiguration) WithAPIVersion(value string) *ServiceCertSignerOperatorConfigApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *ServiceCertSignerOperatorConfigApplyConfiguration) WithAPIVersion(value
// If called multiple times, the Name field is set to the value of the last call.
func (b *ServiceCertSignerOperatorConfigApplyConfiguration) WithName(value string) *ServiceCertSignerOperatorConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *ServiceCertSignerOperatorConfigApplyConfiguration) WithName(value strin
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *ServiceCertSignerOperatorConfigApplyConfiguration) WithGenerateName(value string) *ServiceCertSignerOperatorConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *ServiceCertSignerOperatorConfigApplyConfiguration) WithGenerateName(val
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *ServiceCertSignerOperatorConfigApplyConfiguration) WithNamespace(value string) *ServiceCertSignerOperatorConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *ServiceCertSignerOperatorConfigApplyConfiguration) WithNamespace(value
// If called multiple times, the UID field is set to the value of the last call.
func (b *ServiceCertSignerOperatorConfigApplyConfiguration) WithUID(value types.UID) *ServiceCertSignerOperatorConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *ServiceCertSignerOperatorConfigApplyConfiguration) WithUID(value types.
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *ServiceCertSignerOperatorConfigApplyConfiguration) WithResourceVersion(value string) *ServiceCertSignerOperatorConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,7 +131,7 @@ func (b *ServiceCertSignerOperatorConfigApplyConfiguration) WithResourceVersion(
// If called multiple times, the Generation field is set to the value of the last call.
func (b *ServiceCertSignerOperatorConfigApplyConfiguration) WithGeneration(value int64) *ServiceCertSignerOperatorConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
@@ -140,7 +140,7 @@ func (b *ServiceCertSignerOperatorConfigApplyConfiguration) WithGeneration(value
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
func (b *ServiceCertSignerOperatorConfigApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ServiceCertSignerOperatorConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
@@ -149,7 +149,7 @@ func (b *ServiceCertSignerOperatorConfigApplyConfiguration) WithCreationTimestam
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
func (b *ServiceCertSignerOperatorConfigApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ServiceCertSignerOperatorConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *ServiceCertSignerOperatorConfigApplyConfiguration) WithDeletionTimestam
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *ServiceCertSignerOperatorConfigApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ServiceCertSignerOperatorConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *ServiceCertSignerOperatorConfigApplyConfiguration) WithDeletionGracePer
// overwriting an existing map entries in Labels field with the same key.
func (b *ServiceCertSignerOperatorConfigApplyConfiguration) WithLabels(entries map[string]string) *ServiceCertSignerOperatorConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *ServiceCertSignerOperatorConfigApplyConfiguration) WithLabels(entries m
// overwriting an existing map entries in Annotations field with the same key.
func (b *ServiceCertSignerOperatorConfigApplyConfiguration) WithAnnotations(entries map[string]string) *ServiceCertSignerOperatorConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -201,7 +201,7 @@ func (b *ServiceCertSignerOperatorConfigApplyConfiguration) WithOwnerReferences(
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,7 +212,7 @@ func (b *ServiceCertSignerOperatorConfigApplyConfiguration) WithOwnerReferences(
func (b *ServiceCertSignerOperatorConfigApplyConfiguration) WithFinalizers(values ...string) *ServiceCertSignerOperatorConfigApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
@@ -242,5 +242,5 @@ func (b *ServiceCertSignerOperatorConfigApplyConfiguration) WithStatus(value *Se
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *ServiceCertSignerOperatorConfigApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/servicecertsigner/applyconfigurations/servicecertsigner/v1alpha1/servicecertsigneroperatorconfigspec.go b/servicecertsigner/applyconfigurations/servicecertsigner/v1alpha1/servicecertsigneroperatorconfigspec.go
index d9283a43f..37bce66d4 100644
--- a/servicecertsigner/applyconfigurations/servicecertsigner/v1alpha1/servicecertsigneroperatorconfigspec.go
+++ b/servicecertsigner/applyconfigurations/servicecertsigner/v1alpha1/servicecertsigneroperatorconfigspec.go
@@ -24,7 +24,7 @@ func ServiceCertSignerOperatorConfigSpec() *ServiceCertSignerOperatorConfigSpecA
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ManagementState field is set to the value of the last call.
func (b *ServiceCertSignerOperatorConfigSpecApplyConfiguration) WithManagementState(value operatorv1.ManagementState) *ServiceCertSignerOperatorConfigSpecApplyConfiguration {
- b.ManagementState = &value
+ b.OperatorSpecApplyConfiguration.ManagementState = &value
return b
}
@@ -32,7 +32,7 @@ func (b *ServiceCertSignerOperatorConfigSpecApplyConfiguration) WithManagementSt
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LogLevel field is set to the value of the last call.
func (b *ServiceCertSignerOperatorConfigSpecApplyConfiguration) WithLogLevel(value operatorv1.LogLevel) *ServiceCertSignerOperatorConfigSpecApplyConfiguration {
- b.LogLevel = &value
+ b.OperatorSpecApplyConfiguration.LogLevel = &value
return b
}
@@ -40,7 +40,7 @@ func (b *ServiceCertSignerOperatorConfigSpecApplyConfiguration) WithLogLevel(val
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the OperatorLogLevel field is set to the value of the last call.
func (b *ServiceCertSignerOperatorConfigSpecApplyConfiguration) WithOperatorLogLevel(value operatorv1.LogLevel) *ServiceCertSignerOperatorConfigSpecApplyConfiguration {
- b.OperatorLogLevel = &value
+ b.OperatorSpecApplyConfiguration.OperatorLogLevel = &value
return b
}
@@ -48,7 +48,7 @@ func (b *ServiceCertSignerOperatorConfigSpecApplyConfiguration) WithOperatorLogL
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the UnsupportedConfigOverrides field is set to the value of the last call.
func (b *ServiceCertSignerOperatorConfigSpecApplyConfiguration) WithUnsupportedConfigOverrides(value runtime.RawExtension) *ServiceCertSignerOperatorConfigSpecApplyConfiguration {
- b.UnsupportedConfigOverrides = &value
+ b.OperatorSpecApplyConfiguration.UnsupportedConfigOverrides = &value
return b
}
@@ -56,6 +56,6 @@ func (b *ServiceCertSignerOperatorConfigSpecApplyConfiguration) WithUnsupportedC
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedConfig field is set to the value of the last call.
func (b *ServiceCertSignerOperatorConfigSpecApplyConfiguration) WithObservedConfig(value runtime.RawExtension) *ServiceCertSignerOperatorConfigSpecApplyConfiguration {
- b.ObservedConfig = &value
+ b.OperatorSpecApplyConfiguration.ObservedConfig = &value
return b
}
diff --git a/servicecertsigner/applyconfigurations/servicecertsigner/v1alpha1/servicecertsigneroperatorconfigstatus.go b/servicecertsigner/applyconfigurations/servicecertsigner/v1alpha1/servicecertsigneroperatorconfigstatus.go
index 182c4adba..60037e2d9 100644
--- a/servicecertsigner/applyconfigurations/servicecertsigner/v1alpha1/servicecertsigneroperatorconfigstatus.go
+++ b/servicecertsigner/applyconfigurations/servicecertsigner/v1alpha1/servicecertsigneroperatorconfigstatus.go
@@ -22,7 +22,7 @@ func ServiceCertSignerOperatorConfigStatus() *ServiceCertSignerOperatorConfigSta
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ObservedGeneration field is set to the value of the last call.
func (b *ServiceCertSignerOperatorConfigStatusApplyConfiguration) WithObservedGeneration(value int64) *ServiceCertSignerOperatorConfigStatusApplyConfiguration {
- b.ObservedGeneration = &value
+ b.OperatorStatusApplyConfiguration.ObservedGeneration = &value
return b
}
@@ -34,7 +34,7 @@ func (b *ServiceCertSignerOperatorConfigStatusApplyConfiguration) WithConditions
if values[i] == nil {
panic("nil value passed to WithConditions")
}
- b.Conditions = append(b.Conditions, *values[i])
+ b.OperatorStatusApplyConfiguration.Conditions = append(b.OperatorStatusApplyConfiguration.Conditions, *values[i])
}
return b
}
@@ -43,7 +43,7 @@ func (b *ServiceCertSignerOperatorConfigStatusApplyConfiguration) WithConditions
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Version field is set to the value of the last call.
func (b *ServiceCertSignerOperatorConfigStatusApplyConfiguration) WithVersion(value string) *ServiceCertSignerOperatorConfigStatusApplyConfiguration {
- b.Version = &value
+ b.OperatorStatusApplyConfiguration.Version = &value
return b
}
@@ -51,7 +51,7 @@ func (b *ServiceCertSignerOperatorConfigStatusApplyConfiguration) WithVersion(va
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ReadyReplicas field is set to the value of the last call.
func (b *ServiceCertSignerOperatorConfigStatusApplyConfiguration) WithReadyReplicas(value int32) *ServiceCertSignerOperatorConfigStatusApplyConfiguration {
- b.ReadyReplicas = &value
+ b.OperatorStatusApplyConfiguration.ReadyReplicas = &value
return b
}
@@ -59,7 +59,7 @@ func (b *ServiceCertSignerOperatorConfigStatusApplyConfiguration) WithReadyRepli
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LatestAvailableRevision field is set to the value of the last call.
func (b *ServiceCertSignerOperatorConfigStatusApplyConfiguration) WithLatestAvailableRevision(value int32) *ServiceCertSignerOperatorConfigStatusApplyConfiguration {
- b.LatestAvailableRevision = &value
+ b.OperatorStatusApplyConfiguration.LatestAvailableRevision = &value
return b
}
@@ -71,7 +71,7 @@ func (b *ServiceCertSignerOperatorConfigStatusApplyConfiguration) WithGeneration
if values[i] == nil {
panic("nil value passed to WithGenerations")
}
- b.Generations = append(b.Generations, *values[i])
+ b.OperatorStatusApplyConfiguration.Generations = append(b.OperatorStatusApplyConfiguration.Generations, *values[i])
}
return b
}
diff --git a/servicecertsigner/clientset/versioned/clientset.go b/servicecertsigner/clientset/versioned/clientset.go
index 688bd4297..4a87cdc1c 100644
--- a/servicecertsigner/clientset/versioned/clientset.go
+++ b/servicecertsigner/clientset/versioned/clientset.go
@@ -3,8 +3,8 @@
package versioned
import (
- "fmt"
- "net/http"
+ fmt "fmt"
+ http "net/http"
servicecertsignerv1alpha1 "github.com/openshift/client-go/servicecertsigner/clientset/versioned/typed/servicecertsigner/v1alpha1"
discovery "k8s.io/client-go/discovery"
diff --git a/servicecertsigner/clientset/versioned/typed/servicecertsigner/v1alpha1/fake/fake_servicecertsigner_client.go b/servicecertsigner/clientset/versioned/typed/servicecertsigner/v1alpha1/fake/fake_servicecertsigner_client.go
index 7537340fa..7e37e2a93 100644
--- a/servicecertsigner/clientset/versioned/typed/servicecertsigner/v1alpha1/fake/fake_servicecertsigner_client.go
+++ b/servicecertsigner/clientset/versioned/typed/servicecertsigner/v1alpha1/fake/fake_servicecertsigner_client.go
@@ -13,7 +13,7 @@ type FakeServicecertsignerV1alpha1 struct {
}
func (c *FakeServicecertsignerV1alpha1) ServiceCertSignerOperatorConfigs() v1alpha1.ServiceCertSignerOperatorConfigInterface {
- return &FakeServiceCertSignerOperatorConfigs{c}
+ return newFakeServiceCertSignerOperatorConfigs(c)
}
// RESTClient returns a RESTClient that is used to communicate
diff --git a/servicecertsigner/clientset/versioned/typed/servicecertsigner/v1alpha1/fake/fake_servicecertsigneroperatorconfig.go b/servicecertsigner/clientset/versioned/typed/servicecertsigner/v1alpha1/fake/fake_servicecertsigneroperatorconfig.go
index 695f3fa01..223304a35 100644
--- a/servicecertsigner/clientset/versioned/typed/servicecertsigner/v1alpha1/fake/fake_servicecertsigneroperatorconfig.go
+++ b/servicecertsigner/clientset/versioned/typed/servicecertsigner/v1alpha1/fake/fake_servicecertsigneroperatorconfig.go
@@ -3,168 +3,37 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1alpha1 "github.com/openshift/api/servicecertsigner/v1alpha1"
servicecertsignerv1alpha1 "github.com/openshift/client-go/servicecertsigner/applyconfigurations/servicecertsigner/v1alpha1"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedservicecertsignerv1alpha1 "github.com/openshift/client-go/servicecertsigner/clientset/versioned/typed/servicecertsigner/v1alpha1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeServiceCertSignerOperatorConfigs implements ServiceCertSignerOperatorConfigInterface
-type FakeServiceCertSignerOperatorConfigs struct {
+// fakeServiceCertSignerOperatorConfigs implements ServiceCertSignerOperatorConfigInterface
+type fakeServiceCertSignerOperatorConfigs struct {
+ *gentype.FakeClientWithListAndApply[*v1alpha1.ServiceCertSignerOperatorConfig, *v1alpha1.ServiceCertSignerOperatorConfigList, *servicecertsignerv1alpha1.ServiceCertSignerOperatorConfigApplyConfiguration]
Fake *FakeServicecertsignerV1alpha1
}
-var servicecertsigneroperatorconfigsResource = v1alpha1.SchemeGroupVersion.WithResource("servicecertsigneroperatorconfigs")
-
-var servicecertsigneroperatorconfigsKind = v1alpha1.SchemeGroupVersion.WithKind("ServiceCertSignerOperatorConfig")
-
-// Get takes name of the serviceCertSignerOperatorConfig, and returns the corresponding serviceCertSignerOperatorConfig object, and an error if there is any.
-func (c *FakeServiceCertSignerOperatorConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ServiceCertSignerOperatorConfig, err error) {
- emptyResult := &v1alpha1.ServiceCertSignerOperatorConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(servicecertsigneroperatorconfigsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.ServiceCertSignerOperatorConfig), err
-}
-
-// List takes label and field selectors, and returns the list of ServiceCertSignerOperatorConfigs that match those selectors.
-func (c *FakeServiceCertSignerOperatorConfigs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ServiceCertSignerOperatorConfigList, err error) {
- emptyResult := &v1alpha1.ServiceCertSignerOperatorConfigList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(servicecertsigneroperatorconfigsResource, servicecertsigneroperatorconfigsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1alpha1.ServiceCertSignerOperatorConfigList{ListMeta: obj.(*v1alpha1.ServiceCertSignerOperatorConfigList).ListMeta}
- for _, item := range obj.(*v1alpha1.ServiceCertSignerOperatorConfigList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested serviceCertSignerOperatorConfigs.
-func (c *FakeServiceCertSignerOperatorConfigs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(servicecertsigneroperatorconfigsResource, opts))
-}
-
-// Create takes the representation of a serviceCertSignerOperatorConfig and creates it. Returns the server's representation of the serviceCertSignerOperatorConfig, and an error, if there is any.
-func (c *FakeServiceCertSignerOperatorConfigs) Create(ctx context.Context, serviceCertSignerOperatorConfig *v1alpha1.ServiceCertSignerOperatorConfig, opts v1.CreateOptions) (result *v1alpha1.ServiceCertSignerOperatorConfig, err error) {
- emptyResult := &v1alpha1.ServiceCertSignerOperatorConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(servicecertsigneroperatorconfigsResource, serviceCertSignerOperatorConfig, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.ServiceCertSignerOperatorConfig), err
-}
-
-// Update takes the representation of a serviceCertSignerOperatorConfig and updates it. Returns the server's representation of the serviceCertSignerOperatorConfig, and an error, if there is any.
-func (c *FakeServiceCertSignerOperatorConfigs) Update(ctx context.Context, serviceCertSignerOperatorConfig *v1alpha1.ServiceCertSignerOperatorConfig, opts v1.UpdateOptions) (result *v1alpha1.ServiceCertSignerOperatorConfig, err error) {
- emptyResult := &v1alpha1.ServiceCertSignerOperatorConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(servicecertsigneroperatorconfigsResource, serviceCertSignerOperatorConfig, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.ServiceCertSignerOperatorConfig), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeServiceCertSignerOperatorConfigs) UpdateStatus(ctx context.Context, serviceCertSignerOperatorConfig *v1alpha1.ServiceCertSignerOperatorConfig, opts v1.UpdateOptions) (result *v1alpha1.ServiceCertSignerOperatorConfig, err error) {
- emptyResult := &v1alpha1.ServiceCertSignerOperatorConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(servicecertsigneroperatorconfigsResource, "status", serviceCertSignerOperatorConfig, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.ServiceCertSignerOperatorConfig), err
-}
-
-// Delete takes name of the serviceCertSignerOperatorConfig and deletes it. Returns an error if one occurs.
-func (c *FakeServiceCertSignerOperatorConfigs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(servicecertsigneroperatorconfigsResource, name, opts), &v1alpha1.ServiceCertSignerOperatorConfig{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeServiceCertSignerOperatorConfigs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(servicecertsigneroperatorconfigsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1alpha1.ServiceCertSignerOperatorConfigList{})
- return err
-}
-
-// Patch applies the patch and returns the patched serviceCertSignerOperatorConfig.
-func (c *FakeServiceCertSignerOperatorConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ServiceCertSignerOperatorConfig, err error) {
- emptyResult := &v1alpha1.ServiceCertSignerOperatorConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(servicecertsigneroperatorconfigsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.ServiceCertSignerOperatorConfig), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied serviceCertSignerOperatorConfig.
-func (c *FakeServiceCertSignerOperatorConfigs) Apply(ctx context.Context, serviceCertSignerOperatorConfig *servicecertsignerv1alpha1.ServiceCertSignerOperatorConfigApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.ServiceCertSignerOperatorConfig, err error) {
- if serviceCertSignerOperatorConfig == nil {
- return nil, fmt.Errorf("serviceCertSignerOperatorConfig provided to Apply must not be nil")
- }
- data, err := json.Marshal(serviceCertSignerOperatorConfig)
- if err != nil {
- return nil, err
- }
- name := serviceCertSignerOperatorConfig.Name
- if name == nil {
- return nil, fmt.Errorf("serviceCertSignerOperatorConfig.Name must be provided to Apply")
- }
- emptyResult := &v1alpha1.ServiceCertSignerOperatorConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(servicecertsigneroperatorconfigsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.ServiceCertSignerOperatorConfig), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeServiceCertSignerOperatorConfigs) ApplyStatus(ctx context.Context, serviceCertSignerOperatorConfig *servicecertsignerv1alpha1.ServiceCertSignerOperatorConfigApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.ServiceCertSignerOperatorConfig, err error) {
- if serviceCertSignerOperatorConfig == nil {
- return nil, fmt.Errorf("serviceCertSignerOperatorConfig provided to Apply must not be nil")
- }
- data, err := json.Marshal(serviceCertSignerOperatorConfig)
- if err != nil {
- return nil, err
- }
- name := serviceCertSignerOperatorConfig.Name
- if name == nil {
- return nil, fmt.Errorf("serviceCertSignerOperatorConfig.Name must be provided to Apply")
- }
- emptyResult := &v1alpha1.ServiceCertSignerOperatorConfig{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(servicecertsigneroperatorconfigsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeServiceCertSignerOperatorConfigs(fake *FakeServicecertsignerV1alpha1) typedservicecertsignerv1alpha1.ServiceCertSignerOperatorConfigInterface {
+ return &fakeServiceCertSignerOperatorConfigs{
+ gentype.NewFakeClientWithListAndApply[*v1alpha1.ServiceCertSignerOperatorConfig, *v1alpha1.ServiceCertSignerOperatorConfigList, *servicecertsignerv1alpha1.ServiceCertSignerOperatorConfigApplyConfiguration](
+ fake.Fake,
+ "",
+ v1alpha1.SchemeGroupVersion.WithResource("servicecertsigneroperatorconfigs"),
+ v1alpha1.SchemeGroupVersion.WithKind("ServiceCertSignerOperatorConfig"),
+ func() *v1alpha1.ServiceCertSignerOperatorConfig { return &v1alpha1.ServiceCertSignerOperatorConfig{} },
+ func() *v1alpha1.ServiceCertSignerOperatorConfigList {
+ return &v1alpha1.ServiceCertSignerOperatorConfigList{}
+ },
+ func(dst, src *v1alpha1.ServiceCertSignerOperatorConfigList) { dst.ListMeta = src.ListMeta },
+ func(list *v1alpha1.ServiceCertSignerOperatorConfigList) []*v1alpha1.ServiceCertSignerOperatorConfig {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1alpha1.ServiceCertSignerOperatorConfigList, items []*v1alpha1.ServiceCertSignerOperatorConfig) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1alpha1.ServiceCertSignerOperatorConfig), err
}
diff --git a/servicecertsigner/clientset/versioned/typed/servicecertsigner/v1alpha1/servicecertsigner_client.go b/servicecertsigner/clientset/versioned/typed/servicecertsigner/v1alpha1/servicecertsigner_client.go
index c08f3aeb0..190ba39da 100644
--- a/servicecertsigner/clientset/versioned/typed/servicecertsigner/v1alpha1/servicecertsigner_client.go
+++ b/servicecertsigner/clientset/versioned/typed/servicecertsigner/v1alpha1/servicecertsigner_client.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- "net/http"
+ http "net/http"
- v1alpha1 "github.com/openshift/api/servicecertsigner/v1alpha1"
- "github.com/openshift/client-go/servicecertsigner/clientset/versioned/scheme"
+ servicecertsignerv1alpha1 "github.com/openshift/api/servicecertsigner/v1alpha1"
+ scheme "github.com/openshift/client-go/servicecertsigner/clientset/versioned/scheme"
rest "k8s.io/client-go/rest"
)
@@ -69,10 +69,10 @@ func New(c rest.Interface) *ServicecertsignerV1alpha1Client {
}
func setConfigDefaults(config *rest.Config) error {
- gv := v1alpha1.SchemeGroupVersion
+ gv := servicecertsignerv1alpha1.SchemeGroupVersion
config.GroupVersion = &gv
config.APIPath = "/apis"
- config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
+ config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion()
if config.UserAgent == "" {
config.UserAgent = rest.DefaultKubernetesUserAgent()
diff --git a/servicecertsigner/clientset/versioned/typed/servicecertsigner/v1alpha1/servicecertsigneroperatorconfig.go b/servicecertsigner/clientset/versioned/typed/servicecertsigner/v1alpha1/servicecertsigneroperatorconfig.go
index 33a0b4a0e..52a111d80 100644
--- a/servicecertsigner/clientset/versioned/typed/servicecertsigner/v1alpha1/servicecertsigneroperatorconfig.go
+++ b/servicecertsigner/clientset/versioned/typed/servicecertsigner/v1alpha1/servicecertsigneroperatorconfig.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- "context"
+ context "context"
- v1alpha1 "github.com/openshift/api/servicecertsigner/v1alpha1"
- servicecertsignerv1alpha1 "github.com/openshift/client-go/servicecertsigner/applyconfigurations/servicecertsigner/v1alpha1"
+ servicecertsignerv1alpha1 "github.com/openshift/api/servicecertsigner/v1alpha1"
+ applyconfigurationsservicecertsignerv1alpha1 "github.com/openshift/client-go/servicecertsigner/applyconfigurations/servicecertsigner/v1alpha1"
scheme "github.com/openshift/client-go/servicecertsigner/clientset/versioned/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,38 +22,41 @@ type ServiceCertSignerOperatorConfigsGetter interface {
// ServiceCertSignerOperatorConfigInterface has methods to work with ServiceCertSignerOperatorConfig resources.
type ServiceCertSignerOperatorConfigInterface interface {
- Create(ctx context.Context, serviceCertSignerOperatorConfig *v1alpha1.ServiceCertSignerOperatorConfig, opts v1.CreateOptions) (*v1alpha1.ServiceCertSignerOperatorConfig, error)
- Update(ctx context.Context, serviceCertSignerOperatorConfig *v1alpha1.ServiceCertSignerOperatorConfig, opts v1.UpdateOptions) (*v1alpha1.ServiceCertSignerOperatorConfig, error)
+ Create(ctx context.Context, serviceCertSignerOperatorConfig *servicecertsignerv1alpha1.ServiceCertSignerOperatorConfig, opts v1.CreateOptions) (*servicecertsignerv1alpha1.ServiceCertSignerOperatorConfig, error)
+ Update(ctx context.Context, serviceCertSignerOperatorConfig *servicecertsignerv1alpha1.ServiceCertSignerOperatorConfig, opts v1.UpdateOptions) (*servicecertsignerv1alpha1.ServiceCertSignerOperatorConfig, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, serviceCertSignerOperatorConfig *v1alpha1.ServiceCertSignerOperatorConfig, opts v1.UpdateOptions) (*v1alpha1.ServiceCertSignerOperatorConfig, error)
+ UpdateStatus(ctx context.Context, serviceCertSignerOperatorConfig *servicecertsignerv1alpha1.ServiceCertSignerOperatorConfig, opts v1.UpdateOptions) (*servicecertsignerv1alpha1.ServiceCertSignerOperatorConfig, error)
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.ServiceCertSignerOperatorConfig, error)
- List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.ServiceCertSignerOperatorConfigList, error)
+ Get(ctx context.Context, name string, opts v1.GetOptions) (*servicecertsignerv1alpha1.ServiceCertSignerOperatorConfig, error)
+ List(ctx context.Context, opts v1.ListOptions) (*servicecertsignerv1alpha1.ServiceCertSignerOperatorConfigList, error)
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ServiceCertSignerOperatorConfig, err error)
- Apply(ctx context.Context, serviceCertSignerOperatorConfig *servicecertsignerv1alpha1.ServiceCertSignerOperatorConfigApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.ServiceCertSignerOperatorConfig, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *servicecertsignerv1alpha1.ServiceCertSignerOperatorConfig, err error)
+ Apply(ctx context.Context, serviceCertSignerOperatorConfig *applyconfigurationsservicecertsignerv1alpha1.ServiceCertSignerOperatorConfigApplyConfiguration, opts v1.ApplyOptions) (result *servicecertsignerv1alpha1.ServiceCertSignerOperatorConfig, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, serviceCertSignerOperatorConfig *servicecertsignerv1alpha1.ServiceCertSignerOperatorConfigApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.ServiceCertSignerOperatorConfig, err error)
+ ApplyStatus(ctx context.Context, serviceCertSignerOperatorConfig *applyconfigurationsservicecertsignerv1alpha1.ServiceCertSignerOperatorConfigApplyConfiguration, opts v1.ApplyOptions) (result *servicecertsignerv1alpha1.ServiceCertSignerOperatorConfig, err error)
ServiceCertSignerOperatorConfigExpansion
}
// serviceCertSignerOperatorConfigs implements ServiceCertSignerOperatorConfigInterface
type serviceCertSignerOperatorConfigs struct {
- *gentype.ClientWithListAndApply[*v1alpha1.ServiceCertSignerOperatorConfig, *v1alpha1.ServiceCertSignerOperatorConfigList, *servicecertsignerv1alpha1.ServiceCertSignerOperatorConfigApplyConfiguration]
+ *gentype.ClientWithListAndApply[*servicecertsignerv1alpha1.ServiceCertSignerOperatorConfig, *servicecertsignerv1alpha1.ServiceCertSignerOperatorConfigList, *applyconfigurationsservicecertsignerv1alpha1.ServiceCertSignerOperatorConfigApplyConfiguration]
}
// newServiceCertSignerOperatorConfigs returns a ServiceCertSignerOperatorConfigs
func newServiceCertSignerOperatorConfigs(c *ServicecertsignerV1alpha1Client) *serviceCertSignerOperatorConfigs {
return &serviceCertSignerOperatorConfigs{
- gentype.NewClientWithListAndApply[*v1alpha1.ServiceCertSignerOperatorConfig, *v1alpha1.ServiceCertSignerOperatorConfigList, *servicecertsignerv1alpha1.ServiceCertSignerOperatorConfigApplyConfiguration](
+ gentype.NewClientWithListAndApply[*servicecertsignerv1alpha1.ServiceCertSignerOperatorConfig, *servicecertsignerv1alpha1.ServiceCertSignerOperatorConfigList, *applyconfigurationsservicecertsignerv1alpha1.ServiceCertSignerOperatorConfigApplyConfiguration](
"servicecertsigneroperatorconfigs",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1alpha1.ServiceCertSignerOperatorConfig { return &v1alpha1.ServiceCertSignerOperatorConfig{} },
- func() *v1alpha1.ServiceCertSignerOperatorConfigList {
- return &v1alpha1.ServiceCertSignerOperatorConfigList{}
- }),
+ func() *servicecertsignerv1alpha1.ServiceCertSignerOperatorConfig {
+ return &servicecertsignerv1alpha1.ServiceCertSignerOperatorConfig{}
+ },
+ func() *servicecertsignerv1alpha1.ServiceCertSignerOperatorConfigList {
+ return &servicecertsignerv1alpha1.ServiceCertSignerOperatorConfigList{}
+ },
+ ),
}
}
diff --git a/servicecertsigner/informers/externalversions/generic.go b/servicecertsigner/informers/externalversions/generic.go
index d1b19f6a6..300c0ddc0 100644
--- a/servicecertsigner/informers/externalversions/generic.go
+++ b/servicecertsigner/informers/externalversions/generic.go
@@ -3,7 +3,7 @@
package externalversions
import (
- "fmt"
+ fmt "fmt"
v1alpha1 "github.com/openshift/api/servicecertsigner/v1alpha1"
schema "k8s.io/apimachinery/pkg/runtime/schema"
diff --git a/servicecertsigner/informers/externalversions/servicecertsigner/v1alpha1/servicecertsigneroperatorconfig.go b/servicecertsigner/informers/externalversions/servicecertsigner/v1alpha1/servicecertsigneroperatorconfig.go
index 4d9a7217d..8b66c76ad 100644
--- a/servicecertsigner/informers/externalversions/servicecertsigner/v1alpha1/servicecertsigneroperatorconfig.go
+++ b/servicecertsigner/informers/externalversions/servicecertsigner/v1alpha1/servicecertsigneroperatorconfig.go
@@ -3,13 +3,13 @@
package v1alpha1
import (
- "context"
+ context "context"
time "time"
- servicecertsignerv1alpha1 "github.com/openshift/api/servicecertsigner/v1alpha1"
+ apiservicecertsignerv1alpha1 "github.com/openshift/api/servicecertsigner/v1alpha1"
versioned "github.com/openshift/client-go/servicecertsigner/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/servicecertsigner/informers/externalversions/internalinterfaces"
- v1alpha1 "github.com/openshift/client-go/servicecertsigner/listers/servicecertsigner/v1alpha1"
+ servicecertsignerv1alpha1 "github.com/openshift/client-go/servicecertsigner/listers/servicecertsigner/v1alpha1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// ServiceCertSignerOperatorConfigs.
type ServiceCertSignerOperatorConfigInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1alpha1.ServiceCertSignerOperatorConfigLister
+ Lister() servicecertsignerv1alpha1.ServiceCertSignerOperatorConfigLister
}
type serviceCertSignerOperatorConfigInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredServiceCertSignerOperatorConfigInformer(client versioned.Interfa
return client.ServicecertsignerV1alpha1().ServiceCertSignerOperatorConfigs().Watch(context.TODO(), options)
},
},
- &servicecertsignerv1alpha1.ServiceCertSignerOperatorConfig{},
+ &apiservicecertsignerv1alpha1.ServiceCertSignerOperatorConfig{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *serviceCertSignerOperatorConfigInformer) defaultInformer(client version
}
func (f *serviceCertSignerOperatorConfigInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&servicecertsignerv1alpha1.ServiceCertSignerOperatorConfig{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiservicecertsignerv1alpha1.ServiceCertSignerOperatorConfig{}, f.defaultInformer)
}
-func (f *serviceCertSignerOperatorConfigInformer) Lister() v1alpha1.ServiceCertSignerOperatorConfigLister {
- return v1alpha1.NewServiceCertSignerOperatorConfigLister(f.Informer().GetIndexer())
+func (f *serviceCertSignerOperatorConfigInformer) Lister() servicecertsignerv1alpha1.ServiceCertSignerOperatorConfigLister {
+ return servicecertsignerv1alpha1.NewServiceCertSignerOperatorConfigLister(f.Informer().GetIndexer())
}
diff --git a/servicecertsigner/listers/servicecertsigner/v1alpha1/servicecertsigneroperatorconfig.go b/servicecertsigner/listers/servicecertsigner/v1alpha1/servicecertsigneroperatorconfig.go
index df6e0faf4..c79a1c4b3 100644
--- a/servicecertsigner/listers/servicecertsigner/v1alpha1/servicecertsigneroperatorconfig.go
+++ b/servicecertsigner/listers/servicecertsigner/v1alpha1/servicecertsigneroperatorconfig.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- v1alpha1 "github.com/openshift/api/servicecertsigner/v1alpha1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ servicecertsignerv1alpha1 "github.com/openshift/api/servicecertsigner/v1alpha1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// ServiceCertSignerOperatorConfigLister helps list ServiceCertSignerOperatorConfigs.
@@ -14,19 +14,19 @@ import (
type ServiceCertSignerOperatorConfigLister interface {
// List lists all ServiceCertSignerOperatorConfigs in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1alpha1.ServiceCertSignerOperatorConfig, err error)
+ List(selector labels.Selector) (ret []*servicecertsignerv1alpha1.ServiceCertSignerOperatorConfig, err error)
// Get retrieves the ServiceCertSignerOperatorConfig from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1alpha1.ServiceCertSignerOperatorConfig, error)
+ Get(name string) (*servicecertsignerv1alpha1.ServiceCertSignerOperatorConfig, error)
ServiceCertSignerOperatorConfigListerExpansion
}
// serviceCertSignerOperatorConfigLister implements the ServiceCertSignerOperatorConfigLister interface.
type serviceCertSignerOperatorConfigLister struct {
- listers.ResourceIndexer[*v1alpha1.ServiceCertSignerOperatorConfig]
+ listers.ResourceIndexer[*servicecertsignerv1alpha1.ServiceCertSignerOperatorConfig]
}
// NewServiceCertSignerOperatorConfigLister returns a new ServiceCertSignerOperatorConfigLister.
func NewServiceCertSignerOperatorConfigLister(indexer cache.Indexer) ServiceCertSignerOperatorConfigLister {
- return &serviceCertSignerOperatorConfigLister{listers.New[*v1alpha1.ServiceCertSignerOperatorConfig](indexer, v1alpha1.Resource("servicecertsigneroperatorconfig"))}
+ return &serviceCertSignerOperatorConfigLister{listers.New[*servicecertsignerv1alpha1.ServiceCertSignerOperatorConfig](indexer, servicecertsignerv1alpha1.Resource("servicecertsigneroperatorconfig"))}
}
diff --git a/sharedresource/applyconfigurations/internal/internal.go b/sharedresource/applyconfigurations/internal/internal.go
index 1ed540e93..5ece6f5f1 100644
--- a/sharedresource/applyconfigurations/internal/internal.go
+++ b/sharedresource/applyconfigurations/internal/internal.go
@@ -3,8 +3,8 @@
package internal
import (
- "fmt"
- "sync"
+ fmt "fmt"
+ sync "sync"
typed "sigs.k8s.io/structured-merge-diff/v4/typed"
)
diff --git a/sharedresource/applyconfigurations/sharedresource/v1alpha1/sharedconfigmap.go b/sharedresource/applyconfigurations/sharedresource/v1alpha1/sharedconfigmap.go
index 96d2b561e..ea56aeb05 100644
--- a/sharedresource/applyconfigurations/sharedresource/v1alpha1/sharedconfigmap.go
+++ b/sharedresource/applyconfigurations/sharedresource/v1alpha1/sharedconfigmap.go
@@ -69,7 +69,7 @@ func extractSharedConfigMap(sharedConfigMap *sharedresourcev1alpha1.SharedConfig
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *SharedConfigMapApplyConfiguration) WithKind(value string) *SharedConfigMapApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *SharedConfigMapApplyConfiguration) WithKind(value string) *SharedConfig
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *SharedConfigMapApplyConfiguration) WithAPIVersion(value string) *SharedConfigMapApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *SharedConfigMapApplyConfiguration) WithAPIVersion(value string) *Shared
// If called multiple times, the Name field is set to the value of the last call.
func (b *SharedConfigMapApplyConfiguration) WithName(value string) *SharedConfigMapApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *SharedConfigMapApplyConfiguration) WithName(value string) *SharedConfig
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *SharedConfigMapApplyConfiguration) WithGenerateName(value string) *SharedConfigMapApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *SharedConfigMapApplyConfiguration) WithGenerateName(value string) *Shar
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *SharedConfigMapApplyConfiguration) WithNamespace(value string) *SharedConfigMapApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *SharedConfigMapApplyConfiguration) WithNamespace(value string) *SharedC
// If called multiple times, the UID field is set to the value of the last call.
func (b *SharedConfigMapApplyConfiguration) WithUID(value types.UID) *SharedConfigMapApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *SharedConfigMapApplyConfiguration) WithUID(value types.UID) *SharedConf
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *SharedConfigMapApplyConfiguration) WithResourceVersion(value string) *SharedConfigMapApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,7 +131,7 @@ func (b *SharedConfigMapApplyConfiguration) WithResourceVersion(value string) *S
// If called multiple times, the Generation field is set to the value of the last call.
func (b *SharedConfigMapApplyConfiguration) WithGeneration(value int64) *SharedConfigMapApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
@@ -140,7 +140,7 @@ func (b *SharedConfigMapApplyConfiguration) WithGeneration(value int64) *SharedC
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
func (b *SharedConfigMapApplyConfiguration) WithCreationTimestamp(value metav1.Time) *SharedConfigMapApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
@@ -149,7 +149,7 @@ func (b *SharedConfigMapApplyConfiguration) WithCreationTimestamp(value metav1.T
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
func (b *SharedConfigMapApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *SharedConfigMapApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *SharedConfigMapApplyConfiguration) WithDeletionTimestamp(value metav1.T
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *SharedConfigMapApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *SharedConfigMapApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *SharedConfigMapApplyConfiguration) WithDeletionGracePeriodSeconds(value
// overwriting an existing map entries in Labels field with the same key.
func (b *SharedConfigMapApplyConfiguration) WithLabels(entries map[string]string) *SharedConfigMapApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *SharedConfigMapApplyConfiguration) WithLabels(entries map[string]string
// overwriting an existing map entries in Annotations field with the same key.
func (b *SharedConfigMapApplyConfiguration) WithAnnotations(entries map[string]string) *SharedConfigMapApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -201,7 +201,7 @@ func (b *SharedConfigMapApplyConfiguration) WithOwnerReferences(values ...*v1.Ow
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,7 +212,7 @@ func (b *SharedConfigMapApplyConfiguration) WithOwnerReferences(values ...*v1.Ow
func (b *SharedConfigMapApplyConfiguration) WithFinalizers(values ...string) *SharedConfigMapApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
@@ -242,5 +242,5 @@ func (b *SharedConfigMapApplyConfiguration) WithStatus(value *SharedConfigMapSta
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *SharedConfigMapApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/sharedresource/applyconfigurations/sharedresource/v1alpha1/sharedsecret.go b/sharedresource/applyconfigurations/sharedresource/v1alpha1/sharedsecret.go
index eb10c9a69..c4f0713ed 100644
--- a/sharedresource/applyconfigurations/sharedresource/v1alpha1/sharedsecret.go
+++ b/sharedresource/applyconfigurations/sharedresource/v1alpha1/sharedsecret.go
@@ -69,7 +69,7 @@ func extractSharedSecret(sharedSecret *sharedresourcev1alpha1.SharedSecret, fiel
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *SharedSecretApplyConfiguration) WithKind(value string) *SharedSecretApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -77,7 +77,7 @@ func (b *SharedSecretApplyConfiguration) WithKind(value string) *SharedSecretApp
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *SharedSecretApplyConfiguration) WithAPIVersion(value string) *SharedSecretApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -86,7 +86,7 @@ func (b *SharedSecretApplyConfiguration) WithAPIVersion(value string) *SharedSec
// If called multiple times, the Name field is set to the value of the last call.
func (b *SharedSecretApplyConfiguration) WithName(value string) *SharedSecretApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -95,7 +95,7 @@ func (b *SharedSecretApplyConfiguration) WithName(value string) *SharedSecretApp
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *SharedSecretApplyConfiguration) WithGenerateName(value string) *SharedSecretApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -104,7 +104,7 @@ func (b *SharedSecretApplyConfiguration) WithGenerateName(value string) *SharedS
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *SharedSecretApplyConfiguration) WithNamespace(value string) *SharedSecretApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -113,7 +113,7 @@ func (b *SharedSecretApplyConfiguration) WithNamespace(value string) *SharedSecr
// If called multiple times, the UID field is set to the value of the last call.
func (b *SharedSecretApplyConfiguration) WithUID(value types.UID) *SharedSecretApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -122,7 +122,7 @@ func (b *SharedSecretApplyConfiguration) WithUID(value types.UID) *SharedSecretA
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *SharedSecretApplyConfiguration) WithResourceVersion(value string) *SharedSecretApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -131,7 +131,7 @@ func (b *SharedSecretApplyConfiguration) WithResourceVersion(value string) *Shar
// If called multiple times, the Generation field is set to the value of the last call.
func (b *SharedSecretApplyConfiguration) WithGeneration(value int64) *SharedSecretApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
@@ -140,7 +140,7 @@ func (b *SharedSecretApplyConfiguration) WithGeneration(value int64) *SharedSecr
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
func (b *SharedSecretApplyConfiguration) WithCreationTimestamp(value metav1.Time) *SharedSecretApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
@@ -149,7 +149,7 @@ func (b *SharedSecretApplyConfiguration) WithCreationTimestamp(value metav1.Time
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
func (b *SharedSecretApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *SharedSecretApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -158,7 +158,7 @@ func (b *SharedSecretApplyConfiguration) WithDeletionTimestamp(value metav1.Time
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *SharedSecretApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *SharedSecretApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -168,11 +168,11 @@ func (b *SharedSecretApplyConfiguration) WithDeletionGracePeriodSeconds(value in
// overwriting an existing map entries in Labels field with the same key.
func (b *SharedSecretApplyConfiguration) WithLabels(entries map[string]string) *SharedSecretApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -183,11 +183,11 @@ func (b *SharedSecretApplyConfiguration) WithLabels(entries map[string]string) *
// overwriting an existing map entries in Annotations field with the same key.
func (b *SharedSecretApplyConfiguration) WithAnnotations(entries map[string]string) *SharedSecretApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -201,7 +201,7 @@ func (b *SharedSecretApplyConfiguration) WithOwnerReferences(values ...*v1.Owner
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -212,7 +212,7 @@ func (b *SharedSecretApplyConfiguration) WithOwnerReferences(values ...*v1.Owner
func (b *SharedSecretApplyConfiguration) WithFinalizers(values ...string) *SharedSecretApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
@@ -242,5 +242,5 @@ func (b *SharedSecretApplyConfiguration) WithStatus(value *SharedSecretStatusApp
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *SharedSecretApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/sharedresource/clientset/versioned/clientset.go b/sharedresource/clientset/versioned/clientset.go
index f378a7b6f..635395a96 100644
--- a/sharedresource/clientset/versioned/clientset.go
+++ b/sharedresource/clientset/versioned/clientset.go
@@ -3,8 +3,8 @@
package versioned
import (
- "fmt"
- "net/http"
+ fmt "fmt"
+ http "net/http"
sharedresourcev1alpha1 "github.com/openshift/client-go/sharedresource/clientset/versioned/typed/sharedresource/v1alpha1"
discovery "k8s.io/client-go/discovery"
diff --git a/sharedresource/clientset/versioned/typed/sharedresource/v1alpha1/fake/fake_sharedconfigmap.go b/sharedresource/clientset/versioned/typed/sharedresource/v1alpha1/fake/fake_sharedconfigmap.go
index 7f7656eaf..7d1ee321f 100644
--- a/sharedresource/clientset/versioned/typed/sharedresource/v1alpha1/fake/fake_sharedconfigmap.go
+++ b/sharedresource/clientset/versioned/typed/sharedresource/v1alpha1/fake/fake_sharedconfigmap.go
@@ -3,168 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1alpha1 "github.com/openshift/api/sharedresource/v1alpha1"
sharedresourcev1alpha1 "github.com/openshift/client-go/sharedresource/applyconfigurations/sharedresource/v1alpha1"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedsharedresourcev1alpha1 "github.com/openshift/client-go/sharedresource/clientset/versioned/typed/sharedresource/v1alpha1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeSharedConfigMaps implements SharedConfigMapInterface
-type FakeSharedConfigMaps struct {
+// fakeSharedConfigMaps implements SharedConfigMapInterface
+type fakeSharedConfigMaps struct {
+ *gentype.FakeClientWithListAndApply[*v1alpha1.SharedConfigMap, *v1alpha1.SharedConfigMapList, *sharedresourcev1alpha1.SharedConfigMapApplyConfiguration]
Fake *FakeSharedresourceV1alpha1
}
-var sharedconfigmapsResource = v1alpha1.SchemeGroupVersion.WithResource("sharedconfigmaps")
-
-var sharedconfigmapsKind = v1alpha1.SchemeGroupVersion.WithKind("SharedConfigMap")
-
-// Get takes name of the sharedConfigMap, and returns the corresponding sharedConfigMap object, and an error if there is any.
-func (c *FakeSharedConfigMaps) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.SharedConfigMap, err error) {
- emptyResult := &v1alpha1.SharedConfigMap{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(sharedconfigmapsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.SharedConfigMap), err
-}
-
-// List takes label and field selectors, and returns the list of SharedConfigMaps that match those selectors.
-func (c *FakeSharedConfigMaps) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.SharedConfigMapList, err error) {
- emptyResult := &v1alpha1.SharedConfigMapList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(sharedconfigmapsResource, sharedconfigmapsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1alpha1.SharedConfigMapList{ListMeta: obj.(*v1alpha1.SharedConfigMapList).ListMeta}
- for _, item := range obj.(*v1alpha1.SharedConfigMapList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested sharedConfigMaps.
-func (c *FakeSharedConfigMaps) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(sharedconfigmapsResource, opts))
-}
-
-// Create takes the representation of a sharedConfigMap and creates it. Returns the server's representation of the sharedConfigMap, and an error, if there is any.
-func (c *FakeSharedConfigMaps) Create(ctx context.Context, sharedConfigMap *v1alpha1.SharedConfigMap, opts v1.CreateOptions) (result *v1alpha1.SharedConfigMap, err error) {
- emptyResult := &v1alpha1.SharedConfigMap{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(sharedconfigmapsResource, sharedConfigMap, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.SharedConfigMap), err
-}
-
-// Update takes the representation of a sharedConfigMap and updates it. Returns the server's representation of the sharedConfigMap, and an error, if there is any.
-func (c *FakeSharedConfigMaps) Update(ctx context.Context, sharedConfigMap *v1alpha1.SharedConfigMap, opts v1.UpdateOptions) (result *v1alpha1.SharedConfigMap, err error) {
- emptyResult := &v1alpha1.SharedConfigMap{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(sharedconfigmapsResource, sharedConfigMap, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.SharedConfigMap), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeSharedConfigMaps) UpdateStatus(ctx context.Context, sharedConfigMap *v1alpha1.SharedConfigMap, opts v1.UpdateOptions) (result *v1alpha1.SharedConfigMap, err error) {
- emptyResult := &v1alpha1.SharedConfigMap{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(sharedconfigmapsResource, "status", sharedConfigMap, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.SharedConfigMap), err
-}
-
-// Delete takes name of the sharedConfigMap and deletes it. Returns an error if one occurs.
-func (c *FakeSharedConfigMaps) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(sharedconfigmapsResource, name, opts), &v1alpha1.SharedConfigMap{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeSharedConfigMaps) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(sharedconfigmapsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1alpha1.SharedConfigMapList{})
- return err
-}
-
-// Patch applies the patch and returns the patched sharedConfigMap.
-func (c *FakeSharedConfigMaps) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.SharedConfigMap, err error) {
- emptyResult := &v1alpha1.SharedConfigMap{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(sharedconfigmapsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.SharedConfigMap), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied sharedConfigMap.
-func (c *FakeSharedConfigMaps) Apply(ctx context.Context, sharedConfigMap *sharedresourcev1alpha1.SharedConfigMapApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.SharedConfigMap, err error) {
- if sharedConfigMap == nil {
- return nil, fmt.Errorf("sharedConfigMap provided to Apply must not be nil")
- }
- data, err := json.Marshal(sharedConfigMap)
- if err != nil {
- return nil, err
- }
- name := sharedConfigMap.Name
- if name == nil {
- return nil, fmt.Errorf("sharedConfigMap.Name must be provided to Apply")
- }
- emptyResult := &v1alpha1.SharedConfigMap{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(sharedconfigmapsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.SharedConfigMap), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeSharedConfigMaps) ApplyStatus(ctx context.Context, sharedConfigMap *sharedresourcev1alpha1.SharedConfigMapApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.SharedConfigMap, err error) {
- if sharedConfigMap == nil {
- return nil, fmt.Errorf("sharedConfigMap provided to Apply must not be nil")
- }
- data, err := json.Marshal(sharedConfigMap)
- if err != nil {
- return nil, err
- }
- name := sharedConfigMap.Name
- if name == nil {
- return nil, fmt.Errorf("sharedConfigMap.Name must be provided to Apply")
- }
- emptyResult := &v1alpha1.SharedConfigMap{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(sharedconfigmapsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeSharedConfigMaps(fake *FakeSharedresourceV1alpha1) typedsharedresourcev1alpha1.SharedConfigMapInterface {
+ return &fakeSharedConfigMaps{
+ gentype.NewFakeClientWithListAndApply[*v1alpha1.SharedConfigMap, *v1alpha1.SharedConfigMapList, *sharedresourcev1alpha1.SharedConfigMapApplyConfiguration](
+ fake.Fake,
+ "",
+ v1alpha1.SchemeGroupVersion.WithResource("sharedconfigmaps"),
+ v1alpha1.SchemeGroupVersion.WithKind("SharedConfigMap"),
+ func() *v1alpha1.SharedConfigMap { return &v1alpha1.SharedConfigMap{} },
+ func() *v1alpha1.SharedConfigMapList { return &v1alpha1.SharedConfigMapList{} },
+ func(dst, src *v1alpha1.SharedConfigMapList) { dst.ListMeta = src.ListMeta },
+ func(list *v1alpha1.SharedConfigMapList) []*v1alpha1.SharedConfigMap {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1alpha1.SharedConfigMapList, items []*v1alpha1.SharedConfigMap) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1alpha1.SharedConfigMap), err
}
diff --git a/sharedresource/clientset/versioned/typed/sharedresource/v1alpha1/fake/fake_sharedresource_client.go b/sharedresource/clientset/versioned/typed/sharedresource/v1alpha1/fake/fake_sharedresource_client.go
index 05a972992..ccc49233f 100644
--- a/sharedresource/clientset/versioned/typed/sharedresource/v1alpha1/fake/fake_sharedresource_client.go
+++ b/sharedresource/clientset/versioned/typed/sharedresource/v1alpha1/fake/fake_sharedresource_client.go
@@ -13,11 +13,11 @@ type FakeSharedresourceV1alpha1 struct {
}
func (c *FakeSharedresourceV1alpha1) SharedConfigMaps() v1alpha1.SharedConfigMapInterface {
- return &FakeSharedConfigMaps{c}
+ return newFakeSharedConfigMaps(c)
}
func (c *FakeSharedresourceV1alpha1) SharedSecrets() v1alpha1.SharedSecretInterface {
- return &FakeSharedSecrets{c}
+ return newFakeSharedSecrets(c)
}
// RESTClient returns a RESTClient that is used to communicate
diff --git a/sharedresource/clientset/versioned/typed/sharedresource/v1alpha1/fake/fake_sharedsecret.go b/sharedresource/clientset/versioned/typed/sharedresource/v1alpha1/fake/fake_sharedsecret.go
index 3e4803a95..89534b25d 100644
--- a/sharedresource/clientset/versioned/typed/sharedresource/v1alpha1/fake/fake_sharedsecret.go
+++ b/sharedresource/clientset/versioned/typed/sharedresource/v1alpha1/fake/fake_sharedsecret.go
@@ -3,168 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1alpha1 "github.com/openshift/api/sharedresource/v1alpha1"
sharedresourcev1alpha1 "github.com/openshift/client-go/sharedresource/applyconfigurations/sharedresource/v1alpha1"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedsharedresourcev1alpha1 "github.com/openshift/client-go/sharedresource/clientset/versioned/typed/sharedresource/v1alpha1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeSharedSecrets implements SharedSecretInterface
-type FakeSharedSecrets struct {
+// fakeSharedSecrets implements SharedSecretInterface
+type fakeSharedSecrets struct {
+ *gentype.FakeClientWithListAndApply[*v1alpha1.SharedSecret, *v1alpha1.SharedSecretList, *sharedresourcev1alpha1.SharedSecretApplyConfiguration]
Fake *FakeSharedresourceV1alpha1
}
-var sharedsecretsResource = v1alpha1.SchemeGroupVersion.WithResource("sharedsecrets")
-
-var sharedsecretsKind = v1alpha1.SchemeGroupVersion.WithKind("SharedSecret")
-
-// Get takes name of the sharedSecret, and returns the corresponding sharedSecret object, and an error if there is any.
-func (c *FakeSharedSecrets) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.SharedSecret, err error) {
- emptyResult := &v1alpha1.SharedSecret{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(sharedsecretsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.SharedSecret), err
-}
-
-// List takes label and field selectors, and returns the list of SharedSecrets that match those selectors.
-func (c *FakeSharedSecrets) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.SharedSecretList, err error) {
- emptyResult := &v1alpha1.SharedSecretList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(sharedsecretsResource, sharedsecretsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1alpha1.SharedSecretList{ListMeta: obj.(*v1alpha1.SharedSecretList).ListMeta}
- for _, item := range obj.(*v1alpha1.SharedSecretList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested sharedSecrets.
-func (c *FakeSharedSecrets) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(sharedsecretsResource, opts))
-}
-
-// Create takes the representation of a sharedSecret and creates it. Returns the server's representation of the sharedSecret, and an error, if there is any.
-func (c *FakeSharedSecrets) Create(ctx context.Context, sharedSecret *v1alpha1.SharedSecret, opts v1.CreateOptions) (result *v1alpha1.SharedSecret, err error) {
- emptyResult := &v1alpha1.SharedSecret{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(sharedsecretsResource, sharedSecret, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.SharedSecret), err
-}
-
-// Update takes the representation of a sharedSecret and updates it. Returns the server's representation of the sharedSecret, and an error, if there is any.
-func (c *FakeSharedSecrets) Update(ctx context.Context, sharedSecret *v1alpha1.SharedSecret, opts v1.UpdateOptions) (result *v1alpha1.SharedSecret, err error) {
- emptyResult := &v1alpha1.SharedSecret{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(sharedsecretsResource, sharedSecret, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.SharedSecret), err
-}
-
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeSharedSecrets) UpdateStatus(ctx context.Context, sharedSecret *v1alpha1.SharedSecret, opts v1.UpdateOptions) (result *v1alpha1.SharedSecret, err error) {
- emptyResult := &v1alpha1.SharedSecret{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateSubresourceActionWithOptions(sharedsecretsResource, "status", sharedSecret, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.SharedSecret), err
-}
-
-// Delete takes name of the sharedSecret and deletes it. Returns an error if one occurs.
-func (c *FakeSharedSecrets) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(sharedsecretsResource, name, opts), &v1alpha1.SharedSecret{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeSharedSecrets) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(sharedsecretsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1alpha1.SharedSecretList{})
- return err
-}
-
-// Patch applies the patch and returns the patched sharedSecret.
-func (c *FakeSharedSecrets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.SharedSecret, err error) {
- emptyResult := &v1alpha1.SharedSecret{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(sharedsecretsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.SharedSecret), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied sharedSecret.
-func (c *FakeSharedSecrets) Apply(ctx context.Context, sharedSecret *sharedresourcev1alpha1.SharedSecretApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.SharedSecret, err error) {
- if sharedSecret == nil {
- return nil, fmt.Errorf("sharedSecret provided to Apply must not be nil")
- }
- data, err := json.Marshal(sharedSecret)
- if err != nil {
- return nil, err
- }
- name := sharedSecret.Name
- if name == nil {
- return nil, fmt.Errorf("sharedSecret.Name must be provided to Apply")
- }
- emptyResult := &v1alpha1.SharedSecret{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(sharedsecretsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1alpha1.SharedSecret), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeSharedSecrets) ApplyStatus(ctx context.Context, sharedSecret *sharedresourcev1alpha1.SharedSecretApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.SharedSecret, err error) {
- if sharedSecret == nil {
- return nil, fmt.Errorf("sharedSecret provided to Apply must not be nil")
- }
- data, err := json.Marshal(sharedSecret)
- if err != nil {
- return nil, err
- }
- name := sharedSecret.Name
- if name == nil {
- return nil, fmt.Errorf("sharedSecret.Name must be provided to Apply")
- }
- emptyResult := &v1alpha1.SharedSecret{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(sharedsecretsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeSharedSecrets(fake *FakeSharedresourceV1alpha1) typedsharedresourcev1alpha1.SharedSecretInterface {
+ return &fakeSharedSecrets{
+ gentype.NewFakeClientWithListAndApply[*v1alpha1.SharedSecret, *v1alpha1.SharedSecretList, *sharedresourcev1alpha1.SharedSecretApplyConfiguration](
+ fake.Fake,
+ "",
+ v1alpha1.SchemeGroupVersion.WithResource("sharedsecrets"),
+ v1alpha1.SchemeGroupVersion.WithKind("SharedSecret"),
+ func() *v1alpha1.SharedSecret { return &v1alpha1.SharedSecret{} },
+ func() *v1alpha1.SharedSecretList { return &v1alpha1.SharedSecretList{} },
+ func(dst, src *v1alpha1.SharedSecretList) { dst.ListMeta = src.ListMeta },
+ func(list *v1alpha1.SharedSecretList) []*v1alpha1.SharedSecret {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1alpha1.SharedSecretList, items []*v1alpha1.SharedSecret) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1alpha1.SharedSecret), err
}
diff --git a/sharedresource/clientset/versioned/typed/sharedresource/v1alpha1/sharedconfigmap.go b/sharedresource/clientset/versioned/typed/sharedresource/v1alpha1/sharedconfigmap.go
index a153c277d..1ec50c1e4 100644
--- a/sharedresource/clientset/versioned/typed/sharedresource/v1alpha1/sharedconfigmap.go
+++ b/sharedresource/clientset/versioned/typed/sharedresource/v1alpha1/sharedconfigmap.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- "context"
+ context "context"
- v1alpha1 "github.com/openshift/api/sharedresource/v1alpha1"
- sharedresourcev1alpha1 "github.com/openshift/client-go/sharedresource/applyconfigurations/sharedresource/v1alpha1"
+ sharedresourcev1alpha1 "github.com/openshift/api/sharedresource/v1alpha1"
+ applyconfigurationssharedresourcev1alpha1 "github.com/openshift/client-go/sharedresource/applyconfigurations/sharedresource/v1alpha1"
scheme "github.com/openshift/client-go/sharedresource/clientset/versioned/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,39 @@ type SharedConfigMapsGetter interface {
// SharedConfigMapInterface has methods to work with SharedConfigMap resources.
type SharedConfigMapInterface interface {
- Create(ctx context.Context, sharedConfigMap *v1alpha1.SharedConfigMap, opts v1.CreateOptions) (*v1alpha1.SharedConfigMap, error)
- Update(ctx context.Context, sharedConfigMap *v1alpha1.SharedConfigMap, opts v1.UpdateOptions) (*v1alpha1.SharedConfigMap, error)
+ Create(ctx context.Context, sharedConfigMap *sharedresourcev1alpha1.SharedConfigMap, opts v1.CreateOptions) (*sharedresourcev1alpha1.SharedConfigMap, error)
+ Update(ctx context.Context, sharedConfigMap *sharedresourcev1alpha1.SharedConfigMap, opts v1.UpdateOptions) (*sharedresourcev1alpha1.SharedConfigMap, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, sharedConfigMap *v1alpha1.SharedConfigMap, opts v1.UpdateOptions) (*v1alpha1.SharedConfigMap, error)
+ UpdateStatus(ctx context.Context, sharedConfigMap *sharedresourcev1alpha1.SharedConfigMap, opts v1.UpdateOptions) (*sharedresourcev1alpha1.SharedConfigMap, error)
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.SharedConfigMap, error)
- List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.SharedConfigMapList, error)
+ Get(ctx context.Context, name string, opts v1.GetOptions) (*sharedresourcev1alpha1.SharedConfigMap, error)
+ List(ctx context.Context, opts v1.ListOptions) (*sharedresourcev1alpha1.SharedConfigMapList, error)
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.SharedConfigMap, err error)
- Apply(ctx context.Context, sharedConfigMap *sharedresourcev1alpha1.SharedConfigMapApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.SharedConfigMap, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *sharedresourcev1alpha1.SharedConfigMap, err error)
+ Apply(ctx context.Context, sharedConfigMap *applyconfigurationssharedresourcev1alpha1.SharedConfigMapApplyConfiguration, opts v1.ApplyOptions) (result *sharedresourcev1alpha1.SharedConfigMap, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, sharedConfigMap *sharedresourcev1alpha1.SharedConfigMapApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.SharedConfigMap, err error)
+ ApplyStatus(ctx context.Context, sharedConfigMap *applyconfigurationssharedresourcev1alpha1.SharedConfigMapApplyConfiguration, opts v1.ApplyOptions) (result *sharedresourcev1alpha1.SharedConfigMap, err error)
SharedConfigMapExpansion
}
// sharedConfigMaps implements SharedConfigMapInterface
type sharedConfigMaps struct {
- *gentype.ClientWithListAndApply[*v1alpha1.SharedConfigMap, *v1alpha1.SharedConfigMapList, *sharedresourcev1alpha1.SharedConfigMapApplyConfiguration]
+ *gentype.ClientWithListAndApply[*sharedresourcev1alpha1.SharedConfigMap, *sharedresourcev1alpha1.SharedConfigMapList, *applyconfigurationssharedresourcev1alpha1.SharedConfigMapApplyConfiguration]
}
// newSharedConfigMaps returns a SharedConfigMaps
func newSharedConfigMaps(c *SharedresourceV1alpha1Client) *sharedConfigMaps {
return &sharedConfigMaps{
- gentype.NewClientWithListAndApply[*v1alpha1.SharedConfigMap, *v1alpha1.SharedConfigMapList, *sharedresourcev1alpha1.SharedConfigMapApplyConfiguration](
+ gentype.NewClientWithListAndApply[*sharedresourcev1alpha1.SharedConfigMap, *sharedresourcev1alpha1.SharedConfigMapList, *applyconfigurationssharedresourcev1alpha1.SharedConfigMapApplyConfiguration](
"sharedconfigmaps",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1alpha1.SharedConfigMap { return &v1alpha1.SharedConfigMap{} },
- func() *v1alpha1.SharedConfigMapList { return &v1alpha1.SharedConfigMapList{} }),
+ func() *sharedresourcev1alpha1.SharedConfigMap { return &sharedresourcev1alpha1.SharedConfigMap{} },
+ func() *sharedresourcev1alpha1.SharedConfigMapList {
+ return &sharedresourcev1alpha1.SharedConfigMapList{}
+ },
+ ),
}
}
diff --git a/sharedresource/clientset/versioned/typed/sharedresource/v1alpha1/sharedresource_client.go b/sharedresource/clientset/versioned/typed/sharedresource/v1alpha1/sharedresource_client.go
index d4fa77f84..5e563208f 100644
--- a/sharedresource/clientset/versioned/typed/sharedresource/v1alpha1/sharedresource_client.go
+++ b/sharedresource/clientset/versioned/typed/sharedresource/v1alpha1/sharedresource_client.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- "net/http"
+ http "net/http"
- v1alpha1 "github.com/openshift/api/sharedresource/v1alpha1"
- "github.com/openshift/client-go/sharedresource/clientset/versioned/scheme"
+ sharedresourcev1alpha1 "github.com/openshift/api/sharedresource/v1alpha1"
+ scheme "github.com/openshift/client-go/sharedresource/clientset/versioned/scheme"
rest "k8s.io/client-go/rest"
)
@@ -74,10 +74,10 @@ func New(c rest.Interface) *SharedresourceV1alpha1Client {
}
func setConfigDefaults(config *rest.Config) error {
- gv := v1alpha1.SchemeGroupVersion
+ gv := sharedresourcev1alpha1.SchemeGroupVersion
config.GroupVersion = &gv
config.APIPath = "/apis"
- config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
+ config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion()
if config.UserAgent == "" {
config.UserAgent = rest.DefaultKubernetesUserAgent()
diff --git a/sharedresource/clientset/versioned/typed/sharedresource/v1alpha1/sharedsecret.go b/sharedresource/clientset/versioned/typed/sharedresource/v1alpha1/sharedsecret.go
index 37532dda6..d6661db89 100644
--- a/sharedresource/clientset/versioned/typed/sharedresource/v1alpha1/sharedsecret.go
+++ b/sharedresource/clientset/versioned/typed/sharedresource/v1alpha1/sharedsecret.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- "context"
+ context "context"
- v1alpha1 "github.com/openshift/api/sharedresource/v1alpha1"
- sharedresourcev1alpha1 "github.com/openshift/client-go/sharedresource/applyconfigurations/sharedresource/v1alpha1"
+ sharedresourcev1alpha1 "github.com/openshift/api/sharedresource/v1alpha1"
+ applyconfigurationssharedresourcev1alpha1 "github.com/openshift/client-go/sharedresource/applyconfigurations/sharedresource/v1alpha1"
scheme "github.com/openshift/client-go/sharedresource/clientset/versioned/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type SharedSecretsGetter interface {
// SharedSecretInterface has methods to work with SharedSecret resources.
type SharedSecretInterface interface {
- Create(ctx context.Context, sharedSecret *v1alpha1.SharedSecret, opts v1.CreateOptions) (*v1alpha1.SharedSecret, error)
- Update(ctx context.Context, sharedSecret *v1alpha1.SharedSecret, opts v1.UpdateOptions) (*v1alpha1.SharedSecret, error)
+ Create(ctx context.Context, sharedSecret *sharedresourcev1alpha1.SharedSecret, opts v1.CreateOptions) (*sharedresourcev1alpha1.SharedSecret, error)
+ Update(ctx context.Context, sharedSecret *sharedresourcev1alpha1.SharedSecret, opts v1.UpdateOptions) (*sharedresourcev1alpha1.SharedSecret, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, sharedSecret *v1alpha1.SharedSecret, opts v1.UpdateOptions) (*v1alpha1.SharedSecret, error)
+ UpdateStatus(ctx context.Context, sharedSecret *sharedresourcev1alpha1.SharedSecret, opts v1.UpdateOptions) (*sharedresourcev1alpha1.SharedSecret, error)
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.SharedSecret, error)
- List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.SharedSecretList, error)
+ Get(ctx context.Context, name string, opts v1.GetOptions) (*sharedresourcev1alpha1.SharedSecret, error)
+ List(ctx context.Context, opts v1.ListOptions) (*sharedresourcev1alpha1.SharedSecretList, error)
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.SharedSecret, err error)
- Apply(ctx context.Context, sharedSecret *sharedresourcev1alpha1.SharedSecretApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.SharedSecret, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *sharedresourcev1alpha1.SharedSecret, err error)
+ Apply(ctx context.Context, sharedSecret *applyconfigurationssharedresourcev1alpha1.SharedSecretApplyConfiguration, opts v1.ApplyOptions) (result *sharedresourcev1alpha1.SharedSecret, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, sharedSecret *sharedresourcev1alpha1.SharedSecretApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.SharedSecret, err error)
+ ApplyStatus(ctx context.Context, sharedSecret *applyconfigurationssharedresourcev1alpha1.SharedSecretApplyConfiguration, opts v1.ApplyOptions) (result *sharedresourcev1alpha1.SharedSecret, err error)
SharedSecretExpansion
}
// sharedSecrets implements SharedSecretInterface
type sharedSecrets struct {
- *gentype.ClientWithListAndApply[*v1alpha1.SharedSecret, *v1alpha1.SharedSecretList, *sharedresourcev1alpha1.SharedSecretApplyConfiguration]
+ *gentype.ClientWithListAndApply[*sharedresourcev1alpha1.SharedSecret, *sharedresourcev1alpha1.SharedSecretList, *applyconfigurationssharedresourcev1alpha1.SharedSecretApplyConfiguration]
}
// newSharedSecrets returns a SharedSecrets
func newSharedSecrets(c *SharedresourceV1alpha1Client) *sharedSecrets {
return &sharedSecrets{
- gentype.NewClientWithListAndApply[*v1alpha1.SharedSecret, *v1alpha1.SharedSecretList, *sharedresourcev1alpha1.SharedSecretApplyConfiguration](
+ gentype.NewClientWithListAndApply[*sharedresourcev1alpha1.SharedSecret, *sharedresourcev1alpha1.SharedSecretList, *applyconfigurationssharedresourcev1alpha1.SharedSecretApplyConfiguration](
"sharedsecrets",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1alpha1.SharedSecret { return &v1alpha1.SharedSecret{} },
- func() *v1alpha1.SharedSecretList { return &v1alpha1.SharedSecretList{} }),
+ func() *sharedresourcev1alpha1.SharedSecret { return &sharedresourcev1alpha1.SharedSecret{} },
+ func() *sharedresourcev1alpha1.SharedSecretList { return &sharedresourcev1alpha1.SharedSecretList{} },
+ ),
}
}
diff --git a/sharedresource/informers/externalversions/generic.go b/sharedresource/informers/externalversions/generic.go
index cd01619c5..d925153f5 100644
--- a/sharedresource/informers/externalversions/generic.go
+++ b/sharedresource/informers/externalversions/generic.go
@@ -3,7 +3,7 @@
package externalversions
import (
- "fmt"
+ fmt "fmt"
v1alpha1 "github.com/openshift/api/sharedresource/v1alpha1"
schema "k8s.io/apimachinery/pkg/runtime/schema"
diff --git a/sharedresource/informers/externalversions/sharedresource/v1alpha1/sharedconfigmap.go b/sharedresource/informers/externalversions/sharedresource/v1alpha1/sharedconfigmap.go
index c6abdf730..d99b786a1 100644
--- a/sharedresource/informers/externalversions/sharedresource/v1alpha1/sharedconfigmap.go
+++ b/sharedresource/informers/externalversions/sharedresource/v1alpha1/sharedconfigmap.go
@@ -3,13 +3,13 @@
package v1alpha1
import (
- "context"
+ context "context"
time "time"
- sharedresourcev1alpha1 "github.com/openshift/api/sharedresource/v1alpha1"
+ apisharedresourcev1alpha1 "github.com/openshift/api/sharedresource/v1alpha1"
versioned "github.com/openshift/client-go/sharedresource/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/sharedresource/informers/externalversions/internalinterfaces"
- v1alpha1 "github.com/openshift/client-go/sharedresource/listers/sharedresource/v1alpha1"
+ sharedresourcev1alpha1 "github.com/openshift/client-go/sharedresource/listers/sharedresource/v1alpha1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// SharedConfigMaps.
type SharedConfigMapInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1alpha1.SharedConfigMapLister
+ Lister() sharedresourcev1alpha1.SharedConfigMapLister
}
type sharedConfigMapInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredSharedConfigMapInformer(client versioned.Interface, resyncPeriod
return client.SharedresourceV1alpha1().SharedConfigMaps().Watch(context.TODO(), options)
},
},
- &sharedresourcev1alpha1.SharedConfigMap{},
+ &apisharedresourcev1alpha1.SharedConfigMap{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *sharedConfigMapInformer) defaultInformer(client versioned.Interface, re
}
func (f *sharedConfigMapInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&sharedresourcev1alpha1.SharedConfigMap{}, f.defaultInformer)
+ return f.factory.InformerFor(&apisharedresourcev1alpha1.SharedConfigMap{}, f.defaultInformer)
}
-func (f *sharedConfigMapInformer) Lister() v1alpha1.SharedConfigMapLister {
- return v1alpha1.NewSharedConfigMapLister(f.Informer().GetIndexer())
+func (f *sharedConfigMapInformer) Lister() sharedresourcev1alpha1.SharedConfigMapLister {
+ return sharedresourcev1alpha1.NewSharedConfigMapLister(f.Informer().GetIndexer())
}
diff --git a/sharedresource/informers/externalversions/sharedresource/v1alpha1/sharedsecret.go b/sharedresource/informers/externalversions/sharedresource/v1alpha1/sharedsecret.go
index cf10a8ef7..dd2956499 100644
--- a/sharedresource/informers/externalversions/sharedresource/v1alpha1/sharedsecret.go
+++ b/sharedresource/informers/externalversions/sharedresource/v1alpha1/sharedsecret.go
@@ -3,13 +3,13 @@
package v1alpha1
import (
- "context"
+ context "context"
time "time"
- sharedresourcev1alpha1 "github.com/openshift/api/sharedresource/v1alpha1"
+ apisharedresourcev1alpha1 "github.com/openshift/api/sharedresource/v1alpha1"
versioned "github.com/openshift/client-go/sharedresource/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/sharedresource/informers/externalversions/internalinterfaces"
- v1alpha1 "github.com/openshift/client-go/sharedresource/listers/sharedresource/v1alpha1"
+ sharedresourcev1alpha1 "github.com/openshift/client-go/sharedresource/listers/sharedresource/v1alpha1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// SharedSecrets.
type SharedSecretInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1alpha1.SharedSecretLister
+ Lister() sharedresourcev1alpha1.SharedSecretLister
}
type sharedSecretInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredSharedSecretInformer(client versioned.Interface, resyncPeriod ti
return client.SharedresourceV1alpha1().SharedSecrets().Watch(context.TODO(), options)
},
},
- &sharedresourcev1alpha1.SharedSecret{},
+ &apisharedresourcev1alpha1.SharedSecret{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *sharedSecretInformer) defaultInformer(client versioned.Interface, resyn
}
func (f *sharedSecretInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&sharedresourcev1alpha1.SharedSecret{}, f.defaultInformer)
+ return f.factory.InformerFor(&apisharedresourcev1alpha1.SharedSecret{}, f.defaultInformer)
}
-func (f *sharedSecretInformer) Lister() v1alpha1.SharedSecretLister {
- return v1alpha1.NewSharedSecretLister(f.Informer().GetIndexer())
+func (f *sharedSecretInformer) Lister() sharedresourcev1alpha1.SharedSecretLister {
+ return sharedresourcev1alpha1.NewSharedSecretLister(f.Informer().GetIndexer())
}
diff --git a/sharedresource/listers/sharedresource/v1alpha1/sharedconfigmap.go b/sharedresource/listers/sharedresource/v1alpha1/sharedconfigmap.go
index 84233e07f..838bb46ae 100644
--- a/sharedresource/listers/sharedresource/v1alpha1/sharedconfigmap.go
+++ b/sharedresource/listers/sharedresource/v1alpha1/sharedconfigmap.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- v1alpha1 "github.com/openshift/api/sharedresource/v1alpha1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ sharedresourcev1alpha1 "github.com/openshift/api/sharedresource/v1alpha1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// SharedConfigMapLister helps list SharedConfigMaps.
@@ -14,19 +14,19 @@ import (
type SharedConfigMapLister interface {
// List lists all SharedConfigMaps in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1alpha1.SharedConfigMap, err error)
+ List(selector labels.Selector) (ret []*sharedresourcev1alpha1.SharedConfigMap, err error)
// Get retrieves the SharedConfigMap from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1alpha1.SharedConfigMap, error)
+ Get(name string) (*sharedresourcev1alpha1.SharedConfigMap, error)
SharedConfigMapListerExpansion
}
// sharedConfigMapLister implements the SharedConfigMapLister interface.
type sharedConfigMapLister struct {
- listers.ResourceIndexer[*v1alpha1.SharedConfigMap]
+ listers.ResourceIndexer[*sharedresourcev1alpha1.SharedConfigMap]
}
// NewSharedConfigMapLister returns a new SharedConfigMapLister.
func NewSharedConfigMapLister(indexer cache.Indexer) SharedConfigMapLister {
- return &sharedConfigMapLister{listers.New[*v1alpha1.SharedConfigMap](indexer, v1alpha1.Resource("sharedconfigmap"))}
+ return &sharedConfigMapLister{listers.New[*sharedresourcev1alpha1.SharedConfigMap](indexer, sharedresourcev1alpha1.Resource("sharedconfigmap"))}
}
diff --git a/sharedresource/listers/sharedresource/v1alpha1/sharedsecret.go b/sharedresource/listers/sharedresource/v1alpha1/sharedsecret.go
index dc1de9efd..9e708bdc3 100644
--- a/sharedresource/listers/sharedresource/v1alpha1/sharedsecret.go
+++ b/sharedresource/listers/sharedresource/v1alpha1/sharedsecret.go
@@ -3,10 +3,10 @@
package v1alpha1
import (
- v1alpha1 "github.com/openshift/api/sharedresource/v1alpha1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ sharedresourcev1alpha1 "github.com/openshift/api/sharedresource/v1alpha1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// SharedSecretLister helps list SharedSecrets.
@@ -14,19 +14,19 @@ import (
type SharedSecretLister interface {
// List lists all SharedSecrets in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1alpha1.SharedSecret, err error)
+ List(selector labels.Selector) (ret []*sharedresourcev1alpha1.SharedSecret, err error)
// Get retrieves the SharedSecret from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1alpha1.SharedSecret, error)
+ Get(name string) (*sharedresourcev1alpha1.SharedSecret, error)
SharedSecretListerExpansion
}
// sharedSecretLister implements the SharedSecretLister interface.
type sharedSecretLister struct {
- listers.ResourceIndexer[*v1alpha1.SharedSecret]
+ listers.ResourceIndexer[*sharedresourcev1alpha1.SharedSecret]
}
// NewSharedSecretLister returns a new SharedSecretLister.
func NewSharedSecretLister(indexer cache.Indexer) SharedSecretLister {
- return &sharedSecretLister{listers.New[*v1alpha1.SharedSecret](indexer, v1alpha1.Resource("sharedsecret"))}
+ return &sharedSecretLister{listers.New[*sharedresourcev1alpha1.SharedSecret](indexer, sharedresourcev1alpha1.Resource("sharedsecret"))}
}
diff --git a/template/applyconfigurations/internal/internal.go b/template/applyconfigurations/internal/internal.go
index c108d30db..11da09f32 100644
--- a/template/applyconfigurations/internal/internal.go
+++ b/template/applyconfigurations/internal/internal.go
@@ -3,8 +3,8 @@
package internal
import (
- "fmt"
- "sync"
+ fmt "fmt"
+ sync "sync"
typed "sigs.k8s.io/structured-merge-diff/v4/typed"
)
diff --git a/template/applyconfigurations/template/v1/brokertemplateinstance.go b/template/applyconfigurations/template/v1/brokertemplateinstance.go
index e99082a30..837c2831c 100644
--- a/template/applyconfigurations/template/v1/brokertemplateinstance.go
+++ b/template/applyconfigurations/template/v1/brokertemplateinstance.go
@@ -3,20 +3,20 @@
package v1
import (
- apitemplatev1 "github.com/openshift/api/template/v1"
+ templatev1 "github.com/openshift/api/template/v1"
internal "github.com/openshift/client-go/template/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// BrokerTemplateInstanceApplyConfiguration represents a declarative configuration of the BrokerTemplateInstance type for use
// with apply.
type BrokerTemplateInstanceApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *BrokerTemplateInstanceSpecApplyConfiguration `json:"spec,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *BrokerTemplateInstanceSpecApplyConfiguration `json:"spec,omitempty"`
}
// BrokerTemplateInstance constructs a declarative configuration of the BrokerTemplateInstance type for use with
@@ -40,18 +40,18 @@ func BrokerTemplateInstance(name string) *BrokerTemplateInstanceApplyConfigurati
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractBrokerTemplateInstance(brokerTemplateInstance *apitemplatev1.BrokerTemplateInstance, fieldManager string) (*BrokerTemplateInstanceApplyConfiguration, error) {
+func ExtractBrokerTemplateInstance(brokerTemplateInstance *templatev1.BrokerTemplateInstance, fieldManager string) (*BrokerTemplateInstanceApplyConfiguration, error) {
return extractBrokerTemplateInstance(brokerTemplateInstance, fieldManager, "")
}
// ExtractBrokerTemplateInstanceStatus is the same as ExtractBrokerTemplateInstance except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractBrokerTemplateInstanceStatus(brokerTemplateInstance *apitemplatev1.BrokerTemplateInstance, fieldManager string) (*BrokerTemplateInstanceApplyConfiguration, error) {
+func ExtractBrokerTemplateInstanceStatus(brokerTemplateInstance *templatev1.BrokerTemplateInstance, fieldManager string) (*BrokerTemplateInstanceApplyConfiguration, error) {
return extractBrokerTemplateInstance(brokerTemplateInstance, fieldManager, "status")
}
-func extractBrokerTemplateInstance(brokerTemplateInstance *apitemplatev1.BrokerTemplateInstance, fieldManager string, subresource string) (*BrokerTemplateInstanceApplyConfiguration, error) {
+func extractBrokerTemplateInstance(brokerTemplateInstance *templatev1.BrokerTemplateInstance, fieldManager string, subresource string) (*BrokerTemplateInstanceApplyConfiguration, error) {
b := &BrokerTemplateInstanceApplyConfiguration{}
err := managedfields.ExtractInto(brokerTemplateInstance, internal.Parser().Type("com.github.openshift.api.template.v1.BrokerTemplateInstance"), fieldManager, b, subresource)
if err != nil {
@@ -68,7 +68,7 @@ func extractBrokerTemplateInstance(brokerTemplateInstance *apitemplatev1.BrokerT
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *BrokerTemplateInstanceApplyConfiguration) WithKind(value string) *BrokerTemplateInstanceApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -76,7 +76,7 @@ func (b *BrokerTemplateInstanceApplyConfiguration) WithKind(value string) *Broke
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *BrokerTemplateInstanceApplyConfiguration) WithAPIVersion(value string) *BrokerTemplateInstanceApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -85,7 +85,7 @@ func (b *BrokerTemplateInstanceApplyConfiguration) WithAPIVersion(value string)
// If called multiple times, the Name field is set to the value of the last call.
func (b *BrokerTemplateInstanceApplyConfiguration) WithName(value string) *BrokerTemplateInstanceApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -94,7 +94,7 @@ func (b *BrokerTemplateInstanceApplyConfiguration) WithName(value string) *Broke
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *BrokerTemplateInstanceApplyConfiguration) WithGenerateName(value string) *BrokerTemplateInstanceApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -103,7 +103,7 @@ func (b *BrokerTemplateInstanceApplyConfiguration) WithGenerateName(value string
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *BrokerTemplateInstanceApplyConfiguration) WithNamespace(value string) *BrokerTemplateInstanceApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -112,7 +112,7 @@ func (b *BrokerTemplateInstanceApplyConfiguration) WithNamespace(value string) *
// If called multiple times, the UID field is set to the value of the last call.
func (b *BrokerTemplateInstanceApplyConfiguration) WithUID(value types.UID) *BrokerTemplateInstanceApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -121,7 +121,7 @@ func (b *BrokerTemplateInstanceApplyConfiguration) WithUID(value types.UID) *Bro
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *BrokerTemplateInstanceApplyConfiguration) WithResourceVersion(value string) *BrokerTemplateInstanceApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -130,25 +130,25 @@ func (b *BrokerTemplateInstanceApplyConfiguration) WithResourceVersion(value str
// If called multiple times, the Generation field is set to the value of the last call.
func (b *BrokerTemplateInstanceApplyConfiguration) WithGeneration(value int64) *BrokerTemplateInstanceApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *BrokerTemplateInstanceApplyConfiguration) WithCreationTimestamp(value metav1.Time) *BrokerTemplateInstanceApplyConfiguration {
+func (b *BrokerTemplateInstanceApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *BrokerTemplateInstanceApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *BrokerTemplateInstanceApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *BrokerTemplateInstanceApplyConfiguration {
+func (b *BrokerTemplateInstanceApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *BrokerTemplateInstanceApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -157,7 +157,7 @@ func (b *BrokerTemplateInstanceApplyConfiguration) WithDeletionTimestamp(value m
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *BrokerTemplateInstanceApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *BrokerTemplateInstanceApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -167,11 +167,11 @@ func (b *BrokerTemplateInstanceApplyConfiguration) WithDeletionGracePeriodSecond
// overwriting an existing map entries in Labels field with the same key.
func (b *BrokerTemplateInstanceApplyConfiguration) WithLabels(entries map[string]string) *BrokerTemplateInstanceApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -182,11 +182,11 @@ func (b *BrokerTemplateInstanceApplyConfiguration) WithLabels(entries map[string
// overwriting an existing map entries in Annotations field with the same key.
func (b *BrokerTemplateInstanceApplyConfiguration) WithAnnotations(entries map[string]string) *BrokerTemplateInstanceApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -194,13 +194,13 @@ func (b *BrokerTemplateInstanceApplyConfiguration) WithAnnotations(entries map[s
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *BrokerTemplateInstanceApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *BrokerTemplateInstanceApplyConfiguration {
+func (b *BrokerTemplateInstanceApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *BrokerTemplateInstanceApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -211,14 +211,14 @@ func (b *BrokerTemplateInstanceApplyConfiguration) WithOwnerReferences(values ..
func (b *BrokerTemplateInstanceApplyConfiguration) WithFinalizers(values ...string) *BrokerTemplateInstanceApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *BrokerTemplateInstanceApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -233,5 +233,5 @@ func (b *BrokerTemplateInstanceApplyConfiguration) WithSpec(value *BrokerTemplat
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *BrokerTemplateInstanceApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/template/applyconfigurations/template/v1/brokertemplateinstancespec.go b/template/applyconfigurations/template/v1/brokertemplateinstancespec.go
index 9fb2cb179..e65b74928 100644
--- a/template/applyconfigurations/template/v1/brokertemplateinstancespec.go
+++ b/template/applyconfigurations/template/v1/brokertemplateinstancespec.go
@@ -3,15 +3,15 @@
package v1
import (
- v1 "k8s.io/api/core/v1"
+ corev1 "k8s.io/api/core/v1"
)
// BrokerTemplateInstanceSpecApplyConfiguration represents a declarative configuration of the BrokerTemplateInstanceSpec type for use
// with apply.
type BrokerTemplateInstanceSpecApplyConfiguration struct {
- TemplateInstance *v1.ObjectReference `json:"templateInstance,omitempty"`
- Secret *v1.ObjectReference `json:"secret,omitempty"`
- BindingIDs []string `json:"bindingIDs,omitempty"`
+ TemplateInstance *corev1.ObjectReference `json:"templateInstance,omitempty"`
+ Secret *corev1.ObjectReference `json:"secret,omitempty"`
+ BindingIDs []string `json:"bindingIDs,omitempty"`
}
// BrokerTemplateInstanceSpecApplyConfiguration constructs a declarative configuration of the BrokerTemplateInstanceSpec type for use with
@@ -23,7 +23,7 @@ func BrokerTemplateInstanceSpec() *BrokerTemplateInstanceSpecApplyConfiguration
// WithTemplateInstance sets the TemplateInstance field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the TemplateInstance field is set to the value of the last call.
-func (b *BrokerTemplateInstanceSpecApplyConfiguration) WithTemplateInstance(value v1.ObjectReference) *BrokerTemplateInstanceSpecApplyConfiguration {
+func (b *BrokerTemplateInstanceSpecApplyConfiguration) WithTemplateInstance(value corev1.ObjectReference) *BrokerTemplateInstanceSpecApplyConfiguration {
b.TemplateInstance = &value
return b
}
@@ -31,7 +31,7 @@ func (b *BrokerTemplateInstanceSpecApplyConfiguration) WithTemplateInstance(valu
// WithSecret sets the Secret field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Secret field is set to the value of the last call.
-func (b *BrokerTemplateInstanceSpecApplyConfiguration) WithSecret(value v1.ObjectReference) *BrokerTemplateInstanceSpecApplyConfiguration {
+func (b *BrokerTemplateInstanceSpecApplyConfiguration) WithSecret(value corev1.ObjectReference) *BrokerTemplateInstanceSpecApplyConfiguration {
b.Secret = &value
return b
}
diff --git a/template/applyconfigurations/template/v1/template.go b/template/applyconfigurations/template/v1/template.go
index d0de68b07..8ae1ba0d5 100644
--- a/template/applyconfigurations/template/v1/template.go
+++ b/template/applyconfigurations/template/v1/template.go
@@ -3,24 +3,24 @@
package v1
import (
- apitemplatev1 "github.com/openshift/api/template/v1"
+ templatev1 "github.com/openshift/api/template/v1"
internal "github.com/openshift/client-go/template/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// TemplateApplyConfiguration represents a declarative configuration of the Template type for use
// with apply.
type TemplateApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Message *string `json:"message,omitempty"`
- Objects []runtime.RawExtension `json:"objects,omitempty"`
- Parameters []ParameterApplyConfiguration `json:"parameters,omitempty"`
- ObjectLabels map[string]string `json:"labels,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Message *string `json:"message,omitempty"`
+ Objects []runtime.RawExtension `json:"objects,omitempty"`
+ Parameters []ParameterApplyConfiguration `json:"parameters,omitempty"`
+ ObjectLabels map[string]string `json:"labels,omitempty"`
}
// Template constructs a declarative configuration of the Template type for use with
@@ -45,18 +45,18 @@ func Template(name, namespace string) *TemplateApplyConfiguration {
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractTemplate(template *apitemplatev1.Template, fieldManager string) (*TemplateApplyConfiguration, error) {
+func ExtractTemplate(template *templatev1.Template, fieldManager string) (*TemplateApplyConfiguration, error) {
return extractTemplate(template, fieldManager, "")
}
// ExtractTemplateStatus is the same as ExtractTemplate except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractTemplateStatus(template *apitemplatev1.Template, fieldManager string) (*TemplateApplyConfiguration, error) {
+func ExtractTemplateStatus(template *templatev1.Template, fieldManager string) (*TemplateApplyConfiguration, error) {
return extractTemplate(template, fieldManager, "status")
}
-func extractTemplate(template *apitemplatev1.Template, fieldManager string, subresource string) (*TemplateApplyConfiguration, error) {
+func extractTemplate(template *templatev1.Template, fieldManager string, subresource string) (*TemplateApplyConfiguration, error) {
b := &TemplateApplyConfiguration{}
err := managedfields.ExtractInto(template, internal.Parser().Type("com.github.openshift.api.template.v1.Template"), fieldManager, b, subresource)
if err != nil {
@@ -74,7 +74,7 @@ func extractTemplate(template *apitemplatev1.Template, fieldManager string, subr
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *TemplateApplyConfiguration) WithKind(value string) *TemplateApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -82,7 +82,7 @@ func (b *TemplateApplyConfiguration) WithKind(value string) *TemplateApplyConfig
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *TemplateApplyConfiguration) WithAPIVersion(value string) *TemplateApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -91,7 +91,7 @@ func (b *TemplateApplyConfiguration) WithAPIVersion(value string) *TemplateApply
// If called multiple times, the Name field is set to the value of the last call.
func (b *TemplateApplyConfiguration) WithName(value string) *TemplateApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -100,7 +100,7 @@ func (b *TemplateApplyConfiguration) WithName(value string) *TemplateApplyConfig
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *TemplateApplyConfiguration) WithGenerateName(value string) *TemplateApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -109,7 +109,7 @@ func (b *TemplateApplyConfiguration) WithGenerateName(value string) *TemplateApp
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *TemplateApplyConfiguration) WithNamespace(value string) *TemplateApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -118,7 +118,7 @@ func (b *TemplateApplyConfiguration) WithNamespace(value string) *TemplateApplyC
// If called multiple times, the UID field is set to the value of the last call.
func (b *TemplateApplyConfiguration) WithUID(value types.UID) *TemplateApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -127,7 +127,7 @@ func (b *TemplateApplyConfiguration) WithUID(value types.UID) *TemplateApplyConf
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *TemplateApplyConfiguration) WithResourceVersion(value string) *TemplateApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -136,25 +136,25 @@ func (b *TemplateApplyConfiguration) WithResourceVersion(value string) *Template
// If called multiple times, the Generation field is set to the value of the last call.
func (b *TemplateApplyConfiguration) WithGeneration(value int64) *TemplateApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *TemplateApplyConfiguration) WithCreationTimestamp(value metav1.Time) *TemplateApplyConfiguration {
+func (b *TemplateApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *TemplateApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *TemplateApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *TemplateApplyConfiguration {
+func (b *TemplateApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *TemplateApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -163,7 +163,7 @@ func (b *TemplateApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *T
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *TemplateApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *TemplateApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -173,11 +173,11 @@ func (b *TemplateApplyConfiguration) WithDeletionGracePeriodSeconds(value int64)
// overwriting an existing map entries in Labels field with the same key.
func (b *TemplateApplyConfiguration) WithLabels(entries map[string]string) *TemplateApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -188,11 +188,11 @@ func (b *TemplateApplyConfiguration) WithLabels(entries map[string]string) *Temp
// overwriting an existing map entries in Annotations field with the same key.
func (b *TemplateApplyConfiguration) WithAnnotations(entries map[string]string) *TemplateApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -200,13 +200,13 @@ func (b *TemplateApplyConfiguration) WithAnnotations(entries map[string]string)
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *TemplateApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *TemplateApplyConfiguration {
+func (b *TemplateApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *TemplateApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -217,14 +217,14 @@ func (b *TemplateApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefe
func (b *TemplateApplyConfiguration) WithFinalizers(values ...string) *TemplateApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *TemplateApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -276,5 +276,5 @@ func (b *TemplateApplyConfiguration) WithObjectLabels(entries map[string]string)
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *TemplateApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/template/applyconfigurations/template/v1/templateinstance.go b/template/applyconfigurations/template/v1/templateinstance.go
index 422eae26e..caea8e334 100644
--- a/template/applyconfigurations/template/v1/templateinstance.go
+++ b/template/applyconfigurations/template/v1/templateinstance.go
@@ -3,21 +3,21 @@
package v1
import (
- apitemplatev1 "github.com/openshift/api/template/v1"
+ templatev1 "github.com/openshift/api/template/v1"
internal "github.com/openshift/client-go/template/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// TemplateInstanceApplyConfiguration represents a declarative configuration of the TemplateInstance type for use
// with apply.
type TemplateInstanceApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Spec *TemplateInstanceSpecApplyConfiguration `json:"spec,omitempty"`
- Status *TemplateInstanceStatusApplyConfiguration `json:"status,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *TemplateInstanceSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *TemplateInstanceStatusApplyConfiguration `json:"status,omitempty"`
}
// TemplateInstance constructs a declarative configuration of the TemplateInstance type for use with
@@ -42,18 +42,18 @@ func TemplateInstance(name, namespace string) *TemplateInstanceApplyConfiguratio
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
-func ExtractTemplateInstance(templateInstance *apitemplatev1.TemplateInstance, fieldManager string) (*TemplateInstanceApplyConfiguration, error) {
+func ExtractTemplateInstance(templateInstance *templatev1.TemplateInstance, fieldManager string) (*TemplateInstanceApplyConfiguration, error) {
return extractTemplateInstance(templateInstance, fieldManager, "")
}
// ExtractTemplateInstanceStatus is the same as ExtractTemplateInstance except
// that it extracts the status subresource applied configuration.
// Experimental!
-func ExtractTemplateInstanceStatus(templateInstance *apitemplatev1.TemplateInstance, fieldManager string) (*TemplateInstanceApplyConfiguration, error) {
+func ExtractTemplateInstanceStatus(templateInstance *templatev1.TemplateInstance, fieldManager string) (*TemplateInstanceApplyConfiguration, error) {
return extractTemplateInstance(templateInstance, fieldManager, "status")
}
-func extractTemplateInstance(templateInstance *apitemplatev1.TemplateInstance, fieldManager string, subresource string) (*TemplateInstanceApplyConfiguration, error) {
+func extractTemplateInstance(templateInstance *templatev1.TemplateInstance, fieldManager string, subresource string) (*TemplateInstanceApplyConfiguration, error) {
b := &TemplateInstanceApplyConfiguration{}
err := managedfields.ExtractInto(templateInstance, internal.Parser().Type("com.github.openshift.api.template.v1.TemplateInstance"), fieldManager, b, subresource)
if err != nil {
@@ -71,7 +71,7 @@ func extractTemplateInstance(templateInstance *apitemplatev1.TemplateInstance, f
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *TemplateInstanceApplyConfiguration) WithKind(value string) *TemplateInstanceApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -79,7 +79,7 @@ func (b *TemplateInstanceApplyConfiguration) WithKind(value string) *TemplateIns
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *TemplateInstanceApplyConfiguration) WithAPIVersion(value string) *TemplateInstanceApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -88,7 +88,7 @@ func (b *TemplateInstanceApplyConfiguration) WithAPIVersion(value string) *Templ
// If called multiple times, the Name field is set to the value of the last call.
func (b *TemplateInstanceApplyConfiguration) WithName(value string) *TemplateInstanceApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -97,7 +97,7 @@ func (b *TemplateInstanceApplyConfiguration) WithName(value string) *TemplateIns
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *TemplateInstanceApplyConfiguration) WithGenerateName(value string) *TemplateInstanceApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -106,7 +106,7 @@ func (b *TemplateInstanceApplyConfiguration) WithGenerateName(value string) *Tem
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *TemplateInstanceApplyConfiguration) WithNamespace(value string) *TemplateInstanceApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -115,7 +115,7 @@ func (b *TemplateInstanceApplyConfiguration) WithNamespace(value string) *Templa
// If called multiple times, the UID field is set to the value of the last call.
func (b *TemplateInstanceApplyConfiguration) WithUID(value types.UID) *TemplateInstanceApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -124,7 +124,7 @@ func (b *TemplateInstanceApplyConfiguration) WithUID(value types.UID) *TemplateI
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *TemplateInstanceApplyConfiguration) WithResourceVersion(value string) *TemplateInstanceApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -133,25 +133,25 @@ func (b *TemplateInstanceApplyConfiguration) WithResourceVersion(value string) *
// If called multiple times, the Generation field is set to the value of the last call.
func (b *TemplateInstanceApplyConfiguration) WithGeneration(value int64) *TemplateInstanceApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *TemplateInstanceApplyConfiguration) WithCreationTimestamp(value metav1.Time) *TemplateInstanceApplyConfiguration {
+func (b *TemplateInstanceApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *TemplateInstanceApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *TemplateInstanceApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *TemplateInstanceApplyConfiguration {
+func (b *TemplateInstanceApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *TemplateInstanceApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -160,7 +160,7 @@ func (b *TemplateInstanceApplyConfiguration) WithDeletionTimestamp(value metav1.
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *TemplateInstanceApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *TemplateInstanceApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -170,11 +170,11 @@ func (b *TemplateInstanceApplyConfiguration) WithDeletionGracePeriodSeconds(valu
// overwriting an existing map entries in Labels field with the same key.
func (b *TemplateInstanceApplyConfiguration) WithLabels(entries map[string]string) *TemplateInstanceApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -185,11 +185,11 @@ func (b *TemplateInstanceApplyConfiguration) WithLabels(entries map[string]strin
// overwriting an existing map entries in Annotations field with the same key.
func (b *TemplateInstanceApplyConfiguration) WithAnnotations(entries map[string]string) *TemplateInstanceApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -197,13 +197,13 @@ func (b *TemplateInstanceApplyConfiguration) WithAnnotations(entries map[string]
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *TemplateInstanceApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *TemplateInstanceApplyConfiguration {
+func (b *TemplateInstanceApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *TemplateInstanceApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -214,14 +214,14 @@ func (b *TemplateInstanceApplyConfiguration) WithOwnerReferences(values ...*v1.O
func (b *TemplateInstanceApplyConfiguration) WithFinalizers(values ...string) *TemplateInstanceApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *TemplateInstanceApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -244,5 +244,5 @@ func (b *TemplateInstanceApplyConfiguration) WithStatus(value *TemplateInstanceS
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *TemplateInstanceApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/template/applyconfigurations/template/v1/templateinstancecondition.go b/template/applyconfigurations/template/v1/templateinstancecondition.go
index 2b9e181d0..564bc8023 100644
--- a/template/applyconfigurations/template/v1/templateinstancecondition.go
+++ b/template/applyconfigurations/template/v1/templateinstancecondition.go
@@ -3,7 +3,7 @@
package v1
import (
- v1 "github.com/openshift/api/template/v1"
+ templatev1 "github.com/openshift/api/template/v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
@@ -11,11 +11,11 @@ import (
// TemplateInstanceConditionApplyConfiguration represents a declarative configuration of the TemplateInstanceCondition type for use
// with apply.
type TemplateInstanceConditionApplyConfiguration struct {
- Type *v1.TemplateInstanceConditionType `json:"type,omitempty"`
- Status *corev1.ConditionStatus `json:"status,omitempty"`
- LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
- Reason *string `json:"reason,omitempty"`
- Message *string `json:"message,omitempty"`
+ Type *templatev1.TemplateInstanceConditionType `json:"type,omitempty"`
+ Status *corev1.ConditionStatus `json:"status,omitempty"`
+ LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
+ Reason *string `json:"reason,omitempty"`
+ Message *string `json:"message,omitempty"`
}
// TemplateInstanceConditionApplyConfiguration constructs a declarative configuration of the TemplateInstanceCondition type for use with
@@ -27,7 +27,7 @@ func TemplateInstanceCondition() *TemplateInstanceConditionApplyConfiguration {
// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
-func (b *TemplateInstanceConditionApplyConfiguration) WithType(value v1.TemplateInstanceConditionType) *TemplateInstanceConditionApplyConfiguration {
+func (b *TemplateInstanceConditionApplyConfiguration) WithType(value templatev1.TemplateInstanceConditionType) *TemplateInstanceConditionApplyConfiguration {
b.Type = &value
return b
}
diff --git a/template/applyconfigurations/template/v1/templateinstanceobject.go b/template/applyconfigurations/template/v1/templateinstanceobject.go
index 90d2bd7fa..57fd15316 100644
--- a/template/applyconfigurations/template/v1/templateinstanceobject.go
+++ b/template/applyconfigurations/template/v1/templateinstanceobject.go
@@ -3,13 +3,13 @@
package v1
import (
- v1 "k8s.io/api/core/v1"
+ corev1 "k8s.io/api/core/v1"
)
// TemplateInstanceObjectApplyConfiguration represents a declarative configuration of the TemplateInstanceObject type for use
// with apply.
type TemplateInstanceObjectApplyConfiguration struct {
- Ref *v1.ObjectReference `json:"ref,omitempty"`
+ Ref *corev1.ObjectReference `json:"ref,omitempty"`
}
// TemplateInstanceObjectApplyConfiguration constructs a declarative configuration of the TemplateInstanceObject type for use with
@@ -21,7 +21,7 @@ func TemplateInstanceObject() *TemplateInstanceObjectApplyConfiguration {
// WithRef sets the Ref field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Ref field is set to the value of the last call.
-func (b *TemplateInstanceObjectApplyConfiguration) WithRef(value v1.ObjectReference) *TemplateInstanceObjectApplyConfiguration {
+func (b *TemplateInstanceObjectApplyConfiguration) WithRef(value corev1.ObjectReference) *TemplateInstanceObjectApplyConfiguration {
b.Ref = &value
return b
}
diff --git a/template/applyconfigurations/template/v1/templateinstancerequester.go b/template/applyconfigurations/template/v1/templateinstancerequester.go
index fc41dd6f1..66bd8eb1c 100644
--- a/template/applyconfigurations/template/v1/templateinstancerequester.go
+++ b/template/applyconfigurations/template/v1/templateinstancerequester.go
@@ -3,16 +3,16 @@
package v1
import (
- v1 "github.com/openshift/api/template/v1"
+ templatev1 "github.com/openshift/api/template/v1"
)
// TemplateInstanceRequesterApplyConfiguration represents a declarative configuration of the TemplateInstanceRequester type for use
// with apply.
type TemplateInstanceRequesterApplyConfiguration struct {
- Username *string `json:"username,omitempty"`
- UID *string `json:"uid,omitempty"`
- Groups []string `json:"groups,omitempty"`
- Extra map[string]v1.ExtraValue `json:"extra,omitempty"`
+ Username *string `json:"username,omitempty"`
+ UID *string `json:"uid,omitempty"`
+ Groups []string `json:"groups,omitempty"`
+ Extra map[string]templatev1.ExtraValue `json:"extra,omitempty"`
}
// TemplateInstanceRequesterApplyConfiguration constructs a declarative configuration of the TemplateInstanceRequester type for use with
@@ -51,9 +51,9 @@ func (b *TemplateInstanceRequesterApplyConfiguration) WithGroups(values ...strin
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, the entries provided by each call will be put on the Extra field,
// overwriting an existing map entries in Extra field with the same key.
-func (b *TemplateInstanceRequesterApplyConfiguration) WithExtra(entries map[string]v1.ExtraValue) *TemplateInstanceRequesterApplyConfiguration {
+func (b *TemplateInstanceRequesterApplyConfiguration) WithExtra(entries map[string]templatev1.ExtraValue) *TemplateInstanceRequesterApplyConfiguration {
if b.Extra == nil && len(entries) > 0 {
- b.Extra = make(map[string]v1.ExtraValue, len(entries))
+ b.Extra = make(map[string]templatev1.ExtraValue, len(entries))
}
for k, v := range entries {
b.Extra[k] = v
diff --git a/template/clientset/versioned/clientset.go b/template/clientset/versioned/clientset.go
index 567fa2051..ca7dc6db6 100644
--- a/template/clientset/versioned/clientset.go
+++ b/template/clientset/versioned/clientset.go
@@ -3,8 +3,8 @@
package versioned
import (
- "fmt"
- "net/http"
+ fmt "fmt"
+ http "net/http"
templatev1 "github.com/openshift/client-go/template/clientset/versioned/typed/template/v1"
discovery "k8s.io/client-go/discovery"
diff --git a/template/clientset/versioned/typed/template/v1/brokertemplateinstance.go b/template/clientset/versioned/typed/template/v1/brokertemplateinstance.go
index 0c936ea6c..e25f0c0de 100644
--- a/template/clientset/versioned/typed/template/v1/brokertemplateinstance.go
+++ b/template/clientset/versioned/typed/template/v1/brokertemplateinstance.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/template/v1"
- templatev1 "github.com/openshift/client-go/template/applyconfigurations/template/v1"
+ templatev1 "github.com/openshift/api/template/v1"
+ applyconfigurationstemplatev1 "github.com/openshift/client-go/template/applyconfigurations/template/v1"
scheme "github.com/openshift/client-go/template/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,32 +22,33 @@ type BrokerTemplateInstancesGetter interface {
// BrokerTemplateInstanceInterface has methods to work with BrokerTemplateInstance resources.
type BrokerTemplateInstanceInterface interface {
- Create(ctx context.Context, brokerTemplateInstance *v1.BrokerTemplateInstance, opts metav1.CreateOptions) (*v1.BrokerTemplateInstance, error)
- Update(ctx context.Context, brokerTemplateInstance *v1.BrokerTemplateInstance, opts metav1.UpdateOptions) (*v1.BrokerTemplateInstance, error)
+ Create(ctx context.Context, brokerTemplateInstance *templatev1.BrokerTemplateInstance, opts metav1.CreateOptions) (*templatev1.BrokerTemplateInstance, error)
+ Update(ctx context.Context, brokerTemplateInstance *templatev1.BrokerTemplateInstance, opts metav1.UpdateOptions) (*templatev1.BrokerTemplateInstance, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.BrokerTemplateInstance, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.BrokerTemplateInstanceList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*templatev1.BrokerTemplateInstance, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*templatev1.BrokerTemplateInstanceList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.BrokerTemplateInstance, err error)
- Apply(ctx context.Context, brokerTemplateInstance *templatev1.BrokerTemplateInstanceApplyConfiguration, opts metav1.ApplyOptions) (result *v1.BrokerTemplateInstance, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *templatev1.BrokerTemplateInstance, err error)
+ Apply(ctx context.Context, brokerTemplateInstance *applyconfigurationstemplatev1.BrokerTemplateInstanceApplyConfiguration, opts metav1.ApplyOptions) (result *templatev1.BrokerTemplateInstance, err error)
BrokerTemplateInstanceExpansion
}
// brokerTemplateInstances implements BrokerTemplateInstanceInterface
type brokerTemplateInstances struct {
- *gentype.ClientWithListAndApply[*v1.BrokerTemplateInstance, *v1.BrokerTemplateInstanceList, *templatev1.BrokerTemplateInstanceApplyConfiguration]
+ *gentype.ClientWithListAndApply[*templatev1.BrokerTemplateInstance, *templatev1.BrokerTemplateInstanceList, *applyconfigurationstemplatev1.BrokerTemplateInstanceApplyConfiguration]
}
// newBrokerTemplateInstances returns a BrokerTemplateInstances
func newBrokerTemplateInstances(c *TemplateV1Client) *brokerTemplateInstances {
return &brokerTemplateInstances{
- gentype.NewClientWithListAndApply[*v1.BrokerTemplateInstance, *v1.BrokerTemplateInstanceList, *templatev1.BrokerTemplateInstanceApplyConfiguration](
+ gentype.NewClientWithListAndApply[*templatev1.BrokerTemplateInstance, *templatev1.BrokerTemplateInstanceList, *applyconfigurationstemplatev1.BrokerTemplateInstanceApplyConfiguration](
"brokertemplateinstances",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.BrokerTemplateInstance { return &v1.BrokerTemplateInstance{} },
- func() *v1.BrokerTemplateInstanceList { return &v1.BrokerTemplateInstanceList{} }),
+ func() *templatev1.BrokerTemplateInstance { return &templatev1.BrokerTemplateInstance{} },
+ func() *templatev1.BrokerTemplateInstanceList { return &templatev1.BrokerTemplateInstanceList{} },
+ ),
}
}
diff --git a/template/clientset/versioned/typed/template/v1/fake/fake_brokertemplateinstance.go b/template/clientset/versioned/typed/template/v1/fake/fake_brokertemplateinstance.go
index 62ec1f533..226375154 100644
--- a/template/clientset/versioned/typed/template/v1/fake/fake_brokertemplateinstance.go
+++ b/template/clientset/versioned/typed/template/v1/fake/fake_brokertemplateinstance.go
@@ -3,133 +3,35 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/template/v1"
templatev1 "github.com/openshift/client-go/template/applyconfigurations/template/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedtemplatev1 "github.com/openshift/client-go/template/clientset/versioned/typed/template/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeBrokerTemplateInstances implements BrokerTemplateInstanceInterface
-type FakeBrokerTemplateInstances struct {
+// fakeBrokerTemplateInstances implements BrokerTemplateInstanceInterface
+type fakeBrokerTemplateInstances struct {
+ *gentype.FakeClientWithListAndApply[*v1.BrokerTemplateInstance, *v1.BrokerTemplateInstanceList, *templatev1.BrokerTemplateInstanceApplyConfiguration]
Fake *FakeTemplateV1
}
-var brokertemplateinstancesResource = v1.SchemeGroupVersion.WithResource("brokertemplateinstances")
-
-var brokertemplateinstancesKind = v1.SchemeGroupVersion.WithKind("BrokerTemplateInstance")
-
-// Get takes name of the brokerTemplateInstance, and returns the corresponding brokerTemplateInstance object, and an error if there is any.
-func (c *FakeBrokerTemplateInstances) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.BrokerTemplateInstance, err error) {
- emptyResult := &v1.BrokerTemplateInstance{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(brokertemplateinstancesResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.BrokerTemplateInstance), err
-}
-
-// List takes label and field selectors, and returns the list of BrokerTemplateInstances that match those selectors.
-func (c *FakeBrokerTemplateInstances) List(ctx context.Context, opts metav1.ListOptions) (result *v1.BrokerTemplateInstanceList, err error) {
- emptyResult := &v1.BrokerTemplateInstanceList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(brokertemplateinstancesResource, brokertemplateinstancesKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.BrokerTemplateInstanceList{ListMeta: obj.(*v1.BrokerTemplateInstanceList).ListMeta}
- for _, item := range obj.(*v1.BrokerTemplateInstanceList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested brokerTemplateInstances.
-func (c *FakeBrokerTemplateInstances) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(brokertemplateinstancesResource, opts))
-}
-
-// Create takes the representation of a brokerTemplateInstance and creates it. Returns the server's representation of the brokerTemplateInstance, and an error, if there is any.
-func (c *FakeBrokerTemplateInstances) Create(ctx context.Context, brokerTemplateInstance *v1.BrokerTemplateInstance, opts metav1.CreateOptions) (result *v1.BrokerTemplateInstance, err error) {
- emptyResult := &v1.BrokerTemplateInstance{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(brokertemplateinstancesResource, brokerTemplateInstance, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.BrokerTemplateInstance), err
-}
-
-// Update takes the representation of a brokerTemplateInstance and updates it. Returns the server's representation of the brokerTemplateInstance, and an error, if there is any.
-func (c *FakeBrokerTemplateInstances) Update(ctx context.Context, brokerTemplateInstance *v1.BrokerTemplateInstance, opts metav1.UpdateOptions) (result *v1.BrokerTemplateInstance, err error) {
- emptyResult := &v1.BrokerTemplateInstance{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(brokertemplateinstancesResource, brokerTemplateInstance, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.BrokerTemplateInstance), err
-}
-
-// Delete takes name of the brokerTemplateInstance and deletes it. Returns an error if one occurs.
-func (c *FakeBrokerTemplateInstances) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(brokertemplateinstancesResource, name, opts), &v1.BrokerTemplateInstance{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeBrokerTemplateInstances) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(brokertemplateinstancesResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.BrokerTemplateInstanceList{})
- return err
-}
-
-// Patch applies the patch and returns the patched brokerTemplateInstance.
-func (c *FakeBrokerTemplateInstances) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.BrokerTemplateInstance, err error) {
- emptyResult := &v1.BrokerTemplateInstance{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(brokertemplateinstancesResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.BrokerTemplateInstance), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied brokerTemplateInstance.
-func (c *FakeBrokerTemplateInstances) Apply(ctx context.Context, brokerTemplateInstance *templatev1.BrokerTemplateInstanceApplyConfiguration, opts metav1.ApplyOptions) (result *v1.BrokerTemplateInstance, err error) {
- if brokerTemplateInstance == nil {
- return nil, fmt.Errorf("brokerTemplateInstance provided to Apply must not be nil")
- }
- data, err := json.Marshal(brokerTemplateInstance)
- if err != nil {
- return nil, err
- }
- name := brokerTemplateInstance.Name
- if name == nil {
- return nil, fmt.Errorf("brokerTemplateInstance.Name must be provided to Apply")
- }
- emptyResult := &v1.BrokerTemplateInstance{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(brokertemplateinstancesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeBrokerTemplateInstances(fake *FakeTemplateV1) typedtemplatev1.BrokerTemplateInstanceInterface {
+ return &fakeBrokerTemplateInstances{
+ gentype.NewFakeClientWithListAndApply[*v1.BrokerTemplateInstance, *v1.BrokerTemplateInstanceList, *templatev1.BrokerTemplateInstanceApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("brokertemplateinstances"),
+ v1.SchemeGroupVersion.WithKind("BrokerTemplateInstance"),
+ func() *v1.BrokerTemplateInstance { return &v1.BrokerTemplateInstance{} },
+ func() *v1.BrokerTemplateInstanceList { return &v1.BrokerTemplateInstanceList{} },
+ func(dst, src *v1.BrokerTemplateInstanceList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.BrokerTemplateInstanceList) []*v1.BrokerTemplateInstance {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1.BrokerTemplateInstanceList, items []*v1.BrokerTemplateInstance) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.BrokerTemplateInstance), err
}
diff --git a/template/clientset/versioned/typed/template/v1/fake/fake_template.go b/template/clientset/versioned/typed/template/v1/fake/fake_template.go
index a5842edcf..58f4eedd6 100644
--- a/template/clientset/versioned/typed/template/v1/fake/fake_template.go
+++ b/template/clientset/versioned/typed/template/v1/fake/fake_template.go
@@ -3,142 +3,31 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/template/v1"
templatev1 "github.com/openshift/client-go/template/applyconfigurations/template/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedtemplatev1 "github.com/openshift/client-go/template/clientset/versioned/typed/template/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeTemplates implements TemplateInterface
-type FakeTemplates struct {
+// fakeTemplates implements TemplateInterface
+type fakeTemplates struct {
+ *gentype.FakeClientWithListAndApply[*v1.Template, *v1.TemplateList, *templatev1.TemplateApplyConfiguration]
Fake *FakeTemplateV1
- ns string
-}
-
-var templatesResource = v1.SchemeGroupVersion.WithResource("templates")
-
-var templatesKind = v1.SchemeGroupVersion.WithKind("Template")
-
-// Get takes name of the template, and returns the corresponding template object, and an error if there is any.
-func (c *FakeTemplates) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Template, err error) {
- emptyResult := &v1.Template{}
- obj, err := c.Fake.
- Invokes(testing.NewGetActionWithOptions(templatesResource, c.ns, name, options), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Template), err
-}
-
-// List takes label and field selectors, and returns the list of Templates that match those selectors.
-func (c *FakeTemplates) List(ctx context.Context, opts metav1.ListOptions) (result *v1.TemplateList, err error) {
- emptyResult := &v1.TemplateList{}
- obj, err := c.Fake.
- Invokes(testing.NewListActionWithOptions(templatesResource, templatesKind, c.ns, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.TemplateList{ListMeta: obj.(*v1.TemplateList).ListMeta}
- for _, item := range obj.(*v1.TemplateList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested templates.
-func (c *FakeTemplates) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewWatchActionWithOptions(templatesResource, c.ns, opts))
-
}
-// Create takes the representation of a template and creates it. Returns the server's representation of the template, and an error, if there is any.
-func (c *FakeTemplates) Create(ctx context.Context, template *v1.Template, opts metav1.CreateOptions) (result *v1.Template, err error) {
- emptyResult := &v1.Template{}
- obj, err := c.Fake.
- Invokes(testing.NewCreateActionWithOptions(templatesResource, c.ns, template, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Template), err
-}
-
-// Update takes the representation of a template and updates it. Returns the server's representation of the template, and an error, if there is any.
-func (c *FakeTemplates) Update(ctx context.Context, template *v1.Template, opts metav1.UpdateOptions) (result *v1.Template, err error) {
- emptyResult := &v1.Template{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateActionWithOptions(templatesResource, c.ns, template, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Template), err
-}
-
-// Delete takes name of the template and deletes it. Returns an error if one occurs.
-func (c *FakeTemplates) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewDeleteActionWithOptions(templatesResource, c.ns, name, opts), &v1.Template{})
-
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeTemplates) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewDeleteCollectionActionWithOptions(templatesResource, c.ns, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.TemplateList{})
- return err
-}
-
-// Patch applies the patch and returns the patched template.
-func (c *FakeTemplates) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Template, err error) {
- emptyResult := &v1.Template{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(templatesResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Template), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied template.
-func (c *FakeTemplates) Apply(ctx context.Context, template *templatev1.TemplateApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Template, err error) {
- if template == nil {
- return nil, fmt.Errorf("template provided to Apply must not be nil")
- }
- data, err := json.Marshal(template)
- if err != nil {
- return nil, err
- }
- name := template.Name
- if name == nil {
- return nil, fmt.Errorf("template.Name must be provided to Apply")
- }
- emptyResult := &v1.Template{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(templatesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
-
- if obj == nil {
- return emptyResult, err
+func newFakeTemplates(fake *FakeTemplateV1, namespace string) typedtemplatev1.TemplateInterface {
+ return &fakeTemplates{
+ gentype.NewFakeClientWithListAndApply[*v1.Template, *v1.TemplateList, *templatev1.TemplateApplyConfiguration](
+ fake.Fake,
+ namespace,
+ v1.SchemeGroupVersion.WithResource("templates"),
+ v1.SchemeGroupVersion.WithKind("Template"),
+ func() *v1.Template { return &v1.Template{} },
+ func() *v1.TemplateList { return &v1.TemplateList{} },
+ func(dst, src *v1.TemplateList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.TemplateList) []*v1.Template { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.TemplateList, items []*v1.Template) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.Template), err
}
diff --git a/template/clientset/versioned/typed/template/v1/fake/fake_template_client.go b/template/clientset/versioned/typed/template/v1/fake/fake_template_client.go
index 0cc29a7c2..3bb244cb5 100644
--- a/template/clientset/versioned/typed/template/v1/fake/fake_template_client.go
+++ b/template/clientset/versioned/typed/template/v1/fake/fake_template_client.go
@@ -13,15 +13,15 @@ type FakeTemplateV1 struct {
}
func (c *FakeTemplateV1) BrokerTemplateInstances() v1.BrokerTemplateInstanceInterface {
- return &FakeBrokerTemplateInstances{c}
+ return newFakeBrokerTemplateInstances(c)
}
func (c *FakeTemplateV1) Templates(namespace string) v1.TemplateInterface {
- return &FakeTemplates{c, namespace}
+ return newFakeTemplates(c, namespace)
}
func (c *FakeTemplateV1) TemplateInstances(namespace string) v1.TemplateInstanceInterface {
- return &FakeTemplateInstances{c, namespace}
+ return newFakeTemplateInstances(c, namespace)
}
// RESTClient returns a RESTClient that is used to communicate
diff --git a/template/clientset/versioned/typed/template/v1/fake/fake_templateinstance.go b/template/clientset/versioned/typed/template/v1/fake/fake_templateinstance.go
index bcc87af21..e47e8a35a 100644
--- a/template/clientset/versioned/typed/template/v1/fake/fake_templateinstance.go
+++ b/template/clientset/versioned/typed/template/v1/fake/fake_templateinstance.go
@@ -3,179 +3,33 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/template/v1"
templatev1 "github.com/openshift/client-go/template/applyconfigurations/template/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typedtemplatev1 "github.com/openshift/client-go/template/clientset/versioned/typed/template/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeTemplateInstances implements TemplateInstanceInterface
-type FakeTemplateInstances struct {
+// fakeTemplateInstances implements TemplateInstanceInterface
+type fakeTemplateInstances struct {
+ *gentype.FakeClientWithListAndApply[*v1.TemplateInstance, *v1.TemplateInstanceList, *templatev1.TemplateInstanceApplyConfiguration]
Fake *FakeTemplateV1
- ns string
-}
-
-var templateinstancesResource = v1.SchemeGroupVersion.WithResource("templateinstances")
-
-var templateinstancesKind = v1.SchemeGroupVersion.WithKind("TemplateInstance")
-
-// Get takes name of the templateInstance, and returns the corresponding templateInstance object, and an error if there is any.
-func (c *FakeTemplateInstances) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.TemplateInstance, err error) {
- emptyResult := &v1.TemplateInstance{}
- obj, err := c.Fake.
- Invokes(testing.NewGetActionWithOptions(templateinstancesResource, c.ns, name, options), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.TemplateInstance), err
-}
-
-// List takes label and field selectors, and returns the list of TemplateInstances that match those selectors.
-func (c *FakeTemplateInstances) List(ctx context.Context, opts metav1.ListOptions) (result *v1.TemplateInstanceList, err error) {
- emptyResult := &v1.TemplateInstanceList{}
- obj, err := c.Fake.
- Invokes(testing.NewListActionWithOptions(templateinstancesResource, templateinstancesKind, c.ns, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.TemplateInstanceList{ListMeta: obj.(*v1.TemplateInstanceList).ListMeta}
- for _, item := range obj.(*v1.TemplateInstanceList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested templateInstances.
-func (c *FakeTemplateInstances) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewWatchActionWithOptions(templateinstancesResource, c.ns, opts))
-
-}
-
-// Create takes the representation of a templateInstance and creates it. Returns the server's representation of the templateInstance, and an error, if there is any.
-func (c *FakeTemplateInstances) Create(ctx context.Context, templateInstance *v1.TemplateInstance, opts metav1.CreateOptions) (result *v1.TemplateInstance, err error) {
- emptyResult := &v1.TemplateInstance{}
- obj, err := c.Fake.
- Invokes(testing.NewCreateActionWithOptions(templateinstancesResource, c.ns, templateInstance, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.TemplateInstance), err
-}
-
-// Update takes the representation of a templateInstance and updates it. Returns the server's representation of the templateInstance, and an error, if there is any.
-func (c *FakeTemplateInstances) Update(ctx context.Context, templateInstance *v1.TemplateInstance, opts metav1.UpdateOptions) (result *v1.TemplateInstance, err error) {
- emptyResult := &v1.TemplateInstance{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateActionWithOptions(templateinstancesResource, c.ns, templateInstance, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.TemplateInstance), err
}
-// UpdateStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
-func (c *FakeTemplateInstances) UpdateStatus(ctx context.Context, templateInstance *v1.TemplateInstance, opts metav1.UpdateOptions) (result *v1.TemplateInstance, err error) {
- emptyResult := &v1.TemplateInstance{}
- obj, err := c.Fake.
- Invokes(testing.NewUpdateSubresourceActionWithOptions(templateinstancesResource, "status", c.ns, templateInstance, opts), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.TemplateInstance), err
-}
-
-// Delete takes name of the templateInstance and deletes it. Returns an error if one occurs.
-func (c *FakeTemplateInstances) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewDeleteActionWithOptions(templateinstancesResource, c.ns, name, opts), &v1.TemplateInstance{})
-
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeTemplateInstances) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewDeleteCollectionActionWithOptions(templateinstancesResource, c.ns, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.TemplateInstanceList{})
- return err
-}
-
-// Patch applies the patch and returns the patched templateInstance.
-func (c *FakeTemplateInstances) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.TemplateInstance, err error) {
- emptyResult := &v1.TemplateInstance{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(templateinstancesResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.TemplateInstance), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied templateInstance.
-func (c *FakeTemplateInstances) Apply(ctx context.Context, templateInstance *templatev1.TemplateInstanceApplyConfiguration, opts metav1.ApplyOptions) (result *v1.TemplateInstance, err error) {
- if templateInstance == nil {
- return nil, fmt.Errorf("templateInstance provided to Apply must not be nil")
- }
- data, err := json.Marshal(templateInstance)
- if err != nil {
- return nil, err
- }
- name := templateInstance.Name
- if name == nil {
- return nil, fmt.Errorf("templateInstance.Name must be provided to Apply")
- }
- emptyResult := &v1.TemplateInstance{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(templateinstancesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
-
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.TemplateInstance), err
-}
-
-// ApplyStatus was generated because the type contains a Status member.
-// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
-func (c *FakeTemplateInstances) ApplyStatus(ctx context.Context, templateInstance *templatev1.TemplateInstanceApplyConfiguration, opts metav1.ApplyOptions) (result *v1.TemplateInstance, err error) {
- if templateInstance == nil {
- return nil, fmt.Errorf("templateInstance provided to Apply must not be nil")
- }
- data, err := json.Marshal(templateInstance)
- if err != nil {
- return nil, err
- }
- name := templateInstance.Name
- if name == nil {
- return nil, fmt.Errorf("templateInstance.Name must be provided to Apply")
- }
- emptyResult := &v1.TemplateInstance{}
- obj, err := c.Fake.
- Invokes(testing.NewPatchSubresourceActionWithOptions(templateinstancesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
-
- if obj == nil {
- return emptyResult, err
+func newFakeTemplateInstances(fake *FakeTemplateV1, namespace string) typedtemplatev1.TemplateInstanceInterface {
+ return &fakeTemplateInstances{
+ gentype.NewFakeClientWithListAndApply[*v1.TemplateInstance, *v1.TemplateInstanceList, *templatev1.TemplateInstanceApplyConfiguration](
+ fake.Fake,
+ namespace,
+ v1.SchemeGroupVersion.WithResource("templateinstances"),
+ v1.SchemeGroupVersion.WithKind("TemplateInstance"),
+ func() *v1.TemplateInstance { return &v1.TemplateInstance{} },
+ func() *v1.TemplateInstanceList { return &v1.TemplateInstanceList{} },
+ func(dst, src *v1.TemplateInstanceList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.TemplateInstanceList) []*v1.TemplateInstance { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.TemplateInstanceList, items []*v1.TemplateInstance) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
}
- return obj.(*v1.TemplateInstance), err
}
diff --git a/template/clientset/versioned/typed/template/v1/template.go b/template/clientset/versioned/typed/template/v1/template.go
index a9b8df0e4..10d60cb28 100644
--- a/template/clientset/versioned/typed/template/v1/template.go
+++ b/template/clientset/versioned/typed/template/v1/template.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/template/v1"
- templatev1 "github.com/openshift/client-go/template/applyconfigurations/template/v1"
+ templatev1 "github.com/openshift/api/template/v1"
+ applyconfigurationstemplatev1 "github.com/openshift/client-go/template/applyconfigurations/template/v1"
scheme "github.com/openshift/client-go/template/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,32 +22,33 @@ type TemplatesGetter interface {
// TemplateInterface has methods to work with Template resources.
type TemplateInterface interface {
- Create(ctx context.Context, template *v1.Template, opts metav1.CreateOptions) (*v1.Template, error)
- Update(ctx context.Context, template *v1.Template, opts metav1.UpdateOptions) (*v1.Template, error)
+ Create(ctx context.Context, template *templatev1.Template, opts metav1.CreateOptions) (*templatev1.Template, error)
+ Update(ctx context.Context, template *templatev1.Template, opts metav1.UpdateOptions) (*templatev1.Template, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Template, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.TemplateList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*templatev1.Template, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*templatev1.TemplateList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Template, err error)
- Apply(ctx context.Context, template *templatev1.TemplateApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Template, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *templatev1.Template, err error)
+ Apply(ctx context.Context, template *applyconfigurationstemplatev1.TemplateApplyConfiguration, opts metav1.ApplyOptions) (result *templatev1.Template, err error)
TemplateExpansion
}
// templates implements TemplateInterface
type templates struct {
- *gentype.ClientWithListAndApply[*v1.Template, *v1.TemplateList, *templatev1.TemplateApplyConfiguration]
+ *gentype.ClientWithListAndApply[*templatev1.Template, *templatev1.TemplateList, *applyconfigurationstemplatev1.TemplateApplyConfiguration]
}
// newTemplates returns a Templates
func newTemplates(c *TemplateV1Client, namespace string) *templates {
return &templates{
- gentype.NewClientWithListAndApply[*v1.Template, *v1.TemplateList, *templatev1.TemplateApplyConfiguration](
+ gentype.NewClientWithListAndApply[*templatev1.Template, *templatev1.TemplateList, *applyconfigurationstemplatev1.TemplateApplyConfiguration](
"templates",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
- func() *v1.Template { return &v1.Template{} },
- func() *v1.TemplateList { return &v1.TemplateList{} }),
+ func() *templatev1.Template { return &templatev1.Template{} },
+ func() *templatev1.TemplateList { return &templatev1.TemplateList{} },
+ ),
}
}
diff --git a/template/clientset/versioned/typed/template/v1/template_client.go b/template/clientset/versioned/typed/template/v1/template_client.go
index c462840d8..73c07f0a1 100644
--- a/template/clientset/versioned/typed/template/v1/template_client.go
+++ b/template/clientset/versioned/typed/template/v1/template_client.go
@@ -3,10 +3,10 @@
package v1
import (
- "net/http"
+ http "net/http"
- v1 "github.com/openshift/api/template/v1"
- "github.com/openshift/client-go/template/clientset/versioned/scheme"
+ templatev1 "github.com/openshift/api/template/v1"
+ scheme "github.com/openshift/client-go/template/clientset/versioned/scheme"
rest "k8s.io/client-go/rest"
)
@@ -79,10 +79,10 @@ func New(c rest.Interface) *TemplateV1Client {
}
func setConfigDefaults(config *rest.Config) error {
- gv := v1.SchemeGroupVersion
+ gv := templatev1.SchemeGroupVersion
config.GroupVersion = &gv
config.APIPath = "/apis"
- config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
+ config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion()
if config.UserAgent == "" {
config.UserAgent = rest.DefaultKubernetesUserAgent()
diff --git a/template/clientset/versioned/typed/template/v1/templateinstance.go b/template/clientset/versioned/typed/template/v1/templateinstance.go
index a53ab3a1b..274003103 100644
--- a/template/clientset/versioned/typed/template/v1/templateinstance.go
+++ b/template/clientset/versioned/typed/template/v1/templateinstance.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/template/v1"
- templatev1 "github.com/openshift/client-go/template/applyconfigurations/template/v1"
+ templatev1 "github.com/openshift/api/template/v1"
+ applyconfigurationstemplatev1 "github.com/openshift/client-go/template/applyconfigurations/template/v1"
scheme "github.com/openshift/client-go/template/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,36 +22,37 @@ type TemplateInstancesGetter interface {
// TemplateInstanceInterface has methods to work with TemplateInstance resources.
type TemplateInstanceInterface interface {
- Create(ctx context.Context, templateInstance *v1.TemplateInstance, opts metav1.CreateOptions) (*v1.TemplateInstance, error)
- Update(ctx context.Context, templateInstance *v1.TemplateInstance, opts metav1.UpdateOptions) (*v1.TemplateInstance, error)
+ Create(ctx context.Context, templateInstance *templatev1.TemplateInstance, opts metav1.CreateOptions) (*templatev1.TemplateInstance, error)
+ Update(ctx context.Context, templateInstance *templatev1.TemplateInstance, opts metav1.UpdateOptions) (*templatev1.TemplateInstance, error)
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
- UpdateStatus(ctx context.Context, templateInstance *v1.TemplateInstance, opts metav1.UpdateOptions) (*v1.TemplateInstance, error)
+ UpdateStatus(ctx context.Context, templateInstance *templatev1.TemplateInstance, opts metav1.UpdateOptions) (*templatev1.TemplateInstance, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.TemplateInstance, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.TemplateInstanceList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*templatev1.TemplateInstance, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*templatev1.TemplateInstanceList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.TemplateInstance, err error)
- Apply(ctx context.Context, templateInstance *templatev1.TemplateInstanceApplyConfiguration, opts metav1.ApplyOptions) (result *v1.TemplateInstance, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *templatev1.TemplateInstance, err error)
+ Apply(ctx context.Context, templateInstance *applyconfigurationstemplatev1.TemplateInstanceApplyConfiguration, opts metav1.ApplyOptions) (result *templatev1.TemplateInstance, err error)
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
- ApplyStatus(ctx context.Context, templateInstance *templatev1.TemplateInstanceApplyConfiguration, opts metav1.ApplyOptions) (result *v1.TemplateInstance, err error)
+ ApplyStatus(ctx context.Context, templateInstance *applyconfigurationstemplatev1.TemplateInstanceApplyConfiguration, opts metav1.ApplyOptions) (result *templatev1.TemplateInstance, err error)
TemplateInstanceExpansion
}
// templateInstances implements TemplateInstanceInterface
type templateInstances struct {
- *gentype.ClientWithListAndApply[*v1.TemplateInstance, *v1.TemplateInstanceList, *templatev1.TemplateInstanceApplyConfiguration]
+ *gentype.ClientWithListAndApply[*templatev1.TemplateInstance, *templatev1.TemplateInstanceList, *applyconfigurationstemplatev1.TemplateInstanceApplyConfiguration]
}
// newTemplateInstances returns a TemplateInstances
func newTemplateInstances(c *TemplateV1Client, namespace string) *templateInstances {
return &templateInstances{
- gentype.NewClientWithListAndApply[*v1.TemplateInstance, *v1.TemplateInstanceList, *templatev1.TemplateInstanceApplyConfiguration](
+ gentype.NewClientWithListAndApply[*templatev1.TemplateInstance, *templatev1.TemplateInstanceList, *applyconfigurationstemplatev1.TemplateInstanceApplyConfiguration](
"templateinstances",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
- func() *v1.TemplateInstance { return &v1.TemplateInstance{} },
- func() *v1.TemplateInstanceList { return &v1.TemplateInstanceList{} }),
+ func() *templatev1.TemplateInstance { return &templatev1.TemplateInstance{} },
+ func() *templatev1.TemplateInstanceList { return &templatev1.TemplateInstanceList{} },
+ ),
}
}
diff --git a/template/informers/externalversions/generic.go b/template/informers/externalversions/generic.go
index 47ac89753..a87032f86 100644
--- a/template/informers/externalversions/generic.go
+++ b/template/informers/externalversions/generic.go
@@ -3,7 +3,7 @@
package externalversions
import (
- "fmt"
+ fmt "fmt"
v1 "github.com/openshift/api/template/v1"
schema "k8s.io/apimachinery/pkg/runtime/schema"
diff --git a/template/informers/externalversions/template/v1/brokertemplateinstance.go b/template/informers/externalversions/template/v1/brokertemplateinstance.go
index 5651bafc5..5bbd9f380 100644
--- a/template/informers/externalversions/template/v1/brokertemplateinstance.go
+++ b/template/informers/externalversions/template/v1/brokertemplateinstance.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- templatev1 "github.com/openshift/api/template/v1"
+ apitemplatev1 "github.com/openshift/api/template/v1"
versioned "github.com/openshift/client-go/template/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/template/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/template/listers/template/v1"
+ templatev1 "github.com/openshift/client-go/template/listers/template/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// BrokerTemplateInstances.
type BrokerTemplateInstanceInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.BrokerTemplateInstanceLister
+ Lister() templatev1.BrokerTemplateInstanceLister
}
type brokerTemplateInstanceInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredBrokerTemplateInstanceInformer(client versioned.Interface, resyn
return client.TemplateV1().BrokerTemplateInstances().Watch(context.TODO(), options)
},
},
- &templatev1.BrokerTemplateInstance{},
+ &apitemplatev1.BrokerTemplateInstance{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *brokerTemplateInstanceInformer) defaultInformer(client versioned.Interf
}
func (f *brokerTemplateInstanceInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&templatev1.BrokerTemplateInstance{}, f.defaultInformer)
+ return f.factory.InformerFor(&apitemplatev1.BrokerTemplateInstance{}, f.defaultInformer)
}
-func (f *brokerTemplateInstanceInformer) Lister() v1.BrokerTemplateInstanceLister {
- return v1.NewBrokerTemplateInstanceLister(f.Informer().GetIndexer())
+func (f *brokerTemplateInstanceInformer) Lister() templatev1.BrokerTemplateInstanceLister {
+ return templatev1.NewBrokerTemplateInstanceLister(f.Informer().GetIndexer())
}
diff --git a/template/informers/externalversions/template/v1/template.go b/template/informers/externalversions/template/v1/template.go
index dcc621389..600596951 100644
--- a/template/informers/externalversions/template/v1/template.go
+++ b/template/informers/externalversions/template/v1/template.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- templatev1 "github.com/openshift/api/template/v1"
+ apitemplatev1 "github.com/openshift/api/template/v1"
versioned "github.com/openshift/client-go/template/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/template/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/template/listers/template/v1"
+ templatev1 "github.com/openshift/client-go/template/listers/template/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// Templates.
type TemplateInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.TemplateLister
+ Lister() templatev1.TemplateLister
}
type templateInformer struct {
@@ -55,7 +55,7 @@ func NewFilteredTemplateInformer(client versioned.Interface, namespace string, r
return client.TemplateV1().Templates(namespace).Watch(context.TODO(), options)
},
},
- &templatev1.Template{},
+ &apitemplatev1.Template{},
resyncPeriod,
indexers,
)
@@ -66,9 +66,9 @@ func (f *templateInformer) defaultInformer(client versioned.Interface, resyncPer
}
func (f *templateInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&templatev1.Template{}, f.defaultInformer)
+ return f.factory.InformerFor(&apitemplatev1.Template{}, f.defaultInformer)
}
-func (f *templateInformer) Lister() v1.TemplateLister {
- return v1.NewTemplateLister(f.Informer().GetIndexer())
+func (f *templateInformer) Lister() templatev1.TemplateLister {
+ return templatev1.NewTemplateLister(f.Informer().GetIndexer())
}
diff --git a/template/informers/externalversions/template/v1/templateinstance.go b/template/informers/externalversions/template/v1/templateinstance.go
index c45181db7..cc3a5afa8 100644
--- a/template/informers/externalversions/template/v1/templateinstance.go
+++ b/template/informers/externalversions/template/v1/templateinstance.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- templatev1 "github.com/openshift/api/template/v1"
+ apitemplatev1 "github.com/openshift/api/template/v1"
versioned "github.com/openshift/client-go/template/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/template/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/template/listers/template/v1"
+ templatev1 "github.com/openshift/client-go/template/listers/template/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// TemplateInstances.
type TemplateInstanceInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.TemplateInstanceLister
+ Lister() templatev1.TemplateInstanceLister
}
type templateInstanceInformer struct {
@@ -55,7 +55,7 @@ func NewFilteredTemplateInstanceInformer(client versioned.Interface, namespace s
return client.TemplateV1().TemplateInstances(namespace).Watch(context.TODO(), options)
},
},
- &templatev1.TemplateInstance{},
+ &apitemplatev1.TemplateInstance{},
resyncPeriod,
indexers,
)
@@ -66,9 +66,9 @@ func (f *templateInstanceInformer) defaultInformer(client versioned.Interface, r
}
func (f *templateInstanceInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&templatev1.TemplateInstance{}, f.defaultInformer)
+ return f.factory.InformerFor(&apitemplatev1.TemplateInstance{}, f.defaultInformer)
}
-func (f *templateInstanceInformer) Lister() v1.TemplateInstanceLister {
- return v1.NewTemplateInstanceLister(f.Informer().GetIndexer())
+func (f *templateInstanceInformer) Lister() templatev1.TemplateInstanceLister {
+ return templatev1.NewTemplateInstanceLister(f.Informer().GetIndexer())
}
diff --git a/template/listers/template/v1/brokertemplateinstance.go b/template/listers/template/v1/brokertemplateinstance.go
index 44cb0b062..d854917cd 100644
--- a/template/listers/template/v1/brokertemplateinstance.go
+++ b/template/listers/template/v1/brokertemplateinstance.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/template/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ templatev1 "github.com/openshift/api/template/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// BrokerTemplateInstanceLister helps list BrokerTemplateInstances.
@@ -14,19 +14,19 @@ import (
type BrokerTemplateInstanceLister interface {
// List lists all BrokerTemplateInstances in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.BrokerTemplateInstance, err error)
+ List(selector labels.Selector) (ret []*templatev1.BrokerTemplateInstance, err error)
// Get retrieves the BrokerTemplateInstance from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.BrokerTemplateInstance, error)
+ Get(name string) (*templatev1.BrokerTemplateInstance, error)
BrokerTemplateInstanceListerExpansion
}
// brokerTemplateInstanceLister implements the BrokerTemplateInstanceLister interface.
type brokerTemplateInstanceLister struct {
- listers.ResourceIndexer[*v1.BrokerTemplateInstance]
+ listers.ResourceIndexer[*templatev1.BrokerTemplateInstance]
}
// NewBrokerTemplateInstanceLister returns a new BrokerTemplateInstanceLister.
func NewBrokerTemplateInstanceLister(indexer cache.Indexer) BrokerTemplateInstanceLister {
- return &brokerTemplateInstanceLister{listers.New[*v1.BrokerTemplateInstance](indexer, v1.Resource("brokertemplateinstance"))}
+ return &brokerTemplateInstanceLister{listers.New[*templatev1.BrokerTemplateInstance](indexer, templatev1.Resource("brokertemplateinstance"))}
}
diff --git a/template/listers/template/v1/template.go b/template/listers/template/v1/template.go
index cfe88725c..0f84e2d4f 100644
--- a/template/listers/template/v1/template.go
+++ b/template/listers/template/v1/template.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/template/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ templatev1 "github.com/openshift/api/template/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// TemplateLister helps list Templates.
@@ -14,7 +14,7 @@ import (
type TemplateLister interface {
// List lists all Templates in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.Template, err error)
+ List(selector labels.Selector) (ret []*templatev1.Template, err error)
// Templates returns an object that can list and get Templates.
Templates(namespace string) TemplateNamespaceLister
TemplateListerExpansion
@@ -22,17 +22,17 @@ type TemplateLister interface {
// templateLister implements the TemplateLister interface.
type templateLister struct {
- listers.ResourceIndexer[*v1.Template]
+ listers.ResourceIndexer[*templatev1.Template]
}
// NewTemplateLister returns a new TemplateLister.
func NewTemplateLister(indexer cache.Indexer) TemplateLister {
- return &templateLister{listers.New[*v1.Template](indexer, v1.Resource("template"))}
+ return &templateLister{listers.New[*templatev1.Template](indexer, templatev1.Resource("template"))}
}
// Templates returns an object that can list and get Templates.
func (s *templateLister) Templates(namespace string) TemplateNamespaceLister {
- return templateNamespaceLister{listers.NewNamespaced[*v1.Template](s.ResourceIndexer, namespace)}
+ return templateNamespaceLister{listers.NewNamespaced[*templatev1.Template](s.ResourceIndexer, namespace)}
}
// TemplateNamespaceLister helps list and get Templates.
@@ -40,15 +40,15 @@ func (s *templateLister) Templates(namespace string) TemplateNamespaceLister {
type TemplateNamespaceLister interface {
// List lists all Templates in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.Template, err error)
+ List(selector labels.Selector) (ret []*templatev1.Template, err error)
// Get retrieves the Template from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.Template, error)
+ Get(name string) (*templatev1.Template, error)
TemplateNamespaceListerExpansion
}
// templateNamespaceLister implements the TemplateNamespaceLister
// interface.
type templateNamespaceLister struct {
- listers.ResourceIndexer[*v1.Template]
+ listers.ResourceIndexer[*templatev1.Template]
}
diff --git a/template/listers/template/v1/templateinstance.go b/template/listers/template/v1/templateinstance.go
index d8223a92e..3bc83c475 100644
--- a/template/listers/template/v1/templateinstance.go
+++ b/template/listers/template/v1/templateinstance.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/template/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ templatev1 "github.com/openshift/api/template/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// TemplateInstanceLister helps list TemplateInstances.
@@ -14,7 +14,7 @@ import (
type TemplateInstanceLister interface {
// List lists all TemplateInstances in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.TemplateInstance, err error)
+ List(selector labels.Selector) (ret []*templatev1.TemplateInstance, err error)
// TemplateInstances returns an object that can list and get TemplateInstances.
TemplateInstances(namespace string) TemplateInstanceNamespaceLister
TemplateInstanceListerExpansion
@@ -22,17 +22,17 @@ type TemplateInstanceLister interface {
// templateInstanceLister implements the TemplateInstanceLister interface.
type templateInstanceLister struct {
- listers.ResourceIndexer[*v1.TemplateInstance]
+ listers.ResourceIndexer[*templatev1.TemplateInstance]
}
// NewTemplateInstanceLister returns a new TemplateInstanceLister.
func NewTemplateInstanceLister(indexer cache.Indexer) TemplateInstanceLister {
- return &templateInstanceLister{listers.New[*v1.TemplateInstance](indexer, v1.Resource("templateinstance"))}
+ return &templateInstanceLister{listers.New[*templatev1.TemplateInstance](indexer, templatev1.Resource("templateinstance"))}
}
// TemplateInstances returns an object that can list and get TemplateInstances.
func (s *templateInstanceLister) TemplateInstances(namespace string) TemplateInstanceNamespaceLister {
- return templateInstanceNamespaceLister{listers.NewNamespaced[*v1.TemplateInstance](s.ResourceIndexer, namespace)}
+ return templateInstanceNamespaceLister{listers.NewNamespaced[*templatev1.TemplateInstance](s.ResourceIndexer, namespace)}
}
// TemplateInstanceNamespaceLister helps list and get TemplateInstances.
@@ -40,15 +40,15 @@ func (s *templateInstanceLister) TemplateInstances(namespace string) TemplateIns
type TemplateInstanceNamespaceLister interface {
// List lists all TemplateInstances in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.TemplateInstance, err error)
+ List(selector labels.Selector) (ret []*templatev1.TemplateInstance, err error)
// Get retrieves the TemplateInstance from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.TemplateInstance, error)
+ Get(name string) (*templatev1.TemplateInstance, error)
TemplateInstanceNamespaceListerExpansion
}
// templateInstanceNamespaceLister implements the TemplateInstanceNamespaceLister
// interface.
type templateInstanceNamespaceLister struct {
- listers.ResourceIndexer[*v1.TemplateInstance]
+ listers.ResourceIndexer[*templatev1.TemplateInstance]
}
diff --git a/user/applyconfigurations/internal/internal.go b/user/applyconfigurations/internal/internal.go
index 0d01eb686..55c7dfa0d 100644
--- a/user/applyconfigurations/internal/internal.go
+++ b/user/applyconfigurations/internal/internal.go
@@ -3,8 +3,8 @@
package internal
import (
- "fmt"
- "sync"
+ fmt "fmt"
+ sync "sync"
typed "sigs.k8s.io/structured-merge-diff/v4/typed"
)
diff --git a/user/applyconfigurations/user/v1/group.go b/user/applyconfigurations/user/v1/group.go
index 266cfb54e..c6cdc9a09 100644
--- a/user/applyconfigurations/user/v1/group.go
+++ b/user/applyconfigurations/user/v1/group.go
@@ -5,18 +5,18 @@ package v1
import (
userv1 "github.com/openshift/api/user/v1"
internal "github.com/openshift/client-go/user/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// GroupApplyConfiguration represents a declarative configuration of the Group type for use
// with apply.
type GroupApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- Users *userv1.OptionalNames `json:"users,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Users *userv1.OptionalNames `json:"users,omitempty"`
}
// Group constructs a declarative configuration of the Group type for use with
@@ -68,7 +68,7 @@ func extractGroup(group *userv1.Group, fieldManager string, subresource string)
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *GroupApplyConfiguration) WithKind(value string) *GroupApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -76,7 +76,7 @@ func (b *GroupApplyConfiguration) WithKind(value string) *GroupApplyConfiguratio
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *GroupApplyConfiguration) WithAPIVersion(value string) *GroupApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -85,7 +85,7 @@ func (b *GroupApplyConfiguration) WithAPIVersion(value string) *GroupApplyConfig
// If called multiple times, the Name field is set to the value of the last call.
func (b *GroupApplyConfiguration) WithName(value string) *GroupApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -94,7 +94,7 @@ func (b *GroupApplyConfiguration) WithName(value string) *GroupApplyConfiguratio
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *GroupApplyConfiguration) WithGenerateName(value string) *GroupApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -103,7 +103,7 @@ func (b *GroupApplyConfiguration) WithGenerateName(value string) *GroupApplyConf
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *GroupApplyConfiguration) WithNamespace(value string) *GroupApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -112,7 +112,7 @@ func (b *GroupApplyConfiguration) WithNamespace(value string) *GroupApplyConfigu
// If called multiple times, the UID field is set to the value of the last call.
func (b *GroupApplyConfiguration) WithUID(value types.UID) *GroupApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -121,7 +121,7 @@ func (b *GroupApplyConfiguration) WithUID(value types.UID) *GroupApplyConfigurat
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *GroupApplyConfiguration) WithResourceVersion(value string) *GroupApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -130,25 +130,25 @@ func (b *GroupApplyConfiguration) WithResourceVersion(value string) *GroupApplyC
// If called multiple times, the Generation field is set to the value of the last call.
func (b *GroupApplyConfiguration) WithGeneration(value int64) *GroupApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *GroupApplyConfiguration) WithCreationTimestamp(value metav1.Time) *GroupApplyConfiguration {
+func (b *GroupApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *GroupApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *GroupApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *GroupApplyConfiguration {
+func (b *GroupApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *GroupApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -157,7 +157,7 @@ func (b *GroupApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *Grou
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *GroupApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *GroupApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -167,11 +167,11 @@ func (b *GroupApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *G
// overwriting an existing map entries in Labels field with the same key.
func (b *GroupApplyConfiguration) WithLabels(entries map[string]string) *GroupApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -182,11 +182,11 @@ func (b *GroupApplyConfiguration) WithLabels(entries map[string]string) *GroupAp
// overwriting an existing map entries in Annotations field with the same key.
func (b *GroupApplyConfiguration) WithAnnotations(entries map[string]string) *GroupApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -194,13 +194,13 @@ func (b *GroupApplyConfiguration) WithAnnotations(entries map[string]string) *Gr
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *GroupApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *GroupApplyConfiguration {
+func (b *GroupApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *GroupApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -211,14 +211,14 @@ func (b *GroupApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferen
func (b *GroupApplyConfiguration) WithFinalizers(values ...string) *GroupApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *GroupApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -233,5 +233,5 @@ func (b *GroupApplyConfiguration) WithUsers(value userv1.OptionalNames) *GroupAp
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *GroupApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/user/applyconfigurations/user/v1/identity.go b/user/applyconfigurations/user/v1/identity.go
index 4df5af1f2..b957fbc17 100644
--- a/user/applyconfigurations/user/v1/identity.go
+++ b/user/applyconfigurations/user/v1/identity.go
@@ -6,21 +6,21 @@ import (
userv1 "github.com/openshift/api/user/v1"
internal "github.com/openshift/client-go/user/applyconfigurations/internal"
corev1 "k8s.io/api/core/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// IdentityApplyConfiguration represents a declarative configuration of the Identity type for use
// with apply.
type IdentityApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- ProviderName *string `json:"providerName,omitempty"`
- ProviderUserName *string `json:"providerUserName,omitempty"`
- User *corev1.ObjectReference `json:"user,omitempty"`
- Extra map[string]string `json:"extra,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ ProviderName *string `json:"providerName,omitempty"`
+ ProviderUserName *string `json:"providerUserName,omitempty"`
+ User *corev1.ObjectReference `json:"user,omitempty"`
+ Extra map[string]string `json:"extra,omitempty"`
}
// Identity constructs a declarative configuration of the Identity type for use with
@@ -72,7 +72,7 @@ func extractIdentity(identity *userv1.Identity, fieldManager string, subresource
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *IdentityApplyConfiguration) WithKind(value string) *IdentityApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -80,7 +80,7 @@ func (b *IdentityApplyConfiguration) WithKind(value string) *IdentityApplyConfig
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *IdentityApplyConfiguration) WithAPIVersion(value string) *IdentityApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -89,7 +89,7 @@ func (b *IdentityApplyConfiguration) WithAPIVersion(value string) *IdentityApply
// If called multiple times, the Name field is set to the value of the last call.
func (b *IdentityApplyConfiguration) WithName(value string) *IdentityApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -98,7 +98,7 @@ func (b *IdentityApplyConfiguration) WithName(value string) *IdentityApplyConfig
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *IdentityApplyConfiguration) WithGenerateName(value string) *IdentityApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -107,7 +107,7 @@ func (b *IdentityApplyConfiguration) WithGenerateName(value string) *IdentityApp
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *IdentityApplyConfiguration) WithNamespace(value string) *IdentityApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -116,7 +116,7 @@ func (b *IdentityApplyConfiguration) WithNamespace(value string) *IdentityApplyC
// If called multiple times, the UID field is set to the value of the last call.
func (b *IdentityApplyConfiguration) WithUID(value types.UID) *IdentityApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -125,7 +125,7 @@ func (b *IdentityApplyConfiguration) WithUID(value types.UID) *IdentityApplyConf
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *IdentityApplyConfiguration) WithResourceVersion(value string) *IdentityApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -134,25 +134,25 @@ func (b *IdentityApplyConfiguration) WithResourceVersion(value string) *Identity
// If called multiple times, the Generation field is set to the value of the last call.
func (b *IdentityApplyConfiguration) WithGeneration(value int64) *IdentityApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *IdentityApplyConfiguration) WithCreationTimestamp(value metav1.Time) *IdentityApplyConfiguration {
+func (b *IdentityApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *IdentityApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *IdentityApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *IdentityApplyConfiguration {
+func (b *IdentityApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *IdentityApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -161,7 +161,7 @@ func (b *IdentityApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *I
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *IdentityApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *IdentityApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -171,11 +171,11 @@ func (b *IdentityApplyConfiguration) WithDeletionGracePeriodSeconds(value int64)
// overwriting an existing map entries in Labels field with the same key.
func (b *IdentityApplyConfiguration) WithLabels(entries map[string]string) *IdentityApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -186,11 +186,11 @@ func (b *IdentityApplyConfiguration) WithLabels(entries map[string]string) *Iden
// overwriting an existing map entries in Annotations field with the same key.
func (b *IdentityApplyConfiguration) WithAnnotations(entries map[string]string) *IdentityApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -198,13 +198,13 @@ func (b *IdentityApplyConfiguration) WithAnnotations(entries map[string]string)
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *IdentityApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *IdentityApplyConfiguration {
+func (b *IdentityApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *IdentityApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -215,14 +215,14 @@ func (b *IdentityApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerRefe
func (b *IdentityApplyConfiguration) WithFinalizers(values ...string) *IdentityApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *IdentityApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -267,5 +267,5 @@ func (b *IdentityApplyConfiguration) WithExtra(entries map[string]string) *Ident
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *IdentityApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/user/applyconfigurations/user/v1/user.go b/user/applyconfigurations/user/v1/user.go
index 8d894813d..ad2216d9e 100644
--- a/user/applyconfigurations/user/v1/user.go
+++ b/user/applyconfigurations/user/v1/user.go
@@ -5,20 +5,20 @@ package v1
import (
userv1 "github.com/openshift/api/user/v1"
internal "github.com/openshift/client-go/user/applyconfigurations/internal"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
- v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+ metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// UserApplyConfiguration represents a declarative configuration of the User type for use
// with apply.
type UserApplyConfiguration struct {
- v1.TypeMetaApplyConfiguration `json:",inline"`
- *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
- FullName *string `json:"fullName,omitempty"`
- Identities []string `json:"identities,omitempty"`
- Groups []string `json:"groups,omitempty"`
+ metav1.TypeMetaApplyConfiguration `json:",inline"`
+ *metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ FullName *string `json:"fullName,omitempty"`
+ Identities []string `json:"identities,omitempty"`
+ Groups []string `json:"groups,omitempty"`
}
// User constructs a declarative configuration of the User type for use with
@@ -70,7 +70,7 @@ func extractUser(user *userv1.User, fieldManager string, subresource string) (*U
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Kind field is set to the value of the last call.
func (b *UserApplyConfiguration) WithKind(value string) *UserApplyConfiguration {
- b.Kind = &value
+ b.TypeMetaApplyConfiguration.Kind = &value
return b
}
@@ -78,7 +78,7 @@ func (b *UserApplyConfiguration) WithKind(value string) *UserApplyConfiguration
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the APIVersion field is set to the value of the last call.
func (b *UserApplyConfiguration) WithAPIVersion(value string) *UserApplyConfiguration {
- b.APIVersion = &value
+ b.TypeMetaApplyConfiguration.APIVersion = &value
return b
}
@@ -87,7 +87,7 @@ func (b *UserApplyConfiguration) WithAPIVersion(value string) *UserApplyConfigur
// If called multiple times, the Name field is set to the value of the last call.
func (b *UserApplyConfiguration) WithName(value string) *UserApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Name = &value
+ b.ObjectMetaApplyConfiguration.Name = &value
return b
}
@@ -96,7 +96,7 @@ func (b *UserApplyConfiguration) WithName(value string) *UserApplyConfiguration
// If called multiple times, the GenerateName field is set to the value of the last call.
func (b *UserApplyConfiguration) WithGenerateName(value string) *UserApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.GenerateName = &value
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
return b
}
@@ -105,7 +105,7 @@ func (b *UserApplyConfiguration) WithGenerateName(value string) *UserApplyConfig
// If called multiple times, the Namespace field is set to the value of the last call.
func (b *UserApplyConfiguration) WithNamespace(value string) *UserApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Namespace = &value
+ b.ObjectMetaApplyConfiguration.Namespace = &value
return b
}
@@ -114,7 +114,7 @@ func (b *UserApplyConfiguration) WithNamespace(value string) *UserApplyConfigura
// If called multiple times, the UID field is set to the value of the last call.
func (b *UserApplyConfiguration) WithUID(value types.UID) *UserApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.UID = &value
+ b.ObjectMetaApplyConfiguration.UID = &value
return b
}
@@ -123,7 +123,7 @@ func (b *UserApplyConfiguration) WithUID(value types.UID) *UserApplyConfiguratio
// If called multiple times, the ResourceVersion field is set to the value of the last call.
func (b *UserApplyConfiguration) WithResourceVersion(value string) *UserApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.ResourceVersion = &value
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
return b
}
@@ -132,25 +132,25 @@ func (b *UserApplyConfiguration) WithResourceVersion(value string) *UserApplyCon
// If called multiple times, the Generation field is set to the value of the last call.
func (b *UserApplyConfiguration) WithGeneration(value int64) *UserApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.Generation = &value
+ b.ObjectMetaApplyConfiguration.Generation = &value
return b
}
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
-func (b *UserApplyConfiguration) WithCreationTimestamp(value metav1.Time) *UserApplyConfiguration {
+func (b *UserApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *UserApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.CreationTimestamp = &value
+ b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
return b
}
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
-func (b *UserApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *UserApplyConfiguration {
+func (b *UserApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *UserApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionTimestamp = &value
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
return b
}
@@ -159,7 +159,7 @@ func (b *UserApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *UserA
// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (b *UserApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *UserApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- b.DeletionGracePeriodSeconds = &value
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
return b
}
@@ -169,11 +169,11 @@ func (b *UserApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *Us
// overwriting an existing map entries in Labels field with the same key.
func (b *UserApplyConfiguration) WithLabels(entries map[string]string) *UserApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Labels == nil && len(entries) > 0 {
- b.Labels = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Labels[k] = v
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
}
return b
}
@@ -184,11 +184,11 @@ func (b *UserApplyConfiguration) WithLabels(entries map[string]string) *UserAppl
// overwriting an existing map entries in Annotations field with the same key.
func (b *UserApplyConfiguration) WithAnnotations(entries map[string]string) *UserApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
- if b.Annotations == nil && len(entries) > 0 {
- b.Annotations = make(map[string]string, len(entries))
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
- b.Annotations[k] = v
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
}
return b
}
@@ -196,13 +196,13 @@ func (b *UserApplyConfiguration) WithAnnotations(entries map[string]string) *Use
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
-func (b *UserApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *UserApplyConfiguration {
+func (b *UserApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *UserApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
- b.OwnerReferences = append(b.OwnerReferences, *values[i])
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
}
return b
}
@@ -213,14 +213,14 @@ func (b *UserApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenc
func (b *UserApplyConfiguration) WithFinalizers(values ...string) *UserApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
- b.Finalizers = append(b.Finalizers, values[i])
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
}
return b
}
func (b *UserApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
if b.ObjectMetaApplyConfiguration == nil {
- b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
}
}
@@ -255,5 +255,5 @@ func (b *UserApplyConfiguration) WithGroups(values ...string) *UserApplyConfigur
// GetName retrieves the value of the Name field in the declarative configuration.
func (b *UserApplyConfiguration) GetName() *string {
b.ensureObjectMetaApplyConfigurationExists()
- return b.Name
+ return b.ObjectMetaApplyConfiguration.Name
}
diff --git a/user/clientset/versioned/clientset.go b/user/clientset/versioned/clientset.go
index 84ba8d5e0..bb482196b 100644
--- a/user/clientset/versioned/clientset.go
+++ b/user/clientset/versioned/clientset.go
@@ -3,8 +3,8 @@
package versioned
import (
- "fmt"
- "net/http"
+ fmt "fmt"
+ http "net/http"
userv1 "github.com/openshift/client-go/user/clientset/versioned/typed/user/v1"
discovery "k8s.io/client-go/discovery"
diff --git a/user/clientset/versioned/typed/user/v1/fake/fake_group.go b/user/clientset/versioned/typed/user/v1/fake/fake_group.go
index a12ab351e..c5d9173f5 100644
--- a/user/clientset/versioned/typed/user/v1/fake/fake_group.go
+++ b/user/clientset/versioned/typed/user/v1/fake/fake_group.go
@@ -3,133 +3,31 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/user/v1"
userv1 "github.com/openshift/client-go/user/applyconfigurations/user/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typeduserv1 "github.com/openshift/client-go/user/clientset/versioned/typed/user/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeGroups implements GroupInterface
-type FakeGroups struct {
+// fakeGroups implements GroupInterface
+type fakeGroups struct {
+ *gentype.FakeClientWithListAndApply[*v1.Group, *v1.GroupList, *userv1.GroupApplyConfiguration]
Fake *FakeUserV1
}
-var groupsResource = v1.SchemeGroupVersion.WithResource("groups")
-
-var groupsKind = v1.SchemeGroupVersion.WithKind("Group")
-
-// Get takes name of the group, and returns the corresponding group object, and an error if there is any.
-func (c *FakeGroups) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Group, err error) {
- emptyResult := &v1.Group{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(groupsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Group), err
-}
-
-// List takes label and field selectors, and returns the list of Groups that match those selectors.
-func (c *FakeGroups) List(ctx context.Context, opts metav1.ListOptions) (result *v1.GroupList, err error) {
- emptyResult := &v1.GroupList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(groupsResource, groupsKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.GroupList{ListMeta: obj.(*v1.GroupList).ListMeta}
- for _, item := range obj.(*v1.GroupList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested groups.
-func (c *FakeGroups) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(groupsResource, opts))
-}
-
-// Create takes the representation of a group and creates it. Returns the server's representation of the group, and an error, if there is any.
-func (c *FakeGroups) Create(ctx context.Context, group *v1.Group, opts metav1.CreateOptions) (result *v1.Group, err error) {
- emptyResult := &v1.Group{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(groupsResource, group, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Group), err
-}
-
-// Update takes the representation of a group and updates it. Returns the server's representation of the group, and an error, if there is any.
-func (c *FakeGroups) Update(ctx context.Context, group *v1.Group, opts metav1.UpdateOptions) (result *v1.Group, err error) {
- emptyResult := &v1.Group{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(groupsResource, group, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Group), err
-}
-
-// Delete takes name of the group and deletes it. Returns an error if one occurs.
-func (c *FakeGroups) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(groupsResource, name, opts), &v1.Group{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeGroups) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(groupsResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.GroupList{})
- return err
-}
-
-// Patch applies the patch and returns the patched group.
-func (c *FakeGroups) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Group, err error) {
- emptyResult := &v1.Group{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(groupsResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Group), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied group.
-func (c *FakeGroups) Apply(ctx context.Context, group *userv1.GroupApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Group, err error) {
- if group == nil {
- return nil, fmt.Errorf("group provided to Apply must not be nil")
- }
- data, err := json.Marshal(group)
- if err != nil {
- return nil, err
- }
- name := group.Name
- if name == nil {
- return nil, fmt.Errorf("group.Name must be provided to Apply")
- }
- emptyResult := &v1.Group{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(groupsResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeGroups(fake *FakeUserV1) typeduserv1.GroupInterface {
+ return &fakeGroups{
+ gentype.NewFakeClientWithListAndApply[*v1.Group, *v1.GroupList, *userv1.GroupApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("groups"),
+ v1.SchemeGroupVersion.WithKind("Group"),
+ func() *v1.Group { return &v1.Group{} },
+ func() *v1.GroupList { return &v1.GroupList{} },
+ func(dst, src *v1.GroupList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.GroupList) []*v1.Group { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.GroupList, items []*v1.Group) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.Group), err
}
diff --git a/user/clientset/versioned/typed/user/v1/fake/fake_identity.go b/user/clientset/versioned/typed/user/v1/fake/fake_identity.go
index b46450a8d..629524370 100644
--- a/user/clientset/versioned/typed/user/v1/fake/fake_identity.go
+++ b/user/clientset/versioned/typed/user/v1/fake/fake_identity.go
@@ -3,133 +3,31 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/user/v1"
userv1 "github.com/openshift/client-go/user/applyconfigurations/user/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typeduserv1 "github.com/openshift/client-go/user/clientset/versioned/typed/user/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeIdentities implements IdentityInterface
-type FakeIdentities struct {
+// fakeIdentities implements IdentityInterface
+type fakeIdentities struct {
+ *gentype.FakeClientWithListAndApply[*v1.Identity, *v1.IdentityList, *userv1.IdentityApplyConfiguration]
Fake *FakeUserV1
}
-var identitiesResource = v1.SchemeGroupVersion.WithResource("identities")
-
-var identitiesKind = v1.SchemeGroupVersion.WithKind("Identity")
-
-// Get takes name of the identity, and returns the corresponding identity object, and an error if there is any.
-func (c *FakeIdentities) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Identity, err error) {
- emptyResult := &v1.Identity{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(identitiesResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Identity), err
-}
-
-// List takes label and field selectors, and returns the list of Identities that match those selectors.
-func (c *FakeIdentities) List(ctx context.Context, opts metav1.ListOptions) (result *v1.IdentityList, err error) {
- emptyResult := &v1.IdentityList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(identitiesResource, identitiesKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.IdentityList{ListMeta: obj.(*v1.IdentityList).ListMeta}
- for _, item := range obj.(*v1.IdentityList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested identities.
-func (c *FakeIdentities) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(identitiesResource, opts))
-}
-
-// Create takes the representation of a identity and creates it. Returns the server's representation of the identity, and an error, if there is any.
-func (c *FakeIdentities) Create(ctx context.Context, identity *v1.Identity, opts metav1.CreateOptions) (result *v1.Identity, err error) {
- emptyResult := &v1.Identity{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(identitiesResource, identity, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Identity), err
-}
-
-// Update takes the representation of a identity and updates it. Returns the server's representation of the identity, and an error, if there is any.
-func (c *FakeIdentities) Update(ctx context.Context, identity *v1.Identity, opts metav1.UpdateOptions) (result *v1.Identity, err error) {
- emptyResult := &v1.Identity{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(identitiesResource, identity, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Identity), err
-}
-
-// Delete takes name of the identity and deletes it. Returns an error if one occurs.
-func (c *FakeIdentities) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(identitiesResource, name, opts), &v1.Identity{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeIdentities) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(identitiesResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.IdentityList{})
- return err
-}
-
-// Patch applies the patch and returns the patched identity.
-func (c *FakeIdentities) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Identity, err error) {
- emptyResult := &v1.Identity{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(identitiesResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.Identity), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied identity.
-func (c *FakeIdentities) Apply(ctx context.Context, identity *userv1.IdentityApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Identity, err error) {
- if identity == nil {
- return nil, fmt.Errorf("identity provided to Apply must not be nil")
- }
- data, err := json.Marshal(identity)
- if err != nil {
- return nil, err
- }
- name := identity.Name
- if name == nil {
- return nil, fmt.Errorf("identity.Name must be provided to Apply")
- }
- emptyResult := &v1.Identity{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(identitiesResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeIdentities(fake *FakeUserV1) typeduserv1.IdentityInterface {
+ return &fakeIdentities{
+ gentype.NewFakeClientWithListAndApply[*v1.Identity, *v1.IdentityList, *userv1.IdentityApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("identities"),
+ v1.SchemeGroupVersion.WithKind("Identity"),
+ func() *v1.Identity { return &v1.Identity{} },
+ func() *v1.IdentityList { return &v1.IdentityList{} },
+ func(dst, src *v1.IdentityList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.IdentityList) []*v1.Identity { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.IdentityList, items []*v1.Identity) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.Identity), err
}
diff --git a/user/clientset/versioned/typed/user/v1/fake/fake_user.go b/user/clientset/versioned/typed/user/v1/fake/fake_user.go
index 7ad4d5bff..9bea61487 100644
--- a/user/clientset/versioned/typed/user/v1/fake/fake_user.go
+++ b/user/clientset/versioned/typed/user/v1/fake/fake_user.go
@@ -3,133 +3,31 @@
package fake
import (
- "context"
- json "encoding/json"
- "fmt"
-
v1 "github.com/openshift/api/user/v1"
userv1 "github.com/openshift/client-go/user/applyconfigurations/user/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- labels "k8s.io/apimachinery/pkg/labels"
- types "k8s.io/apimachinery/pkg/types"
- watch "k8s.io/apimachinery/pkg/watch"
- testing "k8s.io/client-go/testing"
+ typeduserv1 "github.com/openshift/client-go/user/clientset/versioned/typed/user/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeUsers implements UserInterface
-type FakeUsers struct {
+// fakeUsers implements UserInterface
+type fakeUsers struct {
+ *gentype.FakeClientWithListAndApply[*v1.User, *v1.UserList, *userv1.UserApplyConfiguration]
Fake *FakeUserV1
}
-var usersResource = v1.SchemeGroupVersion.WithResource("users")
-
-var usersKind = v1.SchemeGroupVersion.WithKind("User")
-
-// Get takes name of the user, and returns the corresponding user object, and an error if there is any.
-func (c *FakeUsers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.User, err error) {
- emptyResult := &v1.User{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(usersResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.User), err
-}
-
-// List takes label and field selectors, and returns the list of Users that match those selectors.
-func (c *FakeUsers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.UserList, err error) {
- emptyResult := &v1.UserList{}
- obj, err := c.Fake.
- Invokes(testing.NewRootListActionWithOptions(usersResource, usersKind, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
-
- label, _, _ := testing.ExtractFromListOptions(opts)
- if label == nil {
- label = labels.Everything()
- }
- list := &v1.UserList{ListMeta: obj.(*v1.UserList).ListMeta}
- for _, item := range obj.(*v1.UserList).Items {
- if label.Matches(labels.Set(item.Labels)) {
- list.Items = append(list.Items, item)
- }
- }
- return list, err
-}
-
-// Watch returns a watch.Interface that watches the requested users.
-func (c *FakeUsers) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
- return c.Fake.
- InvokesWatch(testing.NewRootWatchActionWithOptions(usersResource, opts))
-}
-
-// Create takes the representation of a user and creates it. Returns the server's representation of the user, and an error, if there is any.
-func (c *FakeUsers) Create(ctx context.Context, user *v1.User, opts metav1.CreateOptions) (result *v1.User, err error) {
- emptyResult := &v1.User{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(usersResource, user, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.User), err
-}
-
-// Update takes the representation of a user and updates it. Returns the server's representation of the user, and an error, if there is any.
-func (c *FakeUsers) Update(ctx context.Context, user *v1.User, opts metav1.UpdateOptions) (result *v1.User, err error) {
- emptyResult := &v1.User{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(usersResource, user, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.User), err
-}
-
-// Delete takes name of the user and deletes it. Returns an error if one occurs.
-func (c *FakeUsers) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(usersResource, name, opts), &v1.User{})
- return err
-}
-
-// DeleteCollection deletes a collection of objects.
-func (c *FakeUsers) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
- action := testing.NewRootDeleteCollectionActionWithOptions(usersResource, opts, listOpts)
-
- _, err := c.Fake.Invokes(action, &v1.UserList{})
- return err
-}
-
-// Patch applies the patch and returns the patched user.
-func (c *FakeUsers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.User, err error) {
- emptyResult := &v1.User{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(usersResource, name, pt, data, opts, subresources...), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.User), err
-}
-
-// Apply takes the given apply declarative configuration, applies it and returns the applied user.
-func (c *FakeUsers) Apply(ctx context.Context, user *userv1.UserApplyConfiguration, opts metav1.ApplyOptions) (result *v1.User, err error) {
- if user == nil {
- return nil, fmt.Errorf("user provided to Apply must not be nil")
- }
- data, err := json.Marshal(user)
- if err != nil {
- return nil, err
- }
- name := user.Name
- if name == nil {
- return nil, fmt.Errorf("user.Name must be provided to Apply")
- }
- emptyResult := &v1.User{}
- obj, err := c.Fake.
- Invokes(testing.NewRootPatchSubresourceActionWithOptions(usersResource, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeUsers(fake *FakeUserV1) typeduserv1.UserInterface {
+ return &fakeUsers{
+ gentype.NewFakeClientWithListAndApply[*v1.User, *v1.UserList, *userv1.UserApplyConfiguration](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("users"),
+ v1.SchemeGroupVersion.WithKind("User"),
+ func() *v1.User { return &v1.User{} },
+ func() *v1.UserList { return &v1.UserList{} },
+ func(dst, src *v1.UserList) { dst.ListMeta = src.ListMeta },
+ func(list *v1.UserList) []*v1.User { return gentype.ToPointerSlice(list.Items) },
+ func(list *v1.UserList, items []*v1.User) { list.Items = gentype.FromPointerSlice(items) },
+ ),
+ fake,
}
- return obj.(*v1.User), err
}
diff --git a/user/clientset/versioned/typed/user/v1/fake/fake_user_client.go b/user/clientset/versioned/typed/user/v1/fake/fake_user_client.go
index bd16882dc..4a7f8189c 100644
--- a/user/clientset/versioned/typed/user/v1/fake/fake_user_client.go
+++ b/user/clientset/versioned/typed/user/v1/fake/fake_user_client.go
@@ -13,19 +13,19 @@ type FakeUserV1 struct {
}
func (c *FakeUserV1) Groups() v1.GroupInterface {
- return &FakeGroups{c}
+ return newFakeGroups(c)
}
func (c *FakeUserV1) Identities() v1.IdentityInterface {
- return &FakeIdentities{c}
+ return newFakeIdentities(c)
}
func (c *FakeUserV1) Users() v1.UserInterface {
- return &FakeUsers{c}
+ return newFakeUsers(c)
}
func (c *FakeUserV1) UserIdentityMappings() v1.UserIdentityMappingInterface {
- return &FakeUserIdentityMappings{c}
+ return newFakeUserIdentityMappings(c)
}
// RESTClient returns a RESTClient that is used to communicate
diff --git a/user/clientset/versioned/typed/user/v1/fake/fake_useridentitymapping.go b/user/clientset/versioned/typed/user/v1/fake/fake_useridentitymapping.go
index b157322b5..453f876b1 100644
--- a/user/clientset/versioned/typed/user/v1/fake/fake_useridentitymapping.go
+++ b/user/clientset/versioned/typed/user/v1/fake/fake_useridentitymapping.go
@@ -3,58 +3,26 @@
package fake
import (
- "context"
-
v1 "github.com/openshift/api/user/v1"
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- testing "k8s.io/client-go/testing"
+ userv1 "github.com/openshift/client-go/user/clientset/versioned/typed/user/v1"
+ gentype "k8s.io/client-go/gentype"
)
-// FakeUserIdentityMappings implements UserIdentityMappingInterface
-type FakeUserIdentityMappings struct {
+// fakeUserIdentityMappings implements UserIdentityMappingInterface
+type fakeUserIdentityMappings struct {
+ *gentype.FakeClient[*v1.UserIdentityMapping]
Fake *FakeUserV1
}
-var useridentitymappingsResource = v1.SchemeGroupVersion.WithResource("useridentitymappings")
-
-var useridentitymappingsKind = v1.SchemeGroupVersion.WithKind("UserIdentityMapping")
-
-// Get takes name of the userIdentityMapping, and returns the corresponding userIdentityMapping object, and an error if there is any.
-func (c *FakeUserIdentityMappings) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.UserIdentityMapping, err error) {
- emptyResult := &v1.UserIdentityMapping{}
- obj, err := c.Fake.
- Invokes(testing.NewRootGetActionWithOptions(useridentitymappingsResource, name, options), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.UserIdentityMapping), err
-}
-
-// Create takes the representation of a userIdentityMapping and creates it. Returns the server's representation of the userIdentityMapping, and an error, if there is any.
-func (c *FakeUserIdentityMappings) Create(ctx context.Context, userIdentityMapping *v1.UserIdentityMapping, opts metav1.CreateOptions) (result *v1.UserIdentityMapping, err error) {
- emptyResult := &v1.UserIdentityMapping{}
- obj, err := c.Fake.
- Invokes(testing.NewRootCreateActionWithOptions(useridentitymappingsResource, userIdentityMapping, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
+func newFakeUserIdentityMappings(fake *FakeUserV1) userv1.UserIdentityMappingInterface {
+ return &fakeUserIdentityMappings{
+ gentype.NewFakeClient[*v1.UserIdentityMapping](
+ fake.Fake,
+ "",
+ v1.SchemeGroupVersion.WithResource("useridentitymappings"),
+ v1.SchemeGroupVersion.WithKind("UserIdentityMapping"),
+ func() *v1.UserIdentityMapping { return &v1.UserIdentityMapping{} },
+ ),
+ fake,
}
- return obj.(*v1.UserIdentityMapping), err
-}
-
-// Update takes the representation of a userIdentityMapping and updates it. Returns the server's representation of the userIdentityMapping, and an error, if there is any.
-func (c *FakeUserIdentityMappings) Update(ctx context.Context, userIdentityMapping *v1.UserIdentityMapping, opts metav1.UpdateOptions) (result *v1.UserIdentityMapping, err error) {
- emptyResult := &v1.UserIdentityMapping{}
- obj, err := c.Fake.
- Invokes(testing.NewRootUpdateActionWithOptions(useridentitymappingsResource, userIdentityMapping, opts), emptyResult)
- if obj == nil {
- return emptyResult, err
- }
- return obj.(*v1.UserIdentityMapping), err
-}
-
-// Delete takes name of the userIdentityMapping and deletes it. Returns an error if one occurs.
-func (c *FakeUserIdentityMappings) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
- _, err := c.Fake.
- Invokes(testing.NewRootDeleteActionWithOptions(useridentitymappingsResource, name, opts), &v1.UserIdentityMapping{})
- return err
}
diff --git a/user/clientset/versioned/typed/user/v1/group.go b/user/clientset/versioned/typed/user/v1/group.go
index f52cf8e95..4b73ce61d 100644
--- a/user/clientset/versioned/typed/user/v1/group.go
+++ b/user/clientset/versioned/typed/user/v1/group.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/user/v1"
- userv1 "github.com/openshift/client-go/user/applyconfigurations/user/v1"
+ userv1 "github.com/openshift/api/user/v1"
+ applyconfigurationsuserv1 "github.com/openshift/client-go/user/applyconfigurations/user/v1"
scheme "github.com/openshift/client-go/user/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,32 +22,33 @@ type GroupsGetter interface {
// GroupInterface has methods to work with Group resources.
type GroupInterface interface {
- Create(ctx context.Context, group *v1.Group, opts metav1.CreateOptions) (*v1.Group, error)
- Update(ctx context.Context, group *v1.Group, opts metav1.UpdateOptions) (*v1.Group, error)
+ Create(ctx context.Context, group *userv1.Group, opts metav1.CreateOptions) (*userv1.Group, error)
+ Update(ctx context.Context, group *userv1.Group, opts metav1.UpdateOptions) (*userv1.Group, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Group, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.GroupList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*userv1.Group, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*userv1.GroupList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Group, err error)
- Apply(ctx context.Context, group *userv1.GroupApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Group, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *userv1.Group, err error)
+ Apply(ctx context.Context, group *applyconfigurationsuserv1.GroupApplyConfiguration, opts metav1.ApplyOptions) (result *userv1.Group, err error)
GroupExpansion
}
// groups implements GroupInterface
type groups struct {
- *gentype.ClientWithListAndApply[*v1.Group, *v1.GroupList, *userv1.GroupApplyConfiguration]
+ *gentype.ClientWithListAndApply[*userv1.Group, *userv1.GroupList, *applyconfigurationsuserv1.GroupApplyConfiguration]
}
// newGroups returns a Groups
func newGroups(c *UserV1Client) *groups {
return &groups{
- gentype.NewClientWithListAndApply[*v1.Group, *v1.GroupList, *userv1.GroupApplyConfiguration](
+ gentype.NewClientWithListAndApply[*userv1.Group, *userv1.GroupList, *applyconfigurationsuserv1.GroupApplyConfiguration](
"groups",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.Group { return &v1.Group{} },
- func() *v1.GroupList { return &v1.GroupList{} }),
+ func() *userv1.Group { return &userv1.Group{} },
+ func() *userv1.GroupList { return &userv1.GroupList{} },
+ ),
}
}
diff --git a/user/clientset/versioned/typed/user/v1/identity.go b/user/clientset/versioned/typed/user/v1/identity.go
index c03cdfaeb..e45938efb 100644
--- a/user/clientset/versioned/typed/user/v1/identity.go
+++ b/user/clientset/versioned/typed/user/v1/identity.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/user/v1"
- userv1 "github.com/openshift/client-go/user/applyconfigurations/user/v1"
+ userv1 "github.com/openshift/api/user/v1"
+ applyconfigurationsuserv1 "github.com/openshift/client-go/user/applyconfigurations/user/v1"
scheme "github.com/openshift/client-go/user/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,32 +22,33 @@ type IdentitiesGetter interface {
// IdentityInterface has methods to work with Identity resources.
type IdentityInterface interface {
- Create(ctx context.Context, identity *v1.Identity, opts metav1.CreateOptions) (*v1.Identity, error)
- Update(ctx context.Context, identity *v1.Identity, opts metav1.UpdateOptions) (*v1.Identity, error)
+ Create(ctx context.Context, identity *userv1.Identity, opts metav1.CreateOptions) (*userv1.Identity, error)
+ Update(ctx context.Context, identity *userv1.Identity, opts metav1.UpdateOptions) (*userv1.Identity, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Identity, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.IdentityList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*userv1.Identity, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*userv1.IdentityList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Identity, err error)
- Apply(ctx context.Context, identity *userv1.IdentityApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Identity, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *userv1.Identity, err error)
+ Apply(ctx context.Context, identity *applyconfigurationsuserv1.IdentityApplyConfiguration, opts metav1.ApplyOptions) (result *userv1.Identity, err error)
IdentityExpansion
}
// identities implements IdentityInterface
type identities struct {
- *gentype.ClientWithListAndApply[*v1.Identity, *v1.IdentityList, *userv1.IdentityApplyConfiguration]
+ *gentype.ClientWithListAndApply[*userv1.Identity, *userv1.IdentityList, *applyconfigurationsuserv1.IdentityApplyConfiguration]
}
// newIdentities returns a Identities
func newIdentities(c *UserV1Client) *identities {
return &identities{
- gentype.NewClientWithListAndApply[*v1.Identity, *v1.IdentityList, *userv1.IdentityApplyConfiguration](
+ gentype.NewClientWithListAndApply[*userv1.Identity, *userv1.IdentityList, *applyconfigurationsuserv1.IdentityApplyConfiguration](
"identities",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.Identity { return &v1.Identity{} },
- func() *v1.IdentityList { return &v1.IdentityList{} }),
+ func() *userv1.Identity { return &userv1.Identity{} },
+ func() *userv1.IdentityList { return &userv1.IdentityList{} },
+ ),
}
}
diff --git a/user/clientset/versioned/typed/user/v1/user.go b/user/clientset/versioned/typed/user/v1/user.go
index 4cc9485ca..7eabfb651 100644
--- a/user/clientset/versioned/typed/user/v1/user.go
+++ b/user/clientset/versioned/typed/user/v1/user.go
@@ -3,10 +3,10 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/user/v1"
- userv1 "github.com/openshift/client-go/user/applyconfigurations/user/v1"
+ userv1 "github.com/openshift/api/user/v1"
+ applyconfigurationsuserv1 "github.com/openshift/client-go/user/applyconfigurations/user/v1"
scheme "github.com/openshift/client-go/user/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -22,32 +22,33 @@ type UsersGetter interface {
// UserInterface has methods to work with User resources.
type UserInterface interface {
- Create(ctx context.Context, user *v1.User, opts metav1.CreateOptions) (*v1.User, error)
- Update(ctx context.Context, user *v1.User, opts metav1.UpdateOptions) (*v1.User, error)
+ Create(ctx context.Context, user *userv1.User, opts metav1.CreateOptions) (*userv1.User, error)
+ Update(ctx context.Context, user *userv1.User, opts metav1.UpdateOptions) (*userv1.User, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.User, error)
- List(ctx context.Context, opts metav1.ListOptions) (*v1.UserList, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*userv1.User, error)
+ List(ctx context.Context, opts metav1.ListOptions) (*userv1.UserList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.User, err error)
- Apply(ctx context.Context, user *userv1.UserApplyConfiguration, opts metav1.ApplyOptions) (result *v1.User, err error)
+ Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *userv1.User, err error)
+ Apply(ctx context.Context, user *applyconfigurationsuserv1.UserApplyConfiguration, opts metav1.ApplyOptions) (result *userv1.User, err error)
UserExpansion
}
// users implements UserInterface
type users struct {
- *gentype.ClientWithListAndApply[*v1.User, *v1.UserList, *userv1.UserApplyConfiguration]
+ *gentype.ClientWithListAndApply[*userv1.User, *userv1.UserList, *applyconfigurationsuserv1.UserApplyConfiguration]
}
// newUsers returns a Users
func newUsers(c *UserV1Client) *users {
return &users{
- gentype.NewClientWithListAndApply[*v1.User, *v1.UserList, *userv1.UserApplyConfiguration](
+ gentype.NewClientWithListAndApply[*userv1.User, *userv1.UserList, *applyconfigurationsuserv1.UserApplyConfiguration](
"users",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.User { return &v1.User{} },
- func() *v1.UserList { return &v1.UserList{} }),
+ func() *userv1.User { return &userv1.User{} },
+ func() *userv1.UserList { return &userv1.UserList{} },
+ ),
}
}
diff --git a/user/clientset/versioned/typed/user/v1/user_client.go b/user/clientset/versioned/typed/user/v1/user_client.go
index ed7581c61..fe0126d29 100644
--- a/user/clientset/versioned/typed/user/v1/user_client.go
+++ b/user/clientset/versioned/typed/user/v1/user_client.go
@@ -3,10 +3,10 @@
package v1
import (
- "net/http"
+ http "net/http"
- v1 "github.com/openshift/api/user/v1"
- "github.com/openshift/client-go/user/clientset/versioned/scheme"
+ userv1 "github.com/openshift/api/user/v1"
+ scheme "github.com/openshift/client-go/user/clientset/versioned/scheme"
rest "k8s.io/client-go/rest"
)
@@ -84,10 +84,10 @@ func New(c rest.Interface) *UserV1Client {
}
func setConfigDefaults(config *rest.Config) error {
- gv := v1.SchemeGroupVersion
+ gv := userv1.SchemeGroupVersion
config.GroupVersion = &gv
config.APIPath = "/apis"
- config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
+ config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion()
if config.UserAgent == "" {
config.UserAgent = rest.DefaultKubernetesUserAgent()
diff --git a/user/clientset/versioned/typed/user/v1/useridentitymapping.go b/user/clientset/versioned/typed/user/v1/useridentitymapping.go
index d64983aa7..05882eb3e 100644
--- a/user/clientset/versioned/typed/user/v1/useridentitymapping.go
+++ b/user/clientset/versioned/typed/user/v1/useridentitymapping.go
@@ -3,9 +3,9 @@
package v1
import (
- "context"
+ context "context"
- v1 "github.com/openshift/api/user/v1"
+ userv1 "github.com/openshift/api/user/v1"
scheme "github.com/openshift/client-go/user/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
gentype "k8s.io/client-go/gentype"
@@ -19,26 +19,27 @@ type UserIdentityMappingsGetter interface {
// UserIdentityMappingInterface has methods to work with UserIdentityMapping resources.
type UserIdentityMappingInterface interface {
- Create(ctx context.Context, userIdentityMapping *v1.UserIdentityMapping, opts metav1.CreateOptions) (*v1.UserIdentityMapping, error)
- Update(ctx context.Context, userIdentityMapping *v1.UserIdentityMapping, opts metav1.UpdateOptions) (*v1.UserIdentityMapping, error)
+ Create(ctx context.Context, userIdentityMapping *userv1.UserIdentityMapping, opts metav1.CreateOptions) (*userv1.UserIdentityMapping, error)
+ Update(ctx context.Context, userIdentityMapping *userv1.UserIdentityMapping, opts metav1.UpdateOptions) (*userv1.UserIdentityMapping, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
- Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.UserIdentityMapping, error)
+ Get(ctx context.Context, name string, opts metav1.GetOptions) (*userv1.UserIdentityMapping, error)
UserIdentityMappingExpansion
}
// userIdentityMappings implements UserIdentityMappingInterface
type userIdentityMappings struct {
- *gentype.Client[*v1.UserIdentityMapping]
+ *gentype.Client[*userv1.UserIdentityMapping]
}
// newUserIdentityMappings returns a UserIdentityMappings
func newUserIdentityMappings(c *UserV1Client) *userIdentityMappings {
return &userIdentityMappings{
- gentype.NewClient[*v1.UserIdentityMapping](
+ gentype.NewClient[*userv1.UserIdentityMapping](
"useridentitymappings",
c.RESTClient(),
scheme.ParameterCodec,
"",
- func() *v1.UserIdentityMapping { return &v1.UserIdentityMapping{} }),
+ func() *userv1.UserIdentityMapping { return &userv1.UserIdentityMapping{} },
+ ),
}
}
diff --git a/user/informers/externalversions/generic.go b/user/informers/externalversions/generic.go
index 6c8cb23b6..a706e1905 100644
--- a/user/informers/externalversions/generic.go
+++ b/user/informers/externalversions/generic.go
@@ -3,7 +3,7 @@
package externalversions
import (
- "fmt"
+ fmt "fmt"
v1 "github.com/openshift/api/user/v1"
schema "k8s.io/apimachinery/pkg/runtime/schema"
diff --git a/user/informers/externalversions/user/v1/group.go b/user/informers/externalversions/user/v1/group.go
index 24df75f7c..69c542e8f 100644
--- a/user/informers/externalversions/user/v1/group.go
+++ b/user/informers/externalversions/user/v1/group.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- userv1 "github.com/openshift/api/user/v1"
+ apiuserv1 "github.com/openshift/api/user/v1"
versioned "github.com/openshift/client-go/user/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/user/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/user/listers/user/v1"
+ userv1 "github.com/openshift/client-go/user/listers/user/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// Groups.
type GroupInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.GroupLister
+ Lister() userv1.GroupLister
}
type groupInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredGroupInformer(client versioned.Interface, resyncPeriod time.Dura
return client.UserV1().Groups().Watch(context.TODO(), options)
},
},
- &userv1.Group{},
+ &apiuserv1.Group{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *groupInformer) defaultInformer(client versioned.Interface, resyncPeriod
}
func (f *groupInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&userv1.Group{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiuserv1.Group{}, f.defaultInformer)
}
-func (f *groupInformer) Lister() v1.GroupLister {
- return v1.NewGroupLister(f.Informer().GetIndexer())
+func (f *groupInformer) Lister() userv1.GroupLister {
+ return userv1.NewGroupLister(f.Informer().GetIndexer())
}
diff --git a/user/informers/externalversions/user/v1/identity.go b/user/informers/externalversions/user/v1/identity.go
index 9a4689781..b7d4263ae 100644
--- a/user/informers/externalversions/user/v1/identity.go
+++ b/user/informers/externalversions/user/v1/identity.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- userv1 "github.com/openshift/api/user/v1"
+ apiuserv1 "github.com/openshift/api/user/v1"
versioned "github.com/openshift/client-go/user/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/user/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/user/listers/user/v1"
+ userv1 "github.com/openshift/client-go/user/listers/user/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// Identities.
type IdentityInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.IdentityLister
+ Lister() userv1.IdentityLister
}
type identityInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredIdentityInformer(client versioned.Interface, resyncPeriod time.D
return client.UserV1().Identities().Watch(context.TODO(), options)
},
},
- &userv1.Identity{},
+ &apiuserv1.Identity{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *identityInformer) defaultInformer(client versioned.Interface, resyncPer
}
func (f *identityInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&userv1.Identity{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiuserv1.Identity{}, f.defaultInformer)
}
-func (f *identityInformer) Lister() v1.IdentityLister {
- return v1.NewIdentityLister(f.Informer().GetIndexer())
+func (f *identityInformer) Lister() userv1.IdentityLister {
+ return userv1.NewIdentityLister(f.Informer().GetIndexer())
}
diff --git a/user/informers/externalversions/user/v1/user.go b/user/informers/externalversions/user/v1/user.go
index 57aaca1f7..1b680051f 100644
--- a/user/informers/externalversions/user/v1/user.go
+++ b/user/informers/externalversions/user/v1/user.go
@@ -3,13 +3,13 @@
package v1
import (
- "context"
+ context "context"
time "time"
- userv1 "github.com/openshift/api/user/v1"
+ apiuserv1 "github.com/openshift/api/user/v1"
versioned "github.com/openshift/client-go/user/clientset/versioned"
internalinterfaces "github.com/openshift/client-go/user/informers/externalversions/internalinterfaces"
- v1 "github.com/openshift/client-go/user/listers/user/v1"
+ userv1 "github.com/openshift/client-go/user/listers/user/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -20,7 +20,7 @@ import (
// Users.
type UserInformer interface {
Informer() cache.SharedIndexInformer
- Lister() v1.UserLister
+ Lister() userv1.UserLister
}
type userInformer struct {
@@ -54,7 +54,7 @@ func NewFilteredUserInformer(client versioned.Interface, resyncPeriod time.Durat
return client.UserV1().Users().Watch(context.TODO(), options)
},
},
- &userv1.User{},
+ &apiuserv1.User{},
resyncPeriod,
indexers,
)
@@ -65,9 +65,9 @@ func (f *userInformer) defaultInformer(client versioned.Interface, resyncPeriod
}
func (f *userInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&userv1.User{}, f.defaultInformer)
+ return f.factory.InformerFor(&apiuserv1.User{}, f.defaultInformer)
}
-func (f *userInformer) Lister() v1.UserLister {
- return v1.NewUserLister(f.Informer().GetIndexer())
+func (f *userInformer) Lister() userv1.UserLister {
+ return userv1.NewUserLister(f.Informer().GetIndexer())
}
diff --git a/user/listers/user/v1/group.go b/user/listers/user/v1/group.go
index 907a8d54b..90349c603 100644
--- a/user/listers/user/v1/group.go
+++ b/user/listers/user/v1/group.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/user/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ userv1 "github.com/openshift/api/user/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// GroupLister helps list Groups.
@@ -14,19 +14,19 @@ import (
type GroupLister interface {
// List lists all Groups in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.Group, err error)
+ List(selector labels.Selector) (ret []*userv1.Group, err error)
// Get retrieves the Group from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.Group, error)
+ Get(name string) (*userv1.Group, error)
GroupListerExpansion
}
// groupLister implements the GroupLister interface.
type groupLister struct {
- listers.ResourceIndexer[*v1.Group]
+ listers.ResourceIndexer[*userv1.Group]
}
// NewGroupLister returns a new GroupLister.
func NewGroupLister(indexer cache.Indexer) GroupLister {
- return &groupLister{listers.New[*v1.Group](indexer, v1.Resource("group"))}
+ return &groupLister{listers.New[*userv1.Group](indexer, userv1.Resource("group"))}
}
diff --git a/user/listers/user/v1/identity.go b/user/listers/user/v1/identity.go
index 32607e76d..5b87dc2f7 100644
--- a/user/listers/user/v1/identity.go
+++ b/user/listers/user/v1/identity.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/user/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ userv1 "github.com/openshift/api/user/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// IdentityLister helps list Identities.
@@ -14,19 +14,19 @@ import (
type IdentityLister interface {
// List lists all Identities in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.Identity, err error)
+ List(selector labels.Selector) (ret []*userv1.Identity, err error)
// Get retrieves the Identity from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.Identity, error)
+ Get(name string) (*userv1.Identity, error)
IdentityListerExpansion
}
// identityLister implements the IdentityLister interface.
type identityLister struct {
- listers.ResourceIndexer[*v1.Identity]
+ listers.ResourceIndexer[*userv1.Identity]
}
// NewIdentityLister returns a new IdentityLister.
func NewIdentityLister(indexer cache.Indexer) IdentityLister {
- return &identityLister{listers.New[*v1.Identity](indexer, v1.Resource("identity"))}
+ return &identityLister{listers.New[*userv1.Identity](indexer, userv1.Resource("identity"))}
}
diff --git a/user/listers/user/v1/user.go b/user/listers/user/v1/user.go
index 71d147322..d2e2a674f 100644
--- a/user/listers/user/v1/user.go
+++ b/user/listers/user/v1/user.go
@@ -3,10 +3,10 @@
package v1
import (
- v1 "github.com/openshift/api/user/v1"
- "k8s.io/apimachinery/pkg/labels"
- "k8s.io/client-go/listers"
- "k8s.io/client-go/tools/cache"
+ userv1 "github.com/openshift/api/user/v1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
)
// UserLister helps list Users.
@@ -14,19 +14,19 @@ import (
type UserLister interface {
// List lists all Users in the indexer.
// Objects returned here must be treated as read-only.
- List(selector labels.Selector) (ret []*v1.User, err error)
+ List(selector labels.Selector) (ret []*userv1.User, err error)
// Get retrieves the User from the index for a given name.
// Objects returned here must be treated as read-only.
- Get(name string) (*v1.User, error)
+ Get(name string) (*userv1.User, error)
UserListerExpansion
}
// userLister implements the UserLister interface.
type userLister struct {
- listers.ResourceIndexer[*v1.User]
+ listers.ResourceIndexer[*userv1.User]
}
// NewUserLister returns a new UserLister.
func NewUserLister(indexer cache.Indexer) UserLister {
- return &userLister{listers.New[*v1.User](indexer, v1.Resource("user"))}
+ return &userLister{listers.New[*userv1.User](indexer, userv1.Resource("user"))}
}
diff --git a/vendor/github.com/go-openapi/jsonpointer/.golangci.yml b/vendor/github.com/go-openapi/jsonpointer/.golangci.yml
new file mode 100644
index 000000000..22f8d21cc
--- /dev/null
+++ b/vendor/github.com/go-openapi/jsonpointer/.golangci.yml
@@ -0,0 +1,61 @@
+linters-settings:
+ govet:
+ check-shadowing: true
+ golint:
+ min-confidence: 0
+ gocyclo:
+ min-complexity: 45
+ maligned:
+ suggest-new: true
+ dupl:
+ threshold: 200
+ goconst:
+ min-len: 2
+ min-occurrences: 3
+
+linters:
+ enable-all: true
+ disable:
+ - maligned
+ - unparam
+ - lll
+ - gochecknoinits
+ - gochecknoglobals
+ - funlen
+ - godox
+ - gocognit
+ - whitespace
+ - wsl
+ - wrapcheck
+ - testpackage
+ - nlreturn
+ - gomnd
+ - exhaustivestruct
+ - goerr113
+ - errorlint
+ - nestif
+ - godot
+ - gofumpt
+ - paralleltest
+ - tparallel
+ - thelper
+ - ifshort
+ - exhaustruct
+ - varnamelen
+ - gci
+ - depguard
+ - errchkjson
+ - inamedparam
+ - nonamedreturns
+ - musttag
+ - ireturn
+ - forcetypeassert
+ - cyclop
+ # deprecated linters
+ - deadcode
+ - interfacer
+ - scopelint
+ - varcheck
+ - structcheck
+ - golint
+ - nosnakecase
diff --git a/vendor/github.com/go-openapi/jsonpointer/README.md b/vendor/github.com/go-openapi/jsonpointer/README.md
index 813788aff..0108f1d57 100644
--- a/vendor/github.com/go-openapi/jsonpointer/README.md
+++ b/vendor/github.com/go-openapi/jsonpointer/README.md
@@ -1,6 +1,10 @@
-# gojsonpointer [](https://travis-ci.org/go-openapi/jsonpointer) [](https://codecov.io/gh/go-openapi/jsonpointer) [](https://slackin.goswagger.io)
+# gojsonpointer [](https://github.com/go-openapi/jsonpointer/actions?query=workflow%3A"go+test") [](https://codecov.io/gh/go-openapi/jsonpointer)
+
+[](https://slackin.goswagger.io)
+[](https://raw.githubusercontent.com/go-openapi/jsonpointer/master/LICENSE)
+[](https://pkg.go.dev/github.com/go-openapi/jsonpointer)
+[](https://goreportcard.com/report/github.com/go-openapi/jsonpointer)
-[](https://raw.githubusercontent.com/go-openapi/jsonpointer/master/LICENSE) [](http://godoc.org/github.com/go-openapi/jsonpointer)
An implementation of JSON Pointer - Go language
## Status
diff --git a/vendor/github.com/go-openapi/jsonpointer/pointer.go b/vendor/github.com/go-openapi/jsonpointer/pointer.go
index 7df9853de..d970c7cf4 100644
--- a/vendor/github.com/go-openapi/jsonpointer/pointer.go
+++ b/vendor/github.com/go-openapi/jsonpointer/pointer.go
@@ -26,6 +26,7 @@
package jsonpointer
import (
+ "encoding/json"
"errors"
"fmt"
"reflect"
@@ -40,6 +41,7 @@ const (
pointerSeparator = `/`
invalidStart = `JSON pointer must be empty or start with a "` + pointerSeparator
+ notFound = `Can't find the pointer in the document`
)
var jsonPointableType = reflect.TypeOf(new(JSONPointable)).Elem()
@@ -48,13 +50,13 @@ var jsonSetableType = reflect.TypeOf(new(JSONSetable)).Elem()
// JSONPointable is an interface for structs to implement when they need to customize the
// json pointer process
type JSONPointable interface {
- JSONLookup(string) (interface{}, error)
+ JSONLookup(string) (any, error)
}
// JSONSetable is an interface for structs to implement when they need to customize the
// json pointer process
type JSONSetable interface {
- JSONSet(string, interface{}) error
+ JSONSet(string, any) error
}
// New creates a new json pointer for the given string
@@ -81,9 +83,7 @@ func (p *Pointer) parse(jsonPointerString string) error {
err = errors.New(invalidStart)
} else {
referenceTokens := strings.Split(jsonPointerString, pointerSeparator)
- for _, referenceToken := range referenceTokens[1:] {
- p.referenceTokens = append(p.referenceTokens, referenceToken)
- }
+ p.referenceTokens = append(p.referenceTokens, referenceTokens[1:]...)
}
}
@@ -91,38 +91,58 @@ func (p *Pointer) parse(jsonPointerString string) error {
}
// Get uses the pointer to retrieve a value from a JSON document
-func (p *Pointer) Get(document interface{}) (interface{}, reflect.Kind, error) {
+func (p *Pointer) Get(document any) (any, reflect.Kind, error) {
return p.get(document, swag.DefaultJSONNameProvider)
}
// Set uses the pointer to set a value from a JSON document
-func (p *Pointer) Set(document interface{}, value interface{}) (interface{}, error) {
+func (p *Pointer) Set(document any, value any) (any, error) {
return document, p.set(document, value, swag.DefaultJSONNameProvider)
}
// GetForToken gets a value for a json pointer token 1 level deep
-func GetForToken(document interface{}, decodedToken string) (interface{}, reflect.Kind, error) {
+func GetForToken(document any, decodedToken string) (any, reflect.Kind, error) {
return getSingleImpl(document, decodedToken, swag.DefaultJSONNameProvider)
}
// SetForToken gets a value for a json pointer token 1 level deep
-func SetForToken(document interface{}, decodedToken string, value interface{}) (interface{}, error) {
+func SetForToken(document any, decodedToken string, value any) (any, error) {
return document, setSingleImpl(document, value, decodedToken, swag.DefaultJSONNameProvider)
}
-func getSingleImpl(node interface{}, decodedToken string, nameProvider *swag.NameProvider) (interface{}, reflect.Kind, error) {
+func isNil(input any) bool {
+ if input == nil {
+ return true
+ }
+
+ kind := reflect.TypeOf(input).Kind()
+ switch kind { //nolint:exhaustive
+ case reflect.Ptr, reflect.Map, reflect.Slice, reflect.Chan:
+ return reflect.ValueOf(input).IsNil()
+ default:
+ return false
+ }
+}
+
+func getSingleImpl(node any, decodedToken string, nameProvider *swag.NameProvider) (any, reflect.Kind, error) {
rValue := reflect.Indirect(reflect.ValueOf(node))
kind := rValue.Kind()
+ if isNil(node) {
+ return nil, kind, fmt.Errorf("nil value has not field %q", decodedToken)
+ }
- if rValue.Type().Implements(jsonPointableType) {
- r, err := node.(JSONPointable).JSONLookup(decodedToken)
+ switch typed := node.(type) {
+ case JSONPointable:
+ r, err := typed.JSONLookup(decodedToken)
if err != nil {
return nil, kind, err
}
return r, kind, nil
+ case *any: // case of a pointer to interface, that is not resolved by reflect.Indirect
+ return getSingleImpl(*typed, decodedToken, nameProvider)
}
- switch kind {
+ switch kind { //nolint:exhaustive
case reflect.Struct:
nm, ok := nameProvider.GetGoNameForType(rValue.Type(), decodedToken)
if !ok {
@@ -159,7 +179,7 @@ func getSingleImpl(node interface{}, decodedToken string, nameProvider *swag.Nam
}
-func setSingleImpl(node, data interface{}, decodedToken string, nameProvider *swag.NameProvider) error {
+func setSingleImpl(node, data any, decodedToken string, nameProvider *swag.NameProvider) error {
rValue := reflect.Indirect(reflect.ValueOf(node))
if ns, ok := node.(JSONSetable); ok { // pointer impl
@@ -170,7 +190,7 @@ func setSingleImpl(node, data interface{}, decodedToken string, nameProvider *sw
return node.(JSONSetable).JSONSet(decodedToken, data)
}
- switch rValue.Kind() {
+ switch rValue.Kind() { //nolint:exhaustive
case reflect.Struct:
nm, ok := nameProvider.GetGoNameForType(rValue.Type(), decodedToken)
if !ok {
@@ -210,7 +230,7 @@ func setSingleImpl(node, data interface{}, decodedToken string, nameProvider *sw
}
-func (p *Pointer) get(node interface{}, nameProvider *swag.NameProvider) (interface{}, reflect.Kind, error) {
+func (p *Pointer) get(node any, nameProvider *swag.NameProvider) (any, reflect.Kind, error) {
if nameProvider == nil {
nameProvider = swag.DefaultJSONNameProvider
@@ -231,8 +251,7 @@ func (p *Pointer) get(node interface{}, nameProvider *swag.NameProvider) (interf
if err != nil {
return nil, knd, err
}
- node, kind = r, knd
-
+ node = r
}
rValue := reflect.ValueOf(node)
@@ -241,11 +260,11 @@ func (p *Pointer) get(node interface{}, nameProvider *swag.NameProvider) (interf
return node, kind, nil
}
-func (p *Pointer) set(node, data interface{}, nameProvider *swag.NameProvider) error {
+func (p *Pointer) set(node, data any, nameProvider *swag.NameProvider) error {
knd := reflect.ValueOf(node).Kind()
if knd != reflect.Ptr && knd != reflect.Struct && knd != reflect.Map && knd != reflect.Slice && knd != reflect.Array {
- return fmt.Errorf("only structs, pointers, maps and slices are supported for setting values")
+ return errors.New("only structs, pointers, maps and slices are supported for setting values")
}
if nameProvider == nil {
@@ -284,7 +303,7 @@ func (p *Pointer) set(node, data interface{}, nameProvider *swag.NameProvider) e
continue
}
- switch kind {
+ switch kind { //nolint:exhaustive
case reflect.Struct:
nm, ok := nameProvider.GetGoNameForType(rValue.Type(), decodedToken)
if !ok {
@@ -363,6 +382,128 @@ func (p *Pointer) String() string {
return pointerString
}
+func (p *Pointer) Offset(document string) (int64, error) {
+ dec := json.NewDecoder(strings.NewReader(document))
+ var offset int64
+ for _, ttk := range p.DecodedTokens() {
+ tk, err := dec.Token()
+ if err != nil {
+ return 0, err
+ }
+ switch tk := tk.(type) {
+ case json.Delim:
+ switch tk {
+ case '{':
+ offset, err = offsetSingleObject(dec, ttk)
+ if err != nil {
+ return 0, err
+ }
+ case '[':
+ offset, err = offsetSingleArray(dec, ttk)
+ if err != nil {
+ return 0, err
+ }
+ default:
+ return 0, fmt.Errorf("invalid token %#v", tk)
+ }
+ default:
+ return 0, fmt.Errorf("invalid token %#v", tk)
+ }
+ }
+ return offset, nil
+}
+
+func offsetSingleObject(dec *json.Decoder, decodedToken string) (int64, error) {
+ for dec.More() {
+ offset := dec.InputOffset()
+ tk, err := dec.Token()
+ if err != nil {
+ return 0, err
+ }
+ switch tk := tk.(type) {
+ case json.Delim:
+ switch tk {
+ case '{':
+ if err = drainSingle(dec); err != nil {
+ return 0, err
+ }
+ case '[':
+ if err = drainSingle(dec); err != nil {
+ return 0, err
+ }
+ }
+ case string:
+ if tk == decodedToken {
+ return offset, nil
+ }
+ default:
+ return 0, fmt.Errorf("invalid token %#v", tk)
+ }
+ }
+ return 0, fmt.Errorf("token reference %q not found", decodedToken)
+}
+
+func offsetSingleArray(dec *json.Decoder, decodedToken string) (int64, error) {
+ idx, err := strconv.Atoi(decodedToken)
+ if err != nil {
+ return 0, fmt.Errorf("token reference %q is not a number: %v", decodedToken, err)
+ }
+ var i int
+ for i = 0; i < idx && dec.More(); i++ {
+ tk, err := dec.Token()
+ if err != nil {
+ return 0, err
+ }
+
+ if delim, isDelim := tk.(json.Delim); isDelim {
+ switch delim {
+ case '{':
+ if err = drainSingle(dec); err != nil {
+ return 0, err
+ }
+ case '[':
+ if err = drainSingle(dec); err != nil {
+ return 0, err
+ }
+ }
+ }
+ }
+
+ if !dec.More() {
+ return 0, fmt.Errorf("token reference %q not found", decodedToken)
+ }
+ return dec.InputOffset(), nil
+}
+
+// drainSingle drains a single level of object or array.
+// The decoder has to guarantee the beginning delim (i.e. '{' or '[') has been consumed.
+func drainSingle(dec *json.Decoder) error {
+ for dec.More() {
+ tk, err := dec.Token()
+ if err != nil {
+ return err
+ }
+ if delim, isDelim := tk.(json.Delim); isDelim {
+ switch delim {
+ case '{':
+ if err = drainSingle(dec); err != nil {
+ return err
+ }
+ case '[':
+ if err = drainSingle(dec); err != nil {
+ return err
+ }
+ }
+ }
+ }
+
+ // Consumes the ending delim
+ if _, err := dec.Token(); err != nil {
+ return err
+ }
+ return nil
+}
+
// Specific JSON pointer encoding here
// ~0 => ~
// ~1 => /
@@ -377,14 +518,14 @@ const (
// Unescape unescapes a json pointer reference token string to the original representation
func Unescape(token string) string {
- step1 := strings.Replace(token, encRefTok1, decRefTok1, -1)
- step2 := strings.Replace(step1, encRefTok0, decRefTok0, -1)
+ step1 := strings.ReplaceAll(token, encRefTok1, decRefTok1)
+ step2 := strings.ReplaceAll(step1, encRefTok0, decRefTok0)
return step2
}
// Escape escapes a pointer reference token string
func Escape(token string) string {
- step1 := strings.Replace(token, decRefTok0, encRefTok0, -1)
- step2 := strings.Replace(step1, decRefTok1, encRefTok1, -1)
+ step1 := strings.ReplaceAll(token, decRefTok0, encRefTok0)
+ step2 := strings.ReplaceAll(step1, decRefTok1, encRefTok1)
return step2
}
diff --git a/vendor/github.com/go-openapi/swag/.gitignore b/vendor/github.com/go-openapi/swag/.gitignore
index d69b53acc..c4b1b64f0 100644
--- a/vendor/github.com/go-openapi/swag/.gitignore
+++ b/vendor/github.com/go-openapi/swag/.gitignore
@@ -2,3 +2,4 @@ secrets.yml
vendor
Godeps
.idea
+*.out
diff --git a/vendor/github.com/go-openapi/swag/.golangci.yml b/vendor/github.com/go-openapi/swag/.golangci.yml
index bf503e400..80e2be004 100644
--- a/vendor/github.com/go-openapi/swag/.golangci.yml
+++ b/vendor/github.com/go-openapi/swag/.golangci.yml
@@ -4,14 +4,14 @@ linters-settings:
golint:
min-confidence: 0
gocyclo:
- min-complexity: 25
+ min-complexity: 45
maligned:
suggest-new: true
dupl:
- threshold: 100
+ threshold: 200
goconst:
min-len: 3
- min-occurrences: 2
+ min-occurrences: 3
linters:
enable-all: true
@@ -20,35 +20,41 @@ linters:
- lll
- gochecknoinits
- gochecknoglobals
- - nlreturn
- - testpackage
+ - funlen
+ - godox
+ - gocognit
+ - whitespace
+ - wsl
- wrapcheck
+ - testpackage
+ - nlreturn
- gomnd
- - exhaustive
- exhaustivestruct
- goerr113
- - wsl
- - whitespace
- - gofumpt
- - godot
+ - errorlint
- nestif
- - godox
- - funlen
- - gci
- - gocognit
+ - godot
+ - gofumpt
- paralleltest
+ - tparallel
- thelper
- ifshort
- - gomoddirectives
- - cyclop
- - forcetypeassert
- - ireturn
- - tagliatelle
- - varnamelen
- - goimports
- - tenv
- - golint
- exhaustruct
- - nilnil
+ - varnamelen
+ - gci
+ - depguard
+ - errchkjson
+ - inamedparam
- nonamedreturns
+ - musttag
+ - ireturn
+ - forcetypeassert
+ - cyclop
+ # deprecated linters
+ - deadcode
+ - interfacer
+ - scopelint
+ - varcheck
+ - structcheck
+ - golint
- nosnakecase
diff --git a/vendor/github.com/go-openapi/swag/BENCHMARK.md b/vendor/github.com/go-openapi/swag/BENCHMARK.md
new file mode 100644
index 000000000..e7f28ed6b
--- /dev/null
+++ b/vendor/github.com/go-openapi/swag/BENCHMARK.md
@@ -0,0 +1,52 @@
+# Benchmarks
+
+## Name mangling utilities
+
+```bash
+go test -bench XXX -run XXX -benchtime 30s
+```
+
+### Benchmarks at b3e7a5386f996177e4808f11acb2aa93a0f660df
+
+```
+goos: linux
+goarch: amd64
+pkg: github.com/go-openapi/swag
+cpu: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz
+BenchmarkToXXXName/ToGoName-4 862623 44101 ns/op 10450 B/op 732 allocs/op
+BenchmarkToXXXName/ToVarName-4 853656 40728 ns/op 10468 B/op 734 allocs/op
+BenchmarkToXXXName/ToFileName-4 1268312 27813 ns/op 9785 B/op 617 allocs/op
+BenchmarkToXXXName/ToCommandName-4 1276322 27903 ns/op 9785 B/op 617 allocs/op
+BenchmarkToXXXName/ToHumanNameLower-4 895334 40354 ns/op 10472 B/op 731 allocs/op
+BenchmarkToXXXName/ToHumanNameTitle-4 882441 40678 ns/op 10566 B/op 749 allocs/op
+```
+
+### Benchmarks after PR #79
+
+~ x10 performance improvement and ~ /100 memory allocations.
+
+```
+goos: linux
+goarch: amd64
+pkg: github.com/go-openapi/swag
+cpu: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz
+BenchmarkToXXXName/ToGoName-4 9595830 3991 ns/op 42 B/op 5 allocs/op
+BenchmarkToXXXName/ToVarName-4 9194276 3984 ns/op 62 B/op 7 allocs/op
+BenchmarkToXXXName/ToFileName-4 17002711 2123 ns/op 147 B/op 7 allocs/op
+BenchmarkToXXXName/ToCommandName-4 16772926 2111 ns/op 147 B/op 7 allocs/op
+BenchmarkToXXXName/ToHumanNameLower-4 9788331 3749 ns/op 92 B/op 6 allocs/op
+BenchmarkToXXXName/ToHumanNameTitle-4 9188260 3941 ns/op 104 B/op 6 allocs/op
+```
+
+```
+goos: linux
+goarch: amd64
+pkg: github.com/go-openapi/swag
+cpu: AMD Ryzen 7 5800X 8-Core Processor
+BenchmarkToXXXName/ToGoName-16 18527378 1972 ns/op 42 B/op 5 allocs/op
+BenchmarkToXXXName/ToVarName-16 15552692 2093 ns/op 62 B/op 7 allocs/op
+BenchmarkToXXXName/ToFileName-16 32161176 1117 ns/op 147 B/op 7 allocs/op
+BenchmarkToXXXName/ToCommandName-16 32256634 1137 ns/op 147 B/op 7 allocs/op
+BenchmarkToXXXName/ToHumanNameLower-16 18599661 1946 ns/op 92 B/op 6 allocs/op
+BenchmarkToXXXName/ToHumanNameTitle-16 17581353 2054 ns/op 105 B/op 6 allocs/op
+```
diff --git a/vendor/github.com/go-openapi/swag/README.md b/vendor/github.com/go-openapi/swag/README.md
index 217f6fa50..a72922299 100644
--- a/vendor/github.com/go-openapi/swag/README.md
+++ b/vendor/github.com/go-openapi/swag/README.md
@@ -1,7 +1,8 @@
-# Swag [](https://travis-ci.org/go-openapi/swag) [](https://codecov.io/gh/go-openapi/swag) [](https://slackin.goswagger.io)
+# Swag [](https://github.com/go-openapi/swag/actions?query=workflow%3A"go+test") [](https://codecov.io/gh/go-openapi/swag)
+[](https://slackin.goswagger.io)
[](https://raw.githubusercontent.com/go-openapi/swag/master/LICENSE)
-[](http://godoc.org/github.com/go-openapi/swag)
+[](https://pkg.go.dev/github.com/go-openapi/swag)
[](https://goreportcard.com/report/github.com/go-openapi/swag)
Contains a bunch of helper functions for go-openapi and go-swagger projects.
@@ -18,4 +19,5 @@ You may also use it standalone for your projects.
This repo has only few dependencies outside of the standard library:
-* YAML utilities depend on gopkg.in/yaml.v2
+* YAML utilities depend on `gopkg.in/yaml.v3`
+* `github.com/mailru/easyjson v0.7.7`
diff --git a/vendor/github.com/go-openapi/swag/initialism_index.go b/vendor/github.com/go-openapi/swag/initialism_index.go
new file mode 100644
index 000000000..20a359bb6
--- /dev/null
+++ b/vendor/github.com/go-openapi/swag/initialism_index.go
@@ -0,0 +1,202 @@
+// Copyright 2015 go-swagger maintainers
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package swag
+
+import (
+ "sort"
+ "strings"
+ "sync"
+)
+
+var (
+ // commonInitialisms are common acronyms that are kept as whole uppercased words.
+ commonInitialisms *indexOfInitialisms
+
+ // initialisms is a slice of sorted initialisms
+ initialisms []string
+
+ // a copy of initialisms pre-baked as []rune
+ initialismsRunes [][]rune
+ initialismsUpperCased [][]rune
+
+ isInitialism func(string) bool
+
+ maxAllocMatches int
+)
+
+func init() {
+ // Taken from https://github.com/golang/lint/blob/3390df4df2787994aea98de825b964ac7944b817/lint.go#L732-L769
+ configuredInitialisms := map[string]bool{
+ "ACL": true,
+ "API": true,
+ "ASCII": true,
+ "CPU": true,
+ "CSS": true,
+ "DNS": true,
+ "EOF": true,
+ "GUID": true,
+ "HTML": true,
+ "HTTPS": true,
+ "HTTP": true,
+ "ID": true,
+ "IP": true,
+ "IPv4": true,
+ "IPv6": true,
+ "JSON": true,
+ "LHS": true,
+ "OAI": true,
+ "QPS": true,
+ "RAM": true,
+ "RHS": true,
+ "RPC": true,
+ "SLA": true,
+ "SMTP": true,
+ "SQL": true,
+ "SSH": true,
+ "TCP": true,
+ "TLS": true,
+ "TTL": true,
+ "UDP": true,
+ "UI": true,
+ "UID": true,
+ "UUID": true,
+ "URI": true,
+ "URL": true,
+ "UTF8": true,
+ "VM": true,
+ "XML": true,
+ "XMPP": true,
+ "XSRF": true,
+ "XSS": true,
+ }
+
+ // a thread-safe index of initialisms
+ commonInitialisms = newIndexOfInitialisms().load(configuredInitialisms)
+ initialisms = commonInitialisms.sorted()
+ initialismsRunes = asRunes(initialisms)
+ initialismsUpperCased = asUpperCased(initialisms)
+ maxAllocMatches = maxAllocHeuristic(initialismsRunes)
+
+ // a test function
+ isInitialism = commonInitialisms.isInitialism
+}
+
+func asRunes(in []string) [][]rune {
+ out := make([][]rune, len(in))
+ for i, initialism := range in {
+ out[i] = []rune(initialism)
+ }
+
+ return out
+}
+
+func asUpperCased(in []string) [][]rune {
+ out := make([][]rune, len(in))
+
+ for i, initialism := range in {
+ out[i] = []rune(upper(trim(initialism)))
+ }
+
+ return out
+}
+
+func maxAllocHeuristic(in [][]rune) int {
+ heuristic := make(map[rune]int)
+ for _, initialism := range in {
+ heuristic[initialism[0]]++
+ }
+
+ var maxAlloc int
+ for _, val := range heuristic {
+ if val > maxAlloc {
+ maxAlloc = val
+ }
+ }
+
+ return maxAlloc
+}
+
+// AddInitialisms add additional initialisms
+func AddInitialisms(words ...string) {
+ for _, word := range words {
+ // commonInitialisms[upper(word)] = true
+ commonInitialisms.add(upper(word))
+ }
+ // sort again
+ initialisms = commonInitialisms.sorted()
+ initialismsRunes = asRunes(initialisms)
+ initialismsUpperCased = asUpperCased(initialisms)
+}
+
+// indexOfInitialisms is a thread-safe implementation of the sorted index of initialisms.
+// Since go1.9, this may be implemented with sync.Map.
+type indexOfInitialisms struct {
+ sortMutex *sync.Mutex
+ index *sync.Map
+}
+
+func newIndexOfInitialisms() *indexOfInitialisms {
+ return &indexOfInitialisms{
+ sortMutex: new(sync.Mutex),
+ index: new(sync.Map),
+ }
+}
+
+func (m *indexOfInitialisms) load(initial map[string]bool) *indexOfInitialisms {
+ m.sortMutex.Lock()
+ defer m.sortMutex.Unlock()
+ for k, v := range initial {
+ m.index.Store(k, v)
+ }
+ return m
+}
+
+func (m *indexOfInitialisms) isInitialism(key string) bool {
+ _, ok := m.index.Load(key)
+ return ok
+}
+
+func (m *indexOfInitialisms) add(key string) *indexOfInitialisms {
+ m.index.Store(key, true)
+ return m
+}
+
+func (m *indexOfInitialisms) sorted() (result []string) {
+ m.sortMutex.Lock()
+ defer m.sortMutex.Unlock()
+ m.index.Range(func(key, _ interface{}) bool {
+ k := key.(string)
+ result = append(result, k)
+ return true
+ })
+ sort.Sort(sort.Reverse(byInitialism(result)))
+ return
+}
+
+type byInitialism []string
+
+func (s byInitialism) Len() int {
+ return len(s)
+}
+func (s byInitialism) Swap(i, j int) {
+ s[i], s[j] = s[j], s[i]
+}
+func (s byInitialism) Less(i, j int) bool {
+ if len(s[i]) != len(s[j]) {
+ return len(s[i]) < len(s[j])
+ }
+
+ return strings.Compare(s[i], s[j]) > 0
+}
diff --git a/vendor/github.com/go-openapi/swag/loading.go b/vendor/github.com/go-openapi/swag/loading.go
index 00038c377..783442fdd 100644
--- a/vendor/github.com/go-openapi/swag/loading.go
+++ b/vendor/github.com/go-openapi/swag/loading.go
@@ -21,6 +21,7 @@ import (
"net/http"
"net/url"
"os"
+ "path"
"path/filepath"
"runtime"
"strings"
@@ -40,43 +41,97 @@ var LoadHTTPBasicAuthPassword = ""
var LoadHTTPCustomHeaders = map[string]string{}
// LoadFromFileOrHTTP loads the bytes from a file or a remote http server based on the path passed in
-func LoadFromFileOrHTTP(path string) ([]byte, error) {
- return LoadStrategy(path, os.ReadFile, loadHTTPBytes(LoadHTTPTimeout))(path)
+func LoadFromFileOrHTTP(pth string) ([]byte, error) {
+ return LoadStrategy(pth, os.ReadFile, loadHTTPBytes(LoadHTTPTimeout))(pth)
}
// LoadFromFileOrHTTPWithTimeout loads the bytes from a file or a remote http server based on the path passed in
// timeout arg allows for per request overriding of the request timeout
-func LoadFromFileOrHTTPWithTimeout(path string, timeout time.Duration) ([]byte, error) {
- return LoadStrategy(path, os.ReadFile, loadHTTPBytes(timeout))(path)
+func LoadFromFileOrHTTPWithTimeout(pth string, timeout time.Duration) ([]byte, error) {
+ return LoadStrategy(pth, os.ReadFile, loadHTTPBytes(timeout))(pth)
}
-// LoadStrategy returns a loader function for a given path or uri
-func LoadStrategy(path string, local, remote func(string) ([]byte, error)) func(string) ([]byte, error) {
- if strings.HasPrefix(path, "http") {
+// LoadStrategy returns a loader function for a given path or URI.
+//
+// The load strategy returns the remote load for any path starting with `http`.
+// So this works for any URI with a scheme `http` or `https`.
+//
+// The fallback strategy is to call the local loader.
+//
+// The local loader takes a local file system path (absolute or relative) as argument,
+// or alternatively a `file://...` URI, **without host** (see also below for windows).
+//
+// There are a few liberalities, initially intended to be tolerant regarding the URI syntax,
+// especially on windows.
+//
+// Before the local loader is called, the given path is transformed:
+// - percent-encoded characters are unescaped
+// - simple paths (e.g. `./folder/file`) are passed as-is
+// - on windows, occurrences of `/` are replaced by `\`, so providing a relative path such a `folder/file` works too.
+//
+// For paths provided as URIs with the "file" scheme, please note that:
+// - `file://` is simply stripped.
+// This means that the host part of the URI is not parsed at all.
+// For example, `file:///folder/file" becomes "/folder/file`,
+// but `file://localhost/folder/file` becomes `localhost/folder/file` on unix systems.
+// Similarly, `file://./folder/file` yields `./folder/file`.
+// - on windows, `file://...` can take a host so as to specify an UNC share location.
+//
+// Reminder about windows-specifics:
+// - `file://host/folder/file` becomes an UNC path like `\\host\folder\file` (no port specification is supported)
+// - `file:///c:/folder/file` becomes `C:\folder\file`
+// - `file://c:/folder/file` is tolerated (without leading `/`) and becomes `c:\folder\file`
+func LoadStrategy(pth string, local, remote func(string) ([]byte, error)) func(string) ([]byte, error) {
+ if strings.HasPrefix(pth, "http") {
return remote
}
- return func(pth string) ([]byte, error) {
- upth, err := pathUnescape(pth)
+
+ return func(p string) ([]byte, error) {
+ upth, err := url.PathUnescape(p)
if err != nil {
return nil, err
}
- if strings.HasPrefix(pth, `file://`) {
- if runtime.GOOS == "windows" {
- // support for canonical file URIs on windows.
- // Zero tolerance here for dodgy URIs.
- u, _ := url.Parse(upth)
- if u.Host != "" {
- // assume UNC name (volume share)
- // file://host/share/folder\... ==> \\host\share\path\folder
- // NOTE: UNC port not yet supported
- upth = strings.Join([]string{`\`, u.Host, u.Path}, `\`)
- } else {
- // file:///c:/folder/... ==> just remove the leading slash
- upth = strings.TrimPrefix(upth, `file:///`)
- }
- } else {
- upth = strings.TrimPrefix(upth, `file://`)
+ if !strings.HasPrefix(p, `file://`) {
+ // regular file path provided: just normalize slashes
+ return local(filepath.FromSlash(upth))
+ }
+
+ if runtime.GOOS != "windows" {
+ // crude processing: this leaves full URIs with a host with a (mostly) unexpected result
+ upth = strings.TrimPrefix(upth, `file://`)
+
+ return local(filepath.FromSlash(upth))
+ }
+
+ // windows-only pre-processing of file://... URIs
+
+ // support for canonical file URIs on windows.
+ u, err := url.Parse(filepath.ToSlash(upth))
+ if err != nil {
+ return nil, err
+ }
+
+ if u.Host != "" {
+ // assume UNC name (volume share)
+ // NOTE: UNC port not yet supported
+
+ // when the "host" segment is a drive letter:
+ // file://C:/folder/... => C:\folder
+ upth = path.Clean(strings.Join([]string{u.Host, u.Path}, `/`))
+ if !strings.HasSuffix(u.Host, ":") && u.Host[0] != '.' {
+ // tolerance: if we have a leading dot, this can't be a host
+ // file://host/share/folder\... ==> \\host\share\path\folder
+ upth = "//" + upth
+ }
+ } else {
+ // no host, let's figure out if this is a drive letter
+ upth = strings.TrimPrefix(upth, `file://`)
+ first, _, _ := strings.Cut(strings.TrimPrefix(u.Path, "/"), "/")
+ if strings.HasSuffix(first, ":") {
+ // drive letter in the first segment:
+ // file:///c:/folder/... ==> strip the leading slash
+ upth = strings.TrimPrefix(upth, `/`)
}
}
diff --git a/vendor/github.com/go-openapi/swag/name_lexem.go b/vendor/github.com/go-openapi/swag/name_lexem.go
index aa7f6a9bb..8bb64ac32 100644
--- a/vendor/github.com/go-openapi/swag/name_lexem.go
+++ b/vendor/github.com/go-openapi/swag/name_lexem.go
@@ -14,74 +14,80 @@
package swag
-import "unicode"
+import (
+ "unicode"
+ "unicode/utf8"
+)
type (
- nameLexem interface {
- GetUnsafeGoName() string
- GetOriginal() string
- IsInitialism() bool
- }
+ lexemKind uint8
- initialismNameLexem struct {
+ nameLexem struct {
original string
matchedInitialism string
+ kind lexemKind
}
+)
- casualNameLexem struct {
- original string
- }
+const (
+ lexemKindCasualName lexemKind = iota
+ lexemKindInitialismName
)
-func newInitialismNameLexem(original, matchedInitialism string) *initialismNameLexem {
- return &initialismNameLexem{
+func newInitialismNameLexem(original, matchedInitialism string) nameLexem {
+ return nameLexem{
+ kind: lexemKindInitialismName,
original: original,
matchedInitialism: matchedInitialism,
}
}
-func newCasualNameLexem(original string) *casualNameLexem {
- return &casualNameLexem{
+func newCasualNameLexem(original string) nameLexem {
+ return nameLexem{
+ kind: lexemKindCasualName,
original: original,
}
}
-func (l *initialismNameLexem) GetUnsafeGoName() string {
- return l.matchedInitialism
-}
+func (l nameLexem) GetUnsafeGoName() string {
+ if l.kind == lexemKindInitialismName {
+ return l.matchedInitialism
+ }
+
+ var (
+ first rune
+ rest string
+ )
-func (l *casualNameLexem) GetUnsafeGoName() string {
- var first rune
- var rest string
for i, orig := range l.original {
if i == 0 {
first = orig
continue
}
+
if i > 0 {
rest = l.original[i:]
break
}
}
+
if len(l.original) > 1 {
- return string(unicode.ToUpper(first)) + lower(rest)
+ b := poolOfBuffers.BorrowBuffer(utf8.UTFMax + len(rest))
+ defer func() {
+ poolOfBuffers.RedeemBuffer(b)
+ }()
+ b.WriteRune(unicode.ToUpper(first))
+ b.WriteString(lower(rest))
+ return b.String()
}
return l.original
}
-func (l *initialismNameLexem) GetOriginal() string {
+func (l nameLexem) GetOriginal() string {
return l.original
}
-func (l *casualNameLexem) GetOriginal() string {
- return l.original
-}
-
-func (l *initialismNameLexem) IsInitialism() bool {
- return true
-}
-
-func (l *casualNameLexem) IsInitialism() bool {
- return false
+func (l nameLexem) IsInitialism() bool {
+ return l.kind == lexemKindInitialismName
}
diff --git a/vendor/github.com/go-openapi/swag/post_go18.go b/vendor/github.com/go-openapi/swag/post_go18.go
deleted file mode 100644
index f5228b82c..000000000
--- a/vendor/github.com/go-openapi/swag/post_go18.go
+++ /dev/null
@@ -1,24 +0,0 @@
-// Copyright 2015 go-swagger maintainers
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-//go:build go1.8
-// +build go1.8
-
-package swag
-
-import "net/url"
-
-func pathUnescape(path string) (string, error) {
- return url.PathUnescape(path)
-}
diff --git a/vendor/github.com/go-openapi/swag/post_go19.go b/vendor/github.com/go-openapi/swag/post_go19.go
deleted file mode 100644
index 7c7da9c08..000000000
--- a/vendor/github.com/go-openapi/swag/post_go19.go
+++ /dev/null
@@ -1,68 +0,0 @@
-// Copyright 2015 go-swagger maintainers
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-//go:build go1.9
-// +build go1.9
-
-package swag
-
-import (
- "sort"
- "sync"
-)
-
-// indexOfInitialisms is a thread-safe implementation of the sorted index of initialisms.
-// Since go1.9, this may be implemented with sync.Map.
-type indexOfInitialisms struct {
- sortMutex *sync.Mutex
- index *sync.Map
-}
-
-func newIndexOfInitialisms() *indexOfInitialisms {
- return &indexOfInitialisms{
- sortMutex: new(sync.Mutex),
- index: new(sync.Map),
- }
-}
-
-func (m *indexOfInitialisms) load(initial map[string]bool) *indexOfInitialisms {
- m.sortMutex.Lock()
- defer m.sortMutex.Unlock()
- for k, v := range initial {
- m.index.Store(k, v)
- }
- return m
-}
-
-func (m *indexOfInitialisms) isInitialism(key string) bool {
- _, ok := m.index.Load(key)
- return ok
-}
-
-func (m *indexOfInitialisms) add(key string) *indexOfInitialisms {
- m.index.Store(key, true)
- return m
-}
-
-func (m *indexOfInitialisms) sorted() (result []string) {
- m.sortMutex.Lock()
- defer m.sortMutex.Unlock()
- m.index.Range(func(key, value interface{}) bool {
- k := key.(string)
- result = append(result, k)
- return true
- })
- sort.Sort(sort.Reverse(byInitialism(result)))
- return
-}
diff --git a/vendor/github.com/go-openapi/swag/pre_go18.go b/vendor/github.com/go-openapi/swag/pre_go18.go
deleted file mode 100644
index 2757d9b95..000000000
--- a/vendor/github.com/go-openapi/swag/pre_go18.go
+++ /dev/null
@@ -1,24 +0,0 @@
-// Copyright 2015 go-swagger maintainers
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-//go:build !go1.8
-// +build !go1.8
-
-package swag
-
-import "net/url"
-
-func pathUnescape(path string) (string, error) {
- return url.QueryUnescape(path)
-}
diff --git a/vendor/github.com/go-openapi/swag/pre_go19.go b/vendor/github.com/go-openapi/swag/pre_go19.go
deleted file mode 100644
index 0565db377..000000000
--- a/vendor/github.com/go-openapi/swag/pre_go19.go
+++ /dev/null
@@ -1,70 +0,0 @@
-// Copyright 2015 go-swagger maintainers
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-//go:build !go1.9
-// +build !go1.9
-
-package swag
-
-import (
- "sort"
- "sync"
-)
-
-// indexOfInitialisms is a thread-safe implementation of the sorted index of initialisms.
-// Before go1.9, this may be implemented with a mutex on the map.
-type indexOfInitialisms struct {
- getMutex *sync.Mutex
- index map[string]bool
-}
-
-func newIndexOfInitialisms() *indexOfInitialisms {
- return &indexOfInitialisms{
- getMutex: new(sync.Mutex),
- index: make(map[string]bool, 50),
- }
-}
-
-func (m *indexOfInitialisms) load(initial map[string]bool) *indexOfInitialisms {
- m.getMutex.Lock()
- defer m.getMutex.Unlock()
- for k, v := range initial {
- m.index[k] = v
- }
- return m
-}
-
-func (m *indexOfInitialisms) isInitialism(key string) bool {
- m.getMutex.Lock()
- defer m.getMutex.Unlock()
- _, ok := m.index[key]
- return ok
-}
-
-func (m *indexOfInitialisms) add(key string) *indexOfInitialisms {
- m.getMutex.Lock()
- defer m.getMutex.Unlock()
- m.index[key] = true
- return m
-}
-
-func (m *indexOfInitialisms) sorted() (result []string) {
- m.getMutex.Lock()
- defer m.getMutex.Unlock()
- for k := range m.index {
- result = append(result, k)
- }
- sort.Sort(sort.Reverse(byInitialism(result)))
- return
-}
diff --git a/vendor/github.com/go-openapi/swag/split.go b/vendor/github.com/go-openapi/swag/split.go
index a1825fb7d..274727a86 100644
--- a/vendor/github.com/go-openapi/swag/split.go
+++ b/vendor/github.com/go-openapi/swag/split.go
@@ -15,124 +15,269 @@
package swag
import (
+ "bytes"
+ "sync"
"unicode"
+ "unicode/utf8"
)
-var nameReplaceTable = map[rune]string{
- '@': "At ",
- '&': "And ",
- '|': "Pipe ",
- '$': "Dollar ",
- '!': "Bang ",
- '-': "",
- '_': "",
-}
-
type (
splitter struct {
- postSplitInitialismCheck bool
initialisms []string
+ initialismsRunes [][]rune
+ initialismsUpperCased [][]rune // initialisms cached in their trimmed, upper-cased version
+ postSplitInitialismCheck bool
+ }
+
+ splitterOption func(*splitter)
+
+ initialismMatch struct {
+ body []rune
+ start, end int
+ complete bool
+ }
+ initialismMatches []initialismMatch
+)
+
+type (
+ // memory pools of temporary objects.
+ //
+ // These are used to recycle temporarily allocated objects
+ // and relieve the GC from undue pressure.
+
+ matchesPool struct {
+ *sync.Pool
}
- splitterOption func(*splitter) *splitter
+ buffersPool struct {
+ *sync.Pool
+ }
+
+ lexemsPool struct {
+ *sync.Pool
+ }
+
+ splittersPool struct {
+ *sync.Pool
+ }
)
-// split calls the splitter; splitter provides more control and post options
+var (
+ // poolOfMatches holds temporary slices for recycling during the initialism match process
+ poolOfMatches = matchesPool{
+ Pool: &sync.Pool{
+ New: func() any {
+ s := make(initialismMatches, 0, maxAllocMatches)
+
+ return &s
+ },
+ },
+ }
+
+ poolOfBuffers = buffersPool{
+ Pool: &sync.Pool{
+ New: func() any {
+ return new(bytes.Buffer)
+ },
+ },
+ }
+
+ poolOfLexems = lexemsPool{
+ Pool: &sync.Pool{
+ New: func() any {
+ s := make([]nameLexem, 0, maxAllocMatches)
+
+ return &s
+ },
+ },
+ }
+
+ poolOfSplitters = splittersPool{
+ Pool: &sync.Pool{
+ New: func() any {
+ s := newSplitter()
+
+ return &s
+ },
+ },
+ }
+)
+
+// nameReplaceTable finds a word representation for special characters.
+func nameReplaceTable(r rune) (string, bool) {
+ switch r {
+ case '@':
+ return "At ", true
+ case '&':
+ return "And ", true
+ case '|':
+ return "Pipe ", true
+ case '$':
+ return "Dollar ", true
+ case '!':
+ return "Bang ", true
+ case '-':
+ return "", true
+ case '_':
+ return "", true
+ default:
+ return "", false
+ }
+}
+
+// split calls the splitter.
+//
+// Use newSplitter for more control and options
func split(str string) []string {
- lexems := newSplitter().split(str)
- result := make([]string, 0, len(lexems))
+ s := poolOfSplitters.BorrowSplitter()
+ lexems := s.split(str)
+ result := make([]string, 0, len(*lexems))
- for _, lexem := range lexems {
+ for _, lexem := range *lexems {
result = append(result, lexem.GetOriginal())
}
+ poolOfLexems.RedeemLexems(lexems)
+ poolOfSplitters.RedeemSplitter(s)
return result
}
-func (s *splitter) split(str string) []nameLexem {
- return s.toNameLexems(str)
-}
-
-func newSplitter(options ...splitterOption) *splitter {
- splitter := &splitter{
+func newSplitter(options ...splitterOption) splitter {
+ s := splitter{
postSplitInitialismCheck: false,
initialisms: initialisms,
+ initialismsRunes: initialismsRunes,
+ initialismsUpperCased: initialismsUpperCased,
}
for _, option := range options {
- splitter = option(splitter)
+ option(&s)
}
- return splitter
+ return s
}
// withPostSplitInitialismCheck allows to catch initialisms after main split process
-func withPostSplitInitialismCheck(s *splitter) *splitter {
+func withPostSplitInitialismCheck(s *splitter) {
s.postSplitInitialismCheck = true
+}
+
+func (p matchesPool) BorrowMatches() *initialismMatches {
+ s := p.Get().(*initialismMatches)
+ *s = (*s)[:0] // reset slice, keep allocated capacity
+
return s
}
-type (
- initialismMatch struct {
- start, end int
- body []rune
- complete bool
+func (p buffersPool) BorrowBuffer(size int) *bytes.Buffer {
+ s := p.Get().(*bytes.Buffer)
+ s.Reset()
+
+ if s.Cap() < size {
+ s.Grow(size)
}
- initialismMatches []*initialismMatch
-)
-func (s *splitter) toNameLexems(name string) []nameLexem {
+ return s
+}
+
+func (p lexemsPool) BorrowLexems() *[]nameLexem {
+ s := p.Get().(*[]nameLexem)
+ *s = (*s)[:0] // reset slice, keep allocated capacity
+
+ return s
+}
+
+func (p splittersPool) BorrowSplitter(options ...splitterOption) *splitter {
+ s := p.Get().(*splitter)
+ s.postSplitInitialismCheck = false // reset options
+ for _, apply := range options {
+ apply(s)
+ }
+
+ return s
+}
+
+func (p matchesPool) RedeemMatches(s *initialismMatches) {
+ p.Put(s)
+}
+
+func (p buffersPool) RedeemBuffer(s *bytes.Buffer) {
+ p.Put(s)
+}
+
+func (p lexemsPool) RedeemLexems(s *[]nameLexem) {
+ p.Put(s)
+}
+
+func (p splittersPool) RedeemSplitter(s *splitter) {
+ p.Put(s)
+}
+
+func (m initialismMatch) isZero() bool {
+ return m.start == 0 && m.end == 0
+}
+
+func (s splitter) split(name string) *[]nameLexem {
nameRunes := []rune(name)
matches := s.gatherInitialismMatches(nameRunes)
+ if matches == nil {
+ return poolOfLexems.BorrowLexems()
+ }
+
return s.mapMatchesToNameLexems(nameRunes, matches)
}
-func (s *splitter) gatherInitialismMatches(nameRunes []rune) initialismMatches {
- matches := make(initialismMatches, 0)
+func (s splitter) gatherInitialismMatches(nameRunes []rune) *initialismMatches {
+ var matches *initialismMatches
for currentRunePosition, currentRune := range nameRunes {
- newMatches := make(initialismMatches, 0, len(matches))
+ // recycle these allocations as we loop over runes
+ // with such recycling, only 2 slices should be allocated per call
+ // instead of o(n).
+ newMatches := poolOfMatches.BorrowMatches()
// check current initialism matches
- for _, match := range matches {
- if keepCompleteMatch := match.complete; keepCompleteMatch {
- newMatches = append(newMatches, match)
- continue
- }
+ if matches != nil { // skip first iteration
+ for _, match := range *matches {
+ if keepCompleteMatch := match.complete; keepCompleteMatch {
+ *newMatches = append(*newMatches, match)
+ continue
+ }
- // drop failed match
- currentMatchRune := match.body[currentRunePosition-match.start]
- if !s.initialismRuneEqual(currentMatchRune, currentRune) {
- continue
- }
+ // drop failed match
+ currentMatchRune := match.body[currentRunePosition-match.start]
+ if currentMatchRune != currentRune {
+ continue
+ }
- // try to complete ongoing match
- if currentRunePosition-match.start == len(match.body)-1 {
- // we are close; the next step is to check the symbol ahead
- // if it is a small letter, then it is not the end of match
- // but beginning of the next word
-
- if currentRunePosition < len(nameRunes)-1 {
- nextRune := nameRunes[currentRunePosition+1]
- if newWord := unicode.IsLower(nextRune); newWord {
- // oh ok, it was the start of a new word
- continue
+ // try to complete ongoing match
+ if currentRunePosition-match.start == len(match.body)-1 {
+ // we are close; the next step is to check the symbol ahead
+ // if it is a small letter, then it is not the end of match
+ // but beginning of the next word
+
+ if currentRunePosition < len(nameRunes)-1 {
+ nextRune := nameRunes[currentRunePosition+1]
+ if newWord := unicode.IsLower(nextRune); newWord {
+ // oh ok, it was the start of a new word
+ continue
+ }
}
+
+ match.complete = true
+ match.end = currentRunePosition
}
- match.complete = true
- match.end = currentRunePosition
+ *newMatches = append(*newMatches, match)
}
-
- newMatches = append(newMatches, match)
}
// check for new initialism matches
- for _, initialism := range s.initialisms {
- initialismRunes := []rune(initialism)
- if s.initialismRuneEqual(initialismRunes[0], currentRune) {
- newMatches = append(newMatches, &initialismMatch{
+ for i := range s.initialisms {
+ initialismRunes := s.initialismsRunes[i]
+ if initialismRunes[0] == currentRune {
+ *newMatches = append(*newMatches, initialismMatch{
start: currentRunePosition,
body: initialismRunes,
complete: false,
@@ -140,24 +285,28 @@ func (s *splitter) gatherInitialismMatches(nameRunes []rune) initialismMatches {
}
}
+ if matches != nil {
+ poolOfMatches.RedeemMatches(matches)
+ }
matches = newMatches
}
+ // up to the caller to redeem this last slice
return matches
}
-func (s *splitter) mapMatchesToNameLexems(nameRunes []rune, matches initialismMatches) []nameLexem {
- nameLexems := make([]nameLexem, 0)
+func (s splitter) mapMatchesToNameLexems(nameRunes []rune, matches *initialismMatches) *[]nameLexem {
+ nameLexems := poolOfLexems.BorrowLexems()
- var lastAcceptedMatch *initialismMatch
- for _, match := range matches {
+ var lastAcceptedMatch initialismMatch
+ for _, match := range *matches {
if !match.complete {
continue
}
- if firstMatch := lastAcceptedMatch == nil; firstMatch {
- nameLexems = append(nameLexems, s.breakCasualString(nameRunes[:match.start])...)
- nameLexems = append(nameLexems, s.breakInitialism(string(match.body)))
+ if firstMatch := lastAcceptedMatch.isZero(); firstMatch {
+ s.appendBrokenDownCasualString(nameLexems, nameRunes[:match.start])
+ *nameLexems = append(*nameLexems, s.breakInitialism(string(match.body)))
lastAcceptedMatch = match
@@ -169,63 +318,66 @@ func (s *splitter) mapMatchesToNameLexems(nameRunes []rune, matches initialismMa
}
middle := nameRunes[lastAcceptedMatch.end+1 : match.start]
- nameLexems = append(nameLexems, s.breakCasualString(middle)...)
- nameLexems = append(nameLexems, s.breakInitialism(string(match.body)))
+ s.appendBrokenDownCasualString(nameLexems, middle)
+ *nameLexems = append(*nameLexems, s.breakInitialism(string(match.body)))
lastAcceptedMatch = match
}
// we have not found any accepted matches
- if lastAcceptedMatch == nil {
- return s.breakCasualString(nameRunes)
- }
-
- if lastAcceptedMatch.end+1 != len(nameRunes) {
+ if lastAcceptedMatch.isZero() {
+ *nameLexems = (*nameLexems)[:0]
+ s.appendBrokenDownCasualString(nameLexems, nameRunes)
+ } else if lastAcceptedMatch.end+1 != len(nameRunes) {
rest := nameRunes[lastAcceptedMatch.end+1:]
- nameLexems = append(nameLexems, s.breakCasualString(rest)...)
+ s.appendBrokenDownCasualString(nameLexems, rest)
}
- return nameLexems
-}
+ poolOfMatches.RedeemMatches(matches)
-func (s *splitter) initialismRuneEqual(a, b rune) bool {
- return a == b
+ return nameLexems
}
-func (s *splitter) breakInitialism(original string) nameLexem {
+func (s splitter) breakInitialism(original string) nameLexem {
return newInitialismNameLexem(original, original)
}
-func (s *splitter) breakCasualString(str []rune) []nameLexem {
- segments := make([]nameLexem, 0)
- currentSegment := ""
+func (s splitter) appendBrokenDownCasualString(segments *[]nameLexem, str []rune) {
+ currentSegment := poolOfBuffers.BorrowBuffer(len(str)) // unlike strings.Builder, bytes.Buffer initial storage can reused
+ defer func() {
+ poolOfBuffers.RedeemBuffer(currentSegment)
+ }()
addCasualNameLexem := func(original string) {
- segments = append(segments, newCasualNameLexem(original))
+ *segments = append(*segments, newCasualNameLexem(original))
}
addInitialismNameLexem := func(original, match string) {
- segments = append(segments, newInitialismNameLexem(original, match))
+ *segments = append(*segments, newInitialismNameLexem(original, match))
}
- addNameLexem := func(original string) {
- if s.postSplitInitialismCheck {
- for _, initialism := range s.initialisms {
- if upper(initialism) == upper(original) {
- addInitialismNameLexem(original, initialism)
+ var addNameLexem func(string)
+ if s.postSplitInitialismCheck {
+ addNameLexem = func(original string) {
+ for i := range s.initialisms {
+ if isEqualFoldIgnoreSpace(s.initialismsUpperCased[i], original) {
+ addInitialismNameLexem(original, s.initialisms[i])
+
return
}
}
- }
- addCasualNameLexem(original)
+ addCasualNameLexem(original)
+ }
+ } else {
+ addNameLexem = addCasualNameLexem
}
- for _, rn := range string(str) {
- if replace, found := nameReplaceTable[rn]; found {
- if currentSegment != "" {
- addNameLexem(currentSegment)
- currentSegment = ""
+ for _, rn := range str {
+ if replace, found := nameReplaceTable(rn); found {
+ if currentSegment.Len() > 0 {
+ addNameLexem(currentSegment.String())
+ currentSegment.Reset()
}
if replace != "" {
@@ -236,27 +388,121 @@ func (s *splitter) breakCasualString(str []rune) []nameLexem {
}
if !unicode.In(rn, unicode.L, unicode.M, unicode.N, unicode.Pc) {
- if currentSegment != "" {
- addNameLexem(currentSegment)
- currentSegment = ""
+ if currentSegment.Len() > 0 {
+ addNameLexem(currentSegment.String())
+ currentSegment.Reset()
}
continue
}
if unicode.IsUpper(rn) {
- if currentSegment != "" {
- addNameLexem(currentSegment)
+ if currentSegment.Len() > 0 {
+ addNameLexem(currentSegment.String())
}
- currentSegment = ""
+ currentSegment.Reset()
}
- currentSegment += string(rn)
+ currentSegment.WriteRune(rn)
+ }
+
+ if currentSegment.Len() > 0 {
+ addNameLexem(currentSegment.String())
}
+}
+
+// isEqualFoldIgnoreSpace is the same as strings.EqualFold, but
+// it ignores leading and trailing blank spaces in the compared
+// string.
+//
+// base is assumed to be composed of upper-cased runes, and be already
+// trimmed.
+//
+// This code is heavily inspired from strings.EqualFold.
+func isEqualFoldIgnoreSpace(base []rune, str string) bool {
+ var i, baseIndex int
+ // equivalent to b := []byte(str), but without data copy
+ b := hackStringBytes(str)
+
+ for i < len(b) {
+ if c := b[i]; c < utf8.RuneSelf {
+ // fast path for ASCII
+ if c != ' ' && c != '\t' {
+ break
+ }
+ i++
+
+ continue
+ }
+
+ // unicode case
+ r, size := utf8.DecodeRune(b[i:])
+ if !unicode.IsSpace(r) {
+ break
+ }
+ i += size
+ }
+
+ if i >= len(b) {
+ return len(base) == 0
+ }
+
+ for _, baseRune := range base {
+ if i >= len(b) {
+ break
+ }
+
+ if c := b[i]; c < utf8.RuneSelf {
+ // single byte rune case (ASCII)
+ if baseRune >= utf8.RuneSelf {
+ return false
+ }
+
+ baseChar := byte(baseRune)
+ if c != baseChar &&
+ !('a' <= c && c <= 'z' && c-'a'+'A' == baseChar) {
+ return false
+ }
+
+ baseIndex++
+ i++
+
+ continue
+ }
+
+ // unicode case
+ r, size := utf8.DecodeRune(b[i:])
+ if unicode.ToUpper(r) != baseRune {
+ return false
+ }
+ baseIndex++
+ i += size
+ }
+
+ if baseIndex != len(base) {
+ return false
+ }
+
+ // all passed: now we should only have blanks
+ for i < len(b) {
+ if c := b[i]; c < utf8.RuneSelf {
+ // fast path for ASCII
+ if c != ' ' && c != '\t' {
+ return false
+ }
+ i++
+
+ continue
+ }
+
+ // unicode case
+ r, size := utf8.DecodeRune(b[i:])
+ if !unicode.IsSpace(r) {
+ return false
+ }
- if currentSegment != "" {
- addNameLexem(currentSegment)
+ i += size
}
- return segments
+ return true
}
diff --git a/vendor/github.com/go-openapi/swag/string_bytes.go b/vendor/github.com/go-openapi/swag/string_bytes.go
new file mode 100644
index 000000000..90745d5ca
--- /dev/null
+++ b/vendor/github.com/go-openapi/swag/string_bytes.go
@@ -0,0 +1,8 @@
+package swag
+
+import "unsafe"
+
+// hackStringBytes returns the (unsafe) underlying bytes slice of a string.
+func hackStringBytes(str string) []byte {
+ return unsafe.Slice(unsafe.StringData(str), len(str))
+}
diff --git a/vendor/github.com/go-openapi/swag/util.go b/vendor/github.com/go-openapi/swag/util.go
index d971fbe34..5051401c4 100644
--- a/vendor/github.com/go-openapi/swag/util.go
+++ b/vendor/github.com/go-openapi/swag/util.go
@@ -18,76 +18,25 @@ import (
"reflect"
"strings"
"unicode"
+ "unicode/utf8"
)
-// commonInitialisms are common acronyms that are kept as whole uppercased words.
-var commonInitialisms *indexOfInitialisms
-
-// initialisms is a slice of sorted initialisms
-var initialisms []string
-
-var isInitialism func(string) bool
-
// GoNamePrefixFunc sets an optional rule to prefix go names
// which do not start with a letter.
//
+// The prefix function is assumed to return a string that starts with an upper case letter.
+//
// e.g. to help convert "123" into "{prefix}123"
//
// The default is to prefix with "X"
var GoNamePrefixFunc func(string) string
-func init() {
- // Taken from https://github.com/golang/lint/blob/3390df4df2787994aea98de825b964ac7944b817/lint.go#L732-L769
- var configuredInitialisms = map[string]bool{
- "ACL": true,
- "API": true,
- "ASCII": true,
- "CPU": true,
- "CSS": true,
- "DNS": true,
- "EOF": true,
- "GUID": true,
- "HTML": true,
- "HTTPS": true,
- "HTTP": true,
- "ID": true,
- "IP": true,
- "IPv4": true,
- "IPv6": true,
- "JSON": true,
- "LHS": true,
- "OAI": true,
- "QPS": true,
- "RAM": true,
- "RHS": true,
- "RPC": true,
- "SLA": true,
- "SMTP": true,
- "SQL": true,
- "SSH": true,
- "TCP": true,
- "TLS": true,
- "TTL": true,
- "UDP": true,
- "UI": true,
- "UID": true,
- "UUID": true,
- "URI": true,
- "URL": true,
- "UTF8": true,
- "VM": true,
- "XML": true,
- "XMPP": true,
- "XSRF": true,
- "XSS": true,
+func prefixFunc(name, in string) string {
+ if GoNamePrefixFunc == nil {
+ return "X" + in
}
- // a thread-safe index of initialisms
- commonInitialisms = newIndexOfInitialisms().load(configuredInitialisms)
- initialisms = commonInitialisms.sorted()
-
- // a test function
- isInitialism = commonInitialisms.isInitialism
+ return GoNamePrefixFunc(name) + in
}
const (
@@ -156,25 +105,9 @@ func SplitByFormat(data, format string) []string {
return result
}
-type byInitialism []string
-
-func (s byInitialism) Len() int {
- return len(s)
-}
-func (s byInitialism) Swap(i, j int) {
- s[i], s[j] = s[j], s[i]
-}
-func (s byInitialism) Less(i, j int) bool {
- if len(s[i]) != len(s[j]) {
- return len(s[i]) < len(s[j])
- }
-
- return strings.Compare(s[i], s[j]) > 0
-}
-
// Removes leading whitespaces
func trim(str string) string {
- return strings.Trim(str, " ")
+ return strings.TrimSpace(str)
}
// Shortcut to strings.ToUpper()
@@ -188,15 +121,20 @@ func lower(str string) string {
}
// Camelize an uppercased word
-func Camelize(word string) (camelized string) {
+func Camelize(word string) string {
+ camelized := poolOfBuffers.BorrowBuffer(len(word))
+ defer func() {
+ poolOfBuffers.RedeemBuffer(camelized)
+ }()
+
for pos, ru := range []rune(word) {
if pos > 0 {
- camelized += string(unicode.ToLower(ru))
+ camelized.WriteRune(unicode.ToLower(ru))
} else {
- camelized += string(unicode.ToUpper(ru))
+ camelized.WriteRune(unicode.ToUpper(ru))
}
}
- return
+ return camelized.String()
}
// ToFileName lowercases and underscores a go type name
@@ -224,33 +162,40 @@ func ToCommandName(name string) string {
// ToHumanNameLower represents a code name as a human series of words
func ToHumanNameLower(name string) string {
- in := newSplitter(withPostSplitInitialismCheck).split(name)
- out := make([]string, 0, len(in))
+ s := poolOfSplitters.BorrowSplitter(withPostSplitInitialismCheck)
+ in := s.split(name)
+ poolOfSplitters.RedeemSplitter(s)
+ out := make([]string, 0, len(*in))
- for _, w := range in {
+ for _, w := range *in {
if !w.IsInitialism() {
out = append(out, lower(w.GetOriginal()))
} else {
- out = append(out, w.GetOriginal())
+ out = append(out, trim(w.GetOriginal()))
}
}
+ poolOfLexems.RedeemLexems(in)
return strings.Join(out, " ")
}
// ToHumanNameTitle represents a code name as a human series of words with the first letters titleized
func ToHumanNameTitle(name string) string {
- in := newSplitter(withPostSplitInitialismCheck).split(name)
+ s := poolOfSplitters.BorrowSplitter(withPostSplitInitialismCheck)
+ in := s.split(name)
+ poolOfSplitters.RedeemSplitter(s)
- out := make([]string, 0, len(in))
- for _, w := range in {
- original := w.GetOriginal()
+ out := make([]string, 0, len(*in))
+ for _, w := range *in {
+ original := trim(w.GetOriginal())
if !w.IsInitialism() {
out = append(out, Camelize(original))
} else {
out = append(out, original)
}
}
+ poolOfLexems.RedeemLexems(in)
+
return strings.Join(out, " ")
}
@@ -264,7 +209,7 @@ func ToJSONName(name string) string {
out = append(out, lower(w))
continue
}
- out = append(out, Camelize(w))
+ out = append(out, Camelize(trim(w)))
}
return strings.Join(out, "")
}
@@ -283,35 +228,70 @@ func ToVarName(name string) string {
// ToGoName translates a swagger name which can be underscored or camel cased to a name that golint likes
func ToGoName(name string) string {
- lexems := newSplitter(withPostSplitInitialismCheck).split(name)
+ s := poolOfSplitters.BorrowSplitter(withPostSplitInitialismCheck)
+ lexems := s.split(name)
+ poolOfSplitters.RedeemSplitter(s)
+ defer func() {
+ poolOfLexems.RedeemLexems(lexems)
+ }()
+ lexemes := *lexems
+
+ if len(lexemes) == 0 {
+ return ""
+ }
+
+ result := poolOfBuffers.BorrowBuffer(len(name))
+ defer func() {
+ poolOfBuffers.RedeemBuffer(result)
+ }()
+
+ // check if not starting with a letter, upper case
+ firstPart := lexemes[0].GetUnsafeGoName()
+ if lexemes[0].IsInitialism() {
+ firstPart = upper(firstPart)
+ }
+
+ if c := firstPart[0]; c < utf8.RuneSelf {
+ // ASCII
+ switch {
+ case 'A' <= c && c <= 'Z':
+ result.WriteString(firstPart)
+ case 'a' <= c && c <= 'z':
+ result.WriteByte(c - 'a' + 'A')
+ result.WriteString(firstPart[1:])
+ default:
+ result.WriteString(prefixFunc(name, firstPart))
+ // NOTE: no longer check if prefixFunc returns a string that starts with uppercase:
+ // assume this is always the case
+ }
+ } else {
+ // unicode
+ firstRune, _ := utf8.DecodeRuneInString(firstPart)
+ switch {
+ case !unicode.IsLetter(firstRune):
+ result.WriteString(prefixFunc(name, firstPart))
+ case !unicode.IsUpper(firstRune):
+ result.WriteString(prefixFunc(name, firstPart))
+ /*
+ result.WriteRune(unicode.ToUpper(firstRune))
+ result.WriteString(firstPart[offset:])
+ */
+ default:
+ result.WriteString(firstPart)
+ }
+ }
- result := ""
- for _, lexem := range lexems {
+ for _, lexem := range lexemes[1:] {
goName := lexem.GetUnsafeGoName()
// to support old behavior
if lexem.IsInitialism() {
goName = upper(goName)
}
- result += goName
+ result.WriteString(goName)
}
- if len(result) > 0 {
- // Only prefix with X when the first character isn't an ascii letter
- first := []rune(result)[0]
- if !unicode.IsLetter(first) || (first > unicode.MaxASCII && !unicode.IsUpper(first)) {
- if GoNamePrefixFunc == nil {
- return "X" + result
- }
- result = GoNamePrefixFunc(name) + result
- }
- first = []rune(result)[0]
- if unicode.IsLetter(first) && !unicode.IsUpper(first) {
- result = string(append([]rune{unicode.ToUpper(first)}, []rune(result)[1:]...))
- }
- }
-
- return result
+ return result.String()
}
// ContainsStrings searches a slice of strings for a case-sensitive match
@@ -343,7 +323,7 @@ type zeroable interface {
func IsZero(data interface{}) bool {
v := reflect.ValueOf(data)
// check for nil data
- switch v.Kind() {
+ switch v.Kind() { //nolint:exhaustive
case reflect.Interface, reflect.Map, reflect.Ptr, reflect.Slice:
if v.IsNil() {
return true
@@ -356,7 +336,7 @@ func IsZero(data interface{}) bool {
}
// continue with slightly more complex reflection
- switch v.Kind() {
+ switch v.Kind() { //nolint:exhaustive
case reflect.String:
return v.Len() == 0
case reflect.Bool:
@@ -376,16 +356,6 @@ func IsZero(data interface{}) bool {
}
}
-// AddInitialisms add additional initialisms
-func AddInitialisms(words ...string) {
- for _, word := range words {
- // commonInitialisms[upper(word)] = true
- commonInitialisms.add(upper(word))
- }
- // sort again
- initialisms = commonInitialisms.sorted()
-}
-
// CommandLineOptionsGroup represents a group of user-defined command line options
type CommandLineOptionsGroup struct {
ShortDescription string
diff --git a/vendor/github.com/go-openapi/swag/yaml.go b/vendor/github.com/go-openapi/swag/yaml.go
index f09ee609f..f59e02593 100644
--- a/vendor/github.com/go-openapi/swag/yaml.go
+++ b/vendor/github.com/go-openapi/swag/yaml.go
@@ -16,8 +16,11 @@ package swag
import (
"encoding/json"
+ "errors"
"fmt"
"path/filepath"
+ "reflect"
+ "sort"
"strconv"
"github.com/mailru/easyjson/jlexer"
@@ -48,7 +51,7 @@ func BytesToYAMLDoc(data []byte) (interface{}, error) {
return nil, err
}
if document.Kind != yaml.DocumentNode || len(document.Content) != 1 || document.Content[0].Kind != yaml.MappingNode {
- return nil, fmt.Errorf("only YAML documents that are objects are supported")
+ return nil, errors.New("only YAML documents that are objects are supported")
}
return &document, nil
}
@@ -147,7 +150,7 @@ func yamlScalar(node *yaml.Node) (interface{}, error) {
case yamlTimestamp:
return node.Value, nil
case yamlNull:
- return nil, nil
+ return nil, nil //nolint:nilnil
default:
return nil, fmt.Errorf("YAML tag %q is not supported", node.LongTag())
}
@@ -245,7 +248,27 @@ func (s JSONMapSlice) MarshalYAML() (interface{}, error) {
return yaml.Marshal(&n)
}
+func isNil(input interface{}) bool {
+ if input == nil {
+ return true
+ }
+ kind := reflect.TypeOf(input).Kind()
+ switch kind { //nolint:exhaustive
+ case reflect.Ptr, reflect.Map, reflect.Slice, reflect.Chan:
+ return reflect.ValueOf(input).IsNil()
+ default:
+ return false
+ }
+}
+
func json2yaml(item interface{}) (*yaml.Node, error) {
+ if isNil(item) {
+ return &yaml.Node{
+ Kind: yaml.ScalarNode,
+ Value: "null",
+ }, nil
+ }
+
switch val := item.(type) {
case JSONMapSlice:
var n yaml.Node
@@ -265,7 +288,14 @@ func json2yaml(item interface{}) (*yaml.Node, error) {
case map[string]interface{}:
var n yaml.Node
n.Kind = yaml.MappingNode
- for k, v := range val {
+ keys := make([]string, 0, len(val))
+ for k := range val {
+ keys = append(keys, k)
+ }
+ sort.Strings(keys)
+
+ for _, k := range keys {
+ v := val[k]
childNode, err := json2yaml(v)
if err != nil {
return nil, err
@@ -318,8 +348,9 @@ func json2yaml(item interface{}) (*yaml.Node, error) {
Tag: yamlBoolScalar,
Value: strconv.FormatBool(val),
}, nil
+ default:
+ return nil, fmt.Errorf("unhandled type: %T", val)
}
- return nil, nil
}
// JSONMapItem represents the value of a key in a JSON object held by JSONMapSlice
diff --git a/vendor/github.com/imdario/mergo/.gitignore b/vendor/github.com/imdario/mergo/.gitignore
deleted file mode 100644
index 529c3412b..000000000
--- a/vendor/github.com/imdario/mergo/.gitignore
+++ /dev/null
@@ -1,33 +0,0 @@
-#### joe made this: http://goel.io/joe
-
-#### go ####
-# Binaries for programs and plugins
-*.exe
-*.dll
-*.so
-*.dylib
-
-# Test binary, build with `go test -c`
-*.test
-
-# Output of the go coverage tool, specifically when used with LiteIDE
-*.out
-
-# Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736
-.glide/
-
-#### vim ####
-# Swap
-[._]*.s[a-v][a-z]
-[._]*.sw[a-p]
-[._]s[a-v][a-z]
-[._]sw[a-p]
-
-# Session
-Session.vim
-
-# Temporary
-.netrwhist
-*~
-# Auto-generated tag files
-tags
diff --git a/vendor/github.com/imdario/mergo/.travis.yml b/vendor/github.com/imdario/mergo/.travis.yml
deleted file mode 100644
index b13a50ed1..000000000
--- a/vendor/github.com/imdario/mergo/.travis.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-language: go
-install:
- - go get -t
- - go get golang.org/x/tools/cmd/cover
- - go get github.com/mattn/goveralls
-script:
- - $HOME/gopath/bin/goveralls -service=travis-ci -repotoken $COVERALLS_TOKEN
diff --git a/vendor/github.com/imdario/mergo/CODE_OF_CONDUCT.md b/vendor/github.com/imdario/mergo/CODE_OF_CONDUCT.md
deleted file mode 100644
index 469b44907..000000000
--- a/vendor/github.com/imdario/mergo/CODE_OF_CONDUCT.md
+++ /dev/null
@@ -1,46 +0,0 @@
-# Contributor Covenant Code of Conduct
-
-## Our Pledge
-
-In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
-
-## Our Standards
-
-Examples of behavior that contributes to creating a positive environment include:
-
-* Using welcoming and inclusive language
-* Being respectful of differing viewpoints and experiences
-* Gracefully accepting constructive criticism
-* Focusing on what is best for the community
-* Showing empathy towards other community members
-
-Examples of unacceptable behavior by participants include:
-
-* The use of sexualized language or imagery and unwelcome sexual attention or advances
-* Trolling, insulting/derogatory comments, and personal or political attacks
-* Public or private harassment
-* Publishing others' private information, such as a physical or electronic address, without explicit permission
-* Other conduct which could reasonably be considered inappropriate in a professional setting
-
-## Our Responsibilities
-
-Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
-
-Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
-
-## Scope
-
-This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
-
-## Enforcement
-
-Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at i@dario.im. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
-
-Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
-
-## Attribution
-
-This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
-
-[homepage]: http://contributor-covenant.org
-[version]: http://contributor-covenant.org/version/1/4/
diff --git a/vendor/github.com/imdario/mergo/LICENSE b/vendor/github.com/imdario/mergo/LICENSE
deleted file mode 100644
index 686680298..000000000
--- a/vendor/github.com/imdario/mergo/LICENSE
+++ /dev/null
@@ -1,28 +0,0 @@
-Copyright (c) 2013 Dario Castañé. All rights reserved.
-Copyright (c) 2012 The Go Authors. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
-
- * Redistributions of source code must retain the above copyright
-notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above
-copyright notice, this list of conditions and the following disclaimer
-in the documentation and/or other materials provided with the
-distribution.
- * Neither the name of Google Inc. nor the names of its
-contributors may be used to endorse or promote products derived from
-this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/vendor/github.com/imdario/mergo/README.md b/vendor/github.com/imdario/mergo/README.md
deleted file mode 100644
index 8b76f1fbf..000000000
--- a/vendor/github.com/imdario/mergo/README.md
+++ /dev/null
@@ -1,222 +0,0 @@
-# Mergo
-
-A helper to merge structs and maps in Golang. Useful for configuration default values, avoiding messy if-statements.
-
-Also a lovely [comune](http://en.wikipedia.org/wiki/Mergo) (municipality) in the Province of Ancona in the Italian region of Marche.
-
-## Status
-
-It is ready for production use. [It is used in several projects by Docker, Google, The Linux Foundation, VMWare, Shopify, etc](https://github.com/imdario/mergo#mergo-in-the-wild).
-
-[![GoDoc][3]][4]
-[![GoCard][5]][6]
-[![Build Status][1]][2]
-[![Coverage Status][7]][8]
-[![Sourcegraph][9]][10]
-
-[1]: https://travis-ci.org/imdario/mergo.png
-[2]: https://travis-ci.org/imdario/mergo
-[3]: https://godoc.org/github.com/imdario/mergo?status.svg
-[4]: https://godoc.org/github.com/imdario/mergo
-[5]: https://goreportcard.com/badge/imdario/mergo
-[6]: https://goreportcard.com/report/github.com/imdario/mergo
-[7]: https://coveralls.io/repos/github/imdario/mergo/badge.svg?branch=master
-[8]: https://coveralls.io/github/imdario/mergo?branch=master
-[9]: https://sourcegraph.com/github.com/imdario/mergo/-/badge.svg
-[10]: https://sourcegraph.com/github.com/imdario/mergo?badge
-
-### Latest release
-
-[Release v0.3.6](https://github.com/imdario/mergo/releases/tag/v0.3.6).
-
-### Important note
-
-Please keep in mind that in [0.3.2](//github.com/imdario/mergo/releases/tag/0.3.2) Mergo changed `Merge()`and `Map()` signatures to support [transformers](#transformers). An optional/variadic argument has been added, so it won't break existing code.
-
-If you were using Mergo **before** April 6th 2015, please check your project works as intended after updating your local copy with ```go get -u github.com/imdario/mergo```. I apologize for any issue caused by its previous behavior and any future bug that Mergo could cause (I hope it won't!) in existing projects after the change (release 0.2.0).
-
-### Donations
-
-If Mergo is useful to you, consider buying me a coffee, a beer or making a monthly donation so I can keep building great free software. :heart_eyes:
-
-
-[](https://beerpay.io/imdario/mergo)
-[](https://beerpay.io/imdario/mergo)
-
-
-### Mergo in the wild
-
-- [moby/moby](https://github.com/moby/moby)
-- [kubernetes/kubernetes](https://github.com/kubernetes/kubernetes)
-- [vmware/dispatch](https://github.com/vmware/dispatch)
-- [Shopify/themekit](https://github.com/Shopify/themekit)
-- [imdario/zas](https://github.com/imdario/zas)
-- [matcornic/hermes](https://github.com/matcornic/hermes)
-- [OpenBazaar/openbazaar-go](https://github.com/OpenBazaar/openbazaar-go)
-- [kataras/iris](https://github.com/kataras/iris)
-- [michaelsauter/crane](https://github.com/michaelsauter/crane)
-- [go-task/task](https://github.com/go-task/task)
-- [sensu/uchiwa](https://github.com/sensu/uchiwa)
-- [ory/hydra](https://github.com/ory/hydra)
-- [sisatech/vcli](https://github.com/sisatech/vcli)
-- [dairycart/dairycart](https://github.com/dairycart/dairycart)
-- [projectcalico/felix](https://github.com/projectcalico/felix)
-- [resin-os/balena](https://github.com/resin-os/balena)
-- [go-kivik/kivik](https://github.com/go-kivik/kivik)
-- [Telefonica/govice](https://github.com/Telefonica/govice)
-- [supergiant/supergiant](supergiant/supergiant)
-- [SergeyTsalkov/brooce](https://github.com/SergeyTsalkov/brooce)
-- [soniah/dnsmadeeasy](https://github.com/soniah/dnsmadeeasy)
-- [ohsu-comp-bio/funnel](https://github.com/ohsu-comp-bio/funnel)
-- [EagerIO/Stout](https://github.com/EagerIO/Stout)
-- [lynndylanhurley/defsynth-api](https://github.com/lynndylanhurley/defsynth-api)
-- [russross/canvasassignments](https://github.com/russross/canvasassignments)
-- [rdegges/cryptly-api](https://github.com/rdegges/cryptly-api)
-- [casualjim/exeggutor](https://github.com/casualjim/exeggutor)
-- [divshot/gitling](https://github.com/divshot/gitling)
-- [RWJMurphy/gorl](https://github.com/RWJMurphy/gorl)
-- [andrerocker/deploy42](https://github.com/andrerocker/deploy42)
-- [elwinar/rambler](https://github.com/elwinar/rambler)
-- [tmaiaroto/gopartman](https://github.com/tmaiaroto/gopartman)
-- [jfbus/impressionist](https://github.com/jfbus/impressionist)
-- [Jmeyering/zealot](https://github.com/Jmeyering/zealot)
-- [godep-migrator/rigger-host](https://github.com/godep-migrator/rigger-host)
-- [Dronevery/MultiwaySwitch-Go](https://github.com/Dronevery/MultiwaySwitch-Go)
-- [thoas/picfit](https://github.com/thoas/picfit)
-- [mantasmatelis/whooplist-server](https://github.com/mantasmatelis/whooplist-server)
-- [jnuthong/item_search](https://github.com/jnuthong/item_search)
-- [bukalapak/snowboard](https://github.com/bukalapak/snowboard)
-
-## Installation
-
- go get github.com/imdario/mergo
-
- // use in your .go code
- import (
- "github.com/imdario/mergo"
- )
-
-## Usage
-
-You can only merge same-type structs with exported fields initialized as zero value of their type and same-types maps. Mergo won't merge unexported (private) fields but will do recursively any exported one. It won't merge empty structs value as [they are not considered zero values](https://golang.org/ref/spec#The_zero_value) either. Also maps will be merged recursively except for structs inside maps (because they are not addressable using Go reflection).
-
-```go
-if err := mergo.Merge(&dst, src); err != nil {
- // ...
-}
-```
-
-Also, you can merge overwriting values using the transformer `WithOverride`.
-
-```go
-if err := mergo.Merge(&dst, src, mergo.WithOverride); err != nil {
- // ...
-}
-```
-
-Additionally, you can map a `map[string]interface{}` to a struct (and otherwise, from struct to map), following the same restrictions as in `Merge()`. Keys are capitalized to find each corresponding exported field.
-
-```go
-if err := mergo.Map(&dst, srcMap); err != nil {
- // ...
-}
-```
-
-Warning: if you map a struct to map, it won't do it recursively. Don't expect Mergo to map struct members of your struct as `map[string]interface{}`. They will be just assigned as values.
-
-More information and examples in [godoc documentation](http://godoc.org/github.com/imdario/mergo).
-
-### Nice example
-
-```go
-package main
-
-import (
- "fmt"
- "github.com/imdario/mergo"
-)
-
-type Foo struct {
- A string
- B int64
-}
-
-func main() {
- src := Foo{
- A: "one",
- B: 2,
- }
- dest := Foo{
- A: "two",
- }
- mergo.Merge(&dest, src)
- fmt.Println(dest)
- // Will print
- // {two 2}
-}
-```
-
-Note: if test are failing due missing package, please execute:
-
- go get gopkg.in/yaml.v2
-
-### Transformers
-
-Transformers allow to merge specific types differently than in the default behavior. In other words, now you can customize how some types are merged. For example, `time.Time` is a struct; it doesn't have zero value but IsZero can return true because it has fields with zero value. How can we merge a non-zero `time.Time`?
-
-```go
-package main
-
-import (
- "fmt"
- "github.com/imdario/mergo"
- "reflect"
- "time"
-)
-
-type timeTransfomer struct {
-}
-
-func (t timeTransfomer) Transformer(typ reflect.Type) func(dst, src reflect.Value) error {
- if typ == reflect.TypeOf(time.Time{}) {
- return func(dst, src reflect.Value) error {
- if dst.CanSet() {
- isZero := dst.MethodByName("IsZero")
- result := isZero.Call([]reflect.Value{})
- if result[0].Bool() {
- dst.Set(src)
- }
- }
- return nil
- }
- }
- return nil
-}
-
-type Snapshot struct {
- Time time.Time
- // ...
-}
-
-func main() {
- src := Snapshot{time.Now()}
- dest := Snapshot{}
- mergo.Merge(&dest, src, mergo.WithTransformers(timeTransfomer{}))
- fmt.Println(dest)
- // Will print
- // { 2018-01-12 01:15:00 +0000 UTC m=+0.000000001 }
-}
-```
-
-
-## Contact me
-
-If I can help you, you have an idea or you are using Mergo in your projects, don't hesitate to drop me a line (or a pull request): [@im_dario](https://twitter.com/im_dario)
-
-## About
-
-Written by [Dario Castañé](http://dario.im).
-
-## License
-
-[BSD 3-Clause](http://opensource.org/licenses/BSD-3-Clause) license, as [Go language](http://golang.org/LICENSE).
diff --git a/vendor/github.com/imdario/mergo/doc.go b/vendor/github.com/imdario/mergo/doc.go
deleted file mode 100644
index 6e9aa7baf..000000000
--- a/vendor/github.com/imdario/mergo/doc.go
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2013 Dario Castañé. All rights reserved.
-// Copyright 2009 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-/*
-Package mergo merges same-type structs and maps by setting default values in zero-value fields.
-
-Mergo won't merge unexported (private) fields but will do recursively any exported one. It also won't merge structs inside maps (because they are not addressable using Go reflection).
-
-Usage
-
-From my own work-in-progress project:
-
- type networkConfig struct {
- Protocol string
- Address string
- ServerType string `json: "server_type"`
- Port uint16
- }
-
- type FssnConfig struct {
- Network networkConfig
- }
-
- var fssnDefault = FssnConfig {
- networkConfig {
- "tcp",
- "127.0.0.1",
- "http",
- 31560,
- },
- }
-
- // Inside a function [...]
-
- if err := mergo.Merge(&config, fssnDefault); err != nil {
- log.Fatal(err)
- }
-
- // More code [...]
-
-*/
-package mergo
diff --git a/vendor/github.com/imdario/mergo/map.go b/vendor/github.com/imdario/mergo/map.go
deleted file mode 100644
index 6ea38e636..000000000
--- a/vendor/github.com/imdario/mergo/map.go
+++ /dev/null
@@ -1,174 +0,0 @@
-// Copyright 2014 Dario Castañé. All rights reserved.
-// Copyright 2009 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-// Based on src/pkg/reflect/deepequal.go from official
-// golang's stdlib.
-
-package mergo
-
-import (
- "fmt"
- "reflect"
- "unicode"
- "unicode/utf8"
-)
-
-func changeInitialCase(s string, mapper func(rune) rune) string {
- if s == "" {
- return s
- }
- r, n := utf8.DecodeRuneInString(s)
- return string(mapper(r)) + s[n:]
-}
-
-func isExported(field reflect.StructField) bool {
- r, _ := utf8.DecodeRuneInString(field.Name)
- return r >= 'A' && r <= 'Z'
-}
-
-// Traverses recursively both values, assigning src's fields values to dst.
-// The map argument tracks comparisons that have already been seen, which allows
-// short circuiting on recursive types.
-func deepMap(dst, src reflect.Value, visited map[uintptr]*visit, depth int, config *Config) (err error) {
- overwrite := config.Overwrite
- if dst.CanAddr() {
- addr := dst.UnsafeAddr()
- h := 17 * addr
- seen := visited[h]
- typ := dst.Type()
- for p := seen; p != nil; p = p.next {
- if p.ptr == addr && p.typ == typ {
- return nil
- }
- }
- // Remember, remember...
- visited[h] = &visit{addr, typ, seen}
- }
- zeroValue := reflect.Value{}
- switch dst.Kind() {
- case reflect.Map:
- dstMap := dst.Interface().(map[string]interface{})
- for i, n := 0, src.NumField(); i < n; i++ {
- srcType := src.Type()
- field := srcType.Field(i)
- if !isExported(field) {
- continue
- }
- fieldName := field.Name
- fieldName = changeInitialCase(fieldName, unicode.ToLower)
- if v, ok := dstMap[fieldName]; !ok || (isEmptyValue(reflect.ValueOf(v)) || overwrite) {
- dstMap[fieldName] = src.Field(i).Interface()
- }
- }
- case reflect.Ptr:
- if dst.IsNil() {
- v := reflect.New(dst.Type().Elem())
- dst.Set(v)
- }
- dst = dst.Elem()
- fallthrough
- case reflect.Struct:
- srcMap := src.Interface().(map[string]interface{})
- for key := range srcMap {
- srcValue := srcMap[key]
- fieldName := changeInitialCase(key, unicode.ToUpper)
- dstElement := dst.FieldByName(fieldName)
- if dstElement == zeroValue {
- // We discard it because the field doesn't exist.
- continue
- }
- srcElement := reflect.ValueOf(srcValue)
- dstKind := dstElement.Kind()
- srcKind := srcElement.Kind()
- if srcKind == reflect.Ptr && dstKind != reflect.Ptr {
- srcElement = srcElement.Elem()
- srcKind = reflect.TypeOf(srcElement.Interface()).Kind()
- } else if dstKind == reflect.Ptr {
- // Can this work? I guess it can't.
- if srcKind != reflect.Ptr && srcElement.CanAddr() {
- srcPtr := srcElement.Addr()
- srcElement = reflect.ValueOf(srcPtr)
- srcKind = reflect.Ptr
- }
- }
-
- if !srcElement.IsValid() {
- continue
- }
- if srcKind == dstKind {
- if err = deepMerge(dstElement, srcElement, visited, depth+1, config); err != nil {
- return
- }
- } else if dstKind == reflect.Interface && dstElement.Kind() == reflect.Interface {
- if err = deepMerge(dstElement, srcElement, visited, depth+1, config); err != nil {
- return
- }
- } else if srcKind == reflect.Map {
- if err = deepMap(dstElement, srcElement, visited, depth+1, config); err != nil {
- return
- }
- } else {
- return fmt.Errorf("type mismatch on %s field: found %v, expected %v", fieldName, srcKind, dstKind)
- }
- }
- }
- return
-}
-
-// Map sets fields' values in dst from src.
-// src can be a map with string keys or a struct. dst must be the opposite:
-// if src is a map, dst must be a valid pointer to struct. If src is a struct,
-// dst must be map[string]interface{}.
-// It won't merge unexported (private) fields and will do recursively
-// any exported field.
-// If dst is a map, keys will be src fields' names in lower camel case.
-// Missing key in src that doesn't match a field in dst will be skipped. This
-// doesn't apply if dst is a map.
-// This is separated method from Merge because it is cleaner and it keeps sane
-// semantics: merging equal types, mapping different (restricted) types.
-func Map(dst, src interface{}, opts ...func(*Config)) error {
- return _map(dst, src, opts...)
-}
-
-// MapWithOverwrite will do the same as Map except that non-empty dst attributes will be overridden by
-// non-empty src attribute values.
-// Deprecated: Use Map(…) with WithOverride
-func MapWithOverwrite(dst, src interface{}, opts ...func(*Config)) error {
- return _map(dst, src, append(opts, WithOverride)...)
-}
-
-func _map(dst, src interface{}, opts ...func(*Config)) error {
- var (
- vDst, vSrc reflect.Value
- err error
- )
- config := &Config{}
-
- for _, opt := range opts {
- opt(config)
- }
-
- if vDst, vSrc, err = resolveValues(dst, src); err != nil {
- return err
- }
- // To be friction-less, we redirect equal-type arguments
- // to deepMerge. Only because arguments can be anything.
- if vSrc.Kind() == vDst.Kind() {
- return deepMerge(vDst, vSrc, make(map[uintptr]*visit), 0, config)
- }
- switch vSrc.Kind() {
- case reflect.Struct:
- if vDst.Kind() != reflect.Map {
- return ErrExpectedMapAsDestination
- }
- case reflect.Map:
- if vDst.Kind() != reflect.Struct {
- return ErrExpectedStructAsDestination
- }
- default:
- return ErrNotSupported
- }
- return deepMap(vDst, vSrc, make(map[uintptr]*visit), 0, config)
-}
diff --git a/vendor/github.com/imdario/mergo/merge.go b/vendor/github.com/imdario/mergo/merge.go
deleted file mode 100644
index 44f70a89d..000000000
--- a/vendor/github.com/imdario/mergo/merge.go
+++ /dev/null
@@ -1,252 +0,0 @@
-// Copyright 2013 Dario Castañé. All rights reserved.
-// Copyright 2009 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-// Based on src/pkg/reflect/deepequal.go from official
-// golang's stdlib.
-
-package mergo
-
-import (
- "fmt"
- "reflect"
-)
-
-func hasExportedField(dst reflect.Value) (exported bool) {
- for i, n := 0, dst.NumField(); i < n; i++ {
- field := dst.Type().Field(i)
- if field.Anonymous && dst.Field(i).Kind() == reflect.Struct {
- exported = exported || hasExportedField(dst.Field(i))
- } else {
- exported = exported || len(field.PkgPath) == 0
- }
- }
- return
-}
-
-type Config struct {
- Overwrite bool
- AppendSlice bool
- Transformers Transformers
-}
-
-type Transformers interface {
- Transformer(reflect.Type) func(dst, src reflect.Value) error
-}
-
-// Traverses recursively both values, assigning src's fields values to dst.
-// The map argument tracks comparisons that have already been seen, which allows
-// short circuiting on recursive types.
-func deepMerge(dst, src reflect.Value, visited map[uintptr]*visit, depth int, config *Config) (err error) {
- overwrite := config.Overwrite
-
- if !src.IsValid() {
- return
- }
- if dst.CanAddr() {
- addr := dst.UnsafeAddr()
- h := 17 * addr
- seen := visited[h]
- typ := dst.Type()
- for p := seen; p != nil; p = p.next {
- if p.ptr == addr && p.typ == typ {
- return nil
- }
- }
- // Remember, remember...
- visited[h] = &visit{addr, typ, seen}
- }
-
- if config.Transformers != nil && !isEmptyValue(dst) {
- if fn := config.Transformers.Transformer(dst.Type()); fn != nil {
- err = fn(dst, src)
- return
- }
- }
-
- switch dst.Kind() {
- case reflect.Struct:
- if hasExportedField(dst) {
- for i, n := 0, dst.NumField(); i < n; i++ {
- if err = deepMerge(dst.Field(i), src.Field(i), visited, depth+1, config); err != nil {
- return
- }
- }
- } else {
- if dst.CanSet() && !isEmptyValue(src) && (overwrite || isEmptyValue(dst)) {
- dst.Set(src)
- }
- }
- case reflect.Map:
- if dst.IsNil() && !src.IsNil() {
- dst.Set(reflect.MakeMap(dst.Type()))
- }
- for _, key := range src.MapKeys() {
- srcElement := src.MapIndex(key)
- if !srcElement.IsValid() {
- continue
- }
- dstElement := dst.MapIndex(key)
- switch srcElement.Kind() {
- case reflect.Chan, reflect.Func, reflect.Map, reflect.Interface, reflect.Slice:
- if srcElement.IsNil() {
- continue
- }
- fallthrough
- default:
- if !srcElement.CanInterface() {
- continue
- }
- switch reflect.TypeOf(srcElement.Interface()).Kind() {
- case reflect.Struct:
- fallthrough
- case reflect.Ptr:
- fallthrough
- case reflect.Map:
- srcMapElm := srcElement
- dstMapElm := dstElement
- if srcMapElm.CanInterface() {
- srcMapElm = reflect.ValueOf(srcMapElm.Interface())
- if dstMapElm.IsValid() {
- dstMapElm = reflect.ValueOf(dstMapElm.Interface())
- }
- }
- if err = deepMerge(dstMapElm, srcMapElm, visited, depth+1, config); err != nil {
- return
- }
- case reflect.Slice:
- srcSlice := reflect.ValueOf(srcElement.Interface())
-
- var dstSlice reflect.Value
- if !dstElement.IsValid() || dstElement.IsNil() {
- dstSlice = reflect.MakeSlice(srcSlice.Type(), 0, srcSlice.Len())
- } else {
- dstSlice = reflect.ValueOf(dstElement.Interface())
- }
-
- if !isEmptyValue(src) && (overwrite || isEmptyValue(dst)) && !config.AppendSlice {
- dstSlice = srcSlice
- } else if config.AppendSlice {
- if srcSlice.Type() != dstSlice.Type() {
- return fmt.Errorf("cannot append two slice with different type (%s, %s)", srcSlice.Type(), dstSlice.Type())
- }
- dstSlice = reflect.AppendSlice(dstSlice, srcSlice)
- }
- dst.SetMapIndex(key, dstSlice)
- }
- }
- if dstElement.IsValid() && reflect.TypeOf(srcElement.Interface()).Kind() == reflect.Map {
- continue
- }
-
- if srcElement.IsValid() && (overwrite || (!dstElement.IsValid() || isEmptyValue(dstElement))) {
- if dst.IsNil() {
- dst.Set(reflect.MakeMap(dst.Type()))
- }
- dst.SetMapIndex(key, srcElement)
- }
- }
- case reflect.Slice:
- if !dst.CanSet() {
- break
- }
- if !isEmptyValue(src) && (overwrite || isEmptyValue(dst)) && !config.AppendSlice {
- dst.Set(src)
- } else if config.AppendSlice {
- if src.Type() != dst.Type() {
- return fmt.Errorf("cannot append two slice with different type (%s, %s)", src.Type(), dst.Type())
- }
- dst.Set(reflect.AppendSlice(dst, src))
- }
- case reflect.Ptr:
- fallthrough
- case reflect.Interface:
- if src.IsNil() {
- break
- }
- if src.Kind() != reflect.Interface {
- if dst.IsNil() || overwrite {
- if dst.CanSet() && (overwrite || isEmptyValue(dst)) {
- dst.Set(src)
- }
- } else if src.Kind() == reflect.Ptr {
- if err = deepMerge(dst.Elem(), src.Elem(), visited, depth+1, config); err != nil {
- return
- }
- } else if dst.Elem().Type() == src.Type() {
- if err = deepMerge(dst.Elem(), src, visited, depth+1, config); err != nil {
- return
- }
- } else {
- return ErrDifferentArgumentsTypes
- }
- break
- }
- if dst.IsNil() || overwrite {
- if dst.CanSet() && (overwrite || isEmptyValue(dst)) {
- dst.Set(src)
- }
- } else if err = deepMerge(dst.Elem(), src.Elem(), visited, depth+1, config); err != nil {
- return
- }
- default:
- if dst.CanSet() && !isEmptyValue(src) && (overwrite || isEmptyValue(dst)) {
- dst.Set(src)
- }
- }
- return
-}
-
-// Merge will fill any empty for value type attributes on the dst struct using corresponding
-// src attributes if they themselves are not empty. dst and src must be valid same-type structs
-// and dst must be a pointer to struct.
-// It won't merge unexported (private) fields and will do recursively any exported field.
-func Merge(dst, src interface{}, opts ...func(*Config)) error {
- return merge(dst, src, opts...)
-}
-
-// MergeWithOverwrite will do the same as Merge except that non-empty dst attributes will be overriden by
-// non-empty src attribute values.
-// Deprecated: use Merge(…) with WithOverride
-func MergeWithOverwrite(dst, src interface{}, opts ...func(*Config)) error {
- return merge(dst, src, append(opts, WithOverride)...)
-}
-
-// WithTransformers adds transformers to merge, allowing to customize the merging of some types.
-func WithTransformers(transformers Transformers) func(*Config) {
- return func(config *Config) {
- config.Transformers = transformers
- }
-}
-
-// WithOverride will make merge override non-empty dst attributes with non-empty src attributes values.
-func WithOverride(config *Config) {
- config.Overwrite = true
-}
-
-// WithAppendSlice will make merge append slices instead of overwriting it
-func WithAppendSlice(config *Config) {
- config.AppendSlice = true
-}
-
-func merge(dst, src interface{}, opts ...func(*Config)) error {
- var (
- vDst, vSrc reflect.Value
- err error
- )
-
- config := &Config{}
-
- for _, opt := range opts {
- opt(config)
- }
-
- if vDst, vSrc, err = resolveValues(dst, src); err != nil {
- return err
- }
- if vDst.Type() != vSrc.Type() {
- return ErrDifferentArgumentsTypes
- }
- return deepMerge(vDst, vSrc, make(map[uintptr]*visit), 0, config)
-}
diff --git a/vendor/github.com/imdario/mergo/mergo.go b/vendor/github.com/imdario/mergo/mergo.go
deleted file mode 100644
index a82fea2fd..000000000
--- a/vendor/github.com/imdario/mergo/mergo.go
+++ /dev/null
@@ -1,97 +0,0 @@
-// Copyright 2013 Dario Castañé. All rights reserved.
-// Copyright 2009 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-// Based on src/pkg/reflect/deepequal.go from official
-// golang's stdlib.
-
-package mergo
-
-import (
- "errors"
- "reflect"
-)
-
-// Errors reported by Mergo when it finds invalid arguments.
-var (
- ErrNilArguments = errors.New("src and dst must not be nil")
- ErrDifferentArgumentsTypes = errors.New("src and dst must be of same type")
- ErrNotSupported = errors.New("only structs and maps are supported")
- ErrExpectedMapAsDestination = errors.New("dst was expected to be a map")
- ErrExpectedStructAsDestination = errors.New("dst was expected to be a struct")
-)
-
-// During deepMerge, must keep track of checks that are
-// in progress. The comparison algorithm assumes that all
-// checks in progress are true when it reencounters them.
-// Visited are stored in a map indexed by 17 * a1 + a2;
-type visit struct {
- ptr uintptr
- typ reflect.Type
- next *visit
-}
-
-// From src/pkg/encoding/json/encode.go.
-func isEmptyValue(v reflect.Value) bool {
- switch v.Kind() {
- case reflect.Array, reflect.Map, reflect.Slice, reflect.String:
- return v.Len() == 0
- case reflect.Bool:
- return !v.Bool()
- case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
- return v.Int() == 0
- case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr:
- return v.Uint() == 0
- case reflect.Float32, reflect.Float64:
- return v.Float() == 0
- case reflect.Interface, reflect.Ptr:
- if v.IsNil() {
- return true
- }
- return isEmptyValue(v.Elem())
- case reflect.Func:
- return v.IsNil()
- case reflect.Invalid:
- return true
- }
- return false
-}
-
-func resolveValues(dst, src interface{}) (vDst, vSrc reflect.Value, err error) {
- if dst == nil || src == nil {
- err = ErrNilArguments
- return
- }
- vDst = reflect.ValueOf(dst).Elem()
- if vDst.Kind() != reflect.Struct && vDst.Kind() != reflect.Map {
- err = ErrNotSupported
- return
- }
- vSrc = reflect.ValueOf(src)
- // We check if vSrc is a pointer to dereference it.
- if vSrc.Kind() == reflect.Ptr {
- vSrc = vSrc.Elem()
- }
- return
-}
-
-// Traverses recursively both values, assigning src's fields values to dst.
-// The map argument tracks comparisons that have already been seen, which allows
-// short circuiting on recursive types.
-func deeper(dst, src reflect.Value, visited map[uintptr]*visit, depth int) (err error) {
- if dst.CanAddr() {
- addr := dst.UnsafeAddr()
- h := 17 * addr
- seen := visited[h]
- typ := dst.Type()
- for p := seen; p != nil; p = p.next {
- if p.ptr == addr && p.typ == typ {
- return nil
- }
- }
- // Remember, remember...
- visited[h] = &visit{addr, typ, seen}
- }
- return // TODO refactor
-}
diff --git a/vendor/github.com/openshift/api/config/v1/register.go b/vendor/github.com/openshift/api/config/v1/register.go
index c1024bf1e..61302592e 100644
--- a/vendor/github.com/openshift/api/config/v1/register.go
+++ b/vendor/github.com/openshift/api/config/v1/register.go
@@ -72,8 +72,6 @@ func addKnownTypes(scheme *runtime.Scheme) error {
&ImageDigestMirrorSetList{},
&ImageTagMirrorSet{},
&ImageTagMirrorSetList{},
- &ClusterMonitoring{},
- &ClusterMonitoringList{},
)
metav1.AddToGroupVersion(scheme, GroupVersion)
return nil
diff --git a/vendor/github.com/openshift/api/config/v1/zz_generated.deepcopy.go b/vendor/github.com/openshift/api/config/v1/zz_generated.deepcopy.go
index 1a77c6af5..b013d4595 100644
--- a/vendor/github.com/openshift/api/config/v1/zz_generated.deepcopy.go
+++ b/vendor/github.com/openshift/api/config/v1/zz_generated.deepcopy.go
@@ -1003,100 +1003,6 @@ func (in *ClusterCondition) DeepCopy() *ClusterCondition {
return out
}
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *ClusterMonitoring) DeepCopyInto(out *ClusterMonitoring) {
- *out = *in
- out.TypeMeta = in.TypeMeta
- in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
- out.Spec = in.Spec
- out.Status = in.Status
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterMonitoring.
-func (in *ClusterMonitoring) DeepCopy() *ClusterMonitoring {
- if in == nil {
- return nil
- }
- out := new(ClusterMonitoring)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
-func (in *ClusterMonitoring) 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 *ClusterMonitoringList) DeepCopyInto(out *ClusterMonitoringList) {
- *out = *in
- out.TypeMeta = in.TypeMeta
- in.ListMeta.DeepCopyInto(&out.ListMeta)
- if in.Items != nil {
- in, out := &in.Items, &out.Items
- *out = make([]ClusterMonitoring, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterMonitoringList.
-func (in *ClusterMonitoringList) DeepCopy() *ClusterMonitoringList {
- if in == nil {
- return nil
- }
- out := new(ClusterMonitoringList)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
-func (in *ClusterMonitoringList) 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 *ClusterMonitoringSpec) DeepCopyInto(out *ClusterMonitoringSpec) {
- *out = *in
- out.UserDefined = in.UserDefined
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterMonitoringSpec.
-func (in *ClusterMonitoringSpec) DeepCopy() *ClusterMonitoringSpec {
- if in == nil {
- return nil
- }
- out := new(ClusterMonitoringSpec)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *ClusterMonitoringStatus) DeepCopyInto(out *ClusterMonitoringStatus) {
- *out = *in
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterMonitoringStatus.
-func (in *ClusterMonitoringStatus) DeepCopy() *ClusterMonitoringStatus {
- if in == nil {
- return nil
- }
- out := new(ClusterMonitoringStatus)
- in.DeepCopyInto(out)
- return out
-}
-
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ClusterNetworkEntry) DeepCopyInto(out *ClusterNetworkEntry) {
*out = *in
@@ -5883,22 +5789,6 @@ func (in *UpdateHistory) DeepCopy() *UpdateHistory {
return out
}
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *UserDefinedMonitoring) DeepCopyInto(out *UserDefinedMonitoring) {
- *out = *in
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserDefinedMonitoring.
-func (in *UserDefinedMonitoring) DeepCopy() *UserDefinedMonitoring {
- if in == nil {
- return nil
- }
- out := new(UserDefinedMonitoring)
- in.DeepCopyInto(out)
- return out
-}
-
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *UsernameClaimMapping) DeepCopyInto(out *UsernameClaimMapping) {
*out = *in
diff --git a/vendor/github.com/openshift/api/config/v1/zz_generated.featuregated-crd-manifests.yaml b/vendor/github.com/openshift/api/config/v1/zz_generated.featuregated-crd-manifests.yaml
index bad62b529..78fd36f3f 100644
--- a/vendor/github.com/openshift/api/config/v1/zz_generated.featuregated-crd-manifests.yaml
+++ b/vendor/github.com/openshift/api/config/v1/zz_generated.featuregated-crd-manifests.yaml
@@ -64,30 +64,6 @@ builds.config.openshift.io:
TopLevelFeatureGates: []
Version: v1
-clustermonitoring.config.openshift.io:
- Annotations:
- description: Cluster Monitoring Operators configuration API
- ApprovedPRNumber: https://github.com/openshift/api/pull/1929
- CRDName: clustermonitoring.config.openshift.io
- Capability: ""
- Category: ""
- FeatureGates:
- - ClusterMonitoringConfig
- FilenameOperatorName: config-operator
- FilenameOperatorOrdering: "01"
- FilenameRunLevel: "0000_10"
- GroupName: config.openshift.io
- HasStatus: true
- KindName: ClusterMonitoring
- Labels: {}
- PluralName: clustermonitoring
- PrinterColumns: []
- Scope: Cluster
- ShortNames: null
- TopLevelFeatureGates:
- - ClusterMonitoringConfig
- Version: v1
-
clusteroperators.config.openshift.io:
Annotations:
include.release.openshift.io/self-managed-high-availability: "true"
diff --git a/vendor/github.com/openshift/api/config/v1/zz_generated.swagger_doc_generated.go b/vendor/github.com/openshift/api/config/v1/zz_generated.swagger_doc_generated.go
index c45b58eef..0ac9c7ccd 100644
--- a/vendor/github.com/openshift/api/config/v1/zz_generated.swagger_doc_generated.go
+++ b/vendor/github.com/openshift/api/config/v1/zz_generated.swagger_doc_generated.go
@@ -571,53 +571,6 @@ func (ImageLabel) SwaggerDoc() map[string]string {
return map_ImageLabel
}
-var map_ClusterMonitoring = map[string]string{
- "": "ClusterMonitoring is the Custom Resource object which holds the current status of Cluster Monitoring Operator. CMO is a central component of the monitoring stack.\n\nCompatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support. ClusterMonitoring is the Schema for the Cluster Monitoring Operators API",
- "metadata": "metadata is the standard object metadata.",
- "spec": "spec holds user configuration for the Cluster Monitoring Operator",
- "status": "status holds observed values from the cluster. They may not be overridden.",
-}
-
-func (ClusterMonitoring) SwaggerDoc() map[string]string {
- return map_ClusterMonitoring
-}
-
-var map_ClusterMonitoringList = map[string]string{
- "": "Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support.",
- "metadata": "metadata is the standard list metadata.",
- "items": "items is a list of ClusterMonitoring",
-}
-
-func (ClusterMonitoringList) SwaggerDoc() map[string]string {
- return map_ClusterMonitoringList
-}
-
-var map_ClusterMonitoringSpec = map[string]string{
- "": "ClusterMonitoringSpec defines the desired state of Cluster Monitoring Operator",
- "userDefined": "userDefined set the deployment mode for user-defined monitoring in addition to the default platform monitoring.",
-}
-
-func (ClusterMonitoringSpec) SwaggerDoc() map[string]string {
- return map_ClusterMonitoringSpec
-}
-
-var map_ClusterMonitoringStatus = map[string]string{
- "": "MonitoringOperatorStatus defines the observed state of MonitoringOperator",
-}
-
-func (ClusterMonitoringStatus) SwaggerDoc() map[string]string {
- return map_ClusterMonitoringStatus
-}
-
-var map_UserDefinedMonitoring = map[string]string{
- "": "UserDefinedMonitoring config for user-defined projects.",
- "mode": "mode defines the different configurations of UserDefinedMonitoring Valid values are Disabled and NamespaceIsolated Disabled disables monitoring for user-defined projects. This restricts the default monitoring stack, installed in the openshift-monitoring project, to monitor only platform namespaces, which prevents any custom monitoring configurations or resources from being applied to user-defined namespaces. NamespaceIsolated enables monitoring for user-defined projects with namespace-scoped tenancy. This ensures that metrics, alerts, and monitoring data are isolated at the namespace level.",
-}
-
-func (UserDefinedMonitoring) SwaggerDoc() map[string]string {
- return map_UserDefinedMonitoring
-}
-
var map_ClusterOperator = map[string]string{
"": "ClusterOperator is the Custom Resource object which holds the current state of an operator. This object is used by operators to convey their state to the rest of the cluster.\n\nCompatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).",
"metadata": "metadata is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
diff --git a/vendor/github.com/openshift/api/config/v1alpha1/register.go b/vendor/github.com/openshift/api/config/v1alpha1/register.go
index 36432ceb8..4b30ea380 100644
--- a/vendor/github.com/openshift/api/config/v1alpha1/register.go
+++ b/vendor/github.com/openshift/api/config/v1alpha1/register.go
@@ -30,6 +30,8 @@ func Resource(resource string) schema.GroupResource {
// Adds the list of known types to api.Scheme.
func addKnownTypes(scheme *runtime.Scheme) error {
scheme.AddKnownTypes(GroupVersion,
+ &ClusterMonitoring{},
+ &ClusterMonitoringList{},
&InsightsDataGather{},
&InsightsDataGatherList{},
&Backup{},
diff --git a/vendor/github.com/openshift/api/config/v1/types_cluster_monitoring.go b/vendor/github.com/openshift/api/config/v1alpha1/types_cluster_monitoring.go
similarity index 99%
rename from vendor/github.com/openshift/api/config/v1/types_cluster_monitoring.go
rename to vendor/github.com/openshift/api/config/v1alpha1/types_cluster_monitoring.go
index 077098658..c276971b5 100644
--- a/vendor/github.com/openshift/api/config/v1/types_cluster_monitoring.go
+++ b/vendor/github.com/openshift/api/config/v1alpha1/types_cluster_monitoring.go
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
-package v1
+package v1alpha1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
diff --git a/vendor/github.com/openshift/api/config/v1alpha1/zz_generated.deepcopy.go b/vendor/github.com/openshift/api/config/v1alpha1/zz_generated.deepcopy.go
index ab39b5b91..8e22e2d27 100644
--- a/vendor/github.com/openshift/api/config/v1alpha1/zz_generated.deepcopy.go
+++ b/vendor/github.com/openshift/api/config/v1alpha1/zz_generated.deepcopy.go
@@ -210,6 +210,100 @@ func (in *ClusterImagePolicyStatus) DeepCopy() *ClusterImagePolicyStatus {
return out
}
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *ClusterMonitoring) DeepCopyInto(out *ClusterMonitoring) {
+ *out = *in
+ out.TypeMeta = in.TypeMeta
+ in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
+ out.Spec = in.Spec
+ out.Status = in.Status
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterMonitoring.
+func (in *ClusterMonitoring) DeepCopy() *ClusterMonitoring {
+ if in == nil {
+ return nil
+ }
+ out := new(ClusterMonitoring)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
+func (in *ClusterMonitoring) 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 *ClusterMonitoringList) DeepCopyInto(out *ClusterMonitoringList) {
+ *out = *in
+ out.TypeMeta = in.TypeMeta
+ in.ListMeta.DeepCopyInto(&out.ListMeta)
+ if in.Items != nil {
+ in, out := &in.Items, &out.Items
+ *out = make([]ClusterMonitoring, len(*in))
+ for i := range *in {
+ (*in)[i].DeepCopyInto(&(*out)[i])
+ }
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterMonitoringList.
+func (in *ClusterMonitoringList) DeepCopy() *ClusterMonitoringList {
+ if in == nil {
+ return nil
+ }
+ out := new(ClusterMonitoringList)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
+func (in *ClusterMonitoringList) 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 *ClusterMonitoringSpec) DeepCopyInto(out *ClusterMonitoringSpec) {
+ *out = *in
+ out.UserDefined = in.UserDefined
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterMonitoringSpec.
+func (in *ClusterMonitoringSpec) DeepCopy() *ClusterMonitoringSpec {
+ if in == nil {
+ return nil
+ }
+ out := new(ClusterMonitoringSpec)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *ClusterMonitoringStatus) DeepCopyInto(out *ClusterMonitoringStatus) {
+ *out = *in
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterMonitoringStatus.
+func (in *ClusterMonitoringStatus) DeepCopy() *ClusterMonitoringStatus {
+ if in == nil {
+ return nil
+ }
+ out := new(ClusterMonitoringStatus)
+ in.DeepCopyInto(out)
+ return out
+}
+
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *EtcdBackupSpec) DeepCopyInto(out *EtcdBackupSpec) {
*out = *in
@@ -676,3 +770,19 @@ func (in *RetentionSizeConfig) DeepCopy() *RetentionSizeConfig {
in.DeepCopyInto(out)
return out
}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *UserDefinedMonitoring) DeepCopyInto(out *UserDefinedMonitoring) {
+ *out = *in
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserDefinedMonitoring.
+func (in *UserDefinedMonitoring) DeepCopy() *UserDefinedMonitoring {
+ if in == nil {
+ return nil
+ }
+ out := new(UserDefinedMonitoring)
+ in.DeepCopyInto(out)
+ return out
+}
diff --git a/vendor/github.com/openshift/api/config/v1alpha1/zz_generated.featuregated-crd-manifests.yaml b/vendor/github.com/openshift/api/config/v1alpha1/zz_generated.featuregated-crd-manifests.yaml
index 393365b41..1d4a88d50 100644
--- a/vendor/github.com/openshift/api/config/v1alpha1/zz_generated.featuregated-crd-manifests.yaml
+++ b/vendor/github.com/openshift/api/config/v1alpha1/zz_generated.featuregated-crd-manifests.yaml
@@ -44,6 +44,30 @@ clusterimagepolicies.config.openshift.io:
- SigstoreImageVerification
Version: v1alpha1
+clustermonitoring.config.openshift.io:
+ Annotations:
+ description: Cluster Monitoring Operators configuration API
+ ApprovedPRNumber: https://github.com/openshift/api/pull/1929
+ CRDName: clustermonitoring.config.openshift.io
+ Capability: ""
+ Category: ""
+ FeatureGates:
+ - ClusterMonitoringConfig
+ FilenameOperatorName: config-operator
+ FilenameOperatorOrdering: "01"
+ FilenameRunLevel: "0000_10"
+ GroupName: config.openshift.io
+ HasStatus: true
+ KindName: ClusterMonitoring
+ Labels: {}
+ PluralName: clustermonitoring
+ PrinterColumns: []
+ Scope: Cluster
+ ShortNames: null
+ TopLevelFeatureGates:
+ - ClusterMonitoringConfig
+ Version: v1alpha1
+
imagepolicies.config.openshift.io:
Annotations: {}
ApprovedPRNumber: https://github.com/openshift/api/pull/1457
diff --git a/vendor/github.com/openshift/api/config/v1alpha1/zz_generated.swagger_doc_generated.go b/vendor/github.com/openshift/api/config/v1alpha1/zz_generated.swagger_doc_generated.go
index e6accce0d..92ae6cc72 100644
--- a/vendor/github.com/openshift/api/config/v1alpha1/zz_generated.swagger_doc_generated.go
+++ b/vendor/github.com/openshift/api/config/v1alpha1/zz_generated.swagger_doc_generated.go
@@ -118,6 +118,53 @@ func (ClusterImagePolicyStatus) SwaggerDoc() map[string]string {
return map_ClusterImagePolicyStatus
}
+var map_ClusterMonitoring = map[string]string{
+ "": "ClusterMonitoring is the Custom Resource object which holds the current status of Cluster Monitoring Operator. CMO is a central component of the monitoring stack.\n\nCompatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support. ClusterMonitoring is the Schema for the Cluster Monitoring Operators API",
+ "metadata": "metadata is the standard object metadata.",
+ "spec": "spec holds user configuration for the Cluster Monitoring Operator",
+ "status": "status holds observed values from the cluster. They may not be overridden.",
+}
+
+func (ClusterMonitoring) SwaggerDoc() map[string]string {
+ return map_ClusterMonitoring
+}
+
+var map_ClusterMonitoringList = map[string]string{
+ "": "Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support.",
+ "metadata": "metadata is the standard list metadata.",
+ "items": "items is a list of ClusterMonitoring",
+}
+
+func (ClusterMonitoringList) SwaggerDoc() map[string]string {
+ return map_ClusterMonitoringList
+}
+
+var map_ClusterMonitoringSpec = map[string]string{
+ "": "ClusterMonitoringSpec defines the desired state of Cluster Monitoring Operator",
+ "userDefined": "userDefined set the deployment mode for user-defined monitoring in addition to the default platform monitoring.",
+}
+
+func (ClusterMonitoringSpec) SwaggerDoc() map[string]string {
+ return map_ClusterMonitoringSpec
+}
+
+var map_ClusterMonitoringStatus = map[string]string{
+ "": "MonitoringOperatorStatus defines the observed state of MonitoringOperator",
+}
+
+func (ClusterMonitoringStatus) SwaggerDoc() map[string]string {
+ return map_ClusterMonitoringStatus
+}
+
+var map_UserDefinedMonitoring = map[string]string{
+ "": "UserDefinedMonitoring config for user-defined projects.",
+ "mode": "mode defines the different configurations of UserDefinedMonitoring Valid values are Disabled and NamespaceIsolated Disabled disables monitoring for user-defined projects. This restricts the default monitoring stack, installed in the openshift-monitoring project, to monitor only platform namespaces, which prevents any custom monitoring configurations or resources from being applied to user-defined namespaces. NamespaceIsolated enables monitoring for user-defined projects with namespace-scoped tenancy. This ensures that metrics, alerts, and monitoring data are isolated at the namespace level.",
+}
+
+func (UserDefinedMonitoring) SwaggerDoc() map[string]string {
+ return map_UserDefinedMonitoring
+}
+
var map_FulcioCAWithRekor = map[string]string{
"": "FulcioCAWithRekor defines the root of trust based on the Fulcio certificate and the Rekor public key.",
"fulcioCAData": "fulcioCAData contains inline base64-encoded data for the PEM format fulcio CA. fulcioCAData must be at most 8192 characters.",
diff --git a/vendor/github.com/openshift/api/console/v1/types_console_plugin.go b/vendor/github.com/openshift/api/console/v1/types_console_plugin.go
index 632e13c72..569f20fe1 100644
--- a/vendor/github.com/openshift/api/console/v1/types_console_plugin.go
+++ b/vendor/github.com/openshift/api/console/v1/types_console_plugin.go
@@ -61,7 +61,7 @@ type ConsolePluginSpec struct {
// from a cluster service.
// CSP violation reports can be viewed in the browser's console logs during development and
// testing of the plugin in the OpenShift web console.
- // Available directive types are DefaultSrc, ScriptSrc, StyleSrc, ImgSrc and FontSrc.
+ // Available directive types are DefaultSrc, ScriptSrc, StyleSrc, ImgSrc, FontSrc, ObjectSrc and ConnectSrc.
// Each of the available directives may be defined only once in the list.
// The value 'self' is automatically included in all fetch directives by the OpenShift web
// console's backend.
@@ -101,7 +101,7 @@ type ConsolePluginSpec struct {
// DirectiveType is an enumeration of OpenShift web console supported CSP directives.
// LoadType is an enumeration of i18n loading types.
-// +kubebuilder:validation:Enum:="DefaultSrc";"ScriptSrc";"StyleSrc";"ImgSrc";"FontSrc"
+// +kubebuilder:validation:Enum:="DefaultSrc";"ScriptSrc";"StyleSrc";"ImgSrc";"FontSrc";"ObjectSrc";"ConnectSrc"
// +enum
type DirectiveType string
@@ -123,9 +123,17 @@ const (
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/img-src
ImgSrc DirectiveType = "ImgSrc"
// FontSrc directive specifies valid sources for fonts loaded using @font-face.
- // For more information about the FontSrcdirective, see:
+ // For more information about the FontSrc directive, see:
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/font-src
FontSrc DirectiveType = "FontSrc"
+ // ObjectSrc directive specifies valid sources for the