Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/ws-manager-mk2/config/crd/bases/workspace.gitpod.io_snapshots.yaml
2506 views
1
# Copyright (c) 2025 Gitpod GmbH. All rights reserved.
2
# Licensed under the GNU Affero General Public License (AGPL).
3
# See License.AGPL.txt in the project root for license information.
4
5
---
6
apiVersion: apiextensions.k8s.io/v1
7
kind: CustomResourceDefinition
8
metadata:
9
annotations:
10
controller-gen.kubebuilder.io/version: v0.16.5
11
name: snapshots.workspace.gitpod.io
12
spec:
13
group: workspace.gitpod.io
14
names:
15
kind: Snapshot
16
listKind: SnapshotList
17
plural: snapshots
18
shortNames:
19
- snapshot
20
singular: snapshot
21
scope: Namespaced
22
versions:
23
- additionalPrinterColumns:
24
- jsonPath: .spec.workspaceID
25
name: Workspace
26
type: string
27
- jsonPath: .status.url
28
name: URL
29
priority: 10
30
type: string
31
- jsonPath: .status.completed
32
name: Completed
33
type: boolean
34
name: v1
35
schema:
36
openAPIV3Schema:
37
description: Snapshot is the Schema for the snapshot API
38
properties:
39
apiVersion:
40
description: |-
41
APIVersion defines the versioned schema of this representation of an object.
42
Servers should convert recognized schemas to the latest internal value, and
43
may reject unrecognized values.
44
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
45
type: string
46
kind:
47
description: |-
48
Kind is a string value representing the REST resource this object represents.
49
Servers may infer this from the endpoint the client submits requests to.
50
Cannot be updated.
51
In CamelCase.
52
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
53
type: string
54
metadata:
55
type: object
56
spec:
57
description: SnapshotSpec defines the desired state of the snapshot
58
properties:
59
nodeName:
60
type: string
61
workspaceID:
62
type: string
63
required:
64
- nodeName
65
- workspaceID
66
type: object
67
status:
68
description: SnapshotStatus defines the observed state of the snapshot
69
properties:
70
completed:
71
description: Completed indicates if the snapshot operation has completed
72
either by taking the snapshot or due to failure
73
type: boolean
74
error:
75
description: Erorr is the error observed during snapshot creation
76
if any
77
type: string
78
url:
79
description: URL contains the url of the snapshot
80
type: string
81
required:
82
- completed
83
type: object
84
type: object
85
served: true
86
storage: true
87
subresources:
88
status: {}
89
90