Skip to content

Commit 038688a

Browse files
chris-rockclaude
andcommitted
fix: address lint and license-check CI failures
- Fix copyright header format to match project style - Remove unused operatorImage variable - Check error return from Uninstall in panic handler - Remove unused os import Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 29ce83e commit 038688a

4 files changed

Lines changed: 5 additions & 12 deletions

File tree

cmd/mondoo-operator/cleanup/cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Mondoo, Inc.
1+
// Copyright Mondoo, Inc. 2026
22
// SPDX-License-Identifier: BUSL-1.1
33

44
package cleanup

hack/update-helm-crds.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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.

tests/framework/utils/helm_helper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Mondoo, Inc.
1+
// Copyright Mondoo, Inc. 2026
22
// SPDX-License-Identifier: BUSL-1.1
33

44
package utils

tests/integration/helm_chart_test.go

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
// Copyright (c) Mondoo, Inc.
1+
// Copyright Mondoo, Inc. 2026
22
// SPDX-License-Identifier: BUSL-1.1
33

44
package integration
55

66
import (
77
"context"
88
"fmt"
9-
"os"
109
"path/filepath"
1110
"testing"
1211
"time"
@@ -96,12 +95,6 @@ func (s *HelmChartSuite) TestHelmTemplate() {
9695
func (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
}()

0 commit comments

Comments
 (0)