This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
kubectl.yml
77 lines (72 loc) · 1.84 KB
/
kubectl.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
---
title: "[kubectl] Update version"
scms:
default:
kind: github
spec:
user: "{{ .github.user }}"
email: "{{ .github.email }}"
owner: "{{ .github.owner }}"
repository: "{{ .github.repository }}"
token: "{{ requiredEnv .github.token }}"
username: "{{ .github.username }}"
branch: "{{ .github.branch }}"
sources:
default:
kind: githubrelease
name: Get the latest kubectl version
transformers:
- trimprefix: "kubernetes-"
spec:
owner: "kubernetes"
repository: "kubectl"
token: "{{ requiredEnv .github.token }}"
username: "{{ .github.username }}"
versionfilter:
kind: regex
pattern: "^kubernetes-1.23.(\\d*)$"
conditions:
dockerfileArgKubectlVersion:
name: "Does the Dockerfile have an ARG instruction which key is KUBECTL_VERSION?"
kind: dockerfile
disablesourceinput: true
spec:
file: Dockerfile
instruction:
keyword: "ARG"
matcher: "KUBECTL_VERSION"
testCstKubectlVersion:
name: "Update the value of KUBECTL_VERSION in the test harness"
kind: yaml
disablesourceinput: true
spec:
file: "cst.yml"
key: "metadataTest.labels[4].key"
value: "io.jenkins-infra.tools.kubectl.version"
targets:
updateCst:
name: "Update the value of KUBECTL_VERSION in the test harness"
kind: yaml
spec:
file: "cst.yml"
key: "metadataTest.labels[4].value"
scmid: default
updateDockerfile:
name: "Update the value of ARG KUBECTL_VERSION in the Dockerfile"
kind: dockerfile
spec:
file: Dockerfile
instruction:
keyword: "ARG"
matcher: "KUBECTL_VERSION"
scmid: default
pullrequests:
default:
kind: github
scmid: default
targets:
- updateCst
- updateDockerfile
spec:
labels:
- dependencies