-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
k8s integration tests #4569
k8s integration tests #4569
Conversation
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.
LGTM
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.
Nice job @juliens 👏
Few comments though
os.Remove("./resources/compose/output/kubeconfig.yaml") | ||
} | ||
|
||
func parseK8sYaml(fileR []byte) []runtime.Object { |
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.
OMG this section is absolutely so sexy!
Real question: are we really supposed to do that manually?
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.
I tried to find the best solution and I found this kubernetes/client-go#193
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.
Awesome work so far! A few little questions!
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.
LGTM
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.
👀
Co-Authored-By: juliens <julien.salleyron@gmail.com>
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.
LGTM
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.
Nice one! 👍
Besides k3s, there's also the possibility to use "kind". Mostly FYI though in case we run into troubles with k3s since it's still fairly new.
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.
LGTM
Indeed, but we were using kind in integration tests on another project and we ended up switching to k3s because:
|
@emile that's very interesting to know, thanks. 👍 |
What does this PR do?
Add integration tests on kubernetes.
Motivation
Have tests on kubernetes providers
More
Additional Notes
For this, we use /~https://github.com/rancher/k3s.
As k3s generate a
kubeconfig.yaml
, I add the ability to use theKUBECONFIG
env var in Traefik.