-
Notifications
You must be signed in to change notification settings - Fork 701
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
Expected imageRepository field to be validated #2758
Comments
Is there a common way/util to verify the |
not sure if a good idea to import the distribution package in kubeadm, might be fine though....can we use the go url stdlib instead? this is mentioned in kubernetes-sigs/cluster-api#7257 |
refer to kubernetes/kubernetes#103849, we plan to migrate to distribution v3, but it is pending due to many new transitive dependencies. |
my vote is to just do some golang stdlib url validation |
If https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/images/image_manager.go#L23 |
ok, +1 |
What keywords did you search in kubeadm issues before filing this one?
validate
imageRepository
Is this a BUG REPORT or FEATURE REQUEST?
Bug report
Versions
kubeadm version (use
kubeadm version
): v1.25.0Environment:
kubectl version
): N/Auname -a
): N/AWhat happened?
I modified a kind kubeadm configuration as follows:
the key bit being
This was then passed into
kubeadm init --config blah.yaml
, and kubeadm proceeded until preflight withWhat you expected to happen?
kubeadm to throw a validation error.
See also kubernetes-sigs/cluster-api#7257
How to reproduce it (as minimally and precisely as possible)?
See above.
Anything else we need to know?
The text was updated successfully, but these errors were encountered: