sidecarinjector

package
Version: v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2022 License: MIT Imports: 51 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WebhookServerLabelKey   = "sidecarinjectors.operator.h3poteto.dev"
	WebhookServerLabelValue = "webhook-pod"
)
View Source
const MutatingNamePrefix = "sidecar-injector-webhook-"

Variables

This section is empty.

Functions

func NewCertificates

func NewCertificates(serviceName, namespace string) ([]byte, []byte, error)

Types

type Controller

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

func NewController

func NewController(
	kubeclientset kubernetes.Interface,
	ownclientset clientset.Interface,
	dynamicClient *DynamicClient,
	kubeInformerFactory kubeinformers.SharedInformerFactory,
	ownInformerFactory informers.SharedInformerFactory,
	useCertManager bool,
) *Controller

func (*Controller) GetOwnerDeployment added in v0.5.0

func (c *Controller) GetOwnerDeployment(ctx context.Context, ns, name string) (*appsv1.Deployment, error)

GetOwnerDeployment gets a deployment which owns the pod.

func (*Controller) Run

func (c *Controller) Run(threadiness int, stopCh <-chan struct{}) error

type DynamicClient added in v0.7.0

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

func NewDynamicClient added in v0.7.0

func NewDynamicClient(restConfig *rest.Config, clientset kubernetes.Interface) (*DynamicClient, error)

func (*DynamicClient) Apply added in v0.7.0

func (*DynamicClient) Create added in v0.7.0

func (*DynamicClient) Get added in v0.7.0

func (*DynamicClient) ResourceClient added in v0.7.0

func (d *DynamicClient) ResourceClient(data []byte, obj *unstructured.Unstructured) (dynamic.ResourceInterface, error)

Jump to

Keyboard shortcuts

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