Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add option for whether enable storage for cluster monitoring
  • Loading branch information
jiaqiluo authored and sangeethah committed Jun 19, 2020
1 parent fda3236 commit e9bc42c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/validation/tests/v3_api/test_monitoring.py
Expand Up @@ -88,6 +88,9 @@
"node": node_graph_list,
}
STORAGE_CLASS = "longhorn"
ENABLE_STORAGE = os.environ.get('RANCHER_ENABLE_STORAGE_FOR_MONITORING',
"false")
ENABLE_STORAGE = ENABLE_STORAGE.lower()

# Longhorn is provided as the persistence storage class
C_MONITORING_ANSWERS = {"operator-init.enabled": "true",
Expand All @@ -98,8 +101,8 @@
"exporter-node.resources.limits.memory": "200Mi",
"operator.resources.limits.memory": "500Mi",
"prometheus.retention": "12h",
"grafana.persistence.enabled": "true",
"prometheus.persistence.enabled": "true",
"grafana.persistence.enabled": ENABLE_STORAGE,
"prometheus.persistence.enabled": ENABLE_STORAGE,
"prometheus.persistence.storageClass": STORAGE_CLASS,
"grafana.persistence.storageClass": STORAGE_CLASS,
"grafana.persistence.size": "10Gi",
Expand Down

0 comments on commit e9bc42c

Please sign in to comment.