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:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user