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

Adds initial gitopssets inventory endpoint #3522

Merged
merged 26 commits into from
Nov 13, 2023
Merged

Conversation

foot
Copy link
Collaborator

@foot foot commented Oct 18, 2023

Depends on weaveworks/weave-gitops#4090

Closes #2776

What changed?

  • new gitopssets inventory endpoint /v1/namespaces/NAMESPACE/gitopssets/GITOPSSET_NAME/inventory
  • UI uses gitopssets inventory endpoint to get children instead of processing children in FE

Why was this change made?

  • Fixes issue of different namespaces between gitopssets and the generated resources
  • match flux inventory pattern in oss

How was this change implemented?

  • Add gitopssets inventory endpoint
  • Update ui to use the new endpoint

How did you validate the change?

  • Explain how a reviewer can verify the change themselves
    starting wge and adding a gitopssets, The UI can be used to navigate between the gitopssets created and their resources

  • Unit tests -- what is covered, what cannot be covered; are
    there tests that fail without the change?

Release notes
Add gitopssets inventory endpoint

Documentation Changes

Other follow ups

@ranatrk ranatrk force-pushed the gitopssets-inventory-stuff branch 3 times, most recently from 58316f6 to ac4de22 Compare November 2, 2023 13:58
@ranatrk ranatrk added bug Something isn't working enhancement New feature or request and removed enhancement New feature or request labels Nov 2, 2023
@ranatrk
Copy link
Contributor

ranatrk commented Nov 2, 2023

go.mod needs to be updated once weaveworks/weave-gitops#4090 is merged

@ranatrk ranatrk marked this pull request as ready for review November 2, 2023 14:02
@ranatrk ranatrk requested a review from a team November 2, 2023 14:19
@ranatrk ranatrk force-pushed the gitopssets-inventory-stuff branch 3 times, most recently from a9493f0 to 99d4207 Compare November 8, 2023 14:30
@ranatrk ranatrk requested a review from a team November 9, 2023 11:47
@foot foot requested a review from ranatrk November 10, 2023 13:35
Copy link
Collaborator Author

@foot foot left a comment

Choose a reason for hiding this comment

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

LGTM!

@foot foot merged commit e6cc3ee into main Nov 13, 2023
10 checks passed
@foot foot deleted the gitopssets-inventory-stuff branch November 13, 2023 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gitopssets reconciled objects table doesn't show namespaces or objects generated into other namespaces
3 participants