feat(ingress): allow overriding ingress namespace
diff --git a/atmosphere/models/config.py b/atmosphere/models/config.py
index abf306a..715de97 100644
--- a/atmosphere/models/config.py
+++ b/atmosphere/models/config.py
@@ -94,7 +94,7 @@
class IngressNginxChartConfig(ChartConfig):
- pass
+ namespace = types.StringType(default="openstack", required=True)
class Config(base.Model):
diff --git a/atmosphere/tasks/composite/openstack_helm.py b/atmosphere/tasks/composite/openstack_helm.py
index 56415ef..9889caa 100644
--- a/atmosphere/tasks/composite/openstack_helm.py
+++ b/atmosphere/tasks/composite/openstack_helm.py
@@ -61,12 +61,12 @@
return [
flux.ApplyHelmRepositoryTask(
- namespace=constants.NAMESPACE_OPENSTACK,
+ namespace=config.namespace,
name=constants.HELM_REPOSITORY_INGRESS_NGINX,
url=constants.HELM_REPOSITORY_INGRESS_NGINX_URL,
),
flux.ApplyHelmReleaseTask(
- namespace=constants.NAMESPACE_OPENSTACK,
+ namespace=config.namespace,
name=constants.HELM_RELEASE_INGRESS_NGINX_NAME,
repository=constants.HELM_REPOSITORY_INGRESS_NGINX,
chart=constants.HELM_RELEASE_INGRESS_NGINX_NAME,