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 ¶
func NewDuplicable ¶ added in v0.3.0
func NewDuplicable(u unstructured.Unstructured) DuplicableObject
type DuplicatedObject ¶ added in v0.3.0
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 }
Click to show internal directories.
Click to hide internal directories.