Compare commits

...

89 Commits

Author SHA1 Message Date
renovate[bot]
0cfe6119a6 Update kubernetes packages to v0.34.0 2025-08-28 03:15:12 +00:00
renovate[bot]
432c71e4c2 Update google/osv-scanner-action action to v2.2.1 (#136)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-12 04:29:27 +00:00
renovate[bot]
79dae2a87d Update actions/checkout action to v5 (#137)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-12 04:05:50 +00:00
renovate[bot]
1f596e0abf Update module github.com/mudler/yip to v1.16.3 (#130)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-14 14:25:03 +00:00
renovate[bot]
53b26c2635 Update module github.com/kairos-io/kairos-sdk to v0.9.4 (#129)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-14 14:21:05 +00:00
renovate[bot]
2683ad797b Update google/osv-scanner-action action to v2.1.0 (#131)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-14 07:03:46 +00:00
renovate[bot]
74e82836a5 Update module github.com/jaypipes/ghw to v0.17.0 (#127)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-04 11:29:24 +00:00
renovate[bot]
24d88295d8 Update module github.com/go-logr/logr to v1.4.3 (#128)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-04 10:55:22 +00:00
renovate[bot]
17efbabdfc Update module github.com/mudler/yip to v1.16.2 (#126)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-04 06:49:57 +00:00
renovate[bot]
05157abbd4 Update module github.com/kairos-io/kairos-sdk to v0.9.3 (#125)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-14 00:01:20 +00:00
renovate[bot]
f1360e172b Update dependabot/fetch-metadata action to v2.4.0 (#124)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-10 02:03:40 +00:00
renovate[bot]
ac41a4fdcb Update module github.com/kairos-io/kairos-sdk to v0.9.2 (#123)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-08 23:43:38 +00:00
renovate[bot]
17cc494985 Update module github.com/kairos-io/kairos-sdk to v0.9.1 (#122)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-07 00:09:15 +00:00
Itxaka
ddd65746f0 Drop kcrypt, use sdk (#120) 2025-05-06 09:18:50 +00:00
renovate[bot]
5787d7fa47 Update module github.com/mudler/yip to v1.16.0 (#115)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-05 08:53:59 +00:00
renovate[bot]
2ee88ce704 Update module github.com/kairos-io/kcrypt to v0.15.0 (#112)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-05 08:52:46 +00:00
renovate[bot]
7d2e6cbed7 Update module github.com/kairos-io/kairos-sdk to v0.9.0 (#118)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-05 08:27:07 +00:00
renovate[bot]
fd47042069 Update google/osv-scanner-action action to v2.0.2 (#121)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-05 08:03:06 +00:00
renovate[bot]
c77d4d94f2 Update module github.com/jaypipes/ghw to v0.16.0 (#111)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-05 09:39:16 +02:00
renovate[bot]
d4cbf44973 Update module github.com/onsi/gomega to v1.37.0 (#114)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-05 09:39:01 +02:00
renovate[bot]
99f69e38e5 Update module github.com/onsi/ginkgo/v2 to v2.23.4 (#113)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-23 21:54:34 +02:00
renovate[bot]
e032586eb4 Update google/osv-scanner-action action to v2 (#116)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-23 20:09:49 +02:00
Dimitris Karakasilis
2aba011ada Fix vet error
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2025-04-22 12:21:48 +03:00
Itxaka
c1a92786b2 Update unit-tests.yml with earthly 2025-04-22 10:54:44 +02:00
Itxaka
a8e35a94f5 Update e2e-tests.yml with earthly 2025-04-22 10:53:50 +02:00
Itxaka
5089f4cc71 Update Earthfile with new go version 2025-04-22 10:42:58 +02:00
Itxaka
a925d877bc Fix earthly in lint 2025-04-22 10:41:38 +02:00
Itxaka
a21fb32bc0 install earthyl manually 2025-04-22 10:37:44 +02:00
Dimitris Karakasilis
f8ef34077d Bump golang
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2025-04-22 11:17:36 +03:00
Itxaka
4c2891e33b Use tag instead of version for archive release
Signed-off-by: Itxaka <itxaka@kairos.io>
2025-04-11 18:33:33 +02:00
Itxaka
3bf6a1e612 terst (#119) 2025-04-11 18:16:43 +02:00
renovate[bot]
3e519be076 Update module github.com/onsi/ginkgo/v2 to v2.23.0 (#110)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-06 03:57:44 +00:00
renovate[bot]
f8045707ff Update module github.com/jaypipes/ghw to v0.14.0 (#108)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-05 07:24:12 +00:00
renovate[bot]
8194344115 Update dependency go to v1.24.1 (#109)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-05 03:34:07 +00:00
renovate[bot]
c92402b6c9 Update module github.com/mudler/yip to v1.15.0 (#107)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-19 03:35:55 +00:00
renovate[bot]
8f9d463bc0 Update module github.com/hashicorp/mdns to v1.0.6 (#103)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-13 07:37:36 +00:00
renovate[bot]
33ba761d42 Update dependabot/fetch-metadata action to v2.3.0 (#104)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-13 07:13:39 +00:00
renovate[bot]
65108068e8 Update module github.com/kairos-io/kairos-sdk to v0.7.3 (#105)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-13 06:46:40 +00:00
renovate[bot]
8314c64169 Update golang Docker tag to v1.24 (#106)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-13 06:21:41 +00:00
renovate[bot]
52dfdf3420 Update module github.com/mudler/yip to v1.14.1 (#102)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-21 14:55:02 +00:00
Dimitris Karakasilis
09a6ec31ec go mod tidy
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2025-01-21 15:53:34 +02:00
renovate[bot]
a33d7872c5 Update module github.com/mudler/yip to v1.13.1 (#100)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-17 00:41:51 +00:00
renovate[bot]
2f0d6d778a Update module github.com/kairos-io/kairos-sdk to v0.7.2 (#101)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-14 23:55:55 +00:00
renovate[bot]
2d15026331 Update module github.com/onsi/ginkgo/v2 to v2.22.2 (#98)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-30 22:38:27 +00:00
renovate[bot]
0fa24f7679 Update google/osv-scanner-action action to v1.9.2 (#97)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-20 02:24:02 +00:00
renovate[bot]
865c2fc795 Update module github.com/kairos-io/kcrypt to v0.13.0 (#96)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-19 00:20:41 +00:00
renovate[bot]
42fca7593a Update module github.com/mudler/yip to v1.13.0 (#92)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-18 16:47:01 +02:00
renovate[bot]
4e87807d1f Update module github.com/kairos-io/kairos-sdk to v0.6.1 (#88)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-18 14:42:15 +00:00
Dimitris Karakasilis
e984eed1c1 Bump golang.org/x/crypto to v0.31.0 (#95)
To get this security fix:

https://go.googlesource.com/crypto/+/refs/tags/v0.31.0

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2024-12-18 16:12:46 +02:00
renovate[bot]
4e33127982 Update module github.com/onsi/gomega to v1.36.1 (#89)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-18 14:12:28 +00:00
renovate[bot]
6a180b7cde Update codecov/codecov-action action to v5 (#94)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-18 15:43:06 +02:00
renovate[bot]
6e2211e4d6 Update module github.com/onsi/ginkgo/v2 to v2.22.0 (#93)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-18 15:42:52 +02:00
renovate[bot]
97dcf030cb Update module github.com/jaypipes/ghw to v0.13.0 (#90)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-18 15:42:39 +02:00
renovate[bot]
93596bd189 Update github.com/mudler/go-processmanager digest to 8b802d3 (#87)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-18 15:42:26 +02:00
renovate[bot]
012329e54b Update google/osv-scanner-action action to v1.9.1 2024-12-18 15:42:13 +02:00
Dimitris Karakasilis
57e911e62a Don't run jobs on arm workers
because we get this error:

  stderr: qemu-system-x86_64: invalid accelerator kvm

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2024-11-11 09:51:26 +02:00
Dimitris Karakasilis
401e3f9735 More go bumps
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2024-11-08 17:13:00 +02:00
Dimitris Karakasilis
91edb4eb57 Bump go verion in Earthly target too
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2024-11-08 17:04:57 +02:00
Dimitris Karakasilis
9bdc42fbba Bump go in go.mod and run go mod tidy
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2024-11-08 17:01:27 +02:00
renovate[bot]
d6b79752a3 Update module github.com/onsi/ginkgo/v2 to v2.20.2 (#82)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-28 16:42:16 +00:00
renovate[bot]
63795470b1 Update google/osv-scanner-action action to v1.8.4 2024-08-22 16:46:07 +00:00
Itxaka
09e155828c Bump deps for CVE-2024-41110 (#84) 2024-08-01 12:10:10 +02:00
renovate[bot]
f3ade81dd3 Update module github.com/mudler/yip to v1.9.3 (#73)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-15 13:57:48 +00:00
renovate[bot]
07ce451b60 Update earthly/earthly Docker tag to v0.8.15 2024-07-12 21:38:57 +00:00
Itxaka
978d0aa3be Run secscans in proper events (#77) 2024-07-12 09:34:23 +02:00
renovate[bot]
615d2013b7 Update module github.com/kairos-io/kcrypt to v0.12.0 (#72)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-12 06:59:26 +00:00
renovate[bot]
6b8245dc61 Update module github.com/onsi/ginkgo/v2 to v2.19.0 (#74)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-11 18:06:04 +00:00
renovate[bot]
df29a61b8b Update module github.com/kairos-io/kairos-sdk to v0.3.1 (#68)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-11 17:26:08 +00:00
renovate[bot]
23e4a1dd55 Update module github.com/onsi/gomega to v1.33.1 (#75)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-11 18:37:39 +02:00
Itxaka
42709484ac Pin to specific go version so it can bump it
Otherwise renovate wont bump it

Signed-off-by: Itxaka <itxaka@kairos.io>
2024-07-11 18:36:58 +02:00
renovate[bot]
97f92cc809 Update dependabot/fetch-metadata action to v2 (#57)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-11 18:06:29 +02:00
renovate[bot]
09a93ff001 Update actions/setup-go action to v5 (#56)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-11 18:05:11 +02:00
renovate[bot]
02b5389fc6 Update actions/checkout action to v4 (#55)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-11 18:04:15 +02:00
renovate[bot]
f970ef1899 Update GitHub Artifact Actions to v4 (#54)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-11 18:04:03 +02:00
renovate[bot]
429b86ea09 Update docker/build-push-action action to v6 (#76)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-11 18:03:47 +02:00
renovate[bot]
5bfbac6892 Update docker/login-action action to v3 (#59)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-11 18:03:34 +02:00
renovate[bot]
d9e658b202 Update dependabot/fetch-metadata action to v1.7.0 (#53)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-11 18:02:53 +02:00
renovate[bot]
204ce64465 Update google/osv-scanner-action action to v1.8.2 (#71)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-11 18:02:32 +02:00
Itxaka
17d1414b14 Update renovate.json 2024-07-11 18:01:41 +02:00
dependabot[bot]
b6c5d331fb Bump golang.org/x/net in the go_modules group across 1 directory (#63)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Itxaka <itxaka.garcia@spectrocloud.com>
2024-07-11 17:58:30 +02:00
Itxaka
a2b28af7b2 Bump to go1.22 (#70) 2024-07-11 17:51:49 +02:00
Mauro Morales
dd187adf3a Merge pull request #69 from kairos-io/add-osv
Add osv scanner on PRs
2024-07-03 12:35:27 +02:00
Mauro Morales
196bcf8500 Add osv scanner on PRs
Signed-off-by: Mauro Morales <contact@mauromorales.com>
2024-07-02 16:51:02 +02:00
renovate[bot]
50441f8e4c Update module github.com/google/uuid to v1.6.0 (#67)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-18 23:43:14 +00:00
renovate[bot]
a5e73df6e6 Update module github.com/gorilla/websocket to v1.5.3 2024-06-18 05:14:11 +00:00
renovate[bot]
904ce9a1b8 Update module github.com/go-logr/logr to v1.4.2 2024-06-18 02:11:46 +00:00
renovate[bot]
2039b57421 Update earthly/earthly Docker tag to v0.8.14 2024-06-17 23:02:49 +00:00
renovate[bot]
c4dcabcabb Update earthly/earthly Docker tag to v0.8.11 (#48)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-17 01:07:28 +00:00
renovate[bot]
f757f852dd Update github.com/spectrocloud/peg digest to c5da712 (#22)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-21 07:35:47 +00:00
24 changed files with 725 additions and 363 deletions

1
.earthlyignore Normal file
View File

@@ -0,0 +1 @@
bin/

View File

@@ -14,13 +14,13 @@ jobs:
steps: steps:
- name: Dependabot metadata - name: Dependabot metadata
id: metadata id: metadata
uses: dependabot/fetch-metadata@v1.3.4 uses: dependabot/fetch-metadata@v2.4.0
with: with:
github-token: "${{ secrets.GITHUB_TOKEN }}" github-token: "${{ secrets.GITHUB_TOKEN }}"
skip-commit-verification: true skip-commit-verification: true
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v5
- name: Approve a PR if not already approved - name: Approve a PR if not already approved
run: | run: |

View File

@@ -18,23 +18,15 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v5
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Install Go - name: Install Go
uses: actions/setup-go@v4 uses: actions/setup-go@v5
with:
go-version: ^1.20
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_LOGIN }}
password: ${{ secrets.DOCKER_PASS }}
- name: Install earthly - name: Install earthly
uses: Luet-lab/luet-install-action@v1 uses: earthly/actions-setup@v1
with: with:
repository: quay.io/kairos/packages github-token: ${{ secrets.GITHUB_TOKEN }}
packages: utils/earthly
- name: build iso - name: build iso
run: | run: |
# Configure earthly to use the docker mirror in CI # Configure earthly to use the docker mirror in CI
@@ -50,7 +42,7 @@ jobs:
EOF EOF
earthly -P +iso earthly -P +iso
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v4
with: with:
name: challenger.iso.zip name: challenger.iso.zip
path: | path: |
@@ -58,7 +50,7 @@ jobs:
e2e-tests: e2e-tests:
needs: needs:
- build-iso - build-iso
runs-on: self-hosted runs-on: kvm
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@@ -71,18 +63,17 @@ jobs:
- label: "discoverable-kms" - label: "discoverable-kms"
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v5
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Install Go - name: Install Go
uses: actions/setup-go@v4 uses: actions/setup-go@v5
with: with:
go-version: ^1.20 go-version-file: go.mod
- name: Login to DockerHub - name: Install earthly
uses: docker/login-action@v1 uses: earthly/actions-setup@v1
with: with:
username: ${{ secrets.DOCKER_LOGIN }} github-token: ${{ secrets.GITHUB_TOKEN }}
password: ${{ secrets.DOCKER_PASS }}
- name: Install deps - name: Install deps
run: | run: |
curl -L https://github.com/mudler/luet/releases/download/0.33.0/luet-0.33.0-linux-amd64 -o luet curl -L https://github.com/mudler/luet/releases/download/0.33.0/luet-0.33.0-linux-amd64 -o luet
@@ -90,9 +81,9 @@ jobs:
sudo mv luet /usr/bin/luet sudo mv luet /usr/bin/luet
sudo mkdir -p /etc/luet/repos.conf.d/ sudo mkdir -p /etc/luet/repos.conf.d/
sudo luet repo add -y kairos --url quay.io/kairos/packages --type docker sudo luet repo add -y kairos --url quay.io/kairos/packages --type docker
LUET_NOLOCK=true sudo -E luet install -y container/kubectl utils/k3d utils/earthly LUET_NOLOCK=true sudo -E luet install -y container/kubectl utils/k3d
- name: Download artifacts - name: Download artifacts
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: challenger.iso.zip name: challenger.iso.zip
- name: Run tests - name: Run tests
@@ -105,10 +96,13 @@ jobs:
openssl curl gettext ca-certificates curl gnupg lsb-release openssl curl gettext ca-certificates curl gnupg lsb-release
export ISO=$PWD/$(ls *.iso) export ISO=$PWD/$(ls *.iso)
# update controllers
make test
# Generate controller image
make docker-build
# We run with sudo to be able to access /dev/kvm # We run with sudo to be able to access /dev/kvm
./scripts/e2e-tests.sh sudo -E ./scripts/e2e-tests.sh
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v4
if: failure() if: failure()
with: with:
name: ${{ matrix.label }}-test.logs.zip name: ${{ matrix.label }}-test.logs.zip

View File

@@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v5
- name: Prepare - name: Prepare
id: prep id: prep
@@ -50,14 +50,14 @@ jobs:
- name: Login to DockerHub - name: Login to DockerHub
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
uses: docker/login-action@v1 uses: docker/login-action@v3
with: with:
registry: quay.io registry: quay.io
username: ${{ secrets.QUAY_USERNAME }} username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }} password: ${{ secrets.QUAY_PASSWORD }}
- name: Build - name: Build
uses: docker/build-push-action@v4 uses: docker/build-push-action@v6
with: with:
builder: ${{ steps.buildx.outputs.name }} builder: ${{ steps.buildx.outputs.name }}
context: . context: .

View File

@@ -19,18 +19,15 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v5
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Install Go - name: Install Go
uses: actions/setup-go@v4 uses: actions/setup-go@v5
with:
go-version: ^1.20
- name: Install earthly - name: Install earthly
uses: Luet-lab/luet-install-action@v1 uses: earthly/actions-setup@v1
with: with:
repository: quay.io/kairos/packages github-token: ${{ secrets.GITHUB_TOKEN }}
packages: utils/earthly
- name: Run Lint checks - name: Run Lint checks
run: | run: |
earthly +lint earthly +lint

21
.github/workflows/osv-scanner-pr.yaml vendored Normal file
View File

@@ -0,0 +1,21 @@
name: OSV-Scanner PR Scan
# Change "main" to your default branch if you use a different name, i.e. "master"
on:
pull_request:
push:
branches:
- main
merge_group:
branches: [main]
permissions:
# Require writing security events to upload SARIF file to security tab
security-events: write
# Only need to read contents adn actions
contents: read
actions: read
jobs:
scan-pr:
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@v2.2.1"

27
.github/workflows/release.yaml vendored Normal file
View File

@@ -0,0 +1,27 @@
name: goreleaser
on:
push:
tags:
- 'v*'
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- run: |
git fetch --prune --unshallow
- name: Install gcc for arm64
run: sudo apt-get update && sudo apt-get install -y build-essential crossbuild-essential-arm64
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -13,7 +13,7 @@ jobs:
if: ${{ github.actor == 'renovate[bot]' }} if: ${{ github.actor == 'renovate[bot]' }}
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v5
- name: Approve a PR if not already approved - name: Approve a PR if not already approved
run: | run: |

32
.github/workflows/secscan.yaml vendored Normal file
View File

@@ -0,0 +1,32 @@
name: "Security Scan"
# Run workflow each time code is pushed to your repository and on a schedule.
# The scheduled workflow runs every at 00:00 on Sunday UTC time.
on:
push:
branches:
- main
pull_request:
paths:
- '**'
schedule:
- cron: '0 0 * * 0'
jobs:
tests:
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- name: Checkout Source
uses: actions/checkout@v5
- name: Run Gosec Security Scanner
uses: securego/gosec@master
with:
# we let the report trigger content trigger a failure using the GitHub Security features.
args: '-no-fail -fmt sarif -out results.sarif ./...'
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
with:
# Path to SARIF file relative to the root of the repository
sarif_file: results.sarif

View File

@@ -13,24 +13,22 @@ jobs:
unit-tests: unit-tests:
strategy: strategy:
matrix: matrix:
# Match this version to the maintained FIPS version in packages at https://github.com/kairos-io/packages/blob/main/packages/toolchain-go/collection.yaml#L63 go-version: ["1.24-bookworm"]
go-version: ["1.19.10-bookworm", "1.20-bookworm", "1.21-bookworm"]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v5
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Install earthly - name: Install earthly
uses: Luet-lab/luet-install-action@v1 uses: earthly/actions-setup@v1
with: with:
repository: quay.io/kairos/packages github-token: ${{ secrets.GITHUB_TOKEN }}
packages: utils/earthly
- name: Run tests - name: Run tests
run: | run: |
earthly +test --GO_VERSION=${{ matrix.go-version }} earthly +test --GO_VERSION=${{ matrix.go-version }}
- name: Codecov - name: Codecov
uses: codecov/codecov-action@v4 uses: codecov/codecov-action@v5
env: env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with: with:

2
.gitignore vendored
View File

@@ -24,3 +24,5 @@ testbin/*
*~ *~
/helm-chart /helm-chart
build/
dist/

73
.goreleaser.yaml Normal file
View File

@@ -0,0 +1,73 @@
# Make sure to check the documentation at http://goreleaser.com
version: 2
project_name: kcrypt-discovery-challenger
builds:
- env:
- CGO_ENABLED=0
- CGO_LDFLAGS="-ldl"
goos:
- linux
goarch:
- amd64
- arm64
binary: '{{ .ProjectName }}'
id: default
main: ./cmd/discovery/main.go
- env:
- CGO_ENABLED=0
- GOEXPERIMENT=boringcrypto
- CGO_LDFLAGS="-ldl"
goos:
- linux
goarch:
- amd64
binary: '{{ .ProjectName }}'
id: fips-amd64
main: ./cmd/discovery/main.go
hooks:
post:
- bash -c 'set -e; go version {{.Path}} | grep boringcrypto || (echo "boringcrypto not found" && exit 1)'
- env:
- CGO_ENABLED=0
- GOEXPERIMENT=boringcrypto
- CC=aarch64-linux-gnu-gcc
- CGO_LDFLAGS="-ldl"
goos:
- linux
goarch:
- arm64
binary: '{{ .ProjectName }}'
id: fips-arm64
main: ./cmd/discovery/main.go
hooks:
post:
- bash -c 'set -e; go version {{.Path}} | grep boringcrypto || (echo "boringcrypto not found" && exit 1)'
source:
enabled: true
name_template: '{{ .ProjectName }}-{{ .Tag }}-source'
archives:
- id: default-archive
ids:
- default
name_template: '{{ .ProjectName }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}-{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
- id: fips-archive
ids:
- fips-arm64
- fips-amd64
name_template: '{{ .ProjectName }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}-{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}-fips'
checksum:
name_template: '{{ .ProjectName }}-{{ .Tag }}-checksums.txt'
snapshot:
version_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^Merge pull request'
env:
- GOSUMDB=sum.golang.org
before:
hooks:
- go mod tidy

View File

@@ -1,5 +1,5 @@
# Build the manager binary # Build the manager binary
FROM golang:1.20 as builder FROM golang:1.24 as builder
WORKDIR /workspace WORKDIR /workspace
# Copy the Go Modules manifests # Copy the Go Modules manifests

View File

@@ -6,11 +6,11 @@ ARG BASE_IMAGE=quay.io/kairos/ubuntu:23.10-core-amd64-generic-$KAIROS_VERSION
ARG OSBUILDER_IMAGE=quay.io/kairos/osbuilder-tools ARG OSBUILDER_IMAGE=quay.io/kairos/osbuilder-tools
# renovate: datasource=docker depName=golang # renovate: datasource=docker depName=golang
ARG GO_VERSION=1.20-bookworm ARG GO_VERSION=1.24-bookworm
ARG LUET_VERSION=0.33.0 ARG LUET_VERSION=0.33.0
build-challenger: build-challenger:
FROM golang:alpine FROM +go-deps
COPY . /work COPY . /work
WORKDIR /work WORKDIR /work
RUN CGO_ENABLED=0 go build -o kcrypt-discovery-challenger ./cmd/discovery RUN CGO_ENABLED=0 go build -o kcrypt-discovery-challenger ./cmd/discovery
@@ -23,8 +23,8 @@ image:
SAVE IMAGE $IMAGE SAVE IMAGE $IMAGE
image-rootfs: image-rootfs:
FROM +image FROM +image
SAVE ARTIFACT --keep-own /. rootfs SAVE ARTIFACT --keep-own /. rootfs
iso: iso:
ARG OSBUILDER_IMAGE ARG OSBUILDER_IMAGE
@@ -58,17 +58,17 @@ test:
# Generic targets # Generic targets
# usage e.g. ./earthly.sh +datasource-iso --CLOUD_CONFIG=tests/assets/qrcode.yaml # usage e.g. ./earthly.sh +datasource-iso --CLOUD_CONFIG=tests/assets/qrcode.yaml
datasource-iso: datasource-iso:
ARG OSBUILDER_IMAGE ARG OSBUILDER_IMAGE
ARG CLOUD_CONFIG ARG CLOUD_CONFIG
FROM $OSBUILDER_IMAGE FROM $OSBUILDER_IMAGE
RUN zypper in -y mkisofs RUN zypper in -y mkisofs
WORKDIR /build WORKDIR /build
RUN touch meta-data RUN touch meta-data
COPY ${CLOUD_CONFIG} user-data COPY ${CLOUD_CONFIG} user-data
RUN cat user-data RUN cat user-data
RUN mkisofs -output ci.iso -volid cidata -joliet -rock user-data meta-data RUN mkisofs -output ci.iso -volid cidata -joliet -rock user-data meta-data
SAVE ARTIFACT /build/ci.iso iso.iso AS LOCAL build/datasource.iso SAVE ARTIFACT /build/ci.iso iso.iso AS LOCAL build/datasource.iso
luet: luet:
FROM quay.io/luet/base:$LUET_VERSION FROM quay.io/luet/base:$LUET_VERSION
@@ -76,7 +76,7 @@ luet:
e2e-tests-image: e2e-tests-image:
FROM opensuse/tumbleweed FROM opensuse/tumbleweed
RUN zypper in -y go git qemu-x86 qemu-arm qemu-tools swtpm docker jq docker-compose make glibc libopenssl-devel curl gettext-runtime RUN zypper in -y go1.23 git qemu-x86 qemu-arm qemu-tools swtpm docker jq docker-compose make glibc libopenssl-devel curl gettext-runtime awk envsubst
ENV GOPATH="/go" ENV GOPATH="/go"
COPY . /test COPY . /test
@@ -94,11 +94,15 @@ e2e-tests-image:
RUN luet repo add -y kairos --url quay.io/kairos/packages --type docker RUN luet repo add -y kairos --url quay.io/kairos/packages --type docker
RUN LUET_NOLOCK=true luet install -y container/kubectl utils/k3d RUN LUET_NOLOCK=true luet install -y container/kubectl utils/k3d
controller-latest:
FROM DOCKERFILE .
SAVE IMAGE controller:latest
e2e-tests: e2e-tests:
FROM +e2e-tests-image FROM +e2e-tests-image
ARG LABEL ARG LABEL
RUN make test # This also generates the latest controllers automatically, we do that before building the docker image with them
WITH DOCKER --allow-privileged WITH DOCKER --allow-privileged --load controller:latest=+controller-latest
RUN ./scripts/e2e-tests.sh RUN ./scripts/e2e-tests.sh
END END

View File

@@ -160,7 +160,7 @@ ENVTEST ?= $(LOCALBIN)/setup-envtest
## Tool Versions ## Tool Versions
KUSTOMIZE_VERSION ?= v3.8.7 KUSTOMIZE_VERSION ?= v3.8.7
CONTROLLER_TOOLS_VERSION ?= v0.9.2 CONTROLLER_TOOLS_VERSION ?= v0.14.0
KUSTOMIZE_INSTALL_SCRIPT ?= "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" KUSTOMIZE_INSTALL_SCRIPT ?= "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh"
.PHONY: kustomize .PHONY: kustomize

View File

@@ -10,7 +10,7 @@ import (
"github.com/jaypipes/ghw/pkg/block" "github.com/jaypipes/ghw/pkg/block"
"github.com/kairos-io/kairos-challenger/pkg/constants" "github.com/kairos-io/kairos-challenger/pkg/constants"
"github.com/kairos-io/kairos-challenger/pkg/payload" "github.com/kairos-io/kairos-challenger/pkg/payload"
"github.com/kairos-io/kcrypt/pkg/bus" "github.com/kairos-io/kairos-sdk/kcrypt/bus"
"github.com/kairos-io/tpm-helpers" "github.com/kairos-io/tpm-helpers"
"github.com/mudler/go-pluggable" "github.com/mudler/go-pluggable"
"github.com/mudler/yip/pkg/utils" "github.com/mudler/yip/pkg/utils"

View File

@@ -2,10 +2,16 @@ package client
import ( import (
"github.com/kairos-io/kairos-sdk/collector" "github.com/kairos-io/kairos-sdk/collector"
kconfig "github.com/kairos-io/kcrypt/pkg/config"
"gopkg.in/yaml.v3" "gopkg.in/yaml.v3"
) )
// There are the directories under which we expect to find kairos configuration.
// When we are booted from an iso (during installation), configuration is expected
// under `/oem`. When we are booting an installed system (in initramfs phase),
// the path is `/sysroot/oem`.
// When we run the challenger in hooks, we may have the config under /tmp/oem
var confScanDirs = []string{"/oem", "/sysroot/oem", "/tmp/oem"}
type Client struct { type Client struct {
Config Config Config Config
} }
@@ -27,7 +33,7 @@ func unmarshalConfig() (Config, error) {
var result Config var result Config
o := &collector.Options{NoLogs: true, MergeBootCMDLine: false} o := &collector.Options{NoLogs: true, MergeBootCMDLine: false}
if err := o.Apply(collector.Directories(append(kconfig.ConfigScanDirs, "/tmp/oem")...)); err != nil { if err := o.Apply(collector.Directories(confScanDirs...)); err != nil {
return result, err return result, err
} }

View File

@@ -47,7 +47,7 @@ func getPass(server string, headers map[string]string, certificate string, parti
if strings.Contains(result.Error, "x509: certificate signed by unknown authority") { if strings.Contains(result.Error, "x509: certificate signed by unknown authority") {
return "", false, errBadCertificate return "", false, errBadCertificate
} }
return "", false, fmt.Errorf(result.Error) return "", false, errors.New(result.Error)
} }
return "", false, errPartNotFound return "", false, errPartNotFound

View File

@@ -5,12 +5,13 @@ import (
"os" "os"
"github.com/kairos-io/kairos-challenger/cmd/discovery/client" "github.com/kairos-io/kairos-challenger/cmd/discovery/client"
"github.com/kairos-io/kcrypt/pkg/bus" "github.com/kairos-io/kairos-sdk/kcrypt/bus"
"github.com/kairos-io/tpm-helpers" "github.com/kairos-io/tpm-helpers"
"github.com/mudler/go-pluggable"
) )
func main() { func main() {
if len(os.Args) >= 2 && bus.IsEventDefined(os.Args[1]) { if len(os.Args) >= 2 && isEventDefined(os.Args[1]) {
c, err := client.NewClient() c, err := client.NewClient()
checkErr(err) checkErr(err)
checkErr(c.Start()) checkErr(c.Start())
@@ -28,3 +29,25 @@ func checkErr(err error) {
os.Exit(1) os.Exit(1)
} }
} }
// isEventDefined checks whether an event is defined in the bus.
// It accepts strings or EventType, returns a boolean indicating that
// the event was defined among the events emitted by the bus.
func isEventDefined(i interface{}) bool {
checkEvent := func(e pluggable.EventType) bool {
if e == bus.EventDiscoveryPassword {
return true
}
return false
}
switch f := i.(type) {
case string:
return checkEvent(pluggable.EventType(f))
case pluggable.EventType:
return checkEvent(f)
default:
return false
}
}

View File

@@ -1,3 +1,3 @@
#!/bin/bash #!/bin/bash
docker run --privileged -v /var/run/docker.sock:/var/run/docker.sock --rm -t -v $(pwd):/workspace -v earthly-tmp:/tmp/earthly:rw earthly/earthly:v0.7.8 --allow-privileged $@ docker run --privileged -v /var/run/docker.sock:/var/run/docker.sock --rm -t -v $(pwd):/workspace -v earthly-tmp:/tmp/earthly:rw earthly/earthly:v0.8.15 --allow-privileged $@

210
go.mod
View File

@@ -1,175 +1,191 @@
module github.com/kairos-io/kairos-challenger module github.com/kairos-io/kairos-challenger
go 1.19 go 1.24.2
// This versions require go1.20 and we need to support 1.19 for fips
replace (
github.com/onsi/ginkgo/v2 v2.17.1 => github.com/onsi/ginkgo/v2 v2.12.1
github.com/onsi/gomega v1.32.0 => github.com/onsi/gomega v1.28.0
)
require ( require (
github.com/go-logr/logr v1.4.1 github.com/go-logr/logr v1.4.3
github.com/google/uuid v1.3.0 github.com/google/uuid v1.6.0
github.com/gorilla/websocket v1.5.1 github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674
github.com/hashicorp/mdns v1.0.5 github.com/hashicorp/mdns v1.0.6
github.com/jaypipes/ghw v0.12.0 github.com/jaypipes/ghw v0.17.0
github.com/kairos-io/kairos-sdk v0.1.0 github.com/kairos-io/kairos-sdk v0.9.4
github.com/kairos-io/kcrypt v0.7.0
github.com/kairos-io/tpm-helpers v0.0.0-20240123063624-f7a3fcc66199 github.com/kairos-io/tpm-helpers v0.0.0-20240123063624-f7a3fcc66199
github.com/mudler/go-pluggable v0.0.0-20230126220627-7710299a0ae5 github.com/mudler/go-pluggable v0.0.0-20230126220627-7710299a0ae5
github.com/mudler/go-processmanager v0.0.0-20230818213616-f204007f963c github.com/mudler/go-processmanager v0.0.0-20240820160718-8b802d3ecf82
github.com/mudler/yip v1.6.0 github.com/mudler/yip v1.16.3
github.com/onsi/ginkgo/v2 v2.17.1 github.com/onsi/ginkgo/v2 v2.23.4
github.com/onsi/gomega v1.32.0 github.com/onsi/gomega v1.37.0
github.com/pkg/errors v0.9.1 github.com/pkg/errors v0.9.1
github.com/spectrocloud/peg v0.0.0-20230407121159-2e15270c4a46 github.com/spectrocloud/peg v0.0.0-20240405075800-c5da7125e30f
gopkg.in/yaml.v3 v3.0.1 gopkg.in/yaml.v3 v3.0.1
k8s.io/api v0.27.2 k8s.io/api v0.34.0
k8s.io/apimachinery v0.27.2 k8s.io/apimachinery v0.34.0
k8s.io/client-go v0.27.2 k8s.io/client-go v0.34.0
sigs.k8s.io/controller-runtime v0.15.0 sigs.k8s.io/controller-runtime v0.15.0
) )
require ( require (
atomicgo.dev/cursor v0.1.3 // indirect atomicgo.dev/cursor v0.2.0 // indirect
atomicgo.dev/keyboard v0.2.9 // indirect atomicgo.dev/keyboard v0.2.9 // indirect
atomicgo.dev/schedule v0.0.2 // indirect atomicgo.dev/schedule v0.1.0 // indirect
dario.cat/mergo v1.0.1 // indirect
github.com/Masterminds/goutils v1.1.1 // indirect github.com/Masterminds/goutils v1.1.1 // indirect
github.com/Masterminds/semver/v3 v3.2.1 // indirect github.com/Masterminds/semver/v3 v3.3.1 // indirect
github.com/Masterminds/sprig/v3 v3.2.3 // indirect github.com/Masterminds/sprig/v3 v3.3.0 // indirect
github.com/Microsoft/go-winio v0.6.1 // indirect github.com/Microsoft/go-winio v0.6.2 // indirect
github.com/Microsoft/hcsshim v0.11.4 // indirect github.com/Microsoft/hcsshim v0.12.9 // indirect
github.com/StackExchange/wmi v1.2.1 // indirect github.com/StackExchange/wmi v1.2.1 // indirect
github.com/avast/retry-go v3.0.0+incompatible // indirect github.com/avast/retry-go v3.0.0+incompatible // indirect
github.com/aybabtme/rgbterm v0.0.0-20170906152045-cc83f3b3ce59 // indirect github.com/aybabtme/rgbterm v0.0.0-20170906152045-cc83f3b3ce59 // indirect
github.com/beorn7/perks v1.0.1 // indirect github.com/beorn7/perks v1.0.1 // indirect
github.com/bramvdbogaerde/go-scp v1.2.1 // indirect github.com/bramvdbogaerde/go-scp v1.2.1 // indirect
github.com/cavaliergopher/grab/v3 v3.0.1 // indirect github.com/cavaliergopher/grab/v3 v3.0.1 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/chuckpreslar/emission v0.0.0-20170206194824-a7ddd980baf9 // indirect github.com/chuckpreslar/emission v0.0.0-20170206194824-a7ddd980baf9 // indirect
github.com/codingsince1985/checksum v1.2.6 // indirect github.com/codingsince1985/checksum v1.2.6 // indirect
github.com/containerd/cgroups v1.1.0 // indirect github.com/containerd/cgroups/v3 v3.0.5 // indirect
github.com/containerd/console v1.0.3 // indirect github.com/containerd/console v1.0.4 // indirect
github.com/containerd/containerd v1.7.11 // indirect github.com/containerd/containerd v1.7.27 // indirect
github.com/containerd/continuity v0.4.2 // indirect github.com/containerd/continuity v0.4.5 // indirect
github.com/containerd/errdefs v1.0.0 // indirect
github.com/containerd/errdefs/pkg v0.3.0 // indirect
github.com/containerd/log v0.1.0 // indirect github.com/containerd/log v0.1.0 // indirect
github.com/containerd/stargz-snapshotter/estargz v0.14.3 // indirect github.com/containerd/stargz-snapshotter/estargz v0.16.3 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect github.com/containerd/typeurl/v2 v2.2.3 // indirect
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/denisbrodbeck/machineid v1.0.1 // indirect github.com/denisbrodbeck/machineid v1.0.1 // indirect
github.com/docker/cli v24.0.0+incompatible // indirect github.com/distribution/reference v0.6.0 // indirect
github.com/docker/distribution v2.8.2+incompatible // indirect github.com/docker/cli v27.5.0+incompatible // indirect
github.com/docker/docker v24.0.9+incompatible // indirect github.com/docker/distribution v2.8.3+incompatible // indirect
github.com/docker/docker-credential-helpers v0.7.0 // indirect github.com/docker/docker v27.5.1+incompatible // indirect
github.com/docker/go-connections v0.4.0 // indirect github.com/docker/docker-credential-helpers v0.8.2 // indirect
github.com/docker/go-connections v0.5.0 // indirect
github.com/docker/go-units v0.5.0 // indirect github.com/docker/go-units v0.5.0 // indirect
github.com/emicklei/go-restful/v3 v3.10.1 // indirect github.com/emicklei/go-restful/v3 v3.12.2 // indirect
github.com/evanphx/json-patch/v5 v5.6.0 // indirect github.com/evanphx/json-patch/v5 v5.6.0 // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/folbricht/tpmk v0.1.2-0.20230104073416-f20b20c289d7 // indirect github.com/folbricht/tpmk v0.1.2-0.20230104073416-f20b20c289d7 // indirect
github.com/fsnotify/fsnotify v1.6.0 // indirect github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/ghodss/yaml v1.0.0 // indirect github.com/fxamacker/cbor/v2 v2.9.0 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-logr/zapr v1.2.4 // indirect github.com/go-logr/zapr v1.2.4 // indirect
github.com/go-ole/go-ole v1.2.6 // indirect github.com/go-ole/go-ole v1.2.6 // indirect
github.com/go-openapi/jsonpointer v0.19.6 // indirect github.com/go-openapi/jsonpointer v0.21.0 // indirect
github.com/go-openapi/jsonreference v0.20.1 // indirect github.com/go-openapi/jsonreference v0.20.2 // indirect
github.com/go-openapi/swag v0.22.3 // indirect github.com/go-openapi/swag v0.23.0 // indirect
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
github.com/gofrs/uuid v4.4.0+incompatible // indirect
github.com/gogo/protobuf v1.3.2 // indirect github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect
github.com/golang/protobuf v1.5.3 // indirect github.com/golang/protobuf v1.5.4 // indirect
github.com/google/certificate-transparency-go v1.1.4 // indirect github.com/google/certificate-transparency-go v1.1.4 // indirect
github.com/google/gnostic v0.5.7-v3refs // indirect github.com/google/gnostic v0.5.7-v3refs // indirect
github.com/google/gnostic-models v0.7.0 // indirect
github.com/google/go-attestation v0.4.4-0.20220404204839-8820d49b18d9 // indirect github.com/google/go-attestation v0.4.4-0.20220404204839-8820d49b18d9 // indirect
github.com/google/go-cmp v0.6.0 // indirect github.com/google/go-cmp v0.7.0 // indirect
github.com/google/go-containerregistry v0.19.1 // indirect github.com/google/go-containerregistry v0.20.3 // indirect
github.com/google/go-tpm v0.3.3 // indirect github.com/google/go-tpm v0.3.3 // indirect
github.com/google/go-tpm-tools v0.3.10 // indirect github.com/google/go-tpm-tools v0.3.10 // indirect
github.com/google/go-tspi v0.3.0 // indirect github.com/google/go-tspi v0.3.0 // indirect
github.com/google/gofuzz v1.2.0 // indirect github.com/google/gofuzz v1.2.0 // indirect
github.com/google/pprof v0.0.0-20230228050547-1710fef4ab10 // indirect github.com/google/pprof v0.0.0-20250403155104-27863c87afa6 // indirect
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
github.com/gookit/color v1.5.3 // indirect github.com/gookit/color v1.5.4 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/huandu/xstrings v1.3.3 // indirect github.com/huandu/xstrings v1.5.0 // indirect
github.com/imdario/mergo v0.3.15 // indirect github.com/imdario/mergo v0.3.15 // indirect
github.com/ipfs/go-log v1.0.5 // indirect github.com/ipfs/go-log v1.0.5 // indirect
github.com/ipfs/go-log/v2 v2.5.1 // indirect github.com/ipfs/go-log/v2 v2.5.1 // indirect
github.com/itchyny/gojq v0.12.15 // indirect github.com/itchyny/gojq v0.12.17 // indirect
github.com/itchyny/timefmt-go v0.1.5 // indirect github.com/itchyny/timefmt-go v0.1.6 // indirect
github.com/joho/godotenv v1.5.1 // indirect github.com/joho/godotenv v1.5.1 // indirect
github.com/josharian/intern v1.0.0 // indirect github.com/josharian/intern v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/compress v1.16.5 // indirect github.com/klauspost/compress v1.17.11 // indirect
github.com/lithammer/fuzzysearch v1.1.8 // indirect github.com/lithammer/fuzzysearch v1.1.8 // indirect
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
github.com/mailru/easyjson v0.7.7 // indirect github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-runewidth v0.0.15 // indirect github.com/mattn/go-runewidth v0.0.16 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect github.com/miekg/dns v1.1.55 // indirect
github.com/miekg/dns v1.1.41 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/mitchellh/reflectwalk v1.0.2 // indirect github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/moby/sys/sequential v0.5.0 // indirect github.com/moby/docker-image-spec v1.3.1 // indirect
github.com/moby/sys/sequential v0.6.0 // indirect
github.com/moby/sys/userns v0.1.0 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646 // indirect github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/opencontainers/image-spec v1.1.0-rc3 // indirect github.com/opencontainers/image-spec v1.1.0 // indirect
github.com/opentracing/opentracing-go v1.2.0 // indirect github.com/opentracing/opentracing-go v1.2.0 // indirect
github.com/phayes/freeport v0.0.0-20220201140144-74d24b5ae9f5 // indirect github.com/phayes/freeport v0.0.0-20220201140144-74d24b5ae9f5 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
github.com/prometheus/client_golang v1.15.1 // indirect github.com/prometheus/client_golang v1.20.2 // indirect
github.com/prometheus/client_model v0.4.0 // indirect github.com/prometheus/client_model v0.6.1 // indirect
github.com/prometheus/common v0.42.0 // indirect github.com/prometheus/common v0.55.0 // indirect
github.com/prometheus/procfs v0.9.0 // indirect github.com/prometheus/procfs v0.15.1 // indirect
github.com/pterm/pterm v0.12.63 // indirect github.com/pterm/pterm v0.12.80 // indirect
github.com/qeesung/image2ascii v1.0.1 // indirect github.com/qeesung/image2ascii v1.0.1 // indirect
github.com/rivo/uniseg v0.4.7 // indirect github.com/rivo/uniseg v0.4.7 // indirect
github.com/shirou/gopsutil/v3 v3.23.7 // indirect github.com/rs/zerolog v1.33.0 // indirect
github.com/shirou/gopsutil/v4 v4.24.7 // indirect
github.com/shoenig/go-m1cpu v0.1.6 // indirect github.com/shoenig/go-m1cpu v0.1.6 // indirect
github.com/shopspring/decimal v1.3.1 // indirect github.com/shopspring/decimal v1.4.0 // indirect
github.com/sirupsen/logrus v1.9.3 // indirect github.com/sirupsen/logrus v1.9.4-0.20230606125235-dd1b4c2e81af // indirect
github.com/spf13/cast v1.5.0 // indirect github.com/spf13/cast v1.7.1 // indirect
github.com/spf13/pflag v1.0.5 // indirect github.com/spf13/pflag v1.0.6 // indirect
github.com/tklauser/go-sysconf v0.3.11 // indirect github.com/tklauser/go-sysconf v0.3.12 // indirect
github.com/tklauser/numcpus v0.6.0 // indirect github.com/tklauser/numcpus v0.6.1 // indirect
github.com/twpayne/go-vfs/v4 v4.3.0 // indirect github.com/twpayne/go-vfs/v4 v4.3.0 // indirect
github.com/vbatts/tar-split v0.11.3 // indirect github.com/vbatts/tar-split v0.11.6 // indirect
github.com/wayneashleyberry/terminal-dimensions v1.1.0 // indirect github.com/wayneashleyberry/terminal-dimensions v1.1.0 // indirect
github.com/x448/float16 v0.8.4 // indirect
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
github.com/yusufpapurcu/wmi v1.2.3 // indirect github.com/yusufpapurcu/wmi v1.2.4 // indirect
go.opencensus.io v0.24.0 // indirect go.opencensus.io v0.24.0 // indirect
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.59.0 // indirect
go.opentelemetry.io/otel v1.34.0 // indirect
go.opentelemetry.io/otel/metric v1.34.0 // indirect
go.opentelemetry.io/otel/trace v1.34.0 // indirect
go.uber.org/atomic v1.10.0 // indirect go.uber.org/atomic v1.10.0 // indirect
go.uber.org/automaxprocs v1.6.0 // indirect
go.uber.org/multierr v1.9.0 // indirect go.uber.org/multierr v1.9.0 // indirect
go.uber.org/zap v1.24.0 // indirect go.uber.org/zap v1.24.0 // indirect
golang.org/x/crypto v0.22.0 // indirect go.yaml.in/yaml/v2 v2.4.2 // indirect
golang.org/x/mod v0.14.0 // indirect go.yaml.in/yaml/v3 v3.0.4 // indirect
golang.org/x/net v0.22.0 // indirect golang.org/x/crypto v0.37.0 // indirect
golang.org/x/oauth2 v0.19.0 // indirect golang.org/x/mod v0.24.0 // indirect
golang.org/x/sync v0.6.0 // indirect golang.org/x/net v0.39.0 // indirect
golang.org/x/sys v0.19.0 // indirect golang.org/x/oauth2 v0.29.0 // indirect
golang.org/x/term v0.19.0 // indirect golang.org/x/sync v0.13.0 // indirect
golang.org/x/text v0.14.0 // indirect golang.org/x/sys v0.32.0 // indirect
golang.org/x/time v0.3.0 // indirect golang.org/x/term v0.31.0 // indirect
golang.org/x/tools v0.17.0 // indirect golang.org/x/text v0.24.0 // indirect
golang.org/x/time v0.11.0 // indirect
golang.org/x/tools v0.32.0 // indirect
gomodules.xyz/jsonpatch/v2 v2.3.0 // indirect gomodules.xyz/jsonpatch/v2 v2.3.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20250212204824-5a70512c5d8b // indirect
google.golang.org/grpc v1.58.3 // indirect google.golang.org/grpc v1.70.0 // indirect
google.golang.org/protobuf v1.33.0 // indirect google.golang.org/protobuf v1.36.5 // indirect
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/yaml.v1 v1.0.0-20140924161607-9f9df34309c0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect
howett.net/plist v1.0.0 // indirect howett.net/plist v1.0.0 // indirect
k8s.io/apiextensions-apiserver v0.27.2 // indirect k8s.io/apiextensions-apiserver v0.27.2 // indirect
k8s.io/component-base v0.27.2 // indirect k8s.io/component-base v0.27.2 // indirect
k8s.io/klog/v2 v2.90.1 // indirect k8s.io/klog/v2 v2.130.1 // indirect
k8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect k8s.io/kube-openapi v0.0.0-20250710124328-f3f2b991d03b // indirect
k8s.io/utils v0.0.0-20230220204549-a5ecb0141aa5 // indirect k8s.io/utils v0.0.0-20250604170112-4c0f3b243397 // indirect
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 // indirect
sigs.k8s.io/randfill v1.0.0 // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
sigs.k8s.io/yaml v1.3.0 // indirect sigs.k8s.io/structured-merge-diff/v6 v6.3.0 // indirect
sigs.k8s.io/yaml v1.6.0 // indirect
) )

548
go.sum

File diff suppressed because it is too large Load Diff

View File

@@ -9,6 +9,8 @@
"every weekend" "every weekend"
], ],
"timezone": "Europe/Brussels", "timezone": "Europe/Brussels",
"rebaseWhen": "behind-base-branch",
"reviewers": [ "team:maintainers" ],
"packageRules": [ "packageRules": [
{ {
"matchUpdateTypes": [ "matchUpdateTypes": [

View File

@@ -34,10 +34,8 @@ trap cleanup EXIT
k3d cluster create "$CLUSTER_NAME" --k3s-arg "--cluster-cidr=10.49.0.1/16@server:0" --k3s-arg "--service-cidr=10.48.0.1/16@server:0" -p '80:80@server:0' -p '443:443@server:0' --image "$K3S_IMAGE" k3d cluster create "$CLUSTER_NAME" --k3s-arg "--cluster-cidr=10.49.0.1/16@server:0" --k3s-arg "--service-cidr=10.48.0.1/16@server:0" -p '80:80@server:0' -p '443:443@server:0' --image "$K3S_IMAGE"
k3d kubeconfig get "$CLUSTER_NAME" > "$KUBECONFIG" k3d kubeconfig get "$CLUSTER_NAME" > "$KUBECONFIG"
# Build the docker image # Import the controller image that we built at the start into to the cluster
IMG=controller:latest make docker-build # this image has to exists and be available in the local docker
# Import the image to the cluster
k3d image import -c "$CLUSTER_NAME" controller:latest k3d image import -c "$CLUSTER_NAME" controller:latest
# Install cert manager # Install cert manager