cert-manager/cmd/ctl/main.go
JoshVanL 25ab073fbd
Updates renew command test so that it adds kubeconfig flags which it no
longer inherits

Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-04-30 13:08:28 +01:00

35 lines
956 B
Go

/*
Copyright 2020 The Jetstack cert-manager contributors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package main
import (
"fmt"
"os"
ctlcmd "github.com/jetstack/cert-manager/cmd/ctl/cmd"
utilcmd "github.com/jetstack/cert-manager/pkg/util/cmd"
)
func main() {
stopCh := utilcmd.SetupSignalHandler()
cmd := ctlcmd.NewCertManagerCtlCommand(os.Stdin, os.Stdout, os.Stderr, stopCh)
if err := cmd.Execute(); err != nil {
fmt.Fprintf(os.Stderr, "%s\n", err)
}
}