Commit Graph

101 Commits

Author SHA1 Message Date
dependabot[bot]
4f93b7669c
Bump github.com/ulikunitz/xz in the go_modules group across 1 directory (#621)
Bumps the go_modules group with 1 update in the / directory: [github.com/ulikunitz/xz](https://github.com/ulikunitz/xz).


Updates `github.com/ulikunitz/xz` from 0.5.11 to 0.5.14
- [Commits](https://github.com/ulikunitz/xz/compare/v0.5.11...v0.5.14)

---
updated-dependencies:
- dependency-name: github.com/ulikunitz/xz
  dependency-version: 0.5.14
  dependency-type: indirect
  dependency-group: go_modules
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-28 19:43:46 +00:00
Dimitris Karakasilis
675f51705d Bump versions to fix osv-scanner warnings
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2025-08-27 09:40:53 +02:00
renovate[bot]
51bda8440a
fix(deps): update module github.com/docker/docker to v28 [security] (#614)
* fix(deps): update module github.com/docker/docker to v28 [security]

* Run go mod tidy

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>

* Update go-containerregistry to match docker v28

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>

---------

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2025-08-27 07:17:57 +00:00
Itxaka
7ef466cd9d
Bring kcrypt libs into sdk (#592) 2025-04-17 17:03:23 +02:00
Itxaka
2078966079
Improve journald logger (#586)
* Improve journald logger

tag the logs with the identifier so they can be found easily with
journald


---------

Signed-off-by: Itxaka <itxaka@kairos.io>
2025-04-02 14:16:56 +02:00
Itxaka
d9cdf0792a
Bump crypto dep
Signed-off-by: Itxaka <itxaka@kairos.io>
2025-02-28 10:50:32 +01:00
Itxaka
228b87bc8a
Improve GetImage platform handling (#557) 2025-02-28 09:49:14 +00:00
Itxaka
aa62f8ba73
Improve logger (#566)
* Improve logger

 - Try to log to jorunald if available
 - fallback to file writing if not
 - write to single file instead of appending times
 - add a locking mechanism so several processes cant write to the same
   file
 - prepend the PID of the process if we are running outside journald for
   easy tracking of grouped messages

Signed-off-by: Itxaka <itxaka@kairos.io>

* Simplify

Signed-off-by: Itxaka <itxaka@kairos.io>

---------

Signed-off-by: Itxaka <itxaka@kairos.io>
2025-02-24 11:34:54 +01:00
Dimitris Karakasilis
3aac7ad951
Skip artifacts that don't have proper names (#562)
* Skip artifacts that don't have proper names

Fixing https://github.com/kairos-io/kairos/issues/3167

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>

* go mod tidy

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>

* Make sure we test the fix

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>

---------

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2025-02-04 15:31:58 +02:00
Itxaka
91c75282e9
Downgrade diskfs (#551)
Signed-off-by: Itxaka <itxaka@kairos.io>
2025-01-14 17:18:31 +02:00
dependabot[bot]
fdb60f74bb
Bump golang.org/x/crypto in the go_modules group across 1 directory (#550)
Bumps the go_modules group with 1 update in the / directory: [golang.org/x/crypto](https://github.com/golang/crypto).


Updates `golang.org/x/crypto` from 0.31.0 to 0.32.0
- [Commits](https://github.com/golang/crypto/compare/v0.31.0...v0.32.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: indirect
  dependency-group: go_modules
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-14 13:41:44 +00:00
Dimitris Karakasilis
139026f697
Fix go mod by running go get and then go mod tidy (#549)
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2025-01-14 15:37:52 +02:00
Itxaka
0b506b6684
Revert "Add raw disk utils"
This reverts commit 6921f6eb22.
2025-01-02 15:25:51 +01:00
Itxaka
6921f6eb22
Add raw disk utils
Provides raw disk utils to transform a raw disk into a GCE or Azure disk
Provieds a new constants pkg to store constants that cn be used across
all projects
Expands the KairosFs interface to be in line with what its used across
the projects

Signed-off-by: Itxaka <itxaka@kairos.io>
2024-12-18 12:15:29 +01:00
Dimitris Karakasilis
6a23bb6882
Fix install.device schema to allow all devices (#521)
* Fix install.device schema to allow all devices

E.g. /dev/disk/by-path/pci-0000:03:00.0-scsi-0:0:0:0

Part of https://github.com/kairos-io/kairos/issues/2906

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>

* Add test and run `go mod tidy`

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>

* Fix test

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>

---------

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2024-11-08 08:03:16 +02:00
Itxaka
24873605ca
Add method to extract files from an iso (#514)
Signed-off-by: Itxaka <itxaka@kairos.io>
2024-10-28 09:09:48 +01:00
Dimitris Karakasilis
a56cb0bb38
Add Sources field to Config (#501)
* Add Sources field to Config

and keep track of merged files there. Also print the Sources as a
comment in the String() method.

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>

* Fix tests

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>

* Fix linter

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>

* Fix TODO

by renaming the toMap function and making it operate on ConfigValues
instead of full Config objects (because after all, it wasn't copying the
Sources field)

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>

* [minor] Return ConfigValues interface when erroring out

although nobody should consume it since we errored

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>

* Add check for "Sources" comment

to check that these all generate a line:
- cmdline
- remote config (config_url)
- local files

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>

---------

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2024-09-26 12:04:21 +03:00
Itxaka
ae2e2d7758
Override the ghw paths on ghw mock (#496) 2024-09-17 13:10:26 +02:00
Itxaka
ea5c6c7028
Bring GHW clone and partition type into sdk (#492) 2024-09-12 15:25:19 +02:00
Itxaka
e7f1026df1
Add a method to extract files from a docker image last layer (#362)
Co-authored-by: Mauro Morales <mauro.morales@spectrocloud.com>
2024-09-10 10:04:57 +02:00
renovate[bot]
9649d2b874 fix(deps): update module github.com/onsi/gomega to v1.34.2 2024-08-29 01:55:30 +00:00
renovate[bot]
efdb738348 fix(deps): update module github.com/onsi/ginkgo/v2 to v2.20.2 2024-08-28 21:43:25 +00:00
renovate[bot]
323343f210
fix(deps): update module github.com/docker/docker to v27.2.0+incompatible (#481)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-27 23:00:43 +00:00
renovate[bot]
c3d2f79669 fix(deps): update module github.com/containerd/containerd to v1.7.21 2024-08-26 23:15:31 +00:00
renovate[bot]
fac0878796 fix(deps): update module github.com/onsi/ginkgo/v2 to v2.20.1 2024-08-21 22:55:55 +00:00
Nianyu Shen
851cc01bc9
accept custom cluster config locations (#153)
* accept custom cluster config locations

Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com>

* use yaml.v3

Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com>

* go mod tidy

Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com>

* added custom root and config flag in cluster properties

* remove ClusterRootPath

Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com>

* go mod tidy

Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com>

---------

Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com>
Co-authored-by: Piyush Kumar <k17piyush@gmail.com>
2024-08-21 09:35:02 +02:00
renovate[bot]
9c7cdb7f45 fix(deps): update module github.com/docker/docker to v27.1.2+incompatible 2024-08-13 22:42:08 +00:00
renovate[bot]
82089342b4 fix(deps): update module github.com/urfave/cli/v2 to v2.27.4 2024-08-11 20:31:32 +00:00
renovate[bot]
73448dfcb8
fix(deps): update module github.com/onsi/ginkgo/v2 to v2.20.0 (#373)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-07 22:42:22 +00:00
renovate[bot]
2a2fdbd324 fix(deps): update module github.com/google/go-containerregistry to v0.20.2 2024-08-06 23:12:20 +00:00
renovate[bot]
cd261e6f9a
fix(deps): update github.com/foxboron/go-uefi digest to e2076f0 (#363)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-05 22:05:44 +00:00
renovate[bot]
5e16896551
fix(deps): update module golang.org/x/mod to v0.20.0 (#353)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-04 16:16:14 +00:00
renovate[bot]
2c537f7f20 fix(deps): update module github.com/mudler/yip to v1.9.4 2024-08-01 21:33:09 +00:00
renovate[bot]
9a025505eb fix(deps): update module github.com/onsi/gomega to v1.34.1 2024-07-29 21:19:36 +00:00
renovate[bot]
40efe991ec fix(deps): update module github.com/onsi/ginkgo/v2 to v2.19.1 2024-07-26 21:38:15 +00:00
renovate[bot]
268ce52a28
fix(deps): update module github.com/onsi/gomega to v1.34.0 (#256)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-25 21:12:39 +00:00
renovate[bot]
a5fe72029e fix(deps): update module github.com/urfave/cli/v2 to v2.27.3 2024-07-24 23:24:08 +00:00
renovate[bot]
cb3f6c0605 fix(deps): update module github.com/docker/docker to v27.1.1+incompatible 2024-07-24 01:04:40 +00:00
renovate[bot]
f0efa9c55d
fix(deps): update module github.com/docker/docker to v27.1.0+incompatible (#244)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-22 23:37:23 +00:00
renovate[bot]
0d55a56469
fix(deps): update github.com/foxboron/go-uefi digest to 5d4f760 (#243)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-22 23:37:18 +00:00
renovate[bot]
f6ed627a44 fix(deps): update module github.com/containerd/containerd to v1.7.20 2024-07-18 21:51:34 +00:00
renovate[bot]
dd884ff8f2 fix(deps): update module github.com/google/go-containerregistry to v0.20.1 2024-07-17 04:07:20 +00:00
renovate[bot]
b5a585c753 fix(deps): update module github.com/mudler/yip to v1.9.3 2024-07-15 21:09:42 +00:00
renovate[bot]
3ede22ed42
fix(deps): update module gopkg.in/yaml.v2 to v3 (#175)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-11 11:30:40 +00:00
Itxaka
c981d41a76
Fixes distribution dep to be more compatible (#176) 2024-07-11 13:27:47 +02:00
renovate[bot]
f08fa83afb
fix(deps): update module github.com/santhosh-tekuri/jsonschema/v5 to v6 (#170)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-11 11:16:02 +00:00
renovate[bot]
198a3fb335 fix(deps): update module github.com/zcalusic/sysinfo to v1.1.0 2024-07-11 10:02:48 +00:00
Itxaka
aa33eaebbb
Bump to go1.22 (#168)
* Bump to go1.22

Signed-off-by: Itxaka <itxaka@kairos.io>

* Fix issues

Signed-off-by: Itxaka <itxaka@kairos.io>

---------

Signed-off-by: Itxaka <itxaka@kairos.io>
2024-07-11 12:00:28 +02:00
renovate[bot]
d1e0c2ec36 fix(deps): update module github.com/containerd/containerd to v1.7.18 2024-06-05 21:08:16 +00:00
Nianyu Shen
9b9e468a44
add auth support for oci image extractor (#131) 2024-06-05 09:23:51 +02:00