webhook

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2019 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(o *Options) error

Generate generates RBAC manifests by parsing the RBAC annotations in Go source files specified in the input directory.

Types

type Options added in v0.1.10

type Options struct {
	// WriterOptions specifies the input and output
	WriterOptions
	// contains filtered or unexported fields
}

Options represent options for generating the webhook manifests.

func (*Options) Generate added in v0.1.10

func (o *Options) Generate() ([]runtime.Object, error)

Generate creates the AdmissionWebhookConfiguration objects and Service if any. It also provisions the certificate for the admission server.

type WriterOptions added in v0.1.10

type WriterOptions struct {
	InputDir       string
	OutputDir      string
	PatchOutputDir string
	// contains filtered or unexported fields
}

WriterOptions specifies the input and output.

func (*WriterOptions) SetDefaults added in v0.1.10

func (o *WriterOptions) SetDefaults()

SetDefaults sets up the default options for RBAC Manifest generator.

func (*WriterOptions) Validate added in v0.1.10

func (o *WriterOptions) Validate() error

Validate validates the input options.

func (*WriterOptions) WriteObjectsToDisk added in v0.1.10

func (o *WriterOptions) WriteObjectsToDisk(objects ...runtime.Object) error

WriteObjectsToDisk writes object to the location specified in WriterOptions.

Jump to

Keyboard shortcuts

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