mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-02 19:28:16 +00:00
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Expose single annotation/label via downward API **What this PR does / why we need it**: https://github.com/kubernetes/community/blob/master/contributors/design-proposals/node/annotations-downward-api.md Support exposing single annotation via both env and volume downward API using the following syntax: ``` metadata.annotations['key'] metadata.labels['key'] ``` **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes # #31218 **Special notes for your reviewer**: This PR takes over the work in https://github.com/kubernetes/kubernetes/pull/41648. **Release note**: ``` A single value in metadata.annotations/metadata.labels can be passed into the containers via Downward API ``` /assign @thockin @vishh