mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-22 23:51:48 +00:00
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>
This commit is contained in:
parent
46552c5656
commit
59c759e885
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue