Skip to content

Commit

Permalink
Add default rules for refs in projected volumes
Browse files Browse the repository at this point in the history
Co-authored-by: Dave Walter <dwalter@pivotal.io>
Co-authored-by: Andrew Wittrock <awittrock@pivotal.io>
  • Loading branch information
3 people committed May 5, 2020
1 parent ae8f3f7 commit adf36d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/kapp/config/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ templateRules:
resourceMatchers: *withPodTemplate
- path: [spec, template, spec, initContainers, {allIndexes: true}, envFrom, {allIndexes: true}, configMapRef]
resourceMatchers: *withPodTemplate
- path: [spec, template, spec, volumes, {allIndexes: true}, projected, sources, {allIndexes: true}, configMap]
resourceMatchers: *withPodTemplate
- path: [spec, template, spec, volumes, {allIndexes: true}, configMap]
resourceMatchers: *withPodTemplate
- path: [spec, volumes, {allIndexes: true}, configMap]
Expand All @@ -245,6 +247,8 @@ templateRules:
- path: [spec, template, spec, volumes, {allIndexes: true}, secret]
resourceMatchers: *withPodTemplate
nameKey: secretName
- path: [spec, template, spec, volumes, {allIndexes: true}, projected, sources, {allIndexes: true}, secret]
resourceMatchers: *withPodTemplate
- path: [spec, volumes, {allIndexes: true}, secret]
resourceMatchers:
- apiVersionKindMatcher: {apiVersion: v1, kind: Pod}
Expand Down

0 comments on commit adf36d6

Please sign in to comment.