rudr icon indicating copy to clipboard operation
rudr copied to clipboard

Upgrade kube dependency to support GKE & macOS

Open glyn opened this issue 5 years ago • 2 comments

Is your feature request related to a problem? Please describe. make run fails on macOS with a GKE cluster:

make run
RUST_LOG="rudr=debug,kube=info" RUST_BACKTRACE=short cargo run
    Finished dev [unoptimized + debuginfo] target(s) in 0.32s
     Running `target/debug/rudr`
[2020-01-30T13:39:37Z INFO  rudr] starting server
[2020-01-30T13:39:37Z INFO  rudr] apiserver:https://34.65.118.77
[2020-01-30T13:39:37Z ERROR rudr] Error prechecking CRDs applicationconfigurations: Error { inner: Error(Hyper(Error(Connect, Custom { kind: Other, error: Error { code: -67843, message: "The certificate was not trusted." } })), "https://34.65.118.77/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/applicationconfigurations.core.oam.dev")

Describe the solution you'd like make run should work ok on macOS with a GKE cluster.

The easiest way is to upgrade kube to pick up https://github.com/clux/kube-rs/commit/2b50f0132c76ae2f8ea37ea7188340c577a4b61c.

Describe alternatives you've considered I could use another cluster type, but I'm more comfortable with GKE. Also, this project will eventually need to upgrade kube, so it's only a matter of time.

Additional context See https://github.com/technosophos/rust-k8s-controller/pull/3 for a similar upgrade.

glyn avatar Jan 30 '20 13:01 glyn

Thanks, Glyn, I wonder if you can submit a PR?

ryanzhang-oss avatar Feb 03 '20 05:02 ryanzhang-oss

Thanks, Glyn, I wonder if you can submit a PR?

I'm afraid I won't have the time. When I attempted a quick upgrade, there were over 100 compilation errors.

glyn avatar Feb 03 '20 10:02 glyn