Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,697 for intPtr (0.24 sec)

  1. staging/src/k8s.io/client-go/applyconfigurations/apps/v1beta2/rollingupdatedeployment.go

    package v1beta2
    
    import (
    	intstr "k8s.io/apimachinery/pkg/util/intstr"
    )
    
    // RollingUpdateDeploymentApplyConfiguration represents an declarative configuration of the RollingUpdateDeployment type for use
    // with apply.
    type RollingUpdateDeploymentApplyConfiguration struct {
    	MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty"`
    	MaxSurge       *intstr.IntOrString `json:"maxSurge,omitempty"`
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 04 18:31:34 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/client-go/applyconfigurations/apps/v1/rollingupdatedeployment.go

    package v1
    
    import (
    	intstr "k8s.io/apimachinery/pkg/util/intstr"
    )
    
    // RollingUpdateDeploymentApplyConfiguration represents an declarative configuration of the RollingUpdateDeployment type for use
    // with apply.
    type RollingUpdateDeploymentApplyConfiguration struct {
    	MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty"`
    	MaxSurge       *intstr.IntOrString `json:"maxSurge,omitempty"`
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 04 18:31:34 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  3. operator/pkg/apis/istio/v1alpha1/value_types_json.go

    	return this.UnmarshalJSON(value)
    }
    
    func (this *IntOrString) ToKubernetes() intstr.IntOrString {
    	if this.IntVal != nil {
    		return intstr.FromInt32(this.GetIntVal().GetValue())
    	}
    	return intstr.FromString(this.GetStrVal().GetValue())
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/client-go/applyconfigurations/apps/v1/rollingupdatedaemonset.go

    package v1
    
    import (
    	intstr "k8s.io/apimachinery/pkg/util/intstr"
    )
    
    // RollingUpdateDaemonSetApplyConfiguration represents an declarative configuration of the RollingUpdateDaemonSet type for use
    // with apply.
    type RollingUpdateDaemonSetApplyConfiguration struct {
    	MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty"`
    	MaxSurge       *intstr.IntOrString `json:"maxSurge,omitempty"`
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 04 18:31:34 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  5. pkg/probe/util_test.go

    }
    
    func TestResolveContainerPort(t *testing.T) {
    	t.Parallel()
    	type args struct {
    		param     intstr.IntOrString
    		container *v1.Container
    	}
    	tests := []struct {
    		name    string
    		args    args
    		want    int
    		wantErr bool
    	}{
    		{
    			name: "get port by int type",
    			args: args{
    				param:     intstr.IntOrString{Type: 0, IntVal: 443},
    				container: &v1.Container{},
    			},
    			want:    443,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 10 06:14:41 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  6. pkg/kubelet/lifecycle/handlers_test.go

    	tests := []struct {
    		Name        string
    		Port        intstr.IntOrString
    		ExpectError bool
    		Expected    string
    	}{
    		{
    			Name:     "consistent/with port",
    			Port:     intstr.FromString("70"),
    			Expected: "https://foo:70/bar",
    		}, {
    			Name:        "consistent/without port",
    			Port:        intstr.FromString(""),
    			ExpectError: true,
    		},
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  7. pkg/controller/daemon/update_test.go

    	ds.Spec.Template.Spec.Containers[0].Image = "foo2/bar2"
    	ds.Spec.UpdateStrategy.Type = apps.RollingUpdateDaemonSetStrategyType
    	intStr := intstr.FromInt32(int32(maxUnavailable))
    	ds.Spec.UpdateStrategy.RollingUpdate = &apps.RollingUpdateDaemonSet{MaxUnavailable: &intStr}
    	manager.dsStore.Update(ds)
    
    	clearExpectations(t, manager, ds, podControl)
    	expectSyncDaemonSets(t, manager, ds, podControl, 0, maxUnavailable, 0)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Feb 10 21:10:35 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  8. pkg/probe/util.go

    package probe
    
    import (
    	"fmt"
    	"strconv"
    
    	v1 "k8s.io/api/core/v1"
    	"k8s.io/apimachinery/pkg/util/intstr"
    )
    
    func ResolveContainerPort(param intstr.IntOrString, container *v1.Container) (int, error) {
    	port := -1
    	var err error
    	switch param.Type {
    	case intstr.Int:
    		port = param.IntValue()
    	case intstr.String:
    		if port, err = findPortByName(container, param.StrVal); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 19 16:51:52 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  9. staging/src/k8s.io/client-go/applyconfigurations/apps/v1/rollingupdatestatefulsetstrategy.go

    package v1
    
    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)
  10. staging/src/k8s.io/client-go/applyconfigurations/apps/v1beta2/rollingupdatestatefulsetstrategy.go

    package v1beta2
    
    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)
Back to top