Commit Graph

125 Commits

Author SHA1 Message Date
Dinar Valeev 7fcabf3980
Render rke2-install without semanage for flatcar
Signed-off-by: Dinar Valeev <k0da@opensuse.org>
2025-04-29 15:28:32 +02:00
Furkat Gofurov 8788b0e822
Merge pull request #631 from AbsaOSS/butane_flatcar
🐛 Ignition: Don't add /opt fs on flatcar
2025-04-29 10:32:42 +00:00
abouts 1fa458e659
Gzip is not supported only for ignition format 2025-04-28 23:36:03 +02:00
Dinar Valeev 21f04a095c
Ignition: Don't add /opt fs on flatcar
Signed-off-by: Dinar Valeev <k0da@opensuse.org>
2025-04-24 13:24:45 +02:00
Furkat Gofurov 2479d29ffc
Merge pull request #624 from andybavier/concurrency
Enable concurrency in controllers
2025-04-23 09:13:12 +00:00
Andy Bavier ee0a8295b2
Enable concurrency in controllers 2025-04-22 08:08:53 -07:00
Furkat Gofurov 149e533a93
In-place propagation support for RKE2ControlPlane
Signed-off-by: Furkat Gofurov <furkat.gofurov@suse.com>
2025-04-18 19:50:31 +03:00
Andrea Mazzotti 3ad0b591ae
Bump golangci-lint to v2
Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2025-04-08 09:06:01 +02:00
Alexander Demicev d6992a93ef
Merge pull request #595 from rancher/dependabot/go_modules/golang.org/x/net-0.36.0
chore(deps): Bump golang.org/x/net from 0.33.0 to 0.36.0
2025-03-21 11:08:51 +00: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
Max Fedotov 1b561ebe80
use RegistrationAddress for first controlPlane node if it is specified 2025-03-17 22:38:06 +01:00
Andrea Mazzotti ef1a157fe8
MachinePool support
Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2025-02-26 15:57:57 +01:00
Furkat Gofurov 481c11ece3
Fix linting issues in the codebase
Signed-off-by: Furkat Gofurov <furkat.gofurov@suse.com>
2025-02-21 13:48:48 +02: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 7268382f04
Add indentation to generated RKE2 config
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2025-01-10 10:59:40 +01:00
Danil-Grigorev 24ca266052
Format additionalUserData maps and lists to ensure correct YAML output
Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
2025-01-09 14:59:10 +01:00
Furkat Gofurov 1d573ffce5
Bump kustomize to v5 version
Signed-off-by: Furkat Gofurov <furkat.gofurov@suse.com>
2025-01-08 13:23:16 +02:00
Danil-Grigorev 3949bc18c8
Bump controller-gen version to 0.16.1
Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
2024-12-20 12:59:40 +01:00
Danil-Grigorev 40fb968264
Migrate to cluster cache from deprecated remote.ClusterCacheTracker
Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
2024-12-20 12:59:40 +01:00
Furkat Gofurov 4ff91e622c
Pass clusterCacheTrackerClientQPS/clusterCacheTrackerClientBurst to manager
Signed-off-by: Furkat Gofurov <furkat.gofurov@suse.com>
2024-11-12 14:19:24 +02:00
Furkat Gofurov 8219e8de82
Bump CAPI to v1.8.5
Signed-off-by: Furkat Gofurov <furkat.gofurov@suse.com>
2024-11-12 14:19:22 +02: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
Danil-Grigorev f669e0c74a
Allow to distingish legacy CP without etcd management via annotation
Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
2024-10-04 09:05:43 +02:00
Danil-Grigorev 961690dcb4
Always use CAPI generated certificates for etcd management
- Perform etcd memebership management only when the local certificates
  were created, and skip otherwise.

Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
2024-10-02 15:24:18 +02:00
Steven Hardy 63e6500c62
bootstrap: switch to chrony for ignition config
Leap/SLEMicro don't include ntpd so the current approach doesn't work
2024-09-11 17:21:18 +01:00
Furkat Gofurov 1954b23f66
Merge pull request #301 from AshleyDumaine/cis-enum
Add "cis "to the cis-profile enum to support 1.29+
2024-08-26 18:34:01 +03: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 bc6cb163b1
Merge pull request #402 from hardys/issues/401 2024-08-23 16:51:00 +03:00
Steven Hardy e7be901d32
ignition: mount /opt subvolume
This is not mounted by default, therefore we cannot write the
/opt/rke2-cis-script.sh script.

So add configuration to mount the subvolume, as described in
https://en.opensuse.org/Portal:MicroOS/Ignition#Mounts

Signed-off-by: Steven Hardy <steven.hardy@suse.com>
2024-08-23 11:46:43 +01:00
Steven Hardy 7a87cd46fc
Ignition: move rke2-cis-script.sh to after RKE2 install
Otherwise the script fails, this aligns with how the cloud-init
script works.

Signed-off-by: Steven Hardy <steven.hardy@suse.com>
2024-08-23 11:46:43 +01:00
Steven Hardy 9859c5adb5
Overwrite files with format: ignition
This aligns with the default cloud-init behavior and enables e.g
overwriting distro-default files via RKE2ConfigTemplate using the
spec.template.spec.files API.

Signed-off-by: Steven Hardy <steven.hardy@suse.com>
2024-08-23 11:35:19 +01:00
Simplysoft GmbH 1412bb82cf
fix: use absolute path to rke2's kubectl binary
ensures that cluster-etcd secret can be created if host does not have kubectl installed

fixes #403

Signed-off-by: Simplysoft GmbH <1588210+simplysoft@users.noreply.github.com>
2024-08-13 16:11:29 +02:00
Ashley Dumaine 70ef7ad5b7 update manager configuration to be in line with CAPI for security context 2024-08-07 11:31:17 -04:00
Ashley Dumaine 47c04ae362 add securityContext to the manager containers 2024-07-31 15:04:56 -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
Alexandr Demicev 484765c7f8
Change organisation name in Makefile
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2024-07-10 13:23:55 +02:00
Alberto Morgante Medina b3e4e9c35f
fix issue with rke2-install
Signed-off-by: Alberto Morgante Medina <alberto.morgante@suse.com>
2024-07-01 16:28:38 +02: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
Furkat Gofurov 2838bb3cf9
Deprecate '--metrics-bind-addr' flag and introduce the new '--diagnostics-address' and '--insecure-diagnostic' flags.
Signed-off-by: Furkat Gofurov <furkat.gofurov@suse.com>
2024-06-03 17:30:05 +03:00
Danil Grigorev 98db7f6864
Merge pull request #325 from Danil-Grigorev/re-rollout-cp-on-commands-change
🐛 Check MachineConfig spec for full equality with Rke2CPSpec
2024-05-20 18:46:40 +02:00
Danil Grigorev c66e9b990c
Review and update incorrectly returned results
Signed-off-by: Danil Grigorev <danil.grigorev@suse.com>
2024-05-17 15:12:56 +02:00
Danil Grigorev da42f22baf
Check MachineConfig spec for full equality with Rke2CPSpec
Signed-off-by: Danil Grigorev <danil.grigorev@suse.com>
2024-05-17 10:28:57 +02: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 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