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

saveOutputs := false still creating secret #122

Open
oskar-s9s opened this issue Nov 10, 2022 · 2 comments
Open

saveOutputs := false still creating secret #122

oskar-s9s opened this issue Nov 10, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@oskar-s9s
Copy link

https://github.com/isaaguilar/terraform-operator/blob/master/pkg/controllers/terraform_controller.go#L408

Shouldn't this be true by default?

It will create the secret but, the secret will contain no data.
It's very misleading.

@oskar-s9s oskar-s9s changed the title saveOutputs := false saveOutputs := false still creating secret Nov 10, 2022
@isaaguilar
Copy link
Collaborator

Hi @oskar-s9s thanks for asking. I'm not sure if users want that secret to contain the outputs by default. I see one of two options, (a) no secret is created to avoid confusion , or (b) outputs are added by default instead.

I'm going to opt for (a). I don't like the idea of automatically adding the outputs without the users explicit consent.

Both cases means the code needs to be fixed to not create a secret when saveOutputs is false.

@isaaguilar isaaguilar added the bug Something isn't working label Nov 12, 2022
@oskar-s9s
Copy link
Author

oskar-s9s commented Nov 12, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants