-
Notifications
You must be signed in to change notification settings - Fork 9
/
testkind.cue
52 lines (49 loc) · 936 Bytes
/
testkind.cue
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
package testing
import "time"
testManifest: {
appName: "test-app"
kinds: [testKind, testKind2]
extraPermissions: {
accessKinds: [{
group: "foo.bar"
resource: "foos"
actions: ["get","list","watch"]
}]
}
}
testKind: {
kind: "TestKind"
plural: "testkinds"
validation: operations: ["create","update"]
conversion: true
conversionWebhookProps: url: "http://foo.bar/convert"
current: "v1"
codegen: frontend: false
versions: {
"v1": {
schema: {
spec: {
stringField: string
}
}
}
"v2": {
codegen: frontend: true
schema: {
spec: {
stringField: string
intField: int64
timeField: string & time.Time
}
}
mutation: operations: ["create","update"]
additionalPrinterColumns: [
{
jsonPath: ".spec.stringField"
name: "STRING FIELD"
type: "string"
}
]
}
}
}