Commit Graph
12171 Commits
Author SHA1 Message Date
Travis Nielsen ea4cb43edf Merge pull request #15659 from subhamkrai/fix-cve-net
ci: update x/net version to fix snyk issue
2025-04-07 07:13:58 -06:00
subhamkrai 4ae4741a82 ci: update x/net version to fix snyk issue
snyk ci failind due to older version of x/net, it's need to be in 0.38

Signed-off-by: subhamkrai <srai@redhat.com>
2025-04-07 14:47:17 +05:30
Travis Nielsen 10137ab5ca Merge pull request #15653 from travisn/mergify-automerge
ci: Enable automerge for 1.17 backports
2025-04-04 13:53:53 -06:00
Blaine Gardner 43af49b429 Merge pull request #15652 from BlaineEXE/nfs-io-flusher-fail
nfs: set allow_set_io_flusher_fail=true in config
2025-04-04 13:47:37 -06:00
Travis Nielsen 276431d58b ci: enable automerge for 1.17 backports
Merify requires the exact names of the successful CI actions
for automerge. The linux-build actions had an incorrect version
so the 1.17 backports were not being automerged.

Also now the list of actions for automerge are alphabetized.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2025-04-04 19:57:54 +01:00
Blaine Gardner 947ca8b458 nfs: set allow_set_io_flusher_fail=true in config
NFS-Ganesha 6.1 requires this config to be set to allow it to run in a
non-privileged container so it doesn't hit a permission failure. As long
as the ganesha.nfsd process isn't run with the `-x` option, earlier
versions of NFS-Ganesha that don't have this config won't complain.

Related cephadm PR: https://github.com/ceph/ceph/pull/60077

This may be necessary for supporting future Ceph Squid versions
according to discussions here:
https://github.com/ceph/ceph-container/issues/2246

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
2025-04-04 12:41:11 -06:00
Travis Nielsen e6142d8a4c Merge pull request #15445 from sivukhin/small-bug-fixes
Fixes for the govanish linter issues
2025-04-04 12:11:17 -06:00
Blaine Gardner f3645520b6 Merge pull request #15563 from jhoblitt/feature/generic-predicates
core: typed watch handlers and predicates
2025-04-04 11:17:09 -06:00
Travis NielsenandNikita Sivukhin 71a4fce87b core: use filter only if its set to non empty string
Also check for the empty namespace instead of an
empty name which was incorrect.

Co-authored-by: Nikita Sivukhin <sivukhin@turso.tech>
Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2025-04-04 18:16:07 +01:00
Joshua Hoblitt 9f1ed201db core: typed watch handlers and predicates
All existing controller runtime watches are converted to use "typed"
handlers and predicates instead of operating on `client.Object`.  The
intent is to be bug for bug equivalent with the existing logic while
replacing run time type assertions and switch statements with compile
time type constraints and type casts. In several cases, functions using
assertions were split up such that each function only handles a single
Kind at a time. It is hoped that this will improve readability and
maintainability while facilitating future refactoring such as migrating
some watches to using IndexFields.

Of particular note is that the massive switch statement in
`WatchControllerPredicate()`  from
`pkg/operator/ceph/controller/predicate.go` has been replaced with
generics, reflection, and splitting the obc logic into its own predicate
function. There are still many helper functions operating on
`client.Object`. These were not updated unless required by the compiler
in order to limit the size of this change. The type safety of these
funcs should be improved as followup work.

 It is strongly suggested that going forward, handlers and predicates
 only handle a single Kind (generic or not) and that switches / type
 assertions are heavily discouraged or forbidden. This PR removed all
 but a single switch statement in a predicate, which should be addressed
 in future work.

Signed-off-by: Joshua Hoblitt <josh@hoblitt.com>
2025-04-04 09:40:56 -07:00
Santosh Pillai 2dab3d3832 Merge pull request #15645 from parth-gr/fix-mon
mon: fix mon rbac for endpoint slice
2025-04-04 12:37:32 +05:30
parth-gr e7dbab3513 mon: fix mon rbac for endpoint slice
a newly dynamic dns resolution code
was added by https://github.com/rook/rook/pull/15522
Fixing rbac of it, as current rbac needs
a sub resource `restricted`

Signed-off-by: parth-gr <partharora1010@gmail.com>
2025-04-04 11:59:08 +05:30
Travis Nielsen a0e925dfdb Merge pull request #15636 from patrostkowski/feature/mgr-module-configs-15559
operator: decouple mon and mgr post-startup operations
2025-04-03 14:31:41 -06:00
Blaine Gardner 1f787d77cc Merge pull request #15359 from jhoblitt/feature/cephobjectstoreuser-creds
object: add CephObjectStoreUser.spec.keys
2025-04-03 12:57:26 -06:00
Joshua Hoblitt 6b2c357871 object: add CephObjectStoreUser.spec.keys
Signed-off-by: Joshua Hoblitt <josh@hoblitt.com>
2025-04-03 09:09:01 -07:00
Blaine Gardner e349a81a17 Merge pull request #15624 from parth-gr/rgw-ex
object: updated cephobjectstore zone spec
2025-04-02 09:47:31 -06:00
subham rai 3e1302a472 Merge pull request #15610 from alingse/patch-1
fix call errors.Wrapf with a nil value error after check another err
2025-04-02 20:32:07 +05:30
Patryk Rostkowski 44a2eaf02f operator: decouple mon and mgr post-startup operations
Fixes an ordering issue where spec.cephConfig settings failed to apply
because the manager wasn't yet running. Moved the config logic from
postMonStartupActions() to a new postMgrStartupActions() to ensure
the mgr is ready before applying config, allowing successful reconciliation.

Signed-off-by: Patryk Rostkowski <patrostkowski@gmail.com>
2025-04-02 14:35:06 +02:00
parth-gr c47c6c5072 object: updated cephobjectstore zone api
if no multisite is used, rook creates the zone,
in the same name as cephobjectstore cr,

But cephobjectstore zone spec
shows name as empty string("")

Which is confusing for the end user, so
to remove the confusion by updating the
api defination

Signed-off-by: parth-gr <partharora1010@gmail.com>
2025-04-02 16:50:57 +05:30
Blaine Gardner 2348ff689c Merge pull request #15459 from subhamkrai/implicit-ns
rbdmirror: mirroring b/w implicit and defined ns
2025-04-01 12:56:06 -06:00
Blaine Gardner 85440169dd Merge pull request #15554 from ragnard/kafka-topic-params
rgw: Support Kafka auth mechanism parameter
2025-04-01 10:44:36 -06:00
Blaine Gardner 25c343be1f Merge pull request #15622 from obnoxxx/fix-15583
tests: fix intermittent failure of TestWaitForDeploymentsToUpdate
2025-04-01 08:45:15 -06:00
Michael AdamandBlaine Gardner 0c9e7a384b tests: fix intermittent failure of TestWaitForDeploymentsToUpdate
The unit test TestWaitForDeploymentsToUpdate intermittently failed
in the CI. The suspected root cause is clow CPUs in github CI runners.

This fixes the intermittent CI failure by increasing the timings in the test
code.

Resolves: #15583

Co-Authored-By: Blaine Gardner <blaine.gardner@ibm.com>
Signed-off-by: Michael Adam <obnox@samba.org>
2025-04-01 09:16:31 +02:00
subham rai e6e79d9e41 Merge pull request #15614 from rook/dependabot/github_actions/github/codeql-action-3.28.13
build(deps): bump github/codeql-action from 3.28.12 to 3.28.13
2025-04-01 11:31:46 +05:30
subham rai 174c86093f Merge pull request #15615 from rook/dependabot/github_actions/actions/setup-python-5.5.0
build(deps): bump actions/setup-python from 5.4.0 to 5.5.0
2025-04-01 11:31:22 +05:30
subham rai 7b554a9fc7 Merge pull request #15616 from rook/dependabot/github_actions/dcarbone/install-jq-action-3.1.1
build(deps): bump dcarbone/install-jq-action from 3.0.1 to 3.1.1
2025-04-01 11:30:50 +05:30
subhamkrai 420178fe3e rbdmirror: mirroring b/w implicit and defined ns
this commit add support for mirroring b/w implicit rados namespace and
defined rados namespace. To support this, rook will treat `<implicit>`
name on cephblockpool as `""` empty string. This will allow mirroring
b/w implicit and defined radosnamespace.

Signed-off-by: subhamkrai <srai@redhat.com>
2025-04-01 10:46:06 +05:30
Blaine Gardner 9ac3101968 Merge pull request #15619 from travisn/release-image-tag
build: Append arch to tagged image name
2025-03-31 12:07:36 -06:00
Travis Nielsen 830b36ce97 build: append arch to tagged image name
The release scripts expect the rook image to be tagged
with the arch in the suffix, reverting this change to
the tag that was a regression from the squid base image
changes.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2025-03-31 11:36:03 -06:00
Travis Nielsen 9e1c78dfd5 Merge pull request #15522 from patrostkowski/feature/mon-active-ep-14986
mon: manage endpoints containing set of mon ip addresses
2025-03-31 10:42:29 -06:00
Patryk Rostkowski 08199b27c9 mon: manage endpoints containing set of mon ip addresses
The change creates and manages an Endpoints resource
with the current Ceph monitor (mon) IPs, allowing
clients to resolve mon IPs via DNS without relying
on the rook-ceph-mon-endpoints ConfigMap.

Signed-off-by: Patryk Rostkowski <patrostkowski@gmail.com>
2025-03-31 18:05:37 +02:00
Blaine Gardner e783264652 Merge pull request #15588 from sp98/rgw-client-location
rgw: RGW read affinity for localized reads
2025-03-31 09:26:20 -06:00
Santosh Pillai deb010c32e rgw: support read affinty for localized reads
allows selecting Read Affinity policy from the ObjectStore API
aets `--crush-location=host` for RGW daemons.

Signed-off-by: Santosh Pillai <sapillai@redhat.com>
2025-03-31 18:24:32 +05:30
dependabot[bot] 4b801f3604 build(deps): bump dcarbone/install-jq-action from 3.0.1 to 3.1.1
Bumps [dcarbone/install-jq-action](https://github.com/dcarbone/install-jq-action) from 3.0.1 to 3.1.1.
- [Release notes](https://github.com/dcarbone/install-jq-action/releases)
- [Commits](https://github.com/dcarbone/install-jq-action/compare/e397bd87438d72198f81efd21f876461183d383a...f0e10f46ff84f4d32178b4b76e1ef180b16f82c3)

---
updated-dependencies:
- dependency-name: dcarbone/install-jq-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-31 12:39:16 +00:00
dependabot[bot] c48da16ab3 build(deps): bump actions/setup-python from 5.4.0 to 5.5.0
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5.4.0 to 5.5.0.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/42375524e23c412d93fb67b49958b491fce71c38...8d9ed9ac5c53483de85588cdf95a591a75ab9f55)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-31 12:39:14 +00:00
dependabot[bot] 6fa9ea91f7 build(deps): bump github/codeql-action from 3.28.12 to 3.28.13
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.28.12 to 3.28.13.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/5f8171a638ada777af81d42b55959a643bb29017...1b549b9259bda1cb5ddde3b41741a82a2d15a841)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-31 12:39:11 +00:00
alingse fe225bdcae cephfsmirror: fix use wrong err
Signed-off-by: alingse <alingse@foxmail.com>
2025-03-30 05:01:37 +00:00
Travis Nielsen 7908e52a41 Merge pull request #14792 from travisn/squid-base
build: Update base operator image to squid
2025-03-28 14:14:26 -06:00
Blaine Gardner fad431b38b Merge pull request #15598 from travisn/upgrade-1.17
tests: Upgrade from rook 1.16 to master
2025-03-28 14:05:20 -06:00
Blaine Gardner 4ad037aa62 Merge pull request #15591 from jhoblitt/plumbing/golangci-lint
core: replace gofmt with golangci-lint
2025-03-28 12:36:54 -06:00
Travis Nielsen 721fe4ff7d test: include rgw zone flags for endpoint validation
The rgw endpoint validation requires the zone flags to be passed
when the admin user is in a non-default zone.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2025-03-27 17:41:20 -06:00
Travis Nielsen a6c4feb0af build: update base operator image to squid
With the stable release of v19.2.1, we update the Rook
operator base image to use this version to ensure
compatibility of ceph commands, in particular for
radosgw-admin.

Images pushed to the ceph quay repo are now manifested
so we can use the --platform flag when building the
docker image instead of pulling from separate repos.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2025-03-27 14:30:43 -06:00
Travis Nielsen d3cb7271a7 tests: upgrade from rook 1.16 to master
The upgrade tests in master have been upgrading from 1.15 to
master. In anticipation of the v1.17 release, we change
the upgrade tests to start from v1.16 to test if there
are any regressions in the supported upgrades.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2025-03-27 13:06:55 -06:00
Travis Nielsen 456855ded8 Merge pull request #15597 from travisn/mergify-1.17
ci: Add 1.17 branch to mergify backports
2025-03-27 12:53:35 -06:00
Travis Nielsen 468dd91b29 ci: add 1.17 branch to mergify backports
For the new 1.17 branch, configure mergify to open
backport PRs and automatically merge to the 1.17
branch.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2025-03-27 11:29:30 -06:00
Travis Nielsen 8f98f9eccb ci: remove 1.13 branch from mergify backports
1.13 backports are no longer necessary to support,
so disable them from the mergify bot.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2025-03-27 11:27:07 -06:00
Travis Nielsen 1b9f9aa7ff Merge pull request #15594 from BlaineEXE/gofumpt-vscode
build: add enable gofumpt in suggested vscode conf
v1.17.0-alpha.0
2025-03-27 11:07:06 -06:00
Joshua Hoblitt b721c30dd1 core: fix golangci-lint warn caused by comment in nolint directive
Resolves this warning:

    WARN [runner/nolint_filter] Found unknown linters in //nolint directives: just configuration keys., value not credential

Signed-off-by: Joshua Hoblitt <josh@hoblitt.com>
2025-03-27 09:43:16 -07:00
Blaine Gardner 58724cbe12 build: add enable gofumpt in suggested vscode conf
Enable gofumpt formatter in the recommended vscode settings.

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
2025-03-27 10:06:37 -06:00
Joshua Hoblitt c5f59db859 core: replace gofmt with golangci-lint
This has the effect of running gofmt and gofumpt at the same time.

Signed-off-by: Joshua Hoblitt <josh@hoblitt.com>
2025-03-26 16:17:37 -07:00