Commit Graph

78 Commits

Author SHA1 Message Date
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
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
Danil Grigorev e27bcbd1c0
Merge pull request #265 from Danil-Grigorev/reconcile-etcd-members-scale-down
🐛 Reconcile etcd members on control plane scale down
2024-04-19 12:46:32 +02:00
Marco Chiappero 547a88df4c Let the rke2-install.sh fail for pipe errors and undefined variables
The rke2-install.sh script sets the exit on error flag ('set -e'), however
the script might fail to exit when a command in a pipe fails.
Add the '-u' and '-o pipefail' flags to better identify errors within the
install script.

Signed-off-by: Marco Chiappero <marco.chiappero@suse.com>
2024-04-17 11:56:07 +00:00
Danil Grigorev 9025c940c4
Update licences and fix lint errors
Signed-off-by: Danil Grigorev <danil.grigorev@suse.com>
2024-04-12 12:30:48 +02:00
Danil Grigorev 6fc88d9288
Fix linter errors
Signed-off-by: Danil Grigorev <danil.grigorev@suse.com>
2024-04-08 21:35:56 +02:00
Danil Grigorev 287254ad85
Add tests for etcd management
Signed-off-by: Danil Grigorev <danil.grigorev@suse.com>
2024-04-08 21:35:56 +02:00
Danil Grigorev 8c04dbc264
Add bootstrap commnad to store etcd certificates from the node
Signed-off-by: Danil Grigorev <danil.grigorev@suse.com>
2024-04-08 21:35:55 +02:00
Furkat Gofurov 0402c6eeea
Fix lint issues in the codebase
Signed-off-by: Furkat Gofurov <furkat.gofurov@suse.com>
2024-03-19 17:24:46 +02:00
Furkat Gofurov 400e4d9f8b
Improve patch helper error handling
Signed-off-by: Furkat Gofurov <furkat.gofurov@suse.com>
2024-03-19 14:54:30 +02:00
Alexander Demicev 0e94e1bec6
Merge pull request #273 from alexander-demicev/filesfromsecret
Fetch additional files from secrets
2024-02-27 12:28:22 +01:00
Alexandr Demicev 7a85e9f39a
Fetch additional files from secrets
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2024-02-27 11:42:37 +01: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
Carlos Salas 4f5c9935f4
fix: rke2 registration token generated twice
Signed-off-by: Carlos Salas <carlos.salas@suse.com>
2024-01-16 12:28:43 +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
Alexandr Demicev 3cd309f909
Create bootstrap-success before setting selinux to enforcing mode
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2023-11-27 18:27:39 +01:00
Alexandr Demicev e1d26f6108
Fix selinux in ignition for SLE micro
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2023-11-22 14:46:53 +01:00
Danil Grigorev 8af997563f
Merge pull request #190 from Danil-Grigorev/arbitrary-cloud-init
Add arbitrary data field
2023-11-16 10:20:51 +01:00
Danil Grigorev f62ad18a52
Add tests for arbitrary data field
Signed-off-by: Danil Grigorev <danil.grigorev@suse.com>
2023-11-15 11:59:11 +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
Alexandr Demicev a511cdd300
Run ignition bootstrap script only once
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2023-11-13 14:27:12 +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
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
Alexandr Demicev 244768ff83
Use single structure and function for CP ignition generation
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2023-05-09 16:32:30 +02:00
Alexandr Demicev 00c1b759d2
Add tests for ignition bootstrap data
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2023-03-30 19:58:04 +02:00
Alexandr Demicev 0a8d67900a
Support using ignition format for generating user data
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2023-03-30 19:57:59 +02: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 9cf0e418d7
Change config field name when generating cloud config
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
Richard Case 926bea3ce2
feat: initial e2e tests
This adds initial e2e tests for the RKE2 providers. There are still lots
more e2e tests that need to be added.

Signed-off-by: Richard Case <richard.case@outlook.com>
2023-03-27 15:09:15 +01: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
Alexander Demicev 34cdd1518c
Merge pull request #115 from belgaied2/constants-cleanup
moved useful constants to own package
2023-03-22 15:42:38 +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 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