ci aws: Change the order of component installation
Install components in following order, mandatorily, to ensure that other
components can install Prometheus Operator CRs like ServiceMonitor and
PrometheusRule:
OpenEBS
OpenEBS Storage Class
Prometheus Operator
@@ -29,6 +29,22 @@ cluster "aws" {
component "openebs-operator" {}
+# openebs-storage-class component should always be the last to be installed
+# pending when https://github.com/kinvolk/lokoctl/issues/374 is fixed
+# because when the discovery failure for creating StoragePoolClaim happens,
+# lokoctl install errors out and moves on with running the tests
+# causing subsequent components below this to be skipped.
+component "openebs-storage-class" {
+ storage-class "openebs-test-sc" {
+ replica_count = 1
+ default = true
+ }
+}
+
+component "prometheus-operator" {
+ grafana_admin_password = "admin"
+}
+
component "contour" {
ingress_hosts = ["dex.$CLUSTER_ID.$AWS_DNS_ZONE", "gangway.$CLUSTER_ID.$AWS_DNS_ZONE"]
service_monitor = true
@@ -113,19 +129,3 @@ component "flatcar-linux-update-operator" {}
component "httpbin" {
ingress_host = "httpbin.$CLUSTER_ID.$AWS_DNS_ZONE"
}
-
-# openebs-storage-class component should always be the last to be installed
-# pending when https://github.com/kinvolk/lokoctl/issues/374 is fixed
-# because when the discovery failure for creating StoragePoolClaim happens,
-# lokoctl install errors out and moves on with running the tests
-# causing subsequent components below this to be skipped.
-component "openebs-storage-class" {
- storage-class "openebs-test-sc" {
- replica_count = 1
- default = true
- }
-}
-
-component "prometheus-operator" {
- grafana_admin_password = "admin"
-}
