Documentation ¶
Overview ¶
Package install is responsible for installation and uninstallation of KubeArmor while autogenerating the configuration
Index ¶
- func CreateCustomResourceDefinition(crdName string) apiextensions.CustomResourceDefinition
- func GenerateCA() (*x509.Certificate, *rsa.PrivateKey, error)
- func GenerateCSR(namespace string, serviceName string) (*x509.Certificate, *rsa.PrivateKey, error)
- func GeneratePki(namespace string, serviceName string) (*bytes.Buffer, *bytes.Buffer, *bytes.Buffer, error)
- func K8sInstaller(c *k8s.Client, o Options) error
- func K8sUninstaller(c *k8s.Client, o Options) error
- func SignCSR(caCrt *x509.Certificate, caKey *rsa.PrivateKey, csrCrt *x509.Certificate, ...) ([]byte, error)
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCustomResourceDefinition ¶
func CreateCustomResourceDefinition(crdName string) apiextensions.CustomResourceDefinition
CreateCustomResourceDefinition creates the CRD and add it into Kubernetes.
func GenerateCA ¶ added in v0.7.4
func GenerateCA() (*x509.Certificate, *rsa.PrivateKey, error)
GenerateCA - generate private key and a cert for a CA
func GenerateCSR ¶ added in v0.7.4
func GenerateCSR(namespace string, serviceName string) (*x509.Certificate, *rsa.PrivateKey, error)
GenerateCSR - generate certificate signing request
func GeneratePki ¶ added in v0.7.4
func GeneratePki(namespace string, serviceName string) (*bytes.Buffer, *bytes.Buffer, *bytes.Buffer, error)
GeneratePki - generate pub/priv keypair
func K8sInstaller ¶
K8sInstaller for karmor install
func K8sUninstaller ¶
K8sUninstaller for karmor uninstall
func SignCSR ¶ added in v0.7.4
func SignCSR(caCrt *x509.Certificate, caKey *rsa.PrivateKey, csrCrt *x509.Certificate, csrKey *rsa.PrivateKey) ([]byte, error)
SignCSR - signs a certificate signing request essentially approving it using the given CA
Types ¶
Click to show internal directories.
Click to hide internal directories.