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

Merged
merged 3 commits into from
Oct 7, 2024

Conversation

take-five
Copy link
Contributor

@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.

@take-five take-five force-pushed the fix-ess-alpha-feature branch from 4ee25fc to 38d5b4f Compare June 3, 2024 07:27
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 <[email protected]>
@take-five take-five force-pushed the fix-ess-alpha-feature branch from 38d5b4f to 8d880a1 Compare June 3, 2024 07:28
cmd/provider/main.go Outdated Show resolved Hide resolved
@jeanduplessis jeanduplessis merged commit c59039a into crossplane:main Oct 7, 2024
8 checks passed
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