config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ModelInjectAnnotation is an annotation indicating the model to inject a model into a pod
	ModelInjectAnnotation = "model.config.onosproject.org/inject"
	// CompilerLanguageAnnotation is an annotation indicating which compiler language to use to compile a model
	CompilerLanguageAnnotation = "compiler.config.onosproject.org/language"
	// CompilerVersionAnnotation is an annotation indicating which compiler version to use to compile a model
	CompilerVersionAnnotation = "compiler.config.onosproject.org/version"
	// CompilerGoVersionAnnotation is an annotation indicating the Go version for which to compile a model
	CompilerGoVersionAnnotation = "compiler.config.onosproject.org/go-version"
	// CompilerGolangBuildVersionAnnotation is an annotation indicating the onosproject/go-build version for which to compile a model
	CompilerGolangBuildVersionAnnotation = "compiler.config.onosproject.org/golang-build-version"
	// CompilerGoModTargetAnnotation is an annotation indicating the Go module for which to compile a model
	CompilerGoModTargetAnnotation = "compiler.config.onosproject.org/go-mod-target"
	// CompilerGoModReplaceAnnotation is an annotation indicating a replacement for the target Go module
	CompilerGoModReplaceAnnotation = "compiler.config.onosproject.org/go-mod-replace"
)
View Source
const (
	// RegistryInjectAnnotation is an annotation indicating the model to inject the registry into a pod
	RegistryInjectAnnotation = "registry.config.onosproject.org/inject"
	// RegistryPathAnnotation is an annotation indicating the path at which to mount the registry
	RegistryPathAnnotation = "registry.config.onosproject.org/path"
)

Variables

This section is empty.

Functions

func RegisterWebhooks

func RegisterWebhooks(mgr manager.Manager) error

RegisterWebhooks registes admission webhooks on the given manager

Types

type CompilerInjector

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

CompilerInjector is a mutating webhook for injecting the compiler container into pods

func (*CompilerInjector) Handle

Handle :

func (*CompilerInjector) InjectDecoder

func (i *CompilerInjector) InjectDecoder(decoder *admission.Decoder) error

InjectDecoder :

type RegistryInjector

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

RegistryInjector is a mutating webhook for injecting the registry container into pods

func (*RegistryInjector) Handle

Handle :

func (*RegistryInjector) InjectDecoder

func (i *RegistryInjector) InjectDecoder(decoder *admission.Decoder) error

InjectDecoder :

Jump to

Keyboard shortcuts

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