Skip to content

Commit

Permalink
🧹update to cnspec v10 (#1032)
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Milchev <[email protected]>
  • Loading branch information
imilchev authored Feb 27, 2024
1 parent fca6dfd commit 95cbe8f
Show file tree
Hide file tree
Showing 11 changed files with 387 additions and 326 deletions.
2 changes: 1 addition & 1 deletion cmd/mondoo-operator/garbage_collect/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

"github.com/go-logr/logr"
"github.com/spf13/cobra"
"go.mondoo.com/cnspec/v9/policy/scan"
"go.mondoo.com/cnspec/v10/policy/scan"
"go.mondoo.com/mondoo-operator/pkg/client/scanapiclient"
"go.mondoo.com/mondoo-operator/pkg/utils/logger"
"k8s.io/utils/ptr"
Expand Down
2 changes: 1 addition & 1 deletion controllers/container_image/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

// That's the mod k8s relies on https://github.com/kubernetes/kubernetes/blob/master/go.mod#L63

"go.mondoo.com/cnquery/v9/providers-sdk/v1/inventory"
"go.mondoo.com/cnquery/v10/providers-sdk/v1/inventory"
"go.mondoo.com/mondoo-operator/api/v1alpha2"
"go.mondoo.com/mondoo-operator/pkg/constants"
"go.mondoo.com/mondoo-operator/pkg/feature_flags"
Expand Down
2 changes: 1 addition & 1 deletion controllers/nodes/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (

// That's the mod k8s relies on https://github.com/kubernetes/kubernetes/blob/master/go.mod#L63

"go.mondoo.com/cnquery/v9/providers-sdk/v1/inventory"
"go.mondoo.com/cnquery/v10/providers-sdk/v1/inventory"
"go.mondoo.com/mondoo-operator/api/v1alpha2"
"go.mondoo.com/mondoo-operator/controllers/scanapi"
"go.mondoo.com/mondoo-operator/pkg/constants"
Expand Down
188 changes: 95 additions & 93 deletions go.mod

Large diffs are not rendered by default.

501 changes: 280 additions & 221 deletions go.sum

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pkg/client/scanapiclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"strings"
"time"

"go.mondoo.com/cnquery/v9/providers-sdk/v1/inventory"
"go.mondoo.com/cnspec/v9/policy/scan"
"go.mondoo.com/cnquery/v10/providers-sdk/v1/inventory"
"go.mondoo.com/cnspec/v10/policy/scan"
"go.mondoo.com/mondoo-operator/pkg/client/common"
"go.mondoo.com/mondoo-operator/pkg/constants"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/client/scanapiclient/mock/client_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pkg/client/scanapiclient/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package scanapiclient
import (
"context"

"go.mondoo.com/cnquery/v9/providers-sdk/v1/inventory"
"go.mondoo.com/cnspec/v9/policy/scan"
"go.mondoo.com/cnquery/v10/providers-sdk/v1/inventory"
"go.mondoo.com/cnspec/v10/policy/scan"
"go.mondoo.com/mondoo-operator/pkg/client/common"
"google.golang.org/protobuf/types/known/structpb"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/webhooks/handler/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (

serializerYaml "k8s.io/apimachinery/pkg/runtime/serializer/yaml"

"go.mondoo.com/cnquery/v9/providers-sdk/v1/inventory"
"go.mondoo.com/cnquery/v10/providers-sdk/v1/inventory"
mondoov1alpha2 "go.mondoo.com/mondoo-operator/api/v1alpha2"
"go.mondoo.com/mondoo-operator/pkg/client/scanapiclient"
"go.mondoo.com/mondoo-operator/pkg/constants"
Expand Down
2 changes: 1 addition & 1 deletion tests/framework/utils/asset.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package utils

import (
"github.com/google/go-containerregistry/pkg/name"
"go.mondoo.com/cnquery/v9/providers/os/resources/discovery/container_registry"
"go.mondoo.com/cnquery/v10/providers/os/resources/discovery/container_registry"
"go.mondoo.com/mondoo-operator/api/v1alpha2"
"go.mondoo.com/mondoo-operator/pkg/utils"
"go.mondoo.com/mondoo-operator/tests/framework/nexus/assets"
Expand Down
4 changes: 2 additions & 2 deletions tests/framework/utils/container_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package utils
import (
"strings"

"go.mondoo.com/cnquery/v9/providers-sdk/v1/plugin"
"go.mondoo.com/cnquery/v9/types"
"go.mondoo.com/cnquery/v10/providers-sdk/v1/plugin"
"go.mondoo.com/cnquery/v10/types"
v1 "k8s.io/api/core/v1"
)

Expand Down

0 comments on commit 95cbe8f

Please sign in to comment.