Skip to content

Commit

Permalink
Remove hard-coded Prometheus version in template (#565)
Browse files Browse the repository at this point in the history
Remove the hard-coded Prometheus version in the Prometheus template when
using observabilityStrategy use_redhat, which uses Cluster Observability
Operator to manage the Prometheus instance requests.

Previously this value was hard-coded to prevent a potential rollback
when moving from Community Prometheus Operator to Cluster Observability
Operator.

Resolves: JIRA#OSPRH-2140
  • Loading branch information
leifmadsen authored Jan 19, 2024
1 parent 55b89e2 commit 35476e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions roles/servicetelemetry/templates/manifest_prometheus.j2
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ metadata:
name: '{{ ansible_operator_meta.name }}'
namespace: '{{ ansible_operator_meta.namespace }}'
spec:
{% if observability_strategy != "use_community" %}
version: null
{% else %}
version: v2.43.0
{% endif %}
replicas: {{ servicetelemetry_vars.backends.metrics.prometheus.deployment_size }}
ruleSelector: {}
securityContext: {}
Expand Down

0 comments on commit 35476e1

Please sign in to comment.