Documentation ¶
Index ¶
- type AdmissionRegistrationVersion
- type K8s
- func (k8s *K8s) GetCaFromSecret(secretName string, namespace string, caName string) ([]byte, error)
- func (k8s *K8s) PatchCustomResourceDefinitions(ctx context.Context, crds, crdAPIGroup string, ca []byte) error
- func (k8s *K8s) PatchWebhookConfigurations(ctx context.Context, configurationNames string, ca []byte, ...) error
- func (k8s *K8s) SaveCertsToSecret(ctx context.Context, secretName, namespace, caName, certName, keyName string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdmissionRegistrationVersion ¶
type AdmissionRegistrationVersion string
type K8s ¶
type K8s struct {
// contains filtered or unexported fields
}
func New ¶
func New(cs kubernetes.Interface, aggregatorCS clientset.Interface, apiextensionsCS apiextensions.Interface) (*K8s, error)
func (*K8s) GetCaFromSecret ¶
GetCaFromSecret will check for the presence of a secret. If it exists, will return the content of the "ca" from the secret, otherwise will return nil.
func (*K8s) PatchCustomResourceDefinitions ¶
func (*K8s) PatchWebhookConfigurations ¶
func (k8s *K8s) PatchWebhookConfigurations( ctx context.Context, configurationNames string, ca []byte, failurePolicy string, patchMutating bool, patchValidating bool, version AdmissionRegistrationVersion, ) error
PatchWebhookConfigurations will patch validatingWebhook and mutatingWebhook clientConfig configurations with the provided ca data. If failurePolicy is provided, patch all webhooks with this value.
Click to show internal directories.
Click to hide internal directories.