runner

package
v5.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAutomatedRollbackPolicyNotFound = errors.New("automated rollback policy not found")

Functions

func HasRevision

func HasRevision(release deployv1alpha1.Release, revisionName string) bool

Types

type CreateRollbackOptions

type CreateRollbackOptions struct {
	Name               string
	GenerateNamePrefix string
	Namespace          string
	Labels             map[string]string

	Reason          string
	ToReleaseTarget string
	ToReleaseName   string

	InitiatedByPrincipal string
	InitiatedByType      string

	DeploymentOptions map[string]apiextv1.JSON
}

type GetAutomatedRollbackPolicyOptions

type GetAutomatedRollbackPolicyOptions struct {
	Namespace  string
	TargetName string
}

type GetReleaseOptions

type GetReleaseOptions struct {
	Namespace string
	Name      string
}

type ListReleasesOptions

type ListReleasesOptions struct {
	Namespace string
	Target    string
	Limit     int
}

ListReleasesOptions defines parameters for listing releases

type ListRollbacksOptions

type ListRollbacksOptions struct {
	Namespace string
	Target    string
	Limit     int
}

ListRollbacksOptions defines parameters for listing rollbacks

type Runner

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

Runner provides operations for managing deploy resources

func New

func New(cfg *rest.Config) (*Runner, error)

New builds a runner from a Kubernetes rest config

func (*Runner) CreateRollback

func (r *Runner) CreateRollback(ctx context.Context, opts CreateRollbackOptions) (*deployv1alpha1.Rollback, error)

func (*Runner) GetAutomatedRollbackPolicyByTarget

func (r *Runner) GetAutomatedRollbackPolicyByTarget(ctx context.Context, opts GetAutomatedRollbackPolicyOptions) (*deployv1alpha1.AutomatedRollbackPolicy, error)

GetAutomatedRollbackPolicyByTarget retrieves an automated rollback policy by target name

func (*Runner) GetRelease

func (r *Runner) GetRelease(ctx context.Context, opts GetReleaseOptions) (*deployv1alpha1.Release, error)

func (*Runner) ListReleases

func (r *Runner) ListReleases(ctx context.Context, opts ListReleasesOptions) ([]deployv1alpha1.Release, error)

ListReleases fetches releases for a specific target in a namespace, sorted by deployment end time (most recent first)

func (*Runner) ListRollbacks

func (r *Runner) ListRollbacks(ctx context.Context, opts ListRollbacksOptions) ([]deployv1alpha1.Rollback, error)

ListRollbacks fetches rollbacks for a specific target in a namespace, sorted by completion time (most recent first)

func (*Runner) UpdateAutomatedRollbackPolicy

func (r *Runner) UpdateAutomatedRollbackPolicy(ctx context.Context, opts UpdateAutomatedRollbackPolicyOptions) error

UpdateAutomatedRollbackPolicy updates the enabled status of an automated rollback policy

type UpdateAutomatedRollbackPolicyOptions

type UpdateAutomatedRollbackPolicyOptions struct {
	Namespace  string
	TargetName string
	Enabled    bool
}

Jump to

Keyboard shortcuts

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