mutate

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package mutate defines the logic of Liqo Mutating Webhook.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MutationConfig

type MutationConfig struct {
	CertFile string
	KeyFile  string
}

type MutationServer

type MutationServer struct {
	// contains filtered or unexported fields
}

func NewMutationServer

func NewMutationServer(ctx context.Context, c *MutationConfig) (*MutationServer, error)

NewMutationServer creates a new mutation server.

func (*MutationServer) Mutate

func (s *MutationServer) Mutate(body []byte) ([]byte, error)

Mutate mutates the object received via admReview and creates a response that embeds a patch to the received pod.

func (*MutationServer) Serve

func (s *MutationServer) Serve()

Serve is a wrapper function for ListenAndServeTLS.

func (*MutationServer) Shutdown added in v0.3.0

func (s *MutationServer) Shutdown(ctx context.Context)

Shutdown gracefully shuts down the server without interrupting any active connections.

Directories

Path Synopsis
Package mutatetestutils provides utility funcition for webhook testing.
Package mutatetestutils provides utility funcition for webhook testing.

Jump to

Keyboard shortcuts

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