瀏覽代碼

Fix sanity_checks typos

Fix typos to for openshift_prometheus_altermanager_image_prefix,
should be openshift_prometheus_alertmanager_image_prefix.

Also, 'altermanager' was used in some cases in previous releases,
need to check for presence and warn.
Michael Gugino 6 年之前
父節點
當前提交
cc01177f13
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      roles/lib_utils/action_plugins/sanity_checks.py

+ 4 - 2
roles/lib_utils/action_plugins/sanity_checks.py

@@ -69,8 +69,10 @@ REMOVED_VARIABLES = (
     ('openshift_prometheus_image_version', 'openshift_prometheus_image'),
     ('openshift_prometheus_proxy_image_prefix', 'openshift_prometheus_proxy_image'),
     ('openshift_prometheus_proxy_image_version', 'openshift_prometheus_proxy_image'),
-    ('openshift_prometheus_altermanager_image_prefix', 'openshift_prometheus_altermanager_image'),
-    ('openshift_prometheus_altermanager_image_version', 'openshift_prometheus_altermanager_image'),
+    ('openshift_prometheus_altermanager_image_prefix', 'openshift_prometheus_alertmanager_image'),
+    # A typo was introduced at some point, need to warn for this older version.
+    ('openshift_prometheus_altermanager_image_prefix', 'openshift_prometheus_alertmanager_image'),
+    ('openshift_prometheus_alertmanager_image_version', 'openshift_prometheus_alertmanager_image'),
     ('openshift_prometheus_alertbuffer_image_prefix', 'openshift_prometheus_alertbuffer_image'),
     ('openshift_prometheus_alertbuffer_image_version', 'openshift_prometheus_alertbuffer_image'),
     ('openshift_prometheus_node_exporter_image_prefix', 'openshift_prometheus_node_exporter_image'),