Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for MinKubeVersion (0.2 sec)

  1. pkg/test/framework/components/cluster/cluster.go

    	// Use Name for validation/interaction with the actual cluster.
    	StableName() string
    
    	// NetworkName the cluster is on
    	NetworkName() string
    
    	// MinKubeVersion returns true if the cluster is at least the version specified,
    	// false otherwise
    	MinKubeVersion(minor uint) bool
    
    	// MaxKubeVersion returns true if the cluster is at most the version specified,
    	// false otherwise
    	MaxKubeVersion(minor uint) bool
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. tests/integration/pilot/grpc_probe_test.go

    	"istio.io/istio/pkg/test/framework/components/namespace"
    )
    
    func TestGRPCProbe(t *testing.T) {
    	framework.NewTest(t).
    		Run(func(t framework.TestContext) {
    			if !t.Clusters().Default().MinKubeVersion(23) {
    				t.Skip("gRPC probe not supported")
    			}
    
    			ns := namespace.NewOrFail(t, t, namespace.Config{Prefix: "grpc-probe", Inject: true})
    			// apply strict mtls
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 21:29:40 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  3. pkg/test/framework/components/crd/gateway.go

    	"istio.io/istio/pkg/test/util/retry"
    )
    
    // SupportsGatewayAPI checks if the gateway API is supported.
    func SupportsGatewayAPI(t resource.Context) bool {
    	for _, cluster := range t.Clusters() {
    		if !cluster.MinKubeVersion(23) { // API uses CEL which requires 1.23
    			return false
    		}
    	}
    	return true
    }
    
    var errSkip = errors.New("not supported; requires CRDv1 support")
    
    func DeployGatewayAPIOrSkip(ctx framework.TestContext) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Aug 14 17:54:38 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  4. pkg/test/framework/components/cluster/topology.go

    func (c Topology) WithConfig(configClusterName string) Topology {
    	// TODO remove this, should only be provided by external config
    	c.ConfigClusterName = configClusterName
    	return c
    }
    
    func (c Topology) MinKubeVersion(minor uint) bool {
    	cluster := c.AllClusters[c.ClusterName]
    	return kube.IsAtLeastVersion(cluster, minor)
    }
    
    func (c Topology) MaxKubeVersion(minor uint) bool {
    	cluster := c.AllClusters[c.ClusterName]
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  5. tests/integration/pilot/multi_version_revision_test.go

    // with any of the revision versions included in the test (i.e. istio 1.7 not supported on k8s 1.15)
    func skipIfK8sVersionUnsupported(t framework.TestContext) {
    	if !t.Clusters().Default().MinKubeVersion(16) {
    		t.Skipf("k8s version not supported for %s (<%s)", t.Name(), "1.16")
    	}
    	// Kubernetes 1.22 drops support for a number of legacy resources, so we cannot install the old versions
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  6. tests/integration/operator/switch_cr_test.go

    				_, err = cs.Dynamic().Resource(gvr.EnvoyFilter).Namespace(ns).Get(context.TODO(), name,
    					metav1.GetOptions{})
    			case "PodDisruptionBudget":
    				// policy/v1 is available on >=1.21
    				if cs.MinKubeVersion(21) {
    					_, err = cs.Kube().PolicyV1().PodDisruptionBudgets(ns).Get(context.TODO(), name,
    						metav1.GetOptions{})
    				} else {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 10 20:33:28 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  7. pkg/test/framework/test.go

    			t.goTest.Name(), len(t.s.Environment().Clusters()), t.requiredMaxClusters)
    		return
    	}
    
    	if t.minKubernetesMinorVersion > 0 {
    		for _, c := range ctx.Clusters() {
    			if !c.MinKubeVersion(t.minKubernetesMinorVersion) {
    				t.goTest.Skipf("Skipping %q: cluster %s is below required min k8s version 1.%d",
    					t.goTest.Name(), c.Name(), t.minKubernetesMinorVersion)
    				return
    			}
    		}
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  8. tests/integration/pilot/ingress_test.go

    	helmtest "istio.io/istio/tests/integration/helm"
    	ingressutil "istio.io/istio/tests/integration/security/sds_ingress/util"
    )
    
    func skipIfIngressClassUnsupported(t framework.TestContext) {
    	if !t.Clusters().Default().MinKubeVersion(18) {
    		t.Skip("IngressClass not supported")
    	}
    }
    
    // TestIngress tests that we can route using standard Kubernetes Ingress objects.
    func TestIngress(t *testing.T) {
    	framework.
    		NewTest(t).
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  9. pkg/test/framework/components/echo/kube/deployment.go

    		istioIP = istioIPAddr.String()
    	}
    	return
    }
    
    func deploymentParams(ctx resource.Context, cfg echo.Config, settings *resource.Settings) (map[string]any, error) {
    	supportStartupProbe := cfg.Cluster.MinKubeVersion(0)
    	imagePullSecretName, err := settings.Image.PullSecretName()
    	if err != nil {
    		return nil, err
    	}
    
    	containerPorts := getContainerPorts(cfg)
    	appContainers := []map[string]any{{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 09 12:26:52 UTC 2024
    - 24.1K bytes
    - Viewed (0)
Back to top