190
// DeploymentFromCapabilities returns the deployment if it is using versioning V3, otherwise nil.
191
// It returns the deployment from the `options` if present, otherwise, from `capabilities`,
192
>
func DeploymentFromCapabilities(capabilities *commonpb.WorkerVersionCapabilities, options *deploymentpb.WorkerDeploymentOptions) (*deploymentpb.Deployment, error) {
worker_versioning.go
193
>
if options.GetWorkerVersioningMode() == enumspb.WORKER_VERSIONING_MODE_VERSIONED {
194
d := options.GetDeploymentName()
195
b := options.GetBuildId()