Skip to content

Commit

Permalink
special processing for cluster-manager-spoke
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Sep 27, 2024
1 parent 40b1469 commit 20bd037
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pkg/lib/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,13 @@ func ListImages(rootDir string) ([]string, error) {
}

args := []any{"template", entry.Name()}
if files, err := filepath.Glob(filepath.Join(rootDir, entry.Name(), "*.sample.yaml")); err == nil && len(files) > 0 {
for _, file := range files {
args = append(args, "--values="+entry.Name()+"/"+filepath.Base(file))
if entry.Name() == "cluster-manager-spoke" {
args = append(args, "--dry-run=server")
} else {
if files, err := filepath.Glob(filepath.Join(rootDir, entry.Name(), "*.sample.yaml")); err == nil && len(files) > 0 {
for _, file := range files {
args = append(args, "--values="+entry.Name()+"/"+filepath.Base(file))
}
}
}
if out, err := sh.SetDir(rootDir).Command("helm", args...).Output(); err == nil {
Expand Down

0 comments on commit 20bd037

Please sign in to comment.