From 50101c4c7f5bea7c29c2d1fdfd72fb8a7b22fe67 Mon Sep 17 00:00:00 2001 From: Praveen Rewar <8457124+praveenrewar@users.noreply.github.com> Date: Fri, 13 Oct 2023 01:22:42 +0530 Subject: [PATCH] Add another downwardAPI example Signed-off-by: Praveen Rewar <8457124+praveenrewar@users.noreply.github.com> --- site/content/kapp-controller/docs/develop/app-spec.md | 9 +++++++++ site/content/kapp-controller/docs/v0.48.x/app-spec.md | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/site/content/kapp-controller/docs/develop/app-spec.md b/site/content/kapp-controller/docs/develop/app-spec.md index 88991a01a..c1b120ee9 100644 --- a/site/content/kapp-controller/docs/develop/app-spec.md +++ b/site/content/kapp-controller/docs/develop/app-spec.md @@ -236,6 +236,9 @@ spec: fieldPath: metadata.namespace - name: specificAnnotation fieldPath: metadata.annotations['specificAnnotation'] + - name: anotherAnnotationWithDots + # keys requiring `\\.`` should use "" for the filedPath value + fieldPath: "metadata.annotations['another\\.annotation\\.with\\.dots']" # query for the version of the cluster - name: kubeVersion kubernetesVersion: {} @@ -281,6 +284,9 @@ spec: fieldPath: metadata.namespace - name: specificAnnotation fieldPath: metadata.annotations['specificAnnotation'] + - name: anotherAnnotationWithDots + # keys requiring `\\.`` should use "" for the filedPath value + fieldPath: "metadata.annotations['another\\.annotation\\.with\\.dots']" # query for the version of the cluster - name: kubeVersion kubernetesVersion: {} @@ -308,6 +314,9 @@ spec: fieldPath: metadata.namespace - name: specificAnnotation fieldPath: metadata.annotations['specificAnnotation'] + - name: anotherAnnotationWithDots + # keys requiring `\\.`` should use "" for the filedPath value + fieldPath: "metadata.annotations['another\\.annotation\\.with\\.dots']" # query for the version of the cluster - name: kubeVersion kubernetesVersion: {} diff --git a/site/content/kapp-controller/docs/v0.48.x/app-spec.md b/site/content/kapp-controller/docs/v0.48.x/app-spec.md index 6834ede58..52bd69c9d 100644 --- a/site/content/kapp-controller/docs/v0.48.x/app-spec.md +++ b/site/content/kapp-controller/docs/v0.48.x/app-spec.md @@ -237,6 +237,9 @@ spec: fieldPath: metadata.namespace - name: specificAnnotation fieldPath: metadata.annotations['specificAnnotation'] + - name: anotherAnnotationWithDots + # keys requiring `\\.`` should use "" for the filedPath value + fieldPath: "metadata.annotations['another\\.annotation\\.with\\.dots']" # query for the version of the cluster - name: kubeVersion kubernetesVersion: {} @@ -282,6 +285,9 @@ spec: fieldPath: metadata.namespace - name: specificAnnotation fieldPath: metadata.annotations['specificAnnotation'] + - name: anotherAnnotationWithDots + # keys requiring `\\.`` should use "" for the filedPath value + fieldPath: "metadata.annotations['another\\.annotation\\.with\\.dots']" # query for the version of the cluster - name: kubeVersion kubernetesVersion: {} @@ -309,6 +315,9 @@ spec: fieldPath: metadata.namespace - name: specificAnnotation fieldPath: metadata.annotations['specificAnnotation'] + - name: anotherAnnotationWithDots + # keys requiring `\\.`` should use "" for the filedPath value + fieldPath: "metadata.annotations['another\\.annotation\\.with\\.dots']" # query for the version of the cluster - name: kubeVersion kubernetesVersion: {}