Sets the flux cli suspend command --reason flag to an empty string
as default and changes the flux resource suspend behavior to only apply the suspend reason annotation when a non-empty reason is provided. Signed-off-by: Travis Mattera <travis@mattera.io>
This commit is contained in:
@@ -49,7 +49,9 @@ func (obj helmRepositoryAdapter) isSuspended() bool {
|
||||
|
||||
func (obj helmRepositoryAdapter) setSuspended(reason string) {
|
||||
obj.HelmRepository.Spec.Suspend = true
|
||||
obj.HelmRepository.Annotations[SuspendReasonAnnotation] = reason
|
||||
if reason != "" {
|
||||
obj.HelmRepository.Annotations[SuspendReasonAnnotation] = reason
|
||||
}
|
||||
}
|
||||
|
||||
func (a helmRepositoryListAdapter) item(i int) suspendable {
|
||||
|
||||
Reference in New Issue
Block a user