mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-10 08:20:59 +00:00
Handle variables in annotations
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user