Moving endpoint creation to the begining
Endpoints should be created before all other resources,
since other resources may have dependencies on them
Prod related: PROD-29333
Change-Id: I4efc24d521a9a1a5627dab1141201b26ea16bc8c
diff --git a/kubernetes/control/init.sls b/kubernetes/control/init.sls
index 18d8b11..0469403 100644
--- a/kubernetes/control/init.sls
+++ b/kubernetes/control/init.sls
@@ -1,5 +1,8 @@
{% from "kubernetes/map.jinja" import control with context %}
include:
+ {%- if control.endpoints is defined %}
+ - kubernetes.control.endpoint
+ {%- endif %}
{%- if control.job is defined %}
- kubernetes.control.job
{%- endif %}
@@ -15,9 +18,6 @@
{%- if control.priorityclass is defined %}
- kubernetes.control.priorityclass
{%- endif %}
- {%- if control.endpoints is defined %}
- - kubernetes.control.endpoint
- {%- endif %}
{%- if control.ingress is defined %}
- kubernetes.control.ingress
{%- endif %}