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>
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>
With the recent change to introduce new registration methods we started
to default the `advertiseAddress` to the "registration address" if the
registration method of `address` was used. This caused the kube-api
server to be startedw tith that address. If you then used a VIP/LB
solution like kube-vip or metalb that runs within cluster it caused
pods to not start start as there is a chicken and egg scenario.
This change removes that defaulting and also adds a sample that uses
kube-vip.
Signed-off-by: Richard Case <richard.case@outlook.com>
* e2e: add low number of file descriptors helper tip
Signed-off-by: Luis Rascao <luis.rascao@gmail.com>
* controplane: don't fail status update when no machines available/ready
Failing prevents requeing leading to high bootstrap times of the
controlplane, in most cases the machine is ready and with IP addresses
but the controller is waiting for a full sync.
Signed-off-by: Luis Rascao <luis.rascao@gmail.com>
---------
Signed-off-by: Luis Rascao <luis.rascao@gmail.com>
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>
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>
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>
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>
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>
First commit - drafting data struct docs
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
Added UML file for documenting structs
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
Adding first version of RKE2Config structs
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
Updating go modules because of changes in imports
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
did a go mod tidy
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
re-generated CRDs using make generate
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
fixed refactoring issue in webhook configuration
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
Dot at the end of comment line
Co-authored-by: Alexander Demicev <alexandr.demicev@suse.com>
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
Dot at the end of comment line
Co-authored-by: Alexander Demicev <alexandr.demicev@suse.com>
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
Adding dots in comment end of lines when necessary
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
Small improvements in comment formatting
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
Removed DeployRKE2Commands attribute because of duplicate usage
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
Replaced SecretRef and ConfigMapRef types by the generic v1.ObjectReference type
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
fixed additional issue with webhook refactoring
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
simplified EtcdBackupConfig struct field names
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
removed Snapshotter attribute from RKE2Agent/ServerConfig
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
changed ResolvConf attribute to reference a ConfigMap instead of a string with a path
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
changed EtcdMetricsExposed to EtcdMetricsExposurePolicy to replace bool with enum
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
replaced bool fields with enums as recommended by KubeAPI best practices
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
Capitalize acronym in KubeAPIServer
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
Co-authored-by: Alexander Demicev <alexandr.demicev@suse.com>
Fixed small issues related to capitalization of KubeAPIServer attribute
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
fixed issue of Kubebuilder enum validation + moved validation tags to structs fields instead of types
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
Changed LbServerPort to LoadBalancerPort with type int
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
capitalized some acronym attributes
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
Removed some unnecessary structs and annotations from Registry struct, will use another struct for marshalling yaml
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
Modify TLSConfig for registries to reference a single tls secret instead of three secrets
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
removed duplicate attributes between agent and server, and put them their own common struct
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
removed BootstrapData field in RKE2ConfigStatus struct
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
Small comment changes
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
moved multiple disableXXX attributes to single DisableComponents struct
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
refactoring back to bool and adding constants
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
Changed all Rke2Xxx structs to RKE2Xxx
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
Some changes after testing with tilt. The tilt setup is dependent on a
bug being fixed upstream in capi. Added some initial instructions to the
README to get started.
Signed-off-by: Richard Case <richard.case@outlook.com>
This is the initial scaffolding for the RKE2 provider. It includes a
bootstrap and control plane provider,
Signed-off-by: Richard Case <richard.case@outlook.com>