admission_controller

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 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

This section is empty.

Variables

This section is empty.

Functions

func ConfigTLS

func ConfigTLS(config Config, clientset *kubernetes.Clientset) *tls.Config

func GetK8SClient

func GetK8SClient() *kubernetes.Clientset

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"`
	DeployedNamespace string          `mapstructure:"deployed-namespace"`
	Log               *log.Config     `mapstructure:"log"`
	Datahub           *datahub.Config `mapstructure:"datahub"`
}

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

func NewDefaultConfig

func NewDefaultConfig() Config

Jump to

Keyboard shortcuts

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