pega

package
v0.0.0-...-f48f1b7 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const PegaHelmChartPath = "../../../../charts/pega"

Variables

View Source
var ProgressDeadlineSeconds int32 = 2147483647
View Source
var ProgressDeadlineSecondsPtr = &ProgressDeadlineSeconds

Functions

func ReturnJobSlices

func ReturnJobSlices(t *testing.T, pegaHelmChartPath string, options *helm.Options) []string

ReturnJobSlices - returns string array of rendered yaml sepearted by delimiter as "---"

func SplitAndVerifyPegaDeployments

func SplitAndVerifyPegaDeployments(t *testing.T, helmChartPath string, options *helm.Options, initContainers []string)

SplitAndVerifyPegaDeployments - Splits the deployments from the rendered template and asserts each deployment/statefulset objects

func SplitAndVerifyPegaHPAs

func SplitAndVerifyPegaHPAs(t *testing.T, helmChartPath string, options *helm.Options)

VerifyPegaHPAs - Splits the HPA object from the rendered template and asserts each HPA object

func SplitAndVerifyPegaIngresses

func SplitAndVerifyPegaIngresses(t *testing.T, helmChartPath string, options *helm.Options)

VerifyPegaIngresses - Splits the ingresses from the rendered template and asserts each ingress object

func SplitAndVerifyPegaServices

func SplitAndVerifyPegaServices(t *testing.T, helmChartPath string, options *helm.Options)

SplitAndVerifyPegaServices - Splits the services from the rendered template and asserts each service objects

func VerfiyRegistrySecret

func VerfiyRegistrySecret(t *testing.T, helmChartPath string, options *helm.Options)

VerfiyRegistrySecret - Verifies the registry secret deployed with the values as provided in default values.yaml

func VerifyAKSIngress

func VerifyAKSIngress(t *testing.T, ingressObj *k8sv1beta1.Ingress, expectedIngress pegaIngress)

func VerifyCredentialsSecret

func VerifyCredentialsSecret(t *testing.T, helmChartPath string, options *helm.Options)

VerifyCredentialsSecret - Verifies the credential secret deployed with the values as provided in default values.yaml

func VerifyDeployment

func VerifyDeployment(t *testing.T, pod *k8score.PodSpec, expectedSpec pegaDeployment, options *helm.Options)

VerifyDeployment - Performs common pega deployment/statefulset assertions with the values as provided in default values.yaml

func VerifyEKSIngress

func VerifyEKSIngress(t *testing.T, ingressObj *k8sv1beta1.Ingress, expectedIngress pegaIngress)

func VerifyEnvironmentConfig

func VerifyEnvironmentConfig(t *testing.T, helmChartPath string, options *helm.Options)

VerifyEnvironmentConfig - Verifies the environment configuration used by the pods with the values as provided in default values.yaml

func VerifyGKEIngress

func VerifyGKEIngress(t *testing.T, ingressObj *k8sv1beta1.Ingress, expectedIngress pegaIngress)

func VerifyInitContinerData

func VerifyInitContinerData(t *testing.T, containers []k8score.Container, options *helm.Options)

VerifyInitContinerData - Verifies any possible initContainer that can occur in pega helm chart deployments

func VerifyInstallEnvConfig

func VerifyInstallEnvConfig(t *testing.T, options *helm.Options, pegaHelmChartPath string)

VerifyInstallEnvConfig - Tests Installer environment config rendered with the values as provided in default values.yaml

func VerifyInstallerConfigMaps

func VerifyInstallerConfigMaps(t *testing.T, options *helm.Options, pegaHelmChartPath string)

VerifyInstallerConfigMaps - Tests Installer configuration rendered with the values as provided in default values.yaml

func VerifyInstallerRole

func VerifyInstallerRole(t *testing.T, options *helm.Options, pegaHelmChartPath string)

VerifyInstallerRole - Tests Installer role rendered with the values as provided in default values.yaml

func VerifyInstallerRoleBinding

func VerifyInstallerRoleBinding(t *testing.T, options *helm.Options, pegaHelmChartPath string)

VerifyInstallerRoleBinding - Tests Installer role binding rendered with the values as provided in default values.yaml

func VerifyK8SIngress

func VerifyK8SIngress(t *testing.T, ingressObj *k8sv1beta1.Ingress, expectedIngress pegaIngress)

VerifyPegaIngress - Performs Pega Ingress assertions with the values as provided in default values.yaml

func VerifyPegaDeployment

func VerifyPegaDeployment(t *testing.T, deploymentObj *appsv1.Deployment, expectedDeployment pegaDeployment, options *helm.Options)

VerifyPegaDeployment - Performs specific Pega deployment assertions with the values as provided in default values.yaml

func VerifyPegaHpa

func VerifyPegaHpa(t *testing.T, hpaObj *autoscaling.HorizontalPodAutoscaler, expectedHpa hpa)

VerifyPegaHpa - Performs Pega HPA assertions with the values as provided in default values.yaml

func VerifyPegaIngress

func VerifyPegaIngress(t *testing.T, ingressObj *k8sv1beta1.Ingress, expectedIngress pegaIngress, options *helm.Options)

func VerifyPegaJob

func VerifyPegaJob(t *testing.T, options *helm.Options, installerJobObj *k8sbatch.Job, expectedJob pegaJob)

VerifyPegaJob - Tests installer jobs rendered with the values as provided in default values.yaml

func VerifyPegaService

func VerifyPegaService(t *testing.T, serviceObj *k8score.Service, expectedService pegaServices, options *helm.Options)

VerifyPegaService - Performs Pega Service assertions with the values as provided in default values.yaml

func VerifyPegaStandardTierDeployment

func VerifyPegaStandardTierDeployment(t *testing.T, helmChartPath string, options *helm.Options, initContainers []string)

VerifyPegaStandardTierDeployment - Verifies Pega standard tier deployment for values as provided in default values.yaml. It ensures syntax of web deployment, batch deployment, stream statefulset, search service, hpa, rolling update, web services, ingresses and config maps

func VerifyPegaStatefulSet

func VerifyPegaStatefulSet(t *testing.T, statefulsetObj *appsv1beta2.StatefulSet, expectedStatefulset pegaDeployment, options *helm.Options)

VerifyPegaStatefulSet - Performs specific Pega statefulset assertions with the values as provided in default values.yaml

func VerifySearchService

func VerifySearchService(t *testing.T, helmChartPath string, options *helm.Options)

VerifySearchService - Verifies search service deployment used by search pod with the values as provided in default values.yaml

func VerifySearchTransportService

func VerifySearchTransportService(t *testing.T, helmChartPath string, options *helm.Options)

VerifySearchTransportService - Performs the search transport service assertions deployed with the values as provided in default values.yaml

func VerifyTierConfg

func VerifyTierConfg(t *testing.T, helmChartPath string, options *helm.Options)

VerifyTierConfg - Performs the tier specific configuration assetions with the values as provided in default values.yaml

func VerifyUpgradeEnvConfig

func VerifyUpgradeEnvConfig(t *testing.T, options *helm.Options, pegaHelmChartPath string)

VerifyUpgradeEnvConfig - Tests upgrade environment config rendered with the values as provided in default values.yaml

Types

type DeploymentMetadata

type DeploymentMetadata struct {
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	metav1.TypeMeta
}

Jump to

Keyboard shortcuts

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