operator

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartServer

func StartServer(workingDir string) error

start Kubernetes mutation webhook endpoint

Types

type AdmissionReview

type AdmissionReview struct {
	Kind       string  `json:"kind"`
	ApiVersion string  `json:"apiVersion"`
	Request    Request `json:"request"`
}

type AdmissionReviewResult

type AdmissionReviewResult struct {
	Kind       string   `json:"kind"`
	ApiVersion string   `json:"apiVersion"`
	Response   Response `json:"response"`
}

type Request

type Request struct {
	Uid    string                 `json:"uid"`
	Object map[string]interface{} `json:"object"`
}

type Response

type Response struct {
	Uid       string `json:"uid"`
	Allowed   bool   `json:"allowed"`
	PatchType string `json:"patchType,omitempty"`
	Patch     string `json:"patch,omitempty"`
}

Jump to

Keyboard shortcuts

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