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: CLI service inspect command #1323

Merged
merged 19 commits into from Sep 19, 2023
Merged

feat: CLI service inspect command #1323

merged 19 commits into from Sep 19, 2023

Conversation

laurentluce
Copy link
Contributor

@laurentluce laurentluce commented Sep 18, 2023

Description:

There is no CLI option today to get the user service container image, entrypoint args, cmd args and env vars. The user has to use the Docker or K8S CLI to access those information. A new service inspect CLI command is added.

The GetServices response object is updated to include a container object containing its status, image name, entrypoint and cmd args, and env vars. The path from the backend to the response object is updated.

$ kurtosis service inspect etcd etcd
Name: etcd
UUID: 01fdde9cd5cd
Status: RUNNING
Image: softlang/etcd-alpine:v3.4.14
Ports:
  client: 2379/tcp -> 127.0.0.1:63278
ENTRYPOINT:
CMD:
ENV:
  ETCD_LISTEN_CLIENT_URLS: http://0.0.0.0:2379
  ETCD_ADVERTISE_CLIENT_URLS: http://0.0.0.0:2379
  ALLOW_NONE_AUTHENTICATION: yes
  ETCD_DATA_DIR: /etcd_data

Is this change user facing?

YES

@cloudflare-pages
Copy link

cloudflare-pages bot commented Sep 18, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: ca1aeb6
Status: ✅  Deploy successful!
Preview URL: https://2fdf7fe6.kurtosis-docs.pages.dev
Branch Preview URL: https://laurent-service-inspect.kurtosis-docs.pages.dev

View logs

Copy link
Contributor

@adschwartz adschwartz left a comment

Choose a reason for hiding this comment

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

Solid work @laurentluce !

@laurentluce laurentluce merged commit ec018b9 into main Sep 19, 2023
31 checks passed
@laurentluce laurentluce deleted the laurent/service_inspect branch September 19, 2023 02:28
h4ck3rk3y added a commit that referenced this pull request Sep 19, 2023
🤖 I have created a release *beep* *boop*
---


##
[0.83.3](0.83.2...0.83.3)
(2023-09-19)


### Features

* CLI service inspect command
([#1323](#1323))
([ec018b9](ec018b9))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: kurtosisbot <kurtosisbot@users.noreply.github.com>
Co-authored-by: Gyanendra Mishra <anomaly.the@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants