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

            return(chaos.IsPaused());
        }