package
2.12.2+incompatible
Repository: https://github.com/openebs/maya.git
Documentation: pkg.go.dev

# Functions

BuildForAPIObject builds for api admission response object.
EncodeCertPEM returns PEM-endcoded certificate data.
EncodePrivateKeyPEM returns PEM-encoded private key data.
GetAdmissionName return the admission server name.
GetAdmissionReference is a utility function to fetch a reference to the admission webhook deployment object.
GetSecret fetches the secret resource in the given namespace.
GetValidatorWebhook fetches the webhook validator resource in Openebs namespace.
InitValidationServer creates secret, service and admission validation k8s resources.
New creates a new instance of a webhook.
NewAdmissionResponse returns an empty instance of AdmissionResponse.
NewCA ...
NewClientKeyPair ...
NewServerKeyPair ...
NewSignedCert creates a signed certificate using the given CA certificate and key.
StrPtr convert a string to a pointer.

# Constants

AdmissionNameEnvVar is the constant for env variable ADMISSION_WEBHOOK_NAME which is the name of the current admission webhook.
CertificateBlockType is a possible value for pem.Block.Type.
PrivateKeyBlockType is a possible value for pem.Block.Type.
PublicKeyBlockType is a possible value for pem.Block.Type.
RSAPrivateKeyBlockType is a possible value for pem.Block.Type.

# Variables

DefaultEllipticCurve specifies the default elliptic curve to be used for key generation.
Fail means that an error calling the webhook causes the admission to fail.
Ignore means that an error calling the webhook is ignored.
SideEffectClassNone means that calling the webhook will have no side effects.
WebhookFailurePolicye represents failure policy env name to make it configurable via ENV.

# Structs

AdmissionResponse embeds K8S admission response API.
KeyPair ...
Parameters are server configures parameters.