Remove Flux version from /v1/version response and page footers #3876
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The Flux version has been displayed in two locations of the UI: In the footer of every page and on the "Flux Runtime" page. To display the Flux version in these locations, two different ways to retrieve said version have been implemented:
In order to properly display the Flux version properly, the UI user would have to be allowed to list (1) Namespaces on the management cluster and (2) Flux deployments on all clusters including the management cluster.
This leads to situations where one of these two permissions is not set and the user will see a Flux version properly rendered in one location but not the other which is potentially confusing.
In order to improve the user experience, this change completely drops the rendering of the Flux version in the footer so that there is only one consistent method to fetch the Flux version. Users that aren't allowed to list the Flux runtime information will not be able to find out the Flux version, anyway, so for those users rendering an "-" in the footer doesn't provide any information. All others can refer to the "Flux Runtime" page and will see all Flux versions on all clusters together with additional runtime information.
closes #3665