dryrun

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 13 Imported by: 0

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

func PerformDryRun

func PerformDryRun(ctx context.Context, eksClient *eks.Client, clusterName string, selectedNodegroups []string, force bool, quiet bool) error

PerformDryRun shows what would be updated without making changes.

Types

type DryRunResult added in v0.4.1

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.4.1

type DryRunner struct {
	// contains filtered or unexported fields
}

DryRunner handles dry-run operations for AMI updates.

func NewDryRunner added in v0.4.1

func NewDryRunner(eksClient *eks.Client, clusterName string, force, quiet bool) (*DryRunner, error)

NewDryRunner creates a new dry runner instance.

func (*DryRunner) Analyze added in v0.4.1

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.4.1

func (dr *DryRunner) DisplayResults(result *DryRunResult)

DisplayResults shows the summary of the dry-run analysis.

type NodegroupUpdate added in v0.4.1

type NodegroupUpdate struct {
	Name       string
	Action     refreshTypes.DryRunAction
	CurrentAMI string
	LatestAMI  string
	Reason     string
}

NodegroupUpdate contains information about a nodegroup update action.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL