metal-stack / gardener-extension-provider-metal

Implementation of the gardener-extension-controller for metal-stack
MIT License
24 stars 11 forks source link

Network isolation validation #391

Closed robertvolkmann closed 3 months ago

robertvolkmann commented 8 months ago

Validate network isolation configuration in a single location rather than performing validation in multiple places

robertvolkmann commented 8 months ago

@vknabel Do want to support empty RegistryMirrors or not? https://github.com/metal-stack/gardener-extension-provider-metal/blob/b38f4e809a4fd20ae5d0b48022f20784a1e32521/pkg/webhook/shoot/mutator.go#L170 https://github.com/metal-stack/gardener-extension-provider-metal/blob/b38f4e809a4fd20ae5d0b48022f20784a1e32521/pkg/webhook/controlplane/ensurer.go#L663

vknabel commented 8 months ago

@robertvolkmann if the network access type is not baseline, the NetworkIsolation and its RegistryMirrors must be set and contain at least one mirror.

majst01 commented 5 months ago

rebase and run in test

vknabel commented 4 months ago

Worked fine in test