-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomputeresources-crd.yaml
137 lines (137 loc) · 4.2 KB
/
computeresources-crd.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
# name must match the spec fields below, and be in the form: <plural>.<group>
name: computeresources.swn.uom.gr
spec:
# group name to use for REST API: /apis/<group>/<version>
group: swn.uom.gr
# list of versions supported by this CustomResourceDefinition
versions:
- name: v1
# Each version can be enabled/disabled by Served flag.
served: true
# One and only one version must be marked as the storage version.
storage: true
additionalPrinterColumns:
- name: IP
type: string
jsonPath: .spec.ip
- name: ResourceType
type: string
jsonPath: .spec.resourcetype
- name: Status
type: string
jsonPath: .spec.status
- name: Domain
type: string
jsonPath: .spec.domain
- name: Slice
type: string
jsonPath: .spec.slice
- name: Apps
type: string
jsonPath: .spec.apps
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
name:
type: string
ip:
type: string
mac:
type: string
secondaryip:
type: string
default: ""
secondarymac:
type: string
default: ""
resourcetype:
type: string
enum:
- cloudserver
- testbed
- bossmaster
- bossworker
- edgenet
- mastervm
- workervm
- masternode
- workernode
nodetype:
type: string
domain:
type: string
default: ""
site:
type: string
enum:
- ""
- pg-utah
- apt
- cl-clemson
- cl-utah
- cl-wisconsin
- pg-wall2
default: ""
operator:
type: string
default: ""
enum:
- ""
- resource-manager
- infrastructure-manager-xcpng
- infrastructure-manager-virtualbox
- infrastructure-manager-wall2
- infrastructure-manager-apt
- infrastructure-manager-wisconsin
- infrastructure-manager-cloudlab
slice:
type: string
default: ""
usernamespace:
type: string
default: ""
apps:
type: string
default: ""
status:
type: string
enum:
- free
- reserved
- creating_vm
- booting
- os_ready
- os_configured
- kubernetes_base
- kubernetes_master
- kubernetes_worker
- join_worker
- wait_for_plugin
- install_apps
- os_completed
- allocated
- failed
- up
- down
- created
default: free
# either Namespaced or Cluster
scope: Namespaced
names:
# plural name to be used in the URL: /apis/<group>/<version>/<plural>
plural: computeresources
# singular name to be used as an alias on the CLI and for display
singular: computeresource
# kind is normally the CamelCased singular type. Your resource manifests use this.
kind: ComputeResource
# shortNames allow shorter string to match your resource on the CLI
shortNames:
- cr