resources

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2021 License: Apache-2.0 Imports: 6 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"
	HostTopologyKey      = "kubernetes.io/hostname"
)

Variables

This section is empty.

Functions

func CombineLabels

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

Types

type ComponentReconciler

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

ComponentReconciler reconciler interface

type ElasticLabels

type ElasticLabels map[string]string

func NewElasticLabels

func NewElasticLabels() ElasticLabels

func (ElasticLabels) Role

func (ElasticLabels) WithRole

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 Present

func Present(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