Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 196 for IntPtr (0.17 sec)

  1. 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)
  2. pilot/pkg/config/kube/ingress/conversion_test.go

    			Namespace: "mock",
    		},
    		Spec: corev1.ServiceSpec{
    			Ports: []corev1.ServicePort{
    				{
    					Name:     "test-svc-port",
    					Protocol: "TCP",
    					Port:     8888,
    					TargetPort: intstr.IntOrString{
    						Type:   intstr.String,
    						StrVal: "test-port",
    					},
    				},
    			},
    			Selector: map[string]string{
    				"app": "test-app",
    			},
    		},
    	}
    	serviceLister := createFakeClient(t, service)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 19 18:20:34 UTC 2023
    - 14.9K bytes
    - Viewed (0)
  3. 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)
  4. pkg/api/v1/pod/util.go

    	portName := svcPort.TargetPort
    	switch portName.Type {
    	case intstr.String:
    		name := portName.StrVal
    		for _, container := range pod.Spec.Containers {
    			for _, port := range container.Ports {
    				if port.Name == name && port.Protocol == svcPort.Protocol {
    					return int(port.ContainerPort), nil
    				}
    			}
    		}
    	case intstr.Int:
    		return portName.IntValue(), nil
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 24 17:18:04 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. staging/src/k8s.io/api/extensions/v1beta1/zz_generated.deepcopy.go

    // Code generated by deepcopy-gen. DO NOT EDIT.
    
    package v1beta1
    
    import (
    	corev1 "k8s.io/api/core/v1"
    	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	runtime "k8s.io/apimachinery/pkg/runtime"
    	intstr "k8s.io/apimachinery/pkg/util/intstr"
    )
    
    // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    func (in *DaemonSet) DeepCopyInto(out *DaemonSet) {
    	*out = *in
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 18:19:25 UTC 2023
    - 33.2K bytes
    - Viewed (0)
  8. pkg/apis/extensions/v1beta1/defaults_test.go

    			t.Errorf("(%d) got different than expected\ngot:\n\t%+v\nexpected:\n\t%+v", i, got.Spec, expected.Spec)
    		}
    	}
    }
    
    func TestSetDefaultDeployment(t *testing.T) {
    	defaultIntOrString := intstr.FromInt32(1)
    	differentIntOrString := intstr.FromInt32(5)
    	period := int64(v1.DefaultTerminationGracePeriodSeconds)
    	defaultTemplate := v1.PodTemplateSpec{
    		Spec: v1.PodSpec{
    			DNSPolicy:                     v1.DNSClusterFirst,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 07:16:15 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top