Documentation ¶
Index ¶
- Constants
- func ChangePlacementToAdminCluster(kubeconfigPath string) error
- func ChangePlacementToManagedCluster(kubeconfigPath string) error
- func ChangePlacementV100(kubeConfigPath string, patchFile string, namespace string, projName string) error
- func DeployHelloHelidonApp(kubeConfigPath string, sourceDir string) error
- func DeployHelloHelidonProject(kubeconfigPath string, sourceDir string) error
- func HelidonNamespaceExists(kubeconfigPath string, namespace string) bool
- func VerifyAppDeleted(kubeconfigPath string, namespace string) bool
- func VerifyHelloHelidonDeletedAdminCluster(kubeconfigPath string, placedInCluster bool, namespace string, ...) bool
- func VerifyHelloHelidonDeletedInManagedCluster(kubeconfigPath string, namespace string, projectName string) bool
- func VerifyHelloHelidonInCluster(kubeConfigPath string, isAdminCluster bool, placedInThisCluster bool, ...) (bool, error)
- func VerifyMCResources(kubeconfigPath string, isAdminCluster bool, placedInThisCluster bool, ...) bool
- func VerifyMCResourcesV100(kubeconfigPath string, isAdminCluster bool, placedInThisCluster bool, ...) bool
Constants ¶
const (
TestNamespace = "hello-helidon" // currently only used for placement tests
)
Variables ¶
This section is empty.
Functions ¶
func ChangePlacementToAdminCluster ¶ added in v0.15.0
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
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 ¶
DeployHelloHelidonApp deploys the hello-helidon example application to the cluster with the given kubeConfigPath
func DeployHelloHelidonProject ¶
DeployHelloHelidonProject deploys the hello-helidon example's VerrazzanoProject to the cluster with the given kubeConfigPath
func HelidonNamespaceExists ¶
HelidonNamespaceExists - returns true if the hello-helidon namespace exists in the given cluster
func VerifyAppDeleted ¶
VerifyAppDeleted - verifies that the workload and pods are deleted on the the specified cluster
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.