copy apply and diff commands from kubectl

This commit is contained in:
Phillip Wittrock
2019-12-12 09:34:45 -08:00
parent 1a3f622207
commit 6dbed7c16c
7 changed files with 532 additions and 0 deletions

19
cmd/kubectl/main.go Normal file
View File

@@ -0,0 +1,19 @@
// Copyright 2019 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package main
import (
"os"
"sigs.k8s.io/kustomize/cmd/kubectl/kubectlcobra"
"sigs.k8s.io/kustomize/kyaml/commandutil"
)
func main() {
// enable the config commands
os.Setenv(commandutil.EnableAlphaCommmandsEnvName, "true")
if err := kubectlcobra.GetCommand(nil).Execute(); err != nil {
os.Exit(1)
}
}