Skip to content

Commit

Permalink
Ensure preserveUnknownFields: false is set in all webhook patches
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
babbageclunk committed Jan 14, 2021
1 parent 76fd708 commit 6339871
Show file tree
Hide file tree
Showing 31 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/crd/patches/webhook_in_apimservices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ kind: CustomResourceDefinition
metadata:
name: apimservices.azure.microsoft.com
spec:
preserveUnknownFields: false
conversion:
strategy: Webhook
webhookClientConfig:
Expand Down
1 change: 1 addition & 0 deletions config/crd/patches/webhook_in_appinsights.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ kind: CustomResourceDefinition
metadata:
name: appinsights.azure.microsoft.com
spec:
preserveUnknownFields: false
conversion:
strategy: Webhook
webhookClientConfig:
Expand Down
1 change: 1 addition & 0 deletions config/crd/patches/webhook_in_appinsightsapikeys.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ kind: CustomResourceDefinition
metadata:
name: appinsightsapikeys.azure.microsoft.com
spec:
preserveUnknownFields: false
conversion:
strategy: Webhook
webhookClientConfig:
Expand Down
1 change: 1 addition & 0 deletions config/crd/patches/webhook_in_azureloadbalancers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ kind: CustomResourceDefinition
metadata:
name: azureloadbalancers.azure.microsoft.com
spec:
preserveUnknownFields: false
conversion:
strategy: Webhook
webhookClientConfig:
Expand Down
1 change: 1 addition & 0 deletions config/crd/patches/webhook_in_azurenetworkinterfaces.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ kind: CustomResourceDefinition
metadata:
name: azurenetworkinterfaces.azure.microsoft.com
spec:
preserveUnknownFields: false
conversion:
strategy: Webhook
webhookClientConfig:
Expand Down
1 change: 1 addition & 0 deletions config/crd/patches/webhook_in_azurepublicipaddresses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ kind: CustomResourceDefinition
metadata:
name: azurepublicipaddresses.azure.microsoft.com
spec:
preserveUnknownFields: false
conversion:
strategy: Webhook
webhookClientConfig:
Expand Down
1 change: 1 addition & 0 deletions config/crd/patches/webhook_in_azuresqlactions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ kind: CustomResourceDefinition
metadata:
name: azuresqlactions.azure.microsoft.com
spec:
preserveUnknownFields: false
conversion:
strategy: Webhook
webhookClientConfig:
Expand Down
1 change: 1 addition & 0 deletions config/crd/patches/webhook_in_azuresqlmanagedusers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ kind: CustomResourceDefinition
metadata:
name: azuresqlmanagedusers.azure.microsoft.com
spec:
preserveUnknownFields: false
conversion:
strategy: Webhook
webhookClientConfig:
Expand Down
1 change: 1 addition & 0 deletions config/crd/patches/webhook_in_azuresqlusers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ kind: CustomResourceDefinition
metadata:
name: azuresqlusers.azure.microsoft.com
spec:
preserveUnknownFields: false
conversion:
strategy: Webhook
webhookClientConfig:
Expand Down
1 change: 1 addition & 0 deletions config/crd/patches/webhook_in_azuresqlvnetrules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ kind: CustomResourceDefinition
metadata:
name: azuresqlvnetrules.azure.microsoft.com
spec:
preserveUnknownFields: false
conversion:
strategy: Webhook
webhookClientConfig:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ kind: CustomResourceDefinition
metadata:
name: azurevirtualmachineextensions.azure.microsoft.com
spec:
preserveUnknownFields: false
conversion:
strategy: Webhook
webhookClientConfig:
Expand Down
1 change: 1 addition & 0 deletions config/crd/patches/webhook_in_azurevirtualmachines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ kind: CustomResourceDefinition
metadata:
name: azurevirtualmachines.azure.microsoft.com
spec:
preserveUnknownFields: false
conversion:
strategy: Webhook
webhookClientConfig:
Expand Down
1 change: 1 addition & 0 deletions config/crd/patches/webhook_in_azurevmscalesets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ kind: CustomResourceDefinition
metadata:
name: azurevmscalesets.azure.microsoft.com
spec:
preserveUnknownFields: false
conversion:
strategy: Webhook
webhookClientConfig:
Expand Down
1 change: 1 addition & 0 deletions config/crd/patches/webhook_in_consumergroups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ kind: CustomResourceDefinition
metadata:
name: consumergroups.azure.microsoft.com
spec:
preserveUnknownFields: false
conversion:
strategy: Webhook
webhookClientConfig:
Expand Down
1 change: 1 addition & 0 deletions config/crd/patches/webhook_in_cosmosdbs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ kind: CustomResourceDefinition
metadata:
name: cosmosdbs.azure.microsoft.com
spec:
preserveUnknownFields: false
conversion:
strategy: Webhook
webhookClientConfig:
Expand Down
1 change: 1 addition & 0 deletions config/crd/patches/webhook_in_eventhubnamespaces.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ kind: CustomResourceDefinition
metadata:
name: eventhubnamespaces.azure.microsoft.com
spec:
preserveUnknownFields: false
conversion:
strategy: Webhook
webhookClientConfig:
Expand Down
1 change: 1 addition & 0 deletions config/crd/patches/webhook_in_eventhubs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ kind: CustomResourceDefinition
metadata:
name: eventhubs.azure.microsoft.com
spec:
preserveUnknownFields: false
conversion:
strategy: Webhook
webhookClientConfig:
Expand Down
1 change: 1 addition & 0 deletions config/crd/patches/webhook_in_keyvaultkeys.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ kind: CustomResourceDefinition
metadata:
name: keyvaultkeys.azure.microsoft.com
spec:
preserveUnknownFields: false
conversion:
strategy: Webhook
webhookClientConfig:
Expand Down
1 change: 1 addition & 0 deletions config/crd/patches/webhook_in_keyvaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ kind: CustomResourceDefinition
metadata:
name: keyvaults.azure.microsoft.com
spec:
preserveUnknownFields: false
conversion:
strategy: Webhook
webhookClientConfig:
Expand Down
1 change: 1 addition & 0 deletions config/crd/patches/webhook_in_mysqldatabases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ kind: CustomResourceDefinition
metadata:
name: mysqldatabases.azure.microsoft.com
spec:
preserveUnknownFields: false
conversion:
strategy: Webhook
webhookClientConfig:
Expand Down
1 change: 1 addition & 0 deletions config/crd/patches/webhook_in_mysqlfirewallrules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ kind: CustomResourceDefinition
metadata:
name: mysqlfirewallrules.azure.microsoft.com
spec:
preserveUnknownFields: false
conversion:
strategy: Webhook
webhookClientConfig:
Expand Down
1 change: 1 addition & 0 deletions config/crd/patches/webhook_in_mysqlvnetrules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ kind: CustomResourceDefinition
metadata:
name: mysqlvnetrules.azure.microsoft.com
spec:
preserveUnknownFields: false
conversion:
strategy: Webhook
webhookClientConfig:
Expand Down
1 change: 1 addition & 0 deletions config/crd/patches/webhook_in_postgresqlfirewallrules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ kind: CustomResourceDefinition
metadata:
name: postgresqlfirewallrules.azure.microsoft.com
spec:
preserveUnknownFields: false
conversion:
strategy: Webhook
webhookClientConfig:
Expand Down
1 change: 1 addition & 0 deletions config/crd/patches/webhook_in_postgresqlusers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ kind: CustomResourceDefinition
metadata:
name: postgresqlusers.azure.microsoft.com
spec:
preserveUnknownFields: false
conversion:
strategy: Webhook
webhookClientConfig:
Expand Down
1 change: 1 addition & 0 deletions config/crd/patches/webhook_in_postgresqlvnetrules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ kind: CustomResourceDefinition
metadata:
name: postgresqlvnetrules.azure.microsoft.com
spec:
preserveUnknownFields: false
conversion:
strategy: Webhook
webhookClientConfig:
Expand Down
1 change: 1 addition & 0 deletions config/crd/patches/webhook_in_rediscacheactions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ kind: CustomResourceDefinition
metadata:
name: rediscacheactions.azure.microsoft.com
spec:
preserveUnknownFields: false
conversion:
strategy: Webhook
webhookClientConfig:
Expand Down
1 change: 1 addition & 0 deletions config/crd/patches/webhook_in_rediscachefirewallrules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ kind: CustomResourceDefinition
metadata:
name: rediscachefirewallrules.azure.microsoft.com
spec:
preserveUnknownFields: false
conversion:
strategy: Webhook
webhookClientConfig:
Expand Down
1 change: 1 addition & 0 deletions config/crd/patches/webhook_in_rediscaches.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ kind: CustomResourceDefinition
metadata:
name: rediscaches.azure.microsoft.com
spec:
preserveUnknownFields: false
conversion:
strategy: Webhook
webhookClientConfig:
Expand Down
1 change: 1 addition & 0 deletions config/crd/patches/webhook_in_resourcegroups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ kind: CustomResourceDefinition
metadata:
name: resourcegroups.azure.microsoft.com
spec:
preserveUnknownFields: false
conversion:
strategy: Webhook
webhookClientConfig:
Expand Down
1 change: 1 addition & 0 deletions config/crd/patches/webhook_in_storageaccounts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ kind: CustomResourceDefinition
metadata:
name: storageaccounts.azure.microsoft.com
spec:
preserveUnknownFields: false
conversion:
strategy: Webhook
webhookClientConfig:
Expand Down
1 change: 1 addition & 0 deletions config/crd/patches/webhook_in_virtualnetworks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ kind: CustomResourceDefinition
metadata:
name: virtualnetworks.azure.microsoft.com
spec:
preserveUnknownFields: false
conversion:
strategy: Webhook
webhookClientConfig:
Expand Down

0 comments on commit 6339871

Please sign in to comment.