Handle variables in annotations

This commit is contained in:
Ilia Zlobin
2019-12-18 17:04:43 +03:00
parent 2c1cd6de41
commit cc8b100331
2 changed files with 6 additions and 0 deletions

View File

@@ -190,5 +190,7 @@ varReference:
kind: StatefulSet
- path: metadata/labels
- path: metadata/annotations
`
)

View File

@@ -1157,6 +1157,8 @@ vars:
name: my-deployment
labels:
my-label: $(NAMESPACE)
annotations:
my-annotation: $(NAMESPACE)
spec:
template:
spec:
@@ -1176,6 +1178,8 @@ vars:
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
my-annotation: my-namespace
labels:
my-label: my-namespace
name: my-deployment