mctx

package
v0.0.0-...-a2226db Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDefaults

func SetDefaults(ctx context.Context, obj runtime.Object) error

SetDefaults when cloud mode is enabled.

Types

type AdmissionCtrl

type AdmissionCtrl struct{}

func (AdmissionCtrl) Default

func (a AdmissionCtrl) Default(ctx context.Context, obj runtime.Object) error

Default implements admission.CustomDefaulter.

func (AdmissionCtrl) SetupWithManager

func (a AdmissionCtrl) SetupWithManager(mgr ctrl.Manager) error

func (AdmissionCtrl) ValidateCreate

func (a AdmissionCtrl) ValidateCreate(
	ctx context.Context,
	obj runtime.Object,
) (admission.Warnings, error)

ValidateCreate implements admission.CustomValidator.

func (AdmissionCtrl) ValidateDelete

func (a AdmissionCtrl) ValidateDelete(
	ctx context.Context, obj runtime.Object,
) (admission.Warnings, error)

ValidateDelete implements admission.CustomValidator.

func (AdmissionCtrl) ValidateUpdate

func (a AdmissionCtrl) ValidateUpdate(
	ctx context.Context,
	oldObj runtime.Object,
	newObj runtime.Object,
) (admission.Warnings, error)

ValidateUpdate implements admission.CustomValidator.

type CloudTokenClaims

type CloudTokenClaims struct {
	jwt.RegisteredClaims
	CloudTokenClaimsData
}

type CloudTokenClaimsData

type CloudTokenClaimsData struct {
	Org       string   `json:"org"`
	Envs      []string `json:"envs"`
	Geography string   `json:"cpg"`
}

Jump to

Keyboard shortcuts

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