fabric8io / gofabric8

CLI used when working with fabric8 running on Kubernetes or OpenShift
https://fabric8.io/
Apache License 2.0
147 stars 72 forks source link

git must be installed on kubernetes node #620

Open CayoM opened 7 years ago

CayoM commented 7 years ago

Environment: OS: CentOS Linux release 7.4.1708 (Core) (3.10.0-693.2.2.el7.x86_64)

Client Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.3", GitCommit:"f0efb3cb883751c5ffdbe6d515f3cb4fbe7b7acd", GitTreeState:"clean", BuildDate:"2017-11-08T18:39:33Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.3", GitCommit:"f0efb3cb883751c5ffdbe6d515f3cb4fbe7b7acd", GitTreeState:"clean", BuildDate:"2017-11-08T18:27:48Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}

gofabric8, version 0.4.176 (branch: 'master', revision: '22de39d49') build date: '20171110-16:40:44' go version: '1.8.1'

Steps used i just noticed this while trying to setup gofabric8 in a test environment with a kubernetes cluster. After installing git in this CentOS7 Server via "yum install -y git" i didnt got this message anymore.

gofabric8 deploy --pv=false --domain=XX.XX.XX.XXX --ingress=false --http=true --legacy=false -n fabric8 --github-client-id=false --github-client-secret=false

Error Message

Nov 13 12:19:09 localhost kubelet: E1113 12:19:09.255717   42599 nestedpendingoperations.go:264] Operation for "\"kubernetes.io/git-repo/cc2058a9-c859-11e7-a46f-020169267ded-keycloak-theme\" (\"cc2058a9-c859-11e7-a46f-020169267ded\")" failed. No retries permitted until 2017-11-13 12:21:11.255663707 +0000 UTC (durationBeforeRetry 2m2s). Error: MountVolume.SetUp failed for volume "keycloak-theme" (UniqueName: "kubernetes.io/git-repo/cc2058a9-c859-11e7-a46f-020169267ded-keycloak-theme") pod "keycloak-84c6cc698b-8db4c" (UID: "cc2058a9-c859-11e7-a46f-020169267ded") : failed to exec 'git clone https://github.com/fabric8io/fabric8-keycloak-theme.git login': : executable file not found in $PATH

Expected behaviour at least a hint in the documentation, that git is required, because in some minimal installations its not pre-installed.