@@ -616,11 +616,11 @@ func TestCustomizeKnativeService(t *testing.T) {
616616 {"ksvc container ports" , 1 , ksvcNumPorts },
617617 {"ksvc ServiceAccountName is nil" , name , ksvcSAN },
618618 {"ksvc ServiceAccountName not nil" , * runtime .Spec .ServiceAccountName , ksvc .Spec .Template .Spec .ServiceAccountName },
619- {"liveness probe port" , intstr .FromInt32 ( service . Port ) , ksvcLPPort },
619+ {"liveness probe port" , intstr.IntOrString {} , ksvcLPPort },
620620 {"liveness probe TCP socket port" , intstr.IntOrString {}, ksvcLPTCP },
621- {"Readiness probe port" , intstr .FromInt32 ( service . Port ) , ksvcRPPort },
621+ {"Readiness probe port" , intstr.IntOrString {} , ksvcRPPort },
622622 {"Readiness probe TCP socket port" , intstr.IntOrString {}, ksvcRPTCP },
623- {"Startup probe port" , intstr .FromInt32 ( service . Port ) , ksvcSPPort },
623+ {"Startup probe port" , intstr.IntOrString {} , ksvcSPPort },
624624 {"Startup probe TCP socket port" , intstr.IntOrString {}, ksvcSPTCP },
625625 {"expose not set" , "cluster-local" , ksvcLabelNoExpose },
626626 {"expose set to true" , "" , ksvcLabelTrueExpose },
0 commit comments