PlatformReleaser
Warning
This content is part of the legacy version of Waypoint that is no longer actively maintained. For additional information on the new vision of Waypoint, check out this blog post and the HCP Waypoint documentation.
https://pkg.go.dev/github.com/hashicorp/waypoint-plugin-sdk/component#PlatformReleaser
The PlatformReleaser
interface is an optional interface that a Platform component
can implement to provide default Release
functionality. This only takes effect
if no release is configured, therefore users cannot set custom configurations
for default releasers. Releases will happen in a way that is wholly determined
by the output of the deployment.
For example, if a deployment creates a target group in AWS, a default releaser may manipulate that target group to route 100% of incoming traffic to the new target group. The user need not set an identifier for the target group, because the releaser will already have the necessary information from the deployment to "release" it.
PlatformReleaser
has a single function which must be implemented which
returns a function called by Waypoint to release the deployment. The function
returns the Releaser struct to Waypoint, which executes the Releaser's
Release
function, as a ReleaseManager
would.