k8s: add quotes to annotation (#104)

* k8s: add quotes to annotation

* fix tests
This commit is contained in:
David Dollar 2020-01-30 18:11:37 -05:00 committed by GitHub
parent 10e5e174b0
commit f5fa1a643e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@ kind: Namespace
metadata:
name: {{.Namespace}}
annotations:
convox.com/lock: {{ .Locked }}
convox.com/lock: "{{ .Locked }}"
convox.com/params: {{ safe (json .Parameters) }}
labels:
type: app

View File

@ -2,7 +2,7 @@ apiVersion: v1
kind: Namespace
metadata:
annotations:
convox.com/lock: true
convox.com/lock: "true"
convox.com/params: '{"Test":"foo"}'
labels:
app: app1

View File

@ -2,7 +2,7 @@ apiVersion: v1
kind: Namespace
metadata:
annotations:
convox.com/lock: false
convox.com/lock: "false"
convox.com/params: '{"Test":"bar"}'
labels:
app: app1

View File

@ -2,7 +2,7 @@ apiVersion: v1
kind: Namespace
metadata:
annotations:
convox.com/lock: false
convox.com/lock: "false"
convox.com/params: '{"Test":"foo"}'
labels:
app: app1