return__('This job is deployed to %{environmentLink} using cluster %{clusterNameOrLink}.');
__('This job is deployed to %{environmentLink} using cluster %{clusterNameOrLink}.'),
{environmentLink,clusterNameOrLink},
false,
);
}
}
// not a cluster deployment
// not a cluster deployment
returnsprintf(__('This job is deployed to %{environmentLink}.'),{environmentLink},false);
return__('This job is deployed to %{environmentLink}.');
},
},
outOfDateEnvironmentMessage(){
outOfDateEnvironmentMessage(){
const{
if(this.hasLastDeployment){
hasLastDeployment,
if(this.hasCluster){
hasCluster,
if(this.kubernetesNamespace){
environmentLink,
return__(
clusterNameOrLink,
'This job is an out-of-date deployment to %{environmentLink} using cluster %{clusterNameOrLink} and namespace %{kubernetesNamespace}. View the %{deploymentLink}.',
'This job is an out-of-date deployment to %{environmentLink} using cluster %{clusterNameOrLink} and namespace %{kubernetesNamespace}. View the %{deploymentLink}.',
'This job is an out-of-date deployment to %{environmentLink} using cluster %{clusterNameOrLink}.',
'This job is an out-of-date deployment to %{environmentLink} using cluster %{clusterNameOrLink}.',
),
{environmentLink,clusterNameOrLink},
false,
);
);
}
}
// not a cluster deployment
// not a cluster deployment
returnsprintf(
return__('This job is an out-of-date deployment to %{environmentLink}.');
__('This job is an out-of-date deployment to %{environmentLink}.'),
{environmentLink},
false,
);
},
},
creatingEnvironmentMessage(){
creatingEnvironmentMessage(){
const{
if(this.hasLastDeployment){
hasLastDeployment,
if(this.hasCluster){
hasCluster,
if(this.kubernetesNamespace){
environmentLink,
return__(
clusterNameOrLink,
'This job is creating a deployment to %{environmentLink} using cluster %{clusterNameOrLink} and namespace %{kubernetesNamespace}. This will overwrite the %{deploymentLink}.',
'This job is creating a deployment to %{environmentLink} using cluster %{clusterNameOrLink} and namespace %{kubernetesNamespace}. This will overwrite the %{deploymentLink}.',
`This job is an out-of-date deployment to environment using cluster ${TEST_CLUSTER_NAME} and namespace ${TEST_KUBERNETES_NAMESPACE}. View the most recent deployment.`,
`This job is an out-of-date deployment to environment using cluster ${TEST_CLUSTER_NAME} and namespace ${TEST_KUBERNETES_NAMESPACE}. View the most recent deployment.`,