# within one ceph cluster.
self.name = ""
- # Minimum and maximum number of service instances
- self.min_size = 1
- self.max_size = 1
+ # Count of service instances
+ self.count = 1
# Arbitrary JSON-serializable object.
# Maybe you're using e.g. kubenetes and you want to pass through
def add_filesystem(self, spec):
# TODO use spec.placement
- # TODO use spec.min_size (and use max_size meaningfully)
# TODO warn if spec.extended has entries we don't kow how
# to action.
"spec": {
"onlyManageDaemons": True,
"metadataServer": {
- "activeCount": spec.max_size,
+ "activeCount": spec.count,
"activeStandby": True
}
def add_nfsgw(self, spec):
# TODO use spec.placement
- # TODO use spec.min_size (and use max_size meaningfully)
# TODO warn if spec.extended has entries we don't kow how
# to action.
"pool": spec.extended["pool"]
},
"server": {
- "active": spec.max_size,
+ "active": spec.count,
}
}
}
self.rook_api_post("cephnfses/", body=rook_nfsgw)
def add_objectstore(self, spec):
-
rook_os = {
"apiVersion": ROOK_API_NAME,
"kind": "CephObjectStore",