Documentation ¶
Index ¶
Constants ¶
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" )
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" )
const (
MinVersion = "1.5.0"
)
Variables ¶
This section is empty.
Functions ¶
func ConvertAPIVersionToGroupAndVersion ¶
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 ¶
func (m *MySQLBackupJobWebhook) Handle(ctx context.Context, req admission.Request) admission.Response
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 ¶
func (v *MysqlValuesValidatorV1alpha1) Handle(ctx context.Context, req admission.Request) admission.Response
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 ¶
func (v *MysqlValuesValidatorV1beta1) Handle(ctx context.Context, req admission.Request) admission.Response
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 ¶
func (v *RequirementsValidatorV1alpha1) Handle(ctx context.Context, req admission.Request) admission.Response
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 ¶
func (v *RequirementsValidatorV1alpha1) InjectDecoder(d *admission.Decoder) error
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 ¶
func (v *RequirementsValidatorV1beta1) Handle(ctx context.Context, req admission.Request) admission.Response
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.