File tree Expand file tree Collapse file tree
cmd/mondoo-operator/cleanup Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- // Copyright (c) Mondoo, Inc.
1+ // Copyright Mondoo, Inc. 2026
22// SPDX-License-Identifier: BUSL-1.1
33
44package cleanup
Original file line number Diff line number Diff line change 11#! /bin/bash
2- # Copyright (c) Mondoo, Inc.
2+ # Copyright Mondoo, Inc. 2026
33# SPDX-License-Identifier: BUSL-1.1
44#
55# This script updates the CRD templates in the Helm chart from the generated CRDs.
Original file line number Diff line number Diff line change 1- // Copyright (c) Mondoo, Inc.
1+ // Copyright Mondoo, Inc. 2026
22// SPDX-License-Identifier: BUSL-1.1
33
44package utils
Original file line number Diff line number Diff line change 1- // Copyright (c) Mondoo, Inc.
1+ // Copyright Mondoo, Inc. 2026
22// SPDX-License-Identifier: BUSL-1.1
33
44package integration
55
66import (
77 "context"
88 "fmt"
9- "os"
109 "path/filepath"
1110 "testing"
1211 "time"
@@ -96,12 +95,6 @@ func (s *HelmChartSuite) TestHelmTemplate() {
9695func (s * HelmChartSuite ) TestHelmInstallAndUninstall () {
9796 chartPath := filepath .Join (s .rootFolder , helmChartPath )
9897
99- // Get the operator image from environment or use default
100- operatorImage := os .Getenv ("OPERATOR_IMAGE" )
101- if operatorImage == "" {
102- operatorImage = "ghcr.io/mondoohq/mondoo-operator:latest"
103- }
104-
10598 values := map [string ]string {
10699 "controllerManager.manager.image.repository" : "ghcr.io/mondoohq/mondoo-operator" ,
107100 "controllerManager.manager.image.tag" : "latest" ,
@@ -243,7 +236,7 @@ func TestHelmChartSuite(t *testing.T) {
243236 zap .S ().Errorf ("Test suite panicked: %v" , r )
244237 // Attempt cleanup
245238 if s .helmHelper != nil && s .namespace != "" {
246- s .helmHelper .Uninstall (helmReleaseName , s .namespace )
239+ _ , _ = s .helmHelper .Uninstall (helmReleaseName , s .namespace )
247240 }
248241 }
249242 }()
You can’t perform that action at this time.
0 commit comments