Skip to content

Commit

Permalink
Merge pull request #9362 from BlaineEXE/nfs-make-namespace-optional
Browse files Browse the repository at this point in the history
nfs: make rados.namespace optional
  • Loading branch information
BlaineEXE committed Dec 9, 2021
2 parents 6ad2026 + 0bbab6d commit d40e6d7
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
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
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
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 d40e6d7

Please sign in to comment.