From 70f2b5028f71c893987d412a89e20d29d5e30435 Mon Sep 17 00:00:00 2001 From: Charles Cai Date: Wed, 4 Aug 2021 21:30:14 +0800 Subject: [PATCH] feat: display success message while create secrets via `flux` cli. Signed-off-by: Charles Cai --- cmd/flux/create_secret_git.go | 2 +- cmd/flux/create_secret_helm.go | 1 + cmd/flux/create_secret_tls.go | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/flux/create_secret_git.go b/cmd/flux/create_secret_git.go index 048244ad84..6ac1b0193a 100644 --- a/cmd/flux/create_secret_git.go +++ b/cmd/flux/create_secret_git.go @@ -183,7 +183,7 @@ func createSecretGitCmdRun(cmd *cobra.Command, args []string) error { if err := upsertSecret(ctx, kubeClient, s); err != nil { return err } - logger.Actionf("secret '%s' created in '%s' namespace", name, rootArgs.namespace) + logger.Actionf("git secret '%s' created in '%s' namespace", name, rootArgs.namespace) return nil } diff --git a/cmd/flux/create_secret_helm.go b/cmd/flux/create_secret_helm.go index 77da7a1351..2aaa6ca268 100644 --- a/cmd/flux/create_secret_helm.go +++ b/cmd/flux/create_secret_helm.go @@ -112,5 +112,6 @@ func createSecretHelmCmdRun(cmd *cobra.Command, args []string) error { return err } + logger.Actionf("helm secret '%s' created in '%s' namespace", name, rootArgs.namespace) return nil } diff --git a/cmd/flux/create_secret_tls.go b/cmd/flux/create_secret_tls.go index 59334af67e..1e9f2f8d75 100644 --- a/cmd/flux/create_secret_tls.go +++ b/cmd/flux/create_secret_tls.go @@ -109,5 +109,6 @@ func createSecretTLSCmdRun(cmd *cobra.Command, args []string) error { return err } + logger.Actionf("tls secret '%s' created in '%s' namespace", name, rootArgs.namespace) return nil }