fix: service to be created even if private port (#562)

As of today if port is set as private on an app / db, then no service
will be created for it in k8s. This should not be the case and a service
should be created even if app or db is flagged as private allowing other
internal apps to connect to it.
This commit is contained in:
Benjamin
2022-01-18 17:04:40 +01:00
committed by GitHub
parent 6732aee996
commit aeead3b43c
3 changed files with 3 additions and 9 deletions

View File

@@ -1,4 +1,3 @@
{%- if is_private_port %}
apiVersion: v1
kind: Service
metadata:
@@ -22,5 +21,4 @@ spec:
ownerId: {{ owner_id }}
appId: {{ id }}
app: {{ sanitized_name }}
envId: {{ environment_id }}
{% endif %}
envId: {{ environment_id }}

View File

@@ -1,4 +1,3 @@
{%- if is_private_port %}
apiVersion: v1
kind: Service
metadata:
@@ -22,5 +21,4 @@ spec:
ownerId: {{ owner_id }}
appId: {{ id }}
app: {{ sanitized_name }}
envId: {{ environment_id }}
{% endif %}
envId: {{ environment_id }}

View File

@@ -1,4 +1,3 @@
{%- if is_private_port %}
apiVersion: v1
kind: Service
metadata:
@@ -22,5 +21,4 @@ spec:
ownerId: {{ owner_id }}
appId: {{ id }}
app: {{ sanitized_name }}
envId: {{ environment_id }}
{% endif %}
envId: {{ environment_id }}