helper

package
v0.0.0-...-c9ecf6f Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RetrievePodPort

func RetrievePodPort(ctx context.Context, kubernetesClient client.Client, serviceReference *corev1.ObjectReference, targetPort int) (int, error)

func ToBeamlitModelDeployment

func ToBeamlitModelDeployment(ctx context.Context, kubernetesClient client.Client, modelDeployment *modelv1alpha1.ModelDeployment) (beamlit.Model, error)

Convert converts a ModelDeployment to a Beamlit ModelDeployment It is used by the controller to convert the Kubernetes resource to the Beamlit API resource

func ToBeamlitPolicy

func ToBeamlitPolicy(policy *authorizationv1alpha1.Policy) *beamlit.Policy

Types

This section is empty.

Jump to

Keyboard shortcuts

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