Skip to content

Commit

Permalink
Remove vro prefix for rabbitmq image (#3375)
Browse files Browse the repository at this point in the history
* Automate enablement of prometheus plugin

* remove vro prefix for rabbitmq

* Update deployment.yaml

* Update deployment.yaml

* Update image-names.sh
  • Loading branch information
Ponnia-M authored Aug 22, 2024
1 parent 8b9ab71 commit b2cd98f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion helm/platform/charts/rabbitmq/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
{{- include "vro.imagePullSecrets" . | nindent 6 }}
containers:
- name: rabbitmq{{ include "vro.containerSuffix" . }}
image: {{ include "vro.imageRegistryPath" . }}vro-rabbitmq:{{ .Values.imageTag }}
image: {{ include "vro.imageRegistryPath" . }}rabbitmq:{{ .Values.imageTag }}
env:
- name: RABBITMQ_USERNAME
{{- include "vro.valueFromSecret.rabbitmqUser" . | nindent 14 }}
Expand Down
11 changes: 9 additions & 2 deletions scripts/image-names.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,16 @@ bashVarPrefix() {
echo "${1//-/}"
}

# These names must match the images specified in Helm configs
# These names must match the images specified in Helm configs; with the exception of rabbitmq.
# Specifically, this condition ensures that our RabbitMQ image is named "rabbitmq" instead of "vro-rabbitmq", while
# all other images retain the "vro-" prefix. This adjustment will allow LHDI Datadog agent's autodiscovery feature to correctly
# match our rabbitmq container image name thereby resulting in the capturing of metrics.
prodImageName() {
echo "vro-$1"
if [ "$1" == "rabbitmq" ]; then
echo "rabbitmq"
else
echo "vro-$1"
fi
}

# These names should match directory names.
Expand Down

0 comments on commit b2cd98f

Please sign in to comment.