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

ctlptl get registries -oname do return prefixed names #309

Closed
Valgard opened this issue Sep 3, 2023 · 1 comment
Closed

ctlptl get registries -oname do return prefixed names #309

Valgard opened this issue Sep 3, 2023 · 1 comment

Comments

@Valgard
Copy link

Valgard commented Sep 3, 2023

Problem

If i run ctlptl get registries -oname then i get only following prefixed output:

registry.ctlptl.dev/ctlptl-registry-kind

This issue is related to #307.

Expected

With following registries:

NAME                   HOST ADDRESS     CONTAINER ADDRESS   AGE
ctlptl-registry-kind   127.0.0.1:5000   172.17.0.2:5000     1m

I would expect the following not prefixed output:

ctlptl-registry-kind

For a workaround see #307.

Output of ctlptl version:

v0.8.22, built 2023-08-30
@Valgard Valgard changed the title ctlptl get registries -oname do not return prefixed names ctlptl get registries -oname do return prefixed names Sep 3, 2023
@nicks
Copy link
Member

nicks commented Sep 5, 2023

This is working as intended. We try to maintain compatibility with kubectl, and in fact use the same underlying printing libraries as kubectl. Those libraries interpret -o name to [resource]/[name]. See: kubernetes/kubernetes#5906

@nicks nicks closed this as completed Sep 5, 2023
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

No branches or pull requests

2 participants