-
Notifications
You must be signed in to change notification settings - Fork 30
/
crd.yaml
55 lines (54 loc) · 1.44 KB
/
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
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: documents.kube.rs
spec:
group: kube.rs
names:
categories: []
kind: Document
plural: documents
shortNames:
- doc
singular: document
scope: Namespaced
versions:
- additionalPrinterColumns: []
name: v1
schema:
openAPIV3Schema:
description: Auto-generated derived type for DocumentSpec via `CustomResource`
properties:
spec:
description: |-
Generate the Kubernetes wrapper struct `Document` from our Spec and Status struct
This provides a hook for generating the CRD yaml (in crdgen.rs) NB: CustomResource generates a pub struct Document here To query for documents.kube.rs with kube, use Api<Document>.
properties:
content:
type: string
hide:
type: boolean
title:
type: string
required:
- content
- hide
- title
type: object
status:
description: The status object of `Document`
nullable: true
properties:
hidden:
type: boolean
required:
- hidden
type: object
required:
- spec
title: Document
type: object
served: true
storage: true
subresources:
status: {}