-
Notifications
You must be signed in to change notification settings - Fork 13
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
kola/kubeadm: test various CNIs #182
Conversation
4500370
to
6d604ee
Compare
kola/tests/kubeadm/templates.go
Outdated
kubectl create -f https://docs.projectcalico.org/manifests/tigera-operator.yaml | ||
kubectl apply -f calico.yaml | ||
{{ end }} | ||
{{ if eq .CNI "flannel" }} | ||
curl -sSL https://raw.githubusercontent.com/flannel-io/flannel/master/Documentation/kube-flannel.yml > kube-flannel.yml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
curl -sSL https://raw.githubusercontent.com/flannel-io/flannel/master/Documentation/kube-flannel.yml > kube-flannel.yml | |
curl -sSfL https://raw.githubusercontent.com/flannel-io/flannel/master/Documentation/kube-flannel.yml > kube-flannel.yml |
We should fail on 404
|
||
|
||
|
||
curl -sSL https://raw.githubusercontent.com/flannel-io/flannel/master/Documentation/kube-flannel.yml > kube-flannel.yml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two small issues with fetching via curl but otherwise feel free to merge
thanks @pothos for reviewing. Comments have been addressed. FYI Once the CI 🟢 I'll rebase and merge. |
this commit adds logic and templates to test more CNIs in a kubernetes context. - calico - flannel - cilium Tests have a common implementation but it differs using templates following the tested CNI Signed-off-by: Mathieu Tortuyaux <[email protected]>
this testdata will assert that the installation scripts are well rendered following the CNI, it also allows to help reproduce issues with the tests using directly the testdata Signed-off-by: Mathieu Tortuyaux <[email protected]>
708bf9d
to
11d3514
Compare
In this PR, we try to cover more kubernetes use cases by testing different CNIs.
How to use
closes: flatcar/Flatcar#309