Documentation
¶
Index ¶
- Constants
- Variables
- func ReturnJobSlices(t *testing.T, pegaHelmChartPath string, options *helm.Options) []string
- func SplitAndVerifyPegaDeployments(t *testing.T, helmChartPath string, options *helm.Options, ...)
- func SplitAndVerifyPegaHPAs(t *testing.T, helmChartPath string, options *helm.Options)
- func SplitAndVerifyPegaIngresses(t *testing.T, helmChartPath string, options *helm.Options)
- func SplitAndVerifyPegaServices(t *testing.T, helmChartPath string, options *helm.Options)
- func VerfiyRegistrySecret(t *testing.T, helmChartPath string, options *helm.Options)
- func VerifyAKSIngress(t *testing.T, ingressObj *k8sv1beta1.Ingress, expectedIngress pegaIngress)
- func VerifyCredentialsSecret(t *testing.T, helmChartPath string, options *helm.Options)
- func VerifyDeployment(t *testing.T, pod *k8score.PodSpec, expectedSpec pegaDeployment, ...)
- func VerifyEKSIngress(t *testing.T, ingressObj *k8sv1beta1.Ingress, expectedIngress pegaIngress)
- func VerifyEnvironmentConfig(t *testing.T, helmChartPath string, options *helm.Options)
- func VerifyGKEIngress(t *testing.T, ingressObj *k8sv1beta1.Ingress, expectedIngress pegaIngress)
- func VerifyInitContinerData(t *testing.T, containers []k8score.Container, options *helm.Options)
- func VerifyInstallEnvConfig(t *testing.T, options *helm.Options, pegaHelmChartPath string)
- func VerifyInstallerConfigMaps(t *testing.T, options *helm.Options, pegaHelmChartPath string)
- func VerifyInstallerRole(t *testing.T, options *helm.Options, pegaHelmChartPath string)
- func VerifyInstallerRoleBinding(t *testing.T, options *helm.Options, pegaHelmChartPath string)
- func VerifyK8SIngress(t *testing.T, ingressObj *k8sv1beta1.Ingress, expectedIngress pegaIngress)
- func VerifyPegaDeployment(t *testing.T, deploymentObj *appsv1.Deployment, ...)
- func VerifyPegaHpa(t *testing.T, hpaObj *autoscaling.HorizontalPodAutoscaler, expectedHpa hpa)
- func VerifyPegaIngress(t *testing.T, ingressObj *k8sv1beta1.Ingress, expectedIngress pegaIngress, ...)
- func VerifyPegaJob(t *testing.T, options *helm.Options, installerJobObj *k8sbatch.Job, ...)
- func VerifyPegaService(t *testing.T, serviceObj *k8score.Service, expectedService pegaServices, ...)
- func VerifyPegaStandardTierDeployment(t *testing.T, helmChartPath string, options *helm.Options, ...)
- func VerifyPegaStatefulSet(t *testing.T, statefulsetObj *appsv1beta2.StatefulSet, ...)
- func VerifySearchService(t *testing.T, helmChartPath string, options *helm.Options)
- func VerifySearchTransportService(t *testing.T, helmChartPath string, options *helm.Options)
- func VerifyTierConfg(t *testing.T, helmChartPath string, options *helm.Options)
- func VerifyUpgradeEnvConfig(t *testing.T, options *helm.Options, pegaHelmChartPath string)
- type DeploymentMetadata
Constants ¶
const PegaHelmChartPath = "../../../../charts/pega"
Variables ¶
var ProgressDeadlineSeconds int32 = 2147483647
var ProgressDeadlineSecondsPtr = &ProgressDeadlineSeconds
Functions ¶
func ReturnJobSlices ¶
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 ¶
VerifyPegaHPAs - Splits the HPA object from the rendered template and asserts each HPA object
func SplitAndVerifyPegaIngresses ¶
VerifyPegaIngresses - Splits the ingresses from the rendered template and asserts each ingress object
func SplitAndVerifyPegaServices ¶
SplitAndVerifyPegaServices - Splits the services from the rendered template and asserts each service objects
func VerfiyRegistrySecret ¶
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 ¶
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 ¶
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 ¶
VerifyInitContinerData - Verifies any possible initContainer that can occur in pega helm chart deployments
func VerifyInstallEnvConfig ¶
VerifyInstallEnvConfig - Tests Installer environment config rendered with the values as provided in default values.yaml
func VerifyInstallerConfigMaps ¶
VerifyInstallerConfigMaps - Tests Installer configuration rendered with the values as provided in default values.yaml
func VerifyInstallerRole ¶
VerifyInstallerRole - Tests Installer role rendered with the values as provided in default values.yaml
func VerifyInstallerRoleBinding ¶
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 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 ¶
VerifySearchService - Verifies search service deployment used by search pod with the values as provided in default values.yaml
func VerifySearchTransportService ¶
VerifySearchTransportService - Performs the search transport service assertions deployed with the values as provided in default values.yaml
func VerifyTierConfg ¶
VerifyTierConfg - Performs the tier specific configuration assetions 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 }