gardener / gardener-extension-provider-azure

Gardener extension controller for the Azure cloud provider (https://azure.microsoft.com).
https://gardener.cloud
Apache License 2.0
10 stars 78 forks source link

Can't use azure dns provider with non-azure infrastructure provider #859

Closed j2L4e closed 3 months ago

j2L4e commented 3 months ago

/area control-plane /kind regression /platform azure

What happened: We run shoots on hetzner cloud. Since hetzner doesn't support managing dns, we use the azure-extension to handle dnsrecords for hcloud shoots. Since #815 the dnsrecord reconciler throws errors because it can't decode a non-azure cloudprofile's providerConfig:

could not decode providerConfig of cloudProfile for 'hcloud': no kind "CloudProfileConfig" is registered for version "hcloud.provider.extensions.gardener.cloud/v1alpha1" in scheme 

sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
    /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.17.3/pkg/internal/controller/controller.go:329
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
    /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.17.3/pkg/internal/controller/controller.go:266
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
    /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.17.3/pkg/internal/controller/controller.go:227

What you expected to happen: The extension should reconcile dnsrecords.

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

kon-angelo commented 3 months ago

Hello @j2L4e. Issue acknowledged, we will try to get a fix going asap.

j2L4e commented 2 months ago

Please reopen. The issue persists for delete operations (see https://github.com/gardener/gardener-extension-provider-azure/blob/cdf897a4c7afabdc4745fb16347d9f275ad9aae0/pkg/controller/dnsrecord/actuator.go#L100C1-L100C68)