Package dev.galasa.galasaecosystem
Annotation Interface KubernetesEcosystem
Kubernetes Ecosystem
- Annotation:
- Description:
- The
@KubernetesEcosystem
annotation requests the Galasa Ecosystem Manager to provision a Galasa Ecosystem within a Kubernetes Namespace. - Examples:
@KubernetesEcosystem
public IKubernetesEcosystem ecosystem;
@KubernetesEcosystem(yamlDirectory="/k8syaml"
public IKubernetesEcosystem ecosystem;
- Extra:
- The
IKubernetesEcosystem
interface gives the test access to the URLs of the services and API endpoints within the Ecosystem. When the test runs all the services that are required by the test are known to be up and working.
The test must provide a @KubernetesNamespace IKubernetesNamespace annotation, as this is where the Ecosystem is provisioned in. In the future, Docker and Linux will be options.
The Galasa Ecosystem has its own stable versions of the Kubernetes yaml files that are needed to create the entire Ecosystem. If you want to override those and use your own yaml files, then use the yamlDirectory attribute. If a resource is missing in the test's set, then the stable version is used.
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionTheecosystemNamespaceTag
is used to identify the Ecosystem to other Managers or Shared Environments.ThekubernetesNamespaceTag
identifies which tagged Kubernetes Namespace is to be used to deploy the Galasa Ecosystem into.TheyamlDirectory
points to a resource directory within the test bundle that contains a set of override yaml files to use when creating the ecosystem.
-
Element Details
-
ecosystemNamespaceTag
String ecosystemNamespaceTagTheecosystemNamespaceTag
is used to identify the Ecosystem to other Managers or Shared Environments. If a test is using multiple Ecosystems, each separate Ecosystem must have a unique tag. If two Ecosystems use the same tag, they refer to the same Ecosystem.- Default:
- "PRIMARY"
-
kubernetesNamespaceTag
String kubernetesNamespaceTagThekubernetesNamespaceTag
identifies which tagged Kubernetes Namespace is to be used to deploy the Galasa Ecosystem into.- Default:
- "PRIMARY"
-
yamlDirectory
String yamlDirectoryTheyamlDirectory
points to a resource directory within the test bundle that contains a set of override yaml files to use when creating the ecosystem. Each file must end with .yaml to be found. If a directory or resource is not provided, the stable yaml files within the Galasa Ecosystem Manager will be used.- Default:
- ""
-