Commit Graph
1003 Commits
Author SHA1 Message Date
Travis Nielsen 2006000fa6 pool: allow enablecrushupdates to be nil
Enabling crush updates is false by default, and can be enabled
if set to true. The setting needs to be nullable in case
we need to differentiate between the value being set
to false or just not set, to know if the default should be
different. This is necessary for rook consumers who are
refererencing the pool struct and want to change the default,
rather than using rook's default value of false.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit df49ca1247)
2025-11-18 17:31:56 +00:00
Michael Adam 0ac1d39601 build: update release version to v1.17.9
For the patch release update the docs and examples to v1.17.9

Signed-off-by: Michael Adam <obnox@samba.org>
2025-11-13 20:07:28 +01:00
Joshua Hoblitt bd40cee69e core: fix ObjectZoneSpec.ZoneGroup field description
Resolves this incorrect field description:

     ~ $ k explain cephobjectzone.spec.zoneGroup
    GROUP:      ceph.rook.io
    KIND:       CephObjectZone
    VERSION:    v1

    FIELD: zoneGroup <string>

    DESCRIPTION:
        The display name for the ceph users

Signed-off-by: Joshua Hoblitt <josh@hoblitt.com>
(cherry picked from commit 8b58d68592)
2025-09-17 11:47:20 +00:00
Joshua Hoblitt 5be2085768 core: fix ObjectZoneGroupSpec.Realm field description
Resolves this incorrect field description:

     ~ $ k explain cephobjectzonegroup.spec.realm
    GROUP:      ceph.rook.io
    KIND:       CephObjectZoneGroup
    VERSION:    v1

    FIELD: realm <string>

    DESCRIPTION:
        The display name for the ceph users

Signed-off-by: Joshua Hoblitt <josh@hoblitt.com>
(cherry picked from commit 1a1478a342)
2025-09-17 11:47:19 +00:00
Michael Adam 2e9954afa9 build: update release version to v1.17.8
For the patch release update the docs and examples to v1.17.8

Signed-off-by: Michael Adam <obnox@samba.org>
2025-08-20 19:11:08 +02:00
Travis Nielsen 227d6ee06b helm: enable host network for openshift if needed
The securityContextConstraints require setting whether
host networking and host port access is needed by the
ceph cluster service accounts. The helm chart now allows
enabling this mode with the settings:
rook-ceph chart: useOperatorHostNetwork: true
rook-ceph-cluster chart: cephClusterSpec.network.provider: host

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 82262a8472)
2025-08-20 16:12:33 +00:00
Travis Nielsen f37ebcd0cd Merge pull request #16262 from rook/mergify/bp/release-1.17/pr-16244
csi: add CrossNamespaceVolumeDataSource feature gate (backport #16244)
2025-08-07 12:25:01 -06:00
Oded Viner 572f4ead49 object: mark realm as default to avoid zone creation
add defaultRealm field to cephobjectstore to allow rook to mark the
created realm as default. this prevents ceph from auto-creating a
"default" zonegroup and zone when the default is not explicitly set.
affects only non-multisite setups.

Signed-off-by: Oded Viner <oviner@redhat.com>
(cherry picked from commit 182cd211ca)
2025-08-07 16:34:10 +00:00
CL0Pinette 0a5b692342 csi: add CrossNamespaceVolumeDataSource feature gate
This enables configuring the CrossNamespaceVolumeDataSource feature gate

Signed-off-by: CL0Pinette <me@cl0pinette.fr>
(cherry picked from commit b63c222d17)
2025-08-07 15:01:25 +00:00
Benoît Knecht 7de58d6648 core: only support isa and jerasure algorithms on ec pools
The `CephBlockPool` CR allowed any algorithm to be specified in
`spec.erasureCoded.algorithm`, but in practice only `isa` or `jerasure`
would work.

Make that restriction explicit by restricting this field to `isa` or
`jerasure` in the CRD.

Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
(cherry picked from commit 0b423a30f9)
2025-08-04 22:47:50 +00:00
Michael Adam 3a4de162c4 build: update release version to v1.17.7
For the patch release update the docs and examples to v1.17.7

Signed-off-by: Michael Adam <obnox@samba.org>
2025-07-31 19:24:24 +02:00
Travis Nielsen 2d970de83e core: update ceph version to v19.2.3
With the new squid patch release, update the base
image, the docs, and the examples to all use the latest
stable Ceph release v19.2.3.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 66a006b99c)

# Conflicts:
#	tests/manifests/test-cluster-on-pvc-encrypted.yaml
2025-07-29 19:28:03 +00:00
Steve Wills d65a7a2365 helm: correct example resources
Correct example for adding resources to discover daemon pods

Signed-off-by: Steve Wills <steve@mouf.net>
(cherry picked from commit 0cc6aedd69)
2025-07-25 20:29:54 +00:00
Madhu Rajanna 0c48f8ed41 csi: update ceph-csi to 3.14.2
Updating the ceph-csi image to 3.14.2
release.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 052fe4a9af)
2025-07-22 20:22:33 +00:00
Mason a29b12469d helm: update rook-ceph SecurityContextConstraints to match operator-openshift.yaml example
The rook-ceph SecurityContextConstraints in the rook-ceph helm chart does not include all the users necessary for a successful deployment. Specifically, rook-ceph-default, rook-ceph-mgr, rook-ceph-osd, and rook-ceph-rgw are listed in the operator-openshift.yaml example file (https://github.com/rook/rook/blob/master/deploy/examples/operator-openshift.yaml) but are not included in the helm chart. This commit adds these users.

Signed-off-by: Mason Buchanan <masonwb@gmail.com>
(cherry picked from commit a030d2ceb3)
2025-07-21 17:37:34 +00:00
synthe102 13b3f3e219 helm(rook-ceph-cluster): add HTTPRoute for dashboard and objectstore
Signed-off-by: synthe102 <leonard@suslian.engineer>
(cherry picked from commit 25a7a910b5)
2025-07-15 13:32:12 -06:00
Travis Nielsen cafb77ecc1 build: update release version to v1.17.6
For the patch release update the docs and examples to v1.17.6

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2025-07-10 11:53:27 -06:00
Vilius Puškunalis cb48cd18e1 osd: fix cleanup job disk shredding
Fixes quick disk shredding by using dd to shred data at additional offsets where ceph metadata is duplicated. For full shred, the shred utility remains in use.

Signed-off-by: Vilius Puškunalis <47086537+puskunalis@users.noreply.github.com>
(cherry picked from commit 27010f96f3)
2025-07-10 16:30:13 +00:00
Patryk Rostkowski 9632438413 mon: allow running mon pods as root
This change addresses a permission issue where mon pods crashloop
on some Kubernetes setups with SELinux enabled, even when
ROOK_HOSTPATH_REQUIRES_PRIVILEGED is set.

To resolve this, a new function makeMonSecurityContext() was introduced
to explicitly set runAsUser: 0 at the pod level for mon pods
when the environment variable ROOK_CEPH_MON_RUN_AS_ROOT is set to true.

Additionally, the function previously named PodSecurityContext() was renamed
to DefaultContainerSecurityContext() to avoid confusion between
container-level and pod-level security context configuration. All container
SecurityContext usages across Ceph daemons were updated to reflect this change.

This ensures the root user configuration is applied
automatically and consistently in environments where it is required
for mon pod startup, while preserving clear separation of container
and pod-level security logic.

Signed-off-by: Patryk Rostkowski <patrostkowski@gmail.com>
(cherry picked from commit 7f3e6bd7fa)
2025-07-07 16:17:14 -06:00
Madhu Rajanna 47e9442638 csi: provide a flag to manage csi users
Added a flag in cephcluster CR CSI section
whether the user wants the Rook to manage
the csi users and secrets or create them on own.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 5094b1f5e6)
2025-06-27 20:59:57 +00:00
Madhu Rajanna 0e992a9e3f core: provide option to specify secret name
When cephClient CR is created by User, the Rook
is creating an User and creating an secret with
its own predefined name + CR name, With this we
are allowing user to specify the secretName

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit d6d2e604fc)
2025-06-27 20:26:59 +00:00
Travis Nielsen 6f833fc107 Merge pull request #16051 from rook/mergify/bp/release-1.17/pr-16050
csi: update csi version to 3.14.1 (backport #16050)
2025-06-25 07:29:22 -06:00
Muhammad Adil Ghaffar 2c89453f44 exporter: add hostnetwork bool to cephexporter
Signed-off-by: Muhammad Adil Ghaffar <muhammad.adil.ghaffar@est.tech>
(cherry picked from commit 5ea7a177b7)
2025-06-24 20:50:19 +00:00
Madhu Rajanna 2a6e00d501 csi: update csi version to 3.14.1
Updating the cephcsi version to v3.14.1
release.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit aa8fd61986)
2025-06-24 16:40:30 +00:00
Michael Adam 596a7086a8 build: update the release version to v1.17.5
For the patch release update the docs and examples
to v1.17.5

Signed-off-by: Michael Adam <obnox@samba.org>
2025-06-19 14:56:42 -06:00
Oded Viner a337dd41f5 pool: support targetSizeRatio=0 and default compressionMode=""
allow targetSizeRatio == 0
enforce targetSizeRatio >= 0 via +kubebuilder:validation
set targetSizeRatio and compressionMode="" if unset
remove IsTargetRatioEnabled() and IsCompressionEnabled()

Signed-off-by: Oded Viner <oviner@redhat.com>
(cherry picked from commit dd65dc15d8)
2025-06-11 13:37:07 +00:00
Artyom Babiy e89a7d7878 helm(rook-ceph-cluster): use nested if clauses in prometheusrule template
This change returns the use of nested if clauses
instead of `and` function shortcut to avoid errors
in older helm versions.

Signed-off-by: Artyom Babiy <artyom.babiy@gmail.com>
(cherry picked from commit 1f183bd675)
2025-06-09 22:13:30 +00:00
Artyom Babiy 080afce039 helm(rook-ceph-cluster): allow prometheusrule edits
This change allows the chart consumer to optionally
edit PrometheusRule CR by either disabling individual
alerts or tweaking their configuration.

Signed-off-by: Artyom Babiy <artyom.babiy@gmail.com>
(cherry picked from commit 6468255191)
2025-06-09 20:32:10 +00:00
Santosh Pillai 1880856e8e osd: clean osd disks before reinstalling cluster
Allow force creation of OSD on a device previously configured in a different ceph cluster.
The OSD prepare pod job will zap the OSD disk using ceph-volume lvm zap
if that disk has metadata from a different ceph cluster.

Signed-off-by: Santosh Pillai <sapillai@redhat.com>
(cherry picked from commit 2bcf196b15)
2025-06-09 08:34:33 +00:00
Michael Adam c4a8f32cb2 build: update the release version to v1.17.4
For the patch release update the docs and examples
to v1.17.4

Signed-off-by: Michael Adam <obnox@samba.org>
2025-06-05 13:56:10 -06:00
Juri Malinovski 480a7dcc16 helm: add custom labels for toolbox deployment
Allow to assign custom labels for toolbox deployment. Some audit policies require specific labels for all kubernetes objects.

Signed-off-by: Juri Malinovski <juri.malinovski@coolbet.com>
(cherry picked from commit cc7e6b328b)
2025-06-02 22:02:15 +00:00
parth-gr e48915a820 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>
(cherry picked from commit 9a0490982e)
2025-06-02 08:59:54 +00:00
Travis Nielsen 03e5653e40 build: update the release version to v1.17.3
For the patch release update the docs and examples
to v1.17.3

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2025-05-30 12:40:44 -06:00
synthe102 081433acee 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>
(cherry picked from commit 81d27753f2)
2025-05-29 17:13:45 +00:00
Patryk Rostkowski 24f4b955c7 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>
(cherry picked from commit ae6e1e0863)
2025-05-27 21:24:32 +00:00
Niels de Vos 0d57154457 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>
(cherry picked from commit a168c40008)
2025-05-20 16:29:51 +00:00
parth-gr b9e24171ab rbdmirror: fix mirroring status on pool and rn
there is a change  from ceph on how the status
of the mirroring will look like,
Adopting with new fields so the status is correctly synced,
And other components might rely on the status too

Signed-off-by: parth-gr <partharora1010@gmail.com>
(cherry picked from commit aa326a9419)
2025-05-15 17:10:54 +00:00
Yifeng Zhang 922f5f0b80 network: fix validation rule on provider field update
Provider validation is failing on updating from empty string to non-empty ones
which is expected to be supported. Fix the validation rule by adding one missing
condition.

Signed-off-by: Yifeng Zhang <Yifeng.Zhang@cerebras.net>
(cherry picked from commit 93ccf4c9c2)
2025-05-09 18:15:24 +00:00
Michael Adam 755ed4003f build: update release version to v1.17.2
For the patch release update the examples and docs
    to v1.17.2

Signed-off-by: Michael Adam <obnox@samba.org>
2025-05-08 18:28:52 +02:00
Travis Nielsen 44994bbd22 namespace: add conditions blocking deletion for rados namespace
When a rados namespace is deleted, it cannot be purged
until its images and snapshots are deleted. Now a condition
is being added to the rados namespace CR status so the user
does not need to read the operator log to discover the cause.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 530223c5b4)
2025-05-07 22:20:53 +00:00
Joshua Hoblitt e0ff72fafa object: fix uppercase serialization of fields in KafkaEndpointSpec
Signed-off-by: Joshua Hoblitt <josh@hoblitt.com>
(cherry picked from commit 300a22398e)
2025-05-02 18:12:25 +00:00
Travis Nielsen 0ed5f13b4c build: update release version to v1.17.1
For the patch release update the examples and docs
to v1.17.1

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2025-04-23 12:25:07 -06:00
Patryk Rostkowski f88622ef7c operator: specify ceph config via secret
Adds .spec.cephConfigFromSecret to CephCluster for loading
Ceph config parameters from a Kubernetes Secret.

Signed-off-by: Patryk Rostkowski <patrostkowski@gmail.com>
(cherry picked from commit 45b0ef2104)
2025-04-23 17:54:42 +00:00
Travis Nielsen 90d5d297e6 helm: set correct release tag for helm values
The v1.17.0 release missed setting the proper helm
tag for the version to deploy of the operator.
Updating to ensure the next release will include the
correct version.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2025-04-18 10:45:52 -06:00
Travis Nielsen b09108dd48 build: update release version to v1.17.0
For the minor release update the examples and docs
to v1.17.0

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2025-04-16 13:02:17 -06:00
Joshua Hoblitt 76f4877ed9 object: add CephBucketTopic .spec.endpoint.kafka.{user,password}SecretRef
userSecretRef and passwordSecretRef fields are added to allow the Kafka
endpoint username and password to be supplied from a Kubernetes Secret,
rather than exposed as plaintext as part of the endpoint URI. If the
endpoint URI has HTTP basic auth user-id and user-pass components, they
are overridden by userSecretRef and passwordSecretRef.

Squid added bucket topic attributes for configuring the user-name and
password for pushing notifications to Kafka as an alternative to
encoding credentials into the URI. However, these attributes are not
supported under Reef. Thus, this initial implementation relies on URI
mangling for compatible with both Reef and Squid. Future work could
using Ceph version detection and switch to the new attributes to be used
with Squid and/or the implementation could be converted exclusively to
use the new attributes once Rook has dropped support for Reef.

Signed-off-by: Joshua Hoblitt <josh@hoblitt.com>
(cherry picked from commit 7887f03c5c)
2025-04-16 18:25:48 +00:00
Bryan Jones 677bba12c8 helm: add info comments to the chart values
Signed-off-by: Bryan Jones <unix.chkpwd@gmail.com>
(cherry picked from commit 04cc4ee3e4)
2025-04-15 19:22:58 +00:00
Bryan Jones 7986c365fc helm: add labels to ingress resource
Signed-off-by: Bryan Jones <unix.chkpwd@gmail.com>
(cherry picked from commit 41884a19bf)
2025-04-15 19:22:58 +00:00
Travis Nielsen 0e4d7f35c9 core: set default ceph version to v19.2.2
Update the examples and docs and operator base image to
the latest ceph release v19.2.2.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit f62e6d9cc2)
2025-04-14 19:42:24 +00:00
Rakshith R cbbee37fb1 csi: update cephcsi to latest release
This commit updates cephcsi version to 3.14.0
in rook.

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit a555885a5f)
2025-04-14 14:23:58 +00:00