-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcrd.yaml
More file actions
151 lines (151 loc) · 5.76 KB
/
crd.yaml
File metadata and controls
151 lines (151 loc) · 5.76 KB
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
145
146
147
148
149
150
151
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: devenvs.dell.com
spec:
scope: Namespaced
group: dell.com
names:
kind: DevEnv
plural: devenvs
singular: devenv
shortNames:
- devenv
- de
versions:
- name: v1
served: true
storage: true
additionalPrinterColumns:
- name: SSH URI
type: string
description: The SSH URI of the DevEnv.
jsonPath: .status.create_update_dev_env.ssh
- name: Mode
type: string
description: Mode of operation.
jsonPath: .spec.mode
- name: Enabled
type: boolean
description: Code volume has been mounted to target pods.
jsonPath: .spec.mountsEnabled
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
required:
- image
- authorizedKeys
- baseDomain
- mountsEnabled
- mounts
properties:
image:
type: string
description: The container image of the environment.
default: 702886132326.dkr.ecr.eu-west-1.amazonaws.com/devenv:latest
authorizedKeys:
type: array
description: A list of SSH keys to authorize for SSH access to environment.
minItems: 1
items:
type: string
description: A public SSH key to add to the env's SSH server.
pvcSize:
type: string
description: Size of shared PVC to use for mounting of code.
default: 8Gi
mode:
type: string
description: Mode of operation. Can be one of `modify` or `clone`. Use `modify` to update the target resource in-place with the contents of the PVC. Use `clone` to create a new resource with the contents of the PVC and to expose it over HTTPS.
enum:
- modify
- clone
default: modify
baseDomain:
type: string
description: Base domain name under which subdomains will be created for every environment.
albGroupName:
type: string
description: The ALB group that will be assigned to the ingress resource. Only applies to `clone` mode on EKS. See alb.ingress.kubernetes.io/group.name
default: "eoaas-development"
port:
type: integer
description: Port to expose when using `clone` mode.
default: 8080
mountsEnabled:
type: boolean
description: Globally enable/disable all mounts under `mounts`.
default: false
mounts:
type: array
description: A list of labels that select specific Deployments or Statefulsets along with a path to mount the PVC that contains the code or binary.
items:
type: object
required:
- kind
- mountPath
- labels
- mounted
properties:
kind:
type: string
description: The kind of target resource.
enum:
- deployment
- statefulset
mountPath:
type: string
description: The path the PVC should be mounted on.
subPath:
type: string
description: The subpath inside the PVC that should be mounted to the mountPath.
labels:
type: object
description: The labels that have been assigned to target Deployment or Statefulset.
additionalProperties:
type: string
entrypoints:
type: object
description: Override the entrypoint of specific containers in the target Deployment or Statefulset when mounting the code volume.
additionalProperties:
type: string
images:
type: object
description: Override the image of specific containers in the target Deployment or Statefulset when mounting the code volume.
additionalProperties:
type: string
mounted:
type: boolean
description: Whether the volume should actually be mounted.
default: true
reloadSignal:
type: string
description: The UNIX signal required to force a reload of code and configuration in the target Deployment or Statefulset.
default: TERM
enum:
- TERM
- HUP
reloadCmd:
type: string
description: Command to be executed to target pods when reloading the code.
default: ''
postMountPodCmd:
type: string
description: Command to be executed to target pods after mounting the code volume.
default: ''
excludedPaths:
type: array
description: Code paths to be excluded from rsync.
items:
type: string
default:
- ".git"
- ".vscode"
- "__pycache__"
- ".pyc"
status:
type: object
x-kubernetes-preserve-unknown-fields: true