Merge pull request #1916 from coreos-inc/k8s-generate-name

Add a dash to generated k8s job names
This commit is contained in:
Brad Ison 2016-10-04 11:56:33 -04:00 committed by GitHub
commit 94a0fee63f

View file

@ -361,7 +361,7 @@ class KubernetesExecutor(BuilderExecutor):
'kind': 'Job',
'metadata': {
'namespace': self.namespace,
'generateName': build_uuid,
'generateName': build_uuid + '-',
'labels': {
'build': build_uuid,
'time': datetime.datetime.now().strftime('%Y-%m-%d-%H'),