Skip to content
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

🐛 make sure the os provider can be cross referenced from another provider #3095

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

imilchev
Copy link
Member

this is needed by the k8s provider since it is referencing the containerImage resource, which is defined in the os provider

we also have the issue where filters that shouldn't be executed for an asset may request a provider that shouldn't be called. For example, trying to run aws filters on a k8s asset. This results in printing too many error messages, so I changed the log level of that error to debug

this is needed by the k8s provider since it is referencing the containerImage resource, which is defined in the os provider

we also have the issue where filters that shouldn't be executed for an asset may request a provider that shouldn't be called. For example, trying to run aws filters on a k8s asset. This results in printing too many error messages, so I changed the log level of that error to debug

Signed-off-by: Ivan Milchev <ivan@mondoo.com>
Copy link
Contributor

Test Results

742 tests  ±0   742 ✅ ±0   12s ⏱️ ±0s
 83 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 7ebe4f5. ± Comparison against base commit b120ab4.

Copy link
Member

@chris-rock chris-rock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @imilchev

@@ -588,11 +589,12 @@ func (r *Runtime) lookupResourceProvider(resource string) (*ConnectedProvider, *
// version support, we can safely remove this.
"go.mondoo.com/cnquery/v9/providers/core",
"go.mondoo.com/cnquery/v9/providers/network",
"go.mondoo.com/cnquery/v9/providers/os",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to review those resources that require it from the k8s provider.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's just containerImage resource that is referenced

@chris-rock chris-rock merged commit 4f720e8 into main Jan 23, 2024
12 checks passed
@chris-rock chris-rock deleted the ivan/cross-provider-update branch January 23, 2024 08:47
@github-actions github-actions bot locked and limited conversation to collaborators Jan 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants