rollout

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const FieldManager = "haptic-prepare-upgrade"

FieldManager names the image patch so its ownership entry can be released.

Variables

This section is empty.

Functions

func Container

func Container(containers []corev1.Container, name string) *corev1.Container

Types

type IdentityReader

type IdentityReader func(context.Context, *corev1.Pod) (buildinfo.Identity, error)

IdentityReader reads the running binary, rather than trusting its image tag.

func ReadIdentity

func ReadIdentity(containerName string) IdentityReader

type Plan

type Plan struct {
	Client       kubernetes.Interface
	Deployment   *appsv1.Deployment
	Container    string
	Image        string
	PullPolicy   corev1.PullPolicy
	Identity     buildinfo.Identity
	ReadIdentity IdentityReader
	// contains filtered or unexported fields
}

Plan changes one container while preserving the Deployment's rollout policy.

func (*Plan) Run

func (p *Plan) Run(ctx context.Context) error

func (*Plan) VerifyUnchangedImage

func (p *Plan) VerifyUnchangedImage(ctx context.Context) error

VerifyUnchangedImage prevents a retagged image from bypassing rollout during recovery.

Jump to

Keyboard shortcuts

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