- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 136 for IntPtr (0.11 sec)
-
pkg/kubelet/lifecycle/handlers.go
// If a port with the same name is found, it's ContainerPort value is returned. If no matching // port is found, an error is returned. func resolvePort(portReference intstr.IntOrString, container *v1.Container) (int, error) { if portReference.Type == intstr.Int { return portReference.IntValue(), nil } portName := portReference.StrVal port, err := strconv.Atoi(portName) if err == nil { return port, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 19 11:40:52 UTC 2024 - 8.2K bytes - Viewed (0) -
common-protos/k8s.io/api/policy/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/policy/v1"; // Eviction evicts a pod from its node subject to certain policies and safety constraints.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Mar 11 18:43:24 UTC 2024 - 8K bytes - Viewed (0) -
pkg/kube/inject/app_probe_test.go
// See the License for the specific language governing permissions and // limitations under the License. package inject import ( "reflect" "testing" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/util/intstr" "istio.io/api/annotation" "istio.io/istio/pkg/test" "istio.io/istio/pkg/test/util/assert" ) func TestFindSidecar(t *testing.T) { proxy := corev1.Container{Name: "istio-proxy"}
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Aug 04 15:06:24 UTC 2023 - 8.6K bytes - Viewed (0) -
staging/src/k8s.io/api/policy/v1beta1/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/policy/v1beta1"; // Eviction evicts a pod from its node subject to certain policies and safety constraints.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 28 15:34:11 UTC 2024 - 8.1K bytes - Viewed (0) -
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) -
pkg/registry/networking/ingress/storage/storage_test.go
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/fields" "k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/util/intstr" genericapirequest "k8s.io/apiserver/pkg/endpoints/request" "k8s.io/apiserver/pkg/registry/generic" genericregistrytest "k8s.io/apiserver/pkg/registry/generic/testing" "k8s.io/apiserver/pkg/registry/rest"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 15 09:01:21 UTC 2023 - 8.4K 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) -
staging/src/k8s.io/api/policy/v1beta1/types.go
See the License for the specific language governing permissions and limitations under the License. */ package v1beta1 import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/intstr" ) // PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. type PodDisruptionBudgetSpec struct { // An eviction is allowed if at least "minAvailable" pods selected by
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 07 20:44:13 UTC 2023 - 11.1K bytes - Viewed (0)