workload

package
v0.1.0-beta.21 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeepCopy

func DeepCopy(w metav1.Object) metav1.Object

func GetTemplateObjectMeta

func GetTemplateObjectMeta(w any) *metav1.ObjectMeta

func Register

func Register(
	ctx context.Context,
	wctx *wrangler.Context,
)

Types

type Workload

type Workload interface {
	*appsv1.Deployment | *appsv1.DaemonSet | *appsv1.StatefulSet |
		*batchv1.Job | *batchv1.CronJob

	// Workload implements metav1.Object interface
	metav1.Object
}

The workload is an apps/v1 Deployment, DaemonSet, StatefulSet and batch/v1 Job, CronJob resource. NOTE: ReplicaSet is managed by Deployment and is not a Workload

Jump to

Keyboard shortcuts

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