-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.go
More file actions
42 lines (35 loc) · 1.07 KB
/
types.go
File metadata and controls
42 lines (35 loc) · 1.07 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
package main
type compute struct {
Memory string `yaml:"memory"`
CPU string `yaml:"cpu"`
}
type resource struct {
Requests compute `yaml:"requests"`
Limits compute `yaml:"limits"`
}
type ContainerItem struct {
Name string `yaml:"name"`
Resources resource `yaml:"resources"`
SecurityContext securityContext `yaml:"securityContext"`
}
type spec struct {
Container []ContainerItem `yaml:"containers"`
SecurityContext securityContext `yaml:"securityContext"`
ServiceAccountName string `yaml:"serviceAccountName"`
}
type metadata struct {
Name string `yaml:"name"`
Namespace string `yaml:"namespace"`
}
type securityContext struct {
RunAsUser int32 `yaml:"runAsUser"`
RunAsGroup int32 `yaml:"runAsGroup"`
ReadOnlyRootFilesystem bool `yaml:"readOnlyRootFilesystem"`
Privileged bool `yaml:"privileged"`
}
type podSpec struct {
Spec spec `yaml:"spec"`
Kind string `yaml:"kind"`
Immutable bool `yaml:"immutable"`
Metadata metadata `yaml:"metadata"`
}