From a45c2da2c5ca49fe2c6d09626dcd31c59dd5a9a3 Mon Sep 17 00:00:00 2001 From: Ayoub Nasr Date: Thu, 31 Oct 2024 14:28:03 +0100 Subject: [PATCH] buildchain: test pulling prom from cgr --- buildchain/buildchain/image.py | 2 +- buildchain/buildchain/versions.py | 4 ++-- charts/kube-prometheus-stack.yaml | 1 + salt/metalk8s/addons/prometheus-operator/deployed/chart.sls | 4 ++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/buildchain/buildchain/image.py b/buildchain/buildchain/image.py index 353a038e8e..6ddfefd24a 100644 --- a/buildchain/buildchain/image.py +++ b/buildchain/buildchain/image.py @@ -205,7 +205,6 @@ def _local_image(name: str, **kwargs: Any) -> targets.LocalImage: constants.PROMETHEUS_REPOSITORY: [ "alertmanager", "node-exporter", - "prometheus", ], constants.THANOS_REPOSITORY: [ "thanos", @@ -219,6 +218,7 @@ def _local_image(name: str, **kwargs: Any) -> targets.LocalImage: constants.CHAINGUARD_REPOSITORY: [ "cert-manager-controller", "etcd", + "prometheus", ], } diff --git a/buildchain/buildchain/versions.py b/buildchain/buildchain/versions.py index 4f6dee97e6..e470317590 100644 --- a/buildchain/buildchain/versions.py +++ b/buildchain/buildchain/versions.py @@ -198,8 +198,8 @@ def _version_prefix(version: str, prefix: str = "v") -> str: ), Image( name="prometheus", - version="v2.55.0", - digest="sha256:378f4e03703557d1c6419e6caccf922f96e6d88a530f7431d66a4c4f4b1000fe", + version="2.55.0", + digest="sha256:c0907ae3a99e682698d7b539e61649f6479747a356038cbfdffb4ee56cae71b1", ), Image( name="prometheus-adapter", diff --git a/charts/kube-prometheus-stack.yaml b/charts/kube-prometheus-stack.yaml index 1455aefcad..902ba9ed80 100644 --- a/charts/kube-prometheus-stack.yaml +++ b/charts/kube-prometheus-stack.yaml @@ -109,6 +109,7 @@ prometheus: image: registry: '__var__(repo.registry_endpoint)' repository: '__image_no_reg__(prometheus)' + tag: 2.55.0 tolerations: - key: 'node-role.kubernetes.io/bootstrap' diff --git a/salt/metalk8s/addons/prometheus-operator/deployed/chart.sls b/salt/metalk8s/addons/prometheus-operator/deployed/chart.sls index 63aa2b48ba..6de37fb8d3 100644 --- a/salt/metalk8s/addons/prometheus-operator/deployed/chart.sls +++ b/salt/metalk8s/addons/prometheus-operator/deployed/chart.sls @@ -72118,7 +72118,7 @@ spec: enableAdminAPI: {% endraw -%}{{ prometheus.spec.config.enable_admin_api }}{%- raw %} externalUrl: http://prometheus-operator-prometheus.metalk8s-monitoring:9090 hostNetwork: false - image: {% endraw -%}{{ repo.registry_endpoint }}{%- raw %}/{% endraw -%}{{ build_image_name("prometheus", False, False) }}{%- raw %}:v2.55.0 + image: {% endraw -%}{{ repo.registry_endpoint }}{%- raw %}/{% endraw -%}{{ build_image_name("prometheus", False, False) }}{%- raw %}:2.55.0 listenLocal: false logFormat: logfmt logLevel: info @@ -72182,7 +72182,7 @@ spec: operator: Exists tsdb: outOfOrderTimeWindow: 0s - version: v2.55.0 + version: 2.55.0 walCompression: true --- apiVersion: monitoring.coreos.com/v1