We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff9c03a commit be07438Copy full SHA for be07438
applylib/applyset/applyset.go
@@ -95,6 +95,8 @@ func New(options Options) (*ApplySet, error) {
95
parent := options.Parent
96
parentRef := &kubectlapply.ApplySetParentRef{Name: parent.Name(), Namespace: parent.Namespace(), RESTMapping: parent.RESTMapping()}
97
98
+ // The tooling string slash cutting is to support the ApplySetTooling struct that kubectlapply.NewApplySet() expects.
99
+ // For instance, 'kpt/v1.0.0' will map to ApplySetTooling{Name: "kpt", Version: "v1.0.0"}.
100
toolName, toolVersion, _ := strings.Cut(options.Tooling, "/")
101
if toolName == "" {
102
toolName = parent.GetSubject().GetObjectKind().GroupVersionKind().Kind
0 commit comments