Skip to content

frontend: Render links for CR's columns that point to k8s resources #2482

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

joaquimrocha
Copy link
Contributor

These changes render any references that look like k8s kinds as links to their details page in Headlamp.

Based on #2278 .

@gberche-orange , this new PR actually shows the links to a resource's details view for any columns that look like they match a K8s kind. However, implementing this made me think whether this enough a common use-case. E.g. we may have an implementation of a CRD that has an additional printer col that may mention a secret/configmap/pod and another col that mentions this pod's namespace, different from the CR's for some reason... And this code would be wrong in that case.

So I wonder if this should rather be part of a plugin instead of being in the core.

cc/ @illume for getting your opinion too.

These changes render any references that look like k8s kinds as links
to their details page in Headlamp.

Based on an initial patch by: guilhane <[email protected]>

Signed-off-by: Joaquim Rocha <[email protected]>
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Oct 25, 2024
@joaquimrocha joaquimrocha marked this pull request as draft October 28, 2024 10:14
@gberche-orange
Copy link
Contributor

Thanks @joaquimrocha for your work on this feature !

It's hard for me to provide feedback without a more concrete example where this PR would be wrong. Would you be able to detail such a scenario ?

@k8s-triage-robot
Copy link

Unknown CLA label state. Rechecking for CLA labels.

Send feedback to sig-contributor-experience at kubernetes/community.

/check-cla
/easycla

Copy link

CLA Not Signed

@k8s-ci-robot k8s-ci-robot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants