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>
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>
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>
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>
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>