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

Add augerctl get #82

Merged
merged 1 commit into from
Aug 14, 2024
Merged

Add augerctl get #82

merged 1 commit into from
Aug 14, 2024

Conversation

wzshiming
Copy link
Member

@wzshiming wzshiming commented Jul 27, 2024

part of #3
part of #62

Test

Preparation cluster

Create a cluster and expose etcd port, to facilitate the creation of a cluster using kwokctl, this can be any other k8s cluster

# brew install kwok
kwokctl create cluster --etcd-port 2379

Get a single resource

Get the kubernetes.default service

go run ./augerctl get services -n default kubernetes

Get the all of the resource

go run ./augerctl get leases -n kube-system

Get the all of the etcd

go run ./augerctl get

@wzshiming wzshiming force-pushed the feat/augerctl-get branch 12 times, most recently from b9b5726 to f73834d Compare July 27, 2024 11:17
@wzshiming wzshiming force-pushed the feat/augerctl-get branch 8 times, most recently from 71180fe to 05dc3f9 Compare July 27, 2024 12:06
@wzshiming wzshiming force-pushed the feat/augerctl-get branch 2 times, most recently from 3690b6e to d756687 Compare July 27, 2024 12:40
@wzshiming wzshiming changed the title Add augerctl get Add augerctl get Jul 27, 2024
Copy link
Member

@jmhbnz jmhbnz left a comment

Choose a reason for hiding this comment

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

Thanks for raising this @wzshiming - Below are some initial suggestions, nothing major.

pkg/augerctl/ctl.go Outdated Show resolved Hide resolved
pkg/augerctl/get_command.go Outdated Show resolved Hide resolved
cmd/augerctl/main.go Outdated Show resolved Hide resolved
@wzshiming wzshiming force-pushed the feat/augerctl-get branch 4 times, most recently from 7fbf360 to b009206 Compare August 8, 2024 09:50
@wzshiming wzshiming force-pushed the feat/augerctl-get branch 9 times, most recently from 0912b12 to 968dbc7 Compare August 12, 2024 02:27
@wzshiming
Copy link
Member Author

done

@wzshiming wzshiming force-pushed the feat/augerctl-get branch 3 times, most recently from 7cffacc to 8e580d4 Compare August 12, 2024 02:58
@siyuanfoundation
Copy link
Contributor

1 minor comment. Otherwise lgtm

Signed-off-by: Shiming Zhang <[email protected]>
Copy link
Member

@jmhbnz jmhbnz left a comment

Choose a reason for hiding this comment

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

LGTM - Many thanks for your patience with review, and for all your work on this @wzshiming

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jmhbnz, siyuanfoundation, wzshiming

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [jmhbnz,siyuanfoundation]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jmhbnz jmhbnz merged commit d345af1 into etcd-io:main Aug 14, 2024
3 checks passed
@wzshiming wzshiming deleted the feat/augerctl-get branch August 14, 2024 02:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants