- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 65 for IntPtr (0.09 sec)
-
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) -
pkg/apis/apps/v1/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 - 5.4K bytes - Viewed (0) -
pkg/apis/extensions/v1beta1/conversion_test.go
package v1beta1 import ( "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "k8s.io/api/extensions/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/networking/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 - 2.8K bytes - Viewed (0) -
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) -
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/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)