-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
3,382 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"description": "BackingImage is where Longhorn stores backing image object.", | ||
"properties": { | ||
"apiVersion": { | ||
"description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", | ||
"type": "string" | ||
}, | ||
"kind": { | ||
"description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", | ||
"type": "string" | ||
}, | ||
"metadata": { | ||
"type": "object" | ||
}, | ||
"spec": { | ||
"x-kubernetes-preserve-unknown-fields": true | ||
}, | ||
"status": { | ||
"x-kubernetes-preserve-unknown-fields": true | ||
} | ||
}, | ||
"type": "object" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
{ | ||
"description": "BackingImage is where Longhorn stores backing image object.", | ||
"properties": { | ||
"apiVersion": { | ||
"description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", | ||
"type": "string" | ||
}, | ||
"kind": { | ||
"description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", | ||
"type": "string" | ||
}, | ||
"metadata": { | ||
"type": "object" | ||
}, | ||
"spec": { | ||
"description": "BackingImageSpec defines the desired state of the Longhorn backing image", | ||
"properties": { | ||
"checksum": { | ||
"type": "string" | ||
}, | ||
"diskFileSpecMap": { | ||
"additionalProperties": { | ||
"properties": { | ||
"evictionRequested": { | ||
"type": "boolean" | ||
} | ||
}, | ||
"type": "object", | ||
"additionalProperties": false | ||
}, | ||
"type": "object" | ||
}, | ||
"diskSelector": { | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
}, | ||
"disks": { | ||
"additionalProperties": { | ||
"type": "string" | ||
}, | ||
"description": "Deprecated. We are now using DiskFileSpecMap to assign different spec to the file on different disks.", | ||
"type": "object" | ||
}, | ||
"minNumberOfCopies": { | ||
"type": "integer" | ||
}, | ||
"nodeSelector": { | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
}, | ||
"secret": { | ||
"type": "string" | ||
}, | ||
"secretNamespace": { | ||
"type": "string" | ||
}, | ||
"sourceParameters": { | ||
"additionalProperties": { | ||
"type": "string" | ||
}, | ||
"type": "object" | ||
}, | ||
"sourceType": { | ||
"enum": [ | ||
"download", | ||
"upload", | ||
"export-from-volume", | ||
"restore", | ||
"clone" | ||
], | ||
"type": "string" | ||
} | ||
}, | ||
"type": "object", | ||
"additionalProperties": false | ||
}, | ||
"status": { | ||
"description": "BackingImageStatus defines the observed state of the Longhorn backing image status", | ||
"properties": { | ||
"checksum": { | ||
"type": "string" | ||
}, | ||
"diskFileStatusMap": { | ||
"additionalProperties": { | ||
"properties": { | ||
"lastStateTransitionTime": { | ||
"type": "string" | ||
}, | ||
"message": { | ||
"type": "string" | ||
}, | ||
"progress": { | ||
"type": "integer" | ||
}, | ||
"state": { | ||
"type": "string" | ||
} | ||
}, | ||
"type": "object", | ||
"additionalProperties": false | ||
}, | ||
"nullable": true, | ||
"type": "object" | ||
}, | ||
"diskLastRefAtMap": { | ||
"additionalProperties": { | ||
"type": "string" | ||
}, | ||
"nullable": true, | ||
"type": "object" | ||
}, | ||
"ownerID": { | ||
"type": "string" | ||
}, | ||
"size": { | ||
"format": "int64", | ||
"type": "integer" | ||
}, | ||
"uuid": { | ||
"type": "string" | ||
}, | ||
"virtualSize": { | ||
"description": "Virtual size of image, which may be larger than physical size. Will be zero until known (e.g. while a backing image is uploading)", | ||
"format": "int64", | ||
"type": "integer" | ||
} | ||
}, | ||
"type": "object", | ||
"additionalProperties": false | ||
} | ||
}, | ||
"type": "object" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"description": "BackingImageDataSource is where Longhorn stores backing image data source object.", | ||
"properties": { | ||
"apiVersion": { | ||
"description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", | ||
"type": "string" | ||
}, | ||
"kind": { | ||
"description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", | ||
"type": "string" | ||
}, | ||
"metadata": { | ||
"type": "object" | ||
}, | ||
"spec": { | ||
"x-kubernetes-preserve-unknown-fields": true | ||
}, | ||
"status": { | ||
"x-kubernetes-preserve-unknown-fields": true | ||
} | ||
}, | ||
"type": "object" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
{ | ||
"description": "BackingImageDataSource is where Longhorn stores backing image data source object.", | ||
"properties": { | ||
"apiVersion": { | ||
"description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", | ||
"type": "string" | ||
}, | ||
"kind": { | ||
"description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", | ||
"type": "string" | ||
}, | ||
"metadata": { | ||
"type": "object" | ||
}, | ||
"spec": { | ||
"description": "BackingImageDataSourceSpec defines the desired state of the Longhorn backing image data source", | ||
"properties": { | ||
"checksum": { | ||
"type": "string" | ||
}, | ||
"diskPath": { | ||
"type": "string" | ||
}, | ||
"diskUUID": { | ||
"type": "string" | ||
}, | ||
"fileTransferred": { | ||
"type": "boolean" | ||
}, | ||
"nodeID": { | ||
"type": "string" | ||
}, | ||
"parameters": { | ||
"additionalProperties": { | ||
"type": "string" | ||
}, | ||
"type": "object" | ||
}, | ||
"sourceType": { | ||
"enum": [ | ||
"download", | ||
"upload", | ||
"export-from-volume", | ||
"restore", | ||
"clone" | ||
], | ||
"type": "string" | ||
}, | ||
"uuid": { | ||
"type": "string" | ||
} | ||
}, | ||
"type": "object", | ||
"additionalProperties": false | ||
}, | ||
"status": { | ||
"description": "BackingImageDataSourceStatus defines the observed state of the Longhorn backing image data source", | ||
"properties": { | ||
"checksum": { | ||
"type": "string" | ||
}, | ||
"currentState": { | ||
"type": "string" | ||
}, | ||
"ip": { | ||
"type": "string" | ||
}, | ||
"message": { | ||
"type": "string" | ||
}, | ||
"ownerID": { | ||
"type": "string" | ||
}, | ||
"progress": { | ||
"type": "integer" | ||
}, | ||
"runningParameters": { | ||
"additionalProperties": { | ||
"type": "string" | ||
}, | ||
"nullable": true, | ||
"type": "object" | ||
}, | ||
"size": { | ||
"format": "int64", | ||
"type": "integer" | ||
}, | ||
"storageIP": { | ||
"type": "string" | ||
} | ||
}, | ||
"type": "object", | ||
"additionalProperties": false | ||
} | ||
}, | ||
"type": "object" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"description": "BackingImageManager is where Longhorn stores backing image manager object.", | ||
"properties": { | ||
"apiVersion": { | ||
"description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", | ||
"type": "string" | ||
}, | ||
"kind": { | ||
"description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", | ||
"type": "string" | ||
}, | ||
"metadata": { | ||
"type": "object" | ||
}, | ||
"spec": { | ||
"x-kubernetes-preserve-unknown-fields": true | ||
}, | ||
"status": { | ||
"x-kubernetes-preserve-unknown-fields": true | ||
} | ||
}, | ||
"type": "object" | ||
} |
Oops, something went wrong.