-
Notifications
You must be signed in to change notification settings - Fork 9
/
crd-hoprd.yaml
144 lines (144 loc) · 5.19 KB
/
crd-hoprd.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
138
139
140
141
142
143
144
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: hoprds.hoprnet.org
namespace: {{ .Release.Namespace | quote }}
labels:
{{- include "hoprd-operator.labels" . | nindent 4 }}
{{- if .Values.operator.commonLabels }}
{{- .Values.operator.commonLabels | toYaml | nindent 4 }}
{{- end }}
{{- if .Values.operator.commonAnnotations }}
annotations:
{{- .Values.operator.commonAnnotations | toYaml | nindent 4 }}
{{- end }}
spec:
group: hoprnet.org
names:
kind: Hoprd
plural: hoprds
singular: hoprd
shortNames:
- hoprd
scope: Namespaced
versions:
- name: v1alpha2
served: true
storage: true
additionalPrinterColumns:
- name: Phase
type: string
description: Hoprd phase
jsonPath: .status.phase
- name: Version
type: string
description: Version
jsonPath: .spec.version
- name: IdentityHoprd
type: string
description: Hoprd Name
jsonPath: .status.identityName
- name: Age
type: date
jsonPath: .metadata.creationTimestamp
schema:
openAPIV3Schema:
description: Schema definition for Hoprd Node
type: object
properties:
spec:
type: object
properties:
config:
type: string
description: Yaml configuration for Hoprd nodes
enabled:
type: boolean
description: 'Flag indicating if the node should be started or stopped'
supportedRelease:
type: string
description: 'Release Name of the supported version'
enum:
- saint-louis
service:
type: object
description: Service configuration
properties:
type:
type: string
enum:
- LoadBalancer
- ClusterIP
description: The type of service to create
required:
- type
deployment:
type: object
description: Deployment configuration
properties:
env:
type: string
description: The definition for environment variables to be used by the node deployment
resources:
type: string
description: The definition for hardware resources to be used by the node deployment
startupProbe:
type: string
description: The definition of the startup probe to be used by the node deployment
livenessProbe:
type: string
description: The definition of the liveness probe to be used by the node deployment
readinessProbe:
type: string
description: The definition of the readiness probe to be used by the node deployment
identityPoolName:
type: string
description: The name of the IdentityPool
identityName:
type: string
description: The name of the IdentityHoprd
version:
type: string
description: 'An specific hoprd version. Should match with a docker tag'
deleteDatabase:
type: boolean
description: 'Trigger to delete the database of the node'
ports_allocation:
type: number
description: >-
Number of ports to be opened for session management in the hoprd node.
Each session requires one port. Default: 10 ports if not specified.
Warning: Large numbers may impact kubernetes cluster performance.
minimum: 1
maximum: 200
required:
- version
- identityPoolName
- supportedRelease
status:
description: The status object of Hoprd node
nullable: true
properties:
updateTimestamp:
format: date-time
type: string
description: Timestamp of the last applied change
checksum:
type: string
description: Checksum of the last applied change
phase:
description: Phase of the last applied change
type: string
enum:
- Initializing
- Running
- Stopped
- Failed
- Deleting
identityName:
type: string
description: Name of the HoprdNode
required: [ "updateTimestamp", "checksum", "phase"]
type: object
required:
- spec