Versions in this module Expand all Collapse all v0 v0.0.1 Nov 18, 2024 Changes in this version + const COVERAGE_DIR + const ErrInvalidOCI + const ErrOCIPull + const FAILED_FUND_RETURN + func MkdirIfNotExists(dirName string) error + func NewRunner(props *Props) func(root cdk8s.Chart) ConnectedChart + type Artifacts struct + Client *client.K8sClient + DBName string + Namespace string + func NewArtifacts(client *client.K8sClient, namespace string) (*Artifacts, error) + func (a *Artifacts) DumpTestResult(testDir string, dbName string) error + type Chart struct + Props *Props + func (m Chart) ExportData(e *Environment) error + func (m Chart) GetName() string + func (m Chart) GetPath() string + func (m Chart) GetProps() interface{} + func (m Chart) GetValues() *map[string]interface{} + func (m Chart) GetVersion() string + func (m Chart) IsDeploymentNeeded() bool + type Config struct + DryRun bool + InsideK8s bool + JobImage string + KeepConnection bool + Labels []string + Namespace string + NamespacePrefix string + NoManifestUpdate bool + NodeSelector map[string]string + ReadyCheckData *client.ReadyCheckData + RemoveOnInterrupt bool + TTL time.Duration + Test *testing.T + Tolerations []map[string]string + UpdateWaitInterval time.Duration + type ConnectedChart interface + ExportData func(e *Environment) error + GetName func() string + GetPath func() string + GetProps func() interface{} + GetValues func() *map[string]interface{} + GetVersion func() string + IsDeploymentNeeded func() bool + type CoverageProfileParams struct + Address []string + CoverFilePatterns []string + Force bool + Service []string + SkipFilePatterns []string + type Environment struct + App cdk8s.App + Artifacts *Artifacts + Cfg *Config + Chaos *client.Chaos + Charts []ConnectedChart + Client *client.K8sClient + CurrentManifest string + Fwd *client.Forwarder + URLs map[string][]string + func New(cfg *Config) *Environment + func (m *Environment) AddChart(f func(root cdk8s.Chart) ConnectedChart) *Environment + func (m *Environment) AddHelm(chart ConnectedChart) *Environment + func (m *Environment) ClearCharts() + func (m *Environment) ClearCoverage() error + func (m *Environment) Deploy() error + func (m *Environment) DumpLogs(path string) error + func (m *Environment) Manifest() string + func (m *Environment) ModifyHelm(name string, chart ConnectedChart) *Environment + func (m *Environment) PrintExportData() error + func (m *Environment) PullOCIChart(chart ConnectedChart) (string, error) + func (m *Environment) ResourcesSummary(selector string) (map[string]map[string]string, error) + func (m *Environment) RolloutStatefulSets() error + func (m *Environment) Run() error + func (m *Environment) SaveCoverage() error + func (m *Environment) Shutdown() error + func (m *Environment) UpdateManifest() + func (m *Environment) WillUseRemoteRunner() bool + type Props struct + BaseName string + Image string + Labels *map[string]*string + NoManifestUpdate bool + TargetNamespace string + TestName string