mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +00:00
30 lines
553 B
Go
30 lines
553 B
Go
// Copyright 2019 The Kubernetes Authors.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
"sigs.k8s.io/kustomize/cmd/resource/status"
|
|
|
|
// This is here rather than in the libraries because of
|
|
// https://github.com/kubernetes-sigs/kustomize/issues/2060
|
|
_ "k8s.io/client-go/plugin/pkg/client/auth"
|
|
)
|
|
|
|
var root = &cobra.Command{
|
|
Use: "resource",
|
|
Short: "resource reference command",
|
|
}
|
|
|
|
func main() {
|
|
root.AddCommand(status.StatusCommand())
|
|
|
|
if err := root.Execute(); err != nil {
|
|
os.Exit(1)
|
|
}
|
|
}
|