Andrea Mazzotti
1c21683f6a
Use DefaulterRemoveUnknownOrOmitableFields
...
Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2025-09-05 15:07:36 +02:00
Parthvi Vala
9206024b77
Add defaulter to RKE2ConfigTemplate webhook; move ignored fields
...
deletion to webhook function
Co-authored-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
Signed-off-by: Parthvi Vala <parthvi.vala@suse.com>
2025-08-26 15:01:09 +05:30
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
0d2c3754df
Add unit test
...
Signed-off-by: Parthvi Vala <parthvi.vala@suse.com>
2025-08-21 18:54:12 +05:30
Parthvi Vala
beee8a6bfa
Move the cleanup code to webhook
...
Signed-off-by: Parthvi Vala <parthvi.vala@suse.com>
2025-08-21 18:54:05 +05:30
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
Parthvi Vala
8b70f93fa8
Fix lint failures
...
Signed-off-by: Parthvi Vala <parthvi.vala@suse.com>
2025-07-22 12:18:51 +05:30
Parthvi Vala
17bb9bb994
Add omitempty to Secret and ConfigMap file source; re-add webhook validation
...
Signed-off-by: Parthvi Vala <parthvi.vala@suse.com>
2025-07-22 11:46:54 +05:30
Parthvi Vala
53e97f43f5
fix linter failure
2025-07-17 18:51:36 +05:30
Parthvi Vala
1700178b0c
Add conversion functions
...
Signed-off-by: Parthvi Vala <parthvi.vala@suse.com>
2025-07-16 15:50:33 +05:30
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
c0179a2c1b
Do not default GzipUserData field to false in the webhook
...
Signed-off-by: Furkat Gofurov <furkat.gofurov@suse.com>
2025-07-03 11:40:54 +03: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
abouts
1fa458e659
Gzip is not supported only for ignition format
2025-04-28 23:36:03 +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
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
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
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
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
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
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
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
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
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
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
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
df0d88e916
Update files with lint fixes
...
Signed-off-by: Danil Grigorev <danil.grigorev@suse.com>
2023-10-30 16:49:54 +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
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
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
85372d9be5
Fix breaking changes after updating dependecies
...
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2023-10-11 12:16:58 +02: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
Luis Rascao
4fe5e53aa5
fixup! chore(deps): Bump github.com/onsi/ginkgo/v2 from 2.9.1 to 2.9.4
...
Signed-off-by: Luis Rascao <luis.rascao@gmail.com>
2023-05-22 11:44:46 +01:00
Alexander Demicev
21892040ed
Validate/default control plane object with webhooks ( #123 )
...
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2023-03-28 22:43:30 +02:00
Alexandr Demicev
67d46fedee
Regenerate manifests
...
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2023-03-27 17:42:12 +02:00
Alexandr Demicev
5ae37bda04
Validate ignition config using webhook
...
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2023-03-27 17:42:12 +02:00
Alexandr Demicev
5c1c4b745d
Add ignition format to the API
...
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