Documentation
¶
Overview ¶
Package scenarios implements the cluster scenarios invoked by native Make targets.
Index ¶
- Constants
- func CheckGitHubUpgradeMatrix(published []string, content []byte) error
- func DiscoverUpgradeBaselines(ctx context.Context, client *http.Client, target string) ([]string, error)
- func UpgradeBaselines(tags []string, target string) ([]string, error)
- type ConfigSnapshot
- type DefaultsOptions
- type GitOpsOptions
- type PhaseError
- type Session
- func (s *Session) Apply(ctx context.Context, object any) error
- func (s *Session) ChartUpgrade(ctx context.Context, baseline, certManager string) error
- func (s *Session) CheckControllerOutput(ctx context.Context) error
- func (s *Session) ConfigSnapshot(ctx context.Context) (*ConfigSnapshot, error)
- func (s *Session) ControllerRollout(ctx context.Context) error
- func (s *Session) Deployment(ctx context.Context, suffix string) (*appsv1.Deployment, error)
- func (s *Session) Diagnostics(ctx context.Context)
- func (s *Session) EnsureHelmDiff(ctx context.Context) error
- func (s *Session) GitOps(ctx context.Context, options *GitOpsOptions) error
- func (s *Session) Helm(ctx context.Context, args ...string) (process.Result, error)
- func (s *Session) HelmDefaults(ctx context.Context, options *DefaultsOptions) error
- func (s *Session) ImageValues() []string
- func (s *Session) Infof(format string, args ...any)
- func (s *Session) InstallWithoutGatewayAPI(ctx context.Context) error
- func (s *Session) Kube(ctx context.Context, input io.Reader, args ...string) (process.Result, error)
- func (s *Session) KubeUnscoped(ctx context.Context, input io.Reader, args ...string) (process.Result, error)
- func (s *Session) LoadControllerImage(ctx context.Context) error
- func (s *Session) LoadSPOAImage(ctx context.Context) error
- func (s *Session) Pods(ctx context.Context, component string) ([]corev1.Pod, error)
- func (s *Session) RequireNoControllerRestarts(ctx context.Context) error
- func (s *Session) Run(ctx context.Context, name string, args ...string) (process.Result, error)
- func (s *Session) RunInput(ctx context.Context, input io.Reader, name string, args ...string) (process.Result, error)
- func (s *Session) Save(name string, object any) error
- func (s *Session) UpgradeTraffic(ctx context.Context, phase string) error
- func (s *Session) WaitControllerReady(ctx context.Context, timeout time.Duration) error
- func (s *Session) WaitHAProxyReady(ctx context.Context, timeout time.Duration) error
- func (s *Session) WaitValidated(ctx context.Context, timeout time.Duration) error
Constants ¶
View Source
const CertManagerVersion = "v1.21.2"
renovate: datasource=github-releases depName=cert-manager/cert-manager
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConfigSnapshot ¶
func (*ConfigSnapshot) RequireUnchanged ¶
func (snapshot *ConfigSnapshot) RequireUnchanged(current *ConfigSnapshot) error
type DefaultsOptions ¶
type GitOpsOptions ¶
type GitOpsOptions struct{ Provider, Certificates, Image string }
type PhaseError ¶
func (*PhaseError) Error ¶
func (e *PhaseError) Error() string
func (*PhaseError) Unwrap ¶
func (e *PhaseError) Unwrap() error
type Session ¶
type Session struct {
Runner process.Runner
Cluster *kindutil.Cluster
Client kubeexec.Client
Root string
Namespace string
Release string
Artifacts string
ImageRepository string
ImageTag string
HAProxyVersion string
SPOAImage string
Log io.Writer
CommandTimeout time.Duration
// contains filtered or unexported fields
}
func (*Session) ChartUpgrade ¶
func (*Session) CheckControllerOutput ¶
func (*Session) ConfigSnapshot ¶
func (s *Session) ConfigSnapshot(ctx context.Context) (*ConfigSnapshot, error)
func (*Session) Deployment ¶
func (*Session) Diagnostics ¶
func (*Session) GitOps ¶
func (s *Session) GitOps(ctx context.Context, options *GitOpsOptions) error
func (*Session) HelmDefaults ¶
func (s *Session) HelmDefaults(ctx context.Context, options *DefaultsOptions) error
func (*Session) ImageValues ¶
func (*Session) InstallWithoutGatewayAPI ¶
func (*Session) KubeUnscoped ¶
func (s *Session) KubeUnscoped(ctx context.Context, input io.Reader, args ...string) (process.Result, error)
KubeUnscoped lets each manifest retain its declared namespace.
func (*Session) LoadControllerImage ¶
func (*Session) LoadSPOAImage ¶
LoadSPOAImage loads the chart's SPOA image, which a CI build has only locally.
func (*Session) RequireNoControllerRestarts ¶
func (*Session) UpgradeTraffic ¶
func (*Session) WaitControllerReady ¶
func (*Session) WaitHAProxyReady ¶
Source Files
¶
- baselines.go
- baselines_github.go
- certmanager.go
- config_snapshot.go
- defaults.go
- defaults_admission.go
- defaults_certificates.go
- defaults_haproxy.go
- defaults_smoke.go
- deployments.go
- diagnostics.go
- gitops.go
- gitops_certificates.go
- gitops_charts.go
- gitops_observations.go
- gitops_provider.go
- manifest.go
- observations.go
- plain.go
- resources.go
- session.go
- upgrade.go
- upgrade_recovery.go
- upgrade_traffic.go
Click to show internal directories.
Click to hide internal directories.