We have this command, which gets called repeatedly with different arguments:
apply_or_replace_k8s_deployment_and_service:
parameters:
deployment_name:
type: string
directory:
type: string
steps:
- run:
name: Apply or replace k8s deployment with kustomize changes
command: |
kubectl apply -f Backend/Deploy/Kubernetes/<< parameters.directory >>/base/service.yml
if ! kubectl get deployment << parameters.deployment_name >> > /dev/null 2>&1; then
kubectl apply -k Backend/Deploy/Kubernetes/<< parameters.directory >>/$KUSTOMIZE_DIR
else
kubectl replace -k Backend/Deploy/Kubernetes/<< parameters.directory >>/$KUSTOMIZE_DIR
fi
kubectl rollout status deployment << parameters.deployment_name >>
In CCI’s UI, the same command name shows up for every call (see the screenshot). Is there a way to customize the name that shows up in the UI based on the parameters supplied?