Commit Graph

21 Commits

Author SHA1 Message Date
Dirk Müller 6735d99f6b
Simplify service start
systemctl enable + systemctl start can be combined into one. also
move it after the restorecon. This potentially allows dropping the
setenforce disablement

Signed-off-by: Dirk Müller <dmueller@suse.com>
2025-05-23 14:48:03 +02:00
Dirk Müller ec972f0103
drop semanage call on nonexisting service
the rke2 install script installs the service in /etc/systemd/service
and the restorecon call already sets the proper context on it (but since
we start the service beforehand, that doesn't seem to be necessary..).

semanage(1) isn't always preinstalled in the operating system image, and
if this service exists, the relabeling at boot will restore the context.

Signed-off-by: Dirk Müller <dmueller@suse.com>
2025-05-22 14:28:13 +02:00
Dinar Valeev 7fcabf3980
Render rke2-install without semanage for flatcar
Signed-off-by: Dinar Valeev <k0da@opensuse.org>
2025-04-29 15:28:32 +02:00
Andrea Mazzotti 3ad0b591ae
Bump golangci-lint to v2
Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2025-04-08 09:06:01 +02:00
Alexandr Demicev 5baa17c801
Fix all linter warnings
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2025-03-20 12:52:07 +01:00
Danil-Grigorev 961690dcb4
Always use CAPI generated certificates for etcd management
- Perform etcd memebership management only when the local certificates
  were created, and skip otherwise.

Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
2024-10-02 15:24:18 +02:00
Steven Hardy 7a87cd46fc
Ignition: move rke2-cis-script.sh to after RKE2 install
Otherwise the script fails, this aligns with how the cloud-init
script works.

Signed-off-by: Steven Hardy <steven.hardy@suse.com>
2024-08-23 11:46:43 +01:00
Simplysoft GmbH 1412bb82cf
fix: use absolute path to rke2's kubectl binary
ensures that cluster-etcd secret can be created if host does not have kubectl installed

fixes #403

Signed-off-by: Simplysoft GmbH <1588210+simplysoft@users.noreply.github.com>
2024-08-13 16:11:29 +02:00
Furkat Gofurov ece3d2467a
Rename CAPRKE2 org references in the codebase
Signed-off-by: Furkat Gofurov <furkat.gofurov@suse.com>
2024-07-11 13:14:48 +03:00
Alberto Morgante Medina b3e4e9c35f
fix issue with rke2-install
Signed-off-by: Alberto Morgante Medina <alberto.morgante@suse.com>
2024-07-01 16:28:38 +02:00
Danil Grigorev 3b188c99c6
Add airGappedChecksum field to check workload version before rollout
Signed-off-by: Danil Grigorev <danil.grigorev@suse.com>
2024-05-14 11:05:27 +02:00
Danil Grigorev 9025c940c4
Update licences and fix lint errors
Signed-off-by: Danil Grigorev <danil.grigorev@suse.com>
2024-04-12 12:30:48 +02:00
Danil Grigorev 6fc88d9288
Fix linter errors
Signed-off-by: Danil Grigorev <danil.grigorev@suse.com>
2024-04-08 21:35:56 +02:00
Danil Grigorev 8c04dbc264
Add bootstrap commnad to store etcd certificates from the node
Signed-off-by: Danil Grigorev <danil.grigorev@suse.com>
2024-04-08 21:35:55 +02:00
Danil Grigorev dc7c307123
Rename v1alpha2 to v1beta1
Signed-off-by: Danil Grigorev <danil.grigorev@suse.com>
2024-01-08 13:18:49 +01:00
Danil Grigorev c8762be772
Introduce v1alpha2 api version
Signed-off-by: Danil Grigorev <danil.grigorev@suse.com>
2024-01-08 13:03:26 +01:00
Alexandr Demicev 3cd309f909
Create bootstrap-success before setting selinux to enforcing mode
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2023-11-27 18:27:39 +01:00
Alexandr Demicev e1d26f6108
Fix selinux in ignition for SLE micro
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2023-11-22 14:46:53 +01:00
Alberto Morgante Medina 814a561644
Add ignition V3 support
Signed-off-by: Alberto Morgante Medina <alknopfler@gmail.com>
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2023-10-30 14:36:24 +01:00
Alexandr Demicev 244768ff83
Use single structure and function for CP ignition generation
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2023-05-09 16:32:30 +02:00
Alexandr Demicev 0a8d67900a
Support using ignition format for generating user data
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2023-03-30 19:57:59 +02:00