kubernetes/docs
k8s-merge-robot eb733cbf45 Merge pull request #25285 from ingvagabund/extend-secrets-volumes-with-path-control
Automatic merge from submit-queue

Extend secrets volumes with path control

As per [1] this PR extends secrets mapped into volume with:

* key-to-path mapping the same way as is for configmap. E.g.

```
{
 "apiVersion": "v1",
 "kind": "Pod",
  "metadata": {
    "name": "mypod",
    "namespace": "default"
  },
  "spec": {
    "containers": [{
      "name": "mypod",
      "image": "redis",
      "volumeMounts": [{
        "name": "foo",
        "mountPath": "/etc/foo",
        "readOnly": true
      }]
    }],
    "volumes": [{
      "name": "foo",
      "secret": {
        "secretName": "mysecret",
        "items": [{
          "key": "username",
          "path": "my-username"
        }]
      }
    }]
  }
}
```

Here the ``spec.volumes[0].secret.items`` added changing original target ``/etc/foo/username`` to ``/etc/foo/my-username``.

* secondly, refactoring ``pkg/volumes/secrets/secrets.go`` volume plugin to use ``AtomicWritter`` to project a secret into file.

[1] https://github.com/kubernetes/kubernetes/blob/master/docs/design/configmap.md#changes-to-secret
2016-05-21 03:55:13 -07:00
..
admin Merge pull request #25596 from derekparker/inotify 2016-05-20 16:40:10 -07:00
api-reference Regenerate swagger, api, conversion and other code that needs to be regenerated 2016-05-18 16:12:55 +02:00
design Merge pull request #14943 from vishh/qos 2016-05-20 22:58:04 -07:00
devel Updating QoS policy to be per-pod instead of per-resource. 2016-05-20 11:52:16 -07:00
getting-started-guides Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
images Updated for v1.2.0. 2016-03-18 14:20:56 -07:00
man/man1 Add 'kubectl set image' 2016-05-18 21:23:17 -07:00
proposals Merge pull request #14943 from vishh/qos 2016-05-20 22:58:04 -07:00
user-guide Add 'kubectl set image' 2016-05-18 21:23:17 -07:00
yaml/kubectl Add 'kubectl set image' 2016-05-18 21:23:17 -07:00
api.md Updating documentation 2016-03-23 13:19:22 -07:00
OWNERS Move blunderbuss assignees into tree 2016-03-02 20:46:32 -05:00
README.md Update references for known issues back to CHANGELOG.md (release notes). 2016-03-24 15:27:54 -07:00
reporting-security-issues.md Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
roadmap.md Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
troubleshooting.md Update references for known issues back to CHANGELOG.md (release notes). 2016-03-24 15:27:54 -07:00
warning.png Add an image to unversioned warnings 2015-07-14 15:28:59 -07:00
whatisk8s.md Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00

WARNING WARNING WARNING WARNING WARNING

PLEASE NOTE: This document applies to the HEAD of the source tree

If you are using a released version of Kubernetes, you should refer to the docs that go with that version.

The latest release of this document can be found [here](http://releases.k8s.io/release-1.2/docs/README.md).

Documentation for other releases can be found at releases.k8s.io.

Kubernetes Documentation: releases.k8s.io/HEAD

Analytics