Commit Graph
12368 Commits
Author SHA1 Message Date
Blaine Gardner d5c4eca3fb core: ensure consistent LeastUptodateDaemonVersion
LeastUptodateDaemonVersion() unmarshals Ceph's daemon versions JSON
output into `map[string]<type>` maps which are not guaranteed to iterate
in the same order as output by Ceph. Fix this method to no longer assume
iteration order is the same order as Ceph's output.

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
2025-06-03 09:10:18 -06:00
Travis Nielsen 6349ec9888 Merge pull request #15922 from travisn/tentacle-ci
ci: Test tentacle devel in daily builds
2025-06-02 10:04:53 -06:00
subham rai bad0d7df77 Merge pull request #15929 from rook/dependabot/github_actions/ossf/scorecard-action-2.4.2
build(deps): bump ossf/scorecard-action from 2.4.1 to 2.4.2
2025-06-02 20:52:08 +05:30
dependabot[bot] 6155ec22af build(deps): bump ossf/scorecard-action from 2.4.1 to 2.4.2
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.4.1 to 2.4.2.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](https://github.com/ossf/scorecard-action/compare/f49aabe0b5af0936a0987cfb85d86b75731b0186...05b42c624433fc40578a4040d5cf5e36ddca8cde)

---
updated-dependencies:
- dependency-name: ossf/scorecard-action
  dependency-version: 2.4.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-02 13:30:43 +00:00
Santosh Pillai cf5bbd04ae Merge pull request #15926 from parth-gr/fix-nfs-short-name
nfs: fix nfs short name
2025-06-02 14:29:02 +05:30
parth-gr 9a0490982e nfs: fix nfs short name
nfs short name and crd name was same
which was conflicting,
remove the short name cephnfs as it can
be already called by the crd name

Signed-off-by: parth-gr <partharora1010@gmail.com>
2025-06-02 13:27:24 +05:30
Travis Nielsen 8f20797239 ci: update daily ci to run on latest k8s
The daily ci is only running on K8s 1.28.4, now update
it to 1.33.1

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2025-05-30 13:52:56 -06:00
Travis Nielsen d252466f6f ci: test tentacle devel in daily builds
With the tentacle release approaching, let's start
running the Rook tests against the tentacle devel
images to catch if any issues.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2025-05-30 13:52:56 -06:00
Travis Nielsen a44940d924 Merge pull request #15887 from travisn/debug-log-label
osd: Debug log for long image names in label
2025-05-30 13:34:25 -06:00
Travis Nielsen 232bf862a0 Merge pull request #15909 from parth-gr/add-do-not-reconcile-master
nfs: fix the skip reconcile call
2025-05-30 11:11:11 -06:00
parth-gr 79f44a4660 nfs: fix the skip reconcile call
currently nfs is used as the unique selector
for daemon id, which returns  nfs: ocs-storagecluster-cephnfs-a

Updating the has() to function to check the same label value
(n.Name + "-" + id)

Signed-off-by: parth-gr <partharora1010@gmail.com>
2025-05-30 09:11:49 +05:30
Travis Nielsen a82d14335c Merge pull request #15908 from synthe102/master
chart: quote object store ingress host
2025-05-29 11:13:04 -06:00
Travis Nielsen 41c4d4dd20 Merge pull request #15907 from subhamkrai/fix-dmcrypt-env-secret
osd: don't set dmcrypt env in prepare pod job spec
2025-05-29 09:10:11 -06:00
subhamkrai d86aa28f30 osd: don't set dmcrypt env in prepare pod job spec
this commit remove the code which sets the dmcrypt encryption
key from secret as environment variable in the prepare pod job
spec. Now, the env will be set under function `setKEKinEnv`, which
tries to reads secret from k8s first method `c.IsK8s()`under
`GetSecret` and then check for KMS to ready and apply env directly.

Signed-off-by: subhamkrai <srai@redhat.com>
2025-05-29 14:31:33 +05:30
synthe102 81d27753f2 helm: quote object store ingress host
This change allows to use wildcard for object ingress configuration.
Allows to use virtual-host style bucket URLs with ingress.

Signed-off-by: synthe102 <leonard@suslian.engineer>
2025-05-29 08:30:28 +00:00
Travis Nielsen 13c9f8dbd3 Merge pull request #15903 from OdedViner/fix-cephcluster-comment
core: fix comment for reconcilecephcluster
2025-05-28 13:47:39 -06:00
Oded Viner 0b988e4e05 core: fix comment for reconcilecephcluster
update comment to correctly state that reconcilecephcluster
manages the cephcluster object, not cephfilesystem.

Signed-off-by: Oded Viner <oviner@redhat.com>
2025-05-28 21:48:56 +03:00
Travis Nielsen 1d93da0987 Merge pull request #15889 from patrostkowski/feature/skip-nfs-15876
nfs: skip NFS daemon reconciliation when labeled with skip-reconcile
2025-05-27 16:11:08 -06:00
Travis Nielsen 80ef0a2861 Merge pull request #15896 from cbarria/fix-staticcheck-ST1019
core: fix golangci-lint check ST1019
2025-05-27 16:09:28 -06:00
Carlos Barria c63ebbe0e3 core: fix golangci-lint check ST1019
This change cleans up and standardizes import statements across the Ceph operator code. It removes redundant or duplicate imports and reorganizes alias names for improved clarity and consistency. Additionally, the ST1019 exception was removed from .golangci.yaml now that the code complies with the rule.

Signed-off-by: Carlos Barria <cbarria@yahoo.com>
2025-05-27 17:38:22 -04:00
Patryk Rostkowski 612e54e1ae nfs: skip NFS daemon reconciliation when labeled with skip-reconcile
This change adds support for skipping reconciliation of CephNFS daemons
that are labeled with `ceph.rook.io/skip-reconcile=true`.
Similar to MDS, MGR, and RGW components, this allows cluster operators
to prevent Rook from modifying specific NFS daemon deployments.

Signed-off-by: Patryk Rostkowski <patrostkowski@gmail.com>
2025-05-27 23:35:53 +02:00
Travis Nielsen ad16cb7262 Merge pull request #15898 from cbarria/fix-staticcheck-QF1003-QF1002
core: fix golangci-lint check QF1003 QF1002
2025-05-27 15:31:14 -06:00
Travis Nielsen e3f5a30268 Merge pull request #15888 from patrostkowski/feature/short-names-crds-15863
core: add short names to rook CRDs
2025-05-27 15:23:18 -06:00
Carlos Barria 030ada45b0 core: fix golangci-lint check QF1003 QF1002
Refactored multiple conditional if-else blocks into switch statements to improve readability and maintainability. Also removed outdated staticcheck rule comments (QF1002, QF1003) from .golangci.yaml.

Signed-off-by: Carlos Barria <cbarria@yahoo.com>
2025-05-27 13:49:49 -04:00
subham rai d2dfc29ed6 Merge pull request #15892 from cbarria/fix-staticcheck-ST1008
core: fix golangci-lint check ST1008
2025-05-26 11:49:57 +05:30
Carlos Barria c044ca9e77 core: fix golangci-lint check ST1008
Signed-off-by: Carlos Barria <cbarria@yahoo.com>
2025-05-22 15:39:30 -04:00
Travis Nielsen e23a708435 Merge pull request #15890 from cbarria/fix-staticcheck-QF1004
core: fix golangci-lint check QF1004
2025-05-22 11:52:14 -06:00
Patryk Rostkowski ae6e1e0863 core: add short names to rook CRDs
This commit Assigns short names to all Rook CRDs
to improve kubectl usability.

Signed-off-by: Patryk Rostkowski <patrostkowski@gmail.com>
2025-05-22 18:29:06 +02:00
Carlos Barria 8afc4ee548 core: fix golangci-lint check QF1004
Signed-off-by: Carlos Barria <cbarria@yahoo.com>
2025-05-22 11:21:45 -04:00
Travis Nielsen 57585ba151 osd: debug log for long image names in label
Labels cannot be longer than 64 characters, and if the image name
is too long we log a verbose message about the label that we can
just log now as debug level.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2025-05-21 15:21:30 -06:00
Travis Nielsen 5265defd27 Merge pull request #15884 from OdedViner/report_reconcile_msg
core: improve reporting for reconcile requeue cases
2025-05-21 07:44:18 -06:00
Travis Nielsen 50f68f6b24 Merge pull request #15882 from yehaifeng/master
doc: recorrect the document ‘host_network’ to 'cluster_network'
2025-05-21 07:36:06 -06:00
Oded Viner 83ce9a6a63 core: improve reporting for reconcile requeue cases
when a reconcile returns a requeue result without an error
(e.g. due to a missing cephcluster), the previous logic reported
it as a successful reconcile. this was misleading and made it
hard to understand the actual controller behavior this
change adds a new condition to log and emit a "requeuing" event
when reconcileResponse.Requeue is true and err is nil.
this ensures more accurate event reporting and improves observability across
all controllers using reportreconcileresult.

Signed-off-by: Oded Viner <oviner@redhat.com>
2025-05-21 15:43:05 +03:00
yehaifeng e97f4a7de7 doc: recorrect the document ‘host_network’ to 'cluster_network'
This should be `cluster_network` rather than `host_network`. Ceph has not configuration called `host_network`.

Signed-off-by: Ye Haifeng <769358362@qq.com>
2025-05-21 17:57:39 +08:00
Travis Nielsen 232012ecc8 Merge pull request #15879 from cbarria/fix-staticcheck-ST1023-QF1011
core: fix golangci-lint check ST1023 QF1011
2025-05-20 16:03:19 -06:00
Carlos Barria 4555522335 core: fix golangci-lint check ST1023 QF1011
Signed-off-by: Carlos Barria <cbarria@yahoo.com>
2025-05-20 14:53:10 -04:00
Travis Nielsen 7feb7ef42f Merge pull request #15867 from OdedViner/enable-csi-metadata
csi: enable CSI Metadata Injection by Default
2025-05-20 10:46:43 -06:00
Travis Nielsen e166785e04 Merge pull request #15878 from nixpanic/kubernetes-csi/sidecars/20250520
csi: update Kubernetes CSI sidecar images to current versions
2025-05-20 10:29:02 -06:00
Niels de Vos a168c40008 csi: update Kubernetes CSI sidecar images to current versions
The Kubernetes CSI sidecars have had several releases that were not
included in deployments by Rook yet, update them to the versions that
are available today:

- csi-attacher:v4.8.1
- csi-provisioner:v5.2.0
- csi-resizer:v1.13.2
- csi-snapshotter:v8.2.1

This change is important, because Ceph-CSI will implement the new
Controller.GetSnapshot CSI procedure. A bug in csi-lib-utils causes a
panic when a ControllerCapability is provided, but not (yet) known to
the CSI sidecars. The updated sidecars consume a version of
csi-lib-utils with a fix for that panic.

See-also: kubernetes-csi/csi-lib-utils#188
Signed-off-by: Niels de Vos <ndevos@ibm.com>
2025-05-20 14:24:02 +02:00
subham rai e5b808e289 Merge pull request #15875 from cbarria/fix-staticcheck-ST1005
core: fix golangci-lint check ST1005
2025-05-20 12:54:19 +05:30
Carlos Barria 61494d1baf core: fix golangci-lint check ST1005
Signed-off-by: Carlos Barria <cbarria@yahoo.com>
2025-05-19 17:52:22 -04:00
subham rai 9cd9ffa9c5 Merge pull request #15853 from subhamkrai/add-cache-index-svg
core: delete old svg/rns cr with same svg/rns  name
2025-05-19 21:32:11 +05:30
subhamkrai ebc1671ab7 namespace: delete old rns cr with same block pool name
there can be a scenario where a new RNS CR is created with
the same spec.blockPoolName and spec.name, in that case we want to delete
the old RNS CR without checking dependent child resources.

Signed-off-by: subhamkrai <srai@redhat.com>
2025-05-19 20:53:24 +05:30
subham rai a34b592738 Merge pull request #15871 from rook/dependabot/github_actions/DavidAnson/markdownlint-cli2-action-20.0.0
build(deps): bump DavidAnson/markdownlint-cli2-action from 19.1.0 to 20.0.0
2025-05-19 19:32:14 +05:30
subham rai f0d1f35018 Merge pull request #15873 from rook/dependabot/github_actions/aws-actions/configure-aws-credentials-4.2.1
build(deps): bump aws-actions/configure-aws-credentials from 4.2.0 to 4.2.1
2025-05-19 19:18:08 +05:30
subham rai 7ee57d1b0c Merge pull request #15872 from rook/dependabot/github_actions/github/codeql-action-3.28.18
build(deps): bump github/codeql-action from 3.28.17 to 3.28.18
2025-05-19 19:17:57 +05:30
Oded Viner ce59c72eb1 csi: enable CSI Metadata Injection by Default
This PR sets CSI_ENABLE_METADATA to true by default in the
Rook configuration, ensuring that the --setmetadata=true
flag is added to CSI nodeplugin pods

Signed-off-by: Oded Viner <oviner@redhat.com>
2025-05-19 16:17:13 +03:00
dependabot[bot] 8fcf5e54d0 build(deps): bump aws-actions/configure-aws-credentials
Bumps [aws-actions/configure-aws-credentials](https://github.com/aws-actions/configure-aws-credentials) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/aws-actions/configure-aws-credentials/releases)
- [Changelog](https://github.com/aws-actions/configure-aws-credentials/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws-actions/configure-aws-credentials/compare/f24d7193d98baebaeacc7e2227925dd47cc267f5...b47578312673ae6fa5b5096b330d9fbac3d116df)

---
updated-dependencies:
- dependency-name: aws-actions/configure-aws-credentials
  dependency-version: 4.2.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-19 12:57:24 +00:00
dependabot[bot] 1c4f1cc356 build(deps): bump github/codeql-action from 3.28.17 to 3.28.18
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.28.17 to 3.28.18.
- [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/60168efe1c415ce0f5521ea06d5c2062adbeed1b...ff0a06e83cb2de871e5a09832bc6a81e7276941f)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-19 12:57:22 +00:00
dependabot[bot] fd04777363 build(deps): bump DavidAnson/markdownlint-cli2-action
Bumps [DavidAnson/markdownlint-cli2-action](https://github.com/davidanson/markdownlint-cli2-action) from 19.1.0 to 20.0.0.
- [Release notes](https://github.com/davidanson/markdownlint-cli2-action/releases)
- [Commits](https://github.com/davidanson/markdownlint-cli2-action/compare/05f32210e84442804257b2a6f20b273450ec8265...992badcdf24e3b8eb7e87ff9287fe931bcb00c6e)

---
updated-dependencies:
- dependency-name: DavidAnson/markdownlint-cli2-action
  dependency-version: 20.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-19 12:57:14 +00:00