jenkins: Add default imagePullSecrets for jobs

Setting the `imagePullSecrets` property on the default service account
for the *jenkins-jobs* namespace allows jobs to run from private
container images automatically, without additional configuration in the
pipeline definitions.
This commit is contained in:
2023-11-10 15:13:19 -06:00
parent fe2a84a222
commit c5188d042b
3 changed files with 23 additions and 0 deletions

View File

@@ -16,6 +16,15 @@ metadata:
name: jenkins
namespace: jenkins
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: default
namespace: jenkins-jobs
imagePullSecrets:
- name: imagepull-gitea
---
apiVersion: v1
kind: PersistentVolumeClaim