Commit Graph

52 Commits

Author SHA1 Message Date
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
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 0cb534163a
implemented air gapped installation with API Airgapped option
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
2023-01-11 15:52:09 +00:00
Mohamed Belgaied b575a7c0b3
Working multi-controlplane and multi-worker
Signed-off-by: Mohamed Belgaied <belgaied2@hotmail.com>
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
2023-01-11 15:50:40 +00:00
Mohamed Belgaied Hassine 9c3e70f61e
working 1 node deployment
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
2023-01-11 15:50:40 +00:00
Mohamed Belgaied Hassine 9a1a2cc718
prepare for rebase on main
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
2023-01-11 15:50:38 +00:00
Alexander Demicev d3056ea326
Merge pull request #51 from alexander-demicev/config
Generate config for agent and server
2022-12-20 14:14:42 +01:00
Alexandr Demicev fa4235450b
Minor API improvements
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2022-12-05 16:32:48 +01:00
Alexandr Demicev a3c13b9c94
Fix license year and add where its missing
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2022-11-24 16:52:38 +01:00
Mohamed Belgaied Hassine 85232c3a0e
fixing review feedback and removing references to kubeadm and coredns
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
2022-11-24 14:38:32 +00:00
Mohamed Belgaied Hassine f426825fc2
Adding Draft implementation of Bootstrap provider
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
2022-11-23 20:41:14 +00:00
Alexandr Demicev 9d07cc986e
Remove leftovers after scaffolding
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2022-11-14 17:16:20 +01:00
Mohamed Belgaied Hassine 57c6795ecf
Refining the Control Plane API
Moved RKE2ServerConfig relevant parts to Control Plane API

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

standardized comment spacing to a single space

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

Added ManifestsConfigMapReference to the control plane for the possibility to automatically deploy manifests

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

Added NTP Field to the common node configuration

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

Adding Status fields in the Control API and clarifying bootstrap import

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

Adding fields from RKE2ConfigSpec to RKE2ControlPlaneSpec and removing RKE2CommonNodeConf struct

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

fixed LoadBalancerPort json name

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

Removed fields for requests and limits of the control plane components from the API

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

Removed some unnecessary comments generated by kubebuilder

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
2022-11-14 14:22:24 +00:00