{"action":"opened","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/issues/803","repository_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io","labels_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/issues/803/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/issues/803/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/issues/803/events","html_url":"https://github.com/kubernetes/kubernetes.github.io/issues/803","id":164682826,"number":803,"title":"Outdated docs for v1 API definition","user":{"login":"rata","id":70861,"avatar_url":"https://avatars.githubusercontent.com/u/70861?v=3","gravatar_id":"","url":"https://api.github.com/users/rata","html_url":"https://github.com/rata","followers_url":"https://api.github.com/users/rata/followers","following_url":"https://api.github.com/users/rata/following{/other_user}","gists_url":"https://api.github.com/users/rata/gists{/gist_id}","starred_url":"https://api.github.com/users/rata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rata/subscriptions","organizations_url":"https://api.github.com/users/rata/orgs","repos_url":"https://api.github.com/users/rata/repos","events_url":"https://api.github.com/users/rata/events{/privacy}","received_events_url":"https://api.github.com/users/rata/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-09T19:53:43Z","updated_at":"2016-07-09T19:53:43Z","closed_at":null,"body":"Hi,\r\n\r\nI was working with the volume secret code and I realized, looking at the code, that it accept mappings just like configmaps. There are tests for that, also. Eventhough, the documentation in: http://kubernetes.io/docs/api-reference/v1/definitions/#_v1_secretvolumesource doesn't show it.\r\n\r\nThe documentation for configmap, http://kubernetes.io/docs/api-reference/v1/definitions/#_v1_configmapvolumesource, does show it and for secrets I even tried it and it works the same.\r\n\r\nI tried with this example, just to be sure:\r\n```\r\n$ cat test-pod.yaml \r\napiVersion: extensions/v1beta1\r\nkind: Deployment\r\nmetadata:\r\n  labels:\r\n    run: hello-node\r\n  name: hello-node\r\nspec:\r\n  replicas: 1\r\n  selector:\r\n    matchLabels:\r\n      run: hello-node\r\n  strategy:\r\n    rollingUpdate:\r\n      maxSurge: 1\r\n      maxUnavailable: 1\r\n    type: RollingUpdate\r\n  template:\r\n    metadata:\r\n      labels:\r\n        run: hello-node\r\n    spec:\r\n      containers:\r\n      - image: nginx\r\n        name: hello-node\r\n        volumeMounts:\r\n        - mountPath: \"/etc/foo/\"\r\n          name: \"foo\"\r\n      volumes:\r\n      - name: \"foo\"\r\n        secret:\r\n          secretName: test\r\n          items:\r\n          - key: \"whatisk8s.md\"\r\n            path: \"ratata\"\r\n```\r\n\r\nAnd then run: `kubectl create secret generic test --from-file=docs/whatisk8s.md; kubectl apply -f test-pod.yaml`\r\n\r\nThe mapping works just fine.\r\n\r\nCan the documentation be regenerated, please? =)"}}
{"actor":{"display_login":"rata"}}