Skip to content

Commit

Permalink
fix: seq node
Browse files Browse the repository at this point in the history
Signed-off-by: Nico Braun <rainbowstack@gmail.com>
  • Loading branch information
bluebrown committed Jan 18, 2024
1 parent 32c37c6 commit dc6a5d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions kioutil/gituri.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ type GitPackageURI struct {
Pkg string `json:"pkg,omitempty" toml:"pkg"`
}

// TODO: appending .git here can cause mismatching git-credentials
func (r *GitPackageURI) String() string {
return fmt.Sprintf("%s.git@%s%s", r.Repo, r.Ref, r.Pkg)
}
Expand Down
2 changes: 2 additions & 0 deletions kioutil/kioutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ func (g GitPackageReader) Read() ([]*yaml.RNode, error) {
PackageFileName: ".krmignore",
IncludeSubpackages: true,
PackagePath: pkgPath,
WrapBareSeqNode: true,
}

if g.SetPathAnnotation {
Expand All @@ -128,6 +129,7 @@ func (g GitPackageReader) Read() ([]*yaml.RNode, error) {

nodes, err := r.Read()
if err != nil {
os.RemoveAll(hostPath)
return nil, fmt.Errorf("read package: %w", err)
}

Expand Down

0 comments on commit dc6a5d3

Please sign in to comment.