Changes

Summary

  1. pod: use `coreos-ci-sa` serviceAccount when using `runAsUser` (details)
  2. pod: use serviceAccountName instead of serviceAccount (details)
  3. pod: set serviceAccount in podTemplate instead of YAML (details)
  4. Move from Quay.io to app.ci (details)
  5. buildImage: add support for setting memory and cpu (details)
  6. buildImage: fix resource request (details)
Commit 89159ffb40253be9ae29e44eb96a5051e8167d12 by Jonathan Lebon
pod: use `coreos-ci-sa` serviceAccount when using `runAsUser`

That service account has `RunAsAny` caps.

This is a bit hacky. Ideally, this shared lib wouldn't hardcode things
specific to either CoreOS CI or the pipeline here and instead we'd store
this config in https://github.com/coreos/coreos-ci. This works though
because the FCOS pipeline doesn't use `runAsUser` at all.
The file was modified vars/pod.groovy (diff)
Commit a4d2b514b7e2edeca40d4acbe1cb4a5f659a716e by Jonathan Lebon
pod: use serviceAccountName instead of serviceAccount

The latter is deprecated. It should still work at the k8s level, but
it's possible there's something going on with the Jenkins kubernetes
plugin not handling this correctly.
The file was modified vars/pod.groovy (diff)
Commit 0759da977470e5a8bf9d4a134887dc1117eb9458 by Jonathan Lebon
pod: set serviceAccount in podTemplate instead of YAML

Setting the `serviceAccountName` field in the pod YAML itself is not
working with the kubernetes plugin. I noticed that `podTemplate` also
supports specifying the `serviceAccount` directly. It's possible that
that key is used and any service account set in the pod YAML directly is
always overridden.

Let's try using that instead.
The file was modified vars/pod.groovy (diff)
Commit 48a7637d8cbfafb531a4dbc50b59353de97145cb by Jonathan Lebon
Move from Quay.io to app.ci

The latter mirrors to the former, but it's a periodic that runs every
hour. So let's just use the images directly from app.ci for faster
iteration.
The file was modified vars/buildPod.groovy (diff)
The file was modified vars/cosaPod.groovy (diff)
Commit decacbc6b329c7667ceaa24907391482aad9f3a9 by Jonathan Lebon
buildImage: add support for setting memory and cpu

In cosa CI, we're hitting:

> runtime: failed to create new OS thread

I think this is another instance of non-Kubernetes-aware multiprocessing
like in https://github.com/coreos/coreos-ci/issues/23.

Let's expose the `resources` knob for building images like we already do
for `pod`. This will allow us in cosa to request a specific amount, and
then asking golang to respect it.
The file was modified vars/buildImage.groovy (diff)
Commit 60564c99decd4ed526839b38d2560eb3e0cb2273 by Jonathan Lebon
buildImage: fix resource request

We need to initialize the maps before we can set keys inside.

Fixes decacbc ("buildImage: add support for setting memory and cpu").
The file was modified vars/buildImage.groovy (diff)