Skip to content

Conversation

@vlasov-y
Copy link
Contributor

@vlasov-y vlasov-y commented Nov 8, 2024

Resolves #1235


// Components may contain resources as well, ...
// ...so we have to process both .resources and .components values
resources := append(kus.Resources, kus.Components...)
Copy link
Member

Choose a reason for hiding this comment

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

Please write a test for decrypting an env file found in a component, this should be added to https://github.com/fluxcd/kustomize-controller/blob/main/internal/controller/kustomization_decryptor_test.go

Copy link
Contributor Author

@vlasov-y vlasov-y Nov 10, 2024

Choose a reason for hiding this comment

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

Hi @stefanprodan
Thanks, I have updated the code and added the test.

@stefanprodan stefanprodan changed the title Fixed decryption of resources in Components. Enable decryption of secrets generated by Kustomize components Nov 12, 2024
@stefanprodan stefanprodan added the area/sops SOPS related issues and pull requests label Nov 12, 2024
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks @vlasov-y 🏅

@stefanprodan stefanprodan merged commit 29080cb into fluxcd:main Nov 12, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/sops SOPS related issues and pull requests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flux decrypts SOPS for resources that come from Kustomization, but not from Component

2 participants