admission_controller

package
v4.2.153+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

README

Deploy Admission-Controller

  1. Deploy Secret and MutatingWebhookConfiguration that admission-controller needs.
sh $GOPATH/src/github.com/containers-ai/alameda/admission-controller/generate-key.sh
  1. Deploy admission-controller.
kubectl apply -f $GOPATH/src/github.com/containers-ai/alameda/admission-controller/deployment.yaml

Documentation

Index

Constants

View Source
const (
	JsonPatchValidationFuncOpenshift3_9 = "openshift3.9"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	CACertFile              string                      `mapstructure:"ca-cert-file"`
	CertFile                string                      `mapstructure:"tls-cert-file"`
	KeyFile                 string                      `mapstructure:"tls-private-key-file"`
	Enable                  bool                        `mapstructure:"enable"`
	JsonPatchValidationFunc JsonPatchValidationFuncName `mapstructure:"json-patch-validation-func"`
	DeployedNamespace       string                      `mapstructure:"deployed-namespace"`
	Log                     *log.Config                 `mapstructure:"log"`
	Datahub                 *datahub.Config             `mapstructure:"datahub"`
	Port                    int32                       `mapstructure:"port"`
	Service                 *service.Config             `mapstructure:"service"`
}

Config contains the server (the webhook) cert and key.

func NewDefaultConfig

func NewDefaultConfig() Config

func (Config) ConfigTLS added in v0.3.8

func (c Config) ConfigTLS() (*tls.Config, error)

type JsonPatchValidationFuncName added in v0.3.30

type JsonPatchValidationFuncName = string

Jump to

Keyboard shortcuts

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