core

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LABEL_DUPLICATED = "telemaco019.github.com/duplik8ted"
)

Variables

This section is empty.

Functions

func NewDuplicableListOptions added in v0.2.1

func NewDuplicableListOptions() metav1.ListOptions

func NewDuplicatedListOptions added in v0.2.1

func NewDuplicatedListOptions() metav1.ListOptions

Types

type Client added in v0.3.0

type Client interface {
	ListDuplicable(
		ctx context.Context,
		resource schema.GroupVersionResource,
		namespace string,
	) ([]DuplicableObject, error)
	ListDuplicated(ctx context.Context, namespace string) ([]DuplicatedObject, error)
	Delete(ctx context.Context, obj DuplicatedObject) error
}

type DuplicableObject

type DuplicableObject struct {
	Name      string
	Namespace string
}

func NewDuplicable added in v0.3.0

type DuplicatedObject added in v0.3.0

type DuplicatedObject struct {
	Name              string
	Namespace         string
	ObjectKind        schema.ObjectKind
	CreationTimestamp metav1.Time
}

type Duplicator added in v0.3.0

type Duplicator interface {
	Duplicate(obj DuplicableObject, opts PodOverrideOptions) error
}

type PodOverrideOptions

type PodOverrideOptions struct {
	// Command overrides the default command of each container.
	Command []string
	// Args overrides the default args of each container.
	Args []string
	// ReadinessProbe overrides the readiness probe of each container.
	ReadinessProbe *v1.Probe
	// LivenessProbe overrides the liveness probe of each container.
	LivenessProbe *v1.Probe
	// StartupProbe overrides the startup probe of each container.
	StartupProbe *v1.Probe
}

Jump to

Keyboard shortcuts

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