Documentation
¶
Overview ¶
Package dryrun provides dry-run functionality for previewing AMI updates. It implements clean separation of concerns and proper resource management.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DryRunResult ¶ added in v0.3.0
type DryRunResult struct {
UpdatesNeeded []NodegroupUpdate
UpdatesSkipped []NodegroupUpdate
AlreadyLatest []NodegroupUpdate
// contains filtered or unexported fields
}
DryRunResult contains the results of a dry-run analysis.
type DryRunner ¶ added in v0.3.0
type DryRunner struct {
// contains filtered or unexported fields
}
DryRunner handles dry-run operations for AMI updates.
func NewDryRunner ¶ added in v0.3.0
func NewDryRunner(ctx context.Context, awsCfg aws.Config, eksClient *eks.Client, clusterName string, force, quiet bool) (*DryRunner, error)
NewDryRunner creates a new dry runner instance. All clients are built from awsCfg — the same config the caller used for its EKS client — so the preview queries the same account/region as the real run and honors the caller's context (flags, timeouts, cancellation).
func (*DryRunner) Analyze ¶ added in v0.3.0
func (dr *DryRunner) Analyze(ctx context.Context, nodegroups []string) *DryRunResult
Analyze performs dry-run analysis on the selected nodegroups.
func (*DryRunner) DisplayResults ¶ added in v0.3.0
func (dr *DryRunner) DisplayResults(result *DryRunResult)
DisplayResults shows the summary of the dry-run analysis.
type NodegroupUpdate ¶ added in v0.3.0
type NodegroupUpdate struct {
Name string
Action refreshTypes.DryRunAction
CurrentAMI string
LatestAMI string
Reason string
}
NodegroupUpdate contains information about a nodegroup update action.