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

Import auth to support different platforms #4494

Merged
merged 1 commit into from
Jan 23, 2023

Conversation

luolanzone
Copy link
Contributor

Antctl failed to talk with GCP cluster and it shows: Error: no Auth Provider found for name "gcp". According to the example of client-go, we need to import auth package to support different public platform's authentication.

Here is the sample code:
https://github.com/kubernetes/client-go/blob/master/examples/out-of-cluster-client-configuration/main.go#L33-L40

Signed-off-by: Lan Luo [email protected]

Antctl failed to talk with GCP cluster and it shows:
`Error: no Auth Provider found for name "gcp"`. According to
the example of client-go, we need to import auth package to
support different public platform's authentication.

Signed-off-by: Lan Luo <[email protected]>
@codecov
Copy link

codecov bot commented Dec 19, 2022

Codecov Report

Merging #4494 (4eb523a) into main (113fe92) will decrease coverage by 1.05%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4494      +/-   ##
==========================================
- Coverage   67.87%   66.82%   -1.05%     
==========================================
  Files         402      404       +2     
  Lines       57284    60366    +3082     
==========================================
+ Hits        38879    40339    +1460     
- Misses      15707    17329    +1622     
  Partials     2698     2698              
Flag Coverage Δ
e2e-tests 38.28% <ø> (?)
integration-tests 34.63% <ø> (+0.02%) ⬆️
kind-e2e-tests 46.26% <ø> (-1.29%) ⬇️
unit-tests 56.43% <ø> (-0.01%) ⬇️
Impacted Files Coverage Δ
pkg/antctl/runtime/runtime.go 36.66% <ø> (ø)
pkg/ipfix/ipfix_intermediate.go 0.00% <0.00%> (-90.91%) ⬇️
pkg/ipfix/ipfix_collector.go 0.00% <0.00%> (-83.34%) ⬇️
pkg/flowaggregator/certificate.go 0.00% <0.00%> (-75.53%) ⬇️
pkg/flowaggregator/exporter/utils.go 0.00% <0.00%> (-72.73%) ⬇️
pkg/flowaggregator/apiserver/apiserver.go 4.61% <0.00%> (-58.47%) ⬇️
pkg/ipfix/ipfix_process.go 31.25% <0.00%> (-50.00%) ⬇️
pkg/features/antrea_features.go 64.10% <0.00%> (-35.90%) ⬇️
pkg/flowaggregator/flowaggregator.go 36.62% <0.00%> (-31.80%) ⬇️
pkg/flowaggregator/exporter/ipfix.go 36.47% <0.00%> (-26.64%) ⬇️
... and 59 more

@luolanzone
Copy link
Contributor Author

@jianjuns @tnqn @antoninbas could you take a look at this tiny PR? thanks.

@antoninbas
Copy link
Contributor

/test-all

@antoninbas antoninbas merged commit 4de4392 into antrea-io:main Jan 23, 2023
@antoninbas
Copy link
Contributor

@luolanzone do you want to backport this?

@luolanzone luolanzone deleted the more-auths branch January 28, 2023 00:46
@luolanzone
Copy link
Contributor Author

@antoninbas I think it's better to backport this, any suggestion? or which version we should backport to?

@antoninbas
Copy link
Contributor

@antoninbas I think it's better to backport this, any suggestion? or which version we should backport to?

It's up to you. Backporting it to v1.10 may be a good idea.

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

Successfully merging this pull request may close these issues.

2 participants