workload

package
v1.0.91 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: Apache-2.0 Imports: 10 Imported by: 19

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 GetWorkloadKind added in v1.0.78

func GetWorkloadKind(w client.Object) string

func IsInstrumentationDisabledExplicitly added in v1.0.82

func IsInstrumentationDisabledExplicitly(obj client.Object) bool

func IsObjectLabeledForInstrumentation added in v1.0.71

func IsObjectLabeledForInstrumentation(obj client.Object) bool

func IsWorkloadInstrumentationEffectiveEnabled added in v1.0.82

func IsWorkloadInstrumentationEffectiveEnabled(ctx context.Context, kubeClient client.Client, obj client.Object) (bool, error)

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