Documentation ¶
Index ¶
- Constants
- func Cleanup(ctx context.Context, kubeClient client.Client, ns string, ...) error
- func Deploy(ctx context.Context, kubeClient client.Client, ns, image string, ...) error
- func DeploymentLabels(m v1alpha2.MondooAuditConfig) map[string]string
- func DeploymentName(prefix string) string
- func ScanApiDeployment(ns, image string, m v1alpha2.MondooAuditConfig) *appsv1.Deployment
- func ScanApiSecret(mondoo v1alpha2.MondooAuditConfig) *corev1.Secret
- func ScanApiService(ns string, m v1alpha2.MondooAuditConfig) *corev1.Service
- func SecretName(prefix string) string
- func ServiceName(prefix string) string
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 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 ServiceName ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.