Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,318 for intPtr (0.2 sec)

  1. 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)
  2. 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)
  3. 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)
  4. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.conversion.go

    		return err
    	}
    	if err := s.AddConversionFunc((*intstr.IntOrString)(nil), (**intstr.IntOrString)(nil), func(a, b interface{}, scope conversion.Scope) error {
    		return Convert_intstr_IntOrString_To_Pointer_intstr_IntOrString(a.(*intstr.IntOrString), b.(**intstr.IntOrString), scope)
    	}); err != nil {
    		return err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 01 10:00:25 UTC 2023
    - 21.6K bytes
    - Viewed (0)
  5. 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)
  6. pkg/apis/policy/v1/zz_generated.conversion.go

    import (
    	unsafe "unsafe"
    
    	v1 "k8s.io/api/policy/v1"
    	metav1 "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: Thu Nov 10 22:32:27 UTC 2022
    - 12.2K bytes
    - Viewed (0)
  7. pkg/registry/policy/poddisruptionbudget/strategy_test.go

    	// Changing MinAvailable?  OK
    	newMinAvailable := intstr.FromString("28%")
    	newPdb.Spec.MinAvailable = &newMinAvailable
    	Strategy.PrepareForUpdate(ctx, newPdb, pdb)
    	errs = Strategy.ValidateUpdate(ctx, newPdb, pdb)
    	if len(errs) != 0 {
    		t.Errorf("Expected no error updating MinAvailable on poddisruptionbudgets.")
    	}
    
    	// Changing MinAvailable to MaxAvailable? OK
    	maxUnavailable := intstr.FromString("28%")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/policy/v1/zz_generated.deepcopy.go

    limitations under the License.
    */
    
    // Code generated by deepcopy-gen. DO NOT EDIT.
    
    package v1
    
    import (
    	metav1 "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: Thu Nov 10 22:32:27 UTC 2022
    - 5.4K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top