mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-12-07 16:45:35 +00:00
apiserver: fix lint issue, defaulting and validation test for flowcontrol v1
This commit is contained in:
@@ -199,7 +199,7 @@ func (s *strategy[ObjectType]) ReviseIfNeeded(objectOps objectLocalOps[ObjectTyp
|
||||
// shouldUpdateSpec inspects the auto-update annotation key and generation field to determine
|
||||
// whether the config object should be auto-updated.
|
||||
func shouldUpdateSpec(accessor metav1.Object) bool {
|
||||
value, _ := accessor.GetAnnotations()[flowcontrolv1.AutoUpdateAnnotationKey]
|
||||
value := accessor.GetAnnotations()[flowcontrolv1.AutoUpdateAnnotationKey]
|
||||
if autoUpdate, err := strconv.ParseBool(value); err == nil {
|
||||
return autoUpdate
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user