-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Fix K3S start command #7677
Fix K3S start command #7677
Conversation
614726a
to
cfa5310
Compare
Thanks for your contribution, @tgeens ! Can we add a test with |
modules/k3s/src/test/java/org/testcontainers/k3s/Fabric8K3sContainerTest.java
Outdated
Show resolved
Hide resolved
cfa5310
to
bbb2695
Compare
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've left a few comments/suggestions. After that I'll be merging the PR. Thanks again!.
modules/k3s/src/test/java/org/testcontainers/k3s/Fabric8K3sContainerTest.java
Outdated
Show resolved
Hide resolved
modules/k3s/src/test/java/org/testcontainers/k3s/OfficialClientK3sContainerTest.java
Outdated
Show resolved
Hide resolved
bbb2695
to
a160c79
Compare
Hi @tgeens, looks like the wait strategy fails using |
.github/workflows/ci.yml
Outdated
@@ -17,7 +17,7 @@ on: | |||
- 'RELEASING.md' | |||
- '.sdkmanrc' | |||
push: | |||
branches: [ main ] | |||
branches: [ main, k3s-disable-flag ] |
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.
this is not needed
setWaitStrategy( | ||
new LogMessageWaitStrategy() | ||
.withRegEx(".*Node controller sync successful.*") | ||
.withStartupTimeout(Duration.ofMinutes(5)) |
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.
so, 5 min is required? The max should be 1 min for good experience.
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.
Sorry, this were my own tests, I should have done these experiments on a separate branch, not on this PR.
I'm trying to figure out why local ./gradlew :k3s:test
works just fine locally, but not on GHA
6eac96a
to
5557cb3
Compare
5557cb3
to
1103a73
Compare
Before this PR, GHA builds/tests already fail for the following versions:
Note that it works locally with The oldest (minor) version that succeeds with GHA builds is |
7875b23
to
dddddb5
Compare
Thanks for the information, @tgeens! For me even locally fails with the versions you mentioned on M1. It would have been great to test against the minimal version but given our examples were using |
Thanks for your contribution, @tgeens ! This is now merged in |
This PR fixes #6770 by swapping the deprecated/removed
--no-deploy
flag with the replacement flag--disable
This change is backwards compatible and tested with a wide range of versions:
rancher/k3s:v1.17.17-k3s1
rancher/k3s:v1.25.14-k3s1
See: