-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathk8s-sidecar-1.27.4-r0.yaml
63 lines (48 loc) · 1.46 KB
/
k8s-sidecar-1.27.4-r0.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
package:
name: k8s-sidecar-1.27.4-r0
version: 1.27.4
epoch: 0
description: container intended to run inside a kubernetes cluster to collect config maps with a specified label and store the included files in a local folder
copyright:
- license: MIT
dependencies:
runtime:
- python3
environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- py3-pip
- py3-setuptools
- python3
- wolfi-base
pipeline:
- uses: git-checkout
with:
repository: https://github.com/kiwigrid/k8s-sidecar
tag: ${{package.version}}
expected-commit: 6ecc8efd6b1fe8e64cabff7c0ba367939e491c17
- runs: 'mkdir -p ${{targets.destdir}}/usr/share/app
cd src
# Mitigate CVE-2022-40897 / GHSA-r9hx-vwmv-q579
pip install --upgrade setuptools
pip3 install --no-cache-dir -r requirements.txt --prefix=/usr --root="${{targets.destdir}}"
# Patch CVE-2024-3651
pip install idna==3.7
cd ..
mv src/* ${{targets.destdir}}/usr/share/app
find ${{targets.destdir}} \( -type d -a -name test -o -name tests \) -o \( -type f -a -name ''*.pyc'' -o -name ''*.pyo'' \) -exec rm -rf ''{}'' \+
'
- uses: strip
update:
enabled: true
github:
identifier: kiwigrid/k8s-sidecar
use-tag: true
test:
pipeline:
- runs: '# This only runs in k8s but make sure it errors correctly
python3 /usr/share/app/sidecar.py 2>&1 | grep CRITICAL
'