diff --git a/apiextensions/applyconfigurations/apiextensions/v1alpha1/apiexcludedfield.go b/apiextensions/applyconfigurations/apiextensions/v1alpha1/apiexcludedfield.go
new file mode 100644
index 0000000000..50827f5673
--- /dev/null
+++ b/apiextensions/applyconfigurations/apiextensions/v1alpha1/apiexcludedfield.go
@@ -0,0 +1,38 @@
+// Code generated by applyconfiguration-gen. DO NOT EDIT.
+
+package v1alpha1
+
+import (
+ apiextensionsv1alpha1 "github.com/openshift/api/apiextensions/v1alpha1"
+)
+
+// APIExcludedFieldApplyConfiguration represents a declarative configuration of the APIExcludedField type for use
+// with apply.
+type APIExcludedFieldApplyConfiguration struct {
+ Path *string `json:"path,omitempty"`
+ Versions []apiextensionsv1alpha1.APIVersionString `json:"versions,omitempty"`
+}
+
+// APIExcludedFieldApplyConfiguration constructs a declarative configuration of the APIExcludedField type for use with
+// apply.
+func APIExcludedField() *APIExcludedFieldApplyConfiguration {
+ return &APIExcludedFieldApplyConfiguration{}
+}
+
+// WithPath sets the Path field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the Path field is set to the value of the last call.
+func (b *APIExcludedFieldApplyConfiguration) WithPath(value string) *APIExcludedFieldApplyConfiguration {
+ b.Path = &value
+ return b
+}
+
+// WithVersions adds the given value to the Versions 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 Versions field.
+func (b *APIExcludedFieldApplyConfiguration) WithVersions(values ...apiextensionsv1alpha1.APIVersionString) *APIExcludedFieldApplyConfiguration {
+ for i := range values {
+ b.Versions = append(b.Versions, values[i])
+ }
+ return b
+}
diff --git a/apiextensions/applyconfigurations/apiextensions/v1alpha1/apiversions.go b/apiextensions/applyconfigurations/apiextensions/v1alpha1/apiversions.go
new file mode 100644
index 0000000000..2bbcf4e104
--- /dev/null
+++ b/apiextensions/applyconfigurations/apiextensions/v1alpha1/apiversions.go
@@ -0,0 +1,38 @@
+// Code generated by applyconfiguration-gen. DO NOT EDIT.
+
+package v1alpha1
+
+import (
+ apiextensionsv1alpha1 "github.com/openshift/api/apiextensions/v1alpha1"
+)
+
+// APIVersionsApplyConfiguration represents a declarative configuration of the APIVersions type for use
+// with apply.
+type APIVersionsApplyConfiguration struct {
+ DefaultSelection *apiextensionsv1alpha1.APIVersionSelectionType `json:"defaultSelection,omitempty"`
+ AdditionalVersions []apiextensionsv1alpha1.APIVersionString `json:"additionalVersions,omitempty"`
+}
+
+// APIVersionsApplyConfiguration constructs a declarative configuration of the APIVersions type for use with
+// apply.
+func APIVersions() *APIVersionsApplyConfiguration {
+ return &APIVersionsApplyConfiguration{}
+}
+
+// WithDefaultSelection sets the DefaultSelection field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the DefaultSelection field is set to the value of the last call.
+func (b *APIVersionsApplyConfiguration) WithDefaultSelection(value apiextensionsv1alpha1.APIVersionSelectionType) *APIVersionsApplyConfiguration {
+ b.DefaultSelection = &value
+ return b
+}
+
+// WithAdditionalVersions adds the given value to the AdditionalVersions 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 AdditionalVersions field.
+func (b *APIVersionsApplyConfiguration) WithAdditionalVersions(values ...apiextensionsv1alpha1.APIVersionString) *APIVersionsApplyConfiguration {
+ for i := range values {
+ b.AdditionalVersions = append(b.AdditionalVersions, values[i])
+ }
+ return b
+}
diff --git a/apiextensions/applyconfigurations/apiextensions/v1alpha1/compatibilityrequirement.go b/apiextensions/applyconfigurations/apiextensions/v1alpha1/compatibilityrequirement.go
new file mode 100644
index 0000000000..312cf05c06
--- /dev/null
+++ b/apiextensions/applyconfigurations/apiextensions/v1alpha1/compatibilityrequirement.go
@@ -0,0 +1,263 @@
+// Code generated by applyconfiguration-gen. DO NOT EDIT.
+
+package v1alpha1
+
+import (
+ apiextensionsv1alpha1 "github.com/openshift/api/apiextensions/v1alpha1"
+ internal "github.com/openshift/client-go/apiextensions/applyconfigurations/internal"
+ metav1 "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"
+)
+
+// CompatibilityRequirementApplyConfiguration represents a declarative configuration of the CompatibilityRequirement type for use
+// with apply.
+type CompatibilityRequirementApplyConfiguration struct {
+ v1.TypeMetaApplyConfiguration `json:",inline"`
+ *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
+ Spec *CompatibilityRequirementSpecApplyConfiguration `json:"spec,omitempty"`
+ Status *CompatibilityRequirementStatusApplyConfiguration `json:"status,omitempty"`
+}
+
+// CompatibilityRequirement constructs a declarative configuration of the CompatibilityRequirement type for use with
+// apply.
+func CompatibilityRequirement(name string) *CompatibilityRequirementApplyConfiguration {
+ b := &CompatibilityRequirementApplyConfiguration{}
+ b.WithName(name)
+ b.WithKind("CompatibilityRequirement")
+ b.WithAPIVersion("apiextensions.openshift.io/v1alpha1")
+ return b
+}
+
+// ExtractCompatibilityRequirement extracts the applied configuration owned by fieldManager from
+// compatibilityRequirement. If no managedFields are found in compatibilityRequirement for fieldManager, a
+// CompatibilityRequirementApplyConfiguration is returned with only the Name, Namespace (if applicable),
+// APIVersion and Kind populated. It is possible that no managed fields were found for because other
+// field managers have taken ownership of all the fields previously owned by fieldManager, or because
+// the fieldManager never owned fields any fields.
+// compatibilityRequirement must be a unmodified CompatibilityRequirement API object that was retrieved from the Kubernetes API.
+// ExtractCompatibilityRequirement provides a way to perform a extract/modify-in-place/apply workflow.
+// 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 ExtractCompatibilityRequirement(compatibilityRequirement *apiextensionsv1alpha1.CompatibilityRequirement, fieldManager string) (*CompatibilityRequirementApplyConfiguration, error) {
+ return extractCompatibilityRequirement(compatibilityRequirement, fieldManager, "")
+}
+
+// ExtractCompatibilityRequirementStatus is the same as ExtractCompatibilityRequirement except
+// that it extracts the status subresource applied configuration.
+// Experimental!
+func ExtractCompatibilityRequirementStatus(compatibilityRequirement *apiextensionsv1alpha1.CompatibilityRequirement, fieldManager string) (*CompatibilityRequirementApplyConfiguration, error) {
+ return extractCompatibilityRequirement(compatibilityRequirement, fieldManager, "status")
+}
+
+func extractCompatibilityRequirement(compatibilityRequirement *apiextensionsv1alpha1.CompatibilityRequirement, fieldManager string, subresource string) (*CompatibilityRequirementApplyConfiguration, error) {
+ b := &CompatibilityRequirementApplyConfiguration{}
+ err := managedfields.ExtractInto(compatibilityRequirement, internal.Parser().Type("com.github.openshift.api.apiextensions.v1alpha1.CompatibilityRequirement"), fieldManager, b, subresource)
+ if err != nil {
+ return nil, err
+ }
+ b.WithName(compatibilityRequirement.Name)
+
+ b.WithKind("CompatibilityRequirement")
+ b.WithAPIVersion("apiextensions.openshift.io/v1alpha1")
+ return b, nil
+}
+func (b CompatibilityRequirementApplyConfiguration) IsApplyConfiguration() {}
+
+// WithKind sets the Kind field in the declarative configuration to the given value
+// 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 *CompatibilityRequirementApplyConfiguration) WithKind(value string) *CompatibilityRequirementApplyConfiguration {
+ b.TypeMetaApplyConfiguration.Kind = &value
+ return b
+}
+
+// WithAPIVersion sets the APIVersion field in the declarative configuration to the given value
+// 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 *CompatibilityRequirementApplyConfiguration) WithAPIVersion(value string) *CompatibilityRequirementApplyConfiguration {
+ b.TypeMetaApplyConfiguration.APIVersion = &value
+ return b
+}
+
+// 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 *CompatibilityRequirementApplyConfiguration) WithName(value string) *CompatibilityRequirementApplyConfiguration {
+ b.ensureObjectMetaApplyConfigurationExists()
+ b.ObjectMetaApplyConfiguration.Name = &value
+ return b
+}
+
+// WithGenerateName sets the GenerateName field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the GenerateName field is set to the value of the last call.
+func (b *CompatibilityRequirementApplyConfiguration) WithGenerateName(value string) *CompatibilityRequirementApplyConfiguration {
+ b.ensureObjectMetaApplyConfigurationExists()
+ b.ObjectMetaApplyConfiguration.GenerateName = &value
+ return b
+}
+
+// WithNamespace sets the Namespace field in the declarative configuration to the given 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 *CompatibilityRequirementApplyConfiguration) WithNamespace(value string) *CompatibilityRequirementApplyConfiguration {
+ b.ensureObjectMetaApplyConfigurationExists()
+ b.ObjectMetaApplyConfiguration.Namespace = &value
+ return b
+}
+
+// WithUID sets the UID field in the declarative configuration to the given 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 *CompatibilityRequirementApplyConfiguration) WithUID(value types.UID) *CompatibilityRequirementApplyConfiguration {
+ b.ensureObjectMetaApplyConfigurationExists()
+ b.ObjectMetaApplyConfiguration.UID = &value
+ return b
+}
+
+// WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value
+// 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 *CompatibilityRequirementApplyConfiguration) WithResourceVersion(value string) *CompatibilityRequirementApplyConfiguration {
+ b.ensureObjectMetaApplyConfigurationExists()
+ b.ObjectMetaApplyConfiguration.ResourceVersion = &value
+ return b
+}
+
+// WithGeneration sets the Generation field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the Generation field is set to the value of the last call.
+func (b *CompatibilityRequirementApplyConfiguration) WithGeneration(value int64) *CompatibilityRequirementApplyConfiguration {
+ b.ensureObjectMetaApplyConfigurationExists()
+ 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 *CompatibilityRequirementApplyConfiguration) WithCreationTimestamp(value metav1.Time) *CompatibilityRequirementApplyConfiguration {
+ b.ensureObjectMetaApplyConfigurationExists()
+ 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 *CompatibilityRequirementApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *CompatibilityRequirementApplyConfiguration {
+ b.ensureObjectMetaApplyConfigurationExists()
+ b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
+ return b
+}
+
+// WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
+func (b *CompatibilityRequirementApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *CompatibilityRequirementApplyConfiguration {
+ b.ensureObjectMetaApplyConfigurationExists()
+ b.ObjectMetaApplyConfiguration.DeletionGracePeriodSeconds = &value
+ return b
+}
+
+// WithLabels puts the entries into the Labels field in the declarative configuration
+// 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 Labels field,
+// overwriting an existing map entries in Labels field with the same key.
+func (b *CompatibilityRequirementApplyConfiguration) WithLabels(entries map[string]string) *CompatibilityRequirementApplyConfiguration {
+ b.ensureObjectMetaApplyConfigurationExists()
+ if b.ObjectMetaApplyConfiguration.Labels == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Labels = make(map[string]string, len(entries))
+ }
+ for k, v := range entries {
+ b.ObjectMetaApplyConfiguration.Labels[k] = v
+ }
+ return b
+}
+
+// WithAnnotations puts the entries into the Annotations field in the declarative configuration
+// 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 Annotations field,
+// overwriting an existing map entries in Annotations field with the same key.
+func (b *CompatibilityRequirementApplyConfiguration) WithAnnotations(entries map[string]string) *CompatibilityRequirementApplyConfiguration {
+ b.ensureObjectMetaApplyConfigurationExists()
+ if b.ObjectMetaApplyConfiguration.Annotations == nil && len(entries) > 0 {
+ b.ObjectMetaApplyConfiguration.Annotations = make(map[string]string, len(entries))
+ }
+ for k, v := range entries {
+ b.ObjectMetaApplyConfiguration.Annotations[k] = v
+ }
+ return b
+}
+
+// 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 *CompatibilityRequirementApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *CompatibilityRequirementApplyConfiguration {
+ b.ensureObjectMetaApplyConfigurationExists()
+ for i := range values {
+ if values[i] == nil {
+ panic("nil value passed to WithOwnerReferences")
+ }
+ b.ObjectMetaApplyConfiguration.OwnerReferences = append(b.ObjectMetaApplyConfiguration.OwnerReferences, *values[i])
+ }
+ return b
+}
+
+// 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 *CompatibilityRequirementApplyConfiguration) WithFinalizers(values ...string) *CompatibilityRequirementApplyConfiguration {
+ b.ensureObjectMetaApplyConfigurationExists()
+ for i := range values {
+ b.ObjectMetaApplyConfiguration.Finalizers = append(b.ObjectMetaApplyConfiguration.Finalizers, values[i])
+ }
+ return b
+}
+
+func (b *CompatibilityRequirementApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
+ if b.ObjectMetaApplyConfiguration == nil {
+ b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
+ }
+}
+
+// WithSpec sets the Spec field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the Spec field is set to the value of the last call.
+func (b *CompatibilityRequirementApplyConfiguration) WithSpec(value *CompatibilityRequirementSpecApplyConfiguration) *CompatibilityRequirementApplyConfiguration {
+ b.Spec = value
+ return b
+}
+
+// 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 *CompatibilityRequirementApplyConfiguration) WithStatus(value *CompatibilityRequirementStatusApplyConfiguration) *CompatibilityRequirementApplyConfiguration {
+ b.Status = value
+ return b
+}
+
+// GetKind retrieves the value of the Kind field in the declarative configuration.
+func (b *CompatibilityRequirementApplyConfiguration) GetKind() *string {
+ return b.TypeMetaApplyConfiguration.Kind
+}
+
+// GetAPIVersion retrieves the value of the APIVersion field in the declarative configuration.
+func (b *CompatibilityRequirementApplyConfiguration) GetAPIVersion() *string {
+ return b.TypeMetaApplyConfiguration.APIVersion
+}
+
+// GetName retrieves the value of the Name field in the declarative configuration.
+func (b *CompatibilityRequirementApplyConfiguration) GetName() *string {
+ b.ensureObjectMetaApplyConfigurationExists()
+ return b.ObjectMetaApplyConfiguration.Name
+}
+
+// GetNamespace retrieves the value of the Namespace field in the declarative configuration.
+func (b *CompatibilityRequirementApplyConfiguration) GetNamespace() *string {
+ b.ensureObjectMetaApplyConfigurationExists()
+ return b.ObjectMetaApplyConfiguration.Namespace
+}
diff --git a/apiextensions/applyconfigurations/apiextensions/v1alpha1/compatibilityrequirementspec.go b/apiextensions/applyconfigurations/apiextensions/v1alpha1/compatibilityrequirementspec.go
new file mode 100644
index 0000000000..1eaeb4a41b
--- /dev/null
+++ b/apiextensions/applyconfigurations/apiextensions/v1alpha1/compatibilityrequirementspec.go
@@ -0,0 +1,41 @@
+// Code generated by applyconfiguration-gen. DO NOT EDIT.
+
+package v1alpha1
+
+// CompatibilityRequirementSpecApplyConfiguration represents a declarative configuration of the CompatibilityRequirementSpec type for use
+// with apply.
+type CompatibilityRequirementSpecApplyConfiguration struct {
+ CompatibilitySchema *CompatibilitySchemaApplyConfiguration `json:"compatibilitySchema,omitempty"`
+ CustomResourceDefinitionSchemaValidation *CustomResourceDefinitionSchemaValidationApplyConfiguration `json:"customResourceDefinitionSchemaValidation,omitempty"`
+ ObjectSchemaValidation *ObjectSchemaValidationApplyConfiguration `json:"objectSchemaValidation,omitempty"`
+}
+
+// CompatibilityRequirementSpecApplyConfiguration constructs a declarative configuration of the CompatibilityRequirementSpec type for use with
+// apply.
+func CompatibilityRequirementSpec() *CompatibilityRequirementSpecApplyConfiguration {
+ return &CompatibilityRequirementSpecApplyConfiguration{}
+}
+
+// WithCompatibilitySchema sets the CompatibilitySchema field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the CompatibilitySchema field is set to the value of the last call.
+func (b *CompatibilityRequirementSpecApplyConfiguration) WithCompatibilitySchema(value *CompatibilitySchemaApplyConfiguration) *CompatibilityRequirementSpecApplyConfiguration {
+ b.CompatibilitySchema = value
+ return b
+}
+
+// WithCustomResourceDefinitionSchemaValidation sets the CustomResourceDefinitionSchemaValidation field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the CustomResourceDefinitionSchemaValidation field is set to the value of the last call.
+func (b *CompatibilityRequirementSpecApplyConfiguration) WithCustomResourceDefinitionSchemaValidation(value *CustomResourceDefinitionSchemaValidationApplyConfiguration) *CompatibilityRequirementSpecApplyConfiguration {
+ b.CustomResourceDefinitionSchemaValidation = value
+ return b
+}
+
+// WithObjectSchemaValidation sets the ObjectSchemaValidation field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the ObjectSchemaValidation field is set to the value of the last call.
+func (b *CompatibilityRequirementSpecApplyConfiguration) WithObjectSchemaValidation(value *ObjectSchemaValidationApplyConfiguration) *CompatibilityRequirementSpecApplyConfiguration {
+ b.ObjectSchemaValidation = value
+ return b
+}
diff --git a/apiextensions/applyconfigurations/apiextensions/v1alpha1/compatibilityrequirementstatus.go b/apiextensions/applyconfigurations/apiextensions/v1alpha1/compatibilityrequirementstatus.go
new file mode 100644
index 0000000000..051bca0c80
--- /dev/null
+++ b/apiextensions/applyconfigurations/apiextensions/v1alpha1/compatibilityrequirementstatus.go
@@ -0,0 +1,50 @@
+// Code generated by applyconfiguration-gen. DO NOT EDIT.
+
+package v1alpha1
+
+import (
+ v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+)
+
+// CompatibilityRequirementStatusApplyConfiguration represents a declarative configuration of the CompatibilityRequirementStatus type for use
+// with apply.
+type CompatibilityRequirementStatusApplyConfiguration struct {
+ Conditions []v1.ConditionApplyConfiguration `json:"conditions,omitempty"`
+ ObservedCRD *ObservedCRDApplyConfiguration `json:"observedCRD,omitempty"`
+ CRDName *string `json:"crdName,omitempty"`
+}
+
+// CompatibilityRequirementStatusApplyConfiguration constructs a declarative configuration of the CompatibilityRequirementStatus type for use with
+// apply.
+func CompatibilityRequirementStatus() *CompatibilityRequirementStatusApplyConfiguration {
+ return &CompatibilityRequirementStatusApplyConfiguration{}
+}
+
+// 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 *CompatibilityRequirementStatusApplyConfiguration) WithConditions(values ...*v1.ConditionApplyConfiguration) *CompatibilityRequirementStatusApplyConfiguration {
+ for i := range values {
+ if values[i] == nil {
+ panic("nil value passed to WithConditions")
+ }
+ b.Conditions = append(b.Conditions, *values[i])
+ }
+ return b
+}
+
+// WithObservedCRD sets the ObservedCRD field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the ObservedCRD field is set to the value of the last call.
+func (b *CompatibilityRequirementStatusApplyConfiguration) WithObservedCRD(value *ObservedCRDApplyConfiguration) *CompatibilityRequirementStatusApplyConfiguration {
+ b.ObservedCRD = value
+ return b
+}
+
+// WithCRDName sets the CRDName field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the CRDName field is set to the value of the last call.
+func (b *CompatibilityRequirementStatusApplyConfiguration) WithCRDName(value string) *CompatibilityRequirementStatusApplyConfiguration {
+ b.CRDName = &value
+ return b
+}
diff --git a/apiextensions/applyconfigurations/apiextensions/v1alpha1/compatibilityschema.go b/apiextensions/applyconfigurations/apiextensions/v1alpha1/compatibilityschema.go
new file mode 100644
index 0000000000..70f890665c
--- /dev/null
+++ b/apiextensions/applyconfigurations/apiextensions/v1alpha1/compatibilityschema.go
@@ -0,0 +1,46 @@
+// Code generated by applyconfiguration-gen. DO NOT EDIT.
+
+package v1alpha1
+
+// CompatibilitySchemaApplyConfiguration represents a declarative configuration of the CompatibilitySchema type for use
+// with apply.
+type CompatibilitySchemaApplyConfiguration struct {
+ CustomResourceDefinition *CRDDataApplyConfiguration `json:"customResourceDefinition,omitempty"`
+ RequiredVersions *APIVersionsApplyConfiguration `json:"requiredVersions,omitempty"`
+ ExcludedFields []APIExcludedFieldApplyConfiguration `json:"excludedFields,omitempty"`
+}
+
+// CompatibilitySchemaApplyConfiguration constructs a declarative configuration of the CompatibilitySchema type for use with
+// apply.
+func CompatibilitySchema() *CompatibilitySchemaApplyConfiguration {
+ return &CompatibilitySchemaApplyConfiguration{}
+}
+
+// WithCustomResourceDefinition sets the CustomResourceDefinition field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the CustomResourceDefinition field is set to the value of the last call.
+func (b *CompatibilitySchemaApplyConfiguration) WithCustomResourceDefinition(value *CRDDataApplyConfiguration) *CompatibilitySchemaApplyConfiguration {
+ b.CustomResourceDefinition = value
+ return b
+}
+
+// WithRequiredVersions sets the RequiredVersions field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the RequiredVersions field is set to the value of the last call.
+func (b *CompatibilitySchemaApplyConfiguration) WithRequiredVersions(value *APIVersionsApplyConfiguration) *CompatibilitySchemaApplyConfiguration {
+ b.RequiredVersions = value
+ return b
+}
+
+// WithExcludedFields adds the given value to the ExcludedFields 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 ExcludedFields field.
+func (b *CompatibilitySchemaApplyConfiguration) WithExcludedFields(values ...*APIExcludedFieldApplyConfiguration) *CompatibilitySchemaApplyConfiguration {
+ for i := range values {
+ if values[i] == nil {
+ panic("nil value passed to WithExcludedFields")
+ }
+ b.ExcludedFields = append(b.ExcludedFields, *values[i])
+ }
+ return b
+}
diff --git a/apiextensions/applyconfigurations/apiextensions/v1alpha1/crddata.go b/apiextensions/applyconfigurations/apiextensions/v1alpha1/crddata.go
new file mode 100644
index 0000000000..2263ceeb40
--- /dev/null
+++ b/apiextensions/applyconfigurations/apiextensions/v1alpha1/crddata.go
@@ -0,0 +1,36 @@
+// Code generated by applyconfiguration-gen. DO NOT EDIT.
+
+package v1alpha1
+
+import (
+ apiextensionsv1alpha1 "github.com/openshift/api/apiextensions/v1alpha1"
+)
+
+// CRDDataApplyConfiguration represents a declarative configuration of the CRDData type for use
+// with apply.
+type CRDDataApplyConfiguration struct {
+ Type *apiextensionsv1alpha1.CRDDataType `json:"type,omitempty"`
+ Data *string `json:"data,omitempty"`
+}
+
+// CRDDataApplyConfiguration constructs a declarative configuration of the CRDData type for use with
+// apply.
+func CRDData() *CRDDataApplyConfiguration {
+ return &CRDDataApplyConfiguration{}
+}
+
+// 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 *CRDDataApplyConfiguration) WithType(value apiextensionsv1alpha1.CRDDataType) *CRDDataApplyConfiguration {
+ b.Type = &value
+ return b
+}
+
+// WithData sets the Data field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the Data field is set to the value of the last call.
+func (b *CRDDataApplyConfiguration) WithData(value string) *CRDDataApplyConfiguration {
+ b.Data = &value
+ return b
+}
diff --git a/apiextensions/applyconfigurations/apiextensions/v1alpha1/customresourcedefinitionschemavalidation.go b/apiextensions/applyconfigurations/apiextensions/v1alpha1/customresourcedefinitionschemavalidation.go
new file mode 100644
index 0000000000..3f1f000fd1
--- /dev/null
+++ b/apiextensions/applyconfigurations/apiextensions/v1alpha1/customresourcedefinitionschemavalidation.go
@@ -0,0 +1,27 @@
+// Code generated by applyconfiguration-gen. DO NOT EDIT.
+
+package v1alpha1
+
+import (
+ apiextensionsv1alpha1 "github.com/openshift/api/apiextensions/v1alpha1"
+)
+
+// CustomResourceDefinitionSchemaValidationApplyConfiguration represents a declarative configuration of the CustomResourceDefinitionSchemaValidation type for use
+// with apply.
+type CustomResourceDefinitionSchemaValidationApplyConfiguration struct {
+ Action *apiextensionsv1alpha1.CRDAdmitAction `json:"action,omitempty"`
+}
+
+// CustomResourceDefinitionSchemaValidationApplyConfiguration constructs a declarative configuration of the CustomResourceDefinitionSchemaValidation type for use with
+// apply.
+func CustomResourceDefinitionSchemaValidation() *CustomResourceDefinitionSchemaValidationApplyConfiguration {
+ return &CustomResourceDefinitionSchemaValidationApplyConfiguration{}
+}
+
+// WithAction sets the Action field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the Action field is set to the value of the last call.
+func (b *CustomResourceDefinitionSchemaValidationApplyConfiguration) WithAction(value apiextensionsv1alpha1.CRDAdmitAction) *CustomResourceDefinitionSchemaValidationApplyConfiguration {
+ b.Action = &value
+ return b
+}
diff --git a/apiextensions/applyconfigurations/apiextensions/v1alpha1/objectschemavalidation.go b/apiextensions/applyconfigurations/apiextensions/v1alpha1/objectschemavalidation.go
new file mode 100644
index 0000000000..12763511f4
--- /dev/null
+++ b/apiextensions/applyconfigurations/apiextensions/v1alpha1/objectschemavalidation.go
@@ -0,0 +1,58 @@
+// Code generated by applyconfiguration-gen. DO NOT EDIT.
+
+package v1alpha1
+
+import (
+ apiextensionsv1alpha1 "github.com/openshift/api/apiextensions/v1alpha1"
+ admissionregistrationv1 "k8s.io/api/admissionregistration/v1"
+ v1 "k8s.io/client-go/applyconfigurations/meta/v1"
+)
+
+// ObjectSchemaValidationApplyConfiguration represents a declarative configuration of the ObjectSchemaValidation type for use
+// with apply.
+type ObjectSchemaValidationApplyConfiguration struct {
+ Action *apiextensionsv1alpha1.CRDAdmitAction `json:"action,omitempty"`
+ NamespaceSelector *v1.LabelSelectorApplyConfiguration `json:"namespaceSelector,omitempty"`
+ ObjectSelector *v1.LabelSelectorApplyConfiguration `json:"objectSelector,omitempty"`
+ MatchConditions []admissionregistrationv1.MatchCondition `json:"matchConditions,omitempty"`
+}
+
+// ObjectSchemaValidationApplyConfiguration constructs a declarative configuration of the ObjectSchemaValidation type for use with
+// apply.
+func ObjectSchemaValidation() *ObjectSchemaValidationApplyConfiguration {
+ return &ObjectSchemaValidationApplyConfiguration{}
+}
+
+// WithAction sets the Action field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the Action field is set to the value of the last call.
+func (b *ObjectSchemaValidationApplyConfiguration) WithAction(value apiextensionsv1alpha1.CRDAdmitAction) *ObjectSchemaValidationApplyConfiguration {
+ b.Action = &value
+ return b
+}
+
+// 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 *ObjectSchemaValidationApplyConfiguration) WithNamespaceSelector(value *v1.LabelSelectorApplyConfiguration) *ObjectSchemaValidationApplyConfiguration {
+ b.NamespaceSelector = value
+ return b
+}
+
+// WithObjectSelector sets the ObjectSelector field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the ObjectSelector field is set to the value of the last call.
+func (b *ObjectSchemaValidationApplyConfiguration) WithObjectSelector(value *v1.LabelSelectorApplyConfiguration) *ObjectSchemaValidationApplyConfiguration {
+ b.ObjectSelector = value
+ return b
+}
+
+// WithMatchConditions adds the given value to the MatchConditions 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 MatchConditions field.
+func (b *ObjectSchemaValidationApplyConfiguration) WithMatchConditions(values ...admissionregistrationv1.MatchCondition) *ObjectSchemaValidationApplyConfiguration {
+ for i := range values {
+ b.MatchConditions = append(b.MatchConditions, values[i])
+ }
+ return b
+}
diff --git a/apiextensions/applyconfigurations/apiextensions/v1alpha1/observedcrd.go b/apiextensions/applyconfigurations/apiextensions/v1alpha1/observedcrd.go
new file mode 100644
index 0000000000..bc236d0455
--- /dev/null
+++ b/apiextensions/applyconfigurations/apiextensions/v1alpha1/observedcrd.go
@@ -0,0 +1,32 @@
+// Code generated by applyconfiguration-gen. DO NOT EDIT.
+
+package v1alpha1
+
+// ObservedCRDApplyConfiguration represents a declarative configuration of the ObservedCRD type for use
+// with apply.
+type ObservedCRDApplyConfiguration struct {
+ UID *string `json:"uid,omitempty"`
+ Generation *int64 `json:"generation,omitempty"`
+}
+
+// ObservedCRDApplyConfiguration constructs a declarative configuration of the ObservedCRD type for use with
+// apply.
+func ObservedCRD() *ObservedCRDApplyConfiguration {
+ return &ObservedCRDApplyConfiguration{}
+}
+
+// WithUID sets the UID field in the declarative configuration to the given 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 *ObservedCRDApplyConfiguration) WithUID(value string) *ObservedCRDApplyConfiguration {
+ b.UID = &value
+ return b
+}
+
+// WithGeneration sets the Generation field in the declarative configuration to the given value
+// and returns the receiver, so that objects can be built by chaining "With" function invocations.
+// If called multiple times, the Generation field is set to the value of the last call.
+func (b *ObservedCRDApplyConfiguration) WithGeneration(value int64) *ObservedCRDApplyConfiguration {
+ b.Generation = &value
+ return b
+}
diff --git a/apiextensions/applyconfigurations/internal/internal.go b/apiextensions/applyconfigurations/internal/internal.go
new file mode 100644
index 0000000000..942959159e
--- /dev/null
+++ b/apiextensions/applyconfigurations/internal/internal.go
@@ -0,0 +1,382 @@
+// Code generated by applyconfiguration-gen. DO NOT EDIT.
+
+package internal
+
+import (
+ fmt "fmt"
+ sync "sync"
+
+ typed "sigs.k8s.io/structured-merge-diff/v6/typed"
+)
+
+func Parser() *typed.Parser {
+ parserOnce.Do(func() {
+ var err error
+ parser, err = typed.NewParser(schemaYAML)
+ if err != nil {
+ panic(fmt.Sprintf("Failed to parse schema: %v", err))
+ }
+ })
+ return parser
+}
+
+var parserOnce sync.Once
+var parser *typed.Parser
+var schemaYAML = typed.YAMLObject(`types:
+- name: com.github.openshift.api.apiextensions.v1alpha1.APIExcludedField
+ map:
+ fields:
+ - name: path
+ type:
+ scalar: string
+ - name: versions
+ type:
+ list:
+ elementType:
+ scalar: string
+ elementRelationship: associative
+- name: com.github.openshift.api.apiextensions.v1alpha1.APIVersions
+ map:
+ fields:
+ - name: additionalVersions
+ type:
+ list:
+ elementType:
+ scalar: string
+ elementRelationship: associative
+ - name: defaultSelection
+ type:
+ scalar: string
+- name: com.github.openshift.api.apiextensions.v1alpha1.CRDData
+ map:
+ fields:
+ - name: data
+ type:
+ scalar: string
+ - name: type
+ type:
+ scalar: string
+- name: com.github.openshift.api.apiextensions.v1alpha1.CompatibilityRequirement
+ 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.apiextensions.v1alpha1.CompatibilityRequirementSpec
+ default: {}
+ - name: status
+ type:
+ namedType: com.github.openshift.api.apiextensions.v1alpha1.CompatibilityRequirementStatus
+ default: {}
+- name: com.github.openshift.api.apiextensions.v1alpha1.CompatibilityRequirementSpec
+ map:
+ fields:
+ - name: compatibilitySchema
+ type:
+ namedType: com.github.openshift.api.apiextensions.v1alpha1.CompatibilitySchema
+ default: {}
+ - name: customResourceDefinitionSchemaValidation
+ type:
+ namedType: com.github.openshift.api.apiextensions.v1alpha1.CustomResourceDefinitionSchemaValidation
+ default: {}
+ - name: objectSchemaValidation
+ type:
+ namedType: com.github.openshift.api.apiextensions.v1alpha1.ObjectSchemaValidation
+ default: {}
+- name: com.github.openshift.api.apiextensions.v1alpha1.CompatibilityRequirementStatus
+ map:
+ fields:
+ - name: conditions
+ type:
+ list:
+ elementType:
+ namedType: io.k8s.apimachinery.pkg.apis.meta.v1.Condition
+ elementRelationship: associative
+ keys:
+ - type
+ - name: crdName
+ type:
+ scalar: string
+ - name: observedCRD
+ type:
+ namedType: com.github.openshift.api.apiextensions.v1alpha1.ObservedCRD
+ default: {}
+- name: com.github.openshift.api.apiextensions.v1alpha1.CompatibilitySchema
+ map:
+ fields:
+ - name: customResourceDefinition
+ type:
+ namedType: com.github.openshift.api.apiextensions.v1alpha1.CRDData
+ default: {}
+ - name: excludedFields
+ type:
+ list:
+ elementType:
+ namedType: com.github.openshift.api.apiextensions.v1alpha1.APIExcludedField
+ elementRelationship: atomic
+ - name: requiredVersions
+ type:
+ namedType: com.github.openshift.api.apiextensions.v1alpha1.APIVersions
+ default: {}
+- name: com.github.openshift.api.apiextensions.v1alpha1.CustomResourceDefinitionSchemaValidation
+ map:
+ fields:
+ - name: action
+ type:
+ scalar: string
+- name: com.github.openshift.api.apiextensions.v1alpha1.ObjectSchemaValidation
+ map:
+ fields:
+ - name: action
+ type:
+ scalar: string
+ - name: matchConditions
+ type:
+ list:
+ elementType:
+ namedType: io.k8s.api.admissionregistration.v1.MatchCondition
+ elementRelationship: associative
+ keys:
+ - name
+ - name: namespaceSelector
+ type:
+ namedType: io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector
+ default: {}
+ - name: objectSelector
+ type:
+ namedType: io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector
+ default: {}
+- name: com.github.openshift.api.apiextensions.v1alpha1.ObservedCRD
+ map:
+ fields:
+ - name: generation
+ type:
+ scalar: numeric
+ - name: uid
+ type:
+ scalar: string
+- name: io.k8s.api.admissionregistration.v1.MatchCondition
+ map:
+ fields:
+ - name: expression
+ type:
+ scalar: string
+ default: ""
+ - name: name
+ type:
+ scalar: string
+ default: ""
+- name: io.k8s.apimachinery.pkg.apis.meta.v1.Condition
+ map:
+ fields:
+ - name: lastTransitionTime
+ type:
+ namedType: io.k8s.apimachinery.pkg.apis.meta.v1.Time
+ - name: message
+ type:
+ scalar: string
+ default: ""
+ - name: observedGeneration
+ type:
+ scalar: numeric
+ - name: reason
+ type:
+ scalar: string
+ default: ""
+ - name: status
+ type:
+ scalar: string
+ default: ""
+ - name: type
+ type:
+ scalar: string
+ default: ""
+- name: io.k8s.apimachinery.pkg.apis.meta.v1.FieldsV1
+ map:
+ elementType:
+ scalar: untyped
+ list:
+ elementType:
+ namedType: __untyped_atomic_
+ elementRelationship: atomic
+ map:
+ elementType:
+ namedType: __untyped_deduced_
+ elementRelationship: separable
+- name: io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector
+ map:
+ fields:
+ - name: matchExpressions
+ type:
+ list:
+ elementType:
+ namedType: io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement
+ elementRelationship: atomic
+ - name: matchLabels
+ type:
+ map:
+ elementType:
+ scalar: string
+ elementRelationship: atomic
+- name: io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement
+ map:
+ fields:
+ - name: key
+ type:
+ scalar: string
+ default: ""
+ - name: operator
+ type:
+ scalar: string
+ default: ""
+ - name: values
+ type:
+ list:
+ elementType:
+ scalar: string
+ elementRelationship: atomic
+- name: io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry
+ map:
+ fields:
+ - name: apiVersion
+ type:
+ scalar: string
+ - name: fieldsType
+ type:
+ scalar: string
+ - name: fieldsV1
+ type:
+ namedType: io.k8s.apimachinery.pkg.apis.meta.v1.FieldsV1
+ - name: manager
+ type:
+ scalar: string
+ - name: operation
+ type:
+ scalar: string
+ - name: subresource
+ type:
+ scalar: string
+ - name: time
+ type:
+ namedType: io.k8s.apimachinery.pkg.apis.meta.v1.Time
+- name: io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta
+ map:
+ fields:
+ - name: annotations
+ type:
+ map:
+ elementType:
+ scalar: string
+ - name: creationTimestamp
+ type:
+ namedType: io.k8s.apimachinery.pkg.apis.meta.v1.Time
+ - name: deletionGracePeriodSeconds
+ type:
+ scalar: numeric
+ - name: deletionTimestamp
+ type:
+ namedType: io.k8s.apimachinery.pkg.apis.meta.v1.Time
+ - name: finalizers
+ type:
+ list:
+ elementType:
+ scalar: string
+ elementRelationship: associative
+ - name: generateName
+ type:
+ scalar: string
+ - name: generation
+ type:
+ scalar: numeric
+ - name: labels
+ type:
+ map:
+ elementType:
+ scalar: string
+ - name: managedFields
+ type:
+ list:
+ elementType:
+ namedType: io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry
+ elementRelationship: atomic
+ - name: name
+ type:
+ scalar: string
+ - name: namespace
+ type:
+ scalar: string
+ - name: ownerReferences
+ type:
+ list:
+ elementType:
+ namedType: io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference
+ elementRelationship: associative
+ keys:
+ - uid
+ - name: resourceVersion
+ type:
+ scalar: string
+ - name: selfLink
+ type:
+ scalar: string
+ - name: uid
+ type:
+ scalar: string
+- name: io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference
+ map:
+ fields:
+ - name: apiVersion
+ type:
+ scalar: string
+ default: ""
+ - name: blockOwnerDeletion
+ type:
+ scalar: boolean
+ - name: controller
+ type:
+ scalar: boolean
+ - name: kind
+ type:
+ scalar: string
+ default: ""
+ - name: name
+ type:
+ scalar: string
+ default: ""
+ - name: uid
+ type:
+ scalar: string
+ default: ""
+ elementRelationship: atomic
+- name: io.k8s.apimachinery.pkg.apis.meta.v1.Time
+ scalar: untyped
+- name: __untyped_atomic_
+ scalar: untyped
+ list:
+ elementType:
+ namedType: __untyped_atomic_
+ elementRelationship: atomic
+ map:
+ elementType:
+ namedType: __untyped_atomic_
+ elementRelationship: atomic
+- name: __untyped_deduced_
+ scalar: untyped
+ list:
+ elementType:
+ namedType: __untyped_atomic_
+ elementRelationship: atomic
+ map:
+ elementType:
+ namedType: __untyped_deduced_
+ elementRelationship: separable
+`)
diff --git a/apiextensions/applyconfigurations/utils.go b/apiextensions/applyconfigurations/utils.go
new file mode 100644
index 0000000000..7a59b59f6e
--- /dev/null
+++ b/apiextensions/applyconfigurations/utils.go
@@ -0,0 +1,46 @@
+// Code generated by applyconfiguration-gen. DO NOT EDIT.
+
+package applyconfigurations
+
+import (
+ v1alpha1 "github.com/openshift/api/apiextensions/v1alpha1"
+ apiextensionsv1alpha1 "github.com/openshift/client-go/apiextensions/applyconfigurations/apiextensions/v1alpha1"
+ internal "github.com/openshift/client-go/apiextensions/applyconfigurations/internal"
+ runtime "k8s.io/apimachinery/pkg/runtime"
+ schema "k8s.io/apimachinery/pkg/runtime/schema"
+ managedfields "k8s.io/apimachinery/pkg/util/managedfields"
+)
+
+// ForKind returns an apply configuration type for the given GroupVersionKind, or nil if no
+// apply configuration type exists for the given GroupVersionKind.
+func ForKind(kind schema.GroupVersionKind) interface{} {
+ switch kind {
+ // Group=apiextensions.openshift.io, Version=v1alpha1
+ case v1alpha1.SchemeGroupVersion.WithKind("APIExcludedField"):
+ return &apiextensionsv1alpha1.APIExcludedFieldApplyConfiguration{}
+ case v1alpha1.SchemeGroupVersion.WithKind("APIVersions"):
+ return &apiextensionsv1alpha1.APIVersionsApplyConfiguration{}
+ case v1alpha1.SchemeGroupVersion.WithKind("CompatibilityRequirement"):
+ return &apiextensionsv1alpha1.CompatibilityRequirementApplyConfiguration{}
+ case v1alpha1.SchemeGroupVersion.WithKind("CompatibilityRequirementSpec"):
+ return &apiextensionsv1alpha1.CompatibilityRequirementSpecApplyConfiguration{}
+ case v1alpha1.SchemeGroupVersion.WithKind("CompatibilityRequirementStatus"):
+ return &apiextensionsv1alpha1.CompatibilityRequirementStatusApplyConfiguration{}
+ case v1alpha1.SchemeGroupVersion.WithKind("CompatibilitySchema"):
+ return &apiextensionsv1alpha1.CompatibilitySchemaApplyConfiguration{}
+ case v1alpha1.SchemeGroupVersion.WithKind("CRDData"):
+ return &apiextensionsv1alpha1.CRDDataApplyConfiguration{}
+ case v1alpha1.SchemeGroupVersion.WithKind("CustomResourceDefinitionSchemaValidation"):
+ return &apiextensionsv1alpha1.CustomResourceDefinitionSchemaValidationApplyConfiguration{}
+ case v1alpha1.SchemeGroupVersion.WithKind("ObjectSchemaValidation"):
+ return &apiextensionsv1alpha1.ObjectSchemaValidationApplyConfiguration{}
+ case v1alpha1.SchemeGroupVersion.WithKind("ObservedCRD"):
+ return &apiextensionsv1alpha1.ObservedCRDApplyConfiguration{}
+
+ }
+ return nil
+}
+
+func NewTypeConverter(scheme *runtime.Scheme) managedfields.TypeConverter {
+ return managedfields.NewSchemeTypeConverter(scheme, internal.Parser())
+}
diff --git a/apiextensions/clientset/versioned/clientset.go b/apiextensions/clientset/versioned/clientset.go
new file mode 100644
index 0000000000..4c14fd8e6d
--- /dev/null
+++ b/apiextensions/clientset/versioned/clientset.go
@@ -0,0 +1,104 @@
+// Code generated by client-gen. DO NOT EDIT.
+
+package versioned
+
+import (
+ fmt "fmt"
+ http "net/http"
+
+ apiextensionsv1alpha1 "github.com/openshift/client-go/apiextensions/clientset/versioned/typed/apiextensions/v1alpha1"
+ discovery "k8s.io/client-go/discovery"
+ rest "k8s.io/client-go/rest"
+ flowcontrol "k8s.io/client-go/util/flowcontrol"
+)
+
+type Interface interface {
+ Discovery() discovery.DiscoveryInterface
+ ApiextensionsV1alpha1() apiextensionsv1alpha1.ApiextensionsV1alpha1Interface
+}
+
+// Clientset contains the clients for groups.
+type Clientset struct {
+ *discovery.DiscoveryClient
+ apiextensionsV1alpha1 *apiextensionsv1alpha1.ApiextensionsV1alpha1Client
+}
+
+// ApiextensionsV1alpha1 retrieves the ApiextensionsV1alpha1Client
+func (c *Clientset) ApiextensionsV1alpha1() apiextensionsv1alpha1.ApiextensionsV1alpha1Interface {
+ return c.apiextensionsV1alpha1
+}
+
+// Discovery retrieves the DiscoveryClient
+func (c *Clientset) Discovery() discovery.DiscoveryInterface {
+ if c == nil {
+ return nil
+ }
+ return c.DiscoveryClient
+}
+
+// NewForConfig creates a new Clientset for the given config.
+// If config's RateLimiter is not set and QPS and Burst are acceptable,
+// NewForConfig will generate a rate-limiter in configShallowCopy.
+// NewForConfig is equivalent to NewForConfigAndClient(c, httpClient),
+// where httpClient was generated with rest.HTTPClientFor(c).
+func NewForConfig(c *rest.Config) (*Clientset, error) {
+ configShallowCopy := *c
+
+ if configShallowCopy.UserAgent == "" {
+ configShallowCopy.UserAgent = rest.DefaultKubernetesUserAgent()
+ }
+
+ // share the transport between all clients
+ httpClient, err := rest.HTTPClientFor(&configShallowCopy)
+ if err != nil {
+ return nil, err
+ }
+
+ return NewForConfigAndClient(&configShallowCopy, httpClient)
+}
+
+// NewForConfigAndClient creates a new Clientset for the given config and http client.
+// Note the http client provided takes precedence over the configured transport values.
+// If config's RateLimiter is not set and QPS and Burst are acceptable,
+// NewForConfigAndClient will generate a rate-limiter in configShallowCopy.
+func NewForConfigAndClient(c *rest.Config, httpClient *http.Client) (*Clientset, error) {
+ configShallowCopy := *c
+ if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 {
+ if configShallowCopy.Burst <= 0 {
+ return nil, fmt.Errorf("burst is required to be greater than 0 when RateLimiter is not set and QPS is set to greater than 0")
+ }
+ configShallowCopy.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(configShallowCopy.QPS, configShallowCopy.Burst)
+ }
+
+ var cs Clientset
+ var err error
+ cs.apiextensionsV1alpha1, err = apiextensionsv1alpha1.NewForConfigAndClient(&configShallowCopy, httpClient)
+ if err != nil {
+ return nil, err
+ }
+
+ cs.DiscoveryClient, err = discovery.NewDiscoveryClientForConfigAndClient(&configShallowCopy, httpClient)
+ if err != nil {
+ return nil, err
+ }
+ return &cs, nil
+}
+
+// NewForConfigOrDie creates a new Clientset for the given config and
+// panics if there is an error in the config.
+func NewForConfigOrDie(c *rest.Config) *Clientset {
+ cs, err := NewForConfig(c)
+ if err != nil {
+ panic(err)
+ }
+ return cs
+}
+
+// New creates a new Clientset for the given RESTClient.
+func New(c rest.Interface) *Clientset {
+ var cs Clientset
+ cs.apiextensionsV1alpha1 = apiextensionsv1alpha1.New(c)
+
+ cs.DiscoveryClient = discovery.NewDiscoveryClient(c)
+ return &cs
+}
diff --git a/apiextensions/clientset/versioned/fake/clientset_generated.go b/apiextensions/clientset/versioned/fake/clientset_generated.go
new file mode 100644
index 0000000000..b13413c9b7
--- /dev/null
+++ b/apiextensions/clientset/versioned/fake/clientset_generated.go
@@ -0,0 +1,115 @@
+// Code generated by client-gen. DO NOT EDIT.
+
+package fake
+
+import (
+ applyconfigurations "github.com/openshift/client-go/apiextensions/applyconfigurations"
+ clientset "github.com/openshift/client-go/apiextensions/clientset/versioned"
+ apiextensionsv1alpha1 "github.com/openshift/client-go/apiextensions/clientset/versioned/typed/apiextensions/v1alpha1"
+ fakeapiextensionsv1alpha1 "github.com/openshift/client-go/apiextensions/clientset/versioned/typed/apiextensions/v1alpha1/fake"
+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ "k8s.io/apimachinery/pkg/runtime"
+ "k8s.io/apimachinery/pkg/watch"
+ "k8s.io/client-go/discovery"
+ fakediscovery "k8s.io/client-go/discovery/fake"
+ "k8s.io/client-go/testing"
+)
+
+// NewSimpleClientset returns a clientset that will respond with the provided objects.
+// It's backed by a very simple object tracker that processes creates, updates and deletions as-is,
+// without applying any field management, validations and/or defaults. It shouldn't be considered a replacement
+// for a real clientset and is mostly useful in simple unit tests.
+//
+// DEPRECATED: NewClientset replaces this with support for field management, which significantly improves
+// server side apply testing. NewClientset is only available when apply configurations are generated (e.g.
+// via --with-applyconfig).
+func NewSimpleClientset(objects ...runtime.Object) *Clientset {
+ o := testing.NewObjectTracker(scheme, codecs.UniversalDecoder())
+ for _, obj := range objects {
+ if err := o.Add(obj); err != nil {
+ panic(err)
+ }
+ }
+
+ cs := &Clientset{tracker: o}
+ cs.discovery = &fakediscovery.FakeDiscovery{Fake: &cs.Fake}
+ cs.AddReactor("*", "*", testing.ObjectReaction(o))
+ cs.AddWatchReactor("*", func(action testing.Action) (handled bool, ret watch.Interface, err error) {
+ var opts metav1.ListOptions
+ if watchActcion, ok := action.(testing.WatchActionImpl); ok {
+ opts = watchActcion.ListOptions
+ }
+ gvr := action.GetResource()
+ ns := action.GetNamespace()
+ watch, err := o.Watch(gvr, ns, opts)
+ if err != nil {
+ return false, nil, err
+ }
+ return true, watch, nil
+ })
+
+ return cs
+}
+
+// Clientset implements clientset.Interface. Meant to be embedded into a
+// struct to get a default implementation. This makes faking out just the method
+// you want to test easier.
+type Clientset struct {
+ testing.Fake
+ discovery *fakediscovery.FakeDiscovery
+ tracker testing.ObjectTracker
+}
+
+func (c *Clientset) Discovery() discovery.DiscoveryInterface {
+ return c.discovery
+}
+
+func (c *Clientset) Tracker() testing.ObjectTracker {
+ return c.tracker
+}
+
+// NewClientset returns a clientset that will respond with the provided objects.
+// It's backed by a very simple object tracker that processes creates, updates and deletions as-is,
+// without applying any validations and/or defaults. It shouldn't be considered a replacement
+// for a real clientset and is mostly useful in simple unit tests.
+func NewClientset(objects ...runtime.Object) *Clientset {
+ o := testing.NewFieldManagedObjectTracker(
+ scheme,
+ codecs.UniversalDecoder(),
+ applyconfigurations.NewTypeConverter(scheme),
+ )
+ for _, obj := range objects {
+ if err := o.Add(obj); err != nil {
+ panic(err)
+ }
+ }
+
+ cs := &Clientset{tracker: o}
+ cs.discovery = &fakediscovery.FakeDiscovery{Fake: &cs.Fake}
+ cs.AddReactor("*", "*", testing.ObjectReaction(o))
+ cs.AddWatchReactor("*", func(action testing.Action) (handled bool, ret watch.Interface, err error) {
+ var opts metav1.ListOptions
+ if watchAction, ok := action.(testing.WatchActionImpl); ok {
+ opts = watchAction.ListOptions
+ }
+ gvr := action.GetResource()
+ ns := action.GetNamespace()
+ watch, err := o.Watch(gvr, ns, opts)
+ if err != nil {
+ return false, nil, err
+ }
+ return true, watch, nil
+ })
+
+ return cs
+}
+
+var (
+ _ clientset.Interface = &Clientset{}
+ _ testing.FakeClient = &Clientset{}
+)
+
+// ApiextensionsV1alpha1 retrieves the ApiextensionsV1alpha1Client
+func (c *Clientset) ApiextensionsV1alpha1() apiextensionsv1alpha1.ApiextensionsV1alpha1Interface {
+ return &fakeapiextensionsv1alpha1.FakeApiextensionsV1alpha1{Fake: &c.Fake}
+}
diff --git a/apiextensions/clientset/versioned/fake/doc.go b/apiextensions/clientset/versioned/fake/doc.go
new file mode 100644
index 0000000000..3630ed1cd1
--- /dev/null
+++ b/apiextensions/clientset/versioned/fake/doc.go
@@ -0,0 +1,4 @@
+// Code generated by client-gen. DO NOT EDIT.
+
+// This package has the automatically generated fake clientset.
+package fake
diff --git a/apiextensions/clientset/versioned/fake/register.go b/apiextensions/clientset/versioned/fake/register.go
new file mode 100644
index 0000000000..4aa7975836
--- /dev/null
+++ b/apiextensions/clientset/versioned/fake/register.go
@@ -0,0 +1,40 @@
+// Code generated by client-gen. DO NOT EDIT.
+
+package fake
+
+import (
+ apiextensionsv1alpha1 "github.com/openshift/api/apiextensions/v1alpha1"
+ v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ runtime "k8s.io/apimachinery/pkg/runtime"
+ schema "k8s.io/apimachinery/pkg/runtime/schema"
+ serializer "k8s.io/apimachinery/pkg/runtime/serializer"
+ utilruntime "k8s.io/apimachinery/pkg/util/runtime"
+)
+
+var scheme = runtime.NewScheme()
+var codecs = serializer.NewCodecFactory(scheme)
+
+var localSchemeBuilder = runtime.SchemeBuilder{
+ apiextensionsv1alpha1.AddToScheme,
+}
+
+// AddToScheme adds all types of this clientset into the given scheme. This allows composition
+// of clientsets, like in:
+//
+// import (
+// "k8s.io/client-go/kubernetes"
+// clientsetscheme "k8s.io/client-go/kubernetes/scheme"
+// aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme"
+// )
+//
+// kclientset, _ := kubernetes.NewForConfig(c)
+// _ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme)
+//
+// After this, RawExtensions in Kubernetes types will serialize kube-aggregator types
+// correctly.
+var AddToScheme = localSchemeBuilder.AddToScheme
+
+func init() {
+ v1.AddToGroupVersion(scheme, schema.GroupVersion{Version: "v1"})
+ utilruntime.Must(AddToScheme(scheme))
+}
diff --git a/apiextensions/clientset/versioned/scheme/doc.go b/apiextensions/clientset/versioned/scheme/doc.go
new file mode 100644
index 0000000000..14db57a58f
--- /dev/null
+++ b/apiextensions/clientset/versioned/scheme/doc.go
@@ -0,0 +1,4 @@
+// Code generated by client-gen. DO NOT EDIT.
+
+// This package contains the scheme of the automatically generated clientset.
+package scheme
diff --git a/apiextensions/clientset/versioned/scheme/register.go b/apiextensions/clientset/versioned/scheme/register.go
new file mode 100644
index 0000000000..c1d2389b6f
--- /dev/null
+++ b/apiextensions/clientset/versioned/scheme/register.go
@@ -0,0 +1,40 @@
+// Code generated by client-gen. DO NOT EDIT.
+
+package scheme
+
+import (
+ apiextensionsv1alpha1 "github.com/openshift/api/apiextensions/v1alpha1"
+ v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ runtime "k8s.io/apimachinery/pkg/runtime"
+ schema "k8s.io/apimachinery/pkg/runtime/schema"
+ serializer "k8s.io/apimachinery/pkg/runtime/serializer"
+ utilruntime "k8s.io/apimachinery/pkg/util/runtime"
+)
+
+var Scheme = runtime.NewScheme()
+var Codecs = serializer.NewCodecFactory(Scheme)
+var ParameterCodec = runtime.NewParameterCodec(Scheme)
+var localSchemeBuilder = runtime.SchemeBuilder{
+ apiextensionsv1alpha1.AddToScheme,
+}
+
+// AddToScheme adds all types of this clientset into the given scheme. This allows composition
+// of clientsets, like in:
+//
+// import (
+// "k8s.io/client-go/kubernetes"
+// clientsetscheme "k8s.io/client-go/kubernetes/scheme"
+// aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme"
+// )
+//
+// kclientset, _ := kubernetes.NewForConfig(c)
+// _ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme)
+//
+// After this, RawExtensions in Kubernetes types will serialize kube-aggregator types
+// correctly.
+var AddToScheme = localSchemeBuilder.AddToScheme
+
+func init() {
+ v1.AddToGroupVersion(Scheme, schema.GroupVersion{Version: "v1"})
+ utilruntime.Must(AddToScheme(Scheme))
+}
diff --git a/apiextensions/clientset/versioned/typed/apiextensions/v1alpha1/apiextensions_client.go b/apiextensions/clientset/versioned/typed/apiextensions/v1alpha1/apiextensions_client.go
new file mode 100644
index 0000000000..ffae1bf17d
--- /dev/null
+++ b/apiextensions/clientset/versioned/typed/apiextensions/v1alpha1/apiextensions_client.go
@@ -0,0 +1,85 @@
+// Code generated by client-gen. DO NOT EDIT.
+
+package v1alpha1
+
+import (
+ http "net/http"
+
+ apiextensionsv1alpha1 "github.com/openshift/api/apiextensions/v1alpha1"
+ scheme "github.com/openshift/client-go/apiextensions/clientset/versioned/scheme"
+ rest "k8s.io/client-go/rest"
+)
+
+type ApiextensionsV1alpha1Interface interface {
+ RESTClient() rest.Interface
+ CompatibilityRequirementsGetter
+}
+
+// ApiextensionsV1alpha1Client is used to interact with features provided by the apiextensions.openshift.io group.
+type ApiextensionsV1alpha1Client struct {
+ restClient rest.Interface
+}
+
+func (c *ApiextensionsV1alpha1Client) CompatibilityRequirements() CompatibilityRequirementInterface {
+ return newCompatibilityRequirements(c)
+}
+
+// NewForConfig creates a new ApiextensionsV1alpha1Client for the given config.
+// NewForConfig is equivalent to NewForConfigAndClient(c, httpClient),
+// where httpClient was generated with rest.HTTPClientFor(c).
+func NewForConfig(c *rest.Config) (*ApiextensionsV1alpha1Client, error) {
+ config := *c
+ setConfigDefaults(&config)
+ httpClient, err := rest.HTTPClientFor(&config)
+ if err != nil {
+ return nil, err
+ }
+ return NewForConfigAndClient(&config, httpClient)
+}
+
+// NewForConfigAndClient creates a new ApiextensionsV1alpha1Client for the given config and http client.
+// Note the http client provided takes precedence over the configured transport values.
+func NewForConfigAndClient(c *rest.Config, h *http.Client) (*ApiextensionsV1alpha1Client, error) {
+ config := *c
+ setConfigDefaults(&config)
+ client, err := rest.RESTClientForConfigAndClient(&config, h)
+ if err != nil {
+ return nil, err
+ }
+ return &ApiextensionsV1alpha1Client{client}, nil
+}
+
+// NewForConfigOrDie creates a new ApiextensionsV1alpha1Client for the given config and
+// panics if there is an error in the config.
+func NewForConfigOrDie(c *rest.Config) *ApiextensionsV1alpha1Client {
+ client, err := NewForConfig(c)
+ if err != nil {
+ panic(err)
+ }
+ return client
+}
+
+// New creates a new ApiextensionsV1alpha1Client for the given RESTClient.
+func New(c rest.Interface) *ApiextensionsV1alpha1Client {
+ return &ApiextensionsV1alpha1Client{c}
+}
+
+func setConfigDefaults(config *rest.Config) {
+ gv := apiextensionsv1alpha1.SchemeGroupVersion
+ config.GroupVersion = &gv
+ config.APIPath = "/apis"
+ config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion()
+
+ if config.UserAgent == "" {
+ config.UserAgent = rest.DefaultKubernetesUserAgent()
+ }
+}
+
+// RESTClient returns a RESTClient that is used to communicate
+// with API server by this client implementation.
+func (c *ApiextensionsV1alpha1Client) RESTClient() rest.Interface {
+ if c == nil {
+ return nil
+ }
+ return c.restClient
+}
diff --git a/apiextensions/clientset/versioned/typed/apiextensions/v1alpha1/compatibilityrequirement.go b/apiextensions/clientset/versioned/typed/apiextensions/v1alpha1/compatibilityrequirement.go
new file mode 100644
index 0000000000..16027fb64e
--- /dev/null
+++ b/apiextensions/clientset/versioned/typed/apiextensions/v1alpha1/compatibilityrequirement.go
@@ -0,0 +1,62 @@
+// Code generated by client-gen. DO NOT EDIT.
+
+package v1alpha1
+
+import (
+ context "context"
+
+ apiextensionsv1alpha1 "github.com/openshift/api/apiextensions/v1alpha1"
+ applyconfigurationsapiextensionsv1alpha1 "github.com/openshift/client-go/apiextensions/applyconfigurations/apiextensions/v1alpha1"
+ scheme "github.com/openshift/client-go/apiextensions/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"
+)
+
+// CompatibilityRequirementsGetter has a method to return a CompatibilityRequirementInterface.
+// A group's client should implement this interface.
+type CompatibilityRequirementsGetter interface {
+ CompatibilityRequirements() CompatibilityRequirementInterface
+}
+
+// CompatibilityRequirementInterface has methods to work with CompatibilityRequirement resources.
+type CompatibilityRequirementInterface interface {
+ Create(ctx context.Context, compatibilityRequirement *apiextensionsv1alpha1.CompatibilityRequirement, opts v1.CreateOptions) (*apiextensionsv1alpha1.CompatibilityRequirement, error)
+ Update(ctx context.Context, compatibilityRequirement *apiextensionsv1alpha1.CompatibilityRequirement, opts v1.UpdateOptions) (*apiextensionsv1alpha1.CompatibilityRequirement, error)
+ // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
+ UpdateStatus(ctx context.Context, compatibilityRequirement *apiextensionsv1alpha1.CompatibilityRequirement, opts v1.UpdateOptions) (*apiextensionsv1alpha1.CompatibilityRequirement, 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) (*apiextensionsv1alpha1.CompatibilityRequirement, error)
+ List(ctx context.Context, opts v1.ListOptions) (*apiextensionsv1alpha1.CompatibilityRequirementList, 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 *apiextensionsv1alpha1.CompatibilityRequirement, err error)
+ Apply(ctx context.Context, compatibilityRequirement *applyconfigurationsapiextensionsv1alpha1.CompatibilityRequirementApplyConfiguration, opts v1.ApplyOptions) (result *apiextensionsv1alpha1.CompatibilityRequirement, err error)
+ // Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
+ ApplyStatus(ctx context.Context, compatibilityRequirement *applyconfigurationsapiextensionsv1alpha1.CompatibilityRequirementApplyConfiguration, opts v1.ApplyOptions) (result *apiextensionsv1alpha1.CompatibilityRequirement, err error)
+ CompatibilityRequirementExpansion
+}
+
+// compatibilityRequirements implements CompatibilityRequirementInterface
+type compatibilityRequirements struct {
+ *gentype.ClientWithListAndApply[*apiextensionsv1alpha1.CompatibilityRequirement, *apiextensionsv1alpha1.CompatibilityRequirementList, *applyconfigurationsapiextensionsv1alpha1.CompatibilityRequirementApplyConfiguration]
+}
+
+// newCompatibilityRequirements returns a CompatibilityRequirements
+func newCompatibilityRequirements(c *ApiextensionsV1alpha1Client) *compatibilityRequirements {
+ return &compatibilityRequirements{
+ gentype.NewClientWithListAndApply[*apiextensionsv1alpha1.CompatibilityRequirement, *apiextensionsv1alpha1.CompatibilityRequirementList, *applyconfigurationsapiextensionsv1alpha1.CompatibilityRequirementApplyConfiguration](
+ "compatibilityrequirements",
+ c.RESTClient(),
+ scheme.ParameterCodec,
+ "",
+ func() *apiextensionsv1alpha1.CompatibilityRequirement {
+ return &apiextensionsv1alpha1.CompatibilityRequirement{}
+ },
+ func() *apiextensionsv1alpha1.CompatibilityRequirementList {
+ return &apiextensionsv1alpha1.CompatibilityRequirementList{}
+ },
+ ),
+ }
+}
diff --git a/apiextensions/clientset/versioned/typed/apiextensions/v1alpha1/doc.go b/apiextensions/clientset/versioned/typed/apiextensions/v1alpha1/doc.go
new file mode 100644
index 0000000000..93a7ca4e0e
--- /dev/null
+++ b/apiextensions/clientset/versioned/typed/apiextensions/v1alpha1/doc.go
@@ -0,0 +1,4 @@
+// Code generated by client-gen. DO NOT EDIT.
+
+// This package has the automatically generated typed clients.
+package v1alpha1
diff --git a/apiextensions/clientset/versioned/typed/apiextensions/v1alpha1/fake/doc.go b/apiextensions/clientset/versioned/typed/apiextensions/v1alpha1/fake/doc.go
new file mode 100644
index 0000000000..2b5ba4c8e4
--- /dev/null
+++ b/apiextensions/clientset/versioned/typed/apiextensions/v1alpha1/fake/doc.go
@@ -0,0 +1,4 @@
+// Code generated by client-gen. DO NOT EDIT.
+
+// Package fake has the automatically generated clients.
+package fake
diff --git a/apiextensions/clientset/versioned/typed/apiextensions/v1alpha1/fake/fake_apiextensions_client.go b/apiextensions/clientset/versioned/typed/apiextensions/v1alpha1/fake/fake_apiextensions_client.go
new file mode 100644
index 0000000000..394f350202
--- /dev/null
+++ b/apiextensions/clientset/versioned/typed/apiextensions/v1alpha1/fake/fake_apiextensions_client.go
@@ -0,0 +1,24 @@
+// Code generated by client-gen. DO NOT EDIT.
+
+package fake
+
+import (
+ v1alpha1 "github.com/openshift/client-go/apiextensions/clientset/versioned/typed/apiextensions/v1alpha1"
+ rest "k8s.io/client-go/rest"
+ testing "k8s.io/client-go/testing"
+)
+
+type FakeApiextensionsV1alpha1 struct {
+ *testing.Fake
+}
+
+func (c *FakeApiextensionsV1alpha1) CompatibilityRequirements() v1alpha1.CompatibilityRequirementInterface {
+ return newFakeCompatibilityRequirements(c)
+}
+
+// RESTClient returns a RESTClient that is used to communicate
+// with API server by this client implementation.
+func (c *FakeApiextensionsV1alpha1) RESTClient() rest.Interface {
+ var ret *rest.RESTClient
+ return ret
+}
diff --git a/apiextensions/clientset/versioned/typed/apiextensions/v1alpha1/fake/fake_compatibilityrequirement.go b/apiextensions/clientset/versioned/typed/apiextensions/v1alpha1/fake/fake_compatibilityrequirement.go
new file mode 100644
index 0000000000..1f477958b4
--- /dev/null
+++ b/apiextensions/clientset/versioned/typed/apiextensions/v1alpha1/fake/fake_compatibilityrequirement.go
@@ -0,0 +1,37 @@
+// Code generated by client-gen. DO NOT EDIT.
+
+package fake
+
+import (
+ v1alpha1 "github.com/openshift/api/apiextensions/v1alpha1"
+ apiextensionsv1alpha1 "github.com/openshift/client-go/apiextensions/applyconfigurations/apiextensions/v1alpha1"
+ typedapiextensionsv1alpha1 "github.com/openshift/client-go/apiextensions/clientset/versioned/typed/apiextensions/v1alpha1"
+ gentype "k8s.io/client-go/gentype"
+)
+
+// fakeCompatibilityRequirements implements CompatibilityRequirementInterface
+type fakeCompatibilityRequirements struct {
+ *gentype.FakeClientWithListAndApply[*v1alpha1.CompatibilityRequirement, *v1alpha1.CompatibilityRequirementList, *apiextensionsv1alpha1.CompatibilityRequirementApplyConfiguration]
+ Fake *FakeApiextensionsV1alpha1
+}
+
+func newFakeCompatibilityRequirements(fake *FakeApiextensionsV1alpha1) typedapiextensionsv1alpha1.CompatibilityRequirementInterface {
+ return &fakeCompatibilityRequirements{
+ gentype.NewFakeClientWithListAndApply[*v1alpha1.CompatibilityRequirement, *v1alpha1.CompatibilityRequirementList, *apiextensionsv1alpha1.CompatibilityRequirementApplyConfiguration](
+ fake.Fake,
+ "",
+ v1alpha1.SchemeGroupVersion.WithResource("compatibilityrequirements"),
+ v1alpha1.SchemeGroupVersion.WithKind("CompatibilityRequirement"),
+ func() *v1alpha1.CompatibilityRequirement { return &v1alpha1.CompatibilityRequirement{} },
+ func() *v1alpha1.CompatibilityRequirementList { return &v1alpha1.CompatibilityRequirementList{} },
+ func(dst, src *v1alpha1.CompatibilityRequirementList) { dst.ListMeta = src.ListMeta },
+ func(list *v1alpha1.CompatibilityRequirementList) []*v1alpha1.CompatibilityRequirement {
+ return gentype.ToPointerSlice(list.Items)
+ },
+ func(list *v1alpha1.CompatibilityRequirementList, items []*v1alpha1.CompatibilityRequirement) {
+ list.Items = gentype.FromPointerSlice(items)
+ },
+ ),
+ fake,
+ }
+}
diff --git a/apiextensions/clientset/versioned/typed/apiextensions/v1alpha1/generated_expansion.go b/apiextensions/clientset/versioned/typed/apiextensions/v1alpha1/generated_expansion.go
new file mode 100644
index 0000000000..158e56155a
--- /dev/null
+++ b/apiextensions/clientset/versioned/typed/apiextensions/v1alpha1/generated_expansion.go
@@ -0,0 +1,5 @@
+// Code generated by client-gen. DO NOT EDIT.
+
+package v1alpha1
+
+type CompatibilityRequirementExpansion interface{}
diff --git a/apiextensions/informers/externalversions/apiextensions/interface.go b/apiextensions/informers/externalversions/apiextensions/interface.go
new file mode 100644
index 0000000000..d6d22569bf
--- /dev/null
+++ b/apiextensions/informers/externalversions/apiextensions/interface.go
@@ -0,0 +1,30 @@
+// Code generated by informer-gen. DO NOT EDIT.
+
+package apiextensions
+
+import (
+ v1alpha1 "github.com/openshift/client-go/apiextensions/informers/externalversions/apiextensions/v1alpha1"
+ internalinterfaces "github.com/openshift/client-go/apiextensions/informers/externalversions/internalinterfaces"
+)
+
+// Interface provides access to each of this group's versions.
+type Interface interface {
+ // V1alpha1 provides access to shared informers for resources in V1alpha1.
+ V1alpha1() v1alpha1.Interface
+}
+
+type group struct {
+ factory internalinterfaces.SharedInformerFactory
+ namespace string
+ tweakListOptions internalinterfaces.TweakListOptionsFunc
+}
+
+// New returns a new Interface.
+func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface {
+ return &group{factory: f, namespace: namespace, tweakListOptions: tweakListOptions}
+}
+
+// V1alpha1 returns a new v1alpha1.Interface.
+func (g *group) V1alpha1() v1alpha1.Interface {
+ return v1alpha1.New(g.factory, g.namespace, g.tweakListOptions)
+}
diff --git a/apiextensions/informers/externalversions/apiextensions/v1alpha1/compatibilityrequirement.go b/apiextensions/informers/externalversions/apiextensions/v1alpha1/compatibilityrequirement.go
new file mode 100644
index 0000000000..8ac1fc6ecd
--- /dev/null
+++ b/apiextensions/informers/externalversions/apiextensions/v1alpha1/compatibilityrequirement.go
@@ -0,0 +1,85 @@
+// Code generated by informer-gen. DO NOT EDIT.
+
+package v1alpha1
+
+import (
+ context "context"
+ time "time"
+
+ apiapiextensionsv1alpha1 "github.com/openshift/api/apiextensions/v1alpha1"
+ versioned "github.com/openshift/client-go/apiextensions/clientset/versioned"
+ internalinterfaces "github.com/openshift/client-go/apiextensions/informers/externalversions/internalinterfaces"
+ apiextensionsv1alpha1 "github.com/openshift/client-go/apiextensions/listers/apiextensions/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"
+)
+
+// CompatibilityRequirementInformer provides access to a shared informer and lister for
+// CompatibilityRequirements.
+type CompatibilityRequirementInformer interface {
+ Informer() cache.SharedIndexInformer
+ Lister() apiextensionsv1alpha1.CompatibilityRequirementLister
+}
+
+type compatibilityRequirementInformer struct {
+ factory internalinterfaces.SharedInformerFactory
+ tweakListOptions internalinterfaces.TweakListOptionsFunc
+}
+
+// NewCompatibilityRequirementInformer constructs a new informer for CompatibilityRequirement type.
+// Always prefer using an informer factory to get a shared informer instead of getting an independent
+// one. This reduces memory footprint and number of connections to the server.
+func NewCompatibilityRequirementInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
+ return NewFilteredCompatibilityRequirementInformer(client, resyncPeriod, indexers, nil)
+}
+
+// NewFilteredCompatibilityRequirementInformer constructs a new informer for CompatibilityRequirement type.
+// Always prefer using an informer factory to get a shared informer instead of getting an independent
+// one. This reduces memory footprint and number of connections to the server.
+func NewFilteredCompatibilityRequirementInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
+ return cache.NewSharedIndexInformer(
+ &cache.ListWatch{
+ ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
+ if tweakListOptions != nil {
+ tweakListOptions(&options)
+ }
+ return client.ApiextensionsV1alpha1().CompatibilityRequirements().List(context.Background(), options)
+ },
+ WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
+ if tweakListOptions != nil {
+ tweakListOptions(&options)
+ }
+ return client.ApiextensionsV1alpha1().CompatibilityRequirements().Watch(context.Background(), options)
+ },
+ ListWithContextFunc: func(ctx context.Context, options v1.ListOptions) (runtime.Object, error) {
+ if tweakListOptions != nil {
+ tweakListOptions(&options)
+ }
+ return client.ApiextensionsV1alpha1().CompatibilityRequirements().List(ctx, options)
+ },
+ WatchFuncWithContext: func(ctx context.Context, options v1.ListOptions) (watch.Interface, error) {
+ if tweakListOptions != nil {
+ tweakListOptions(&options)
+ }
+ return client.ApiextensionsV1alpha1().CompatibilityRequirements().Watch(ctx, options)
+ },
+ },
+ &apiapiextensionsv1alpha1.CompatibilityRequirement{},
+ resyncPeriod,
+ indexers,
+ )
+}
+
+func (f *compatibilityRequirementInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
+ return NewFilteredCompatibilityRequirementInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
+}
+
+func (f *compatibilityRequirementInformer) Informer() cache.SharedIndexInformer {
+ return f.factory.InformerFor(&apiapiextensionsv1alpha1.CompatibilityRequirement{}, f.defaultInformer)
+}
+
+func (f *compatibilityRequirementInformer) Lister() apiextensionsv1alpha1.CompatibilityRequirementLister {
+ return apiextensionsv1alpha1.NewCompatibilityRequirementLister(f.Informer().GetIndexer())
+}
diff --git a/apiextensions/informers/externalversions/apiextensions/v1alpha1/interface.go b/apiextensions/informers/externalversions/apiextensions/v1alpha1/interface.go
new file mode 100644
index 0000000000..7ef04ea42c
--- /dev/null
+++ b/apiextensions/informers/externalversions/apiextensions/v1alpha1/interface.go
@@ -0,0 +1,29 @@
+// Code generated by informer-gen. DO NOT EDIT.
+
+package v1alpha1
+
+import (
+ internalinterfaces "github.com/openshift/client-go/apiextensions/informers/externalversions/internalinterfaces"
+)
+
+// Interface provides access to all the informers in this group version.
+type Interface interface {
+ // CompatibilityRequirements returns a CompatibilityRequirementInformer.
+ CompatibilityRequirements() CompatibilityRequirementInformer
+}
+
+type version struct {
+ factory internalinterfaces.SharedInformerFactory
+ namespace string
+ tweakListOptions internalinterfaces.TweakListOptionsFunc
+}
+
+// New returns a new Interface.
+func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface {
+ return &version{factory: f, namespace: namespace, tweakListOptions: tweakListOptions}
+}
+
+// CompatibilityRequirements returns a CompatibilityRequirementInformer.
+func (v *version) CompatibilityRequirements() CompatibilityRequirementInformer {
+ return &compatibilityRequirementInformer{factory: v.factory, tweakListOptions: v.tweakListOptions}
+}
diff --git a/apiextensions/informers/externalversions/factory.go b/apiextensions/informers/externalversions/factory.go
new file mode 100644
index 0000000000..ac8fcfbb15
--- /dev/null
+++ b/apiextensions/informers/externalversions/factory.go
@@ -0,0 +1,246 @@
+// Code generated by informer-gen. DO NOT EDIT.
+
+package externalversions
+
+import (
+ reflect "reflect"
+ sync "sync"
+ time "time"
+
+ versioned "github.com/openshift/client-go/apiextensions/clientset/versioned"
+ apiextensions "github.com/openshift/client-go/apiextensions/informers/externalversions/apiextensions"
+ internalinterfaces "github.com/openshift/client-go/apiextensions/informers/externalversions/internalinterfaces"
+ v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ runtime "k8s.io/apimachinery/pkg/runtime"
+ schema "k8s.io/apimachinery/pkg/runtime/schema"
+ cache "k8s.io/client-go/tools/cache"
+)
+
+// SharedInformerOption defines the functional option type for SharedInformerFactory.
+type SharedInformerOption func(*sharedInformerFactory) *sharedInformerFactory
+
+type sharedInformerFactory struct {
+ client versioned.Interface
+ namespace string
+ tweakListOptions internalinterfaces.TweakListOptionsFunc
+ lock sync.Mutex
+ defaultResync time.Duration
+ customResync map[reflect.Type]time.Duration
+ transform cache.TransformFunc
+
+ informers map[reflect.Type]cache.SharedIndexInformer
+ // startedInformers is used for tracking which informers have been started.
+ // This allows Start() to be called multiple times safely.
+ startedInformers map[reflect.Type]bool
+ // wg tracks how many goroutines were started.
+ wg sync.WaitGroup
+ // shuttingDown is true when Shutdown has been called. It may still be running
+ // because it needs to wait for goroutines.
+ shuttingDown bool
+}
+
+// WithCustomResyncConfig sets a custom resync period for the specified informer types.
+func WithCustomResyncConfig(resyncConfig map[v1.Object]time.Duration) SharedInformerOption {
+ return func(factory *sharedInformerFactory) *sharedInformerFactory {
+ for k, v := range resyncConfig {
+ factory.customResync[reflect.TypeOf(k)] = v
+ }
+ return factory
+ }
+}
+
+// WithTweakListOptions sets a custom filter on all listers of the configured SharedInformerFactory.
+func WithTweakListOptions(tweakListOptions internalinterfaces.TweakListOptionsFunc) SharedInformerOption {
+ return func(factory *sharedInformerFactory) *sharedInformerFactory {
+ factory.tweakListOptions = tweakListOptions
+ return factory
+ }
+}
+
+// WithNamespace limits the SharedInformerFactory to the specified namespace.
+func WithNamespace(namespace string) SharedInformerOption {
+ return func(factory *sharedInformerFactory) *sharedInformerFactory {
+ factory.namespace = namespace
+ return factory
+ }
+}
+
+// WithTransform sets a transform on all informers.
+func WithTransform(transform cache.TransformFunc) SharedInformerOption {
+ return func(factory *sharedInformerFactory) *sharedInformerFactory {
+ factory.transform = transform
+ return factory
+ }
+}
+
+// NewSharedInformerFactory constructs a new instance of sharedInformerFactory for all namespaces.
+func NewSharedInformerFactory(client versioned.Interface, defaultResync time.Duration) SharedInformerFactory {
+ return NewSharedInformerFactoryWithOptions(client, defaultResync)
+}
+
+// NewFilteredSharedInformerFactory constructs a new instance of sharedInformerFactory.
+// Listers obtained via this SharedInformerFactory will be subject to the same filters
+// as specified here.
+// Deprecated: Please use NewSharedInformerFactoryWithOptions instead
+func NewFilteredSharedInformerFactory(client versioned.Interface, defaultResync time.Duration, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) SharedInformerFactory {
+ return NewSharedInformerFactoryWithOptions(client, defaultResync, WithNamespace(namespace), WithTweakListOptions(tweakListOptions))
+}
+
+// NewSharedInformerFactoryWithOptions constructs a new instance of a SharedInformerFactory with additional options.
+func NewSharedInformerFactoryWithOptions(client versioned.Interface, defaultResync time.Duration, options ...SharedInformerOption) SharedInformerFactory {
+ factory := &sharedInformerFactory{
+ client: client,
+ namespace: v1.NamespaceAll,
+ defaultResync: defaultResync,
+ informers: make(map[reflect.Type]cache.SharedIndexInformer),
+ startedInformers: make(map[reflect.Type]bool),
+ customResync: make(map[reflect.Type]time.Duration),
+ }
+
+ // Apply all options
+ for _, opt := range options {
+ factory = opt(factory)
+ }
+
+ return factory
+}
+
+func (f *sharedInformerFactory) Start(stopCh <-chan struct{}) {
+ f.lock.Lock()
+ defer f.lock.Unlock()
+
+ if f.shuttingDown {
+ return
+ }
+
+ for informerType, informer := range f.informers {
+ if !f.startedInformers[informerType] {
+ f.wg.Add(1)
+ // We need a new variable in each loop iteration,
+ // otherwise the goroutine would use the loop variable
+ // and that keeps changing.
+ informer := informer
+ go func() {
+ defer f.wg.Done()
+ informer.Run(stopCh)
+ }()
+ f.startedInformers[informerType] = true
+ }
+ }
+}
+
+func (f *sharedInformerFactory) Shutdown() {
+ f.lock.Lock()
+ f.shuttingDown = true
+ f.lock.Unlock()
+
+ // Will return immediately if there is nothing to wait for.
+ f.wg.Wait()
+}
+
+func (f *sharedInformerFactory) WaitForCacheSync(stopCh <-chan struct{}) map[reflect.Type]bool {
+ informers := func() map[reflect.Type]cache.SharedIndexInformer {
+ f.lock.Lock()
+ defer f.lock.Unlock()
+
+ informers := map[reflect.Type]cache.SharedIndexInformer{}
+ for informerType, informer := range f.informers {
+ if f.startedInformers[informerType] {
+ informers[informerType] = informer
+ }
+ }
+ return informers
+ }()
+
+ res := map[reflect.Type]bool{}
+ for informType, informer := range informers {
+ res[informType] = cache.WaitForCacheSync(stopCh, informer.HasSynced)
+ }
+ return res
+}
+
+// InformerFor returns the SharedIndexInformer for obj using an internal
+// client.
+func (f *sharedInformerFactory) InformerFor(obj runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer {
+ f.lock.Lock()
+ defer f.lock.Unlock()
+
+ informerType := reflect.TypeOf(obj)
+ informer, exists := f.informers[informerType]
+ if exists {
+ return informer
+ }
+
+ resyncPeriod, exists := f.customResync[informerType]
+ if !exists {
+ resyncPeriod = f.defaultResync
+ }
+
+ informer = newFunc(f.client, resyncPeriod)
+ informer.SetTransform(f.transform)
+ f.informers[informerType] = informer
+
+ return informer
+}
+
+// SharedInformerFactory provides shared informers for resources in all known
+// API group versions.
+//
+// It is typically used like this:
+//
+// ctx, cancel := context.Background()
+// defer cancel()
+// factory := NewSharedInformerFactory(client, resyncPeriod)
+// defer factory.WaitForStop() // Returns immediately if nothing was started.
+// genericInformer := factory.ForResource(resource)
+// typedInformer := factory.SomeAPIGroup().V1().SomeType()
+// factory.Start(ctx.Done()) // Start processing these informers.
+// synced := factory.WaitForCacheSync(ctx.Done())
+// for v, ok := range synced {
+// if !ok {
+// fmt.Fprintf(os.Stderr, "caches failed to sync: %v", v)
+// return
+// }
+// }
+//
+// // Creating informers can also be created after Start, but then
+// // Start must be called again:
+// anotherGenericInformer := factory.ForResource(resource)
+// factory.Start(ctx.Done())
+type SharedInformerFactory interface {
+ internalinterfaces.SharedInformerFactory
+
+ // Start initializes all requested informers. They are handled in goroutines
+ // which run until the stop channel gets closed.
+ // Warning: Start does not block. When run in a go-routine, it will race with a later WaitForCacheSync.
+ Start(stopCh <-chan struct{})
+
+ // Shutdown marks a factory as shutting down. At that point no new
+ // informers can be started anymore and Start will return without
+ // doing anything.
+ //
+ // In addition, Shutdown blocks until all goroutines have terminated. For that
+ // to happen, the close channel(s) that they were started with must be closed,
+ // either before Shutdown gets called or while it is waiting.
+ //
+ // Shutdown may be called multiple times, even concurrently. All such calls will
+ // block until all goroutines have terminated.
+ Shutdown()
+
+ // WaitForCacheSync blocks until all started informers' caches were synced
+ // or the stop channel gets closed.
+ WaitForCacheSync(stopCh <-chan struct{}) map[reflect.Type]bool
+
+ // ForResource gives generic access to a shared informer of the matching type.
+ ForResource(resource schema.GroupVersionResource) (GenericInformer, error)
+
+ // InformerFor returns the SharedIndexInformer for obj using an internal
+ // client.
+ InformerFor(obj runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer
+
+ Apiextensions() apiextensions.Interface
+}
+
+func (f *sharedInformerFactory) Apiextensions() apiextensions.Interface {
+ return apiextensions.New(f, f.namespace, f.tweakListOptions)
+}
diff --git a/apiextensions/informers/externalversions/generic.go b/apiextensions/informers/externalversions/generic.go
new file mode 100644
index 0000000000..abcda447d8
--- /dev/null
+++ b/apiextensions/informers/externalversions/generic.go
@@ -0,0 +1,46 @@
+// Code generated by informer-gen. DO NOT EDIT.
+
+package externalversions
+
+import (
+ fmt "fmt"
+
+ v1alpha1 "github.com/openshift/api/apiextensions/v1alpha1"
+ schema "k8s.io/apimachinery/pkg/runtime/schema"
+ cache "k8s.io/client-go/tools/cache"
+)
+
+// GenericInformer is type of SharedIndexInformer which will locate and delegate to other
+// sharedInformers based on type
+type GenericInformer interface {
+ Informer() cache.SharedIndexInformer
+ Lister() cache.GenericLister
+}
+
+type genericInformer struct {
+ informer cache.SharedIndexInformer
+ resource schema.GroupResource
+}
+
+// Informer returns the SharedIndexInformer.
+func (f *genericInformer) Informer() cache.SharedIndexInformer {
+ return f.informer
+}
+
+// Lister returns the GenericLister.
+func (f *genericInformer) Lister() cache.GenericLister {
+ return cache.NewGenericLister(f.Informer().GetIndexer(), f.resource)
+}
+
+// ForResource gives generic access to a shared informer of the matching type
+// TODO extend this to unknown resources with a client pool
+func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource) (GenericInformer, error) {
+ switch resource {
+ // Group=apiextensions.openshift.io, Version=v1alpha1
+ case v1alpha1.SchemeGroupVersion.WithResource("compatibilityrequirements"):
+ return &genericInformer{resource: resource.GroupResource(), informer: f.Apiextensions().V1alpha1().CompatibilityRequirements().Informer()}, nil
+
+ }
+
+ return nil, fmt.Errorf("no informer found for %v", resource)
+}
diff --git a/apiextensions/informers/externalversions/internalinterfaces/factory_interfaces.go b/apiextensions/informers/externalversions/internalinterfaces/factory_interfaces.go
new file mode 100644
index 0000000000..07d0408b49
--- /dev/null
+++ b/apiextensions/informers/externalversions/internalinterfaces/factory_interfaces.go
@@ -0,0 +1,24 @@
+// Code generated by informer-gen. DO NOT EDIT.
+
+package internalinterfaces
+
+import (
+ time "time"
+
+ versioned "github.com/openshift/client-go/apiextensions/clientset/versioned"
+ v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ runtime "k8s.io/apimachinery/pkg/runtime"
+ cache "k8s.io/client-go/tools/cache"
+)
+
+// NewInformerFunc takes versioned.Interface and time.Duration to return a SharedIndexInformer.
+type NewInformerFunc func(versioned.Interface, time.Duration) cache.SharedIndexInformer
+
+// SharedInformerFactory a small interface to allow for adding an informer without an import cycle
+type SharedInformerFactory interface {
+ Start(stopCh <-chan struct{})
+ InformerFor(obj runtime.Object, newFunc NewInformerFunc) cache.SharedIndexInformer
+}
+
+// TweakListOptionsFunc is a function that transforms a v1.ListOptions.
+type TweakListOptionsFunc func(*v1.ListOptions)
diff --git a/apiextensions/listers/apiextensions/v1alpha1/compatibilityrequirement.go b/apiextensions/listers/apiextensions/v1alpha1/compatibilityrequirement.go
new file mode 100644
index 0000000000..1d3edb3d04
--- /dev/null
+++ b/apiextensions/listers/apiextensions/v1alpha1/compatibilityrequirement.go
@@ -0,0 +1,32 @@
+// Code generated by lister-gen. DO NOT EDIT.
+
+package v1alpha1
+
+import (
+ apiextensionsv1alpha1 "github.com/openshift/api/apiextensions/v1alpha1"
+ labels "k8s.io/apimachinery/pkg/labels"
+ listers "k8s.io/client-go/listers"
+ cache "k8s.io/client-go/tools/cache"
+)
+
+// CompatibilityRequirementLister helps list CompatibilityRequirements.
+// All objects returned here must be treated as read-only.
+type CompatibilityRequirementLister interface {
+ // List lists all CompatibilityRequirements in the indexer.
+ // Objects returned here must be treated as read-only.
+ List(selector labels.Selector) (ret []*apiextensionsv1alpha1.CompatibilityRequirement, err error)
+ // Get retrieves the CompatibilityRequirement from the index for a given name.
+ // Objects returned here must be treated as read-only.
+ Get(name string) (*apiextensionsv1alpha1.CompatibilityRequirement, error)
+ CompatibilityRequirementListerExpansion
+}
+
+// compatibilityRequirementLister implements the CompatibilityRequirementLister interface.
+type compatibilityRequirementLister struct {
+ listers.ResourceIndexer[*apiextensionsv1alpha1.CompatibilityRequirement]
+}
+
+// NewCompatibilityRequirementLister returns a new CompatibilityRequirementLister.
+func NewCompatibilityRequirementLister(indexer cache.Indexer) CompatibilityRequirementLister {
+ return &compatibilityRequirementLister{listers.New[*apiextensionsv1alpha1.CompatibilityRequirement](indexer, apiextensionsv1alpha1.Resource("compatibilityrequirement"))}
+}
diff --git a/apiextensions/listers/apiextensions/v1alpha1/expansion_generated.go b/apiextensions/listers/apiextensions/v1alpha1/expansion_generated.go
new file mode 100644
index 0000000000..d9265f4a7d
--- /dev/null
+++ b/apiextensions/listers/apiextensions/v1alpha1/expansion_generated.go
@@ -0,0 +1,7 @@
+// Code generated by lister-gen. DO NOT EDIT.
+
+package v1alpha1
+
+// CompatibilityRequirementListerExpansion allows custom methods to be added to
+// CompatibilityRequirementLister.
+type CompatibilityRequirementListerExpansion interface{}
diff --git a/go.mod b/go.mod
index b673dfbeb5..adb24b44f6 100644
--- a/go.mod
+++ b/go.mod
@@ -3,7 +3,7 @@ module github.com/openshift/client-go
go 1.24.0
require (
- github.com/openshift/api v0.0.0-20251204164930-cd2e40c5883a
+ github.com/openshift/api v0.0.0-20251222154221-d4b2fef98af2
github.com/openshift/build-machinery-go v0.0.0-20250530140348-dc5b2804eeee
github.com/spf13/pflag v1.0.6
k8s.io/api v0.34.1
diff --git a/go.sum b/go.sum
index 96df6fd37f..4051f5cbd7 100644
--- a/go.sum
+++ b/go.sum
@@ -57,8 +57,8 @@ 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-20251204164930-cd2e40c5883a h1:v/W0YkbADTv9bfubadSNIOftvDIA/JwN8zaK79K5Wyc=
-github.com/openshift/api v0.0.0-20251204164930-cd2e40c5883a/go.mod h1:d5uzF0YN2nQQFA0jIEWzzOZ+edmo6wzlGLvx5Fhz4uY=
+github.com/openshift/api v0.0.0-20251222154221-d4b2fef98af2 h1:q7fp/9fnJuXWCzpBzbHZne6aMLGYPKhzPy1uULfaJqA=
+github.com/openshift/api v0.0.0-20251222154221-d4b2fef98af2/go.mod h1:d5uzF0YN2nQQFA0jIEWzzOZ+edmo6wzlGLvx5Fhz4uY=
github.com/openshift/build-machinery-go v0.0.0-20250530140348-dc5b2804eeee h1:+Sp5GGnjHDhT/a/nQ1xdp43UscBMr7G5wxsYotyhzJ4=
github.com/openshift/build-machinery-go v0.0.0-20250530140348-dc5b2804eeee/go.mod h1:8jcm8UPtg2mCAsxfqKil1xrmRMI3a+XU2TZ9fF8A7TE=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
diff --git a/hack/update-codegen.sh b/hack/update-codegen.sh
index 42c275832f..a976a6a0af 100755
--- a/hack/update-codegen.sh
+++ b/hack/update-codegen.sh
@@ -14,7 +14,7 @@ CODEGEN_PKG=$(go list -f '{{.Dir}}' k8s.io/code-generator)
source "${CODEGEN_PKG}/kube_codegen.sh"
-for group in apiserver apps authorization build cloudnetwork config console helm image imageregistry insights machine monitoring network oauth operator operatorcontrolplane operatoringress project quota route samples security securityinternal servicecertsigner sharedresource template user; do
+for group in apiextensions apiserver apps authorization build cloudnetwork config console helm image imageregistry insights machine monitoring network oauth operator operatorcontrolplane operatoringress project quota route samples security securityinternal servicecertsigner sharedresource template user; do
echo "# Processing ${group} ..."
kube::codegen::gen_client \
--with-watch \
diff --git a/vendor/github.com/openshift/api/.golangci.yaml b/vendor/github.com/openshift/api/.golangci.yaml
index 8da22c5e51..516339b488 100644
--- a/vendor/github.com/openshift/api/.golangci.yaml
+++ b/vendor/github.com/openshift/api/.golangci.yaml
@@ -17,6 +17,8 @@ linters:
- nobools
- nomaps
- statussubresource
+ disable:
+ - statusoptional # This is legacy and not something we currently recommend.
lintersConfig:
conditions:
isFirstField: Warn
diff --git a/vendor/github.com/openshift/api/apiextensions/install.go b/vendor/github.com/openshift/api/apiextensions/install.go
new file mode 100644
index 0000000000..adaca4d6ba
--- /dev/null
+++ b/vendor/github.com/openshift/api/apiextensions/install.go
@@ -0,0 +1,26 @@
+package apiextensions
+
+import (
+ "k8s.io/apimachinery/pkg/runtime"
+ "k8s.io/apimachinery/pkg/runtime/schema"
+
+ apiextensionsv1alpha1 "github.com/openshift/api/apiextensions/v1alpha1"
+)
+
+const (
+ GroupName = "apiextensions.openshift.io"
+)
+
+var (
+ schemeBuilder = runtime.NewSchemeBuilder(apiextensionsv1alpha1.Install)
+ // Install is a function which adds every version of this group to a scheme
+ Install = schemeBuilder.AddToScheme
+)
+
+func Resource(resource string) schema.GroupResource {
+ return schema.GroupResource{Group: GroupName, Resource: resource}
+}
+
+func Kind(kind string) schema.GroupKind {
+ return schema.GroupKind{Group: GroupName, Kind: kind}
+}
diff --git a/vendor/github.com/openshift/api/apiextensions/v1alpha1/Makefile b/vendor/github.com/openshift/api/apiextensions/v1alpha1/Makefile
new file mode 100644
index 0000000000..6cf1a197f7
--- /dev/null
+++ b/vendor/github.com/openshift/api/apiextensions/v1alpha1/Makefile
@@ -0,0 +1,3 @@
+.PHONY: test
+test:
+ make -C ../../tests test GINKGO_EXTRA_ARGS=--focus="apiextensions.openshift.io/v1alpha1"
diff --git a/vendor/github.com/openshift/api/apiextensions/v1alpha1/doc.go b/vendor/github.com/openshift/api/apiextensions/v1alpha1/doc.go
new file mode 100644
index 0000000000..e5d665fbbc
--- /dev/null
+++ b/vendor/github.com/openshift/api/apiextensions/v1alpha1/doc.go
@@ -0,0 +1,8 @@
+// +k8s:deepcopy-gen=package,register
+// +k8s:defaulter-gen=TypeMeta
+// +k8s:openapi-gen=true
+// +openshift:featuregated-schema-gen=true
+
+// +groupName=apiextensions.openshift.io
+// Package v1alpha1 is the v1alpha1 version of the API.
+package v1alpha1
diff --git a/vendor/github.com/openshift/api/apiextensions/v1alpha1/register.go b/vendor/github.com/openshift/api/apiextensions/v1alpha1/register.go
new file mode 100644
index 0000000000..a2f99e2a50
--- /dev/null
+++ b/vendor/github.com/openshift/api/apiextensions/v1alpha1/register.go
@@ -0,0 +1,39 @@
+package v1alpha1
+
+import (
+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ "k8s.io/apimachinery/pkg/runtime"
+ "k8s.io/apimachinery/pkg/runtime/schema"
+)
+
+var (
+ GroupName = "apiextensions.openshift.io"
+ GroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
+ schemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
+ // Install is a function which adds this version to a scheme
+ Install = schemeBuilder.AddToScheme
+
+ // SchemeGroupVersion generated code relies on this name
+ // Deprecated
+ SchemeGroupVersion = GroupVersion
+ // AddToScheme exists solely to keep the old generators creating valid code
+ // DEPRECATED
+ AddToScheme = schemeBuilder.AddToScheme
+)
+
+// Resource generated code relies on this being here, but it logically belongs to the group
+// DEPRECATED
+func Resource(resource string) schema.GroupResource {
+ return schema.GroupResource{Group: GroupName, Resource: resource}
+}
+
+func addKnownTypes(scheme *runtime.Scheme) error {
+ metav1.AddToGroupVersion(scheme, GroupVersion)
+
+ scheme.AddKnownTypes(GroupVersion,
+ &CompatibilityRequirement{},
+ &CompatibilityRequirementList{},
+ )
+
+ return nil
+}
diff --git a/vendor/github.com/openshift/api/apiextensions/v1alpha1/types_compatibilityrequirement.go b/vendor/github.com/openshift/api/apiextensions/v1alpha1/types_compatibilityrequirement.go
new file mode 100644
index 0000000000..46e211cd55
--- /dev/null
+++ b/vendor/github.com/openshift/api/apiextensions/v1alpha1/types_compatibilityrequirement.go
@@ -0,0 +1,387 @@
+package v1alpha1
+
+import (
+ admissionregistrationv1 "k8s.io/api/admissionregistration/v1"
+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+)
+
+// +genclient
+// +genclient:nonNamespaced
+// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
+
+// CompatibilityRequirement expresses a set of requirements on a target CRD.
+// It is used to ensure compatibility between different actors using the same
+// CRD.
+//
+// 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.
+// +openshift:compatibility-gen:level=4
+// +openshift:file-pattern=cvoRunLevel=0000_20,operatorName=crd-compatibility-checker,operatorOrdering=01
+// +openshift:enable:FeatureGate=CRDCompatibilityRequirementOperator
+// +kubebuilder:object:root=true
+// +kubebuilder:subresource:status
+// +kubebuilder:resource:path=compatibilityrequirements,scope=Cluster
+// +openshift:api-approved.openshift.io=https://github.com/openshift/api/pull/2479
+type CompatibilityRequirement struct {
+ metav1.TypeMeta `json:",inline"`
+
+ // metadata is the standard object's metadata.
+ // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+ // +required
+ metav1.ObjectMeta `json:"metadata,omitzero"`
+
+ // spec is the specification of the desired behavior of the Compatibility Requirement.
+ // +required
+ Spec CompatibilityRequirementSpec `json:"spec,omitzero"`
+
+ // status is the most recently observed status of the Compatibility Requirement.
+ // +optional
+ Status CompatibilityRequirementStatus `json:"status,omitzero"`
+}
+
+// CompatibilityRequirementSpec is the specification of the desired behavior of the Compatibility Requirement.
+type CompatibilityRequirementSpec struct {
+ // compatibilitySchema defines the schema used by
+ // customResourceDefinitionSchemaValidation and objectSchemaValidation.
+ // This field is required.
+ // +required
+ CompatibilitySchema CompatibilitySchema `json:"compatibilitySchema,omitzero"`
+
+ // customResourceDefinitionSchemaValidation ensures that updates to the
+ // installed CRD are compatible with this compatibility requirement. If not
+ // specified, admission of the target CRD will not be validated.
+ // This field is optional.
+ // +optional
+ CustomResourceDefinitionSchemaValidation CustomResourceDefinitionSchemaValidation `json:"customResourceDefinitionSchemaValidation,omitzero"`
+
+ // objectSchemaValidation ensures that matching resources conform to
+ // compatibilitySchema. If not specified, admission of matching resources
+ // will not be validated.
+ // This field is optional.
+ // +optional
+ ObjectSchemaValidation ObjectSchemaValidation `json:"objectSchemaValidation,omitzero"`
+}
+
+// CRDDataType indicates the type of the CRD data.
+// +kubebuilder:validation:Enum=YAML
+type CRDDataType string
+
+const (
+ // CRDDataTypeYAML indicates that the CRD data is in YAML format.
+ CRDDataTypeYAML CRDDataType = "YAML"
+)
+
+// CRDData contains the complete definition of a CRD.
+type CRDData struct {
+ // type indicates the type of the CRD data. The only supported type is "YAML".
+ // This field is required.
+ // +required
+ Type CRDDataType `json:"type,omitempty"`
+
+ // data contains the complete definition of the CRD. This field must be in
+ // the format specified by the type field. It may not be longer than 1572864
+ // characters.
+ // This field is required.
+ // +kubebuilder:validation:MinLength=1
+ // +kubebuilder:validation:MaxLength=1572864
+ // +required
+ Data string `json:"data,omitempty"`
+}
+
+// APIVersionSelectionType specifies a method for automatically selecting a
+// set of API versions to require.
+// +kubebuilder:validation:Enum=StorageOnly;AllServed
+type APIVersionSelectionType string
+
+const (
+ APIVersionSetTypeStorageOnly APIVersionSelectionType = "StorageOnly"
+ APIVersionSetTypeAllServed APIVersionSelectionType = "AllServed"
+)
+
+// APIVersionString is a string representing a kubernetes API version.
+// +kubebuilder:validation:MinLength=1
+// +kubebuilder:validation:MaxLength=63
+// +kubebuilder:validation:XValidation:rule="!format.dns1035Label().validate(self).hasValue()",message="It must contain only lower-case alphanumeric characters and hyphens and must start with an alphabetic character and end with an alphanumeric character"
+type APIVersionString string
+
+// APIVersions specifies a set of API versions of a CRD.
+// +kubebuilder:validation:XValidation:rule="self.defaultSelection != 'AllServed' || !has(self.additionalVersions)",message="additionalVersions may not be defined when defaultSelection is 'AllServed'"
+type APIVersions struct {
+ // defaultSelection specifies a method for automatically selecting a set of
+ // versions to require.
+ //
+ // Valid options are StorageOnly and AllServed.
+ // When set to StorageOnly, only the storage version is selected for
+ // compatibility assessment.
+ // When set to AllServed, all served versions are selected for compatibility
+ // assessment.
+ //
+ // This field is required.
+ // +required
+ DefaultSelection APIVersionSelectionType `json:"defaultSelection,omitempty"`
+
+ // additionalVersions specifies a set api versions to require in addition to
+ // the default selection. It is explicitly permitted to specify a version in
+ // additionalVersions which was also selected by the default selection. The
+ // selections will be merged and deduplicated.
+ //
+ // Each item must be at most 63 characters in length, and must must consist
+ // of only lowercase alphanumeric characters and hyphens, and must start
+ // with an alphabetic character and end with an alphanumeric character.// with an alphabetic character and end with an alphanumeric character.
+ // At most 32 additional versions may be specified.
+ //
+ // +kubebuilder:validation:MinItems=1
+ // +kubebuilder:validation:MaxItems=32
+ // +listType=set
+ // +optional
+ AdditionalVersions []APIVersionString `json:"additionalVersions,omitempty"`
+}
+
+// APIExcludedField describes a field in the schema which will not be validated by
+// crdSchemaValidation or objectSchemaValidation.
+type APIExcludedField struct {
+ // path is the path to the field in the schema.
+ // Paths are dot-separated field names (e.g., "fieldA.fieldB.fieldC") representing nested object fields.
+ // If part of the path is a slice (e.g., "status.conditions") the remaining path is applied to all items in the slice
+ // (e.g., "status.conditions.lastTransitionTimestamp").
+ // Each field name must be a valid Kubernetes CRD field name: start with a letter, contain only
+ // letters, digits, and underscores, and be between 1 and 63 characters in length.
+ // A path may contain at most 16 fields.
+ // +kubebuilder:validation:MinLength=1
+ // +kubebuilder:validation:MaxLength=1023
+ // +kubebuilder:validation:XValidation:rule="self.split('.').size() <= 16",message="There may be at most 16 fields in the path."
+ // +kubebuilder:validation:XValidation:rule="self.split('.', 16).all(f, f.matches('^[a-zA-Z][a-zA-Z0-9_]{0,62}$'))",message="path must be dot-separated field names, each starting with a letter and containing only letters, digits, and underscores not exceeding 63 characters. There may be at most 16 fields in the path."
+ // +required
+ Path string `json:"path,omitempty"`
+
+ // versions are the API versions the field is excluded from.
+ // When not specified, the field is excluded from all versions.
+ //
+ // Each item must be at most 63 characters in length, and must must
+ // consist of only lowercase alphanumeric characters and hyphens, and must
+ // start with an alphabetic character and end with an alphanumeric
+ // character.
+ // At most 32 versions may be specified.
+ //
+ // +kubebuilder:validation:MinItems=1
+ // +kubebuilder:validation:MaxItems=32
+ // +listType=set
+ // +optional
+ Versions []APIVersionString `json:"versions,omitempty"`
+}
+
+// CompatibilitySchema defines the schema used by crdSchemaValidation and objectSchemaValidation.
+type CompatibilitySchema struct {
+ // customResourceDefinition contains the complete definition of the CRD for schema and object validation purposes.
+ // This field is required.
+ // +required
+ CustomResourceDefinition CRDData `json:"customResourceDefinition,omitzero"`
+
+ // requiredVersions specifies a subset of the CRD's API versions which will be asserted for compatibility.
+ // This field is required.
+ // +required
+ RequiredVersions APIVersions `json:"requiredVersions,omitzero"`
+
+ // excludedFields is a set of fields in the schema which will not be validated by
+ // crdSchemaValidation or objectSchemaValidation.
+ // The list may contain at most 64 fields.
+ // When not specified, all fields in the schema will be validated.
+ // +kubebuilder:validation:MinItems=1
+ // +kubebuilder:validation:MaxItems=64
+ // +listType=atomic
+ // +optional
+ ExcludedFields []APIExcludedField `json:"excludedFields,omitempty"`
+}
+
+// CustomResourceDefinitionSchemaValidation ensures that updates to the installed CRD are compatible with this compatibility requirement.
+type CustomResourceDefinitionSchemaValidation struct {
+ // action determines whether violations are rejected (Deny) or admitted with an API warning (Warn).
+ // Valid options are Deny and Warn.
+ // When set to Deny, incompatible CRDs will be rejected and not admitted to the cluster.
+ // When set to Warn, incompatible CRDs will be allowed but a warning will be generated in the API response.
+ // This field is required.
+ // +required
+ Action CRDAdmitAction `json:"action,omitempty"`
+}
+
+// ObjectSchemaValidation ensures that matching objects conform to the compatibilitySchema.
+type ObjectSchemaValidation struct {
+ // action determines whether violations are rejected (Deny) or admitted with an API warning (Warn).
+ // Valid options are Deny and Warn.
+ // When set to Deny, incompatible Objects will be rejected and not admitted to the cluster.
+ // When set to Warn, incompatible Objects will be allowed but a warning will be generated in the API response.
+ // This field is required.
+ // +required
+ Action CRDAdmitAction `json:"action,omitempty"`
+
+ // namespaceSelector defines a label selector for namespaces. If defined,
+ // only objects in a namespace with matching labels will be subject to
+ // validation. When not specified, objects for validation will not be
+ // filtered by namespace.
+ // +kubebuilder:validation:XValidation:rule="size(self.matchLabels) > 0 || size(self.matchExpressions) > 0",message="must have at least one of matchLabels or matchExpressions when specified"
+ // +optional
+ NamespaceSelector metav1.LabelSelector `json:"namespaceSelector,omitempty"`
+ // objectSelector defines a label selector for objects. If defined, only
+ // objects with matching labels will be subject to validation. When not
+ // specified, objects for validation will not be filtered by label.
+ // +kubebuilder:validation:XValidation:rule="size(self.matchLabels) > 0 || size(self.matchExpressions) > 0",message="must have at least one of matchLabels or matchExpressions when specified"
+ // +optional
+ ObjectSelector metav1.LabelSelector `json:"objectSelector,omitempty"`
+
+ // matchConditions defines the matchConditions field of the resulting ValidatingWebhookConfiguration.
+ // When present, must contain between 1 and 64 match conditions.
+ // When not specified, the webhook will match all requests according to its other selectors.
+ // +listType=map
+ // +listMapKey=name
+ // +kubebuilder:validation:MinItems=1
+ // +kubebuilder:validation:MaxItems=64
+ // +optional
+ MatchConditions []admissionregistrationv1.MatchCondition `json:"matchConditions,omitempty"`
+}
+
+// CRDAdmitAction determines the action taken when a CRD is not compatible.
+// +kubebuilder:validation:Enum=Deny;Warn
+// +enum
+type CRDAdmitAction string
+
+const (
+ // CRDAdmitActionDeny means that incompatible CRDs will be rejected.
+ CRDAdmitActionDeny CRDAdmitAction = "Deny"
+
+ // CRDAdmitActionWarn means that incompatible CRDs will be allowed but a warning will be generated.
+ CRDAdmitActionWarn CRDAdmitAction = "Warn"
+)
+
+// CompatibilityRequirement's Progressing condition and corresponding reasons.
+const (
+ // CompatibilityRequirementProgressing is false if the spec has been
+ // completely reconciled against the condition's observed generation.
+ // True indicates that reconciliation is still in progress and the current status does not represent
+ // a stable state. Progressing false with an error reason indicates that the object cannot be reconciled.
+ CompatibilityRequirementProgressing string = "Progressing"
+
+ // CompatibilityRequirementConfigurationErrorReason indicates that
+ // reconciliation cannot progress due to an invalid spec. The controller
+ // will not reconcile this object again until the spec is updated.
+ CompatibilityRequirementConfigurationErrorReason string = "ConfigurationError"
+
+ // CompatibilityRequirementTransientErrorReason indicates that
+ // reconciliation failed due to an error that can be retried.
+ CompatibilityRequirementTransientErrorReason string = "TransientError"
+
+ // CompatibilityRequirementUpToDateReason surfaces when reconciliation
+ // completed successfully for the condition's observed generation.
+ CompatibilityRequirementUpToDateReason string = "UpToDate"
+)
+
+// CompatibilityRequirement's Admitted condition and corresponding reasons.
+const (
+ // CompatibilityRequirementAdmitted is true if the requirement has been configured in the validating webhook,
+ // otherwise false.
+ CompatibilityRequirementAdmitted string = "Admitted"
+
+ // CompatibilityRequirementAdmittedReason surfaces when the requirement has been configured in the validating webhook.
+ CompatibilityRequirementAdmittedReason string = "Admitted"
+
+ // CompatibilityRequirementNotAdmittedReason surfaces when the requirement has not been configured in the validating webhook.
+ CompatibilityRequirementNotAdmittedReason string = "NotAdmitted"
+)
+
+// CompatibilityRequirement's Compatible condition and corresponding reasons.
+const (
+ // CompatibilityRequirementCompatible is true if the observed CRD is compatible with the requirement,
+ // otherwise false. Note that Compatible may be false when adding a new requirement which the existing
+ // CRD does not meet.
+ CompatibilityRequirementCompatible string = "Compatible"
+
+ // CompatibilityRequirementRequirementsNotMetReason surfaces when a CRD exists, and it is not compatible with this requirement.
+ CompatibilityRequirementRequirementsNotMetReason string = "RequirementsNotMet"
+
+ // CompatibilityRequirementCRDNotFoundReason surfaces when the referenced CRD does not exist.
+ CompatibilityRequirementCRDNotFoundReason string = "CRDNotFound"
+
+ // CompatibilityRequirementCompatibleWithWarningsReason surfaces when the CRD exists and is compatible with this requirement, but Message contains one or more warning messages.
+ CompatibilityRequirementCompatibleWithWarningsReason string = "CompatibleWithWarnings"
+
+ // CompatibilityRequirementCompatibleReason surfaces when the CRD exists and is compatible with this requirement.
+ CompatibilityRequirementCompatibleReason string = "Compatible"
+)
+
+// CompatibilityRequirementStatus defines the observed status of the Compatibility Requirement.
+// +kubebuilder:validation:MinProperties=1
+// +kubebuilder:validation:XValidation:rule="!has(oldSelf.crdName) || has(self.crdName) && oldSelf.crdName == self.crdName",message="crdName cannot be changed once set"
+type CompatibilityRequirementStatus struct {
+ // conditions is a list of conditions and their status.
+ // Known condition types are Progressing, Admitted, and Compatible.
+ //
+ // The Progressing condition indicates if reconciliation of a CompatibilityRequirement is still
+ // progressing or has finished.
+ //
+ // The Admitted condition indicates if the validating webhook has been configured.
+ //
+ // The Compatible condition indicates if the observed CRD is compatible with the requirement.
+ //
+ // +optional
+ // +listType=map
+ // +listMapKey=type
+ // +kubebuilder:validation:MinItems=1
+ // +kubebuilder:validation:MaxItems=32
+ Conditions []metav1.Condition `json:"conditions,omitempty"`
+
+ // observedCRD documents the uid and generation of the CRD object when the current status was written.
+ // This field will be omitted if the target CRD does not exist or could not be retrieved.
+ // +optional
+ ObservedCRD ObservedCRD `json:"observedCRD,omitzero"`
+
+ // crdName is the name of the target CRD. The target CRD is not required to
+ // exist, as we may legitimately place requirements on it before it is
+ // created. The observed CRD is given in status.observedCRD, which will be
+ // empty if no CRD is observed.
+ // When present, must be between 1 and 253 characters and conform to RFC 1123 subdomain format:
+ // lowercase alphanumeric characters, '-' or '.', starting and ending with alphanumeric characters.
+ // When not specified, the requirement applies to any CRD name discovered from the compatibility schema.
+ // This field is optional. Once set, the value cannot be changed and must always remain set.
+ // +kubebuilder:validation:MinLength=1
+ // +kubebuilder:validation:MaxLength=253
+ // +kubebuilder:validation:XValidation:rule="!format.dns1123Subdomain().validate(self).hasValue()",message="a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character."
+ // +optional
+ CRDName string `json:"crdName,omitempty"`
+}
+
+// ObservedCRD contains information about the observed target CRD.
+// +kubebuilder:validation:XValidation:rule="oldSelf.uid != self.uid || self.generation >= oldSelf.generation",message="generation may only increase on the same CRD"
+type ObservedCRD struct {
+ // uid is the uid of the observed CRD.
+ // Must be a valid UUID consisting of lowercase hexadecimal digits in 5 hyphenated blocks (8-4-4-4-12 format).
+ // Length must be between 1 and 36 characters.
+ // +kubebuilder:validation:MinLength=1
+ // +kubebuilder:validation:MaxLength=36
+ // +kubebuilder:validation:Format=uuid
+ // +required
+ UID string `json:"uid,omitempty"`
+
+ // generation is the observed generation of the CRD.
+ // Must be a positive integer (minimum value of 1).
+ // +kubebuilder:validation:Minimum=1
+ // +required
+ Generation int64 `json:"generation,omitempty"`
+}
+
+// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
+
+// CompatibilityRequirementList is a collection of CompatibilityRequirements.
+//
+// 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.
+// +openshift:compatibility-gen:level=4
+type CompatibilityRequirementList struct {
+ metav1.TypeMeta `json:",inline"`
+
+ // metadata is the standard list's metadata.
+ // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+ // +optional
+ metav1.ListMeta `json:"metadata,omitzero"`
+
+ // items is a list of CompatibilityRequirements.
+ // +kubebuilder:validation:MaxItems=1000
+ // +optional
+ Items []CompatibilityRequirement `json:"items,omitempty"`
+}
diff --git a/vendor/github.com/openshift/api/apiextensions/v1alpha1/zz_generated.deepcopy.go b/vendor/github.com/openshift/api/apiextensions/v1alpha1/zz_generated.deepcopy.go
new file mode 100644
index 0000000000..a9ff411a88
--- /dev/null
+++ b/vendor/github.com/openshift/api/apiextensions/v1alpha1/zz_generated.deepcopy.go
@@ -0,0 +1,254 @@
+//go:build !ignore_autogenerated
+// +build !ignore_autogenerated
+
+// Code generated by codegen. DO NOT EDIT.
+
+package v1alpha1
+
+import (
+ admissionregistrationv1 "k8s.io/api/admissionregistration/v1"
+ v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ runtime "k8s.io/apimachinery/pkg/runtime"
+)
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *APIExcludedField) DeepCopyInto(out *APIExcludedField) {
+ *out = *in
+ if in.Versions != nil {
+ in, out := &in.Versions, &out.Versions
+ *out = make([]APIVersionString, len(*in))
+ copy(*out, *in)
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIExcludedField.
+func (in *APIExcludedField) DeepCopy() *APIExcludedField {
+ if in == nil {
+ return nil
+ }
+ out := new(APIExcludedField)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *APIVersions) DeepCopyInto(out *APIVersions) {
+ *out = *in
+ if in.AdditionalVersions != nil {
+ in, out := &in.AdditionalVersions, &out.AdditionalVersions
+ *out = make([]APIVersionString, len(*in))
+ copy(*out, *in)
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIVersions.
+func (in *APIVersions) DeepCopy() *APIVersions {
+ if in == nil {
+ return nil
+ }
+ out := new(APIVersions)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *CRDData) DeepCopyInto(out *CRDData) {
+ *out = *in
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CRDData.
+func (in *CRDData) DeepCopy() *CRDData {
+ if in == nil {
+ return nil
+ }
+ out := new(CRDData)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *CompatibilityRequirement) DeepCopyInto(out *CompatibilityRequirement) {
+ *out = *in
+ out.TypeMeta = in.TypeMeta
+ in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
+ in.Spec.DeepCopyInto(&out.Spec)
+ in.Status.DeepCopyInto(&out.Status)
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CompatibilityRequirement.
+func (in *CompatibilityRequirement) DeepCopy() *CompatibilityRequirement {
+ if in == nil {
+ return nil
+ }
+ out := new(CompatibilityRequirement)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
+func (in *CompatibilityRequirement) 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 *CompatibilityRequirementList) DeepCopyInto(out *CompatibilityRequirementList) {
+ *out = *in
+ out.TypeMeta = in.TypeMeta
+ in.ListMeta.DeepCopyInto(&out.ListMeta)
+ if in.Items != nil {
+ in, out := &in.Items, &out.Items
+ *out = make([]CompatibilityRequirement, len(*in))
+ for i := range *in {
+ (*in)[i].DeepCopyInto(&(*out)[i])
+ }
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CompatibilityRequirementList.
+func (in *CompatibilityRequirementList) DeepCopy() *CompatibilityRequirementList {
+ if in == nil {
+ return nil
+ }
+ out := new(CompatibilityRequirementList)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
+func (in *CompatibilityRequirementList) 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 *CompatibilityRequirementSpec) DeepCopyInto(out *CompatibilityRequirementSpec) {
+ *out = *in
+ in.CompatibilitySchema.DeepCopyInto(&out.CompatibilitySchema)
+ out.CustomResourceDefinitionSchemaValidation = in.CustomResourceDefinitionSchemaValidation
+ in.ObjectSchemaValidation.DeepCopyInto(&out.ObjectSchemaValidation)
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CompatibilityRequirementSpec.
+func (in *CompatibilityRequirementSpec) DeepCopy() *CompatibilityRequirementSpec {
+ if in == nil {
+ return nil
+ }
+ out := new(CompatibilityRequirementSpec)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *CompatibilityRequirementStatus) DeepCopyInto(out *CompatibilityRequirementStatus) {
+ *out = *in
+ if in.Conditions != nil {
+ in, out := &in.Conditions, &out.Conditions
+ *out = make([]v1.Condition, len(*in))
+ for i := range *in {
+ (*in)[i].DeepCopyInto(&(*out)[i])
+ }
+ }
+ out.ObservedCRD = in.ObservedCRD
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CompatibilityRequirementStatus.
+func (in *CompatibilityRequirementStatus) DeepCopy() *CompatibilityRequirementStatus {
+ if in == nil {
+ return nil
+ }
+ out := new(CompatibilityRequirementStatus)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *CompatibilitySchema) DeepCopyInto(out *CompatibilitySchema) {
+ *out = *in
+ out.CustomResourceDefinition = in.CustomResourceDefinition
+ in.RequiredVersions.DeepCopyInto(&out.RequiredVersions)
+ if in.ExcludedFields != nil {
+ in, out := &in.ExcludedFields, &out.ExcludedFields
+ *out = make([]APIExcludedField, len(*in))
+ for i := range *in {
+ (*in)[i].DeepCopyInto(&(*out)[i])
+ }
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CompatibilitySchema.
+func (in *CompatibilitySchema) DeepCopy() *CompatibilitySchema {
+ if in == nil {
+ return nil
+ }
+ out := new(CompatibilitySchema)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *CustomResourceDefinitionSchemaValidation) DeepCopyInto(out *CustomResourceDefinitionSchemaValidation) {
+ *out = *in
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomResourceDefinitionSchemaValidation.
+func (in *CustomResourceDefinitionSchemaValidation) DeepCopy() *CustomResourceDefinitionSchemaValidation {
+ if in == nil {
+ return nil
+ }
+ out := new(CustomResourceDefinitionSchemaValidation)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *ObjectSchemaValidation) DeepCopyInto(out *ObjectSchemaValidation) {
+ *out = *in
+ in.NamespaceSelector.DeepCopyInto(&out.NamespaceSelector)
+ in.ObjectSelector.DeepCopyInto(&out.ObjectSelector)
+ if in.MatchConditions != nil {
+ in, out := &in.MatchConditions, &out.MatchConditions
+ *out = make([]admissionregistrationv1.MatchCondition, len(*in))
+ copy(*out, *in)
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectSchemaValidation.
+func (in *ObjectSchemaValidation) DeepCopy() *ObjectSchemaValidation {
+ if in == nil {
+ return nil
+ }
+ out := new(ObjectSchemaValidation)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *ObservedCRD) DeepCopyInto(out *ObservedCRD) {
+ *out = *in
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObservedCRD.
+func (in *ObservedCRD) DeepCopy() *ObservedCRD {
+ if in == nil {
+ return nil
+ }
+ out := new(ObservedCRD)
+ in.DeepCopyInto(out)
+ return out
+}
diff --git a/vendor/github.com/openshift/api/apiextensions/v1alpha1/zz_generated.featuregated-crd-manifests.yaml b/vendor/github.com/openshift/api/apiextensions/v1alpha1/zz_generated.featuregated-crd-manifests.yaml
new file mode 100644
index 0000000000..319f2b335f
--- /dev/null
+++ b/vendor/github.com/openshift/api/apiextensions/v1alpha1/zz_generated.featuregated-crd-manifests.yaml
@@ -0,0 +1,23 @@
+compatibilityrequirements.apiextensions.openshift.io:
+ Annotations: {}
+ ApprovedPRNumber: https://github.com/openshift/api/pull/2479
+ CRDName: compatibilityrequirements.apiextensions.openshift.io
+ Capability: ""
+ Category: ""
+ FeatureGates:
+ - CRDCompatibilityRequirementOperator
+ FilenameOperatorName: crd-compatibility-checker
+ FilenameOperatorOrdering: "01"
+ FilenameRunLevel: "0000_20"
+ GroupName: apiextensions.openshift.io
+ HasStatus: true
+ KindName: CompatibilityRequirement
+ Labels: {}
+ PluralName: compatibilityrequirements
+ PrinterColumns: []
+ Scope: Cluster
+ ShortNames: null
+ TopLevelFeatureGates:
+ - CRDCompatibilityRequirementOperator
+ Version: v1alpha1
+
diff --git a/vendor/github.com/openshift/api/apiextensions/v1alpha1/zz_generated.swagger_doc_generated.go b/vendor/github.com/openshift/api/apiextensions/v1alpha1/zz_generated.swagger_doc_generated.go
new file mode 100644
index 0000000000..a9a4e707e7
--- /dev/null
+++ b/vendor/github.com/openshift/api/apiextensions/v1alpha1/zz_generated.swagger_doc_generated.go
@@ -0,0 +1,129 @@
+package v1alpha1
+
+// This file contains a collection of methods that can be used from go-restful to
+// generate Swagger API documentation for its models. Please read this PR for more
+// information on the implementation: https://github.com/emicklei/go-restful/pull/215
+//
+// TODOs are ignored from the parser (e.g. TODO(andronat):... || TODO:...) if and only if
+// they are on one line! For multiple line or blocks that you want to ignore use ---.
+// Any context after a --- is ignored.
+//
+// Those methods can be generated by using hack/update-swagger-docs.sh
+
+// AUTO-GENERATED FUNCTIONS START HERE
+var map_APIExcludedField = map[string]string{
+ "": "APIExcludedField describes a field in the schema which will not be validated by crdSchemaValidation or objectSchemaValidation.",
+ "path": "path is the path to the field in the schema. Paths are dot-separated field names (e.g., \"fieldA.fieldB.fieldC\") representing nested object fields. If part of the path is a slice (e.g., \"status.conditions\") the remaining path is applied to all items in the slice (e.g., \"status.conditions.lastTransitionTimestamp\"). Each field name must be a valid Kubernetes CRD field name: start with a letter, contain only letters, digits, and underscores, and be between 1 and 63 characters in length. A path may contain at most 16 fields.",
+ "versions": "versions are the API versions the field is excluded from. When not specified, the field is excluded from all versions.\n\nEach item must be at most 63 characters in length, and must must consist of only lowercase alphanumeric characters and hyphens, and must start with an alphabetic character and end with an alphanumeric character. At most 32 versions may be specified.",
+}
+
+func (APIExcludedField) SwaggerDoc() map[string]string {
+ return map_APIExcludedField
+}
+
+var map_APIVersions = map[string]string{
+ "": "APIVersions specifies a set of API versions of a CRD.",
+ "defaultSelection": "defaultSelection specifies a method for automatically selecting a set of versions to require.\n\nValid options are StorageOnly and AllServed. When set to StorageOnly, only the storage version is selected for compatibility assessment. When set to AllServed, all served versions are selected for compatibility assessment.\n\nThis field is required.",
+ "additionalVersions": "additionalVersions specifies a set api versions to require in addition to the default selection. It is explicitly permitted to specify a version in additionalVersions which was also selected by the default selection. The selections will be merged and deduplicated.\n\nEach item must be at most 63 characters in length, and must must consist of only lowercase alphanumeric characters and hyphens, and must start with an alphabetic character and end with an alphanumeric character.// with an alphabetic character and end with an alphanumeric character. At most 32 additional versions may be specified.",
+}
+
+func (APIVersions) SwaggerDoc() map[string]string {
+ return map_APIVersions
+}
+
+var map_CRDData = map[string]string{
+ "": "CRDData contains the complete definition of a CRD.",
+ "type": "type indicates the type of the CRD data. The only supported type is \"YAML\". This field is required.",
+ "data": "data contains the complete definition of the CRD. This field must be in the format specified by the type field. It may not be longer than 1572864 characters. This field is required.",
+}
+
+func (CRDData) SwaggerDoc() map[string]string {
+ return map_CRDData
+}
+
+var map_CompatibilityRequirement = map[string]string{
+ "": "CompatibilityRequirement expresses a set of requirements on a target CRD. It is used to ensure compatibility between different actors using the same CRD.\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.",
+ "metadata": "metadata is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
+ "spec": "spec is the specification of the desired behavior of the Compatibility Requirement.",
+ "status": "status is the most recently observed status of the Compatibility Requirement.",
+}
+
+func (CompatibilityRequirement) SwaggerDoc() map[string]string {
+ return map_CompatibilityRequirement
+}
+
+var map_CompatibilityRequirementList = map[string]string{
+ "": "CompatibilityRequirementList is a collection of CompatibilityRequirements.\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.",
+ "metadata": "metadata is the standard list's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
+ "items": "items is a list of CompatibilityRequirements.",
+}
+
+func (CompatibilityRequirementList) SwaggerDoc() map[string]string {
+ return map_CompatibilityRequirementList
+}
+
+var map_CompatibilityRequirementSpec = map[string]string{
+ "": "CompatibilityRequirementSpec is the specification of the desired behavior of the Compatibility Requirement.",
+ "compatibilitySchema": "compatibilitySchema defines the schema used by customResourceDefinitionSchemaValidation and objectSchemaValidation. This field is required.",
+ "customResourceDefinitionSchemaValidation": "customResourceDefinitionSchemaValidation ensures that updates to the installed CRD are compatible with this compatibility requirement. If not specified, admission of the target CRD will not be validated. This field is optional.",
+ "objectSchemaValidation": "objectSchemaValidation ensures that matching resources conform to compatibilitySchema. If not specified, admission of matching resources will not be validated. This field is optional.",
+}
+
+func (CompatibilityRequirementSpec) SwaggerDoc() map[string]string {
+ return map_CompatibilityRequirementSpec
+}
+
+var map_CompatibilityRequirementStatus = map[string]string{
+ "": "CompatibilityRequirementStatus defines the observed status of the Compatibility Requirement.",
+ "conditions": "conditions is a list of conditions and their status. Known condition types are Progressing, Admitted, and Compatible.\n\nThe Progressing condition indicates if reconciliation of a CompatibilityRequirement is still progressing or has finished.\n\nThe Admitted condition indicates if the validating webhook has been configured.\n\nThe Compatible condition indicates if the observed CRD is compatible with the requirement.",
+ "observedCRD": "observedCRD documents the uid and generation of the CRD object when the current status was written. This field will be omitted if the target CRD does not exist or could not be retrieved.",
+ "crdName": "crdName is the name of the target CRD. The target CRD is not required to exist, as we may legitimately place requirements on it before it is created. The observed CRD is given in status.observedCRD, which will be empty if no CRD is observed. When present, must be between 1 and 253 characters and conform to RFC 1123 subdomain format: lowercase alphanumeric characters, '-' or '.', starting and ending with alphanumeric characters. When not specified, the requirement applies to any CRD name discovered from the compatibility schema. This field is optional. Once set, the value cannot be changed and must always remain set.",
+}
+
+func (CompatibilityRequirementStatus) SwaggerDoc() map[string]string {
+ return map_CompatibilityRequirementStatus
+}
+
+var map_CompatibilitySchema = map[string]string{
+ "": "CompatibilitySchema defines the schema used by crdSchemaValidation and objectSchemaValidation.",
+ "customResourceDefinition": "customResourceDefinition contains the complete definition of the CRD for schema and object validation purposes. This field is required.",
+ "requiredVersions": "requiredVersions specifies a subset of the CRD's API versions which will be asserted for compatibility. This field is required.",
+ "excludedFields": "excludedFields is a set of fields in the schema which will not be validated by crdSchemaValidation or objectSchemaValidation. The list may contain at most 64 fields. When not specified, all fields in the schema will be validated.",
+}
+
+func (CompatibilitySchema) SwaggerDoc() map[string]string {
+ return map_CompatibilitySchema
+}
+
+var map_CustomResourceDefinitionSchemaValidation = map[string]string{
+ "": "CustomResourceDefinitionSchemaValidation ensures that updates to the installed CRD are compatible with this compatibility requirement.",
+ "action": "action determines whether violations are rejected (Deny) or admitted with an API warning (Warn). Valid options are Deny and Warn. When set to Deny, incompatible CRDs will be rejected and not admitted to the cluster. When set to Warn, incompatible CRDs will be allowed but a warning will be generated in the API response. This field is required.",
+}
+
+func (CustomResourceDefinitionSchemaValidation) SwaggerDoc() map[string]string {
+ return map_CustomResourceDefinitionSchemaValidation
+}
+
+var map_ObjectSchemaValidation = map[string]string{
+ "": "ObjectSchemaValidation ensures that matching objects conform to the compatibilitySchema.",
+ "action": "action determines whether violations are rejected (Deny) or admitted with an API warning (Warn). Valid options are Deny and Warn. When set to Deny, incompatible Objects will be rejected and not admitted to the cluster. When set to Warn, incompatible Objects will be allowed but a warning will be generated in the API response. This field is required.",
+ "namespaceSelector": "namespaceSelector defines a label selector for namespaces. If defined, only objects in a namespace with matching labels will be subject to validation. When not specified, objects for validation will not be filtered by namespace.",
+ "objectSelector": "objectSelector defines a label selector for objects. If defined, only objects with matching labels will be subject to validation. When not specified, objects for validation will not be filtered by label.",
+ "matchConditions": "matchConditions defines the matchConditions field of the resulting ValidatingWebhookConfiguration. When present, must contain between 1 and 64 match conditions. When not specified, the webhook will match all requests according to its other selectors.",
+}
+
+func (ObjectSchemaValidation) SwaggerDoc() map[string]string {
+ return map_ObjectSchemaValidation
+}
+
+var map_ObservedCRD = map[string]string{
+ "": "ObservedCRD contains information about the observed target CRD.",
+ "uid": "uid is the uid of the observed CRD. Must be a valid UUID consisting of lowercase hexadecimal digits in 5 hyphenated blocks (8-4-4-4-12 format). Length must be between 1 and 36 characters.",
+ "generation": "generation is the observed generation of the CRD. Must be a positive integer (minimum value of 1).",
+}
+
+func (ObservedCRD) SwaggerDoc() map[string]string {
+ return map_ObservedCRD
+}
+
+// AUTO-GENERATED FUNCTIONS END HERE
diff --git a/vendor/github.com/openshift/api/config/v1/types_feature.go b/vendor/github.com/openshift/api/config/v1/types_feature.go
index 169e29c5c5..e111d518ab 100644
--- a/vendor/github.com/openshift/api/config/v1/types_feature.go
+++ b/vendor/github.com/openshift/api/config/v1/types_feature.go
@@ -53,8 +53,12 @@ var (
// your cluster may fail in an unrecoverable way.
CustomNoUpgrade FeatureSet = "CustomNoUpgrade"
+ // OKD turns on features for OKD. Turning this feature set ON is supported for OKD clusters, but NOT for OpenShift clusters.
+ // Once enabled, this feature set cannot be changed back to Default, but can be changed to other feature sets and it allows upgrades.
+ OKD FeatureSet = "OKD"
+
// AllFixedFeatureSets are the featuresets that have known featuregates. Custom doesn't for instance. LatencySensitive is dead
- AllFixedFeatureSets = []FeatureSet{Default, TechPreviewNoUpgrade, DevPreviewNoUpgrade}
+ AllFixedFeatureSets = []FeatureSet{Default, TechPreviewNoUpgrade, DevPreviewNoUpgrade, OKD}
)
type FeatureGateSpec struct {
@@ -67,10 +71,11 @@ type FeatureGateSelection struct {
// Turning on or off features may cause irreversible changes in your cluster which cannot be undone.
// +unionDiscriminator
// +optional
- // +kubebuilder:validation:Enum=CustomNoUpgrade;DevPreviewNoUpgrade;TechPreviewNoUpgrade;""
+ // +kubebuilder:validation:Enum=CustomNoUpgrade;DevPreviewNoUpgrade;TechPreviewNoUpgrade;OKD;""
// +kubebuilder:validation:XValidation:rule="oldSelf == 'CustomNoUpgrade' ? self == 'CustomNoUpgrade' : true",message="CustomNoUpgrade may not be changed"
// +kubebuilder:validation:XValidation:rule="oldSelf == 'TechPreviewNoUpgrade' ? self == 'TechPreviewNoUpgrade' : true",message="TechPreviewNoUpgrade may not be changed"
// +kubebuilder:validation:XValidation:rule="oldSelf == 'DevPreviewNoUpgrade' ? self == 'DevPreviewNoUpgrade' : true",message="DevPreviewNoUpgrade may not be changed"
+ // +kubebuilder:validation:XValidation:rule="oldSelf == 'OKD' ? self != '' : true",message="OKD cannot transition to Default"
FeatureSet FeatureSet `json:"featureSet,omitempty"`
// customNoUpgrade allows the enabling or disabling of any feature. Turning this feature set on IS NOT SUPPORTED, CANNOT BE UNDONE, and PREVENTS UPGRADES.
diff --git a/vendor/github.com/openshift/api/config/v1/types_image_policy.go b/vendor/github.com/openshift/api/config/v1/types_image_policy.go
index 54bd21adb4..a6a6405130 100644
--- a/vendor/github.com/openshift/api/config/v1/types_image_policy.go
+++ b/vendor/github.com/openshift/api/config/v1/types_image_policy.go
@@ -82,7 +82,7 @@ type PolicyRootOfTrust struct {
// Allowed values are "PublicKey", "FulcioCAWithRekor", and "PKI".
// When set to "PublicKey", the policy relies on a sigstore publicKey and may optionally use a Rekor verification.
// When set to "FulcioCAWithRekor", the policy is based on the Fulcio certification and incorporates a Rekor verification.
- // When set to "PKI", the policy is based on the certificates from Bring Your Own Public Key Infrastructure (BYOPKI). This value is enabled by turning on the SigstoreImageVerificationPKI feature gate.
+ // When set to "PKI", the policy is based on the certificates from Bring Your Own Public Key Infrastructure (BYOPKI).
// +unionDiscriminator
// +required
PolicyType PolicyType `json:"policyType"`
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 778fed917c..766ac5ddab 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
@@ -1335,7 +1335,7 @@ func (PolicyMatchRemapIdentity) SwaggerDoc() map[string]string {
var map_PolicyRootOfTrust = map[string]string{
"": "PolicyRootOfTrust defines the root of trust based on the selected policyType.",
- "policyType": "policyType is a required field specifies the type of the policy for verification. This field must correspond to how the policy was generated. Allowed values are \"PublicKey\", \"FulcioCAWithRekor\", and \"PKI\". When set to \"PublicKey\", the policy relies on a sigstore publicKey and may optionally use a Rekor verification. When set to \"FulcioCAWithRekor\", the policy is based on the Fulcio certification and incorporates a Rekor verification. When set to \"PKI\", the policy is based on the certificates from Bring Your Own Public Key Infrastructure (BYOPKI). This value is enabled by turning on the SigstoreImageVerificationPKI feature gate.",
+ "policyType": "policyType is a required field specifies the type of the policy for verification. This field must correspond to how the policy was generated. Allowed values are \"PublicKey\", \"FulcioCAWithRekor\", and \"PKI\". When set to \"PublicKey\", the policy relies on a sigstore publicKey and may optionally use a Rekor verification. When set to \"FulcioCAWithRekor\", the policy is based on the Fulcio certification and incorporates a Rekor verification. When set to \"PKI\", the policy is based on the certificates from Bring Your Own Public Key Infrastructure (BYOPKI).",
"publicKey": "publicKey defines the root of trust configuration based on a sigstore public key. Optionally include a Rekor public key for Rekor verification. publicKey is required when policyType is PublicKey, and forbidden otherwise.",
"fulcioCAWithRekor": "fulcioCAWithRekor defines the root of trust configuration based on the Fulcio certificate and the Rekor public key. fulcioCAWithRekor is required when policyType is FulcioCAWithRekor, and forbidden otherwise For more information about Fulcio and Rekor, please refer to the document at: https://github.com/sigstore/fulcio and https://github.com/sigstore/rekor",
"pki": "pki defines the root of trust configuration based on Bring Your Own Public Key Infrastructure (BYOPKI) Root CA(s) and corresponding intermediate certificates. pki is required when policyType is PKI, and forbidden otherwise.",
diff --git a/vendor/github.com/openshift/api/features.md b/vendor/github.com/openshift/api/features.md
index 7b858756db..056ae3719a 100644
--- a/vendor/github.com/openshift/api/features.md
+++ b/vendor/github.com/openshift/api/features.md
@@ -1,115 +1,114 @@
-| FeatureGate | Default on Hypershift | Default on SelfManagedHA | DevPreviewNoUpgrade on Hypershift | DevPreviewNoUpgrade on SelfManagedHA | TechPreviewNoUpgrade on Hypershift | TechPreviewNoUpgrade on SelfManagedHA |
-| ------ | --- | --- | --- | --- | --- | --- |
-| ClientsAllowCBOR| | | | | | |
-| ClusterAPIInstall| | | | | | |
-| EventedPLEG| | | | | | |
-| MachineAPIOperatorDisableMachineHealthCheckController| | | | | | |
-| MultiArchInstallAzure| | | | | | |
-| NewOLMBoxCutterRuntime| | | | | | |
-| ShortCertRotation| | | | | | |
-| ClusterAPIMachineManagementVSphere| | | Enabled | Enabled | | |
-| Example2| | | Enabled | Enabled | | |
-| ExternalSnapshotMetadata| | | Enabled | Enabled | | |
-| IngressControllerDynamicConfigurationManager| | | Enabled | Enabled | | |
-| NewOLMCatalogdAPIV1Metas| | | | Enabled | | Enabled |
-| NewOLMOwnSingleNamespace| | | | Enabled | | Enabled |
-| NewOLMPreflightPermissionChecks| | | | Enabled | | Enabled |
-| NoRegistryClusterInstall| | | | Enabled | | Enabled |
-| ProvisioningRequestAvailable| | | Enabled | Enabled | | |
-| HyperShiftOnlyDynamicResourceAllocation| Enabled | | Enabled | | Enabled | |
-| NewOLM| | Enabled | | Enabled | | Enabled |
-| NewOLMWebhookProviderOpenshiftServiceCA| | Enabled | | Enabled | | Enabled |
-| AWSClusterHostedDNS| | | Enabled | Enabled | Enabled | Enabled |
-| AWSClusterHostedDNSInstall| | | Enabled | Enabled | Enabled | Enabled |
-| AWSDedicatedHosts| | | Enabled | Enabled | Enabled | Enabled |
-| AWSDualStackInstall| | | Enabled | Enabled | Enabled | Enabled |
-| AWSServiceLBNetworkSecurityGroup| | | Enabled | Enabled | Enabled | Enabled |
-| AutomatedEtcdBackup| | | Enabled | Enabled | Enabled | Enabled |
-| AzureClusterHostedDNSInstall| | | Enabled | Enabled | Enabled | Enabled |
-| AzureDedicatedHosts| | | Enabled | Enabled | Enabled | Enabled |
-| AzureDualStackInstall| | | Enabled | Enabled | Enabled | Enabled |
-| AzureMultiDisk| | | Enabled | Enabled | Enabled | Enabled |
-| BootImageSkewEnforcement| | | Enabled | Enabled | Enabled | Enabled |
-| BootcNodeManagement| | | Enabled | Enabled | Enabled | Enabled |
-| CBORServingAndStorage| | | Enabled | Enabled | Enabled | Enabled |
-| CRDCompatibilityRequirementOperator| | | Enabled | Enabled | Enabled | Enabled |
-| ClientsPreferCBOR| | | Enabled | Enabled | Enabled | Enabled |
-| ClusterAPIInstallIBMCloud| | | Enabled | Enabled | Enabled | Enabled |
-| ClusterAPIMachineManagement| | | Enabled | Enabled | Enabled | Enabled |
-| ClusterMonitoringConfig| | | Enabled | Enabled | Enabled | Enabled |
-| ClusterVersionOperatorConfiguration| | | Enabled | Enabled | Enabled | Enabled |
-| DNSNameResolver| | | Enabled | Enabled | Enabled | Enabled |
-| DualReplica| | | Enabled | Enabled | Enabled | Enabled |
-| DyanmicServiceEndpointIBMCloud| | | Enabled | Enabled | Enabled | Enabled |
-| EtcdBackendQuota| | | Enabled | Enabled | Enabled | Enabled |
-| EventTTL| | | Enabled | Enabled | Enabled | Enabled |
-| Example| | | Enabled | Enabled | Enabled | Enabled |
-| GCPClusterHostedDNS| | | Enabled | Enabled | Enabled | Enabled |
-| GCPCustomAPIEndpoints| | | Enabled | Enabled | Enabled | Enabled |
-| GCPCustomAPIEndpointsInstall| | | Enabled | Enabled | Enabled | Enabled |
-| GCPDualStackInstall| | | Enabled | Enabled | Enabled | Enabled |
-| ImageModeStatusReporting| | | Enabled | Enabled | Enabled | Enabled |
-| InsightsConfig| | | Enabled | Enabled | Enabled | Enabled |
-| InsightsOnDemandDataGather| | | Enabled | Enabled | Enabled | Enabled |
-| IrreconcilableMachineConfig| | | Enabled | Enabled | Enabled | Enabled |
-| KMSEncryptionProvider| | | Enabled | Enabled | Enabled | Enabled |
-| MachineAPIMigration| | | Enabled | Enabled | Enabled | Enabled |
-| ManagedBootImagesCPMS| | | Enabled | Enabled | Enabled | Enabled |
-| MaxUnavailableStatefulSet| | | Enabled | Enabled | Enabled | Enabled |
-| MinimumKubeletVersion| | | Enabled | Enabled | Enabled | Enabled |
-| MixedCPUsAllocation| | | Enabled | Enabled | Enabled | Enabled |
-| MultiDiskSetup| | | Enabled | Enabled | Enabled | Enabled |
-| MutableCSINodeAllocatableCount| | | Enabled | Enabled | Enabled | Enabled |
-| MutatingAdmissionPolicy| | | Enabled | Enabled | Enabled | Enabled |
-| NutanixMultiSubnets| | | Enabled | Enabled | Enabled | Enabled |
-| OSStreams| | | Enabled | Enabled | Enabled | Enabled |
-| OVNObservability| | | Enabled | Enabled | Enabled | Enabled |
-| OnPremDNSRecords| | | Enabled | Enabled | Enabled | Enabled |
-| SELinuxMount| | | Enabled | Enabled | Enabled | Enabled |
-| SignatureStores| | | Enabled | Enabled | Enabled | Enabled |
-| SigstoreImageVerificationPKI| | | Enabled | Enabled | Enabled | Enabled |
-| TranslateStreamCloseWebsocketRequests| | | Enabled | Enabled | Enabled | Enabled |
-| VSphereConfigurableMaxAllowedBlockVolumesPerNode| | | Enabled | Enabled | Enabled | Enabled |
-| VSphereHostVMGroupZonal| | | Enabled | Enabled | Enabled | Enabled |
-| VSphereMixedNodeEnv| | | Enabled | Enabled | Enabled | Enabled |
-| VolumeGroupSnapshot| | | Enabled | Enabled | Enabled | Enabled |
-| AdditionalRoutingCapabilities| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
-| AdminNetworkPolicy| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
-| AlibabaPlatform| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
-| AzureWorkloadIdentity| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
-| BuildCSIVolumes| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
-| CPMSMachineNamePrefix| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
-| ConsolePluginContentSecurityPolicy| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
-| ExternalOIDC| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
-| ExternalOIDCWithUIDAndExtraClaimMappings| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
-| GCPClusterHostedDNSInstall| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
-| GatewayAPI| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
-| GatewayAPIController| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
-| HighlyAvailableArbiter| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
-| ImageStreamImportMode| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
-| ImageVolume| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
-| KMSv1| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
-| MachineConfigNodes| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
-| ManagedBootImages| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
-| ManagedBootImagesAWS| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
-| ManagedBootImagesAzure| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
-| ManagedBootImagesvSphere| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
-| MetricsCollectionProfiles| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
-| NetworkDiagnosticsConfig| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
-| NetworkLiveMigration| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
-| NetworkSegmentation| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
-| OpenShiftPodSecurityAdmission| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
-| PinnedImages| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
-| PreconfiguredUDNAddresses| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
-| ProcMountType| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
-| RouteAdvertisements| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
-| RouteExternalCertificate| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
-| ServiceAccountTokenNodeBinding| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
-| SigstoreImageVerification| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
-| StoragePerformantSecurityPolicy| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
-| UpgradeStatus| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
-| UserNamespacesPodSecurityStandards| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
-| UserNamespacesSupport| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
-| VSphereMultiDisk| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
-| VSphereMultiNetworks| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
-| VolumeAttributesClass| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| FeatureGate | Default on Hypershift | Default on SelfManagedHA | DevPreviewNoUpgrade on Hypershift | DevPreviewNoUpgrade on SelfManagedHA | OKD on Hypershift | OKD on SelfManagedHA | TechPreviewNoUpgrade on Hypershift | TechPreviewNoUpgrade on SelfManagedHA |
+| ------ | --- | --- | --- | --- | --- | --- | --- | --- |
+| ClientsAllowCBOR| | | | | | | | |
+| ClusterAPIInstall| | | | | | | | |
+| EventedPLEG| | | | | | | | |
+| MachineAPIOperatorDisableMachineHealthCheckController| | | | | | | | |
+| MultiArchInstallAzure| | | | | | | | |
+| NewOLMBoxCutterRuntime| | | | | | | | |
+| ShortCertRotation| | | | | | | | |
+| ClusterAPIMachineManagementVSphere| | | Enabled | Enabled | | | | |
+| Example2| | | Enabled | Enabled | | | | |
+| ExternalSnapshotMetadata| | | Enabled | Enabled | | | | |
+| IngressControllerDynamicConfigurationManager| | | Enabled | Enabled | | | | |
+| NewOLMCatalogdAPIV1Metas| | | | Enabled | | | | Enabled |
+| NewOLMOwnSingleNamespace| | | | Enabled | | | | Enabled |
+| NewOLMPreflightPermissionChecks| | | | Enabled | | | | Enabled |
+| NoRegistryClusterInstall| | | | Enabled | | | | Enabled |
+| ProvisioningRequestAvailable| | | Enabled | Enabled | | | | |
+| AWSClusterHostedDNS| | | Enabled | Enabled | | | Enabled | Enabled |
+| AWSClusterHostedDNSInstall| | | Enabled | Enabled | | | Enabled | Enabled |
+| AWSDedicatedHosts| | | Enabled | Enabled | | | Enabled | Enabled |
+| AWSDualStackInstall| | | Enabled | Enabled | | | Enabled | Enabled |
+| AWSServiceLBNetworkSecurityGroup| | | Enabled | Enabled | | | Enabled | Enabled |
+| AutomatedEtcdBackup| | | Enabled | Enabled | | | Enabled | Enabled |
+| AzureClusterHostedDNSInstall| | | Enabled | Enabled | | | Enabled | Enabled |
+| AzureDedicatedHosts| | | Enabled | Enabled | | | Enabled | Enabled |
+| AzureDualStackInstall| | | Enabled | Enabled | | | Enabled | Enabled |
+| AzureMultiDisk| | | Enabled | Enabled | | | Enabled | Enabled |
+| BootImageSkewEnforcement| | | Enabled | Enabled | | | Enabled | Enabled |
+| BootcNodeManagement| | | Enabled | Enabled | | | Enabled | Enabled |
+| CBORServingAndStorage| | | Enabled | Enabled | | | Enabled | Enabled |
+| CRDCompatibilityRequirementOperator| | | Enabled | Enabled | | | Enabled | Enabled |
+| ClientsPreferCBOR| | | Enabled | Enabled | | | Enabled | Enabled |
+| ClusterAPIInstallIBMCloud| | | Enabled | Enabled | | | Enabled | Enabled |
+| ClusterAPIMachineManagement| | | Enabled | Enabled | | | Enabled | Enabled |
+| ClusterMonitoringConfig| | | Enabled | Enabled | | | Enabled | Enabled |
+| ClusterVersionOperatorConfiguration| | | Enabled | Enabled | | | Enabled | Enabled |
+| DNSNameResolver| | | Enabled | Enabled | | | Enabled | Enabled |
+| DualReplica| | | Enabled | Enabled | | | Enabled | Enabled |
+| DyanmicServiceEndpointIBMCloud| | | Enabled | Enabled | | | Enabled | Enabled |
+| EtcdBackendQuota| | | Enabled | Enabled | | | Enabled | Enabled |
+| EventTTL| | | Enabled | Enabled | | | Enabled | Enabled |
+| Example| | | Enabled | Enabled | | | Enabled | Enabled |
+| GCPClusterHostedDNS| | | Enabled | Enabled | | | Enabled | Enabled |
+| GCPCustomAPIEndpoints| | | Enabled | Enabled | | | Enabled | Enabled |
+| GCPCustomAPIEndpointsInstall| | | Enabled | Enabled | | | Enabled | Enabled |
+| GCPDualStackInstall| | | Enabled | Enabled | | | Enabled | Enabled |
+| HyperShiftOnlyDynamicResourceAllocation| Enabled | | Enabled | | Enabled | | Enabled | |
+| ImageModeStatusReporting| | | Enabled | Enabled | | | Enabled | Enabled |
+| InsightsConfig| | | Enabled | Enabled | | | Enabled | Enabled |
+| InsightsOnDemandDataGather| | | Enabled | Enabled | | | Enabled | Enabled |
+| IrreconcilableMachineConfig| | | Enabled | Enabled | | | Enabled | Enabled |
+| KMSEncryptionProvider| | | Enabled | Enabled | | | Enabled | Enabled |
+| MachineAPIMigration| | | Enabled | Enabled | | | Enabled | Enabled |
+| ManagedBootImagesCPMS| | | Enabled | Enabled | | | Enabled | Enabled |
+| MaxUnavailableStatefulSet| | | Enabled | Enabled | | | Enabled | Enabled |
+| MinimumKubeletVersion| | | Enabled | Enabled | | | Enabled | Enabled |
+| MixedCPUsAllocation| | | Enabled | Enabled | | | Enabled | Enabled |
+| MultiDiskSetup| | | Enabled | Enabled | | | Enabled | Enabled |
+| MutableCSINodeAllocatableCount| | | Enabled | Enabled | | | Enabled | Enabled |
+| MutatingAdmissionPolicy| | | Enabled | Enabled | | | Enabled | Enabled |
+| NewOLM| | Enabled | | Enabled | | Enabled | | Enabled |
+| NewOLMWebhookProviderOpenshiftServiceCA| | Enabled | | Enabled | | Enabled | | Enabled |
+| NutanixMultiSubnets| | | Enabled | Enabled | | | Enabled | Enabled |
+| OSStreams| | | Enabled | Enabled | | | Enabled | Enabled |
+| OVNObservability| | | Enabled | Enabled | | | Enabled | Enabled |
+| OnPremDNSRecords| | | Enabled | Enabled | | | Enabled | Enabled |
+| SELinuxMount| | | Enabled | Enabled | | | Enabled | Enabled |
+| SignatureStores| | | Enabled | Enabled | | | Enabled | Enabled |
+| VSphereConfigurableMaxAllowedBlockVolumesPerNode| | | Enabled | Enabled | | | Enabled | Enabled |
+| VSphereHostVMGroupZonal| | | Enabled | Enabled | | | Enabled | Enabled |
+| VSphereMixedNodeEnv| | | Enabled | Enabled | | | Enabled | Enabled |
+| VolumeGroupSnapshot| | | Enabled | Enabled | | | Enabled | Enabled |
+| AdditionalRoutingCapabilities| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| AdminNetworkPolicy| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| AlibabaPlatform| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| AzureWorkloadIdentity| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| BuildCSIVolumes| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| CPMSMachineNamePrefix| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| ConsolePluginContentSecurityPolicy| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| ExternalOIDC| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| ExternalOIDCWithUIDAndExtraClaimMappings| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| GCPClusterHostedDNSInstall| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| GatewayAPI| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| GatewayAPIController| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| HighlyAvailableArbiter| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| ImageStreamImportMode| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| ImageVolume| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| KMSv1| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| MachineConfigNodes| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| ManagedBootImages| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| ManagedBootImagesAWS| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| ManagedBootImagesAzure| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| ManagedBootImagesvSphere| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| MetricsCollectionProfiles| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| NetworkDiagnosticsConfig| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| NetworkLiveMigration| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| NetworkSegmentation| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| OpenShiftPodSecurityAdmission| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| PinnedImages| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| PreconfiguredUDNAddresses| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| ProcMountType| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| RouteAdvertisements| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| RouteExternalCertificate| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| ServiceAccountTokenNodeBinding| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| SigstoreImageVerification| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| SigstoreImageVerificationPKI| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| StoragePerformantSecurityPolicy| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| UpgradeStatus| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| UserNamespacesPodSecurityStandards| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| UserNamespacesSupport| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| VSphereMultiDisk| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| VSphereMultiNetworks| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
+| VolumeAttributesClass| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
diff --git a/vendor/github.com/openshift/api/install.go b/vendor/github.com/openshift/api/install.go
index cc91150009..ea5f349708 100644
--- a/vendor/github.com/openshift/api/install.go
+++ b/vendor/github.com/openshift/api/install.go
@@ -47,6 +47,7 @@ import (
kstoragev1beta1 "k8s.io/api/storage/v1beta1"
"k8s.io/apimachinery/pkg/runtime"
+ "github.com/openshift/api/apiextensions"
"github.com/openshift/api/apiserver"
"github.com/openshift/api/apps"
"github.com/openshift/api/authorization"
@@ -83,6 +84,7 @@ import (
var (
schemeBuilder = runtime.NewSchemeBuilder(
+ apiextensions.Install,
apiserver.Install,
apps.Install,
authorization.Install,
diff --git a/vendor/github.com/openshift/api/machine/v1beta1/types_awsprovider.go b/vendor/github.com/openshift/api/machine/v1beta1/types_awsprovider.go
index 0cc634a5fd..c6442186a0 100644
--- a/vendor/github.com/openshift/api/machine/v1beta1/types_awsprovider.go
+++ b/vendor/github.com/openshift/api/machine/v1beta1/types_awsprovider.go
@@ -115,13 +115,14 @@ type AWSMachineProviderConfig struct {
// +optional
MarketType MarketType `json:"marketType,omitempty"`
+ // Tombstone: This field was moved into the Placement struct to belong w/ the Tenancy field due to involvement with the setting.
// hostPlacement configures placement on AWS Dedicated Hosts. This allows admins to assign instances to specific host
// for a variety of needs including for regulatory compliance, to leverage existing per-socket or per-core software licenses (BYOL),
// and to gain visibility and control over instance placement on a physical server.
// When omitted, the instance is not constrained to a dedicated host.
// +openshift:enable:FeatureGate=AWSDedicatedHosts
// +optional
- HostPlacement *HostPlacement `json:"hostPlacement,omitempty"`
+ //HostPlacement *HostPlacement `json:"hostPlacement,omitempty"`
}
// AWSConfidentialComputePolicy represents the confidential compute configuration for the instance.
@@ -294,6 +295,7 @@ type AWSResourceReference struct {
}
// Placement indicates where to create the instance in AWS
+// +kubebuilder:validation:XValidation:rule="has(self.tenancy) && self.tenancy == 'host' ? true : !has(self.host)",message="host may only be specified when tenancy is host"
type Placement struct {
// region is the region to use to create the instance
// +optional
@@ -303,8 +305,19 @@ type Placement struct {
AvailabilityZone string `json:"availabilityZone,omitempty"`
// tenancy indicates if instance should run on shared or single-tenant hardware. There are
// supported 3 options: default, dedicated and host.
+ // When set to default Runs on shared multi-tenant hardware.
+ // When dedicated Runs on single-tenant hardware (any dedicated instance hardware).
+ // When host and the host object is not provided: Runs on Dedicated Host; best-effort restart on same host.
+ // When `host` and `host` object is provided with affinity `dedicatedHost` defined: Runs on specified Dedicated Host.
// +optional
Tenancy InstanceTenancy `json:"tenancy,omitempty"`
+ // host configures placement on AWS Dedicated Hosts. This allows admins to assign instances to specific host
+ // for a variety of needs including for regulatory compliance, to leverage existing per-socket or per-core software licenses (BYOL),
+ // and to gain visibility and control over instance placement on a physical server.
+ // When omitted, the instance is not constrained to a dedicated host.
+ // +openshift:enable:FeatureGate=AWSDedicatedHosts
+ // +optional
+ Host *HostPlacement `json:"host,omitempty"`
}
// Filter is a filter used to identify an AWS resource
@@ -416,19 +429,20 @@ const (
)
// HostPlacement is the type that will be used to configure the placement of AWS instances.
-// +kubebuilder:validation:XValidation:rule="has(self.type) && self.affinity == 'DedicatedHost' ? has(self.dedicatedHost) : !has(self.dedicatedHost)",message="dedicatedHost is required when affinity is DedicatedHost, and forbidden otherwise"
+// +kubebuilder:validation:XValidation:rule="has(self.affinity) && self.affinity == 'DedicatedHost' ? has(self.dedicatedHost) : true",message="dedicatedHost is required when affinity is DedicatedHost, and optional otherwise"
// +union
type HostPlacement struct {
// affinity specifies the affinity setting for the instance.
// Allowed values are AnyAvailable and DedicatedHost.
// When Affinity is set to DedicatedHost, an instance started onto a specific host always restarts on the same host if stopped. In this scenario, the `dedicatedHost` field must be set.
// When Affinity is set to AnyAvailable, and you stop and restart the instance, it can be restarted on any available host.
+ // When Affinity is set to AnyAvailable and the `dedicatedHost` field is defined, it runs on specified Dedicated Host, but may move if stopped.
// +required
// +unionDiscriminator
Affinity *HostAffinity `json:"affinity,omitempty"`
// dedicatedHost specifies the exact host that an instance should be restarted on if stopped.
- // dedicatedHost is required when 'affinity' is set to DedicatedHost, and forbidden otherwise.
+ // dedicatedHost is required when 'affinity' is set to DedicatedHost, and optional otherwise.
// +optional
// +unionMember
DedicatedHost *DedicatedHost `json:"dedicatedHost,omitempty"`
diff --git a/vendor/github.com/openshift/api/machine/v1beta1/zz_generated.deepcopy.go b/vendor/github.com/openshift/api/machine/v1beta1/zz_generated.deepcopy.go
index 0150060f46..d08906c7d8 100644
--- a/vendor/github.com/openshift/api/machine/v1beta1/zz_generated.deepcopy.go
+++ b/vendor/github.com/openshift/api/machine/v1beta1/zz_generated.deepcopy.go
@@ -61,7 +61,7 @@ func (in *AWSMachineProviderConfig) DeepCopyInto(out *AWSMachineProviderConfig)
}
}
in.Subnet.DeepCopyInto(&out.Subnet)
- out.Placement = in.Placement
+ in.Placement.DeepCopyInto(&out.Placement)
if in.LoadBalancers != nil {
in, out := &in.LoadBalancers, &out.LoadBalancers
*out = make([]LoadBalancerReference, len(*in))
@@ -85,11 +85,6 @@ func (in *AWSMachineProviderConfig) DeepCopyInto(out *AWSMachineProviderConfig)
*out = new(int32)
**out = **in
}
- if in.HostPlacement != nil {
- in, out := &in.HostPlacement, &out.HostPlacement
- *out = new(HostPlacement)
- (*in).DeepCopyInto(*out)
- }
return
}
@@ -1634,6 +1629,11 @@ func (in *ObjectMeta) DeepCopy() *ObjectMeta {
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Placement) DeepCopyInto(out *Placement) {
*out = *in
+ if in.Host != nil {
+ in, out := &in.Host, &out.Host
+ *out = new(HostPlacement)
+ (*in).DeepCopyInto(*out)
+ }
return
}
diff --git a/vendor/github.com/openshift/api/machine/v1beta1/zz_generated.swagger_doc_generated.go b/vendor/github.com/openshift/api/machine/v1beta1/zz_generated.swagger_doc_generated.go
index f03e5cc4ef..903faf94ba 100644
--- a/vendor/github.com/openshift/api/machine/v1beta1/zz_generated.swagger_doc_generated.go
+++ b/vendor/github.com/openshift/api/machine/v1beta1/zz_generated.swagger_doc_generated.go
@@ -35,7 +35,6 @@ var map_AWSMachineProviderConfig = map[string]string{
"placementGroupPartition": "placementGroupPartition is the partition number within the placement group in which to launch the instance. This must be an integer value between 1 and 7. It is only valid if the placement group, referred in `PlacementGroupName` was created with strategy set to partition.",
"capacityReservationId": "capacityReservationId specifies the target Capacity Reservation into which the instance should be launched. The field size should be greater than 0 and the field input must start with cr-***",
"marketType": "marketType specifies the type of market for the EC2 instance. Valid values are OnDemand, Spot, CapacityBlock and omitted.\n\nDefaults to OnDemand. When SpotMarketOptions is provided, the marketType defaults to \"Spot\".\n\nWhen set to OnDemand the instance runs as a standard OnDemand instance. When set to Spot the instance runs as a Spot instance. When set to CapacityBlock the instance utilizes pre-purchased compute capacity (capacity blocks) with AWS Capacity Reservations. If this value is selected, capacityReservationID must be specified to identify the target reservation.",
- "hostPlacement": "hostPlacement configures placement on AWS Dedicated Hosts. This allows admins to assign instances to specific host for a variety of needs including for regulatory compliance, to leverage existing per-socket or per-core software licenses (BYOL), and to gain visibility and control over instance placement on a physical server. When omitted, the instance is not constrained to a dedicated host.",
}
func (AWSMachineProviderConfig) SwaggerDoc() map[string]string {
@@ -129,8 +128,8 @@ func (Filter) SwaggerDoc() map[string]string {
var map_HostPlacement = map[string]string{
"": "HostPlacement is the type that will be used to configure the placement of AWS instances.",
- "affinity": "affinity specifies the affinity setting for the instance. Allowed values are AnyAvailable and DedicatedHost. When Affinity is set to DedicatedHost, an instance started onto a specific host always restarts on the same host if stopped. In this scenario, the `dedicatedHost` field must be set. When Affinity is set to AnyAvailable, and you stop and restart the instance, it can be restarted on any available host.",
- "dedicatedHost": "dedicatedHost specifies the exact host that an instance should be restarted on if stopped. dedicatedHost is required when 'affinity' is set to DedicatedHost, and forbidden otherwise.",
+ "affinity": "affinity specifies the affinity setting for the instance. Allowed values are AnyAvailable and DedicatedHost. When Affinity is set to DedicatedHost, an instance started onto a specific host always restarts on the same host if stopped. In this scenario, the `dedicatedHost` field must be set. When Affinity is set to AnyAvailable, and you stop and restart the instance, it can be restarted on any available host. When Affinity is set to AnyAvailable and the `dedicatedHost` field is defined, it runs on specified Dedicated Host, but may move if stopped.",
+ "dedicatedHost": "dedicatedHost specifies the exact host that an instance should be restarted on if stopped. dedicatedHost is required when 'affinity' is set to DedicatedHost, and optional otherwise.",
}
func (HostPlacement) SwaggerDoc() map[string]string {
@@ -158,7 +157,8 @@ var map_Placement = map[string]string{
"": "Placement indicates where to create the instance in AWS",
"region": "region is the region to use to create the instance",
"availabilityZone": "availabilityZone is the availability zone of the instance",
- "tenancy": "tenancy indicates if instance should run on shared or single-tenant hardware. There are supported 3 options: default, dedicated and host.",
+ "tenancy": "tenancy indicates if instance should run on shared or single-tenant hardware. There are supported 3 options: default, dedicated and host. When set to default Runs on shared multi-tenant hardware. When dedicated Runs on single-tenant hardware (any dedicated instance hardware). When host and the host object is not provided: Runs on Dedicated Host; best-effort restart on same host. When `host` and `host` object is provided with affinity `dedicatedHost` defined: Runs on specified Dedicated Host.",
+ "host": "host configures placement on AWS Dedicated Hosts. This allows admins to assign instances to specific host for a variety of needs including for regulatory compliance, to leverage existing per-socket or per-core software licenses (BYOL), and to gain visibility and control over instance placement on a physical server. When omitted, the instance is not constrained to a dedicated host.",
}
func (Placement) SwaggerDoc() map[string]string {
diff --git a/vendor/github.com/openshift/api/openapi/openapi.json b/vendor/github.com/openshift/api/openapi/openapi.json
index e1ff54c9c1..77420dcbaa 100644
--- a/vendor/github.com/openshift/api/openapi/openapi.json
+++ b/vendor/github.com/openshift/api/openapi/openapi.json
@@ -6,6 +6,283 @@
},
"paths": null,
"definitions": {
+ "com.github.openshift.api.apiextensions.v1alpha1.APIExcludedField": {
+ "description": "APIExcludedField describes a field in the schema which will not be validated by crdSchemaValidation or objectSchemaValidation.",
+ "type": "object",
+ "required": [
+ "path"
+ ],
+ "properties": {
+ "path": {
+ "description": "path is the path to the field in the schema. Paths are dot-separated field names (e.g., \"fieldA.fieldB.fieldC\") representing nested object fields. If part of the path is a slice (e.g., \"status.conditions\") the remaining path is applied to all items in the slice (e.g., \"status.conditions.lastTransitionTimestamp\"). Each field name must be a valid Kubernetes CRD field name: start with a letter, contain only letters, digits, and underscores, and be between 1 and 63 characters in length. A path may contain at most 16 fields.",
+ "type": "string"
+ },
+ "versions": {
+ "description": "versions are the API versions the field is excluded from. When not specified, the field is excluded from all versions.\n\nEach item must be at most 63 characters in length, and must must consist of only lowercase alphanumeric characters and hyphens, and must start with an alphabetic character and end with an alphanumeric character. At most 32 versions may be specified.",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "default": ""
+ },
+ "x-kubernetes-list-type": "set"
+ }
+ }
+ },
+ "com.github.openshift.api.apiextensions.v1alpha1.APIVersions": {
+ "description": "APIVersions specifies a set of API versions of a CRD.",
+ "type": "object",
+ "required": [
+ "defaultSelection"
+ ],
+ "properties": {
+ "additionalVersions": {
+ "description": "additionalVersions specifies a set api versions to require in addition to the default selection. It is explicitly permitted to specify a version in additionalVersions which was also selected by the default selection. The selections will be merged and deduplicated.\n\nEach item must be at most 63 characters in length, and must must consist of only lowercase alphanumeric characters and hyphens, and must start with an alphabetic character and end with an alphanumeric character.// with an alphabetic character and end with an alphanumeric character. At most 32 additional versions may be specified.",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "default": ""
+ },
+ "x-kubernetes-list-type": "set"
+ },
+ "defaultSelection": {
+ "description": "defaultSelection specifies a method for automatically selecting a set of versions to require.\n\nValid options are StorageOnly and AllServed. When set to StorageOnly, only the storage version is selected for compatibility assessment. When set to AllServed, all served versions are selected for compatibility assessment.\n\nThis field is required.",
+ "type": "string"
+ }
+ }
+ },
+ "com.github.openshift.api.apiextensions.v1alpha1.CRDData": {
+ "description": "CRDData contains the complete definition of a CRD.",
+ "type": "object",
+ "required": [
+ "type",
+ "data"
+ ],
+ "properties": {
+ "data": {
+ "description": "data contains the complete definition of the CRD. This field must be in the format specified by the type field. It may not be longer than 1572864 characters. This field is required.",
+ "type": "string"
+ },
+ "type": {
+ "description": "type indicates the type of the CRD data. The only supported type is \"YAML\". This field is required.",
+ "type": "string"
+ }
+ }
+ },
+ "com.github.openshift.api.apiextensions.v1alpha1.CompatibilityRequirement": {
+ "description": "CompatibilityRequirement expresses a set of requirements on a target CRD. It is used to ensure compatibility between different actors using the same CRD.\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.",
+ "type": "object",
+ "required": [
+ "metadata",
+ "spec"
+ ],
+ "properties": {
+ "apiVersion": {
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
+ "type": "string"
+ },
+ "kind": {
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
+ "type": "string"
+ },
+ "metadata": {
+ "description": "metadata is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
+ "default": {},
+ "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta"
+ },
+ "spec": {
+ "description": "spec is the specification of the desired behavior of the Compatibility Requirement.",
+ "default": {},
+ "$ref": "#/definitions/com.github.openshift.api.apiextensions.v1alpha1.CompatibilityRequirementSpec"
+ },
+ "status": {
+ "description": "status is the most recently observed status of the Compatibility Requirement.",
+ "default": {},
+ "$ref": "#/definitions/com.github.openshift.api.apiextensions.v1alpha1.CompatibilityRequirementStatus"
+ }
+ }
+ },
+ "com.github.openshift.api.apiextensions.v1alpha1.CompatibilityRequirementList": {
+ "description": "CompatibilityRequirementList is a collection of CompatibilityRequirements.\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.",
+ "type": "object",
+ "properties": {
+ "apiVersion": {
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
+ "type": "string"
+ },
+ "items": {
+ "description": "items is a list of CompatibilityRequirements.",
+ "type": "array",
+ "items": {
+ "default": {},
+ "$ref": "#/definitions/com.github.openshift.api.apiextensions.v1alpha1.CompatibilityRequirement"
+ }
+ },
+ "kind": {
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
+ "type": "string"
+ },
+ "metadata": {
+ "description": "metadata is the standard list's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
+ "default": {},
+ "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta"
+ }
+ }
+ },
+ "com.github.openshift.api.apiextensions.v1alpha1.CompatibilityRequirementSpec": {
+ "description": "CompatibilityRequirementSpec is the specification of the desired behavior of the Compatibility Requirement.",
+ "type": "object",
+ "required": [
+ "compatibilitySchema"
+ ],
+ "properties": {
+ "compatibilitySchema": {
+ "description": "compatibilitySchema defines the schema used by customResourceDefinitionSchemaValidation and objectSchemaValidation. This field is required.",
+ "default": {},
+ "$ref": "#/definitions/com.github.openshift.api.apiextensions.v1alpha1.CompatibilitySchema"
+ },
+ "customResourceDefinitionSchemaValidation": {
+ "description": "customResourceDefinitionSchemaValidation ensures that updates to the installed CRD are compatible with this compatibility requirement. If not specified, admission of the target CRD will not be validated. This field is optional.",
+ "default": {},
+ "$ref": "#/definitions/com.github.openshift.api.apiextensions.v1alpha1.CustomResourceDefinitionSchemaValidation"
+ },
+ "objectSchemaValidation": {
+ "description": "objectSchemaValidation ensures that matching resources conform to compatibilitySchema. If not specified, admission of matching resources will not be validated. This field is optional.",
+ "default": {},
+ "$ref": "#/definitions/com.github.openshift.api.apiextensions.v1alpha1.ObjectSchemaValidation"
+ }
+ }
+ },
+ "com.github.openshift.api.apiextensions.v1alpha1.CompatibilityRequirementStatus": {
+ "description": "CompatibilityRequirementStatus defines the observed status of the Compatibility Requirement.",
+ "type": "object",
+ "properties": {
+ "conditions": {
+ "description": "conditions is a list of conditions and their status. Known condition types are Progressing, Admitted, and Compatible.\n\nThe Progressing condition indicates if reconciliation of a CompatibilityRequirement is still progressing or has finished.\n\nThe Admitted condition indicates if the validating webhook has been configured.\n\nThe Compatible condition indicates if the observed CRD is compatible with the requirement.",
+ "type": "array",
+ "items": {
+ "default": {},
+ "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Condition"
+ },
+ "x-kubernetes-list-map-keys": [
+ "type"
+ ],
+ "x-kubernetes-list-type": "map"
+ },
+ "crdName": {
+ "description": "crdName is the name of the target CRD. The target CRD is not required to exist, as we may legitimately place requirements on it before it is created. The observed CRD is given in status.observedCRD, which will be empty if no CRD is observed. When present, must be between 1 and 253 characters and conform to RFC 1123 subdomain format: lowercase alphanumeric characters, '-' or '.', starting and ending with alphanumeric characters. When not specified, the requirement applies to any CRD name discovered from the compatibility schema. This field is optional. Once set, the value cannot be changed and must always remain set.",
+ "type": "string"
+ },
+ "observedCRD": {
+ "description": "observedCRD documents the uid and generation of the CRD object when the current status was written. This field will be omitted if the target CRD does not exist or could not be retrieved.",
+ "default": {},
+ "$ref": "#/definitions/com.github.openshift.api.apiextensions.v1alpha1.ObservedCRD"
+ }
+ }
+ },
+ "com.github.openshift.api.apiextensions.v1alpha1.CompatibilitySchema": {
+ "description": "CompatibilitySchema defines the schema used by crdSchemaValidation and objectSchemaValidation.",
+ "type": "object",
+ "required": [
+ "customResourceDefinition",
+ "requiredVersions"
+ ],
+ "properties": {
+ "customResourceDefinition": {
+ "description": "customResourceDefinition contains the complete definition of the CRD for schema and object validation purposes. This field is required.",
+ "default": {},
+ "$ref": "#/definitions/com.github.openshift.api.apiextensions.v1alpha1.CRDData"
+ },
+ "excludedFields": {
+ "description": "excludedFields is a set of fields in the schema which will not be validated by crdSchemaValidation or objectSchemaValidation. The list may contain at most 64 fields. When not specified, all fields in the schema will be validated.",
+ "type": "array",
+ "items": {
+ "default": {},
+ "$ref": "#/definitions/com.github.openshift.api.apiextensions.v1alpha1.APIExcludedField"
+ },
+ "x-kubernetes-list-type": "atomic"
+ },
+ "requiredVersions": {
+ "description": "requiredVersions specifies a subset of the CRD's API versions which will be asserted for compatibility. This field is required.",
+ "default": {},
+ "$ref": "#/definitions/com.github.openshift.api.apiextensions.v1alpha1.APIVersions"
+ }
+ }
+ },
+ "com.github.openshift.api.apiextensions.v1alpha1.CustomResourceDefinitionSchemaValidation": {
+ "description": "CustomResourceDefinitionSchemaValidation ensures that updates to the installed CRD are compatible with this compatibility requirement.",
+ "type": "object",
+ "required": [
+ "action"
+ ],
+ "properties": {
+ "action": {
+ "description": "action determines whether violations are rejected (Deny) or admitted with an API warning (Warn). Valid options are Deny and Warn. When set to Deny, incompatible CRDs will be rejected and not admitted to the cluster. When set to Warn, incompatible CRDs will be allowed but a warning will be generated in the API response. This field is required.\n\nPossible enum values:\n - `\"Deny\"` means that incompatible CRDs will be rejected.\n - `\"Warn\"` means that incompatible CRDs will be allowed but a warning will be generated.",
+ "type": "string",
+ "enum": [
+ "Deny",
+ "Warn"
+ ]
+ }
+ }
+ },
+ "com.github.openshift.api.apiextensions.v1alpha1.ObjectSchemaValidation": {
+ "description": "ObjectSchemaValidation ensures that matching objects conform to the compatibilitySchema.",
+ "type": "object",
+ "required": [
+ "action"
+ ],
+ "properties": {
+ "action": {
+ "description": "action determines whether violations are rejected (Deny) or admitted with an API warning (Warn). Valid options are Deny and Warn. When set to Deny, incompatible Objects will be rejected and not admitted to the cluster. When set to Warn, incompatible Objects will be allowed but a warning will be generated in the API response. This field is required.\n\nPossible enum values:\n - `\"Deny\"` means that incompatible CRDs will be rejected.\n - `\"Warn\"` means that incompatible CRDs will be allowed but a warning will be generated.",
+ "type": "string",
+ "enum": [
+ "Deny",
+ "Warn"
+ ]
+ },
+ "matchConditions": {
+ "description": "matchConditions defines the matchConditions field of the resulting ValidatingWebhookConfiguration. When present, must contain between 1 and 64 match conditions. When not specified, the webhook will match all requests according to its other selectors.",
+ "type": "array",
+ "items": {
+ "default": {},
+ "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.MatchCondition"
+ },
+ "x-kubernetes-list-map-keys": [
+ "name"
+ ],
+ "x-kubernetes-list-type": "map"
+ },
+ "namespaceSelector": {
+ "description": "namespaceSelector defines a label selector for namespaces. If defined, only objects in a namespace with matching labels will be subject to validation. When not specified, objects for validation will not be filtered by namespace.",
+ "default": {},
+ "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector"
+ },
+ "objectSelector": {
+ "description": "objectSelector defines a label selector for objects. If defined, only objects with matching labels will be subject to validation. When not specified, objects for validation will not be filtered by label.",
+ "default": {},
+ "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector"
+ }
+ }
+ },
+ "com.github.openshift.api.apiextensions.v1alpha1.ObservedCRD": {
+ "description": "ObservedCRD contains information about the observed target CRD.",
+ "type": "object",
+ "required": [
+ "uid",
+ "generation"
+ ],
+ "properties": {
+ "generation": {
+ "description": "generation is the observed generation of the CRD. Must be a positive integer (minimum value of 1).",
+ "type": "integer",
+ "format": "int64"
+ },
+ "uid": {
+ "description": "uid is the uid of the observed CRD. Must be a valid UUID consisting of lowercase hexadecimal digits in 5 hyphenated blocks (8-4-4-4-12 format). Length must be between 1 and 36 characters.",
+ "type": "string"
+ }
+ }
+ },
"com.github.openshift.api.apiserver.v1.APIRequestCount": {
"description": "APIRequestCount tracks requests made to an API. The instance name must be of the form `resource.version.group`, matching the resource.\n\nCompatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).",
"type": "object",
@@ -14292,7 +14569,8 @@
"items": {
"type": "string",
"default": ""
- }
+ },
+ "x-kubernetes-list-type": "atomic"
},
"subnets": {
"description": "subnets is a list of subnets. It may contain up to 2 subnets. The list may be either 1 IPv4 subnet, 1 IPv6 subnet, or 1 of each.",
@@ -22141,10 +22419,6 @@
"format": "int64",
"default": 0
},
- "hostPlacement": {
- "description": "hostPlacement configures placement on AWS Dedicated Hosts. This allows admins to assign instances to specific host for a variety of needs including for regulatory compliance, to leverage existing per-socket or per-core software licenses (BYOL), and to gain visibility and control over instance placement on a physical server. When omitted, the instance is not constrained to a dedicated host.",
- "$ref": "#/definitions/com.github.openshift.api.machine.v1beta1.HostPlacement"
- },
"iamInstanceProfile": {
"description": "iamInstanceProfile is a reference to an IAM role to assign to the instance",
"$ref": "#/definitions/com.github.openshift.api.machine.v1beta1.AWSResourceReference"
@@ -23232,11 +23506,11 @@
],
"properties": {
"affinity": {
- "description": "affinity specifies the affinity setting for the instance. Allowed values are AnyAvailable and DedicatedHost. When Affinity is set to DedicatedHost, an instance started onto a specific host always restarts on the same host if stopped. In this scenario, the `dedicatedHost` field must be set. When Affinity is set to AnyAvailable, and you stop and restart the instance, it can be restarted on any available host.",
+ "description": "affinity specifies the affinity setting for the instance. Allowed values are AnyAvailable and DedicatedHost. When Affinity is set to DedicatedHost, an instance started onto a specific host always restarts on the same host if stopped. In this scenario, the `dedicatedHost` field must be set. When Affinity is set to AnyAvailable, and you stop and restart the instance, it can be restarted on any available host. When Affinity is set to AnyAvailable and the `dedicatedHost` field is defined, it runs on specified Dedicated Host, but may move if stopped.",
"type": "string"
},
"dedicatedHost": {
- "description": "dedicatedHost specifies the exact host that an instance should be restarted on if stopped. dedicatedHost is required when 'affinity' is set to DedicatedHost, and forbidden otherwise.",
+ "description": "dedicatedHost specifies the exact host that an instance should be restarted on if stopped. dedicatedHost is required when 'affinity' is set to DedicatedHost, and optional otherwise.",
"$ref": "#/definitions/com.github.openshift.api.machine.v1beta1.DedicatedHost"
}
},
@@ -24016,12 +24290,16 @@
"description": "availabilityZone is the availability zone of the instance",
"type": "string"
},
+ "host": {
+ "description": "host configures placement on AWS Dedicated Hosts. This allows admins to assign instances to specific host for a variety of needs including for regulatory compliance, to leverage existing per-socket or per-core software licenses (BYOL), and to gain visibility and control over instance placement on a physical server. When omitted, the instance is not constrained to a dedicated host.",
+ "$ref": "#/definitions/com.github.openshift.api.machine.v1beta1.HostPlacement"
+ },
"region": {
"description": "region is the region to use to create the instance",
"type": "string"
},
"tenancy": {
- "description": "tenancy indicates if instance should run on shared or single-tenant hardware. There are supported 3 options: default, dedicated and host.",
+ "description": "tenancy indicates if instance should run on shared or single-tenant hardware. There are supported 3 options: default, dedicated and host. When set to default Runs on shared multi-tenant hardware. When dedicated Runs on single-tenant hardware (any dedicated instance hardware). When host and the host object is not provided: Runs on Dedicated Host; best-effort restart on same host. When `host` and `host` object is provided with affinity `dedicatedHost` defined: Runs on specified Dedicated Host.",
"type": "string"
}
}
@@ -39114,6 +39392,983 @@
}
}
},
+ "io.k8s.api.admissionregistration.v1.AuditAnnotation": {
+ "description": "AuditAnnotation describes how to produce an audit annotation for an API request.",
+ "type": "object",
+ "required": [
+ "key",
+ "valueExpression"
+ ],
+ "properties": {
+ "key": {
+ "description": "key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.\n\nThe key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \"{ValidatingAdmissionPolicy name}/{key}\".\n\nIf an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded.\n\nRequired.",
+ "type": "string",
+ "default": ""
+ },
+ "valueExpression": {
+ "description": "valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb.\n\nIf multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list.\n\nRequired.",
+ "type": "string",
+ "default": ""
+ }
+ }
+ },
+ "io.k8s.api.admissionregistration.v1.ExpressionWarning": {
+ "description": "ExpressionWarning is a warning information that targets a specific expression.",
+ "type": "object",
+ "required": [
+ "fieldRef",
+ "warning"
+ ],
+ "properties": {
+ "fieldRef": {
+ "description": "The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\"",
+ "type": "string",
+ "default": ""
+ },
+ "warning": {
+ "description": "The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.",
+ "type": "string",
+ "default": ""
+ }
+ }
+ },
+ "io.k8s.api.admissionregistration.v1.MatchCondition": {
+ "description": "MatchCondition represents a condition which must by fulfilled for a request to be sent to a webhook.",
+ "type": "object",
+ "required": [
+ "name",
+ "expression"
+ ],
+ "properties": {
+ "expression": {
+ "description": "Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:\n\n'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\nDocumentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/\n\nRequired.",
+ "type": "string",
+ "default": ""
+ },
+ "name": {
+ "description": "Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')\n\nRequired.",
+ "type": "string",
+ "default": ""
+ }
+ }
+ },
+ "io.k8s.api.admissionregistration.v1.MatchResources": {
+ "description": "MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)",
+ "type": "object",
+ "properties": {
+ "excludeResourceRules": {
+ "description": "ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)",
+ "type": "array",
+ "items": {
+ "default": {},
+ "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.NamedRuleWithOperations"
+ },
+ "x-kubernetes-list-type": "atomic"
+ },
+ "matchPolicy": {
+ "description": "matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.\n\nDefaults to \"Equivalent\"\n\nPossible enum values:\n - `\"Equivalent\"` means requests should be sent to the webhook if they modify a resource listed in rules via another API group or version.\n - `\"Exact\"` means requests should only be sent to the webhook if they exactly match a given rule.",
+ "type": "string",
+ "enum": [
+ "Equivalent",
+ "Exact"
+ ]
+ },
+ "namespaceSelector": {
+ "description": "NamespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the policy on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything.",
+ "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector"
+ },
+ "objectSelector": {
+ "description": "ObjectSelector decides whether to run the validation based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the cel validation, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything.",
+ "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector"
+ },
+ "resourceRules": {
+ "description": "ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.",
+ "type": "array",
+ "items": {
+ "default": {},
+ "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.NamedRuleWithOperations"
+ },
+ "x-kubernetes-list-type": "atomic"
+ }
+ },
+ "x-kubernetes-map-type": "atomic"
+ },
+ "io.k8s.api.admissionregistration.v1.MutatingWebhook": {
+ "description": "MutatingWebhook describes an admission webhook and the resources and operations it applies to.",
+ "type": "object",
+ "required": [
+ "name",
+ "clientConfig",
+ "sideEffects",
+ "admissionReviewVersions"
+ ],
+ "properties": {
+ "admissionReviewVersions": {
+ "description": "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy.",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "default": ""
+ },
+ "x-kubernetes-list-type": "atomic"
+ },
+ "clientConfig": {
+ "description": "ClientConfig defines how to communicate with the hook. Required",
+ "default": {},
+ "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.WebhookClientConfig"
+ },
+ "failurePolicy": {
+ "description": "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail.\n\nPossible enum values:\n - `\"Fail\"` means that an error calling the webhook causes the admission to fail.\n - `\"Ignore\"` means that an error calling the webhook is ignored.",
+ "type": "string",
+ "enum": [
+ "Fail",
+ "Ignore"
+ ]
+ },
+ "matchConditions": {
+ "description": "MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the webhook is called.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the error is ignored and the webhook is skipped",
+ "type": "array",
+ "items": {
+ "default": {},
+ "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.MatchCondition"
+ },
+ "x-kubernetes-list-map-keys": [
+ "name"
+ ],
+ "x-kubernetes-list-type": "map",
+ "x-kubernetes-patch-merge-key": "name",
+ "x-kubernetes-patch-strategy": "merge"
+ },
+ "matchPolicy": {
+ "description": "matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.\n\nDefaults to \"Equivalent\"\n\nPossible enum values:\n - `\"Equivalent\"` means requests should be sent to the webhook if they modify a resource listed in rules via another API group or version.\n - `\"Exact\"` means requests should only be sent to the webhook if they exactly match a given rule.",
+ "type": "string",
+ "enum": [
+ "Equivalent",
+ "Exact"
+ ]
+ },
+ "name": {
+ "description": "The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.",
+ "type": "string",
+ "default": ""
+ },
+ "namespaceSelector": {
+ "description": "NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything.",
+ "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector"
+ },
+ "objectSelector": {
+ "description": "ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything.",
+ "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector"
+ },
+ "reinvocationPolicy": {
+ "description": "reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\".\n\nNever: the webhook will not be called more than once in a single admission evaluation.\n\nIfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.\n\nDefaults to \"Never\".\n\nPossible enum values:\n - `\"IfNeeded\"` indicates that the webhook may be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call.\n - `\"Never\"` indicates that the webhook must not be called more than once in a single admission evaluation.",
+ "type": "string",
+ "enum": [
+ "IfNeeded",
+ "Never"
+ ]
+ },
+ "rules": {
+ "description": "Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.",
+ "type": "array",
+ "items": {
+ "default": {},
+ "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.RuleWithOperations"
+ },
+ "x-kubernetes-list-type": "atomic"
+ },
+ "sideEffects": {
+ "description": "SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some.\n\nPossible enum values:\n - `\"None\"` means that calling the webhook will have no side effects.\n - `\"NoneOnDryRun\"` means that calling the webhook will possibly have side effects, but if the request being reviewed has the dry-run attribute, the side effects will be suppressed.\n - `\"Some\"` means that calling the webhook will possibly have side effects. If a request with the dry-run attribute would trigger a call to this webhook, the request will instead fail.\n - `\"Unknown\"` means that no information is known about the side effects of calling the webhook. If a request with the dry-run attribute would trigger a call to this webhook, the request will instead fail.",
+ "type": "string",
+ "enum": [
+ "None",
+ "NoneOnDryRun",
+ "Some",
+ "Unknown"
+ ]
+ },
+ "timeoutSeconds": {
+ "description": "TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds.",
+ "type": "integer",
+ "format": "int32"
+ }
+ }
+ },
+ "io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration": {
+ "description": "MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object.",
+ "type": "object",
+ "properties": {
+ "apiVersion": {
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
+ "type": "string"
+ },
+ "kind": {
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
+ "type": "string"
+ },
+ "metadata": {
+ "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.",
+ "default": {},
+ "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta"
+ },
+ "webhooks": {
+ "description": "Webhooks is a list of webhooks and the affected resources and operations.",
+ "type": "array",
+ "items": {
+ "default": {},
+ "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.MutatingWebhook"
+ },
+ "x-kubernetes-list-map-keys": [
+ "name"
+ ],
+ "x-kubernetes-list-type": "map",
+ "x-kubernetes-patch-merge-key": "name",
+ "x-kubernetes-patch-strategy": "merge"
+ }
+ }
+ },
+ "io.k8s.api.admissionregistration.v1.MutatingWebhookConfigurationList": {
+ "description": "MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration.",
+ "type": "object",
+ "required": [
+ "items"
+ ],
+ "properties": {
+ "apiVersion": {
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
+ "type": "string"
+ },
+ "items": {
+ "description": "List of MutatingWebhookConfiguration.",
+ "type": "array",
+ "items": {
+ "default": {},
+ "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration"
+ }
+ },
+ "kind": {
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
+ "type": "string"
+ },
+ "metadata": {
+ "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
+ "default": {},
+ "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta"
+ }
+ }
+ },
+ "io.k8s.api.admissionregistration.v1.NamedRuleWithOperations": {
+ "description": "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.",
+ "type": "object",
+ "properties": {
+ "apiGroups": {
+ "description": "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "default": ""
+ },
+ "x-kubernetes-list-type": "atomic"
+ },
+ "apiVersions": {
+ "description": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "default": ""
+ },
+ "x-kubernetes-list-type": "atomic"
+ },
+ "operations": {
+ "description": "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "default": "",
+ "enum": [
+ "*",
+ "CONNECT",
+ "CREATE",
+ "DELETE",
+ "UPDATE"
+ ]
+ },
+ "x-kubernetes-list-type": "atomic"
+ },
+ "resourceNames": {
+ "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "default": ""
+ },
+ "x-kubernetes-list-type": "atomic"
+ },
+ "resources": {
+ "description": "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "default": ""
+ },
+ "x-kubernetes-list-type": "atomic"
+ },
+ "scope": {
+ "description": "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.",
+ "type": "string",
+ "enum": [
+ "*",
+ "Cluster",
+ "Namespaced"
+ ]
+ }
+ },
+ "x-kubernetes-map-type": "atomic"
+ },
+ "io.k8s.api.admissionregistration.v1.ParamKind": {
+ "description": "ParamKind is a tuple of Group Kind and Version.",
+ "type": "object",
+ "properties": {
+ "apiVersion": {
+ "description": "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.",
+ "type": "string"
+ },
+ "kind": {
+ "description": "Kind is the API kind the resources belong to. Required.",
+ "type": "string"
+ }
+ },
+ "x-kubernetes-map-type": "atomic"
+ },
+ "io.k8s.api.admissionregistration.v1.ParamRef": {
+ "description": "ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "name is the name of the resource being referenced.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.\n\nA single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped.",
+ "type": "string"
+ },
+ "namespace": {
+ "description": "namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields.\n\nA per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.\n\n- If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.\n\n- If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error.",
+ "type": "string"
+ },
+ "parameterNotFoundAction": {
+ "description": "`parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy.\n\nAllowed values are `Allow` or `Deny`\n\nRequired",
+ "type": "string"
+ },
+ "selector": {
+ "description": "selector can be used to match multiple param objects based on their labels. Supply selector: {} to match all resources of the ParamKind.\n\nIf multiple params are found, they are all evaluated with the policy expressions and the results are ANDed together.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.",
+ "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector"
+ }
+ },
+ "x-kubernetes-map-type": "atomic"
+ },
+ "io.k8s.api.admissionregistration.v1.Rule": {
+ "description": "Rule is a tuple of APIGroups, APIVersion, and Resources.It is recommended to make sure that all the tuple expansions are valid.",
+ "type": "object",
+ "properties": {
+ "apiGroups": {
+ "description": "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "default": ""
+ },
+ "x-kubernetes-list-type": "atomic"
+ },
+ "apiVersions": {
+ "description": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "default": ""
+ },
+ "x-kubernetes-list-type": "atomic"
+ },
+ "resources": {
+ "description": "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "default": ""
+ },
+ "x-kubernetes-list-type": "atomic"
+ },
+ "scope": {
+ "description": "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.",
+ "type": "string",
+ "enum": [
+ "*",
+ "Cluster",
+ "Namespaced"
+ ]
+ }
+ }
+ },
+ "io.k8s.api.admissionregistration.v1.RuleWithOperations": {
+ "description": "RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid.",
+ "type": "object",
+ "properties": {
+ "apiGroups": {
+ "description": "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "default": ""
+ },
+ "x-kubernetes-list-type": "atomic"
+ },
+ "apiVersions": {
+ "description": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "default": ""
+ },
+ "x-kubernetes-list-type": "atomic"
+ },
+ "operations": {
+ "description": "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "default": "",
+ "enum": [
+ "*",
+ "CONNECT",
+ "CREATE",
+ "DELETE",
+ "UPDATE"
+ ]
+ },
+ "x-kubernetes-list-type": "atomic"
+ },
+ "resources": {
+ "description": "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "default": ""
+ },
+ "x-kubernetes-list-type": "atomic"
+ },
+ "scope": {
+ "description": "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.",
+ "type": "string",
+ "enum": [
+ "*",
+ "Cluster",
+ "Namespaced"
+ ]
+ }
+ }
+ },
+ "io.k8s.api.admissionregistration.v1.ServiceReference": {
+ "description": "ServiceReference holds a reference to Service.legacy.k8s.io",
+ "type": "object",
+ "required": [
+ "namespace",
+ "name"
+ ],
+ "properties": {
+ "name": {
+ "description": "`name` is the name of the service. Required",
+ "type": "string",
+ "default": ""
+ },
+ "namespace": {
+ "description": "`namespace` is the namespace of the service. Required",
+ "type": "string",
+ "default": ""
+ },
+ "path": {
+ "description": "`path` is an optional URL path which will be sent in any request to this service.",
+ "type": "string"
+ },
+ "port": {
+ "description": "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).",
+ "type": "integer",
+ "format": "int32"
+ }
+ }
+ },
+ "io.k8s.api.admissionregistration.v1.TypeChecking": {
+ "description": "TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy",
+ "type": "object",
+ "properties": {
+ "expressionWarnings": {
+ "description": "The type checking warnings for each expression.",
+ "type": "array",
+ "items": {
+ "default": {},
+ "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ExpressionWarning"
+ },
+ "x-kubernetes-list-type": "atomic"
+ }
+ }
+ },
+ "io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicy": {
+ "description": "ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.",
+ "type": "object",
+ "properties": {
+ "apiVersion": {
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
+ "type": "string"
+ },
+ "kind": {
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
+ "type": "string"
+ },
+ "metadata": {
+ "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.",
+ "default": {},
+ "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta"
+ },
+ "spec": {
+ "description": "Specification of the desired behavior of the ValidatingAdmissionPolicy.",
+ "default": {},
+ "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicySpec"
+ },
+ "status": {
+ "description": "The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy behaves in the expected way. Populated by the system. Read-only.",
+ "default": {},
+ "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyStatus"
+ }
+ }
+ },
+ "io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyBinding": {
+ "description": "ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.\n\nFor a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding.\n\nThe CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.",
+ "type": "object",
+ "properties": {
+ "apiVersion": {
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
+ "type": "string"
+ },
+ "kind": {
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
+ "type": "string"
+ },
+ "metadata": {
+ "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.",
+ "default": {},
+ "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta"
+ },
+ "spec": {
+ "description": "Specification of the desired behavior of the ValidatingAdmissionPolicyBinding.",
+ "default": {},
+ "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyBindingSpec"
+ }
+ }
+ },
+ "io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyBindingList": {
+ "description": "ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.",
+ "type": "object",
+ "required": [
+ "items"
+ ],
+ "properties": {
+ "apiVersion": {
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
+ "type": "string"
+ },
+ "items": {
+ "description": "List of PolicyBinding.",
+ "type": "array",
+ "items": {
+ "default": {},
+ "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyBinding"
+ }
+ },
+ "kind": {
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
+ "type": "string"
+ },
+ "metadata": {
+ "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
+ "default": {},
+ "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta"
+ }
+ }
+ },
+ "io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyBindingSpec": {
+ "description": "ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.",
+ "type": "object",
+ "properties": {
+ "matchResources": {
+ "description": "MatchResources declares what resources match this binding and will be validated by it. Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. If this is unset, all resources matched by the policy are validated by this binding When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required.",
+ "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.MatchResources"
+ },
+ "paramRef": {
+ "description": "paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param.",
+ "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ParamRef"
+ },
+ "policyName": {
+ "description": "PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.",
+ "type": "string"
+ },
+ "validationActions": {
+ "description": "validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.\n\nFailures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy.\n\nvalidationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.\n\nThe supported actions values are:\n\n\"Deny\" specifies that a validation failure results in a denied request.\n\n\"Warn\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.\n\n\"Audit\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\"validation.policy.admission.k8s.io/validation_failure\": \"[{\\\"message\\\": \\\"Invalid value\\\", {\\\"policy\\\": \\\"policy.example.com\\\", {\\\"binding\\\": \\\"policybinding.example.com\\\", {\\\"expressionIndex\\\": \\\"1\\\", {\\\"validationActions\\\": [\\\"Audit\\\"]}]\"`\n\nClients should expect to handle additional values by ignoring any values not recognized.\n\n\"Deny\" and \"Warn\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers.\n\nRequired.",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "default": "",
+ "enum": [
+ "Audit",
+ "Deny",
+ "Warn"
+ ]
+ },
+ "x-kubernetes-list-type": "set"
+ }
+ }
+ },
+ "io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyList": {
+ "description": "ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.",
+ "type": "object",
+ "required": [
+ "items"
+ ],
+ "properties": {
+ "apiVersion": {
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
+ "type": "string"
+ },
+ "items": {
+ "description": "List of ValidatingAdmissionPolicy.",
+ "type": "array",
+ "items": {
+ "default": {},
+ "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicy"
+ }
+ },
+ "kind": {
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
+ "type": "string"
+ },
+ "metadata": {
+ "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
+ "default": {},
+ "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta"
+ }
+ }
+ },
+ "io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicySpec": {
+ "description": "ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.",
+ "type": "object",
+ "properties": {
+ "auditAnnotations": {
+ "description": "auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required.",
+ "type": "array",
+ "items": {
+ "default": {},
+ "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.AuditAnnotation"
+ },
+ "x-kubernetes-list-type": "atomic"
+ },
+ "failurePolicy": {
+ "description": "failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings.\n\nA policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource.\n\nfailurePolicy does not define how validations that evaluate to false are handled.\n\nWhen failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.\n\nAllowed values are Ignore or Fail. Defaults to Fail.\n\nPossible enum values:\n - `\"Fail\"` means that an error calling the webhook causes the admission to fail.\n - `\"Ignore\"` means that an error calling the webhook is ignored.",
+ "type": "string",
+ "enum": [
+ "Fail",
+ "Ignore"
+ ]
+ },
+ "matchConditions": {
+ "description": "MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the policy is skipped",
+ "type": "array",
+ "items": {
+ "default": {},
+ "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.MatchCondition"
+ },
+ "x-kubernetes-list-map-keys": [
+ "name"
+ ],
+ "x-kubernetes-list-type": "map",
+ "x-kubernetes-patch-merge-key": "name",
+ "x-kubernetes-patch-strategy": "merge"
+ },
+ "matchConstraints": {
+ "description": "MatchConstraints specifies what resources this policy is designed to validate. The AdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. Required.",
+ "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.MatchResources"
+ },
+ "paramKind": {
+ "description": "ParamKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null.",
+ "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ParamKind"
+ },
+ "validations": {
+ "description": "Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required.",
+ "type": "array",
+ "items": {
+ "default": {},
+ "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.Validation"
+ },
+ "x-kubernetes-list-type": "atomic"
+ },
+ "variables": {
+ "description": "Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy.\n\nThe expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic.",
+ "type": "array",
+ "items": {
+ "default": {},
+ "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.Variable"
+ },
+ "x-kubernetes-list-map-keys": [
+ "name"
+ ],
+ "x-kubernetes-list-type": "map",
+ "x-kubernetes-patch-merge-key": "name",
+ "x-kubernetes-patch-strategy": "merge"
+ }
+ }
+ },
+ "io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyStatus": {
+ "description": "ValidatingAdmissionPolicyStatus represents the status of an admission validation policy.",
+ "type": "object",
+ "properties": {
+ "conditions": {
+ "description": "The conditions represent the latest available observations of a policy's current state.",
+ "type": "array",
+ "items": {
+ "default": {},
+ "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Condition"
+ },
+ "x-kubernetes-list-map-keys": [
+ "type"
+ ],
+ "x-kubernetes-list-type": "map"
+ },
+ "observedGeneration": {
+ "description": "The generation observed by the controller.",
+ "type": "integer",
+ "format": "int64"
+ },
+ "typeChecking": {
+ "description": "The results of type checking for each expression. Presence of this field indicates the completion of the type checking.",
+ "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.TypeChecking"
+ }
+ }
+ },
+ "io.k8s.api.admissionregistration.v1.ValidatingWebhook": {
+ "description": "ValidatingWebhook describes an admission webhook and the resources and operations it applies to.",
+ "type": "object",
+ "required": [
+ "name",
+ "clientConfig",
+ "sideEffects",
+ "admissionReviewVersions"
+ ],
+ "properties": {
+ "admissionReviewVersions": {
+ "description": "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy.",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "default": ""
+ },
+ "x-kubernetes-list-type": "atomic"
+ },
+ "clientConfig": {
+ "description": "ClientConfig defines how to communicate with the hook. Required",
+ "default": {},
+ "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.WebhookClientConfig"
+ },
+ "failurePolicy": {
+ "description": "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail.\n\nPossible enum values:\n - `\"Fail\"` means that an error calling the webhook causes the admission to fail.\n - `\"Ignore\"` means that an error calling the webhook is ignored.",
+ "type": "string",
+ "enum": [
+ "Fail",
+ "Ignore"
+ ]
+ },
+ "matchConditions": {
+ "description": "MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the webhook is called.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the error is ignored and the webhook is skipped",
+ "type": "array",
+ "items": {
+ "default": {},
+ "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.MatchCondition"
+ },
+ "x-kubernetes-list-map-keys": [
+ "name"
+ ],
+ "x-kubernetes-list-type": "map",
+ "x-kubernetes-patch-merge-key": "name",
+ "x-kubernetes-patch-strategy": "merge"
+ },
+ "matchPolicy": {
+ "description": "matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.\n\nDefaults to \"Equivalent\"\n\nPossible enum values:\n - `\"Equivalent\"` means requests should be sent to the webhook if they modify a resource listed in rules via another API group or version.\n - `\"Exact\"` means requests should only be sent to the webhook if they exactly match a given rule.",
+ "type": "string",
+ "enum": [
+ "Equivalent",
+ "Exact"
+ ]
+ },
+ "name": {
+ "description": "The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.",
+ "type": "string",
+ "default": ""
+ },
+ "namespaceSelector": {
+ "description": "NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything.",
+ "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector"
+ },
+ "objectSelector": {
+ "description": "ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything.",
+ "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector"
+ },
+ "rules": {
+ "description": "Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.",
+ "type": "array",
+ "items": {
+ "default": {},
+ "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.RuleWithOperations"
+ },
+ "x-kubernetes-list-type": "atomic"
+ },
+ "sideEffects": {
+ "description": "SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some.\n\nPossible enum values:\n - `\"None\"` means that calling the webhook will have no side effects.\n - `\"NoneOnDryRun\"` means that calling the webhook will possibly have side effects, but if the request being reviewed has the dry-run attribute, the side effects will be suppressed.\n - `\"Some\"` means that calling the webhook will possibly have side effects. If a request with the dry-run attribute would trigger a call to this webhook, the request will instead fail.\n - `\"Unknown\"` means that no information is known about the side effects of calling the webhook. If a request with the dry-run attribute would trigger a call to this webhook, the request will instead fail.",
+ "type": "string",
+ "enum": [
+ "None",
+ "NoneOnDryRun",
+ "Some",
+ "Unknown"
+ ]
+ },
+ "timeoutSeconds": {
+ "description": "TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds.",
+ "type": "integer",
+ "format": "int32"
+ }
+ }
+ },
+ "io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration": {
+ "description": "ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it.",
+ "type": "object",
+ "properties": {
+ "apiVersion": {
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
+ "type": "string"
+ },
+ "kind": {
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
+ "type": "string"
+ },
+ "metadata": {
+ "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.",
+ "default": {},
+ "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta"
+ },
+ "webhooks": {
+ "description": "Webhooks is a list of webhooks and the affected resources and operations.",
+ "type": "array",
+ "items": {
+ "default": {},
+ "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ValidatingWebhook"
+ },
+ "x-kubernetes-list-map-keys": [
+ "name"
+ ],
+ "x-kubernetes-list-type": "map",
+ "x-kubernetes-patch-merge-key": "name",
+ "x-kubernetes-patch-strategy": "merge"
+ }
+ }
+ },
+ "io.k8s.api.admissionregistration.v1.ValidatingWebhookConfigurationList": {
+ "description": "ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration.",
+ "type": "object",
+ "required": [
+ "items"
+ ],
+ "properties": {
+ "apiVersion": {
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
+ "type": "string"
+ },
+ "items": {
+ "description": "List of ValidatingWebhookConfiguration.",
+ "type": "array",
+ "items": {
+ "default": {},
+ "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration"
+ }
+ },
+ "kind": {
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
+ "type": "string"
+ },
+ "metadata": {
+ "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
+ "default": {},
+ "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta"
+ }
+ }
+ },
+ "io.k8s.api.admissionregistration.v1.Validation": {
+ "description": "Validation specifies the CEL expression which is used to apply the validation.",
+ "type": "object",
+ "required": [
+ "expression"
+ ],
+ "properties": {
+ "expression": {
+ "description": "Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:\n\n- 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.\n For example, a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:\n\t \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\".\nExamples:\n - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"}\n - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"}\n - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"}\n\nEquality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:\n - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and\n non-intersecting elements in `Y` are appended, retaining their partial order.\n - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values\n are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with\n non-intersecting keys are appended, retaining their partial order.\nRequired.",
+ "type": "string",
+ "default": ""
+ },
+ "message": {
+ "description": "Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\".",
+ "type": "string"
+ },
+ "messageExpression": {
+ "description": "messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: \"object.x must be less than max (\"+string(params.max)+\")\"",
+ "type": "string"
+ },
+ "reason": {
+ "description": "Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client.",
+ "type": "string"
+ }
+ }
+ },
+ "io.k8s.api.admissionregistration.v1.Variable": {
+ "description": "Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.",
+ "type": "object",
+ "required": [
+ "name",
+ "expression"
+ ],
+ "properties": {
+ "expression": {
+ "description": "Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.",
+ "type": "string",
+ "default": ""
+ },
+ "name": {
+ "description": "Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`",
+ "type": "string",
+ "default": ""
+ }
+ },
+ "x-kubernetes-map-type": "atomic"
+ },
+ "io.k8s.api.admissionregistration.v1.WebhookClientConfig": {
+ "description": "WebhookClientConfig contains the information to make a TLS connection with the webhook",
+ "type": "object",
+ "properties": {
+ "caBundle": {
+ "description": "`caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.",
+ "type": "string",
+ "format": "byte"
+ },
+ "service": {
+ "description": "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`.",
+ "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ServiceReference"
+ },
+ "url": {
+ "description": "`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified.\n\nThe `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address.\n\nPlease note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster.\n\nThe scheme must be \"https\"; the URL must begin with \"https://\".\n\nA path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier.\n\nAttempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.",
+ "type": "string"
+ }
+ }
+ },
"io.k8s.api.authorization.v1.FieldSelectorAttributes": {
"description": "FieldSelectorAttributes indicates a field limited access. Webhook authors are encouraged to * ensure rawSelector and requirements are not both set * consider the requirements field if set * not try to parse or consider the rawSelector field if set. This is to avoid another CVE-2022-2880 (i.e. getting different systems to agree on how exactly to parse a query is not something we want), see https://www.oxeye.io/resources/golang-parameter-smuggling-attack for more details. For the *SubjectAccessReview endpoints of the kube-apiserver: * If rawSelector is empty and requirements are empty, the request is not limited. * If rawSelector is present and requirements are empty, the rawSelector will be parsed and limited if the parsing succeeds. * If rawSelector is empty and requirements are present, the requirements should be honored * If rawSelector is present and requirements are present, the request is invalid.",
"type": "object",
diff --git a/vendor/modules.txt b/vendor/modules.txt
index b2ac8ff484..5eea7fc330 100644
--- a/vendor/modules.txt
+++ b/vendor/modules.txt
@@ -62,9 +62,11 @@ github.com/modern-go/reflect2
# github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822
## explicit
github.com/munnerz/goautoneg
-# github.com/openshift/api v0.0.0-20251204164930-cd2e40c5883a
+# github.com/openshift/api v0.0.0-20251222154221-d4b2fef98af2
## explicit; go 1.24.0
github.com/openshift/api
+github.com/openshift/api/apiextensions
+github.com/openshift/api/apiextensions/v1alpha1
github.com/openshift/api/apiserver
github.com/openshift/api/apiserver/v1
github.com/openshift/api/apps