- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 62 for IntPtr (0.11 sec)
-
pkg/apis/apps/validation/validation.go
// percentage. func ValidatePositiveIntOrPercent(intOrPercent intstr.IntOrString, fldPath *field.Path) field.ErrorList { allErrs := field.ErrorList{} switch intOrPercent.Type { case intstr.String: for _, msg := range validation.IsValidPercent(intOrPercent.StrVal) { allErrs = append(allErrs, field.Invalid(fldPath, intOrPercent, msg)) } case intstr.Int:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Apr 06 22:11:20 UTC 2024 - 41.4K bytes - Viewed (0) -
staging/src/k8s.io/api/policy/v1/types.go
See the License for the specific language governing permissions and limitations under the License. */ package v1 import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/intstr" ) // DisruptionBudgetCause is the status cause returned for eviction failures caused by PodDisruptionBudget violations. const DisruptionBudgetCause metav1.CauseType = "DisruptionBudget"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 23 17:42:49 UTC 2024 - 10.8K bytes - Viewed (0) -
pkg/apis/core/v1/defaults.go
} for i := range obj.Spec.Ports { sp := &obj.Spec.Ports[i] if sp.Protocol == "" { sp.Protocol = v1.ProtocolTCP } if sp.TargetPort == intstr.FromInt32(0) || sp.TargetPort == intstr.FromString("") { sp.TargetPort = intstr.FromInt32(sp.Port) } } // Defaults ExternalTrafficPolicy field for externally-accessible service // to Global for consistency.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 19 22:24:15 UTC 2024 - 14.8K bytes - Viewed (0) -
operator/pkg/apis/istio/v1alpha1/validation/validation.go
tp := 0 if p == nil { continue } if p.TargetPort != nil && p.TargetPort.Type == int64(intstr.String) { // Do not validate named ports continue } if p.TargetPort != nil && p.TargetPort.Type == int64(intstr.Int) { tp = int(p.TargetPort.IntVal.GetValue()) } if tp == 0 && p.Port > 1024 { // Target port defaults to port. If its >1024, it is safe.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 16 20:02:28 UTC 2024 - 14.9K bytes - Viewed (0) -
tests/integration/pilot/tunneling_test.go
// limitations under the License. package pilot import ( "context" "fmt" "os" "strings" "sync" "testing" "time" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/util/intstr" "istio.io/istio/pkg/config/protocol" "istio.io/istio/pkg/test/framework" "istio.io/istio/pkg/test/framework/components/echo" "istio.io/istio/pkg/test/framework/components/echo/common/ports"
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 22:02:59 UTC 2024 - 10.4K bytes - Viewed (0) -
pkg/controller/statefulset/stateful_set_utils.go
// or 0% < value <= 100% if it is a percentage, so we don't have to consider other cases. func getStatefulSetMaxUnavailable(maxUnavailable *intstr.IntOrString, replicaCount int) (int, error) { maxUnavailableNum, err := intstr.GetScaledValueFromIntOrPercent(intstr.ValueOrDefault(maxUnavailable, intstr.FromInt32(1)), replicaCount, false) if err != nil { return 0, err } // maxUnavailable might be zero for small percentage with round down.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 19:06:41 UTC 2024 - 26.7K bytes - Viewed (0) -
pkg/apis/core/v1/defaults_test.go
if out.Spec.Ports[0].TargetPort != intstr.FromInt32(1234) { t.Errorf("Expected TargetPort to be defaulted, got %v", out.Spec.Ports[0].TargetPort) } in = &v1.Service{Spec: v1.ServiceSpec{Ports: []v1.ServicePort{{Port: 1234, TargetPort: intstr.FromInt32(5678)}}}} obj = roundTrip(t, runtime.Object(in)) out = obj.(*v1.Service) if out.Spec.Ports[0].TargetPort != intstr.FromInt32(5678) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 84.4K bytes - Viewed (0) -
staging/src/k8s.io/api/apps/v1/generated.proto
import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/generated.proto"; import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; // Package-wide variables from generator "generated". option go_package = "k8s.io/api/apps/v1"; // ControllerRevision implements an immutable snapshot of state data. Clients
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 07:14:59 UTC 2024 - 34.8K bytes - Viewed (0) -
cni/pkg/nodeagent/net_test.go
}, LivenessProbe: &corev1.Probe{ ProbeHandler: corev1.ProbeHandler{ HTTPGet: &corev1.HTTPGetAction{ Port: intstr.FromString("foo-2-port"), }, }, }, StartupProbe: &corev1.Probe{ ProbeHandler: corev1.ProbeHandler{ HTTPGet: &corev1.HTTPGetAction{ Port: intstr.FromInt(7777), }, }, }, } containers := []corev1.Container{app1}
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 05:10:23 UTC 2024 - 17.8K bytes - Viewed (0) -
pkg/controller/disruption/disruption.go
} var maxUnavailable int maxUnavailable, err = intstr.GetScaledValueFromIntOrPercent(pdb.Spec.MaxUnavailable, int(expectedCount), true) if err != nil { return } desiredHealthy = expectedCount - int32(maxUnavailable) if desiredHealthy < 0 { desiredHealthy = 0 } } else if pdb.Spec.MinAvailable != nil { if pdb.Spec.MinAvailable.Type == intstr.Int { desiredHealthy = pdb.Spec.MinAvailable.IntVal
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 36.1K bytes - Viewed (0)