Commit Graph

80 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 1c21683f6a
Use DefaulterRemoveUnknownOrOmitableFields
Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2025-09-05 15:07:36 +02:00
Parthvi Vala bfaa2e0f11
Fix lint failures
Signed-off-by: Parthvi Vala <parthvi.vala@suse.com>
2025-08-21 18:59:26 +05:30
Parthvi Vala 40b7c21135
Add the correction to RCP and RCPTemplate
Signed-off-by: Parthvi Vala <parthvi.vala@suse.com>
2025-08-21 18:54:22 +05:30
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 47ce699f6d
Fix test failure
Signed-off-by: Parthvi Vala <parthvi.vala@suse.com>
2025-07-23 16:15:07 +05:30
Andrea Mazzotti 80eb2ec2a4
Forbid 0 RKE2ControlPlane replicas
Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2025-07-18 09:28:26 +02:00
Yiannis Triantafyllopoulos f40d0a6480
Merge pull request #695 from yiannistri/680-external-datastore
🌱  Add support for external datastore
2025-07-17 09:40:54 +00:00
yiannistri f5fe093dbb
feat: Add support for external datastore 2025-07-16 11:50:07 +01:00
Andrea Mazzotti d5cdbcd674
Implement control plane load balancer exclusion
Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2025-07-15 08:37:36 +02:00
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
Andrea Mazzotti 065a235939
Improve webhooks logging
Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2025-05-23 11:32:39 +02:00
Andrea Mazzotti 1af8ce692c
Reconcile external external owner reference
Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2025-05-12 11:55:11 +02: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 84b433eed1
Fix lint warnings
Signed-off-by: Furkat Gofurov <furkat.gofurov@suse.com>
2025-04-18 22:54:36 +03: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
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
Max Fedotov e55f9175bb
fix linting 2025-03-12 17:39:08 +01: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
Ashley Dumaine a075ace50f
use apierrors for bad request 2025-02-20 10:10:48 -05:00
Ashley Dumaine 5de4a66f9b
Add kubebuilder markers for default and validation structs to prevent generation of DeepCopy methods 2025-02-20 10:10:48 -05:00
Ashley Dumaine 4153ffbfb7
update how webhooks are registered 2025-02-20 10:10:47 -05:00
Ashley Dumaine 0e7c20d99d
bump controller-runtime to 0.20.1, update webhooks and tests 2025-02-20 10:10:47 -05: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
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 f669e0c74a
Allow to distingish legacy CP without etcd management via annotation
Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
2024-10-04 09:05:43 +02:00
Danil-Grigorev 623c87e8d0
Ensure draining is done last
RKE2 uses kubelet local mode

Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
2024-09-19 13:56:05 +02:00
Danil-Grigorev 679d205149
Implement etcd member management in pre-terminate hook
Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
2024-09-16 11:02:51 +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 da2fd6ec82
workaround for https://github.com/kubernetes/code-generator/issues/94
Signed-off-by: Ashley Dumaine <ashley.dumaine@gmail.com>
2024-08-26 10:04:23 -04:00
Ashley Dumaine 2fbd979086
update controller-gen to 0.14.0 and conversion-gen to 0.30.0, regenerate CRDs
Signed-off-by: Ashley Dumaine <ashley.dumaine@gmail.com>
2024-08-26 10:04:23 -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
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
Furkat Gofurov f4b87e2e54
Use new schemebuilder pattern in API types to reduce dependency on CR
Signed-off-by: Furkat Gofurov <furkat.gofurov@suse.com>
2024-06-03 17:30:05 +03: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 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
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
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
Danil Grigorev 7a4225eace
Add List conversion and update copyright
Signed-off-by: Danil Grigorev <danil.grigorev@suse.com>
2024-01-09 11:34:36 +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 911a3f10bb
Introduce fuzzy tests for conversion
Signed-off-by: Danil Grigorev <danil.grigorev@suse.com>
2024-01-08 13:03:27 +01:00