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

fix(cmd/provider/main.go): External Secrets Store initialization #66

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

take-five
Copy link

@take-five take-five commented Jun 3, 2024

Description of your changes

Currently, even when command-line flag --enable-external-secret-stores is passed to the generated provider, the feature is not enabled.

Apparently, o.Features.Enable(features.EnableAlphaExternalSecretStores) was missing from the generated code.

I also copied how o.ESSOptions are initialized from one of AWS providers, otherwise the program would crash.

I have:

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

How has this code been tested

I updated cmd/provider/main.go file in the provider I'm currently working on, and tested that I can publish connection secrets with spec.publishConnectionDetailsTo attribute.

Currently, even when command-line flag `--enable-external-secret-stores` is passed to the generated provider, the feature is not enabled.

Apparently, `o.Features.Enable(features.EnableAlphaExternalSecretStores)` was missing from the generated code.

I also copied how `o.ESSOptions` are initialized from [one of AWS providers][1], otherwise the program would crash.

[1]: https://github.com/crossplane-contrib/provider-upjet-aws/blob/main/cmd/provider/acm/zz_main.go

Signed-off-by: Alexey Mikhaylov <amikhailov83@gmail.com>
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.

None yet

1 participant