Skip to content

feat: Add DNS patch #130

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

Closed
wants to merge 1 commit into from
Closed

Conversation

jimmidyson
Copy link
Member

Depends on #129.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 1, 2023

This PR/issue depends on:

@jimmidyson jimmidyson force-pushed the jimmi/dns-image-repository-patch branch 2 times, most recently from 6e77b09 to 2672f91 Compare September 1, 2023 14:35
@jimmidyson jimmidyson force-pushed the jimmi/dns-image-repository-patch branch from 2672f91 to 9ba6f0b Compare September 1, 2023 14:53
@jimmidyson jimmidyson requested a review from dkoshkin September 1, 2023 17:04
@jimmidyson
Copy link
Member Author

@dkoshkin do we really need to be able to override DNS image repo here? Is it not enough to just be able to override the registry images come from at kubeadmconfig top level that applies to all images?

@dkoshkin
Copy link
Contributor

dkoshkin commented Sep 1, 2023

@dkoshkin do we really need to be able to override DNS image repo here? Is it not enough to just be able to override the registry images come from at kubeadmconfig top level that applies to all images?

I had the same thought for this repo @jimmidyson and why I asked if it was somehow related to API SANs. DKP has a very specific usecase because of how FIPS support works, but for a more generic solution I think having a variable for the registry is more valuable.

@jimmidyson
Copy link
Member Author

For the fips case do we really need to override the DNS registry via "/spec/template/spec/kubeadmConfigSpec/clusterConfiguration/dns/imageRepository" or is it enough to be able just to override "/spec/template/spec/kubeadmConfigSpec/clusterConfiguration/imageRepository" (https://github.com/kubernetes-sigs/cluster-api/blob/82eff49867008365d3b26f82b55ff29a67880aa7/bootstrap/kubeadm/api/v1beta1/kubeadm_types.go#L139)? Why do we need to override the individual component image repositories (which really should be image registry iiuc...)?

@jimmidyson
Copy link
Member Author

We could also just solve that with inline patches on fips cluster classes perhaps in addition to generic external patches 🤔

@jimmidyson
Copy link
Member Author

Ah I see the note that coredns should always be pulled from default k8s registry

@jimmidyson
Copy link
Member Author

Closing - as discussed above this does not appear to be a common enough use case to provide a patch for. This can be handled via inline patches, or a different patch webhook deployment.

@jimmidyson jimmidyson closed this Sep 2, 2023
@jimmidyson jimmidyson deleted the jimmi/dns-image-repository-patch branch September 2, 2023 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants