Documentation
¶
Index ¶
- func IsInvalidConfig(err error) bool
- func IsInvalidLabels(err error) bool
- func IsInvalidReplicas(err error) bool
- func IsNotFound(err error) bool
- func IsNotReady(err error) bool
- type BasicApp
- type Chart
- type ChartResources
- type Clients
- type Config
- type DaemonSet
- type Deployment
- type Interface
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsInvalidLabels ¶
IsInvalidLabels asserts invalidLabelsError.
func IsInvalidReplicas ¶
IsInvalidReplicas asserts invalidReplicasError.
Types ¶
type Chart ¶
type Chart struct { Name string URL string ChartValues string Namespace string RunReleaseTests bool }
Chart is the chart to test.
type ChartResources ¶
type ChartResources struct { DaemonSets []DaemonSet Deployments []Deployment Services []Service }
ChartResources are the key resources deployed by the chart.
type Clients ¶
type Clients interface { // K8sClient returns a properly configured control plane client for the // Kubernetes API. K8sClient() kubernetes.Interface }
type Config ¶
type Config struct { Clients Clients HelmClient *helmclient.Client Logger micrologger.Logger App Chart ChartResources ChartResources }
type DaemonSet ¶
type DaemonSet struct { Name string Namespace string Labels map[string]string MatchLabels map[string]string }
DaemonSet is a daemonset to be tested.
type Deployment ¶
type Deployment struct { Name string Namespace string DeploymentLabels map[string]string MatchLabels map[string]string PodLabels map[string]string }
Deployment is a deployment to be tested.
type Interface ¶
type Interface interface { // Test executes the test of a managed services chart with basic // functionality that applies to all managed services charts. // // - Install chart. // - Check chart is deployed. // - Check key resources are correct. // - Run helm release tests if configured. // Test(ctx context.Context) error }
Click to show internal directories.
Click to hide internal directories.