fleetworkspace

package
v0.3.6-rc2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mutator

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

Mutator implements admission.MutatingAdmissionWebhook.

func NewMutator

func NewMutator(client *clients.Clients) *Mutator

NewMutator returns an initialized Mutator.

func (*Mutator) Admit

When fleetworkspace is created, it will create the following resources: 1. Namespace. It will have the same name as fleetworkspace 2. fleetworkspace ClusterRole. It will create the cluster role that has * permission only to the current workspace 3. Two roleBinding to bind the current user to fleet-admin roles and fleetworkspace roles

func (*Mutator) GVR

GVR returns the GroupVersionKind for this CRD.

func (*Mutator) MutatingWebhook

MutatingWebhook returns the MutatingWebhook used for this CRD.

func (*Mutator) Operations

func (m *Mutator) Operations() []admissionregistrationv1.OperationType

Operations returns list of operations handled by this mutator.

Jump to

Keyboard shortcuts

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