From d8b72e85039543b16caf7d610add3ca3b7f345cf Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Fri, 8 Jul 2016 17:53:25 -0400 Subject: [PATCH] Switch to using a defined branch and not always pulling the VM image --- buildman/manager/executor.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/buildman/manager/executor.py b/buildman/manager/executor.py index 9457f4591..c9b222f12 100644 --- a/buildman/manager/executor.py +++ b/buildman/manager/executor.py @@ -271,10 +271,11 @@ class KubernetesExecutor(BuilderExecutor): """ Executes build jobs by creating Kubernetes jobs which run a qemu-kvm virtual machine in a pod """ def __init__(self, *args, **kwargs): - self._loop = get_event_loop() super(KubernetesExecutor, self).__init__(*args, **kwargs) + self._loop = get_event_loop() self.namespace = self.executor_config.get('BUILDER_NAMESPACE', 'builder') - self.image = self.executor_config.get('BUILDER_IMAGE', 'quay.io/quay/quay-builder-qemu-coreos') + self.image = self.executor_config.get('BUILDER_VM_CONTAINER_IMAGE', + 'quay.io/quay/quay-builder-qemu-coreos:stable') @coroutine def _request(self, method, path, **kwargs): @@ -357,8 +358,8 @@ class KubernetesExecutor(BuilderExecutor): 'containers': [ { 'name': 'builder', - 'image': '%s:%s' % (self.image, coreos_channel), - 'imagePullPolicy': 'Always', + 'imagePullPolicy': 'IfNotPresent', + 'image': self.image, 'securityContext': {'privileged': True}, 'env': [ {'name': 'USERDATA', 'value': user_data},