Skip to content

Commit

Permalink
Fixed decryption in components.
Browse files Browse the repository at this point in the history
Signed-off-by: Yuriy <yuriy@vlasov.pro>
  • Loading branch information
vlasov-y committed Nov 8, 2024
1 parent d7bad03 commit 443c96a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/decryptor/decryptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -697,9 +697,13 @@ func recurseKustomizationFiles(root, path string, visit visitKustomization, visi
return err
}

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

// Recurse over other resources in Kustomization,
// repeating the above logic per item
for _, res := range kus.Resources {
for _, res := range resources {
if !filepath.IsAbs(res) {
res = filepath.Join(path, res)
}
Expand Down

0 comments on commit 443c96a

Please sign in to comment.