Skip to content

Commit 143f2d5

Browse files
vlasov-yYurii Vlasov
authored andcommitted
Fixed decryption in components.
1 parent d7bad03 commit 143f2d5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

internal/decryptor/decryptor.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,9 +697,13 @@ func recurseKustomizationFiles(root, path string, visit visitKustomization, visi
697697
return err
698698
}
699699

700+
// Components may contain resources as well, ...
701+
// ...so we have to process both .resources and .components values
702+
resources := append(kus.Resources, kus.Components...)
703+
700704
// Recurse over other resources in Kustomization,
701705
// repeating the above logic per item
702-
for _, res := range kus.Resources {
706+
for _, res := range resources {
703707
if !filepath.IsAbs(res) {
704708
res = filepath.Join(path, res)
705709
}

0 commit comments

Comments
 (0)