- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for IntVal (1.96 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/intstr/intstr_test.go
fuzz "github.com/google/gofuzz" ) func TestFromInt(t *testing.T) { i := FromInt(93) if i.Type != Int || i.IntVal != 93 { t.Errorf("Expected IntVal=93, got %+v", i) } } func TestFromInt32(t *testing.T) { i := FromInt32(93) if i.Type != Int || i.IntVal != 93 { t.Errorf("Expected IntVal=93, got %+v", i) } } func TestFromString(t *testing.T) { i := FromString("76")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:09 UTC 2024 - 14.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/intstr/intstr.go
// // +protobuf=true // +protobuf.options.(gogoproto.goproto_stringer)=false // +k8s:openapi-gen=true type IntOrString struct { Type Type `protobuf:"varint,1,opt,name=type,casttype=Type"` IntVal int32 `protobuf:"varint,2,opt,name=intVal"` StrVal string `protobuf:"bytes,3,opt,name=strVal"` } // Type represents the stored type of IntOrString. type Type int64 const ( Int Type = iota // The IntOrString holds an int.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:09 UTC 2024 - 7.8K bytes - Viewed (0) -
pkg/kube/apimirror/probe.go
) type IntOrString struct { Type Type IntVal int32 StrVal string } // UnmarshalJSON implements the json.Unmarshaller interface. func (intstr *IntOrString) UnmarshalJSON(value []byte) error { if value[0] == '"' { intstr.Type = String return json.Unmarshal(value, &intstr.StrVal) } intstr.Type = Int return json.Unmarshal(value, &intstr.IntVal) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 15:07:03 UTC 2024 - 4.4K bytes - Viewed (0) -
pilot/cmd/pilot-agent/status/server_test.go
HTTPGet: &apimirror.HTTPGetAction{ Path: "/hello/sunnyvale", Port: apimirror.IntOrString{IntVal: int32(appPort)}, }, }, "/app-health/hello-world/livez": &Prober{ HTTPGet: &apimirror.HTTPGetAction{ Port: apimirror.IntOrString{IntVal: int32(appPort)}, }, }, } simpleTCPConfig := KubeAppProbers{ "/app-health/hello-world/readyz": &Prober{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 15:07:03 UTC 2024 - 42.6K bytes - Viewed (0) -
pilot/pkg/serviceregistry/kube/controller/controller_test.go
TargetPort: intstr.IntOrString{Type: intstr.Int, IntVal: 7442}, }, { Name: "tcp-8443", Port: 8443, Protocol: "TCP", TargetPort: intstr.IntOrString{Type: intstr.Int, IntVal: 7442}, }, { Name: "http-7557", Port: 7557, Protocol: "TCP", TargetPort: intstr.IntOrString{Type: intstr.Int, IntVal: 7442}, }, },
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 85K bytes - Viewed (0) -
pilot/pkg/serviceregistry/kube/controller/ambient/services.go
ports := make([]*workloadapi.Port, 0, len(svc.Spec.Ports)) for _, p := range svc.Spec.Ports { ports = append(ports, &workloadapi.Port{ ServicePort: uint32(p.Port), TargetPort: uint32(p.TargetPort.IntVal), }) } addresses, err := slices.MapErr(getVIPs(svc), a.toNetworkAddress) if err != nil { log.Warnf("fail to parse service %v: %v", config.NamespacedName(svc), err) return nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 05 12:29:55 UTC 2024 - 7.6K bytes - Viewed (0) -
pilot/pkg/serviceregistry/serviceregistry_test.go
t.Helper() // avoid mutating input svc = svc.DeepCopy() // simulate actual k8s behavior for i, port := range svc.Spec.Ports { if port.TargetPort.IntVal == 0 && port.TargetPort.StrVal == "" { svc.Spec.Ports[i].TargetPort.IntVal = port.Port } } _, err := c.CoreV1().Services(svc.Namespace).Create(context.Background(), svc, metav1.CreateOptions{}) if kerrors.IsAlreadyExists(err) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 51.2K bytes - Viewed (0) -
operator/pkg/apis/istio/v1alpha1/validation/validation.go
if p.TargetPort != nil && p.TargetPort.Type == int64(intstr.String) { // Do not validate named ports continue } if p.TargetPort != nil && p.TargetPort.Type == int64(intstr.Int) { tp = int(p.TargetPort.IntVal.GetValue()) } if tp == 0 && p.Port > 1024 { // Target port defaults to port. If its >1024, it is safe. continue } if tp < 1024 {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 16 20:02:28 UTC 2024 - 14.9K bytes - Viewed (0) -
api/api-rules/violation_exceptions.list
API rule violation: names_match,k8s.io/apimachinery/pkg/runtime,Unknown,ContentType API rule violation: names_match,k8s.io/apimachinery/pkg/util/intstr,IntOrString,IntVal API rule violation: names_match,k8s.io/apimachinery/pkg/util/intstr,IntOrString,StrVal API rule violation: names_match,k8s.io/apimachinery/pkg/util/intstr,IntOrString,Type
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 27 02:59:09 UTC 2024 - 29.9K bytes - Viewed (0) -
operator/pkg/apis/istio/v1alpha1/values_types.proto
// // +protobuf=true // +protobuf.options.(gogoproto.goproto_stringer)=false // +k8s:openapi-gen=true message IntOrString { int64 type = 1; google.protobuf.Int32Value intVal = 2; google.protobuf.StringValue strVal = 3;
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jun 03 01:55:05 UTC 2024 - 57.2K bytes - Viewed (0)