Skip to content

Commit

Permalink
nfs: make rados.namespace optional
Browse files Browse the repository at this point in the history
Fix the CephNFS spec.rados API specifiation to be clear that spec.rados
is optional for all Ceph v16 versions, including that
spec.rados.namespace is optional.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
  • Loading branch information
BlaineEXE committed Dec 8, 2021
1 parent 6ad2026 commit 0bbab6d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
6 changes: 2 additions & 4 deletions deploy/charts/rook-ceph/templates/resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6008,13 +6008,11 @@ spec:
nullable: true
properties:
namespace:
description: Namespace is the RADOS namespace where NFS client recovery data is stored.
description: The namespace inside the Ceph pool (set by 'pool') where shared NFS-Ganesha config is stored. This setting is required for Ceph v15 and ignored for Ceph v16. As of Ceph Pacific v16+, this is internally set to the name of the CephNFS.
type: string
pool:
description: Pool used to represent the Ganesha's pool name in version older than 16.2.7 As of Ceph Pacific 16.2.7, NFS Ganesha's pool name is hardcoded to ".nfs", so this setting will be ignored.
description: The Ceph pool used store the shared configuration for NFS-Ganesha daemons. This setting is required for Ceph v15 and ignored for Ceph v16. As of Ceph Pacific 16.2.7+, this is internally hardcoded to ".nfs".
type: string
required:
- namespace
type: object
server:
description: Server is the Ganesha Server specification
Expand Down
6 changes: 2 additions & 4 deletions deploy/examples/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6004,13 +6004,11 @@ spec:
nullable: true
properties:
namespace:
description: Namespace is the RADOS namespace where NFS client recovery data is stored.
description: The namespace inside the Ceph pool (set by 'pool') where shared NFS-Ganesha config is stored. This setting is required for Ceph v15 and ignored for Ceph v16. As of Ceph Pacific v16+, this is internally set to the name of the CephNFS.
type: string
pool:
description: Pool used to represent the Ganesha's pool name in version older than 16.2.7 As of Ceph Pacific 16.2.7, NFS Ganesha's pool name is hardcoded to ".nfs", so this setting will be ignored.
description: The Ceph pool used store the shared configuration for NFS-Ganesha daemons. This setting is required for Ceph v15 and ignored for Ceph v16. As of Ceph Pacific 16.2.7+, this is internally hardcoded to ".nfs".
type: string
required:
- namespace
type: object
server:
description: Server is the Ganesha Server specification
Expand Down
13 changes: 8 additions & 5 deletions pkg/apis/ceph.rook.io/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -1812,14 +1812,17 @@ type NFSGaneshaSpec struct {

// GaneshaRADOSSpec represents the specification of a Ganesha RADOS object
type GaneshaRADOSSpec struct {
// Pool used to represent the Ganesha's pool name in version older than 16.2.7
// As of Ceph Pacific 16.2.7, NFS Ganesha's pool name is hardcoded to ".nfs", so this
// setting will be ignored.
// The Ceph pool used store the shared configuration for NFS-Ganesha daemons.
// This setting is required for Ceph v15 and ignored for Ceph v16.
// As of Ceph Pacific 16.2.7+, this is internally hardcoded to ".nfs".
// +optional
Pool string `json:"pool,omitempty"`

// Namespace is the RADOS namespace where NFS client recovery data is stored.
Namespace string `json:"namespace"`
// The namespace inside the Ceph pool (set by 'pool') where shared NFS-Ganesha config is stored.
// This setting is required for Ceph v15 and ignored for Ceph v16.
// As of Ceph Pacific v16+, this is internally set to the name of the CephNFS.
// +optional
Namespace string `json:"namespace,omitempty"`
}

// GaneshaServerSpec represents the specification of a Ganesha Server
Expand Down

0 comments on commit 0bbab6d

Please sign in to comment.