|
| 1 | +apiVersion: apiextensions.k8s.io/v1 |
| 2 | +kind: CustomResourceDefinition |
| 3 | +metadata: |
| 4 | + name: kuards.extensions.triggermesh.io |
| 5 | +spec: |
| 6 | + group: extensions.triggermesh.io |
| 7 | + scope: Namespaced |
| 8 | + names: |
| 9 | + plural: kuards |
| 10 | + singular: kuard |
| 11 | + kind: Kuard |
| 12 | + versions: |
| 13 | + - name: v1 |
| 14 | + served: true |
| 15 | + storage: true |
| 16 | + subresources: |
| 17 | + status: {} |
| 18 | + schema: |
| 19 | + openAPIV3Schema: |
| 20 | + type: object |
| 21 | + properties: |
| 22 | + spec: |
| 23 | + type: object |
| 24 | + properties: |
| 25 | + # Root variables demo |
| 26 | + variable1: |
| 27 | + type: string |
| 28 | + variable2: |
| 29 | + type: string |
| 30 | + # Nested variables demo |
| 31 | + group: |
| 32 | + type: object |
| 33 | + properties: |
| 34 | + variable3: |
| 35 | + type: boolean |
| 36 | + variable4: |
| 37 | + type: integer |
| 38 | + # Simple array demo |
| 39 | + array: |
| 40 | + type: array |
| 41 | + items: |
| 42 | + type: string |
| 43 | + # Secret reference demo |
| 44 | + refToSecret: |
| 45 | + type: object |
| 46 | + properties: |
| 47 | + secretName: |
| 48 | + type: string |
| 49 | + secretKey: |
| 50 | + type: string |
| 51 | + # ConfigMap reference demo |
| 52 | + refToConfigMap: |
| 53 | + type: object |
| 54 | + properties: |
| 55 | + configName: |
| 56 | + type: string |
| 57 | + configKey: |
| 58 | + type: string |
| 59 | + # URI resolving demo |
| 60 | + refToAddress: |
| 61 | + type: object |
| 62 | + properties: |
| 63 | + ref: |
| 64 | + type: object |
| 65 | + properties: |
| 66 | + apiVersion: |
| 67 | + type: string |
| 68 | + kind: |
| 69 | + type: string |
| 70 | + name: |
| 71 | + type: string |
| 72 | + namespace: |
| 73 | + type: string |
| 74 | + required: |
| 75 | + - kind |
| 76 | + - name |
| 77 | + - apiVersion |
| 78 | + uri: |
| 79 | + type: string |
| 80 | + oneOf: |
| 81 | + - required: [ref] |
| 82 | + - required: [uri] |
| 83 | + |
| 84 | + status: |
| 85 | + description: CRDRegistrationStatus defines the observed state of CRDRegistration |
| 86 | + properties: |
| 87 | + address: |
| 88 | + description: URL exposed by this workload. |
| 89 | + type: object |
| 90 | + properties: |
| 91 | + url: |
| 92 | + type: string |
| 93 | + sinkUri: |
| 94 | + description: URI this workload is pointing to. |
| 95 | + type: string |
| 96 | + format: uri |
| 97 | + annotations: |
| 98 | + additionalProperties: |
| 99 | + type: string |
| 100 | + description: Annotations is additional Status fields for the Resource |
| 101 | + to save some additional State as well as convey more information |
| 102 | + to the user. This is roughly akin to Annotations on any k8s resource, |
| 103 | + just the reconciler conveying richer information outwards. |
| 104 | + type: object |
| 105 | + conditions: |
| 106 | + description: Conditions the latest available observations of a resource's |
| 107 | + current state. |
| 108 | + items: |
| 109 | + properties: |
| 110 | + lastTransitionTime: |
| 111 | + description: lastTransitionTime is the last time the condition |
| 112 | + transitioned from one status to another. This should be when |
| 113 | + the underlying condition changed. If that is not known, then |
| 114 | + using the time when the API field changed is acceptable. |
| 115 | + format: date-time |
| 116 | + type: string |
| 117 | + message: |
| 118 | + description: message is a human readable message indicating |
| 119 | + details about the transition. This may be an empty string. |
| 120 | + maxLength: 32768 |
| 121 | + type: string |
| 122 | + reason: |
| 123 | + description: reason contains a programmatic identifier indicating |
| 124 | + the reason for the condition's last transition. Producers |
| 125 | + of specific condition types may define expected values and |
| 126 | + meanings for this field, and whether the values are considered |
| 127 | + a guaranteed API. The value should be a CamelCase string. |
| 128 | + This field may not be empty. |
| 129 | + maxLength: 1024 |
| 130 | + minLength: 1 |
| 131 | + pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ |
| 132 | + type: string |
| 133 | + status: |
| 134 | + description: status of the condition, one of True, False, Unknown. |
| 135 | + enum: |
| 136 | + - "True" |
| 137 | + - "False" |
| 138 | + - Unknown |
| 139 | + type: string |
| 140 | + type: |
| 141 | + description: type of condition in CamelCase or in foo.example.com/CamelCase. |
| 142 | + --- Many .condition.type values are consistent across resources |
| 143 | + like Available, but because arbitrary conditions can be useful |
| 144 | + (see .node.status.conditions), the ability to deconflict is |
| 145 | + important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt) |
| 146 | + maxLength: 316 |
| 147 | + pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ |
| 148 | + type: string |
| 149 | + required: |
| 150 | + - status |
| 151 | + - type |
| 152 | + type: object |
| 153 | + type: array |
| 154 | + observedGeneration: |
| 155 | + description: ObservedGeneration is the 'Generation' of the Object |
| 156 | + that was last processed by the controller. |
| 157 | + format: int64 |
| 158 | + type: integer |
| 159 | + type: object |
| 160 | + |
| 161 | + additionalPrinterColumns: |
| 162 | + - jsonPath: .status.address.url |
| 163 | + name: URL |
| 164 | + type: string |
| 165 | + - jsonPath: .status.conditions[?(@.type=="Ready")].status |
| 166 | + name: Ready |
| 167 | + type: string |
0 commit comments