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

Add Environment and Project IDs to controller builds #2565

Merged
merged 4 commits into from Mar 25, 2021

Conversation

shreddedbacon
Copy link
Member

@shreddedbacon shreddedbacon commented Mar 11, 2021

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

Somewhat related to #2322, Lagoon sends a DNS compliant version of the environment name to the build deploy controller. When a build is completed, it responds to Lagoon with this modified environment name. In the event that the original environment name contained slashes or other special characters, Lagoon would not actually update the API with the information required.

Lagoon will prefer to use the environment ID if it is present, but will fall back to using the environment name if no ID is found.

This is a partner to uselagoon/remote-controller#41 , which adds the support for these IDs into the build deploy controller.

Closes

closed #2568

… make sure build jobs send the environment id when they are created (tasks do already)
@shreddedbacon shreddedbacon added this to the v1.14.3 milestone Mar 11, 2021
@shreddedbacon shreddedbacon marked this pull request as ready for review March 12, 2021 01:18
@shreddedbacon
Copy link
Member Author

Just FYI, there is no issue releasing this before the controller is updated as it will fall back to the original behaviour.

Once the controller gets updated, then it will use the ID values properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2-build-deploy Build & Deploy subsystem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants