Skip to content

Commit 9a19147

Browse files
committed
Merge branch 'main' into fix/test/fuzz-testing-fail
Signed-off-by: Daniil Antoshin <[email protected]>
2 parents ec7a88a + 45bdb83 commit 9a19147

File tree

1,168 files changed

+63823
-48446
lines changed

Some content is hidden

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

1,168 files changed

+63823
-48446
lines changed

.dmtlint.yaml

Lines changed: 4 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -1,95 +1,8 @@
1+
global:
2+
linters-settings:
3+
documentation:
4+
impact: error
15
linters-settings:
2-
container:
3-
exclude-rules:
4-
liveness-probe:
5-
- kind: Deployment
6-
name: cdi-operator
7-
container: proxy
8-
- kind: Deployment
9-
name: cdi-operator
10-
namespace: d8-virtualization
11-
container: cdi-operator
12-
- kind: Deployment
13-
name: cdi-operator
14-
namespace: d8-virtualization
15-
container: proxy
16-
- kind: Deployment
17-
name: virtualization-api
18-
namespace: d8-virtualization
19-
container: virtualization-api
20-
- kind: Deployment
21-
name: virt-operator
22-
namespace: d8-virtualization
23-
container: virt-operator
24-
- kind: Deployment
25-
name: virtualization-controller
26-
namespace: d8-virtualization
27-
container: proxy
28-
- kind: Deployment
29-
name: virtualization-controller
30-
namespace: d8-virtualization
31-
container: virtualization-controller
32-
- kind: Deployment
33-
name: virtualization-controller
34-
namespace: d8-virtualization
35-
container: kube-rbac-proxy
36-
- kind: Deployment
37-
name: virt-operator
38-
namespace: d8-virtualization
39-
container: kube-rbac-proxy
40-
- kind: Deployment
41-
name: cdi-operator
42-
namespace: d8-virtualization
43-
container: kube-rbac-proxy
44-
- kind: Deployment
45-
name: dvcr
46-
namespace: d8-virtualization
47-
container: kube-rbac-proxy
48-
- kind: Deployment
49-
name: virt-operator
50-
namespace: d8-virtualization
51-
container: proxy
52-
readiness-probe:
53-
- kind: Deployment
54-
name: virtualization-controller
55-
namespace: d8-virtualization
56-
container: kube-rbac-proxy
57-
- kind: Deployment
58-
name: virt-operator
59-
namespace: d8-virtualization
60-
container: proxy
61-
- kind: Deployment
62-
name: cdi-operator
63-
namespace: d8-virtualization
64-
container: kube-rbac-proxy
65-
- kind: Deployment
66-
name: cdi-operator
67-
namespace: d8-virtualization
68-
container: cdi-operator
69-
- kind: Deployment
70-
name: virtualization-api
71-
namespace: d8-virtualization
72-
container: virtualization-api
73-
- kind: Deployment
74-
name: cdi-operator
75-
namespace: d8-virtualization
76-
container: proxy
77-
- kind: Deployment
78-
name: dvcr
79-
namespace: d8-virtualization
80-
container: kube-rbac-proxy
81-
- kind: Deployment
82-
name: virtualization-controller
83-
namespace: d8-virtualization
84-
container: virtualization-controller
85-
- kind: Deployment
86-
name: virtualization-controller
87-
namespace: d8-virtualization
88-
container: proxy
89-
- kind: Deployment
90-
name: virt-operator
91-
namespace: d8-virtualization
92-
container: kube-rbac-proxy
936
openapi:
947
exclude-rules:
958
enum:
@@ -135,8 +48,6 @@ linters-settings:
13548
- kubevirt-internal-virtualization-controller
13649
- kubevirt-internal-virtualization-handler
13750
module:
138-
oss:
139-
disable: true
14051
exclude-rules:
14152
license:
14253
files:

.editorconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ indent_style = space
2424
;python pep8 indentation
2525
[*.py]
2626
indent_style = space
27-
indent_size = 4
27+
indent_size = 4
28+

.github/actions/milestone-changelog/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ runs:
1919
2020
- name: Collect Changelog
2121
id: changelog
22-
uses: deckhouse/changelog-action@v2
22+
uses: deckhouse/changelog-action@v2.6.0
2323
with:
2424
token: ${{ inputs.token }}
2525
repo: ${{ github.repository }}

.github/workflows/check-changelog-entry.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
uses: actions/[email protected]
3333
- name: Check Changelog entry
3434
id: entry-check
35-
uses: deckhouse/changelog-action@v2.5.0
35+
uses: deckhouse/changelog-action@v2.6.0
3636
with:
3737
validate_only: true
3838
allowed_sections: |
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Copyright 2025 Flant JSC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: "Daily CVE tests"
16+
on:
17+
schedule:
18+
# Run at 2:00 every night (UTC).
19+
- cron: "0 02 * * *"
20+
workflow_dispatch:
21+
inputs:
22+
tag_type:
23+
type: choice
24+
description: Tag type
25+
required: false
26+
options:
27+
- release
28+
- dev
29+
tag_name:
30+
description: "release version in semver minor format (example: 1.68) or specified tag from dev registry"
31+
required: false
32+
33+
concurrency:
34+
group: cve-daily
35+
36+
jobs:
37+
cve_scan_daily:
38+
name: Trivy images check
39+
runs-on: [self-hosted, large]
40+
steps:
41+
- uses: actions/checkout@v4
42+
- uses: deckhouse/modules-actions/cve_scan@v5
43+
with:
44+
tag: ${{ github.event.inputs.tag_name || 'main' }}
45+
tag_type: ${{ github.event.inputs.tag_type }}
46+
module_name: ${{ vars.MODULE_NAME }}
47+
dd_url: ${{vars.DEFECTDOJO_HOST}}
48+
dd_token: ${{secrets.DEFECTDOJO_API_TOKEN}}
49+
prod_registry: ${{vars.TRIVY_REGISTRY}}
50+
prod_registry_user: ${{ secrets.PROD_READ_REGISTRY_USER }}
51+
prod_registry_password: ${{ secrets.PROD_READ_REGISTRY_PASSWORD }}
52+
dev_registry: ${{ vars.DEV_REGISTRY }}
53+
dev_registry_user: ${{ vars.DEV_MODULES_REGISTRY_LOGIN }}
54+
dev_registry_password: ${{ secrets.DEV_MODULES_REGISTRY_PASSWORD }}
55+
deckhouse_private_repo: ${{vars.DECKHOUSE_PRIVATE_REPO}}
56+
latest_releases_amount: 5

.github/workflows/dev_build_svace.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ jobs:
167167
- dev_setup_build
168168
steps:
169169
- uses: deckhouse/modules-actions/svace_analyze@v4
170+
id: analyze
170171
with:
171172
project_group: ${{ github.event.repository.name }}
172173
ci_commit_ref_name: ${{ github.event.pull_request.head.ref || github.ref_name }}
@@ -177,3 +178,32 @@ jobs:
177178
svacer_import_user: "${{ secrets.SVACER_IMPORT_USER }}"
178179
svacer_import_password: "${{ secrets.SVACER_IMPORT_PASSWORD }}"
179180
svace_analyze_ssh_private_key: "${{ secrets.SVACE_ANALYZE_SSH_PRIVATE_KEY }}"
181+
182+
notify:
183+
name: Notify Loop
184+
runs-on: ubuntu-latest
185+
needs:
186+
- set_vars
187+
- dev_setup_build
188+
- analyze_build
189+
if: always()
190+
steps:
191+
- name: Send results to Loop
192+
run: |
193+
DATE=$(date '+%Y-%m-%d')
194+
if [ "${{ needs.analyze_build.result }}" == "success" ]; then
195+
STATUS=":white_check_mark: SUCCESS!"
196+
else
197+
STATUS=":x: FAIL!"
198+
fi
199+
MESSAGE="
200+
### :gear: **DVP $DATE Weekly Svace Analyze Report**
201+
202+
**Branch:** \`$GITHUB_REF_NAME\`
203+
**Status: ${STATUS}**
204+
205+
[:link: GitHub Actions Output]($GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID)
206+
"
207+
curl -XPOST -H 'Content-Type: application/json' -d "{\"text\": \"${MESSAGE}\"}" $LOOP_WEBHOOK_URL
208+
env:
209+
LOOP_WEBHOOK_URL: ${{ secrets.LOOP_WEBHOOK_URL }}

.github/workflows/dev_module_build-and-registration.yml

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,23 @@ env:
2222
MODULES_REGISTRY_LOGIN: ${{ vars.DEV_MODULES_REGISTRY_LOGIN }}
2323
MODULES_REGISTRY_PASSWORD: ${{ secrets.DEV_MODULES_REGISTRY_PASSWORD }}
2424
RELEASE_CHANNEL: ${{ github.event.inputs.channel }}
25-
MODULES_MODULE_TAG: ${{ github.event.inputs.tag }}-dev
25+
MODULES_MODULE_TAG: ${{ github.event.inputs.tag }}
2626
SOURCE_REPO: "${{secrets.SOURCE_REPO}}"
2727
SOURCE_REPO_GIT: "${{secrets.SOURCE_REPO_GIT}}"
28-
GO_VERSION: "1.22.7"
28+
GO_VERSION: "1.24.6"
2929
MODULE_EDITION: "EE"
3030

3131
on:
3232
push:
3333
tags:
34-
- "v[0-9]+.[0-9]+.[0-9]+"
34+
- "v[0-9]+.[0-9]+.[0-9]+.*"
3535
workflow_dispatch:
3636
inputs:
3737
tag:
38-
description: "Input existing tag, example v0.16.1. Image module tag in dev-registry will have suffix -dev. For example: v0.16.1-dev"
38+
description: |
39+
Allow input tag vX.Y.Z (release tag) or vX.Y.Z-rc.N (release candidate tag).
40+
41+
Example: v1.0.0 or v1.0.0-rc.1
3942
type: string
4043
required: true
4144

@@ -64,12 +67,26 @@ jobs:
6467
echo CI_COMMIT_REF_NAME=$CI_COMMIT_REF_NAME
6568
echo MODULES_MODULE_NAME=$MODULES_MODULE_NAME
6669
echo RELEASE_CHANNEL=$RELEASE_CHANNEL
67-
echo MODULES_MODULE_TAG=$MODULES_MODULE_TAG
6870
echo MODULE_EDITION=$MODULE_EDITION
6971
shell: bash
70-
- name: Validation for tag
72+
- name: Validation and set MODULES_MODULE_TAG
73+
id: get-tag
7174
run: |
72-
echo ${{ github.event.inputs.tag }} | grep -P '^v\d+\.\d+\.\d+.*$'
75+
TAG="${{ github.event.inputs.tag }}"
76+
echo "Processing tag: $TAG"
77+
78+
# Check if tag matches vX.Y.Z pattern (release)
79+
if echo "$TAG" | grep -P '^v\d+\.\d+\.\d+$' > /dev/null; then
80+
echo "Release tag detected"
81+
echo "MODULES_MODULE_TAG=${TAG}" >> $GITHUB_OUTPUT
82+
# Check if tag matches vX.Y.Z-rc.N pattern (release candidate)
83+
elif echo "$TAG" | grep -P '^v\d+\.\d+\.\d+-rc\.\d+$' > /dev/null; then
84+
echo "Release candidate tag detected"
85+
echo "MODULES_MODULE_TAG=$TAG" >> $GITHUB_OUTPUT
86+
else
87+
echo "Error: Invalid tag format. Use format vX.Y.Z or vX.Y.Z-rc.N"
88+
exit 1
89+
fi
7390
shell: bash
7491

7592
- uses: actions/checkout@v4
@@ -91,13 +108,6 @@ jobs:
91108
- if: ${{ github.event.inputs.enableBuild == 'true' }}
92109
uses: deckhouse/modules-actions/build@v2
93110
with:
94-
module_source: "$MODULES_MODULE_SOURCE"
95-
module_name: ${{ vars.MODULE_NAME }}
96-
module_tag: "$MODULES_MODULE_TAG"
97-
98-
- uses: deckhouse/modules-actions/deploy@v2
99-
with:
100-
module_source: "$MODULES_MODULE_SOURCE"
111+
module_source: ${{ vars.DEV_MODULE_SOURCE}}
101112
module_name: ${{ vars.MODULE_NAME }}
102-
module_tag: "$MODULES_MODULE_TAG"
103-
release_channel: ${{ github.event.inputs.version }}
113+
module_tag: ${{ steps.get-tag.outputs.MODULES_MODULE_TAG }}

0 commit comments

Comments
 (0)