Skip to content
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

Add Azure AKS support #1

Open
velvia opened this issue Apr 19, 2021 · 6 comments
Open

Add Azure AKS support #1

velvia opened this issue Apr 19, 2021 · 6 comments

Comments

@velvia
Copy link

velvia commented Apr 19, 2021

This is an awesome project! Would love if azure support could be added. If I had lots of time could potentially help here.

thread 'main' panicked at 'an error occurred during creating kube client: failed to create the kube client with context

Caused by:
    0: Error loading kubeconfig: Failed exec auth: Authentication with provider azure not supported
    1: Failed exec auth: Authentication with provider azure not supported

Stack backtrace:
   0: std::backtrace_rs::backtrace::libunwind::trace
             at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5
      std::backtrace_rs::backtrace::trace_unsynchronized
             at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
      std::backtrace::Backtrace::create
             at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/std/src/backtrace.rs:327:13
   1: std::backtrace::Backtrace::capture
             at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/std/src/backtrace.rs:295:9
   2: kubesql::main::{{closure}}
   3: tokio::park::thread::CachedParkThread::block_on
   4: tokio::runtime::thread_pool::ThreadPool::block_on
   5: tokio::runtime::Runtime::block_on
   6: kubesql::main
   7: std::sys_common::backtrace::__rust_begin_short_backtrace
   8: std::rt::lang_start::{{closure}}
   9: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once
             at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/core/src/ops/function.rs:259:13
      std::panicking::try::do_call
             at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/std/src/panicking.rs:379:40
      std::panicking::try

@Dentrax
Copy link
Owner

Dentrax commented Apr 19, 2021

Hey @velvia, I'm glad you like it. I think It is a known issue of the underlying lib used to communicate with K8s. Could you please check this issue out? kube-rs/kube#238

@velvia
Copy link
Author

velvia commented Apr 19, 2021 via email

@Dentrax
Copy link
Owner

Dentrax commented Apr 19, 2021

I'm not sure exactly, but maybe you did misconfigure your kubeconfig?

@velvia
Copy link
Author

velvia commented Apr 22, 2021 via email

@Dentrax
Copy link
Owner

Dentrax commented Apr 22, 2021

Hey @clux, sorry for pinging, have you any ideas here? Azure auth method is falling this line, I guess. Have you any idea why azure is commented out?

@clux
Copy link

clux commented Apr 22, 2021

Ah, I think that might be due to a bigger refactor around oauth, sorry :(

We never technically implemented the auth providers right until recently, but I guess it kind of worked anyway. I have opened an issue on our end. Thanks for the heads up.

You can bypass oauth flow by doing service-account style auth. Maybe that's why people have not complained before 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants