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

adding support for multiple client options on connect #433

Conversation

evgenyKharitonov
Copy link
Contributor

Description of your changes

Adding the ability to set multiple ClientOptions as part of the Provider/ProviderConfig CRD.

Adding endpoint and withoutAuthentication options to be able to connect to other APIs except the default one and without authentication.

Renamed GetAuthInfo method to GetConnectionInfo since it will represent better the functionality after that change.

Fixes #432

I have:

  • [ x] Read and followed Crossplane's contribution process.
  • [ x] Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

Tested locally using kind - Crossplane and PubSub emulator were installed.
Then I ran provider-gcp locally (make run) with port forwarding to the cluster API and to PubSub emulator.
Created new Topic resources and saw that the resource created in the emulator (verified by REST request to emulator's API) and saw in the logs.

Signed-off-by: evgenyKharitonov <evgeny@tailorbrands.com>
@evgenyKharitonov evgenyKharitonov force-pushed the enh/provider_multiple_client_options branch from c816ca6 to 311a7e6 Compare May 9, 2022 15:03
@nadavshatz
Copy link

@negz any thing we can do to get this merged?

@turkenh turkenh requested review from Feggah and turkenh June 2, 2022 17:25
Copy link
Contributor

@turkenh turkenh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution @evgenyKharitonov!

apis/v1alpha3/provider_types.go Outdated Show resolved Hide resolved
pkg/clients/gcp.go Show resolved Hide resolved
Signed-off-by: evgenyKharitonov <evgeny@tailorbrands.com>
@turkenh
Copy link
Contributor

turkenh commented Jun 7, 2022

@evgenyKharitonov please check the following linter error at check-diff step:

go: downloading github.com/cespare/xxhash v1.1.0
11:07:26 [ OK ] go mod tidy
11:07:26 [ .. ] checking that branch is clean
 M apis/v1beta1/zz_generated.deepcopy.go
 M package/crds/gcp.crossplane.io_providerconfigs.yaml
11:07:26 [FAIL]
make: *** [check-diff] Error 1
build/makelib/common.mk:[43](https://github.com/crossplane-contrib/provider-gcp/runs/6772760420?check_suite_focus=true#step:8:44)0: recipe for target 'check-diff' failed

Signed-off-by: evgenyKharitonov <evgeny@tailorbrands.com>
@evgenyKharitonov
Copy link
Contributor Author

@turkenh - updated, thanks, missed that 🙏

@turkenh turkenh merged commit 666c10d into crossplane-contrib:master Jun 7, 2022
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.

Add support to override endpoint and more ClientOptions
3 participants