Skip to content

Commit

Permalink
Fix naming of CephFilesystem resources
Browse files Browse the repository at this point in the history
  • Loading branch information
simu committed Jul 5, 2021
1 parent 80e7370 commit 5220777
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions component/cephfs.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,8 @@ local metadataServerPlacement = {
// Users are responsible for providing working cephfs configs, we don't
// verify them here
local cephfs_pools = [
kube._Object(
'ceph.rook.io/v1',
'CephFilesystem',
'%s-cephfs' % params.ceph_cluster.name
) {
kube._Object('ceph.rook.io/v1', 'CephFilesystem', pool)
{
metadata+: {
namespace: params.ceph_cluster.namespace,
},
Expand Down Expand Up @@ -83,10 +80,10 @@ local cephfs_pools = [
// TODO: figure out if/how we want to create storageclasses for additional
// pools configured on CephFS instances.
local cephfs_storageclasses = [
local subpool = '%s-%s-data0' % [ params.ceph_cluster.name, fs ];
local subpool = '%s-data0' % [ fs ];
sp.configure_storageclass('cephfs', fs, subpool) {
parameters+: {
fsName: '%s-%s' % [ params.ceph_cluster.name, fs ],
fsName: fs,
},
}
for fs in std.objectFields(cephfs_params)
Expand Down

0 comments on commit 5220777

Please sign in to comment.