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 ¶
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 ¶
func (i *CompilerInjector) Handle(ctx context.Context, request admission.Request) admission.Response
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 ¶
func (i *RegistryInjector) Handle(ctx context.Context, request admission.Request) admission.Response
Handle :
func (*RegistryInjector) InjectDecoder ¶
func (i *RegistryInjector) InjectDecoder(decoder *admission.Decoder) error
InjectDecoder :
Click to show internal directories.
Click to hide internal directories.