kep-3716 GA, remove feature gate

This commit is contained in:
Igor Velichkovich
2024-02-28 10:45:51 -06:00
parent 30a68e4ad4
commit a51a5b4622
18 changed files with 15 additions and 733 deletions

View File

@@ -46,8 +46,6 @@ func (mutatingWebhookConfigurationStrategy) NamespaceScoped() bool {
func (mutatingWebhookConfigurationStrategy) PrepareForCreate(ctx context.Context, obj runtime.Object) {
ic := obj.(*admissionregistration.MutatingWebhookConfiguration)
ic.Generation = 1
admissionregistration.DropDisabledMutatingWebhookConfigurationFields(ic, nil)
}
// WarningsOnCreate returns warnings for the creation of the given object.
@@ -60,7 +58,6 @@ func (mutatingWebhookConfigurationStrategy) PrepareForUpdate(ctx context.Context
newIC := obj.(*admissionregistration.MutatingWebhookConfiguration)
oldIC := old.(*admissionregistration.MutatingWebhookConfiguration)
admissionregistration.DropDisabledMutatingWebhookConfigurationFields(newIC, oldIC)
// Any changes to the spec increment the generation number, any changes to the
// status should reflect the generation number of the corresponding object.
// See metav1.ObjectMeta description for more information on Generation.

View File

@@ -46,8 +46,6 @@ func (validatingWebhookConfigurationStrategy) NamespaceScoped() bool {
func (validatingWebhookConfigurationStrategy) PrepareForCreate(ctx context.Context, obj runtime.Object) {
ic := obj.(*admissionregistration.ValidatingWebhookConfiguration)
ic.Generation = 1
admissionregistration.DropDisabledValidatingWebhookConfigurationFields(ic, nil)
}
// PrepareForUpdate clears fields that are not allowed to be set by end users on update.
@@ -55,7 +53,6 @@ func (validatingWebhookConfigurationStrategy) PrepareForUpdate(ctx context.Conte
newIC := obj.(*admissionregistration.ValidatingWebhookConfiguration)
oldIC := old.(*admissionregistration.ValidatingWebhookConfiguration)
admissionregistration.DropDisabledValidatingWebhookConfigurationFields(newIC, oldIC)
// Any changes to the spec increment the generation number, any changes to the
// status should reflect the generation number of the corresponding object.
// See metav1.ObjectMeta description for more information on Generation.