- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 1,078 for intPtr (0.14 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
pkg/apis/networking/v1beta1/conversion_test.go
package v1beta1 import ( "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "k8s.io/api/networking/v1beta1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/util/intstr" "k8s.io/kubernetes/pkg/apis/networking" ) func TestIngressBackendConversion(t *testing.T) { scheme := runtime.NewScheme() assert.NoError(t, RegisterConversions(scheme)) tests := map[string]struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 07:16:15 UTC 2023 - 3K bytes - Viewed (0) -
pkg/apis/apps/fuzzer/fuzzer.go
j.RollingUpdate = nil } else { rollingUpdate := apps.RollingUpdateDeployment{} if c.RandBool() { rollingUpdate.MaxUnavailable = intstr.FromInt32(c.Rand.Int31()) rollingUpdate.MaxSurge = intstr.FromInt32(c.Rand.Int31()) } else { rollingUpdate.MaxSurge = intstr.FromString(fmt.Sprintf("%d%%", c.Rand.Int31())) } j.RollingUpdate = &rollingUpdate } },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 07:16:15 UTC 2023 - 5.2K bytes - Viewed (0) -
pkg/apis/apps/v1beta2/defaults.go
// Set default MaxUnavailable as 1 by default. updateStrategy.RollingUpdate.MaxUnavailable = ptr.To(intstr.FromInt32(1)) } if updateStrategy.RollingUpdate.MaxSurge == nil { // Set default MaxSurge as 0 by default. updateStrategy.RollingUpdate.MaxSurge = ptr.To(intstr.FromInt32(0)) } } if obj.Spec.RevisionHistoryLimit == nil { obj.Spec.RevisionHistoryLimit = new(int32)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 08 09:10:50 UTC 2023 - 5.5K bytes - Viewed (0) -
operator/pkg/translate/strategic_port_merge_test.go
v1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/util/intstr" ) var ( httpsPort = &v1.ServicePort{ Name: "https", Protocol: v1.ProtocolTCP, Port: 443, TargetPort: intstr.IntOrString{IntVal: 8443}, } quicPort = &v1.ServicePort{ Name: "http3-quic", Protocol: v1.ProtocolUDP, Port: 443, TargetPort: intstr.IntOrString{IntVal: 8443}, } httpPort = &v1.ServicePort{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jul 21 03:06:37 UTC 2021 - 6.2K bytes - Viewed (0)