Skip to content

Commit

Permalink
Merge pull request #1683 from charles-woshicai/print-success-message
Browse files Browse the repository at this point in the history
feat: display success message while create secrets via `flux` cli.
  • Loading branch information
stefanprodan authored Aug 4, 2021
2 parents 4f4f0d7 + 70f2b50 commit ba1bba1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/flux/create_secret_git.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
1 change: 1 addition & 0 deletions cmd/flux/create_secret_helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
1 change: 1 addition & 0 deletions cmd/flux/create_secret_tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit ba1bba1

Please sign in to comment.