Update cmd/flux/suspend.go

Set annotation key string to suspend.toolkit.fluxcd.io/reason

Co-authored-by: Stefan Prodan <stefan.prodan@gmail.com>
Signed-off-by: Travis Mattera <travis@mattera.io>
pull/4232/head
Travis Mattera 2 years ago committed by GitHub
parent 46552c5656
commit 59c759e885
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -44,7 +44,7 @@ func init() {
suspendCmd.PersistentFlags().BoolVarP(&suspendArgs.all, "all", "", false, suspendCmd.PersistentFlags().BoolVarP(&suspendArgs.all, "all", "", false,
"suspend all resources in that namespace") "suspend all resources in that namespace")
suspendCmd.PersistentFlags().StringVarP(&suspendArgs.reason, "reason", "r", "suspended", suspendCmd.PersistentFlags().StringVarP(&suspendArgs.reason, "reason", "r", "suspended",
"set a reason for why the resource is suspended") "set a reason for why the resource is suspended, the reason will show up under the suspend.toolkit.fluxcd.io/reason annotation")
rootCmd.AddCommand(suspendCmd) rootCmd.AddCommand(suspendCmd)
} }

Loading…
Cancel
Save