Olaf Bohlen
2023-03-21 0cfd14f46c75d2eef2ed792f2cb27c68415a6be1
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
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: cookierecipes.de.eenfach.olbohlen
spec:
  group: de.eenfach.olbohlen
  names:
    kind: CookieRecipe
    plural: cookierecipes
    singular: cookierecipe
  scope: Namespaced
  versions:
    - name: v1
      served: true
      storage: true
      schema:
        openAPIV3Schema:
          description: "The CookieRecipe CRD is a k8s demo for enhancing functionality, it will not (unfortunately) provide you real cookies in the end..."
          type: object
          properties:
            apiVersion:
              description: 'APIVersion defines the versioned schema of this representation
                of an object. Servers should convert recognized schemas to the latest
                internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
              type: string
            kind:
              type: string
              description: 'Kind is a string value representing the REST resource this
                object represents. Servers may infer this from the endpoint the client
                submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
            metadata:
              type: object
            spec:
              type: object
              properties:
                description:
                  type: string
                  description: please describe the cookie
                source:
                  type: string
                  description: where does this come from? (grandma, mum, the internet...)
                ingredients:
                  description: this list provides required ingredients for this recipe
                  type: array
                  x-kubernetes-list-type: atomic
                  items:
                    type: object
                    properties:
                      name:
                        type: string
                        description: specifies the ingredient
                      amount:
                        type: number
                        description: the amount
                      unit:
                        type: string
                        description: the unit for the amount
                      remarks:
                        type: string
                        description: additional remarks, i.e. "grandma always used to..."
                    required:
                      - name
                      - amount
                      - unit
                steps:
                  description: the actual preparation steps
                  type: array
                  x-kubernetes-list-type: atomic
                  items:
                    type: object
                    properties:
                      order:
                        type: integer
                        description: the order number of the step
                      instruction:
                        type: string
                        description: the instruction text for this step
                    required:
                      - order
                      - instruction
                temperature:
                  type: integer
                  description: temperature for the oven
                sanescale:
                  type: boolean
                  description: if true or not defined, use Celsius-scale, else use Fahrenheit
                preheat:
                  type: boolean
                  description: shall the oven be pre-heated, assume yes if undefined
                duration:
                  type: integer
                  description: the amount of time in minutes to bake the cookies
              required:
                - ingredients
                - steps
                - temperature
                - duration