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: add list microvm api implementation #174

Closed
wants to merge 1 commit into from

Conversation

jmickey
Copy link
Contributor

@jmickey jmickey commented Oct 27, 2021

What this PR does / why we need it:

Add the implementation for listing all MicroVMs in a given namespace.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #72

Checklist:

  • squashed commits into logical changes

@jmickey jmickey added kind/feature New feature or request area/api Indicates an issue or PR relates to the APIs labels Oct 27, 2021
@jmickey jmickey requested a review from a team October 27, 2021 11:26
@jmickey jmickey self-assigned this Oct 27, 2021
Copy link
Contributor

@yitsushi yitsushi left a comment

Choose a reason for hiding this comment

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

Can we add some tests on this function?

@jmickey
Copy link
Contributor Author

jmickey commented Oct 27, 2021

@yitsushi Yes, of course. Sorry forgot 😬

logger := log.GetLogger(ctx).WithField("component", "app")
logger.Trace("querying all microvms in namespace: ", namespace)

if namespace == "" {
Copy link
Member

Choose a reason for hiding this comment

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

Do you think there will every be a scenario that we want to list all microVMs irrespective of namespace? At this stage, i'm not sure there is that need.

@jmickey jmickey closed this Oct 29, 2021
@jmickey
Copy link
Contributor Author

jmickey commented Oct 29, 2021

Merged this with #173

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api Indicates an issue or PR relates to the APIs kind/feature New feature or request size/xs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement query gRPC methods
3 participants