mirror of
https://github.com/rancher/rke.git
synced 2025-09-02 23:44:32 +00:00
print version
This commit is contained in:
committed by
Alena Prokharchyk
parent
11c49ae59f
commit
c69d971962
@@ -4,6 +4,8 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/rancher/rke/cluster"
|
||||
"github.com/rancher/rke/hosts"
|
||||
"github.com/rancher/rke/log"
|
||||
@@ -71,6 +73,7 @@ func CertificateCommand() cli.Command {
|
||||
}
|
||||
|
||||
func rotateRKECertificatesFromCli(ctx *cli.Context) error {
|
||||
logrus.Infof("Running RKE version: %v", ctx.App.Version)
|
||||
k8sComponents := ctx.StringSlice("service")
|
||||
rotateCACerts := ctx.Bool("rotate-ca")
|
||||
clusterFile, filePath, err := resolveClusterFile(ctx)
|
||||
@@ -101,6 +104,7 @@ func rotateRKECertificatesFromCli(ctx *cli.Context) error {
|
||||
}
|
||||
|
||||
func generateCSRFromCli(ctx *cli.Context) error {
|
||||
logrus.Infof("Running RKE version: %v", ctx.App.Version)
|
||||
clusterFile, filePath, err := resolveClusterFile(ctx)
|
||||
if err != nil {
|
||||
return fmt.Errorf("Failed to resolve cluster file: %v", err)
|
||||
|
Reference in New Issue
Block a user