Commit Graph

25 Commits

Author SHA1 Message Date
Dinar Valeev f0af48b2af
RKE2ControlPlane: v1beta1 support EncryptionConfig
This commit adds RKE2ControlPlane.spec.serverConfig.secretsEncryption property.

This allows to specify provider type (aescbc or secretbox) and load encryption key
from a secret.

Signed-off-by: Dinar Valeev <k0da@opensuse.org>
2025-10-23 13:27:10 +02:00
Parthvi Vala 00cb30927b
Add SystemDefaultRegistry to AgentConfig
Signed-off-by: Parthvi Vala <parthvi.vala@suse.com>
2025-09-05 15:15:33 +05:30
yiannistri f5fe093dbb
feat: Add support for external datastore 2025-07-16 11:50:07 +01:00
Alexandr Demicev 78a475b78a
Add embedded registry option to server config
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2025-02-28 15:07:05 +01:00
Andrea Mazzotti 43e5639904
Propagate cloud provider config
Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2025-02-05 14:08:14 +01:00
Furkat Gofurov 54c9eec3c6
Fix setting folder S3 on etcd backups
Signed-off-by: Furkat Gofurov <furkat.gofurov@suse.com>
2025-01-10 14:16:08 +02:00
Carlos Salas ded588a2e9
feat: make aws credentials optional when s3 backup
Signed-off-by: Carlos Salas <carlos.salas@suse.com>
2025-01-10 12:01:34 +01:00
Alexandr Demicev 7268382f04
Add indentation to generated RKE2 config
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2025-01-10 10:59:40 +01:00
Alexandr Demicev 9252d3a458
Pass component configuration as slice 2024-11-27 12:48:35 +01:00
Ashley Dumaine f2eca63fe5
add cis to the cis-profile enum
Signed-off-by: Ashley Dumaine <ashley.dumaine@gmail.com>
2024-08-26 10:04:22 -04: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
Alexandr Demicev 5d61aceaa7
Use spec.Version field as primarily source
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2024-04-26 15:00:24 +02:00
Furkat Gofurov 261395ea39
Differentiate etcd backup location based on the parameters
If S3 storage is specified and used, set the etcdSnapshotDir to S3 folder while
use local directory when local storage is utilized

Signed-off-by: Furkat Gofurov <furkat.gofurov@suse.com>
2024-02-13 11:55:36 +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
Danil Grigorev 71354c2218
Add test cases covering metadata propagation
Signed-off-by: Danil Grigorev <danil.grigorev@suse.com>
2023-10-30 16:49:54 +01:00
Mohamed Belgaied Hassine 90e5619a1f
Implemented possibility to use Multus CNI, fixes #103 (#132)
improved some logging

fixed small issue related to the change in the way CNI field is handled

Fixing comments for validate func in webhook

Cleaning up multus RKE2-on-CAPD manifests

updated godoc comment on API field for rke2controlplane

Removed unnecessary comment in external AWS templates

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
2023-05-16 15:32:54 +02:00
Mohamed Belgaied Hassine f9f3b23cff
moved useful constants to own package
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
2023-03-21 20:35:01 +00:00
Mohamed Belgaied Hassine a0858f8ea2
Fixed #28 CIS Profile now works and is different for v1.25+ and v1.24- (#110)
Fixes #28 and makes it possible to differenciate CIS profiles between versions
Removed snake case in util.go
Fixed Units tests for the CIS scenario

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
2023-03-14 14:27:46 +01:00
Mohamed Belgaied Hassine fc445b63b8
fixed linting issues (first pass)
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

make generate afte minor fixes to API descriptions

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

fixed some regressions from refactoring

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

changed timeout value for golanci-lint GH action, because it was failing

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
2023-03-10 12:58:16 +00:00
Mohamed Belgaied Hassine 09add13e83
moved cloud-init package to bootstrap/internal and did some cleanup
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

Revert "code cleanup, removing unnecessary takeovers. removing some references to Kubeadm provider code"

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

change verbosity level

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

updated matching RKE2Config of the machine with new ControlPlane

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

implemented registries.yaml files for workers, cp might be problematic in this impl

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

Fixing issues around registries.yaml for control plane nodes

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

implemented manifests feature, still to be tested!

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

small fixes and adding AWS sample

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

small fixes and adding AWS sample

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

testing aws -- not working providerID

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

testing aws -- not working providerID

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

Fixing some AWS testing using templates

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

Fixed several issues when deploying with AWS external cloud provider

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

implemented NTP configuration

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

implemented review comments

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

Fixed typo on registry rewrites and endpoints

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
2023-02-15 17:11:44 +00:00
Mohamed Belgaied Hassine 9d2654a4ca
fixed issue with providerID and added handling of ClusterCIDR and ServiceCIDR
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
2023-01-11 15:52:21 +00:00
Mohamed Belgaied Hassine 9a45ce5763
Fix config_test.go for *bool value
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
2023-01-11 15:52:19 +00:00
Mohamed Belgaied f17429b76e
Fixed some small issues in the generation of config.yaml
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
2023-01-11 15:52:19 +00:00
Alexandr Demicev 79ec581656
Generate config for agent and server
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2022-12-05 16:33:12 +01:00