grace

package
v0.26.3 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServeGfShutdown

func ServeGfShutdown(addr string) error

func SinglePodUpgrade added in v0.26.0

func SinglePodUpgrade(ctx context.Context, client *k8s.K8sClient, name string, recreate bool, conn net.Conn)

func TriggerBatchUpgrade added in v0.26.0

func TriggerBatchUpgrade(socketPath string, batchConfigName string, batchIndex int) error

func TriggerShutdown

func TriggerShutdown(socketPath string, name string, recreateFlag bool) error

Types

type BatchUpgrade added in v0.26.0

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

func NewBatchUpgrade added in v0.26.0

func NewBatchUpgrade(client *k8s.K8sClient, req upgradeRequest) *BatchUpgrade

func (*BatchUpgrade) BatchUpgrade added in v0.26.0

func (u *BatchUpgrade) BatchUpgrade(ctx context.Context, conn net.Conn)

type PodUpgrade added in v0.26.0

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

func NewPodUpgrade added in v0.26.0

func NewPodUpgrade(ctx context.Context, client *k8s.K8sClient, name string, recreate bool, conn net.Conn) (*PodUpgrade, error)

Jump to

Keyboard shortcuts

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