Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

external-dns secret not copied on non-aws platforms #85

Open
jharting opened this issue Oct 5, 2022 · 0 comments
Open

external-dns secret not copied on non-aws platforms #85

jharting opened this issue Oct 5, 2022 · 0 comments
Assignees

Comments

@jharting
Copy link
Contributor

jharting commented Oct 5, 2022

When running on non-aws platform or (aws platform which fails to be detected properly - see #84) the secret with external-dns configuration fails to be copied. This because the target namespace (hypershift) is only created by the installer if aws platform is detected:

// Seed the hypershift namespace, the uninstall will remove this namespace.
ns := &corev1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: hypershiftOperatorKey.Namespace}}
if err := c.spokeUncachedClient.Get(ctx, client.ObjectKeyFromObject(ns), ns); err != nil {
if apierrors.IsNotFound(err) {
if err := c.spokeUncachedClient.Create(ctx, ns); err != nil {
return err
}
} else {
return err
}
}

If this code block is skipped, the call to create the secret on the spoke cluster fails due to the missing namespace:

if err := c.createSpokeSecret(ctx, sExtDNS); err != nil {

@rokej rokej self-assigned this Nov 1, 2022
@philipwu08 philipwu08 self-assigned this Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants