-
Notifications
You must be signed in to change notification settings - Fork 17
Update minikube context to detect outdated /etc/hosts file #12
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
Conversation
e979a2d
to
602c2e7
Compare
@@ -25,71 +35,234 @@ fn load_cert_auth() -> String { | |||
.to_string() | |||
} | |||
|
|||
pub struct Option { |
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 break semver requirements. we should keep existing API. it can be mapped new one but old code should work.
|
||
/// create kube context that copy current cluster configuration | ||
pub fn create_dns_context(option: Option) { |
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.
let's keep existing API for compatibility. map to new one
602c2e7
to
6bf8cdc
Compare
Alright, so what I did here was I moved all of the existing code into You can test this out by checking out the
|
Not sure why CI is failing, unit tests work fine on my machine. Failure seems to be related to installing nightly, I wonder if the MacOS nightly rust build is just broken. I wonder if we should mark nightly CI builds as not required for CI to pass. |
Similar failure happening on MacOS. Yes probably should disable nightly for now |
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 work!
Can you remove nightly from CI? Rust tool chain has problem |
6eceb38
to
659598b
Compare
@@ -15,5 +15,6 @@ tracing = "0.1.19" | |||
dirs = "2.0.2" | |||
serde = { version ="1.0.103", features = ['derive'] } |
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.
can you put minikube context as optional feature. put tera and hostfile under that feature set
This is related to infinyon/fluvio#241. This encapsulates the configurations and logic needed to update the "dns context" of minikube (assigning
minikubeCA
).A few points to note:
fluvio cluster set-minikube-context
, which I am updating to match this change.minikube profile list -o json
in order to detect the current IP and port of minikube/etc/hosts
file and minimizes shell code/etc/hosts
rather than shelling out tosed
?