Explorar o código

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 %!s(int64=6) %!d(string=hai) anos
pai
achega
cc01177f13
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  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'),