Commit Graph

930 Commits

Author SHA1 Message Date
Carlos Salas 0abf292041
chore: align code structure to latest linter spec
Signed-off-by: Carlos Salas <carlos.salas@suse.com>
2025-05-27 10:32:40 +02:00
Furkat Gofurov eadfd0278c
Merge pull request #662 from anmazzotti/reduce_test_flakyness
Improve test stability
2025-05-27 07:22:16 +00:00
Andrea Mazzotti 30551855fa
Merge pull request #664 from anmazzotti/add_webhook_logs
Improve webhooks logging
2025-05-26 13:09:34 +00:00
Furkat Gofurov 56f7d8ef14
Merge pull request #660 from dirkmueller/system_cleanup
Simplify service start
2025-05-26 10:38:59 +00:00
Alexander Demicev cc0afe941c
Merge pull request #663 from anmazzotti/fix_etcd_removal
Cleanup workloadCluster usage
2025-05-26 10:37:26 +00:00
Andrea Mazzotti e1492a1916
Improve test stability
Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2025-05-26 09:06:36 +02:00
Dirk Müller 6735d99f6b
Simplify service start
systemctl enable + systemctl start can be combined into one. also
move it after the restorecon. This potentially allows dropping the
setenforce disablement

Signed-off-by: Dirk Müller <dmueller@suse.com>
2025-05-23 14:48:03 +02:00
Andrea Mazzotti 065a235939
Improve webhooks logging
Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2025-05-23 11:32:39 +02:00
Andrea Mazzotti 1becf8bdf9
Cleanup workloadCluster usage
Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2025-05-23 09:14:43 +02:00
Andrea Mazzotti 18d45e5b00
Merge pull request #659 from dirkmueller/main
drop semanage call on nonexisting service
2025-05-23 04:33:59 +00:00
Dirk Müller ec972f0103
drop semanage call on nonexisting service
the rke2 install script installs the service in /etc/systemd/service
and the restorecon call already sets the proper context on it (but since
we start the service beforehand, that doesn't seem to be necessary..).

semanage(1) isn't always preinstalled in the operating system image, and
if this service exists, the relabeling at boot will restore the context.

Signed-off-by: Dirk Müller <dmueller@suse.com>
2025-05-22 14:28:13 +02:00
Furkat Gofurov aa6bbdae5a
Merge pull request #650 from furkatgofurov7/prepare-main-v016
🌱 Prepare main branch for v0.16 development
2025-05-14 18:47:32 +00:00
Andrea Mazzotti 16d730aacc
Merge pull request #651 from anmazzotti/rollout_reason_log_trail
Prevent Machine rollouts before machineTemplate has been updated
2025-05-14 13:56:32 +00:00
Andrea Mazzotti fc3a4c1051
Prevent rollout before machineTemplate has been updated
Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2025-05-14 13:30:44 +02:00
Andrea Mazzotti 243803e91f
Add debug log trail to Machine rollout
Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2025-05-14 10:17:33 +02:00
Furkat Gofurov 017028ea60
Prepare main branch for v0.16 development
Signed-off-by: Furkat Gofurov <furkat.gofurov@suse.com>
2025-05-13 16:51:40 +03:00
Alexander Demicev 5decb9a744
Merge pull request #644 from AbsaOSS/sshd
Move sshd config into included subdir
2025-05-13 10:53:28 +00:00
Furkat Gofurov 293c16e8ab
Merge pull request #646 from anmazzotti/set_owner_reference_machine_template
Reconcile external external owner reference
2025-05-12 12:04:58 +00:00
Andrea Mazzotti 1af8ce692c
Reconcile external external owner reference
Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2025-05-12 11:55:11 +02:00
Andrea Mazzotti 64560c42fa
Merge pull request #645 from anmazzotti/add-kubeconfig-rotate-tests
Add kubeconfig rotate tests
2025-05-09 09:21:48 +00:00
Andrea Mazzotti b36540c9df
Test kubeconfig cert rotation
Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2025-05-08 11:39:34 +02:00
Furkat Gofurov d0a0ed1624
Merge pull request #627 from MaxFedotov/mhc_remediation
 Support RKE2ControlPlane mhc remediation
2025-05-08 07:30:26 +00:00
Max Fedotov 9de452cf26
Rename infrastructure template for remediation test 2025-05-07 14:54:43 +02:00
Max Fedotov a509f5bba5
Rollback changes in makefile and dockerfile 2025-05-07 13:12:59 +02:00
Max Fedotov 3b01b1adc6
Rename all KCP mentions to RKE2ControlPlane. Fix conversion tests. Move cluster-template-rcp-remediation to a separate InfrastructureProvider config 2025-05-07 13:12:59 +02:00
Max Fedotov cf3c22ab65
Support rke2ControlPlane mhc remediation 2025-05-07 13:12:59 +02:00
Dinar Valeev 4ee21dfdc9
Move sshd config into included subdir
By writing into /etc/ssh/sshd_config we override default config which
usually defines include /etc/ssh/sshd_config.d/*.conf. This breaks an
ability to cusomize config further. And disables include any files dropped
into sshd_config.d directory.

This commit moves RKE2 sshd config into subdirectory with 010 index
so it will be loaded first.

Signed-off-by: Dinar Valeev <k0da@opensuse.org>
2025-05-06 12:36:45 +02:00
Alexander Demicev f2d68ed8aa
Merge pull request #641 from alexander-demicev/defaultreplicas
Default RKE2 control plane replicas to 1 if not specified
2025-05-02 17:14:48 +00:00
Alexandr Demicev ae404ceb18
Default RKE2 control plane replicas to 1 if not specified
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2025-05-02 16:09:14 +02:00
Furkat Gofurov 80c7591ce2
Merge pull request #634 from rancher/dependabot/go_modules/github.com/coreos/ignition/v2-2.21.0
chore(deps): Bump github.com/coreos/ignition/v2 from 2.20.0 to 2.21.0
2025-05-02 10:48:15 +00:00
Furkat Gofurov 8f648e2888
Merge pull request #633 from rancher/dependabot/go_modules/github.com/prometheus/client_golang-1.22.0
chore(deps): Bump github.com/prometheus/client_golang from 1.19.1 to 1.22.0
2025-05-02 10:48:00 +00:00
Alexandr Demicev 497a535a7e
Bump generator versions
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2025-05-02 12:01:05 +02:00
Furkat Gofurov c75777ee19
Merge pull request #638 from furkatgofurov7/fix-panic-updateStatus
Fix nil point dereference in `updateStatus` method
2025-05-02 08:36:32 +00:00
Furkat Gofurov 02301ace51
Merge pull request #640 from anmazzotti/fix_flaky_test
Fix flaky test
2025-05-02 07:33:05 +00:00
Andrea Mazzotti 98ddb81596
Fix flaky test
Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2025-05-01 10:57:00 +02:00
Furkat Gofurov 839c75f722
Fix nil point dereference in `updateStatus` method
Signed-off-by: Furkat Gofurov <furkat.gofurov@suse.com>
2025-04-30 18:37:38 +03:00
Alexander Demicev 360c50d5e7
Merge pull request #636 from AbsaOSS/no_semanage
Render rke2-install without semanage for flatcar
2025-04-30 09:22:05 +00:00
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
Danil Grigorev 0594e60a01
Merge pull request #637 from a-bouts/fix-gzip-cloud-init
Allow using Gzip and GzipBase64 encoding in case of cloud-init format
2025-04-29 09:55:38 +00:00
abouts 1fa458e659
Gzip is not supported only for ignition format 2025-04-28 23:36:03 +02:00
dependabot[bot] 262623ff95
chore(deps): Bump github.com/coreos/ignition/v2 from 2.20.0 to 2.21.0
Bumps [github.com/coreos/ignition/v2](https://github.com/coreos/ignition) from 2.20.0 to 2.21.0.
- [Release notes](https://github.com/coreos/ignition/releases)
- [Changelog](https://github.com/coreos/ignition/blob/main/docs/release-notes.md)
- [Commits](https://github.com/coreos/ignition/compare/v2.20.0...v2.21.0)

---
updated-dependencies:
- dependency-name: github.com/coreos/ignition/v2
  dependency-version: 2.21.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-28 02:22:58 +00:00
dependabot[bot] 9ba59a3f56
chore(deps): Bump github.com/prometheus/client_golang
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.19.1 to 1.22.0.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.19.1...v1.22.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-version: 1.22.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-28 02:22:46 +00: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
Alexander Demicev cc09c2b308
Merge pull request #629 from furkatgofurov7/prepare-main-v015
🌱 Prepare main branch for v0.15 development
2025-04-23 13:33:30 +00:00
Furkat Gofurov 60798fe92e
Prepare main branch for v0.15 development
Signed-off-by: Furkat Gofurov <furkat.gofurov@suse.com>
2025-04-23 15:15:04 +03: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
Alexander Demicev 11415e0ca9
Merge pull request #599 from furkatgofurov7/add-nodeDeletionTimeout
⚠️ In-place propagation support for RKE2ControlPlane
2025-04-22 09:55:10 +00:00
Furkat Gofurov 84b433eed1
Fix lint warnings
Signed-off-by: Furkat Gofurov <furkat.gofurov@suse.com>
2025-04-18 22:54:36 +03:00