mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-07-18 02:01:29 +00:00
Using single quote style when setting annotations
Annotations must be strings. Use single-quote style so tools don't get confused about the type.
This commit is contained in:
@@ -77,7 +77,7 @@ spec:
|
||||
// labels:
|
||||
// app: nginx
|
||||
// annotations:
|
||||
// foo: bar
|
||||
// foo: 'bar'
|
||||
// spec:
|
||||
// replicas: 3
|
||||
// selector:
|
||||
@@ -99,7 +99,7 @@ spec:
|
||||
// metadata:
|
||||
// name: nginx
|
||||
// annotations:
|
||||
// foo: bar
|
||||
// foo: 'bar'
|
||||
// spec:
|
||||
// selector:
|
||||
// app: nginx
|
||||
|
||||
Reference in New Issue
Block a user