{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/55410","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/55410/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/55410/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/55410/events","html_url":"https://github.com/kubernetes/kubernetes/issues/55410","id":272605998,"number":55410,"title":"Pod Preset does not inject the init container","user":{"login":"wstrange","id":447076,"avatar_url":"https://avatars0.githubusercontent.com/u/447076?v=4","gravatar_id":"","url":"https://api.github.com/users/wstrange","html_url":"https://github.com/wstrange","followers_url":"https://api.github.com/users/wstrange/followers","following_url":"https://api.github.com/users/wstrange/following{/other_user}","gists_url":"https://api.github.com/users/wstrange/gists{/gist_id}","starred_url":"https://api.github.com/users/wstrange/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wstrange/subscriptions","organizations_url":"https://api.github.com/users/wstrange/orgs","repos_url":"https://api.github.com/users/wstrange/repos","events_url":"https://api.github.com/users/wstrange/events{/privacy}","received_events_url":"https://api.github.com/users/wstrange/received_events","type":"User","site_admin":false},"labels":[{"id":105146071,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/kind/bug","name":"kind/bug","color":"e11d21","default":false},{"id":778118404,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/lifecycle/stale","name":"lifecycle/stale","color":"795548","default":false},{"id":433740132,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/sig/service-catalog","name":"sig/service-catalog","color":"d2b48c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-11-09T15:31:58Z","updated_at":"2018-03-09T22:22:33Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"<!-- This form is for bug reports and feature requests ONLY! \r\n\r\nIf you're looking for help check [Stack Overflow](https://stackoverflow.com/questions/tagged/kubernetes) and the [troubleshooting guide](https://kubernetes.io/docs/tasks/debug-application-cluster/troubleshooting/).\r\n-->\r\n\r\n**Is this a BUG REPORT or FEATURE REQUEST?**:\r\n\r\n> Uncomment only one, leave it on its own line: \r\n>\r\n/kind bug\r\n> /kind feature\r\n\r\n/sig cluster-lifecyle\r\n\r\n**What happened**:\r\n\r\nI created a Pod Preset to inject an environment variable. The Pod container gets properly injected, but the init container does not. \r\n\r\nA small sample is here:\r\n\r\nhttps://gist.github.com/wstrange/b9c1adc2139dab8f9b554a9d21b30bdd\r\n\r\n\r\n**What you expected to happen**:\r\n\r\nThe init container would get the pod preset injected \r\n\r\n**How to reproduce it (as minimally and precisely as possible)**:\r\n\r\nRun kubectl create -f on the following gist:\r\nhttps://gist.github.com/wstrange/b9c1adc2139dab8f9b554a9d21b30bdd\r\n\r\nReproduced here:\r\n\r\n```\r\napiVersion: settings.k8s.io/v1alpha1\r\nkind: PodPreset\r\nmetadata:\r\n  name: test\r\nspec:\r\n  selector:\r\n    matchLabels:\r\n      app: test\r\n  env:\r\n    - name: SETME\r\n      value: \"This should be set in the init container\"\r\n\r\n---\r\napiVersion: v1\r\nkind: Pod\r\nmetadata:\r\n  name: test\r\n  labels:\r\n    app: test\r\nspec:\r\n  initContainers:\r\n  - name: init\r\n    image: busybox\r\n    args: [\"env\"]\r\n  containers:\r\n    - name: test\r\n      image: busybox\r\n      args: [ \"sleep\", \"1000\"]\r\n\r\n```\r\n\r\n**Anything else we need to know?**:\r\n\r\n**Environment**:\r\n- Kubernetes version (use `kubectl version`):  \r\nClient Version: version.Info{Major:\"1\", Minor:\"8\", GitVersion:\"v1.8.3\", GitCommit:\"f0efb3cb883751c5ffdbe6d515f3cb4fbe7b7acd\", GitTreeState:\"clean\", BuildDate:\"2017-11-09T07:26:38Z\", GoVersion:\"go1.9.2\", Compiler:\"gc\", Platform:\"darwin/amd64\"}\r\nServer Version: version.Info{Major:\"1\", Minor:\"8\", GitVersion:\"v1.8.0\", GitCommit:\"0b9efaeb34a2fc51ff8e4d34ad9bc6375459c4a4\", GitTreeState:\"dirty\", BuildDate:\"2017-10-17T15:09:55Z\", GoVersion:\"go1.8.3\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\n\r\n- Cloud provider or hardware configuration: minikube 0.23.0\r\n- OS (e.g. from /etc/os-release):\r\n- Kernel (e.g. `uname -a`):\r\n- Install tools:\r\n- Others:\r\nStarted with:\r\n```\r\n\r\nminikube start \\\r\n--extra-config=apiserver.Admission.PluginNames=\"Initializers,NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,GenericAdmissionWebhook,ResourceQuota,PodPreset\"\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/371962238","html_url":"https://github.com/kubernetes/kubernetes/issues/55410#issuecomment-371962238","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/55410","id":371962238,"user":{"login":"fejta-bot","id":30488982,"avatar_url":"https://avatars1.githubusercontent.com/u/30488982?v=4","gravatar_id":"","url":"https://api.github.com/users/fejta-bot","html_url":"https://github.com/fejta-bot","followers_url":"https://api.github.com/users/fejta-bot/followers","following_url":"https://api.github.com/users/fejta-bot/following{/other_user}","gists_url":"https://api.github.com/users/fejta-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/fejta-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fejta-bot/subscriptions","organizations_url":"https://api.github.com/users/fejta-bot/orgs","repos_url":"https://api.github.com/users/fejta-bot/repos","events_url":"https://api.github.com/users/fejta-bot/events{/privacy}","received_events_url":"https://api.github.com/users/fejta-bot/received_events","type":"User","site_admin":false},"created_at":"2018-03-09T22:22:33Z","updated_at":"2018-03-09T22:22:33Z","author_association":"NONE","body":"Stale issues rot after 30d of inactivity.\nMark the issue as fresh with `/remove-lifecycle rotten`.\nRotten issues close after an additional 30d of inactivity.\n\nIf this issue is safe to close now please do so with `/close`.\n\nSend feedback to sig-testing, kubernetes/test-infra and/or [fejta](https://github.com/fejta).\n/lifecycle rotten\n/remove-lifecycle stale"}}
{"actor":{"display_login":"fejta-bot"}}