From bf3f98c77f258848cd3d1fcfc4f3b12de47151a0 Mon Sep 17 00:00:00 2001 From: Dylan Murray Date: Tue, 4 Sep 2018 15:48:12 -0400 Subject: [PATCH] Bug 1625161 - Typecast namespace to string (#42) --- templates/deployment.yaml.j2 | 2 +- templates/pvc.yaml.j2 | 2 +- templates/route.yaml.j2 | 2 +- templates/service.yaml.j2 | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/deployment.yaml.j2 b/templates/deployment.yaml.j2 index 1702e74..ee3c8fe 100644 --- a/templates/deployment.yaml.j2 +++ b/templates/deployment.yaml.j2 @@ -9,7 +9,7 @@ kind: Deployment {% endif %} metadata: name: {{ app_name }} - namespace: {{ namespace }} + namespace: "{{ namespace | string }}" labels: app: {{ app_name }} service: {{ app_name }} diff --git a/templates/pvc.yaml.j2 b/templates/pvc.yaml.j2 index 43834ea..7dab2cb 100644 --- a/templates/pvc.yaml.j2 +++ b/templates/pvc.yaml.j2 @@ -4,7 +4,7 @@ apiVersion: v1 kind: PersistentVolumeClaim metadata: name: {{ app_name }} - namespace: {{ namespace }} + namespace: "{{ namespace | string }}" spec: accessModes: - ReadWriteOnce diff --git a/templates/route.yaml.j2 b/templates/route.yaml.j2 index f582ec8..e35b703 100644 --- a/templates/route.yaml.j2 +++ b/templates/route.yaml.j2 @@ -4,7 +4,7 @@ apiVersion: route.openshift.io/v1 kind: Route metadata: name: {{ app_name }} - namespace: {{ namespace }} + namespace: "{{ namespace | string }}" labels: app: {{ app_name }} service: {{ app_name }} diff --git a/templates/service.yaml.j2 b/templates/service.yaml.j2 index 1286f7d..eb5bd50 100644 --- a/templates/service.yaml.j2 +++ b/templates/service.yaml.j2 @@ -4,7 +4,7 @@ apiVersion: v1 kind: Service metadata: name: {{ app_name }} - namespace : {{ namespace }} + namespace : "{{ namespace | string }}" labels: app: {{ app_name }} service: {{ app_name }}