Commit Graph

817 Commits

Author SHA1 Message Date
renovate[bot]
f21bd243b2 Update dependency jquery to v3.7.1 2023-10-16 14:40:49 +00:00
renovate[bot]
da5a3edcf2 Update github.com/kairos-io/kairos-sdk digest to 0bb4e40 (#157)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-16 16:35:53 +02:00
renovate[bot]
40289af471 Update dependency bootstrap to v5.3.2 2023-10-04 23:16:00 +00:00
renovate[bot]
66336a3adf Update dependency codemirror to v5.65.15 2023-10-04 20:00:02 +00:00
Mauro Morales
1f69b99dbc Configure automerge for patch updates 2023-10-04 17:00:52 +02:00
renovate[bot]
ae5d2f72c9 Update module github.com/mudler/yip to v1.4.4 (#156)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-03 13:44:22 +02:00
renovate[bot]
9f216d373c Update module github.com/onsi/gomega to v1.28.0 (#155)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-03 13:43:09 +02:00
renovate[bot]
47f461b243 Update module github.com/onsi/ginkgo/v2 to v2.12.1 (#154)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-03 13:42:07 +02:00
Itxaka
1b967cccd8 [uki] Lyfecycle (#148) 2023-10-03 11:15:17 +02:00
Dimitris Karakasilis
300cc9290a Merge pull request #152 from kairos-io/1837-add-source-to-commands
1837 Add `--source` to various commands
v2.3.0
2023-10-02 12:55:29 +03:00
Dimitris Karakasilis
48fc6180cf Return image from bus when one exists
it was accidentally returning "nil"

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-10-02 12:47:04 +03:00
Dimitris Karakasilis
e0dfc79ed5 Unmarshal yaml after auto size calculation and fix tests
because we want the user's preferences to be applied last, thus
overriding whatever calculations we may do automatically.

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-10-02 12:28:33 +03:00
Dimitris Karakasilis
80f83ba676 Run sanitization outside the spec building functions
To limit responsibility or those functions and to keep the tests passing
(because they assumed no sanitization)

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-10-02 10:57:11 +03:00
Dimitris Karakasilis
d1e84c186c Fix minor syntax and linting issues
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-10-02 10:43:18 +03:00
Dimitris Karakasilis
a10390e0a8 DRY the definition of "--source" flag
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-09-29 17:11:51 +03:00
Dimitris Karakasilis
85196fbc59 Calculate sources sizes after unmarshalling the full spec
otherwise sources defined in the kairos config won't be there when we
calculate the size

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-09-29 15:57:01 +03:00
Dimitris Karakasilis
b675730e8c Rename variables to better reflect what they are (PR comment)
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-09-29 12:50:34 +03:00
Dimitris Karakasilis
5b9d043aa0 Remove non-working test
because it needs to stub the world and currently there is no way of
doing so (we've even skipped the install_test.go for similar reasons).
2023-09-29 11:52:36 +03:00
Dimitris Karakasilis
b13f1a9cc8 Un-export fields again
because they are unmarshalled with a custom unmarshaller so they don't
need to be exported

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-09-29 11:46:00 +03:00
Dimitris Karakasilis
f477776b57 Bring back the size calculation in Upgrade
it was removed by mistake

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-09-29 11:46:00 +03:00
Dimitris Karakasilis
a2d4df589b Remove comments
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-09-29 11:46:00 +03:00
Dimitris Karakasilis
b68b07f278 Remove unecessary type definition
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-09-29 11:46:00 +03:00
Dimitris Karakasilis
f2ec19d53d Fix syntax and don't hide error
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-09-29 11:45:59 +03:00
Dimitris Karakasilis
48c445756e Fix conf identation
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-09-29 11:45:59 +03:00
Dimitris Karakasilis
48a3f57048 Rename var
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-09-29 11:45:59 +03:00
Dimitris Karakasilis
15a926ad3b Handle --source in install/manual-install/interactive-install the same way
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-09-29 11:45:59 +03:00
Dimitris Karakasilis
c58efaa623 Add test and remove debugging logs
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-09-29 11:45:59 +03:00
Dimitris Karakasilis
968812dfbb Exctract the generation of the upgrade spec to a function
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-09-29 11:45:59 +03:00
Dimitris Karakasilis
afe08c5ca5 Generate additional config only if needed
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-09-29 11:45:59 +03:00
Dimitris Karakasilis
8dd7577148 WIP
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-09-29 11:45:59 +03:00
Itxaka Serrano Garcia
60815d060e Refactor
Signed-off-by: Dimitris Karakasilis <dimitris@spectrocloud.com>
2023-09-29 11:45:59 +03:00
Dimitris Karakasilis
3482e88aa3 [WIP] Try to pass command line options for upgrade as kairos config
because it's actually configuration and it's better than using viper to
pass things around.

The `upgrade:` block seems to be ignored early in the process so even if
the user specifies an image there, the latest release will be looked up.

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-09-29 11:45:58 +03:00
Dimitris Karakasilis
7d18e6504a [WIP] Add --source to various commands
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-09-29 11:45:58 +03:00
Dimitris Karakasilis
1170576dcc Merge pull request #151 from kairos-io/1850-bump-yip
Bump yip
2023-09-29 10:28:47 +03:00
Mauro Morales
bb2f57fdcb Merge pull request #153 from kairos-io/1841-partition-calculation 2023-09-28 09:43:49 +02:00
Mauro Morales
5fab99f5b7 Take symlinks into account for partition size
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-09-27 16:25:38 +02:00
Dimitris Karakasilis
c3a77d7199 Bump yip
https://github.com/kairos-io/kairos/issues/1850

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-09-26 12:22:57 +03:00
Itxaka
677254e570 Pass the install event to the collector directly (#150) 2023-09-26 07:38:58 +00:00
Dimitris Karakasilis
9f46af255f Merge pull request #149 from kairos-io/dk-bump-yip
Bump yip
2023-09-25 10:33:25 +03:00
Dimitris Karakasilis
b687b30d48 Bump yip
to get this fix: https://github.com/mudler/yip/pull/110

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-09-25 10:18:48 +03:00
Itxaka
3e4693d697 Workaround for bundle install in new /var/lib/extensions directory (#147) v2.2.12 2023-09-15 15:40:27 +02:00
Dimitris Karakasilis
51ca8a8589 Revert "debug extension"
This reverts commit 98ccb57799.
2023-09-15 15:36:42 +03:00
Itxaka
98ccb57799 debug extension
Signed-off-by: Itxaka <itxaka@kairos.io>
2023-09-15 14:33:41 +02:00
renovate[bot]
b1db2f48e4 Update module github.com/erikgeiser/promptkit to v0.9.0 (#126)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-14 17:14:50 +02:00
renovate[bot]
18d937d227 Update dependency cypress to v12.17.4 (#138)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-14 17:14:33 +02:00
renovate[bot]
22841fce1f Update goreleaser/goreleaser-action action to v5 (#143)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-14 17:14:21 +02:00
Dimitris Karakasilis
9c62ffaaff Merge pull request #145 from kairos-io/check-root
Check root permissions in commands that need it
2023-09-14 16:14:33 +03:00
Dimitris Karakasilis
b336e16e70 go mod tidy (after rebase conflicts)
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-09-14 16:06:59 +03:00
Dimitris Karakasilis
bf40c48812 Move checkRoot to main
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-09-14 16:06:41 +03:00
Dimitris Karakasilis
fddbf3f657 Check root permissions in commands that need it
Otherwise the error shown is not helpful (it fails too late with
confusing errors).

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-09-14 16:06:38 +03:00