-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade ytt version to latest release
update the ytt package ref Signed-off-by: Devanshu <[email protected]>
- Loading branch information
1 parent
9182d4f
commit c337b97
Showing
182 changed files
with
7,677 additions
and
3,379 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
15 changes: 8 additions & 7 deletions
15
...m/k14s/ytt/pkg/cmd/template/bulk_input.go → ...el.dev/ytt/pkg/cmd/template/bulk_input.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright 2024 The Carvel Authors. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package template | ||
|
||
// CmdFlags interface decouples this package from | ||
// depending on cobra.Command/flags concrete types. | ||
type CmdFlags interface { | ||
BoolVar(p *bool, name string, value bool, usage string) | ||
BoolVarP(p *bool, name, shorthand string, value bool, usage string) | ||
|
||
StringVar(p *string, name string, value string, usage string) | ||
StringVarP(p *string, name, shorthand string, value string, usage string) | ||
|
||
StringArrayVar(p *[]string, name string, value []string, usage string) | ||
StringArrayVarP(p *[]string, name, shorthand string, value []string, usage string) | ||
|
||
StringSliceVar(p *[]string, name string, value []string, usage string) | ||
StringSliceVarP(p *[]string, name, shorthand string, value []string, usage string) | ||
} |
28 changes: 28 additions & 0 deletions
28
vendor/carvel.dev/ytt/pkg/cmd/template/data_values_file.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Copyright 2024 The Carvel Authors. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package template | ||
|
||
import ( | ||
"carvel.dev/ytt/pkg/yamlmeta" | ||
"carvel.dev/ytt/pkg/yttlibrary/overlay" | ||
) | ||
|
||
type DataValuesFile struct { | ||
doc *yamlmeta.Document | ||
} | ||
|
||
func NewDataValuesFile(doc *yamlmeta.Document) DataValuesFile { | ||
return DataValuesFile{doc.DeepCopy()} | ||
} | ||
|
||
func (f DataValuesFile) AsOverlay() (*yamlmeta.Document, error) { | ||
doc := f.doc.DeepCopy() | ||
|
||
err := overlay.AnnotateForPlainMerge(doc) | ||
if err != nil { | ||
return nil, err | ||
} | ||
|
||
return doc, nil | ||
} |
Oops, something went wrong.