admission

package
v0.0.0-...-c3d1141 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AerospikeMeshSeedAddressMaxLength represents the maximum length of a name that can be used in
	// the "mesh-seed-address-port", as defined in
	//
	// https://github.com/aerospike/aerospike-server/blob/4.2.0.10/as/src/fabric/hb.c#L6734-L6741
	//
	// In practice, the abovementioned snippet means that the length of
	//
	//     <pod name> + "." + <aerospike cluster name> + "." + <kubernetes namespace name>
	//
	// cannot exceed AerospikeMeshSeedAddressMaxLength (64) characters. Since <pod-name> is created from
	// <aerospike cluster name> by append "-X" (where X is an integer between 0 and 7), this means
	// that 2 * (len(<aerospike cluster name) + 2) + <kubernetes namespace name> cannot exceed this value.
	AerospikeMeshSeedAddressMaxLength = 63
	// AerospikeClusterNameMaxLength represents the maximum length of an AerospikeCluster's metadata.name.
	// the length corresponds to the maximum length of a pod name (63 characters) minus the dash and
	// the index (a single digit).
	AerospikeClusterNameMaxLength = 61
)

Variables

View Source
var (
	// Enabled represents whether the validating admission webhook is enabled.
	Enabled bool
)

Functions

This section is empty.

Types

type ValidatingAdmissionWebhook

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

ValidatingAdmissionWebhook represents a validating admission webhook.

func NewValidatingAdmissionWebhook

func NewValidatingAdmissionWebhook(
	namespace string,
	kubeClient kubernetes.Interface,
	aerospikeClient aerospikeclientset.Interface) *ValidatingAdmissionWebhook

NewValidatingAdmissionWebhook creates a ValidatingAdmissionWebhook struct that will use the specified client to access the API.

func (*ValidatingAdmissionWebhook) Register

func (s *ValidatingAdmissionWebhook) Register() error

Register registers the validating admission webhook.

func (*ValidatingAdmissionWebhook) Run

func (s *ValidatingAdmissionWebhook) Run(stopCh chan struct{})

func (*ValidatingAdmissionWebhook) WaitReady

func (s *ValidatingAdmissionWebhook) WaitReady() error

WaitReady waits for the endpoints associated with the aerospike-operator service to be ready.

Jump to

Keyboard shortcuts

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