feat: add runtime cache node scanner#1524
Open
MaxRink wants to merge 1 commit into
Open
Conversation
Contributor
f048786 to
8922f41
Compare
fcd1462 to
a195ceb
Compare
a195ceb to
46cb308
Compare
46cb308 to
5ea2cb5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
containers.runtimeCacheAPI/CRD fields and generated deepcopy/CRD outputReview fixes
containerdfor this draft, matching the current MQL runtime-image implementation; other enum values fail closed as reserved future supportmondoo-operator-runtime-cache-scanningservice account/tmpbeforecnspec serve, and point--inventory-fileat the rendered file so no{{ getenv ... }}template reaches cnspecallowPullvalue in delegate config while keeping the default no-pull behaviorValidation
git diff --checkgo test ./controllers/container_image/runtime_cache -run 'Test(ValidateRuntimeCache|ValidateRuntimeCacheScannerSets|DelegateConfig|DaemonSetRuntimeCacheShape|DaemonSetRuntimeDelegatesMountExactSockets|ScannerSetNameOrHashTrimsDashBeforeHash)'go test ./pkg/utils/mondoo -run 'TestContainerImageResolverSuite/Test(ContainerImageUsesRegistryMirror|BusyBoxImageUsesRegistryMirror|ApplyImageRegistry)'go test ./controllers/container_image/runtime_cache -run 'Test(DelegateConfig|InventoryRuntimeCacheOptions|DaemonSetRuntimeCacheShape|DaemonSetRuntimeCacheLatestImageOmitsUnsupportedTimerFlag|DeploymentHandlerReconcileConfiguredLatestOmitsTimerForResolvedDigest|DeploymentHandlerReconcileUsesResolvedRenderImage|DeploymentHandlerReconcileScannerSets)'go test ./controllers/container_image/runtime_cache ./controllers/container_image ./pkg/utils/k8s ./pkg/utils/mondoo ./controllers/statusgo build -o /tmp/mondoo-operator-runtime-cache ./cmd/mondoo-operator/main.gomake lint/actionsmake lintkubectl --context kind-mondoo-rt-kind apply -k config/crdkubectl --context kind-mondoo-rt-kind apply --server-side --dry-run=server -k config/rbackubectl --context kind-mondoo-rt-kind apply --server-side --dry-run=server -f config/samples/k8s_v1alpha2_mondooauditconfig.yamlkubectl --context kind-mondoo-rt-kind apply --server-side --dry-run=server -f config/samples/k8s_v1alpha2_mondoooperatorconfig.yamlkind-mondoo-rt-kindserver-side dry-run for runtime-cache delegates and scannerSetsFull
go test ./...still requires integration credentials/kubeconfig (MONDOO_ORG_MRNand Kubernetes client config) and is not runnable locally without that environment.