webhooks

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: UPL-1.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MysqlInstallValuesWebhook      = "verrazzano-platform-mysqlinstalloverrides"
	MysqlInstallValuesV1beta1path  = "/v1beta1-validate-mysql-install-override-values"
	MysqlInstallValuesV1alpha1path = "/v1alpha1-validate-mysql-install-override-values"
	RequirementsWebhook            = "verrazzano-platform-requirements-validator"
	RequirementsV1beta1Path        = "/v1beta1-validate-requirements"
	RequirementsV1alpha1Path       = "/v1alpha1-validate-requirements"
)
View Source
const (
	MySQLOperatorJobLabel      = "app.kubernetes.io/created-by"
	MySQLOperatorJobLabelValue = "mysql-operator"

	MySQLOperatorJobPodSpecAnnotationKey   = "traffic.sidecar.istio.io/excludeOutboundPorts"
	MySQLOperatorJobPodSpecAnnotationValue = "443"

	// MySQLTierKey labels required for network policy access
	MySQLTierKey   = "tier"
	MySQLTierValue = "mysql"
)
View Source
const (
	MinVersion = "1.5.0"
)

Variables

This section is empty.

Functions

func ConvertAPIVersionToGroupAndVersion

func ConvertAPIVersionToGroupAndVersion(apiVersion string) (string, string)

ConvertAPIVersionToGroupAndVersion splits APIVersion into API and version parts. An APIVersion takes the form api/version (e.g. networking.k8s.io/v1) If the input does not contain a / the group is defaulted to the empty string. apiVersion - The combined api and version to split

Types

type MySQLBackupJobWebhook

type MySQLBackupJobWebhook struct {
	client.Client
	//IstioClient   istioversionedclient.Interface
	Decoder       *admission.Decoder
	KubeClient    kubernetes.Interface
	DynamicClient dynamic.Interface
	Defaulters    []MySQLDefaulter
}

MySQLBackupJobWebhook type for Verrazzano mysql backup webhook

func (*MySQLBackupJobWebhook) Handle

Handle is the entry point for the mutating webhook. This function is called for any jobs that are created in a namespace with the label istio-injection=enabled.

func (*MySQLBackupJobWebhook) InjectDecoder

func (m *MySQLBackupJobWebhook) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects the decoder.

type MySQLDefaulter

type MySQLDefaulter interface {
}

type MysqlValuesValidatorV1alpha1

type MysqlValuesValidatorV1alpha1 struct {
	BomVersion string
	// contains filtered or unexported fields
}

MysqlValuesValidatorV1alpha1 is a struct holding objects used during validation.

func (*MysqlValuesValidatorV1alpha1) Handle

Handle performs validation of created or updated Verrazzano resources.

func (*MysqlValuesValidatorV1alpha1) InjectDecoder

func (v *MysqlValuesValidatorV1alpha1) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects the decoder.

type MysqlValuesValidatorV1beta1

type MysqlValuesValidatorV1beta1 struct {
	BomVersion string
	// contains filtered or unexported fields
}

MysqlValuesValidatorV1beta1 is a struct holding objects used during validation.

func (*MysqlValuesValidatorV1beta1) Handle

Handle performs validation of created or updated Verrazzano resources.

func (*MysqlValuesValidatorV1beta1) InjectDecoder

func (v *MysqlValuesValidatorV1beta1) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects the decoder.

type RequirementsValidatorV1alpha1

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

RequirementsValidatorV1alpha1 is a struct holding objects used during validation.

func (*RequirementsValidatorV1alpha1) Handle

Handle performs validation of the Verrazzano prerequisites based on the profiled used.

func (*RequirementsValidatorV1alpha1) InjectClient

func (v *RequirementsValidatorV1alpha1) InjectClient(c client.Client) error

InjectClient injects the client.

func (*RequirementsValidatorV1alpha1) InjectDecoder

InjectDecoder injects the decoder.

type RequirementsValidatorV1beta1

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

RequirementsValidatorV1beta1 is a struct holding objects used during validation.

func (*RequirementsValidatorV1beta1) Handle

Handle performs validation of the Verrazzano prerequisites based on the profiled used.

func (*RequirementsValidatorV1beta1) InjectClient

func (v *RequirementsValidatorV1beta1) InjectClient(c client.Client) error

InjectClient injects the client.

func (*RequirementsValidatorV1beta1) InjectDecoder

func (v *RequirementsValidatorV1beta1) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects the decoder.

Jump to

Keyboard shortcuts

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