Skip to content

Commit

Permalink
getting chart names
Browse files Browse the repository at this point in the history
  • Loading branch information
jkosik committed Aug 2, 2022
1 parent 704dcbb commit 3acc13e
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,16 +128,29 @@ func main() {
// fmt.Println(imageLines)
for _, i := range imageLines {
image := strings.TrimPrefix(i, "image:")
fmt.Println(strings.TrimSpace(image))
image = strings.TrimSpace(image)
image = strings.Trim(image, "\"")
fmt.Println(image)
}
}
}

fmt.Println("\n===== Visualizing image tree =====\n")
fmt.Println(imageKeys)

chartName := chart.Name()
chartDeps := chart.Dependencies()

fmt.Println(chartName)

// TODO: check if dep contains dep
for _, d := range chartDeps {
fmt.Println(d.Name())
}

x := 1
helmStruct := tree{
0: node{"root", []int{x, 2, 3}},
0: node{chartName, []int{x, 2, 3}},
1: node{"ei", []int{4, 5}},
2: node{"bee", nil},
3: node{"si", nil},
Expand Down

0 comments on commit 3acc13e

Please sign in to comment.