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

feat(k8s): Discover container images and running containers #711

Merged
merged 10 commits into from
Dec 4, 2023

Conversation

Tehsmash
Copy link
Contributor

@Tehsmash Tehsmash commented Sep 25, 2023

Description

With this addition the kubernetes provider can now discover container images and running containers from the connected kubernetes cluster.

Closes #562
Closes #564

Type of Change

[ ] Bug Fix
[X] New Feature
[ ] Breaking Change
[ ] Refactor
[ ] Documentation
[ ] Other (please describe)

Checklist

  • I have read the contributing guidelines
  • Existing issues have been referenced (where applicable)
  • I have verified this change is not present in other open pull requests
  • Functionality is documented
  • All code style checks pass
  • New code contribution is covered by automated tests
  • All new and existing tests pass

@Tehsmash Tehsmash force-pushed the k8s_discovery branch 2 times, most recently from 98f5e33 to a321414 Compare September 25, 2023 12:21
@Tehsmash Tehsmash force-pushed the k8s_discovery branch 3 times, most recently from b3f2d4d to 74197c4 Compare October 13, 2023 14:27
@Tehsmash Tehsmash marked this pull request as ready for review October 13, 2023 14:30
@Tehsmash Tehsmash requested a review from a team as a code owner October 13, 2023 14:30
@github-actions

This comment has been minimized.

api/models/containerimageinfo.go Outdated Show resolved Hide resolved
cmd/vmclarity-cr-discovery-server/cmd/root.go Outdated Show resolved Hide resolved
pkg/containerruntimediscovery/discoverer.go Show resolved Hide resolved
api/models/containerimageinfo.go Outdated Show resolved Hide resolved
@github-actions

This comment has been minimized.

e2e/go.mod Outdated Show resolved Hide resolved
e2e/go.mod Outdated Show resolved Hide resolved
pkg/containerruntimediscovery/containerddiscoverer.go Outdated Show resolved Hide resolved
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@Tehsmash Tehsmash force-pushed the k8s_discovery branch 2 times, most recently from 0959382 to 7e02940 Compare October 30, 2023 09:13
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

@chrisgacsal chrisgacsal self-requested a review November 2, 2023 15:31
Copy link
Contributor

@chrisgacsal chrisgacsal left a comment

Choose a reason for hiding this comment

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

@Tehsmash It looks awesome! I have left a couple comments related to minor things.

Makefile Outdated Show resolved Hide resolved
Dockerfile.cr-discovery-server Outdated Show resolved Hide resolved
installation/kubernetes/helm/vmclarity/README.md Outdated Show resolved Hide resolved
installation/kubernetes/helm/vmclarity/values.yaml Outdated Show resolved Hide resolved
@Tehsmash Tehsmash changed the title feat(kubernetes): Discover container images and running containers feat(k8s): Discover container images and running containers Nov 3, 2023

This comment has been minimized.

With this addition the kubernetes provider can now discover container
images and running containers from the connected kubernetes cluster.

A new Daemonset is introduced which provides entrypoints on each
kubernetes node to discover the images and containers running there. The
Kubernetes provider will query each instance of the daemonset to create
full view of all the containers and images that exist on the kubernetes
cluster. The Daemonset supports Docker and ContainerD, other container
runtimes can be added in the future through a defined interface.

This comment has been minimized.

chrisgacsal
chrisgacsal previously approved these changes Dec 4, 2023
@chrisgacsal chrisgacsal added this pull request to the merge queue Dec 4, 2023
@chrisgacsal chrisgacsal removed this pull request from the merge queue due to a manual request Dec 4, 2023
Copy link

github-actions bot commented Dec 4, 2023

Hey!

Your images are ready:

  • ghcr.io/openclarity/vmclarity-apiserver-dev:pr711-e0df6f310d198008488d52138e45c098ddfa027b
  • ghcr.io/openclarity/vmclarity-orchestrator-dev:pr711-e0df6f310d198008488d52138e45c098ddfa027b
  • ghcr.io/openclarity/vmclarity-ui-backend-dev:pr711-e0df6f310d198008488d52138e45c098ddfa027b
  • ghcr.io/openclarity/vmclarity-ui-dev:pr711-e0df6f310d198008488d52138e45c098ddfa027b
  • ghcr.io/openclarity/vmclarity-cli-dev:pr711-e0df6f310d198008488d52138e45c098ddfa027b

@chrisgacsal chrisgacsal added this pull request to the merge queue Dec 4, 2023
Merged via the queue into main with commit 2bc2f0b Dec 4, 2023
33 checks passed
@chrisgacsal chrisgacsal deleted the k8s_discovery branch December 4, 2023 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Kubernetes Container Image Discovery Kubernetes Running Container Discovery
3 participants