Skip to content

Commit 015f22a

Browse files
committed
initial
0 parents  commit 015f22a

37 files changed

+4326
-0
lines changed

.codecov.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
2+
#
3+
# Generated on 2025-10-28T13:39:47Z by kres 46e133d.
4+
5+
codecov:
6+
require_ci_to_pass: false
7+
8+
coverage:
9+
status:
10+
project:
11+
default:
12+
target: 50%
13+
threshold: 0.5%
14+
base: auto
15+
if_ci_failed: success
16+
patch: off
17+
18+
comment: false

.conform.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
2+
#
3+
# Generated on 2025-10-28T14:20:37Z by kres 46e133d.
4+
5+
policies:
6+
- type: commit
7+
spec:
8+
dco: true
9+
gpg:
10+
required: true
11+
identity:
12+
gitHubOrganization: siderolabs
13+
spellcheck:
14+
locale: US
15+
maximumOfOneCommit: true
16+
header:
17+
length: 89
18+
imperative: true
19+
case: lower
20+
invalidLastCharacters: .
21+
body:
22+
required: true
23+
conventional:
24+
types:
25+
- chore
26+
- docs
27+
- perf
28+
- refactor
29+
- style
30+
- test
31+
- release
32+
scopes:
33+
- .*
34+
- type: license
35+
spec:
36+
root: .
37+
skipPaths:
38+
- .git/
39+
- testdata/
40+
includeSuffixes:
41+
- .go
42+
excludeSuffixes:
43+
- .pb.go
44+
- .pb.gw.go
45+
header: |
46+
// This Source Code Form is subject to the terms of the Mozilla Public
47+
// License, v. 2.0. If a copy of the MPL was not distributed with this
48+
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

.dockerignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
2+
#
3+
# Generated on 2025-10-28T13:39:47Z by kres 46e133d.
4+
5+
*
6+
!api
7+
!cmd
8+
!internal
9+
!go.mod
10+
!go.sum
11+
!.golangci.yml
12+
!README.md
13+
!.markdownlint.json
14+
!hack/govulncheck.sh

.github/renovate.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"description": "THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.",
4+
"prHeader": "Update Request | Renovate Bot",
5+
"extends": [
6+
":dependencyDashboard",
7+
":gitSignOff",
8+
":semanticCommitScopeDisabled",
9+
"schedule:earlyMondays"
10+
],
11+
"packageRules": [
12+
{
13+
"groupName": "dependencies",
14+
"matchUpdateTypes": [
15+
"major",
16+
"minor",
17+
"patch",
18+
"pin",
19+
"digest"
20+
]
21+
},
22+
{
23+
"enabled": false,
24+
"matchFileNames": [
25+
"Dockerfile"
26+
]
27+
},
28+
{
29+
"enabled": false,
30+
"matchFileNames": [
31+
".github/workflows/*.yaml"
32+
]
33+
}
34+
],
35+
"separateMajorMinor": false
36+
}

.github/workflows/ci.yaml

Lines changed: 219 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,219 @@
1+
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
2+
#
3+
# Generated on 2025-10-28T14:27:21Z by kres 46e133d.
4+
5+
concurrency:
6+
group: ${{ github.head_ref || github.run_id }}
7+
cancel-in-progress: true
8+
"on":
9+
push:
10+
branches:
11+
- main
12+
- release-*
13+
tags:
14+
- v*
15+
pull_request:
16+
branches:
17+
- main
18+
- release-*
19+
name: default
20+
jobs:
21+
default:
22+
permissions:
23+
actions: read
24+
contents: write
25+
issues: read
26+
packages: write
27+
pull-requests: read
28+
runs-on:
29+
group: generic
30+
if: (!startsWith(github.head_ref, 'renovate/') && !startsWith(github.head_ref, 'dependabot/'))
31+
steps:
32+
- name: gather-system-info
33+
id: system-info
34+
uses: kenchan0130/[email protected]
35+
continue-on-error: true
36+
- name: print-system-info
37+
run: |
38+
MEMORY_GB=$((${{ steps.system-info.outputs.totalmem }}/1024/1024/1024))
39+
40+
OUTPUTS=(
41+
"CPU Core: ${{ steps.system-info.outputs.cpu-core }}"
42+
"CPU Model: ${{ steps.system-info.outputs.cpu-model }}"
43+
"Hostname: ${{ steps.system-info.outputs.hostname }}"
44+
"NodeName: ${NODE_NAME}"
45+
"Kernel release: ${{ steps.system-info.outputs.kernel-release }}"
46+
"Kernel version: ${{ steps.system-info.outputs.kernel-version }}"
47+
"Name: ${{ steps.system-info.outputs.name }}"
48+
"Platform: ${{ steps.system-info.outputs.platform }}"
49+
"Release: ${{ steps.system-info.outputs.release }}"
50+
"Total memory: ${MEMORY_GB} GB"
51+
)
52+
53+
for OUTPUT in "${OUTPUTS[@]}";do
54+
echo "${OUTPUT}"
55+
done
56+
continue-on-error: true
57+
- name: checkout
58+
uses: actions/checkout@v5
59+
- name: Unshallow
60+
run: |
61+
git fetch --prune --unshallow
62+
- name: Set up Docker Buildx
63+
id: setup-buildx
64+
uses: docker/setup-buildx-action@v3
65+
with:
66+
driver: remote
67+
endpoint: tcp://buildkit-amd64.ci.svc.cluster.local:1234
68+
timeout-minutes: 10
69+
- name: base
70+
run: |
71+
make base
72+
- name: omni-infra-provider-libvirt
73+
run: |
74+
make omni-infra-provider-libvirt
75+
- name: Login to registry
76+
if: github.event_name != 'pull_request'
77+
uses: docker/login-action@v3
78+
with:
79+
password: ${{ secrets.GITHUB_TOKEN }}
80+
registry: ghcr.io
81+
username: ${{ github.repository_owner }}
82+
- name: image-omni-infra-provider-libvirt
83+
run: |
84+
make image-omni-infra-provider-libvirt
85+
- name: push-omni-infra-provider-libvirt
86+
if: github.event_name != 'pull_request'
87+
env:
88+
PUSH: "true"
89+
run: |
90+
make image-omni-infra-provider-libvirt
91+
- name: push-omni-infra-provider-libvirt-latest
92+
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
93+
env:
94+
PUSH: "true"
95+
run: |
96+
make image-omni-infra-provider-libvirt IMAGE_TAG=latest
97+
- name: Generate Checksums
98+
if: startsWith(github.ref, 'refs/tags/')
99+
run: |
100+
cd _out
101+
sha256sum omni-infra-provider-libvirt-* > sha256sum.txt
102+
sha512sum omni-infra-provider-libvirt-* > sha512sum.txt
103+
- name: release-notes
104+
if: startsWith(github.ref, 'refs/tags/')
105+
run: |
106+
make release-notes
107+
- name: Release
108+
if: startsWith(github.ref, 'refs/tags/')
109+
uses: softprops/action-gh-release@v2
110+
with:
111+
body_path: _out/RELEASE_NOTES.md
112+
draft: "true"
113+
files: |-
114+
_out/omni-infra-provider-libvirt-*
115+
_out/sha*.txt
116+
lint:
117+
runs-on:
118+
group: generic
119+
if: github.event_name == 'pull_request'
120+
needs:
121+
- default
122+
steps:
123+
- name: gather-system-info
124+
id: system-info
125+
uses: kenchan0130/[email protected]
126+
continue-on-error: true
127+
- name: print-system-info
128+
run: |
129+
MEMORY_GB=$((${{ steps.system-info.outputs.totalmem }}/1024/1024/1024))
130+
131+
OUTPUTS=(
132+
"CPU Core: ${{ steps.system-info.outputs.cpu-core }}"
133+
"CPU Model: ${{ steps.system-info.outputs.cpu-model }}"
134+
"Hostname: ${{ steps.system-info.outputs.hostname }}"
135+
"NodeName: ${NODE_NAME}"
136+
"Kernel release: ${{ steps.system-info.outputs.kernel-release }}"
137+
"Kernel version: ${{ steps.system-info.outputs.kernel-version }}"
138+
"Name: ${{ steps.system-info.outputs.name }}"
139+
"Platform: ${{ steps.system-info.outputs.platform }}"
140+
"Release: ${{ steps.system-info.outputs.release }}"
141+
"Total memory: ${MEMORY_GB} GB"
142+
)
143+
144+
for OUTPUT in "${OUTPUTS[@]}";do
145+
echo "${OUTPUT}"
146+
done
147+
continue-on-error: true
148+
- name: checkout
149+
uses: actions/checkout@v5
150+
- name: Unshallow
151+
run: |
152+
git fetch --prune --unshallow
153+
- name: Set up Docker Buildx
154+
id: setup-buildx
155+
uses: docker/setup-buildx-action@v3
156+
with:
157+
driver: remote
158+
endpoint: tcp://buildkit-amd64.ci.svc.cluster.local:1234
159+
timeout-minutes: 10
160+
- name: lint
161+
run: |
162+
make lint
163+
unit-tests:
164+
runs-on:
165+
group: generic
166+
if: github.event_name == 'pull_request'
167+
needs:
168+
- default
169+
steps:
170+
- name: gather-system-info
171+
id: system-info
172+
uses: kenchan0130/[email protected]
173+
continue-on-error: true
174+
- name: print-system-info
175+
run: |
176+
MEMORY_GB=$((${{ steps.system-info.outputs.totalmem }}/1024/1024/1024))
177+
178+
OUTPUTS=(
179+
"CPU Core: ${{ steps.system-info.outputs.cpu-core }}"
180+
"CPU Model: ${{ steps.system-info.outputs.cpu-model }}"
181+
"Hostname: ${{ steps.system-info.outputs.hostname }}"
182+
"NodeName: ${NODE_NAME}"
183+
"Kernel release: ${{ steps.system-info.outputs.kernel-release }}"
184+
"Kernel version: ${{ steps.system-info.outputs.kernel-version }}"
185+
"Name: ${{ steps.system-info.outputs.name }}"
186+
"Platform: ${{ steps.system-info.outputs.platform }}"
187+
"Release: ${{ steps.system-info.outputs.release }}"
188+
"Total memory: ${MEMORY_GB} GB"
189+
)
190+
191+
for OUTPUT in "${OUTPUTS[@]}";do
192+
echo "${OUTPUT}"
193+
done
194+
continue-on-error: true
195+
- name: checkout
196+
uses: actions/checkout@v5
197+
- name: Unshallow
198+
run: |
199+
git fetch --prune --unshallow
200+
- name: Set up Docker Buildx
201+
id: setup-buildx
202+
uses: docker/setup-buildx-action@v3
203+
with:
204+
driver: remote
205+
endpoint: tcp://buildkit-amd64.ci.svc.cluster.local:1234
206+
timeout-minutes: 10
207+
- name: unit-tests
208+
run: |
209+
make unit-tests
210+
- name: unit-tests-race
211+
run: |
212+
make unit-tests-race
213+
- name: coverage
214+
uses: codecov/codecov-action@v5
215+
with:
216+
files: _out/coverage-unit-tests.txt
217+
flags: unit-tests
218+
token: ${{ secrets.CODECOV_TOKEN }}
219+
timeout-minutes: 3

.github/workflows/lock.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
2+
#
3+
# Generated on 2025-10-28T13:39:47Z by kres 46e133d.
4+
5+
"on":
6+
schedule:
7+
- cron: 0 2 * * *
8+
name: Lock old issues
9+
permissions:
10+
issues: write
11+
jobs:
12+
action:
13+
runs-on:
14+
- ubuntu-latest
15+
steps:
16+
- name: Lock old issues
17+
uses: dessant/[email protected]
18+
with:
19+
issue-inactive-days: "60"
20+
log-output: "true"
21+
process-only: issues

0 commit comments

Comments
 (0)