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

Flux: Kustomization inventory showing all items with proper links #173

Merged

Conversation

mgalesloot
Copy link
Contributor

@mgalesloot mgalesloot commented Mar 3, 2025

  • Kustomization inventory showing all items with proper links, without need for cluster wide privileges.
  • Refactor routes to include first part of apiVersion in the path, for consistent navigating from inventory.
  • Fixed deprecation warning "Route was found by path instead of name"

Fixes #162

@mgalesloot mgalesloot marked this pull request as ready for review March 3, 2025 08:51
@mgalesloot mgalesloot force-pushed the feature/kustomization-inventory branch from d0183cf to 3af732b Compare March 3, 2025 09:59
Copy link
Member

@ashu8912 ashu8912 left a comment

Choose a reason for hiding this comment

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

Most of the changes look good to me, but i saw that the inventory is missing some items and mostly resources which has a kind that we are not aware of for example kind = PolicyReport or kind = ClusterPolicy, we should show all these items. Also for an instance i saw that the inventory has 51 items but we are only showing 28 we are missing some of the inventory items(This is a seperate issue) but for this PR i think we should have atleast the unknowkn kind resources as well in the list.

@mgalesloot
Copy link
Contributor Author

mgalesloot commented Mar 5, 2025

In my local test environment ClusterPolicy is shown. See screenshot.

But it is a good idea to show all items, even if we can't get query the resource. I will add a commit for that.

image

@mgalesloot
Copy link
Contributor Author

I have added a new commit to show also inventory resources that cannot be queried.

Copy link
Contributor

@skoeva skoeva left a comment

Choose a reason for hiding this comment

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

make sure to resolve the merge conflicts with a rebase

* Kustomization inventory showing all items with proper links, without need for cluster wide privileges.
* Refactor routes to include first part of apiVersion in the path, for consistent navigating from inventory.
* Fixed depreaction warning "Route was found by path instead of name"

Signed-off-by: Matthijs Galesloot <[email protected]>
@mgalesloot mgalesloot force-pushed the feature/kustomization-inventory branch from 6d37602 to ac499b2 Compare March 8, 2025 07:34
@mgalesloot
Copy link
Contributor Author

rebase completed

Copy link
Member

@ashu8912 ashu8912 left a comment

Choose a reason for hiding this comment

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

Some more changes but i think after these are fixed and the CI passes this is good to go

@mgalesloot mgalesloot force-pushed the feature/kustomization-inventory branch from a4949ce to f57773f Compare March 12, 2025 18:45
Signed-off-by: Matthijs Galesloot <[email protected]>
@mgalesloot mgalesloot force-pushed the feature/kustomization-inventory branch from 4a6962f to 51a49d3 Compare March 12, 2025 19:11
@mgalesloot
Copy link
Contributor Author

The changes for Event.default are already in the main, see commit 2db3fc7

@ashu8912
Copy link
Member

Thank you so much @mgalesloot for this PR some really nice set of changes 🎉

Copy link
Member

@ashu8912 ashu8912 left a comment

Choose a reason for hiding this comment

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

Tested, Works like charm

@ashu8912 ashu8912 merged commit 417d250 into headlamp-k8s:main Mar 13, 2025
10 checks passed
@mgalesloot mgalesloot deleted the feature/kustomization-inventory branch March 14, 2025 08:55
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.

Flux: Inventory of an Kustomization - only standard Kubernetes objects are listed
4 participants