| Summary: | Support for git volumes | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Jaspreet Kaur <jkaur> |
| Component: | RFE | Assignee: | Bradley Childs <bchilds> |
| Status: | CLOSED NOTABUG | QA Contact: | Johnny Liu <jialiu> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.2.0 | CC: | aos-bugs, jokerman, jsafrane, mmccomas, simon.gunzenreiner, swatt |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-02-15 23:09:32 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Jaspreet Kaur
2016-09-11 11:25:12 UTC
1) It is already possible to use git repos as volumes in Kubernetes, see http://kubernetes.io/docs/user-guide/volumes/#gitrepo I am not sure about its availability on OpenShift, especially whether /usr/bin/git is installed on Atomic Host or in OpenShift containers. 2) You can achieve the same with init containers, https://github.com/kubernetes/kubernetes/blob/master/docs/proposals/container-init.md - an init container downloads git repository into an EmptyDir, where the "real" pod containers find it when they start. You can do any magic you want in the init container, you're not limited to simple `git clone`. This way, /usr/bin/git does not need to be installed on Atomic Host. We do not like adding new specific volume types for various SCM systems, we would end up with dozens of them. |