- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 185 for IntPtr (0.28 sec)
-
staging/src/k8s.io/api/policy/v1beta1/zz_generated.deepcopy.go
limitations under the License. */ // Code generated by deepcopy-gen. DO NOT EDIT. package v1beta1 import ( v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" intstr "k8s.io/apimachinery/pkg/util/intstr" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Eviction) DeepCopyInto(out *Eviction) { *out = *in
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 07 20:44:13 UTC 2023 - 5.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/apitesting/roundtrip/construct.go
obj.(*metav1.MicroTime).Time = time.Date(2000+i, 1, 1, 1, 1, 1, i*int(time.Microsecond), time.UTC) } funcs[reflect.TypeOf(&intstr.IntOrString{})] = func(s string, i int, obj interface{}) { // use the string as a string value obj.(*intstr.IntOrString).Type = intstr.String obj.(*intstr.IntOrString).StrVal = s + "Value" } return funcs }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 27 19:12:59 UTC 2023 - 6.5K bytes - Viewed (0) -
pkg/apis/extensions/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 - 8.1K bytes - Viewed (0) -
operator/pkg/object/objects.go
isDefault := func(item any) bool { var ii intstr.IntOrString switch item := item.(type) { case int: ii = intstr.FromInt32(int32(item)) case int64: ii = intstr.FromInt32(int32(item)) case string: ii = intstr.FromString(item) default: ii = intstr.FromInt32(0) } intVal, err := intstr.GetScaledValueFromIntOrPercent(&ii, 100, false) if err != nil || intVal == 0 {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Sep 21 07:16:46 UTC 2023 - 15.5K bytes - Viewed (1) -
istioctl/pkg/describe/describe_test.go
"github.com/google/go-cmp/cmp" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" klabels "k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/util/intstr" apiannotation "istio.io/api/annotation" v1alpha32 "istio.io/api/networking/v1alpha3" "istio.io/client-go/pkg/apis/networking/v1alpha3" "istio.io/istio/istioctl/pkg/cli" "istio.io/istio/istioctl/pkg/util/configdump"
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Mar 28 09:54:01 UTC 2024 - 30.4K bytes - Viewed (0) -
pkg/controller/endpointslice/endpointslice_controller_test.go
}, Spec: v1.ServiceSpec{ Ports: []v1.ServicePort{ {Name: "tcp-example", TargetPort: intstr.FromInt32(80), Protocol: v1.ProtocolTCP}, {Name: "udp-example", TargetPort: intstr.FromInt32(161), Protocol: v1.ProtocolUDP}, {Name: "sctp-example", TargetPort: intstr.FromInt32(3456), Protocol: v1.ProtocolSCTP}, }, Selector: map[string]string{"foo": "bar"},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 08:33:32 UTC 2024 - 65.5K bytes - Viewed (0) -
pkg/controller/deployment/sync_test.go
}, { name: "saturated but broken new replica set does not affect old pods", deployment: newDeployment("foo", 2, nil, ptr.To(intstr.FromInt32(1)), ptr.To(intstr.FromInt32(1)), nil), oldDeployment: newDeployment("foo", 2, nil, ptr.To(intstr.FromInt32(1)), ptr.To(intstr.FromInt32(1)), nil), newRS: func() *apps.ReplicaSet { rs := rs("foo-v2", 2, nil, newTimestamp) rs.Status.AvailableReplicas = 0
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 08 09:10:50 UTC 2023 - 21.1K bytes - Viewed (0) -
pkg/registry/networking/networkpolicy/storage/storage_test.go
object.Spec.Ingress = []networking.NetworkPolicyIngressRule{ { Ports: []networking.NetworkPolicyPort{ { Protocol: &protocolICMP, Port: &intstr.IntOrString{Type: intstr.Int, IntVal: 80}, }, }, }, } return object }, ) } func TestDelete(t *testing.T) { storage, server := newStorage(t) defer server.Terminate(t)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 18:19:25 UTC 2023 - 5K bytes - Viewed (0) -
pkg/apis/apps/v1/conversion_test.go
} } } func TestV1RollingUpdateDeploymentConversion(t *testing.T) { nilIntStr := intstr.IntOrString{} maxUnavailable := intstr.FromInt32(2) maxSurge := intstr.FromInt32(2) testcases := map[string]struct { rollingUpdateDeployment1 *apps.RollingUpdateDeployment rollingUpdateDeployment2 *appsv1.RollingUpdateDeployment }{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 07:16:15 UTC 2023 - 20.1K bytes - Viewed (0) -
pkg/registry/policy/poddisruptionbudget/storage/storage_test.go
*/ package storage import ( "testing" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/fields" "k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/util/intstr" genericapirequest "k8s.io/apiserver/pkg/endpoints/request" "k8s.io/apiserver/pkg/registry/generic" genericregistrytest "k8s.io/apiserver/pkg/registry/generic/testing" "k8s.io/apiserver/pkg/registry/rest"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 07:17:45 UTC 2023 - 5.3K bytes - Viewed (0)