- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 1,078 for intPtr (0.21 sec)
-
pkg/apis/apps/v1/defaults.go
if strategy.RollingUpdate.MaxUnavailable == nil { // Set default MaxUnavailable as 25% by default. maxUnavailable := intstr.FromString("25%") strategy.RollingUpdate.MaxUnavailable = &maxUnavailable } if strategy.RollingUpdate.MaxSurge == nil { // Set default MaxSurge as 25% by default. maxSurge := intstr.FromString("25%") strategy.RollingUpdate.MaxSurge = &maxSurge } } if obj.Spec.RevisionHistoryLimit == nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 08 09:10:50 UTC 2023 - 5.4K bytes - Viewed (0) -
pkg/apis/extensions/v1beta1/conversion_test.go
package v1beta1 import ( "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "k8s.io/api/extensions/v1beta1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/util/intstr" "k8s.io/kubernetes/pkg/apis/networking" ) func TestIngressBackendConversion(t *testing.T) { scheme := runtime.NewScheme() assert.NoError(t, RegisterConversions(scheme)) tests := map[string]struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 07:16:15 UTC 2023 - 3K bytes - Viewed (0) -
pkg/apis/networking/v1beta1/conversion.go
return err } if in.Service != nil { out.ServiceName = in.Service.Name if len(in.Service.Port.Name) > 0 { out.ServicePort = intstr.FromString(in.Service.Port.Name) } else { out.ServicePort = intstr.FromInt32(in.Service.Port.Number) } } return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 07:16:15 UTC 2023 - 2.8K bytes - Viewed (0) -
staging/src/k8s.io/client-go/applyconfigurations/apps/v1beta1/rollingupdatestatefulsetstrategy.go
package v1beta1 import ( intstr "k8s.io/apimachinery/pkg/util/intstr" ) // RollingUpdateStatefulSetStrategyApplyConfiguration represents an declarative configuration of the RollingUpdateStatefulSetStrategy type for use // with apply. type RollingUpdateStatefulSetStrategyApplyConfiguration struct { Partition *int32 `json:"partition,omitempty"` MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty"` }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 28 18:01:05 UTC 2022 - 2.3K bytes - Viewed (0) -
pilot/pkg/serviceregistry/kube/controller/util.go
portName := svcPort.TargetPort switch portName.Type { case intstr.String: name := portName.StrVal for _, container := range pod.Spec.Containers { for _, port := range container.Ports { if port.Name == name && port.Protocol == svcPort.Protocol { return int(port.ContainerPort), nil } } } case intstr.Int: return portName.IntValue(), nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jul 28 02:01:47 UTC 2023 - 6.1K bytes - Viewed (0) -
staging/src/k8s.io/client-go/applyconfigurations/core/v1/httpgetaction.go
package v1 import ( v1 "k8s.io/api/core/v1" intstr "k8s.io/apimachinery/pkg/util/intstr" ) // HTTPGetActionApplyConfiguration represents an declarative configuration of the HTTPGetAction type for use // with apply. type HTTPGetActionApplyConfiguration struct { Path *string `json:"path,omitempty"` Port *intstr.IntOrString `json:"port,omitempty"`
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 04 18:31:34 UTC 2021 - 3.6K bytes - Viewed (0) -
pkg/apis/extensions/v1beta1/defaults.go
if updateStrategy.RollingUpdate.MaxUnavailable == nil { // Set default MaxUnavailable as 1 by default. maxUnavailable := intstr.FromInt32(1) updateStrategy.RollingUpdate.MaxUnavailable = &maxUnavailable } if updateStrategy.RollingUpdate.MaxSurge == nil { // Set default MaxSurge as 0 by default. maxSurge := intstr.FromInt32(0) updateStrategy.RollingUpdate.MaxSurge = &maxSurge } } if obj.Spec.RevisionHistoryLimit == nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 07:16:15 UTC 2023 - 5.3K bytes - Viewed (0) -
pkg/registry/networking/networkpolicy/strategy_test.go
MatchLabels: map[string]string{"c": "d"}, }, }, }, } ports := []networking.NetworkPolicyPort{ { Protocol: &protocolTCP, Port: &intstr.IntOrString{Type: intstr.Int, IntVal: 31000}, }, } ingress.Ports = ports egress.Ports = ports if hasEndPort { ingress.Ports[0].EndPort = &endPort egress.Ports[0].EndPort = &endPort }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 18:19:25 UTC 2023 - 2.9K bytes - Viewed (0) -
pkg/kube/inject/app_probe.go
return nil } var probePort *intstr.IntOrString if p.HTTPGet != nil { probePort = &p.HTTPGet.Port } else { probePort = &p.TCPSocket.Port } if probePort.Type == intstr.String { port, exists := portMap[probePort.StrVal] if !exists { return nil } *probePort = intstr.FromInt32(port) } else if probePort.IntVal == targetPort {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Aug 04 15:06:24 UTC 2023 - 8.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/conversion.go
// +k8s:conversion-fn=copy-only func Convert_intstr_IntOrString_To_intstr_IntOrString(in, out *intstr.IntOrString, s conversion.Scope) error { *out = *in return nil } func Convert_Pointer_intstr_IntOrString_To_intstr_IntOrString(in **intstr.IntOrString, out *intstr.IntOrString, s conversion.Scope) error { if *in == nil { *out = intstr.IntOrString{} // zero value return nil } *out = **in // copy return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 26 03:49:57 UTC 2020 - 8.8K bytes - Viewed (0)