examples

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 License: UPL-1.0 Imports: 10 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 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

DeployHelloHelidonApp 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

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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