Commit 745bef46 authored by Thong Kuah's avatar Thong Kuah

Fix autoloading of Clusters::Cluster

Fix autoloading error in test env, use fully qualified references as I
suspect rails autoloading is getting confused with partially qualified
references.

Fixes https://gitlab.com/gitlab-org/gitlab/issues/207341
parent 5e6aa649
...@@ -11,15 +11,15 @@ module Clusters ...@@ -11,15 +11,15 @@ module Clusters
self.table_name = 'clusters' self.table_name = 'clusters'
APPLICATIONS = { APPLICATIONS = {
Applications::Helm.application_name => Applications::Helm, Clusters::Applications::Helm.application_name => Clusters::Applications::Helm,
Applications::Ingress.application_name => Applications::Ingress, Clusters::Applications::Ingress.application_name => Clusters::Applications::Ingress,
Applications::CertManager.application_name => Applications::CertManager, Clusters::Applications::CertManager.application_name => Clusters::Applications::CertManager,
Applications::Crossplane.application_name => Applications::Crossplane, Clusters::Applications::Crossplane.application_name => Clusters::Applications::Crossplane,
Applications::Prometheus.application_name => Applications::Prometheus, Clusters::Applications::Prometheus.application_name => Clusters::Applications::Prometheus,
Applications::Runner.application_name => Applications::Runner, Clusters::Applications::Runner.application_name => Clusters::Applications::Runner,
Applications::Jupyter.application_name => Applications::Jupyter, Clusters::Applications::Jupyter.application_name => Clusters::Applications::Jupyter,
Applications::Knative.application_name => Applications::Knative, Clusters::Applications::Knative.application_name => Clusters::Applications::Knative,
Applications::ElasticStack.application_name => Applications::ElasticStack Clusters::Applications::ElasticStack.application_name => Clusters::Applications::ElasticStack
}.freeze }.freeze
DEFAULT_ENVIRONMENT = '*' DEFAULT_ENVIRONMENT = '*'
KUBE_INGRESS_BASE_DOMAIN = 'KUBE_INGRESS_BASE_DOMAIN' KUBE_INGRESS_BASE_DOMAIN = 'KUBE_INGRESS_BASE_DOMAIN'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment