forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkubernetes-latest.yaml
128 lines (116 loc) · 3.51 KB
/
kubernetes-latest.yaml
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
package:
name: kubernetes-latest
version: 0
epoch: 5
description: "Compatibility infrastructure for Kubernetes components"
copyright:
- license: GPL-2.0-or-later
environment:
contents:
packages:
- busybox
vars:
components: "kubectl kubeadm kubelet kube-scheduler kube-proxy kube-controller-manager kube-apiserver"
kubernetes-version: 1.31
pipeline:
- runs: |
mkdir -p "${{targets.destdir}}"/usr/bin
for c in ${{vars.components}}; do
ln -sf $c-${{vars.kubernetes-version}} "${{targets.destdir}}"/usr/bin/$c
done
subpackages:
- name: kubectl-latest
dependencies:
runtime:
- kubectl-${{vars.kubernetes-version}}
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/usr/bin
ln -s kubectl-${{vars.kubernetes-version}} ${{targets.subpkgdir}}/usr/bin/kubectl
test:
pipeline:
- runs: |
kubectl version --client
kubectl --help
- name: kubeadm-latest
dependencies:
runtime:
- kubeadm-${{vars.kubernetes-version}}
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/usr/bin
ln -s kubeadm-${{vars.kubernetes-version}} ${{targets.subpkgdir}}/usr/bin/kubeadm
test:
pipeline:
- runs: |
kubeadm version
kubeadm --help
- name: kubelet-latest
dependencies:
runtime:
- kubelet-${{vars.kubernetes-version}}
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/usr/bin
ln -s kubelet-${{vars.kubernetes-version}} ${{targets.subpkgdir}}/usr/bin/kubelet
test:
pipeline:
- runs: |
kubelet --version
kubelet --help
- name: kube-scheduler-latest
dependencies:
runtime:
- kube-scheduler-${{vars.kubernetes-version}}
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/usr/bin
ln -s kube-scheduler-${{vars.kubernetes-version}} ${{targets.subpkgdir}}/usr/bin/kube-scheduler
test:
pipeline:
- runs: |
kube-scheduler --version
kube-scheduler --help
- name: kube-proxy-latest
dependencies:
runtime:
- kube-proxy-${{vars.kubernetes-version}}
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/usr/bin
ln -s kube-proxy-${{vars.kubernetes-version}} ${{targets.subpkgdir}}/usr/bin/kube-proxy
test:
pipeline:
- runs: |
kube-proxy --version
kube-proxy --help
- name: kube-controller-manager-latest
dependencies:
runtime:
- kube-controller-manager-${{vars.kubernetes-version}}
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/usr/bin
ln -s kube-controller-manager-${{vars.kubernetes-version}} ${{targets.subpkgdir}}/usr/bin/kube-controller-manager
test:
pipeline:
- runs: |
kube-controller-manager --version
kube-controller-manager --help
- name: kube-apiserver-latest
dependencies:
runtime:
- kube-apiserver-${{vars.kubernetes-version}}
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/usr/bin
ln -s kube-apiserver-${{vars.kubernetes-version}} ${{targets.subpkgdir}}/usr/bin/kube-apiserver
test:
pipeline:
- runs: |
kube-apiserver --version
kube-apiserver --help
update:
enabled: false
exclude-reason: >
This package and it's references to "latest" must be bumped manually when a new latest is dropped.