Skip to content

Commit

Permalink
Add another downwardAPI example (carvel-dev#696)
Browse files Browse the repository at this point in the history
Signed-off-by: Praveen Rewar <[email protected]>
Signed-off-by: ashpect <[email protected]>
  • Loading branch information
praveenrewar authored and ashpect committed Mar 3, 2024
1 parent 2f176d9 commit d73c689
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions site/content/kapp-controller/docs/develop/app-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: {}
Expand Down Expand Up @@ -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: {}
Expand Down Expand Up @@ -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: {}
Expand Down
9 changes: 9 additions & 0 deletions site/content/kapp-controller/docs/v0.48.x/app-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: {}
Expand Down Expand Up @@ -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: {}
Expand Down Expand Up @@ -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: {}
Expand Down

0 comments on commit d73c689

Please sign in to comment.