workload

package
v1.0.73 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 22

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRuntimeObjectName

func GetRuntimeObjectName(name string, kind string) string

runtime name is a way to store workload specific CRs with odigos and give the k8s object a name which is unique and can be used to extract the workload name and kind

func GetWorkloadInfoRuntimeName

func GetWorkloadInfoRuntimeName(name string) (workloadName string, workloadKind string, err error)

func IsObjectLabeledForInstrumentation added in v1.0.71

func IsObjectLabeledForInstrumentation(obj client.Object) bool

Types

type DaemonSetWorkload added in v1.0.71

type DaemonSetWorkload struct {
	*v1.DaemonSet
}

func (*DaemonSetWorkload) AvailableReplicas added in v1.0.71

func (d *DaemonSetWorkload) AvailableReplicas() int32

type DeploymentWorkload added in v1.0.71

type DeploymentWorkload struct {
	*v1.Deployment
}

func (*DeploymentWorkload) AvailableReplicas added in v1.0.71

func (d *DeploymentWorkload) AvailableReplicas() int32

type StatefulSetWorkload added in v1.0.71

type StatefulSetWorkload struct {
	*v1.StatefulSet
}

func (*StatefulSetWorkload) AvailableReplicas added in v1.0.71

func (s *StatefulSetWorkload) AvailableReplicas() int32

type Workload added in v1.0.71

type Workload interface {
	client.Object
	AvailableReplicas() int32
}

func ObjectToWorkload added in v1.0.71

func ObjectToWorkload(obj client.Object) (Workload, error)

Jump to

Keyboard shortcuts

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