public bool ShouldStartChaos(GenericChaosResource chaos, V1Pod pod)
 {
     if (chaos.Spec.GetTestInstance() != pod.TestInstance())
     {
         return(false);
     }
     return(chaos.IsPaused());
 }
Beispiel #2
0
        public bool ShouldStartChaos(GenericChaosResource chaos, V1Pod pod)
        {
            if (chaos.Spec.Selector.LabelSelectors?.TestInstance != pod.TestInstance())
            {
                return(false);
            }

            return(chaos.IsPaused());
        }