Commit Graph

68 Commits

Author SHA1 Message Date
Dimitris Karakasilis
43e7222cbc Cleanup (#487)
Remove left-overs from when we used this repo to release "standard"
images.

---------

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-10-27 12:32:00 +03:00
Itxaka
3b1a697180 Drop elemental calls (#478)
No longer used, move to kairos-agent

Also drop sha iso calculation as its done by the iso builder
automatically

Fixes https://github.com/kairos-io/kairos/issues/1798

Signed-off-by: Itxaka <itxaka@kairos.io>
2023-09-08 14:40:11 +02:00
renovate[bot]
f7eb5c32e7 Update quay.io/kairos/osbuilder-tools Docker tag to v0.8.2 (#450)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-07 14:33:33 +02:00
Mauro Morales
e63b3c81de 🐛 Set iso name for netboot (#468)
Fixes the current issue on main

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-07-27 18:28:25 +02:00
Mauro Morales
54532e74da Introduce new artifact naming convention (#466)
relates to kairos-io/kairos#1109

`earthly +all`

```
kairos-standard-opensuse-leap-amd64-generic-v2.3.1-dirty-k3s-initrd
kairos-standard-opensuse-leap-amd64-generic-v2.3.1-dirty-k3s.ipxe
kairos-standard-opensuse-leap-amd64-generic-v2.3.1-dirty-k3s-ipxe.iso
kairos-standard-opensuse-leap-amd64-generic-v2.3.1-dirty-k3s-ipxe-usb.img
kairos-standard-opensuse-leap-amd64-generic-v2.3.1-dirty-k3s.iso
kairos-standard-opensuse-leap-amd64-generic-v2.3.1-dirty-k3s.iso.sha256
kairos-standard-opensuse-leap-amd64-generic-v2.3.1-dirty-k3s-kernel
kairos-standard-opensuse-leap-amd64-generic-v2.3.1-dirty-k3s-sbom.spdx.json
kairos-standard-opensuse-leap-amd64-generic-v2.3.1-dirty-k3s-sbom.syft.json
kairos-standard-opensuse-leap-amd64-generic-v2.3.1-dirty-k3s.squashfs
```

`earthly +all-arm-generic --FLAVOR=opensuse-leap-arm-generic`

```
kairos-standard-opensuse-leap-arm64-generic-v2.3.1-1-g6a62b88-dirty.iso
kairos-standard-opensuse-leap-arm64-generic-v2.3.1-1-g6a62b88-dirty.iso.sha256
kairos-standard-opensuse-leap-arm64-generic-v2.3.1-1-g6a62b88-dirty-sbom.spdx.json
kairos-standard-opensuse-leap-arm64-generic-v2.3.1-1-g6a62b88-dirty-sbom.syft.json
```

`earthly -P +all-arm --FLAVOR=opensuse-leap-arm-rpi`

```
kairos-standard-opensuse-leap-arm64-rpi64-v2.3.1-3-g4b23855-dirty-k3s.img.xz
kairos-standard-opensuse-leap-arm64-rpi64-v2.3.1-3-g4b23855-dirty-k3s.img.sha256
kairos-standard-opensuse-leap-arm64-rpi64-v2.3.1-3-g4b23855-dirty-sbom.spdx.json
kairos-standard-opensuse-leap-arm64-rpi64-v2.3.1-3-g4b23855-dirty-sbom.syft.json
```

---------

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-07-27 16:34:54 +02:00
simonfr
360f1f18e7 Fix flavor is not the core one for the provider images (#451) 2023-07-21 13:29:39 +02:00
Itxaka
9f56a5578b Drop tests and cleanup earthly file (#447) 2023-07-14 12:46:18 +02:00
renovate[bot]
2c432078e2 Update quay.io/kairos/osbuilder-tools Docker tag to v0.7.8 (#448)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-13 10:28:33 +02:00
Itxaka
722a4c896c Extract provider install to a COMMAND (#442) 2023-07-11 13:19:42 +02:00
Mauro Morales
9fa3d9f799 Bump kairos version (#446)
Tests are green and did a manual QA and it's working properly. I do have
two questions which I put as comments

---------

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-07-10 18:10:33 +02:00
renovate[bot]
5fd57acf44 Update quay.io/kairos/osbuilder-tools Docker tag to v0.7.7 (#430)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
|
[quay.io/kairos/osbuilder-tools](https://build.opensuse.org/package/show/openSUSE:Leap:15.4:Images/opensuse-leap-image?rev=77c5003cef3b1bfdfe478bbc7d1f567a)
| patch | `v0.7.6` -> `v0.7.7` |

---

### Configuration

📅 **Schedule**: Branch creation - "after 11pm every weekday,before 7am
every weekday,every weekend" in timezone Europe/Brussels, Automerge - At
any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/kairos-io/provider-kairos).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xNDEuMyIsInVwZGF0ZWRJblZlciI6IjM1LjE0NC4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-10 11:29:28 +02:00
Mateusz Urbanek
72c01e2657 fix: bump go.mod path to v2 (#431)
The path in `go.mod` should be ended in `/v2` suffix, as per [go.mod
module version numbers](https://go.dev/doc/modules/version-numbers).

---------

Signed-off-by: Mateusz Urbanek <mateusz.urbanek.98@gmail.com>
2023-07-03 21:07:41 +02:00
Dimitris Karakasilis
6b2e3eff66 Pass VARIANT to OSRELEASE target (#420) 2023-06-23 10:09:00 +02:00
Itxaka
39a9c1db8e Drop upx compression (#410) 2023-06-15 10:17:06 +02:00
Itxaka
97fccf79f5 Bump to v2.2.0 (#399) 2023-06-14 16:53:12 +02:00
renovate[bot]
f95229102b Update quay.io/kairos/osbuilder-tools Docker tag to v0.7.6 (#407)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-14 12:35:42 +02:00
Mauro Morales
f2ac1935ee Bump osbuilder version (#400)
A bunch has happened between 0.6.7 and 0.7.4, we probably want the
latest since it brings the lvm support and other things

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-06-08 13:40:47 +02:00
Mauro Morales
704c0fc38b 🐛 Use lvm by default on rpi (#390)
relates to https://github.com/kairos-io/kairos/issues/1435

---------

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-05-24 22:05:23 +02:00
Dimitris Karakasilis
c633dbd7fa Use re-usable linting workflow (#376)
as part of https://github.com/kairos-io/kairos/issues/1234

---------

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-05-19 18:28:41 +03:00
Mauro Morales
80cec50138 Extend space for ubuntu arm imgs (#387)
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-05-19 17:24:38 +02:00
Dimitris Karakasilis
3e08d80cf3 Fix tests (#381)
Fixes: https://github.com/kairos-io/kairos/issues/1416

---------

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-05-19 11:23:47 +03:00
Dimitris Karakasilis
99b8b7c53c 1233-Rework tests (#306)
Fixes [#1233](https://github.com/kairos-io/kairos/issues/1233)

---------

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-05-04 19:53:20 +03:00
Mauro Morales
d88983a906 Extract some commands into kairosctl (#310)
This PR extracts the registration command into a `kairos-register`
binary of its own. The old sub command is kept so users can see a
deprecation notice and adapt for a future release when it's removed. The
version number is shared between binaries.

⚠️ I'm not entirely sure about the gorelease, and would benefit
from a couple of extra 👀 on this, thanks!

relates to kairos-io/kairos#1211

---------

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
Signed-off-by: Mauro Morales <contact@mauromorales.com>
Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
Signed-off-by: GitHub <noreply@github.com>
Co-authored-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Co-authored-by: Itxaka <itxaka.garcia@spectrocloud.com>
Co-authored-by: ci-robbot [bot] <105103991+ci-robbot@users.noreply.github.com>
Co-authored-by: mudler <mudler@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-21 11:04:15 +02:00
Itxaka
f20b7fe716 🤖 Release arm64 generic artifacts (#346)
Builds and releases oci artifacts and ISOs for release pipelines.

Also reworks a bit the master pipeline for arm generic to push to the
master tag instead of latest.

Also generates sboms as part of both pipelines

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-04-18 11:53:36 +02:00
Itxaka
a9c4bf3e33 🤖 Push generic arm64 artifacts on master merge (#344)
Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-04-17 18:00:54 +02:00
Itxaka
013ad0b444 Use $IMAGE to also push the image (#326)
Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-04-11 18:47:44 +02:00
Ettore Di Giacinto
4740cd3e0e ⬆️ Bump rc (#320)
Signed-off-by: mudler <mudler@c3os.io>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-07 14:44:01 +02:00
Mauro Morales
151681e664 🤖 Add version to goreleaser (#315)
Pass the version to goreleaser, so the artifact that can be dowloaded
includes it

relates to kairos-io/kairos#1249

---------

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-04-05 13:43:13 +02:00
Ettore Di Giacinto
f9dd0e12cd 🤖 Version SBOM after TAG (#309)
We can't use VERSION, as we have a bigger matrix consisting of k3s
versions too. that lead to each job to replace the sbom of another one:

```
Run softprops/action-gh-release@v1
⬆️ Uploading kairos-alpine-opensuse-leap-v2.0.0-rc3-k3sv1.21.14+k3s1-initrd...
⬆️ Uploading kairos-alpine-opensuse-leap-v2.0.0-rc3-k3sv1.21.14+k3s1-ipxe-usb.img.ipxe...
⬆️ Uploading kairos-alpine-opensuse-leap-v2.0.0-rc3-k3sv1.21.14+k3s1-ipxe.iso.ipxe...
⬆️ Uploading kairos-alpine-opensuse-leap-v2.0.0-rc3-k3sv1.21.14+k3s1-kernel...
⬆️ Uploading kairos-alpine-opensuse-leap-v2.0.0-rc3-k3sv1.21.14+k3s1.ipxe...
⬆️ Uploading kairos-alpine-opensuse-leap-v2.0.0-rc3-k3sv1.21.14+k3s1.iso...
⬆️ Uploading kairos-alpine-opensuse-leap-v2.0.0-rc3-k3sv1.21.14+k3s1.iso.sha256...
⬆️ Uploading kairos-alpine-opensuse-leap-v2.0.0-rc3-k3sv1.21.14+k3s1.squashfs...
♻️ Deleting previously uploaded asset kairos-alpine-opensuse-leap-v2.0.0-rc3-sbom.spdx.json...
♻️ Deleting previously uploaded asset kairos-alpine-opensuse-leap-v2.0.0-rc3-sbom.syft.json...
⬆️ Uploading kairos-alpine-opensuse-leap-v2.0.0-rc3-sbom.spdx.json...
⬆️ Uploading kairos-alpine-opensuse-leap-v2.0.0-rc3-sbom.syft.json...
Error: Failed to upload release asset kairos-alpine-opensuse-leap-v2.0.0-rc3-sbom.spdx.json. received status code 404
```

Signed-off-by: mudler <mudler@c3os.io>
2023-04-04 10:47:42 +02:00
Itxaka
f7d5d81013 ⬆️ Bump deps to use kairos-sdk (#299)
First time bumping the provider, be gentle

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>

---------

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-03-31 14:31:54 +02:00
Ettore Di Giacinto
2561e3b7a9 Revert "🤖 Push arm images in their own repo with img suffix" (#267)
Reverts kairos-io/provider-kairos#261

my fault, this isn't the full story yet, and `IMAGE` seems not used at
all
2023-03-06 12:09:08 +01:00
Mauro Morales
6fabfde89e 🤖 Push arm images in their own repo with img suffix (#261)
relates to kairos-io/kairos#770

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-03-05 16:14:27 +01:00
Ettore Di Giacinto
dc234087ba 🤖 Use VARIANT, output SBOM to build (#258)
Signed-off-by: mudler <mudler@c3os.io>
2023-03-02 17:16:36 +01:00
Ettore Di Giacinto
59e97162fc 🤖 Add SBOM artifacts to pipelines (#256)
Closes: https://github.com/kairos-io/kairos/issues/51

---------

Signed-off-by: mudler <mudler@c3os.io>
2023-03-02 13:50:32 +01:00
Ettore Di Giacinto
535285423f 🐛 Remove debian specific block (#250)
We didn't called `apt-get update` before installing nohang, so it wasn't
found in the repo. I've also added the `debian` flavor to the build job
of the CI so we can spot those issues before.

Fixes: https://github.com/kairos-io/kairos/issues/970

---------

Signed-off-by: mudler <mudler@c3os.io>
2023-02-27 11:31:58 +01:00
Mauro Morales
7335e45b29 🔧 Add yamllint and apply fixes (#240)
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-02-21 08:12:03 +01:00
Itxaka
fc894dfd5d ⚠️ Add tumbleweed flavor (#193)
Based on the new tumbleweed flavor for kairos

Blocked until https://github.com/kairos-io/kairos/pull/710 gets in and
pushes the new flavor

- [x] copy all artifacts from quay.io/kairos/kairos-opensuse to
quay.io/kairos/kairos-opensuse-leap
- [x] copy all signatures from quay.io/kairos/kairos-opensuse to
quay.io/kairos/kairos-opensuse-leap
- [x] copy all artifacts from quay.io/kairos/kairos-opensuse-arm-rpi to
quay.io/kairos/kairos-opensuse-leap-arm-rpi
- [x] copy all artifacts from quay.io/kairos/kairos-opensuse-arm-rpi to
quay.io/kairos/kairos-opensuse-leap-arm-rpi

Signed-off-by: Itxaka <itxaka@spectrocloud.com>

Signed-off-by: Itxaka <itxaka@spectrocloud.com>
Co-authored-by: Itxaka <itxaka@spectrocloud.com>
2023-01-26 21:21:15 +01:00
Ettore Di Giacinto
8215320e79 🐧 Add nohang (#196)
Signed-off-by: mudler <mudler@c3os.io>

Signed-off-by: mudler <mudler@c3os.io>
2023-01-26 17:55:45 +01:00
Mauro Morales
fd04b8a47b Upgrade luet to 0.33.0 (#182)
Kairos repo is already using this version

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-01-17 16:35:37 +00:00
Oz Tiram
70903fdec8 🌱 add version information directly from git (#175)
Partial fix for https://github.com/kairos-io/kairos/issues/643

Signed-off-by: Oz Tiram <oz@spectrocloud.com>
2023-01-17 10:19:43 +01:00
Dimitris Karakasilis
0d636d2b2c Exclude .img images from upgrades (#160)
and fix renamed Earthly ARG

Fixes https://github.com/kairos-io/kairos/issues/598

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

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-01-03 23:16:40 +01:00
mudler
cce69435be 🤖 Improve ISO build
Signed-off-by: mudler <mudler@c3os.io>
2022-12-27 23:23:00 +01:00
mudler
6d765d887c 🐛 Skip SELINUX warnings in fedora builds
SELinux has its own story: https://github.com/kairos-io/kairos/issues/114. We temporary disable it here, as there is no support at OS level currently.

Signed-off-by: mudler <mudler@c3os.io>
2022-12-14 11:44:00 +01:00
Ettore Di Giacinto
a8aa5c0f93 🤖 Extend HA test suite
Signed-off-by: Ettore Di Giacinto <mudler@mocaccino.org>
2022-12-13 16:08:40 +01:00
Ettore Di Giacinto
9943c4c7a6 🤖 Add proxmox HA test suite
Signed-off-by: Ettore Di Giacinto <mudler@mocaccino.org>
2022-12-12 12:25:19 +01:00
Ettore Di Giacinto
79fd3633a5 ⚠️ Change P2P configuration setting reference
Signed-off-by: Ettore Di Giacinto <mudler@mocaccino.org>
2022-12-09 16:36:30 +01:00
mudler
0517b1e766 Add kubeVIP support with p2p hybrid mode
In this way, the p2p API will just run the co-ordination to setup KubeVIP automatically
to the new cluster.

Signed-off-by: Ettore Di Giacinto <mudler@mocaccino.org>
2022-12-05 11:53:33 +01:00
mudler
7e49f5b916 🤖 Fixup test runs
Signed-off-by: mudler <mudler@mocaccino.org>
Signed-off-by: Ettore Di Giacinto <mudler@users.noreply.github.com>
2022-11-28 14:37:08 +00:00
Ettore Di Giacinto
68af772ca2 ⬆️ Bump osbuilder image
Signed-off-by: Ettore Di Giacinto <mudler@users.noreply.github.com>
2022-11-08 00:03:17 +00:00
Ettore Di Giacinto
6bb8fdf8f0 🐛 Skip selinux install 2022-10-28 17:17:36 +00:00