Commit Graph

59 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
Andrea Mazzotti 2ece70ce14
Bump CAPI to 1.10.5
Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2025-09-01 09:35:21 +02:00
Parthvi Vala fe8268a602
Merge pull request #698 from valaparthvi/config-map-file-source
Add ConfigMap support as FileSource
2025-07-29 09:36:49 +00:00
Parthvi Vala 0abbd4ad0e
Change Secret and Config FileSourceRef to pointer
Signed-off-by: Parthvi Vala <parthvi.vala@suse.com>
2025-07-23 12:27:13 +05:30
yiannistri f5fe093dbb
feat: Add support for external datastore 2025-07-16 11:50:07 +01:00
Parthvi Vala d5d4478aa9
Change SecretFileSource and ConfigMapFileSource to single FileSourceRef
Signed-off-by: Parthvi Vala <parthvi.vala@suse.com>
2025-07-16 11:59:28 +05:30
Parthvi Vala b7f3811142
Add ConfigMap support as FileSource 2025-07-11 22:27:52 +05:30
Furkat Gofurov 25d066d971
Add a new `gzipUserData` boolean API field in `RKE2ConfigSpec`
Signed-off-by: Furkat Gofurov <furkat.gofurov@suse.com>
2025-07-02 14:41:43 +03:00
Max Fedotov 3b01b1adc6
Rename all KCP mentions to RKE2ControlPlane. Fix conversion tests. Move cluster-template-rcp-remediation to a separate InfrastructureProvider config 2025-05-07 13:12:59 +02:00
Max Fedotov cf3c22ab65
Support rke2ControlPlane mhc remediation 2025-05-07 13:12:59 +02:00
Alexandr Demicev ae404ceb18
Default RKE2 control plane replicas to 1 if not specified
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2025-05-02 16:09:14 +02:00
Furkat Gofurov 3070166c64
Expose `NodeVolumeDetachTimeout` and `NodeDeletionTimeout` through RKE2ControlPlaneMachineTemplate
Also add webhook logic to allow updates to the new fields

Signed-off-by: Furkat Gofurov <furkat.gofurov@suse.com>
2025-04-18 18:04:39 +03:00
Max Fedotov c27092cd0a
Add additional DisabledPluginComponent 2025-03-12 17:18:57 +01:00
Danil-Grigorev 3e0820074e
Clarify RKE2CP Ready field meaning in status
Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
2025-03-12 11:17:53 +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 baaec2c4a8
Deprecate RKE2ControlPlane.Spec.InfrastructureRef and .NodeDrainTimeout
Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2025-01-10 14:15:52 +01: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
Furkat Gofurov 1d573ffce5
Bump kustomize to v5 version
Signed-off-by: Furkat Gofurov <furkat.gofurov@suse.com>
2025-01-08 13:23:16 +02:00
Danil-Grigorev 3949bc18c8
Bump controller-gen version to 0.16.1
Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
2024-12-20 12:59:40 +01:00
Furkat Gofurov 8219e8de82
Bump CAPI to v1.8.5
Signed-off-by: Furkat Gofurov <furkat.gofurov@suse.com>
2024-11-12 14:19:22 +02:00
Alexandr Demicev 79a1153126
Add PSA file to API
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2024-10-22 14:01:27 +02:00
Danil-Grigorev 51a4233c99
Make control plane endpoint default registration method
Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
2024-08-27 17:23:29 +02: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
Danil-Grigorev 04e2a2b343
Fix regex to support more then one patch version number
Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
2024-06-25 17:46:03 +02:00
Danil-Grigorev 2545c38148
Allow empty version for RKE2 CP
Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
2024-05-30 13:18:23 +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 86025754c0
Remove kubebuilder defaults to make API GitOps friendly
Signed-off-by: Danil Grigorev <danil.grigorev@suse.com>
2024-05-02 11:35:27 +02:00
Danil Grigorev 91e7b0b910
Add AgentConfig version conversion in favor of a new field
Signed-off-by: Danil Grigorev <danil.grigorev@suse.com>
2024-05-02 11:33:50 +02:00
Alexandr Demicev ba34184fc8
Change description of version field in API
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2024-04-26 15:00:15 +02:00
Furkat Gofurov 957ccdd0c1
Bump CAPI to v1.7.0 minor release
Signed-off-by: Furkat Gofurov <furkat.gofurov@suse.com>
2024-04-19 13:50:31 +03:00
Richard Case 0f98d5f775
feat: added control plane endpoint registration method
This adds a new registration method that will use the **host** from the
control plane endpoint set on the **Cluster**.

Signed-off-by: Richard Case <richard.case@suse.com>
2024-03-18 11:41:34 +00:00
Carlos Salas 0b62188aaa
feat: add support for cluster class
Signed-off-by: Carlos Salas <carlos.salas@suse.com>
2024-02-23 18:12:52 +01:00
ekarlso b4cb04bead feat: Fix handling of registries config to work as rke2
fixes ##253

Signed-off-by: ekarlso <endre.karlson@gmail.com>
2024-01-26 15:24:31 +01: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
Richard Case f76dff43f3
chore: update to capi v1.6.0
This bumps CAPI to v1.6.0 along with associated depenendies. The
sample templates have also been updated for docker so they are
compatible with v1.6.0, specifically using a custom LB config.

Signed-off-by: Richard Case <richard.case@outlook.com>
2023-12-07 14:32:40 +00:00
Alexandr Demicev aff415beaa
Add maxsurge option for control plane upgrade
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2023-11-16 13:25:48 +01:00
Danil Grigorev 91b733692f
Add arbitrary data field
Signed-off-by: Danil Grigorev <danil.grigorev@suse.com>
2023-11-15 11:59:02 +01:00
Danil Grigorev db08f5556f
Implement metadata propagation on the workload cluster nodes
Signed-off-by: Danil Grigorev <danil.grigorev@suse.com>
2023-10-30 16:49:53 +01:00
Richard Case 6c07719274
feat: support different registration methods
This adds support for different ways to register new nodes into the
cluster.

Signed-off-by: Richard Case <richard.case@outlook.com>
2023-06-15 15:33:45 +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 6808c7580b
Fixing issue with disableComponents fields in RKE2ControlPlane, fixes #128 (#130)
Fix linting

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
2023-05-09 12:15:48 +02:00
Alexandr Demicev 67d46fedee
Regenerate manifests
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2023-03-27 17:42:12 +02:00
Mohamed Belgaied Hassine e4d636bf64
implemented additionUserData configuration in the API (#114)
* implemented additionUserData configuration in the API

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

* implemented review feedback

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

---------

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
2023-03-24 11:23:09 +01:00
Mohamed Belgaied Hassine 5d9837a73b
Fixed a mistake in the description of ExtraArgs field
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
2023-03-21 20:52:04 +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 e2c134c69b
Fixes for PR #60
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
2023-01-17 18:52:14 +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