Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentportella committed Aug 26, 2024
1 parent b83e6ef commit 4e0fafc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/k8s/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import (
)

const (
podConditionTypeForUnhealthy = v1.PodReady
doNotDisruptAnnotation = "cyclops.atlassian.com/do-not-disrupt"
doNotDisruptAnnotationRequredValue = "true"
podConditionTypeForUnhealthy = v1.PodReady
doNotDisruptAnnotation = "cyclops.atlassian.com/do-not-disrupt"
doNotDisruptAnnotationRequiredValue = "true"
)

var log = logf.Log.WithName("k8s.pod.go")
Expand Down Expand Up @@ -94,7 +94,7 @@ func PodIsDaemonSet(pod *v1.Pod) bool {
// a node.
func PodCannotBeDisrupted(pod *v1.Pod) bool {
for annotationName, annotationValue := range pod.ObjectMeta.Annotations {
if annotationName == doNotDisruptAnnotation && annotationValue == doNotDisruptAnnotationRequredValue {
if annotationName == doNotDisruptAnnotation && annotationValue == doNotDisruptAnnotationRequiredValue {
return true
}
}
Expand Down

0 comments on commit 4e0fafc

Please sign in to comment.