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 v1alpha1.MondooAuditConfig) map[string]string
- func DeploymentName(prefix string) string
- func ScanApiDeployment(ns, image string, m v1alpha1.MondooAuditConfig) *appsv1.Deployment
- func ScanApiService(ns string, m v1alpha1.MondooAuditConfig) *corev1.Service
- func ServiceName(prefix string) string
Constants ¶
View Source
const ( DeploymentSuffix = "-scan-api" ServiceSuffix = "-scan-api" Port = 8080 )
Variables ¶
This section is empty.
Functions ¶
func Cleanup ¶
func Cleanup(ctx context.Context, kubeClient client.Client, ns string, mondoo mondoov1alpha1.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 mondoov1alpha1.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 v1alpha1.MondooAuditConfig) map[string]string
func DeploymentName ¶
func ScanApiDeployment ¶
func ScanApiDeployment(ns, image string, m v1alpha1.MondooAuditConfig) *appsv1.Deployment
func ScanApiService ¶
func ScanApiService(ns string, m v1alpha1.MondooAuditConfig) *corev1.Service
func ServiceName ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.