Skip to content

Commit a08fc09

Browse files
authored
Merge branch 'development/130.0' into improvement/ARTESCA-14988-bump-loki
2 parents d3b5f6a + 717b5a3 commit a08fc09

File tree

130 files changed

+23329
-77
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+23329
-77
lines changed

.github/workflows/generate-sbom.yaml

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ on:
3131

3232
jobs:
3333
generate-sbom:
34-
runs-on: ubuntu-22.04
34+
runs-on: ubuntu-24.04
3535
env:
3636
BASE_PATH: ${{ github.workspace }}/metalk8s_sbom
3737
SBOM_PATH: ${{ github.workspace }}/artifacts/sbom
@@ -49,24 +49,9 @@ jobs:
4949
- name: Create directories
5050
shell: bash
5151
run: |
52-
mkdir -p ${{ env.BASE_PATH }}/repo
5352
mkdir -p ${{ env.BASE_PATH }}/iso
5453
mkdir -p ${{ env.SBOM_PATH }}
5554
56-
- name: Checkout repo for scanning
57-
uses: actions/checkout@v4
58-
with:
59-
fetch-depth: 0
60-
fetch-tags: true
61-
ref: ${{ inputs.ref }}
62-
path: ${{ env.BASE_PATH }}/repo/metalk8s
63-
64-
- name: Generate sbom for repository
65-
uses: scality/sbom@v1.2.2
66-
with:
67-
target: ${{ env.BASE_PATH }}/repo/metalk8s
68-
output-dir: ${{ env.SBOM_PATH }}
69-
7055
- name: Get artifacts URL
7156
if: ${{ ! inputs.artifacts-url }}
7257
uses: scality/action-artifacts@v4
@@ -98,24 +83,31 @@ jobs:
9883
echo "METALK8S_VERSION=$VERSION" >> $GITHUB_ENV
9984
10085
- name: Generate sbom for extracted ISO
101-
uses: scality/sbom@v1.2.2
86+
uses: scality/sbom@v2.1.0
10287
with:
10388
target: ${{ env.BASE_PATH }}/iso/metalk8s.iso
104-
output-dir: ${{ env.SBOM_PATH }}
89+
target_type: iso
90+
output_dir: ${{ env.SBOM_PATH }}
10591
version: ${{ env.METALK8S_VERSION }}
92+
vuln: true
93+
vuln_output_format: cyclonedx-json, html
94+
merge: true
95+
merge_hierarchical: true
10696

10797
- name: Generate archive
10898
shell: bash
10999
run: |
110100
cd ${{ env.SBOM_PATH }}
111-
tar -czf sbom_metalk8s.tar.gz *.json
101+
tar -czf sbom_metalk8s.tar.gz *.json *.html
112102
113103
- name: Clean up
114104
shell: bash
115105
run: |
116-
rm -rf ${{ env.BASE_PATH }}/repo
117106
rm -rf ${{ env.BASE_PATH }}/iso
118-
rm -f ${{ env.SBOM_PATH }}/*.json
107+
find ${{ env.SBOM_PATH }} -mindepth 1 \
108+
-not -name 'sbom_metalk8s.tar.gz' \
109+
-not -name '*_merged_sbom_vuln.html' \
110+
-exec rm -rf {} +
119111
120112
- name: Generate Job result
121113
if: always()

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
[v2.42.0](https://github.com/dexidp/dex/releases/tag/v2.42.0)
1818
(PR[#4558](https://github.com/scality/metalk8s/pull/4558))
1919

20+
- Bump Fluent Bit image version to [3.2.8](https://github.com/fluent/fluent-bit/releases/tag/v3.2.8)
21+
and Fluent Bit Helm chart version to [0.48.9](https://github.com/fluent/helm-charts/releases/tag/fluent-bit-0.48.9)
22+
(PR[#4559](https://github.com/scality/metalk8s/pull/4559))
23+
2024
- Bump Loki chart version to
2125
[6.29.0](https://github.com/grafana/loki/releases/tag/helm-loki-6.29.0)
2226
The Loki image has been bumped accordingly to

buildchain/buildchain/versions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,8 @@ def _version_prefix(version: str, prefix: str = "v") -> str:
273273
),
274274
Image(
275275
name="fluent-bit",
276-
version="3.1.9",
277-
digest="sha256:4af3920cc2ff976200e0fc09f23e7ca4ee7d4477a6d592cb496fc39378181b02",
276+
version="3.2.8",
277+
digest="sha256:14da4a52ecdbb9bd9cb7a16ff6b4c7f391a4006cb13f84b5957e4608cc613e2c",
278278
),
279279
Image(
280280
name="cert-manager-controller",

charts/fluent-bit/Chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
annotations:
22
artifacthub.io/changes: |
33
- kind: changed
4-
description: "Updated Fluent Bit OCI image to v3.1.9"
4+
description: "Updated Fluent Bit OCI image to v3.2.8."
55
apiVersion: v1
6-
appVersion: 3.1.9
6+
appVersion: 3.2.8
77
description: Fast and lightweight log processor and forwarder or Linux, OSX and BSD
88
family operating systems.
99
home: https://fluentbit.io/
@@ -24,4 +24,4 @@ maintainers:
2424
name: fluent-bit
2525
sources:
2626
- https://github.com/fluent/fluent-bit/
27-
version: 0.47.10
27+
version: 0.48.9

charts/fluent-bit/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Fluent Bit allows us to build filter to modify the incoming records using custom
2727

2828
### How to use Lua scripts with this Chart
2929

30-
First, you should add your Lua scripts to `luaScripts` in values.yaml, for example:
30+
First, you should add your Lua scripts to `luaScripts` in values.yaml, templating is supported.
3131

3232
```yaml
3333
luaScripts:

charts/fluent-bit/ci/ci-values.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,41 @@ testFramework:
33

44
logLevel: debug
55

6+
extraVolumeMounts:
7+
- name: extra-volume
8+
mountPath: /extra-volume-path
9+
- name: another-extra-volume
10+
mountPath: /another-extra-volume-path
11+
12+
extraVolumes:
13+
- name: extra-volume
14+
emptyDir: {}
15+
- name: another-extra-volume
16+
emptyDir: {}
17+
618
dashboards:
719
enabled: true
820
deterministicUid: true
21+
22+
luaScripts:
23+
filter_example.lua: |
24+
function filter_name(tag, timestamp, record)
25+
-- put your lua code here.
26+
end
27+
filter_with_templating_example.lua: |
28+
local log_level = {{ .Values.logLevel | quote }}
29+
function filter_with_templating_name(tag, timestamp, record)
30+
-- put your lua code here.
31+
end
32+
33+
config:
34+
outputs: |
35+
[OUTPUT]
36+
name stdout
37+
match *
38+
39+
hotReload:
40+
enabled: true
41+
extraWatchVolumes:
42+
- extra-volume
43+
- another-extra-volume

charts/fluent-bit/templates/_pod.tpl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,18 @@ containers:
108108
- {{ printf "-webhook-url=http://localhost:%s/api/v2/reload" (toString .Values.metricsPort) }}
109109
- -volume-dir=/watch/config
110110
- -volume-dir=/watch/scripts
111+
{{- range $idx, $val := .Values.hotReload.extraWatchVolumes }}
112+
- {{ printf "-volume-dir=/watch/extra-%d" (int $idx) }}
113+
{{- end }}
111114
volumeMounts:
112115
- name: config
113116
mountPath: /watch/config
114117
- name: luascripts
115118
mountPath: /watch/scripts
119+
{{- range $idx, $val := .Values.hotReload.extraWatchVolumes }}
120+
- name: {{ $val }}
121+
mountPath: {{ printf "/watch/extra-%d" (int $idx) }}
122+
{{- end }}
116123
{{- with .Values.hotReload.resources }}
117124
resources:
118125
{{- toYaml . | nindent 12 }}
@@ -132,7 +139,7 @@ volumes:
132139
{{- if or .Values.luaScripts .Values.hotReload.enabled }}
133140
- name: luascripts
134141
configMap:
135-
name: {{ include "fluent-bit.fullname" . }}-luascripts
142+
name: {{ include "fluent-bit.fullname" . }}-luascripts
136143
{{- end }}
137144
{{- if eq .Values.kind "DaemonSet" }}
138145
{{- toYaml .Values.daemonSetVolumes | nindent 2 }}

charts/fluent-bit/templates/configmap-luascripts.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ metadata:
88
{{- include "fluent-bit.labels" . | nindent 4 }}
99
data:
1010
{{ range $key, $value := .Values.luaScripts }}
11-
{{ $key }}: {{ $value | quote }}
11+
{{ $key }}: {{ (tpl $value $) | quote }}
1212
{{ end }}
1313
{{- end -}}

charts/fluent-bit/templates/psp.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,15 @@ spec:
2020
hostNetwork: {{ .Values.hostNetwork }}
2121
hostIPC: false
2222
hostPID: false
23+
{{- with .Values.podSecurityPolicy.runAsUser }}
2324
runAsUser:
24-
# TODO: Require the container to run without root privileges.
25-
rule: 'RunAsAny'
25+
{{- toYaml . | nindent 4 }}
26+
{{- end }}
27+
{{- with .Values.podSecurityPolicy.seLinux }}
2628
seLinux:
27-
# This policy assumes the nodes are using AppArmor rather than SELinux.
28-
rule: 'RunAsAny'
29+
{{- toYaml . | nindent 4 }}
30+
{{- end }}
31+
2932
supplementalGroups:
3033
rule: 'MustRunAs'
3134
ranges:

charts/fluent-bit/templates/scc.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,14 @@ forbiddenSysctls:
2424
readOnlyRootFilesystem: false
2525
requiredDropCapabilities:
2626
- MKNOD
27+
{{- with .Values.openShift.securityContextConstraints.runAsUser }}
2728
runAsUser:
28-
type: RunAsAny
29+
{{- toYaml . | nindent 4 }}
30+
{{- end }}
31+
{{- with .Values.openShift.securityContextConstraints.seLinuxContext }}
2932
seLinuxContext:
30-
type: MustRunAs
33+
{{- toYaml . | nindent 4 }}
34+
{{- end }}
3135
supplementalGroups:
3236
type: RunAsAny
3337
volumes:

0 commit comments

Comments
 (0)