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 7c45063 commit 3e82b3eCopy full SHA for 3e82b3e
applylib/applyset/applyset.go
@@ -98,6 +98,9 @@ func New(options Options) (*ApplySet, error) {
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
103
+ }
104
tooling := kubectlapply.ApplySetTooling{Name: toolName, Version: toolVersion}
105
106
kapplyset := kubectlapply.NewApplySet(parentRef, tooling, options.RESTMapper)
0 commit comments