resources

package
v0.9.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const (
	PretrainedModelLabel = "opni.io/pretrained-model"
	ServiceLabel         = "opni.io/service"
	OpniClusterName      = "opni.io/cluster-name"
	AppNameLabel         = "app.kubernetes.io/name"
	PartOfLabel          = "app.kubernetes.io/part-of"
	InstanceLabel        = "app.kubernetes.io/instance"
	HostTopologyKey      = "kubernetes.io/hostname"
	OpniClusterID        = "opni.io/cluster-id"
	OpniBootstrapToken   = "opni.io/bootstrap-token"
	OpniInferenceType    = "opni.io/inference-type"
	OpniConfigHash       = "opni.io/config-hash"
)
View Source
const (
	InternalIndexingUser = "opni-indexer"
)

Variables

This section is empty.

Functions

func CombineLabels

func CombineLabels(maps ...map[string]string) map[string]string

func FindManagerImage added in v0.4.1

func FindManagerImage(ctx context.Context, c client.Client) (string, corev1.PullPolicy, error)

func NewGatewayLabels added in v0.4.1

func NewGatewayLabels() map[string]string

func ReconcileAll added in v0.4.1

func ReconcileAll(r reconciler.ResourceReconciler, resources []Resource) k8sutil.RequeueOp

Types

type ComponentReconciler

type ComponentReconciler func() (*reconcile.Result, error)

ComponentReconciler reconciler interface

type OpensearchLabels added in v0.4.0

type OpensearchLabels map[string]string

func NewOpensearchLabels added in v0.4.0

func NewOpensearchLabels() OpensearchLabels

type Resource

type Resource func() (runtime.Object, reconciler.DesiredState, error)

Resource redeclaration of function with return type kubernetes Object

func Absent

func Absent(obj client.Object) Resource

func Created added in v0.4.1

func Created(obj client.Object) Resource

func CreatedIff added in v0.4.1

func CreatedIff(condition bool, obj client.Object) Resource

func Error added in v0.3.1

func Error(obj client.Object, err error) Resource

func Present

func Present(obj client.Object) Resource

func PresentIff added in v0.4.1

func PresentIff(condition bool, obj client.Object) Resource

type ResourceWithLog

type ResourceWithLog func(log logr.Logger) runtime.Object

ResourceWithLog redeclaration of function with logging parameter and return type kubernetes Object

Jump to

Keyboard shortcuts

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