install

package
v0.13.12 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: Apache-2.0 Imports: 27 Imported by: 1

Documentation

Overview

Package install is responsible for installation and uninstallation of KubeArmor while autogenerating the configuration

Index

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

func K8sInstaller(c *k8s.Client, o Options) error

K8sInstaller for karmor install

func K8sUninstaller

func K8sUninstaller(c *k8s.Client, o Options) error

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

type Options

type Options struct {
	Namespace      string
	InitImage      string
	KubearmorImage string
	Tag            string
	Audit          string
	Block          string
	Visibility     string
	Force          bool
	Local          bool
	Save           bool
	Verify         bool
	Env            envOption
}

Options for karmor install

Jump to

Keyboard shortcuts

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