scanapi

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DeploymentSuffix = "-scan-api"
	ServiceSuffix    = "-scan-api"
	SecretSuffix     = "-scan-api-token"
	Port             = 8080
)

Variables

This section is empty.

Functions

func Cleanup

func Cleanup(ctx context.Context, kubeClient client.Client, ns string, mondoo mondoov1alpha2.MondooAuditConfig) error

Cleanup cleans up the scan API for a given MondooAuditConfig. The function returns no errors if the scan API is already deleted.

func Deploy

func Deploy(ctx context.Context, kubeClient client.Client, ns, image string, mondoo mondoov1alpha2.MondooAuditConfig) error

Deploy deploys the scan API for a given MondooAuditConfig. The function checks if the scan API is already deployed. If that is the case, the existing resources are compared with the ones that are desired and the necessary updates are applied.

func DeploymentLabels

func DeploymentLabels(m v1alpha2.MondooAuditConfig) map[string]string

func DeploymentName

func DeploymentName(prefix string) string

func ScanApiDeployment

func ScanApiDeployment(ns, image string, m v1alpha2.MondooAuditConfig) *appsv1.Deployment

func ScanApiSecret added in v0.2.6

func ScanApiSecret(mondoo v1alpha2.MondooAuditConfig) *corev1.Secret

func ScanApiService

func ScanApiService(ns string, m v1alpha2.MondooAuditConfig) *corev1.Service

func SecretName added in v0.2.6

func SecretName(prefix string) string

func ServiceName

func ServiceName(prefix string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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