resourcesemantics

package
v0.0.0-...-5dfa7fa Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAdmissionController

func NewAdmissionController(
	ctx context.Context,
	name, path string,
	handlers map[schema.GroupVersionKind]GenericCRD,
	wc func(context.Context) context.Context,
	disallowUnknownFields bool,
) *controller.Impl

NewAdmissionController constructs a reconciler

func SetUserInfoAnnotations

func SetUserInfoAnnotations(resource apis.HasSpec, ctx context.Context, groupName string)

SetUserInfoAnnotations sets creator and updater annotations on a resource.

Types

type GenericCRD

type GenericCRD interface {
	apis.Defaultable
	apis.Validatable
	runtime.Object
}

GenericCRD is the interface definition that allows us to perform the generic CRD actions like deciding whether to increment generation and so forth.

Jump to

Keyboard shortcuts

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