examples

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: UPL-1.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TestNamespace = "hello-helidon" // currently only used for placement tests

)

Variables

This section is empty.

Functions

func ChangePlacementToAdminCluster added in v0.15.0

func ChangePlacementToAdminCluster(kubeconfigPath string) error

ChangePlacementToAdminCluster patches the hello-helidon example to be placed in the admin cluster and uses the given kubeConfigPath as the cluster in which to do the patch

func ChangePlacementToManagedCluster added in v0.15.0

func ChangePlacementToManagedCluster(kubeconfigPath string) error

ChangePlacementToManagedCluster patches the hello-helidon example to be placed in the managed cluster and uses the given kubeConfigPath as the cluster in which to do the patch

func ChangePlacementV100 added in v1.1.0

func ChangePlacementV100(kubeConfigPath string, patchFile string, namespace string, projName string) error

ChangePlacementV100 patches the hello-helidon example with the given patch file and uses the given kubeConfigPath as the cluster in which to do the patch v1.0.0 variant of this function - requires edit to placement in mcComp resources

func DeployHelloHelidonApp

func DeployHelloHelidonApp(kubeConfigPath string, sourceDir string) error

DeployHelloHelidonApp deploys the hello-helidon example application to the cluster with the given kubeConfigPath

func DeployHelloHelidonProject

func DeployHelloHelidonProject(kubeconfigPath string, sourceDir string) error

DeployHelloHelidonProject deploys the hello-helidon example's VerrazzanoProject to the cluster with the given kubeConfigPath

func HelidonNamespaceExists

func HelidonNamespaceExists(kubeconfigPath string, namespace string) bool

HelidonNamespaceExists - returns true if the hello-helidon namespace exists in the given cluster

func VerifyAppDeleted

func VerifyAppDeleted(kubeconfigPath string, namespace string) bool

VerifyAppDeleted - verifies that the workload and pods are deleted on the the specified cluster

func VerifyHelloHelidonDeletedAdminCluster

func VerifyHelloHelidonDeletedAdminCluster(kubeconfigPath string, placedInCluster bool, namespace string, projectName string) bool

func VerifyHelloHelidonDeletedInManagedCluster

func VerifyHelloHelidonDeletedInManagedCluster(kubeconfigPath string, namespace string, projectName string) bool

func VerifyHelloHelidonInCluster

func VerifyHelloHelidonInCluster(kubeConfigPath string, isAdminCluster bool, placedInThisCluster bool, projectName string, namespace string) (bool, error)

VerifyHelloHelidonInCluster verifies that the hello helidon app resources are either present or absent depending on whether the app is placed in this cluster

func VerifyMCResources

func VerifyMCResources(kubeconfigPath string, isAdminCluster bool, placedInThisCluster bool, namespace string) bool

VerifyMCResources verifies that the MC resources are present or absent depending on whether this is an admin cluster and whether the resources are placed in the given cluster

func VerifyMCResourcesV100 added in v1.1.0

func VerifyMCResourcesV100(kubeconfigPath string, isAdminCluster bool, placedInThisCluster bool, namespace string) bool

VerifyMCResourcesV100 verifies that the MC resources are present or absent depending on whether this is an admin cluster and whether the resources are placed in the given cluster v1.0.0 variant of this function - both mcApp and mcComp are required

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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