byoc

package
v0.0.0-...-317aa01 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

README

BYOC test

Prerequisites for running this test against your own cluster
  1. Follow the instructions from the Readme scripts to install AppStudio in e2e mode.
  2. Make sure the cluster you are about to run this test against is public (i.e. hosted on a public cloud provider).
  3. Access to an external openshift cluster to use it as RHTAP environment.
  4. Have installed vcluster binary. How to install here.
  5. Have installed helm binary. How to install here.
Environments
Variable Required Explanation Default Value
BYOC_KUBECONFIG yes A valid path to a openshift kubeconfig file. Note: Your kubeconfig should contain token instead of certificates:https://issues.redhat.com/browse/GITOPSRVCE-554 ''
Description

This tests try to simulate user workflow from creating an Openshift/Kubernetes environment in RHTAP to deploy the applications to the given environment. The tests are creating a virtual cluster in your RHTAP cluster to test pure kubernetes environments.

What is virtual Cluster?

Virtual clusters are Kubernetes clusters that run on top of other Kubernetes clusters. Compared to fully separate "real" clusters, virtual clusters do not have their own node pools or networking. Instead, they are scheduling workloads inside the underlying cluster while having their own control plane.

More information about vcluster architecture can be found at vcluster website

How to run

To run the byoc tests run the following command in your with a custom yaml use:

 export E2E_TEST_SUITE_LABEL=byoc &&  make local/test/e2e

Documentation

Index

Constants

View Source
const (
	ManagedEnvironmentSecretName string = "byoc-managed-environment"
	ManagedEnvironmentType       string = "managed-gitops.redhat.com/managed-environment"
	ManagedEnvironmentName       string = "development"
	QuarkusDevfileSource         string = "https://github.com/devfile-samples/devfile-sample-code-with-quarkus"
	QuarkusComponentEndpoint     string = "/hello-resteasy"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationService

type ApplicationService struct {
	// Valid github public repository
	GithubRepository string

	// Application name sample created in BYOC cluster
	ApplicationName string
}

RHTAP Application status

type Byoc

type Byoc struct {
	// Define the cluster provided by user where to deploy RHTAP apps
	ClusterType appservice.ConfigurationClusterType

	// Target Namespace where to deploy RHTAP applications in BYOC provided
	TargetNamespace string
}

Byoc is an RHTAP environment provided by users

type Scenario

type Scenario struct {
	// Scenario test name
	Name string

	// Describe an application to create into user BYOC cluster
	ApplicationService ApplicationService

	// Specs obout BYOC provided by user
	Byoc Byoc
}

Describe Byoc test scenarios

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL