Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupPodWebhookWithManager ¶
func SetupPodWebhookWithManager(mgr ctrl.Manager, portAllocator *portallocator.PortAllocator) error
SetupPodWebhookWithManager registers the webhook for Pod in the manager.
Types ¶
type TFResource ¶
type TensorFusionInfo ¶
type TensorFusionInfo struct { Profile *tfv1.WorkloadProfileSpec DynamicReplicas bool EnabledReplicas *int32 WorkloadName string ContainerNames []string GenWorkload bool // Pod mutating webhook can not get Pod UID sometimes, // thus need pod controller to set the owner reference PendingSetPodAsOwner bool }
func ParseTensorFusionInfo ¶
type TensorFusionPodCounter ¶ added in v1.26.0
func (*TensorFusionPodCounter) Decrease ¶ added in v1.26.0
Decrease decreases the counter in owner annotation by key
type TensorFusionPodMutator ¶
type TensorFusionPodMutator struct { Client client.Client // contains filtered or unexported fields }
func (*TensorFusionPodMutator) Handle ¶
func (m *TensorFusionPodMutator) Handle(ctx context.Context, req admission.Request) admission.Response
Handle implements admission.Handler interface.
func (*TensorFusionPodMutator) InjectDecoder ¶
func (m *TensorFusionPodMutator) InjectDecoder(d admission.Decoder) error
InjectDecoder injects the decoder.
Click to show internal directories.
Click to hide internal directories.