FulfillableGoalDetails.environment
GoalFulfillment.name
cluster name
Generate the tail of a goal label using getCluster to determine an appropriate deployment target.
FulfillableGoalDetails.environment
GoalFulfillment.name
Formatted phrase including cluster name
Generated using TypeDoc
Determine cluster name from goal environment and fulfillment. If the fulfillment is provided, the cluster name is parsed from the goal fulfillment name, stripping any NPM scope and everything before the first underscore,
_
, if they exist.If there is no fulfillment, the cluster name derived from the goal environment. An environment of
StagingEnvironment
orProductionEnvironment
is mapped to an appropriate string. Any other goal environment is simplified to the name of the environment. If the environment is not truthy an empty string is returned. Otherwise theenvironment
string is returned unchanged.