- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 177 for IntPtr (0.12 sec)
-
pkg/kubelet/kuberuntime/labels_test.go
Exec: &v1.ExecAction{ Command: []string{"action1", "action2"}, }, HTTPGet: &v1.HTTPGetAction{ Path: "path", Host: "host", Port: intstr.FromInt32(8080), Scheme: "scheme", }, TCPSocket: &v1.TCPSocketAction{ Port: intstr.FromString("80"), }, }, } container := &v1.Container{ Name: "test_container", TerminationMessagePath: "/somepath",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 22 22:43:36 UTC 2024 - 7.3K bytes - Viewed (0) -
pkg/apis/apps/v1beta1/defaults_test.go
_ "k8s.io/kubernetes/pkg/apis/core/install" "k8s.io/kubernetes/pkg/features" "k8s.io/utils/ptr" ) func TestSetDefaultDeployment(t *testing.T) { defaultIntOrString := intstr.FromString("25%") differentIntOrString := intstr.FromInt32(5) period := int64(v1.DefaultTerminationGracePeriodSeconds) defaultTemplate := v1.PodTemplateSpec{ Spec: v1.PodSpec{ DNSPolicy: v1.DNSClusterFirst,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 17.4K bytes - Viewed (0) -
pkg/apis/apps/v1beta2/defaults_test.go
"k8s.io/kubernetes/pkg/features" "k8s.io/utils/ptr" ) func TestSetDefaultDaemonSetSpec(t *testing.T) { defaultLabels := map[string]string{"foo": "bar"} maxUnavailable := intstr.FromInt32(1) maxSurge := intstr.FromInt32(0) period := int64(v1.DefaultTerminationGracePeriodSeconds) defaultTemplate := v1.PodTemplateSpec{ Spec: v1.PodSpec{ DNSPolicy: v1.DNSClusterFirst,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 23.4K bytes - Viewed (0) -
pkg/apis/policy/v1beta1/zz_generated.conversion.go
import ( unsafe "unsafe" v1beta1 "k8s.io/api/policy/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" conversion "k8s.io/apimachinery/pkg/conversion" runtime "k8s.io/apimachinery/pkg/runtime" intstr "k8s.io/apimachinery/pkg/util/intstr" policy "k8s.io/kubernetes/pkg/apis/policy" ) func init() { localSchemeBuilder.Register(RegisterConversions) } // RegisterConversions adds conversion functions to the given scheme.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 07 20:44:13 UTC 2023 - 12.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) -
pkg/apis/apps/v1/defaults_test.go
"k8s.io/kubernetes/pkg/features" "k8s.io/utils/ptr" ) func TestSetDefaultDaemonSetSpec(t *testing.T) { defaultLabels := map[string]string{"foo": "bar"} maxUnavailable := intstr.FromInt32(1) maxSurge := intstr.FromInt32(0) period := int64(v1.DefaultTerminationGracePeriodSeconds) defaultTemplate := v1.PodTemplateSpec{ Spec: v1.PodSpec{ DNSPolicy: v1.DNSClusterFirst,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 27.1K bytes - Viewed (0) -
pkg/controller/deployment/util/deployment_util_test.go
}, } for num, test := range tests { t.Run(fmt.Sprintf("%d", num), func(t *testing.T) { var maxSurge, maxUnavail *intstr.IntOrString if test.maxSurge != nil { maxSurge = ptr.To(intstr.FromString(*test.maxSurge)) } if test.maxUnavailable != nil { maxUnavail = ptr.To(intstr.FromString(*test.maxUnavailable)) } surge, unavail, err := ResolveFenceposts(maxSurge, maxUnavail, test.desired)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 08 09:10:50 UTC 2023 - 37.1K bytes - Viewed (0) -
pkg/registry/apps/deployment/strategy_test.go
}, Strategy: apps.DeploymentStrategy{ Type: apps.RollingUpdateDeploymentStrategyType, RollingUpdate: &apps.RollingUpdateDeployment{ MaxSurge: intstr.FromInt32(1), MaxUnavailable: intstr.FromInt32(1), }, }, Template: api.PodTemplateSpec{ ObjectMeta: metav1.ObjectMeta{ Labels: selectorLabels, }, Spec: api.PodSpec{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 07:17:45 UTC 2023 - 9.1K 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) -
pkg/apis/apps/validation/validation_test.go
ds: &apps.RollingUpdateDaemonSet{ MaxUnavailable: intstr.FromString("0%"), MaxSurge: intstr.FromString("0%"), }, expectError: true, }, "invalid: surge enabled, surge and unavailable zero": { ds: &apps.RollingUpdateDaemonSet{ MaxUnavailable: intstr.FromInt32(0), MaxSurge: intstr.FromInt32(0), }, expectError: true, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 111.9K bytes - Viewed (0)