Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CRDs in longhorn.io #448

Merged
merged 1 commit into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions longhorn.io/backingimage_v1beta1.json
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"
}
137 changes: 137 additions & 0 deletions longhorn.io/backingimage_v1beta2.json
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"
}
23 changes: 23 additions & 0 deletions longhorn.io/backingimagedatasource_v1beta1.json
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"
}
97 changes: 97 additions & 0 deletions longhorn.io/backingimagedatasource_v1beta2.json
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"
}
23 changes: 23 additions & 0 deletions longhorn.io/backingimagemanager_v1beta1.json
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"
}
Loading