Skip to content
This repository has been archived by the owner on Dec 4, 2017. It is now read-only.

Lock version of Jenkins slave used #233

Open
ALRubinger opened this issue Apr 14, 2017 · 4 comments
Open

Lock version of Jenkins slave used #233

ALRubinger opened this issue Apr 14, 2017 · 4 comments
Assignees

Comments

@ALRubinger
Copy link
Contributor

Introduced by #232

We have a line in our pipeline-template.yaml:

dockerImageRepository: openshiftio/launchpad-jenkins-slave

Um, how is k8s/OpenShift supposed to know that we want a particular version of the slave to be used? There are many tags under here; some are releases, some are just latest. How can we note in the template which version we want to be used?

@bparees Would you mind answering in the comments and I'll handle the work needed to make this happen? Thanks!

@ALRubinger ALRubinger self-assigned this Apr 14, 2017
@bparees
Copy link

bparees commented Apr 15, 2017

currently you can't, unfortunately. the logic was written before we got serious about imagestreams..for now i would strongly suggest you have your imagestream point to a repository that makes it clear what you want.

i'm planning to add annotation logic to support annotating/labeling a specific imagestreamtag instead of the imagestream, shortly.

the other thing you might be able to do, if imagestreams support it, is specify the full repository:tag in your dockerRepository field in your imagestream. I don't know offhand if they allow that or not, but if they do, it should result in the correct image value in the pod template:
https://github.com/openshift/jenkins/blob/master/2/contrib/jenkins/kube-slave-common.sh#L90

@ALRubinger
Copy link
Contributor Author

Noted; for now our repo will only have latest tag, and we'll be careful about pushing stuff of unknown quality there.

Leaving this issue open to investigate your second option and see if that can lock us down.

@ALRubinger
Copy link
Contributor Author

Thanks, @bparees . For the moment took your advice to only push to latest tag what we would consider releases, and it'll be the only tag in the Hub repo until we have a better way forward. Leaving open until we investigate more but this solution works enough for now. Real goal here is reproducible builds with locked version over time.

@quintesse
Copy link
Contributor

We can probably close this now that we use S2I?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants