pod

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 31 Imported by: 1

Documentation

Index

Constants

View Source
const (
	MasterRole = "master"
	BatchJob   = "Job"
	// TrialKind is the name of Trial kind
	TrialKind = "Trial"
	// TrialAPIVersion is the name of Trial API Version
	TrialAPIVersion = "kubeflow.org/v1beta1"
)

Variables

View Source
var (
	NeedWrapWorkerMetricsCollectorList = [...]common.CollectorKind{
		common.StdOutCollector,
		common.TfEventCollector,
		common.FileCollector,
	}
)

Functions

This section is empty.

Types

type SidecarInjector added in v0.11.0

type SidecarInjector struct {
	// contains filtered or unexported fields
}

SidecarInjector injects metrics collect sidecar to the primary pod.

func NewSidecarInjector

func NewSidecarInjector(c client.Client, d *admission.Decoder) *SidecarInjector

NewSidecarInjector returns a new sidecar injector with the given client.

func (*SidecarInjector) Handle added in v0.11.0

func (*SidecarInjector) Mutate added in v0.11.0

func (s *SidecarInjector) Mutate(pod *v1.Pod, namespace string) (*v1.Pod, error)

func (*SidecarInjector) MutationRequired added in v0.11.0

func (s *SidecarInjector) MutationRequired(pod *v1.Pod, ns string) (bool, error)

Jump to

Keyboard shortcuts

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