Skip to content

Commit

Permalink
update rook.io CRD (#440)
Browse files Browse the repository at this point in the history
  • Loading branch information
afarbos authored Dec 19, 2024
1 parent 6e6efbf commit aede1ef
Show file tree
Hide file tree
Showing 13 changed files with 2,098 additions and 464 deletions.
12 changes: 10 additions & 2 deletions ceph.rook.io/cephblockpool_v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@
"nullable": true,
"type": "string"
},
"enableCrushUpdates": {
"description": "Allow rook operator to change the pool CRUSH tunables once the pool is created",
"type": "boolean"
},
"enableRBDStats": {
"description": "EnableRBDStats is used to enable gathering of statistics for all RBD images in the pool",
"type": "boolean"
Expand Down Expand Up @@ -295,7 +299,7 @@
"type": "object"
},
"mirroringInfo": {
"description": "MirroringInfoSpec is the status of the pool mirroring",
"description": "MirroringInfoSpec is the status of the pool/radosnamespace mirroring",
"properties": {
"details": {
"type": "string"
Expand Down Expand Up @@ -350,7 +354,7 @@
"additionalProperties": false
},
"mirroringStatus": {
"description": "MirroringStatusSpec is the status of the pool mirroring",
"description": "MirroringStatusSpec is the status of the pool/radosNamespace mirroring",
"properties": {
"details": {
"description": "Details contains potential status errors",
Expand Down Expand Up @@ -432,6 +436,10 @@
"description": "ConditionType represent a resource's status",
"type": "string"
},
"poolID": {
"description": "optional",
"type": "integer"
},
"snapshotScheduleStatus": {
"description": "SnapshotScheduleStatusSpec is the status of the snapshot schedule",
"properties": {
Expand Down
237 changes: 237 additions & 0 deletions ceph.rook.io/cephblockpoolradosnamespace_v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,52 @@
}
]
},
"mirroring": {
"description": "Mirroring configuration of CephBlockPoolRadosNamespace",
"properties": {
"mode": {
"description": "Mode is the mirroring mode; either pool or image",
"enum": [
"",
"pool",
"image"
],
"type": "string"
},
"remoteNamespace": {
"description": "RemoteNamespace is the name of the CephBlockPoolRadosNamespace on the secondary cluster CephBlockPool",
"type": "string"
},
"snapshotSchedules": {
"description": "SnapshotSchedules is the scheduling of snapshot for mirrored images",
"items": {
"description": "SnapshotScheduleSpec represents the snapshot scheduling settings of a mirrored pool",
"properties": {
"interval": {
"description": "Interval represent the periodicity of the snapshot.",
"type": "string"
},
"path": {
"description": "Path is the path to snapshot, only valid for CephFS",
"type": "string"
},
"startTime": {
"description": "StartTime indicates when to start the snapshot",
"type": "string"
}
},
"type": "object",
"additionalProperties": false
},
"type": "array"
}
},
"required": [
"mode"
],
"type": "object",
"additionalProperties": false
},
"name": {
"description": "The name of the CephBlockPoolRadosNamespaceSpec namespace. If not set, the default is the name of the CR.",
"type": "string",
Expand Down Expand Up @@ -52,9 +98,200 @@
"nullable": true,
"type": "object"
},
"mirroringInfo": {
"description": "MirroringInfoSpec is the status of the pool/radosnamespace mirroring",
"properties": {
"details": {
"type": "string"
},
"lastChanged": {
"type": "string"
},
"lastChecked": {
"type": "string"
},
"mode": {
"description": "Mode is the mirroring mode",
"type": "string"
},
"peers": {
"description": "Peers are the list of peer sites connected to that cluster",
"items": {
"description": "PeersSpec contains peer details",
"properties": {
"client_name": {
"description": "ClientName is the CephX user used to connect to the peer",
"type": "string"
},
"direction": {
"description": "Direction is the peer mirroring direction",
"type": "string"
},
"mirror_uuid": {
"description": "MirrorUUID is the mirror UUID",
"type": "string"
},
"site_name": {
"description": "SiteName is the current site name",
"type": "string"
},
"uuid": {
"description": "UUID is the peer UUID",
"type": "string"
}
},
"type": "object",
"additionalProperties": false
},
"type": "array"
},
"site_name": {
"description": "SiteName is the current site name",
"type": "string"
}
},
"type": "object",
"additionalProperties": false
},
"mirroringStatus": {
"description": "MirroringStatusSpec is the status of the pool/radosNamespace mirroring",
"properties": {
"details": {
"description": "Details contains potential status errors",
"type": "string"
},
"lastChanged": {
"description": "LastChanged is the last time time the status last changed",
"type": "string"
},
"lastChecked": {
"description": "LastChecked is the last time time the status was checked",
"type": "string"
},
"summary": {
"description": "Summary is the mirroring status summary",
"properties": {
"daemon_health": {
"description": "DaemonHealth is the health of the mirroring daemon",
"type": "string"
},
"health": {
"description": "Health is the mirroring health",
"type": "string"
},
"image_health": {
"description": "ImageHealth is the health of the mirrored image",
"type": "string"
},
"states": {
"description": "States is the various state for all mirrored images",
"nullable": true,
"properties": {
"error": {
"description": "Error is when the mirroring state is errored",
"type": "integer"
},
"replaying": {
"description": "Replaying is when the replay of the mirroring journal is on-going",
"type": "integer"
},
"starting_replay": {
"description": "StartingReplay is when the replay of the mirroring journal starts",
"type": "integer"
},
"stopped": {
"description": "Stopped is when the mirroring state is stopped",
"type": "integer"
},
"stopping_replay": {
"description": "StopReplaying is when the replay of the mirroring journal stops",
"type": "integer"
},
"syncing": {
"description": "Syncing is when the image is syncing",
"type": "integer"
},
"unknown": {
"description": "Unknown is when the mirroring state is unknown",
"type": "integer"
}
},
"type": "object",
"additionalProperties": false
}
},
"type": "object",
"additionalProperties": false
}
},
"type": "object",
"additionalProperties": false
},
"phase": {
"description": "ConditionType represent a resource's status",
"type": "string"
},
"snapshotScheduleStatus": {
"description": "SnapshotScheduleStatusSpec is the status of the snapshot schedule",
"properties": {
"details": {
"description": "Details contains potential status errors",
"type": "string"
},
"lastChanged": {
"description": "LastChanged is the last time time the status last changed",
"type": "string"
},
"lastChecked": {
"description": "LastChecked is the last time time the status was checked",
"type": "string"
},
"snapshotSchedules": {
"description": "SnapshotSchedules is the list of snapshots scheduled",
"items": {
"description": "SnapshotSchedulesSpec is the list of snapshot scheduled for images in a pool",
"properties": {
"image": {
"description": "Image is the mirrored image",
"type": "string"
},
"items": {
"description": "Items is the list schedules times for a given snapshot",
"items": {
"description": "SnapshotSchedule is a schedule",
"properties": {
"interval": {
"description": "Interval is the interval in which snapshots will be taken",
"type": "string"
},
"start_time": {
"description": "StartTime is the snapshot starting time",
"type": "string"
}
},
"type": "object",
"additionalProperties": false
},
"type": "array"
},
"namespace": {
"description": "Namespace is the RADOS namespace the image is part of",
"type": "string"
},
"pool": {
"description": "Pool is the pool name",
"type": "string"
}
},
"type": "object",
"additionalProperties": false
},
"nullable": true,
"type": "array"
}
},
"type": "object",
"additionalProperties": false
}
},
"type": "object",
Expand Down
Loading

0 comments on commit aede1ef

Please sign in to comment.