From 6339871c832e31c2345ce2db47145522a16d49cf Mon Sep 17 00:00:00 2001 From: Christian Muirhead Date: Thu, 14 Jan 2021 14:21:18 +1300 Subject: [PATCH] Ensure `preserveUnknownFields: false` is set in all webhook patches These were set for all types with version conversions but not the others (which aren't in use since they are still commented out in kustomization.yaml). Turning them on in the rest to remove one step in the process of adding conversion webhooks to types in the future. This setting is required for conversion to work - it seems like the only reason it's not set in the patches is that they were generated by kubebuilder before the setting was mandatory. --- config/crd/patches/webhook_in_apimservices.yaml | 1 + config/crd/patches/webhook_in_appinsights.yaml | 1 + config/crd/patches/webhook_in_appinsightsapikeys.yaml | 1 + config/crd/patches/webhook_in_azureloadbalancers.yaml | 1 + config/crd/patches/webhook_in_azurenetworkinterfaces.yaml | 1 + config/crd/patches/webhook_in_azurepublicipaddresses.yaml | 1 + config/crd/patches/webhook_in_azuresqlactions.yaml | 1 + config/crd/patches/webhook_in_azuresqlmanagedusers.yaml | 1 + config/crd/patches/webhook_in_azuresqlusers.yaml | 1 + config/crd/patches/webhook_in_azuresqlvnetrules.yaml | 1 + config/crd/patches/webhook_in_azurevirtualmachineextensions.yaml | 1 + config/crd/patches/webhook_in_azurevirtualmachines.yaml | 1 + config/crd/patches/webhook_in_azurevmscalesets.yaml | 1 + config/crd/patches/webhook_in_consumergroups.yaml | 1 + config/crd/patches/webhook_in_cosmosdbs.yaml | 1 + config/crd/patches/webhook_in_eventhubnamespaces.yaml | 1 + config/crd/patches/webhook_in_eventhubs.yaml | 1 + config/crd/patches/webhook_in_keyvaultkeys.yaml | 1 + config/crd/patches/webhook_in_keyvaults.yaml | 1 + config/crd/patches/webhook_in_mysqldatabases.yaml | 1 + config/crd/patches/webhook_in_mysqlfirewallrules.yaml | 1 + config/crd/patches/webhook_in_mysqlvnetrules.yaml | 1 + config/crd/patches/webhook_in_postgresqlfirewallrules.yaml | 1 + config/crd/patches/webhook_in_postgresqlusers.yaml | 1 + config/crd/patches/webhook_in_postgresqlvnetrules.yaml | 1 + config/crd/patches/webhook_in_rediscacheactions.yaml | 1 + config/crd/patches/webhook_in_rediscachefirewallrules.yaml | 1 + config/crd/patches/webhook_in_rediscaches.yaml | 1 + config/crd/patches/webhook_in_resourcegroups.yaml | 1 + config/crd/patches/webhook_in_storageaccounts.yaml | 1 + config/crd/patches/webhook_in_virtualnetworks.yaml | 1 + 31 files changed, 31 insertions(+) diff --git a/config/crd/patches/webhook_in_apimservices.yaml b/config/crd/patches/webhook_in_apimservices.yaml index 85b8512fb90..3b89aade0ee 100644 --- a/config/crd/patches/webhook_in_apimservices.yaml +++ b/config/crd/patches/webhook_in_apimservices.yaml @@ -5,6 +5,7 @@ kind: CustomResourceDefinition metadata: name: apimservices.azure.microsoft.com spec: + preserveUnknownFields: false conversion: strategy: Webhook webhookClientConfig: diff --git a/config/crd/patches/webhook_in_appinsights.yaml b/config/crd/patches/webhook_in_appinsights.yaml index f16d2a4a548..ef73a6916e8 100644 --- a/config/crd/patches/webhook_in_appinsights.yaml +++ b/config/crd/patches/webhook_in_appinsights.yaml @@ -5,6 +5,7 @@ kind: CustomResourceDefinition metadata: name: appinsights.azure.microsoft.com spec: + preserveUnknownFields: false conversion: strategy: Webhook webhookClientConfig: diff --git a/config/crd/patches/webhook_in_appinsightsapikeys.yaml b/config/crd/patches/webhook_in_appinsightsapikeys.yaml index 341c2a09ba0..884e9e9de9b 100644 --- a/config/crd/patches/webhook_in_appinsightsapikeys.yaml +++ b/config/crd/patches/webhook_in_appinsightsapikeys.yaml @@ -5,6 +5,7 @@ kind: CustomResourceDefinition metadata: name: appinsightsapikeys.azure.microsoft.com spec: + preserveUnknownFields: false conversion: strategy: Webhook webhookClientConfig: diff --git a/config/crd/patches/webhook_in_azureloadbalancers.yaml b/config/crd/patches/webhook_in_azureloadbalancers.yaml index 7dae7bdc0db..8dbef4c088a 100644 --- a/config/crd/patches/webhook_in_azureloadbalancers.yaml +++ b/config/crd/patches/webhook_in_azureloadbalancers.yaml @@ -5,6 +5,7 @@ kind: CustomResourceDefinition metadata: name: azureloadbalancers.azure.microsoft.com spec: + preserveUnknownFields: false conversion: strategy: Webhook webhookClientConfig: diff --git a/config/crd/patches/webhook_in_azurenetworkinterfaces.yaml b/config/crd/patches/webhook_in_azurenetworkinterfaces.yaml index 8e4b5725094..fb8180b5bf7 100644 --- a/config/crd/patches/webhook_in_azurenetworkinterfaces.yaml +++ b/config/crd/patches/webhook_in_azurenetworkinterfaces.yaml @@ -5,6 +5,7 @@ kind: CustomResourceDefinition metadata: name: azurenetworkinterfaces.azure.microsoft.com spec: + preserveUnknownFields: false conversion: strategy: Webhook webhookClientConfig: diff --git a/config/crd/patches/webhook_in_azurepublicipaddresses.yaml b/config/crd/patches/webhook_in_azurepublicipaddresses.yaml index 049a999d539..55c96e65af4 100644 --- a/config/crd/patches/webhook_in_azurepublicipaddresses.yaml +++ b/config/crd/patches/webhook_in_azurepublicipaddresses.yaml @@ -5,6 +5,7 @@ kind: CustomResourceDefinition metadata: name: azurepublicipaddresses.azure.microsoft.com spec: + preserveUnknownFields: false conversion: strategy: Webhook webhookClientConfig: diff --git a/config/crd/patches/webhook_in_azuresqlactions.yaml b/config/crd/patches/webhook_in_azuresqlactions.yaml index d5229a5ff5d..8f2f6d30dc5 100644 --- a/config/crd/patches/webhook_in_azuresqlactions.yaml +++ b/config/crd/patches/webhook_in_azuresqlactions.yaml @@ -5,6 +5,7 @@ kind: CustomResourceDefinition metadata: name: azuresqlactions.azure.microsoft.com spec: + preserveUnknownFields: false conversion: strategy: Webhook webhookClientConfig: diff --git a/config/crd/patches/webhook_in_azuresqlmanagedusers.yaml b/config/crd/patches/webhook_in_azuresqlmanagedusers.yaml index 1cc51e5e314..1d2165f8ff3 100644 --- a/config/crd/patches/webhook_in_azuresqlmanagedusers.yaml +++ b/config/crd/patches/webhook_in_azuresqlmanagedusers.yaml @@ -5,6 +5,7 @@ kind: CustomResourceDefinition metadata: name: azuresqlmanagedusers.azure.microsoft.com spec: + preserveUnknownFields: false conversion: strategy: Webhook webhookClientConfig: diff --git a/config/crd/patches/webhook_in_azuresqlusers.yaml b/config/crd/patches/webhook_in_azuresqlusers.yaml index e6631886f84..c0dbe258972 100644 --- a/config/crd/patches/webhook_in_azuresqlusers.yaml +++ b/config/crd/patches/webhook_in_azuresqlusers.yaml @@ -5,6 +5,7 @@ kind: CustomResourceDefinition metadata: name: azuresqlusers.azure.microsoft.com spec: + preserveUnknownFields: false conversion: strategy: Webhook webhookClientConfig: diff --git a/config/crd/patches/webhook_in_azuresqlvnetrules.yaml b/config/crd/patches/webhook_in_azuresqlvnetrules.yaml index ccbb0c363c8..fe88d50c231 100644 --- a/config/crd/patches/webhook_in_azuresqlvnetrules.yaml +++ b/config/crd/patches/webhook_in_azuresqlvnetrules.yaml @@ -5,6 +5,7 @@ kind: CustomResourceDefinition metadata: name: azuresqlvnetrules.azure.microsoft.com spec: + preserveUnknownFields: false conversion: strategy: Webhook webhookClientConfig: diff --git a/config/crd/patches/webhook_in_azurevirtualmachineextensions.yaml b/config/crd/patches/webhook_in_azurevirtualmachineextensions.yaml index e5259e6c91d..6fbd0a0853c 100644 --- a/config/crd/patches/webhook_in_azurevirtualmachineextensions.yaml +++ b/config/crd/patches/webhook_in_azurevirtualmachineextensions.yaml @@ -5,6 +5,7 @@ kind: CustomResourceDefinition metadata: name: azurevirtualmachineextensions.azure.microsoft.com spec: + preserveUnknownFields: false conversion: strategy: Webhook webhookClientConfig: diff --git a/config/crd/patches/webhook_in_azurevirtualmachines.yaml b/config/crd/patches/webhook_in_azurevirtualmachines.yaml index c58e0224fdb..7324eb63cdf 100644 --- a/config/crd/patches/webhook_in_azurevirtualmachines.yaml +++ b/config/crd/patches/webhook_in_azurevirtualmachines.yaml @@ -5,6 +5,7 @@ kind: CustomResourceDefinition metadata: name: azurevirtualmachines.azure.microsoft.com spec: + preserveUnknownFields: false conversion: strategy: Webhook webhookClientConfig: diff --git a/config/crd/patches/webhook_in_azurevmscalesets.yaml b/config/crd/patches/webhook_in_azurevmscalesets.yaml index 17b7efc1d18..c29abde4682 100644 --- a/config/crd/patches/webhook_in_azurevmscalesets.yaml +++ b/config/crd/patches/webhook_in_azurevmscalesets.yaml @@ -5,6 +5,7 @@ kind: CustomResourceDefinition metadata: name: azurevmscalesets.azure.microsoft.com spec: + preserveUnknownFields: false conversion: strategy: Webhook webhookClientConfig: diff --git a/config/crd/patches/webhook_in_consumergroups.yaml b/config/crd/patches/webhook_in_consumergroups.yaml index a5050c4c069..e1139117108 100644 --- a/config/crd/patches/webhook_in_consumergroups.yaml +++ b/config/crd/patches/webhook_in_consumergroups.yaml @@ -5,6 +5,7 @@ kind: CustomResourceDefinition metadata: name: consumergroups.azure.microsoft.com spec: + preserveUnknownFields: false conversion: strategy: Webhook webhookClientConfig: diff --git a/config/crd/patches/webhook_in_cosmosdbs.yaml b/config/crd/patches/webhook_in_cosmosdbs.yaml index 3aa6ac3e41c..01b26852822 100644 --- a/config/crd/patches/webhook_in_cosmosdbs.yaml +++ b/config/crd/patches/webhook_in_cosmosdbs.yaml @@ -5,6 +5,7 @@ kind: CustomResourceDefinition metadata: name: cosmosdbs.azure.microsoft.com spec: + preserveUnknownFields: false conversion: strategy: Webhook webhookClientConfig: diff --git a/config/crd/patches/webhook_in_eventhubnamespaces.yaml b/config/crd/patches/webhook_in_eventhubnamespaces.yaml index b2fa6363b34..b2a3d5da233 100644 --- a/config/crd/patches/webhook_in_eventhubnamespaces.yaml +++ b/config/crd/patches/webhook_in_eventhubnamespaces.yaml @@ -5,6 +5,7 @@ kind: CustomResourceDefinition metadata: name: eventhubnamespaces.azure.microsoft.com spec: + preserveUnknownFields: false conversion: strategy: Webhook webhookClientConfig: diff --git a/config/crd/patches/webhook_in_eventhubs.yaml b/config/crd/patches/webhook_in_eventhubs.yaml index 51e9a7c49fa..c1fac62b2b3 100644 --- a/config/crd/patches/webhook_in_eventhubs.yaml +++ b/config/crd/patches/webhook_in_eventhubs.yaml @@ -5,6 +5,7 @@ kind: CustomResourceDefinition metadata: name: eventhubs.azure.microsoft.com spec: + preserveUnknownFields: false conversion: strategy: Webhook webhookClientConfig: diff --git a/config/crd/patches/webhook_in_keyvaultkeys.yaml b/config/crd/patches/webhook_in_keyvaultkeys.yaml index df26a3468bf..1fd373c8eb7 100644 --- a/config/crd/patches/webhook_in_keyvaultkeys.yaml +++ b/config/crd/patches/webhook_in_keyvaultkeys.yaml @@ -5,6 +5,7 @@ kind: CustomResourceDefinition metadata: name: keyvaultkeys.azure.microsoft.com spec: + preserveUnknownFields: false conversion: strategy: Webhook webhookClientConfig: diff --git a/config/crd/patches/webhook_in_keyvaults.yaml b/config/crd/patches/webhook_in_keyvaults.yaml index cd1acfe49d5..76bac0c2735 100644 --- a/config/crd/patches/webhook_in_keyvaults.yaml +++ b/config/crd/patches/webhook_in_keyvaults.yaml @@ -5,6 +5,7 @@ kind: CustomResourceDefinition metadata: name: keyvaults.azure.microsoft.com spec: + preserveUnknownFields: false conversion: strategy: Webhook webhookClientConfig: diff --git a/config/crd/patches/webhook_in_mysqldatabases.yaml b/config/crd/patches/webhook_in_mysqldatabases.yaml index 08748e1b654..07109568e2e 100644 --- a/config/crd/patches/webhook_in_mysqldatabases.yaml +++ b/config/crd/patches/webhook_in_mysqldatabases.yaml @@ -5,6 +5,7 @@ kind: CustomResourceDefinition metadata: name: mysqldatabases.azure.microsoft.com spec: + preserveUnknownFields: false conversion: strategy: Webhook webhookClientConfig: diff --git a/config/crd/patches/webhook_in_mysqlfirewallrules.yaml b/config/crd/patches/webhook_in_mysqlfirewallrules.yaml index ad53d13d302..1b8e34fd5fa 100644 --- a/config/crd/patches/webhook_in_mysqlfirewallrules.yaml +++ b/config/crd/patches/webhook_in_mysqlfirewallrules.yaml @@ -5,6 +5,7 @@ kind: CustomResourceDefinition metadata: name: mysqlfirewallrules.azure.microsoft.com spec: + preserveUnknownFields: false conversion: strategy: Webhook webhookClientConfig: diff --git a/config/crd/patches/webhook_in_mysqlvnetrules.yaml b/config/crd/patches/webhook_in_mysqlvnetrules.yaml index 4e6059a0c7a..bac3d87c879 100644 --- a/config/crd/patches/webhook_in_mysqlvnetrules.yaml +++ b/config/crd/patches/webhook_in_mysqlvnetrules.yaml @@ -5,6 +5,7 @@ kind: CustomResourceDefinition metadata: name: mysqlvnetrules.azure.microsoft.com spec: + preserveUnknownFields: false conversion: strategy: Webhook webhookClientConfig: diff --git a/config/crd/patches/webhook_in_postgresqlfirewallrules.yaml b/config/crd/patches/webhook_in_postgresqlfirewallrules.yaml index 0c05e8d4e07..a188e3d922a 100644 --- a/config/crd/patches/webhook_in_postgresqlfirewallrules.yaml +++ b/config/crd/patches/webhook_in_postgresqlfirewallrules.yaml @@ -5,6 +5,7 @@ kind: CustomResourceDefinition metadata: name: postgresqlfirewallrules.azure.microsoft.com spec: + preserveUnknownFields: false conversion: strategy: Webhook webhookClientConfig: diff --git a/config/crd/patches/webhook_in_postgresqlusers.yaml b/config/crd/patches/webhook_in_postgresqlusers.yaml index c840f36e75e..239d8ffca4e 100644 --- a/config/crd/patches/webhook_in_postgresqlusers.yaml +++ b/config/crd/patches/webhook_in_postgresqlusers.yaml @@ -5,6 +5,7 @@ kind: CustomResourceDefinition metadata: name: postgresqlusers.azure.microsoft.com spec: + preserveUnknownFields: false conversion: strategy: Webhook webhookClientConfig: diff --git a/config/crd/patches/webhook_in_postgresqlvnetrules.yaml b/config/crd/patches/webhook_in_postgresqlvnetrules.yaml index fd5e639181b..1551ee8221c 100644 --- a/config/crd/patches/webhook_in_postgresqlvnetrules.yaml +++ b/config/crd/patches/webhook_in_postgresqlvnetrules.yaml @@ -5,6 +5,7 @@ kind: CustomResourceDefinition metadata: name: postgresqlvnetrules.azure.microsoft.com spec: + preserveUnknownFields: false conversion: strategy: Webhook webhookClientConfig: diff --git a/config/crd/patches/webhook_in_rediscacheactions.yaml b/config/crd/patches/webhook_in_rediscacheactions.yaml index acc05574555..e6cabe3d187 100644 --- a/config/crd/patches/webhook_in_rediscacheactions.yaml +++ b/config/crd/patches/webhook_in_rediscacheactions.yaml @@ -5,6 +5,7 @@ kind: CustomResourceDefinition metadata: name: rediscacheactions.azure.microsoft.com spec: + preserveUnknownFields: false conversion: strategy: Webhook webhookClientConfig: diff --git a/config/crd/patches/webhook_in_rediscachefirewallrules.yaml b/config/crd/patches/webhook_in_rediscachefirewallrules.yaml index 98e5b0f59f4..068e971915c 100644 --- a/config/crd/patches/webhook_in_rediscachefirewallrules.yaml +++ b/config/crd/patches/webhook_in_rediscachefirewallrules.yaml @@ -5,6 +5,7 @@ kind: CustomResourceDefinition metadata: name: rediscachefirewallrules.azure.microsoft.com spec: + preserveUnknownFields: false conversion: strategy: Webhook webhookClientConfig: diff --git a/config/crd/patches/webhook_in_rediscaches.yaml b/config/crd/patches/webhook_in_rediscaches.yaml index 13810ae6400..90f65a50511 100644 --- a/config/crd/patches/webhook_in_rediscaches.yaml +++ b/config/crd/patches/webhook_in_rediscaches.yaml @@ -5,6 +5,7 @@ kind: CustomResourceDefinition metadata: name: rediscaches.azure.microsoft.com spec: + preserveUnknownFields: false conversion: strategy: Webhook webhookClientConfig: diff --git a/config/crd/patches/webhook_in_resourcegroups.yaml b/config/crd/patches/webhook_in_resourcegroups.yaml index 642b0a15ba2..51616a23523 100644 --- a/config/crd/patches/webhook_in_resourcegroups.yaml +++ b/config/crd/patches/webhook_in_resourcegroups.yaml @@ -5,6 +5,7 @@ kind: CustomResourceDefinition metadata: name: resourcegroups.azure.microsoft.com spec: + preserveUnknownFields: false conversion: strategy: Webhook webhookClientConfig: diff --git a/config/crd/patches/webhook_in_storageaccounts.yaml b/config/crd/patches/webhook_in_storageaccounts.yaml index f4a55bfb80f..44511e065d5 100644 --- a/config/crd/patches/webhook_in_storageaccounts.yaml +++ b/config/crd/patches/webhook_in_storageaccounts.yaml @@ -5,6 +5,7 @@ kind: CustomResourceDefinition metadata: name: storageaccounts.azure.microsoft.com spec: + preserveUnknownFields: false conversion: strategy: Webhook webhookClientConfig: diff --git a/config/crd/patches/webhook_in_virtualnetworks.yaml b/config/crd/patches/webhook_in_virtualnetworks.yaml index 2577fea09fc..4e405a707a1 100644 --- a/config/crd/patches/webhook_in_virtualnetworks.yaml +++ b/config/crd/patches/webhook_in_virtualnetworks.yaml @@ -5,6 +5,7 @@ kind: CustomResourceDefinition metadata: name: virtualnetworks.azure.microsoft.com spec: + preserveUnknownFields: false conversion: strategy: Webhook webhookClientConfig: