Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 136 for IntPtr (0.19 sec)

  1. pkg/apis/apps/v1beta1/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
    - 4.7K bytes
    - Viewed (0)
  2. pkg/api/v1/pod/util_test.go

    	v1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/util/intstr"
    	"k8s.io/apimachinery/pkg/util/sets"
    	"k8s.io/apimachinery/pkg/util/validation/field"
    )
    
    func TestFindPort(t *testing.T) {
    	testCases := []struct {
    		name       string
    		containers []v1.Container
    		port       intstr.IntOrString
    		expected   int
    		pass       bool
    	}{{
    		name:       "valid int, no ports",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 25 11:04:08 UTC 2023
    - 32.1K bytes
    - Viewed (0)
  3. pkg/apis/networking/validation/validation_test.go

    		makeNetworkPolicyCustom(setIngressPorts(
    			makePort(nil, intstr.FromInt32(80), 0),
    			makePort(&protocolTCP, intstr.FromInt32(0), 0),
    			makePort(&protocolTCP, intstr.FromInt32(443), 0),
    			makePort(&protocolUDP, intstr.FromString("dns"), 0),
    			makePort(&protocolSCTP, intstr.FromInt32(7777), 0),
    		)),
    		makeNetworkPolicyCustom(setIngressFromPodSelector("c", "d")),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:06 UTC 2023
    - 73.3K bytes
    - Viewed (0)
  4. common-protos/k8s.io/apimachinery/pkg/util/intstr/generated.proto

    */
    
    
    // This file was autogenerated by go-to-protobuf. Do not edit it manually!
    
    syntax = "proto2";
    
    package k8s.io.apimachinery.pkg.util.intstr;
    
    // Package-wide variables from generator "generated".
    option go_package = "k8s.io/apimachinery/pkg/util/intstr";
    
    // IntOrString is a type that can hold an int32 or a string.  When used in
    // JSON or YAML marshalling and unmarshalling, it produces or consumes the
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  5. pkg/registry/core/service/storage/storage_test.go

    					svctest.MakeServicePort("p", 80, intstr.FromInt32(80), api.ProtocolTCP),
    					svctest.MakeServicePort("q", 443, intstr.FromInt32(443), api.ProtocolTCP)),
    				svctest.SetNodePorts(93)),
    			expectClusterIPs: true,
    			expectNodePorts:  true,
    		},
    		output: svctest.MakeService("foo", svctest.SetTypeNodePort,
    			svctest.SetPorts(
    				svctest.MakeServicePort("p", 80, intstr.FromInt32(80), api.ProtocolTCP),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 440.2K bytes
    - Viewed (0)
  6. pkg/apis/policy/zz_generated.deepcopy.go

    limitations under the License.
    */
    
    // Code generated by deepcopy-gen. DO NOT EDIT.
    
    package policy
    
    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)
  7. 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)
  8. 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 (0)
  9. 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)
  10. 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)
Back to top