-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
⭐️ cnspec v9 #873
⭐️ cnspec v9 #873
Conversation
Signed-off-by: Ivan Milchev <[email protected]>
Signed-off-by: Ivan Milchev <[email protected]>
Signed-off-by: Ivan Milchev <[email protected]>
…/pointer usages Signed-off-by: Ivan Milchev <[email protected]>
Signed-off-by: Ivan Milchev <[email protected]>
Signed-off-by: Ivan Milchev <[email protected]>
Signed-off-by: Ivan Milchev <[email protected]>
2c90771
to
4860bf3
Compare
Signed-off-by: Ivan Milchev <[email protected]>
Signed-off-by: Ivan Milchev <[email protected]>
4860bf3
to
e5c2af2
Compare
Signed-off-by: Ivan Milchev <[email protected]>
Signed-off-by: Ivan Milchev <[email protected]>
Signed-off-by: Ivan Milchev <[email protected]>
"go.mondoo.com/mondoo-operator/pkg/imagecache" | ||
"go.mondoo.com/mondoo-operator/pkg/version" | ||
) | ||
|
||
const ( | ||
CnspecImageV9 = "ghcr.io/mondoohq/mondoo-operator/cnspec" | ||
CnspecTagV9 = "9.0.0-beta13-rootless" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't have major version releases for cnspec v9 yet. Once we do the first official release these values can change to 9-rootless
and 9-ubi-rootless
Signed-off-by: Ivan Milchev <[email protected]>
Signed-off-by: Ivan Milchev <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code is LGTM. Need to give it a try.
@@ -108,7 +109,7 @@ func GarbageCollectCmd(ctx context.Context, client scanapiclient.ScanApiClient, | |||
|
|||
if platformRuntime != "" { | |||
switch platformRuntime { | |||
case providers.RUNTIME_KUBERNETES_CLUSTER, providers.RUNTIME_DOCKER_IMAGE: | |||
case "k8s", "docker-image": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Should we use "container-image" instead of "docker-image"? It could be any OCI image.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe change this once we enable v9 by default? don't want to change the current behaviour while still working with v8
Also a nice drop in container image size:
|
I tested it with v8 and v9 cnspec. Both are working. I only came across the linked issue, which is unrelated to this PR. |
Thanks @imilchev |
Signed-off-by: Ivan Milchev <[email protected]>
Signed-off-by: Ivan Milchev <[email protected]>
FEATURE_ENABLE_V9
feature flag