-
Notifications
You must be signed in to change notification settings - Fork 151
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
Improvement: add additional information to environment services #3641
Conversation
0fbaf59
to
db00109
Compare
services/api/database/migrations/20240124000000_environment_services.js
Outdated
Show resolved
Hide resolved
db00109
to
b69d70d
Compare
Only the The proposed changes to remote are still to be decided, but a rough first run is here |
b69d70d
to
2509e97
Compare
So after digging, what you're seeing is just something that has always been a problem, the remote-controller uses the "container name" which is incorrectly consumed (and has been since forever) the current controller sends the same So the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok - I'm happy with this. Acknowledging that until we get full service/container support in the build tool and remote it won't be fully active.
Migration named to fit sequentially
General Checklist
Database Migrations
This just extends the existing
environment_services
by adding the service type and containers associated with the service. This will allow better visibility of what services an environment has deployed in the API.Some benefits of this will also make the implementation of workload resources easier, because now the API will be able to determine what service types an environment has.
Additionally, this information being available can allow for the UI to be able to generate command examples for being able to SSH to services and containers.
This will require changes in the
remote-controller
so that it sends the new information, this work has not been done yet, but as the API has been defined, and it contains backward compatible implementation (the setEnvironmentServices mutation still works for now, and the support in the actions-handler remains). The remote-controller is currently staging a bump to the CRD version so that we can introduce the schema changes to the CRD and not have to rely on users having to remember to update the CRDs after installation, as the new CRD version will be installed.It would be great to get this merged so that at least the support is there for when the remote-controller gets the schema changes. This means that there will be a period where old and new controllers will be able to send their messages to core to update environment services. Just older remotes will not send the right payload to update the services with the new information.
As there are no other services in the API or Lagoon generally that could, or do, use this additional information, the delay in the remote-controller sending the information should not be seen as a blocker to this merging. It may just mean that the final removal of the deprecated mutations may be delayed longer.
Requires uselagoon/machinery#39