admission_controller

package
v4.2.505+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2019 License: Apache-2.0 Imports: 6 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:"caCertFile"`
	CertFile                string                      `mapstructure:"tlsCertFile"`
	KeyFile                 string                      `mapstructure:"tlsPrivateKeyFile"`
	Enable                  bool                        `mapstructure:"enable"`
	JsonPatchValidationFunc JsonPatchValidationFuncName `mapstructure:"jsonPatchValidationFunc"`
	DeployedNamespace       string                      `mapstructure:"deployedNamespace"`
	Log                     *log.Config                 `mapstructure:"log"`
	Datahub                 *datahub.Config             `mapstructure:"datahub"`
	Port                    int32                       `mapstructure:"port"`
	Service                 *service.Config             `mapstructure:"service"`
	GRPC                    *grpc.Config                `mapstructure:"gRPC"`
}

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