Skip to content

Commit fb276a7

Browse files
committed
feat: initial commit
Add siderolink-doctor Signed-off-by: Noel Georgi <git@frezbo.dev>
0 parents  commit fb276a7

42 files changed

Lines changed: 4637 additions & 0 deletions

Some content is hidden

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

.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 BY KRES, PLEASE DO NOT EDIT.
2+
#
3+
# Generated on 2026-07-18T12:04:55Z by kres d66531d.
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: false
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 BY KRES, PLEASE DO NOT EDIT.
2+
#
3+
# Generated on 2026-07-18T12:04:55Z by kres d66531d.
4+
5+
*
6+
!cmd
7+
!internal
8+
!go.mod
9+
!go.sum
10+
!.golangci.yml
11+
!README.md
12+
!.markdownlint.json
13+
!hack/govulncheck.sh
14+
!.disvulncheck.yaml

.github/renovate.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"description": "THIS FILE WAS AUTOMATICALLY GENERATED BY KRES, 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+
"draftPR": true
37+
}

.github/workflows/ci.yaml

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

.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 BY KRES, PLEASE DO NOT EDIT.
2+
#
3+
# Generated on 2026-07-18T12:04:55Z by kres d66531d.
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/lock-threads@89ae32b08ed1a541efecbab17912962a5e38981c # version: v6.0.2
18+
with:
19+
issue-inactive-days: "60"
20+
log-output: "true"
21+
process-only: issues

0 commit comments

Comments
 (0)