|
1 |
| -// Copyright (c) 2020, 2022, Oracle and/or its affiliates. |
| 1 | +// Copyright (c) 2020, 2023, Oracle and/or its affiliates. |
2 | 2 | // Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
|
3 | 3 |
|
4 | 4 | package oracle.weblogic.kubernetes.utils;
|
|
34 | 34 | import static oracle.weblogic.kubernetes.TestConstants.ISTIO_VERSION;
|
35 | 35 | import static oracle.weblogic.kubernetes.TestConstants.K8S_NODEPORT_HOST;
|
36 | 36 | import static oracle.weblogic.kubernetes.TestConstants.KUBERNETES_CLI;
|
| 37 | +import static oracle.weblogic.kubernetes.TestConstants.PROMETHEUS_CONFIG_MAP_RELOAD_IMAGE_NAME; |
| 38 | +import static oracle.weblogic.kubernetes.TestConstants.PROMETHEUS_CONFIG_MAP_RELOAD_IMAGE_TAG; |
| 39 | +import static oracle.weblogic.kubernetes.TestConstants.PROMETHEUS_IMAGE_NAME; |
| 40 | +import static oracle.weblogic.kubernetes.TestConstants.PROMETHEUS_IMAGE_TAG; |
37 | 41 | import static oracle.weblogic.kubernetes.TestConstants.RESULTS_ROOT;
|
38 | 42 | import static oracle.weblogic.kubernetes.TestConstants.WEBLOGIC_SLIM;
|
39 | 43 | import static oracle.weblogic.kubernetes.actions.ActionConstants.RESOURCE_DIR;
|
@@ -286,6 +290,18 @@ public static boolean deployIstioPrometheus(
|
286 | 290 | assertDoesNotThrow(() -> replaceStringInFile(targetPromFile.toString(),
|
287 | 291 | oldPortValue,
|
288 | 292 | prometheusPort));
|
| 293 | + assertDoesNotThrow(() -> replaceStringInFile(targetPromFile.toString(), |
| 294 | + "prometheus_configmap_reload_image", |
| 295 | + PROMETHEUS_CONFIG_MAP_RELOAD_IMAGE_NAME)); |
| 296 | + assertDoesNotThrow(() -> replaceStringInFile(targetPromFile.toString(), |
| 297 | + "prometheus_configmap_reload_tag", |
| 298 | + PROMETHEUS_CONFIG_MAP_RELOAD_IMAGE_TAG)); |
| 299 | + assertDoesNotThrow(() -> replaceStringInFile(targetPromFile.toString(), |
| 300 | + "prometheus_image", |
| 301 | + PROMETHEUS_IMAGE_NAME)); |
| 302 | + assertDoesNotThrow(() -> replaceStringInFile(targetPromFile.toString(), |
| 303 | + "prometheus_tag", |
| 304 | + PROMETHEUS_IMAGE_TAG)); |
289 | 305 | ExecResult result = null;
|
290 | 306 | StringBuffer deployIstioPrometheus = null;
|
291 | 307 | deployIstioPrometheus = new StringBuffer(KUBERNETES_CLI + " apply -f ");
|
|
0 commit comments