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

Expose Lagoon tag/version in UI and API #1773

Merged
merged 3 commits into from
Apr 8, 2020

Conversation

shreddedbacon
Copy link
Member

Checklist

  • Affected Issues have been mentioned in the Closing issues section
  • Documentation has been written/updated
  • PR title is ready for changelog and subsystem label(s) applied

Being able to know which version of Lagoon is currently running via the UI or API is handy when knowing which mutations/queries are supported, or quickly checking which version is running to know what feature set is available.

This PR adds the following query, which just exposes the LAGOON_VERSION environment variable.

query lagoonVersion {
  lagoonVersion
}

With the response:

{
  "data": {
    "lagoonVersion": "v1.4.0"
  }
}

And adds the footer to pages like so
image

Closing issues

closes #1384

@shreddedbacon
Copy link
Member Author

The only thing with this PR is that it relies on LAGOON_VERSION being defined appropriately in the deployment for the api or ui services in openshift/kubernetes, rather than defaulting to what is in the image itself.

Case is if a hot-fix image rolls out for the api or ui services, this variable might have a different value in the image if it isn't configured in the deployment.

@Schnitzel Schnitzel added this to the v1.4.1 milestone Apr 8, 2020
@Schnitzel Schnitzel merged commit 46cf952 into uselagoon:master Apr 8, 2020
@Schnitzel Schnitzel added the 1-api-auth API & Authentication subsystem label Apr 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1-api-auth API & Authentication subsystem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lagoon UI: Display the currently running tag
2 participants