|
| 1 | +--- |
| 2 | +apiVersion: apiextensions.k8s.io/v1 |
| 3 | +kind: CustomResourceDefinition |
| 4 | +metadata: |
| 5 | + annotations: |
| 6 | + controller-gen.kubebuilder.io/version: v0.10.0 |
| 7 | + creationTimestamp: null |
| 8 | + name: faultinjections.ctrlmesh.kusionstack.io |
| 9 | +spec: |
| 10 | + group: ctrlmesh.kusionstack.io |
| 11 | + names: |
| 12 | + kind: FaultInjection |
| 13 | + listKind: FaultInjectionList |
| 14 | + plural: faultinjections |
| 15 | + shortNames: |
| 16 | + - fj |
| 17 | + singular: faultinjection |
| 18 | + scope: Namespaced |
| 19 | + versions: |
| 20 | + - name: v1alpha1 |
| 21 | + schema: |
| 22 | + openAPIV3Schema: |
| 23 | + properties: |
| 24 | + apiVersion: |
| 25 | + description: 'APIVersion defines the versioned schema of this representation |
| 26 | + of an object. Servers should convert recognized schemas to the latest |
| 27 | + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' |
| 28 | + type: string |
| 29 | + kind: |
| 30 | + description: 'Kind is a string value representing the REST resource this |
| 31 | + object represents. Servers may infer this from the endpoint the client |
| 32 | + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' |
| 33 | + type: string |
| 34 | + metadata: |
| 35 | + type: object |
| 36 | + spec: |
| 37 | + properties: |
| 38 | + disabled: |
| 39 | + type: boolean |
| 40 | + httpFault: |
| 41 | + items: |
| 42 | + description: HTTPFaultInjection can be used to specify one or more |
| 43 | + faults to inject while forwarding HTTP requests to the destination |
| 44 | + specified in a route. |
| 45 | + properties: |
| 46 | + abort: |
| 47 | + description: Abort Http request attempts and return error codes |
| 48 | + back to downstream service, giving the impression that the |
| 49 | + upstream service is faulty. |
| 50 | + properties: |
| 51 | + httpStatus: |
| 52 | + description: HttpStatus is used to indicate the HTTP status |
| 53 | + code to return to the caller. |
| 54 | + type: integer |
| 55 | + percent: |
| 56 | + description: Percent of requests to be aborted with the |
| 57 | + error code provided. If not specified, no request will |
| 58 | + be aborted. |
| 59 | + type: string |
| 60 | + type: object |
| 61 | + delay: |
| 62 | + description: Delay requests before forwarding, emulating various |
| 63 | + failures such as network issues, overloaded upstream service, |
| 64 | + etc. |
| 65 | + properties: |
| 66 | + fixedDelay: |
| 67 | + description: FixedDelay is used to indicate the amount of |
| 68 | + delay in seconds. |
| 69 | + type: string |
| 70 | + percent: |
| 71 | + description: Percent of requests on which the delay will |
| 72 | + be injected. If left unspecified, no request will be delayed |
| 73 | + type: string |
| 74 | + type: object |
| 75 | + effectiveTime: |
| 76 | + description: Effective time of fault injection |
| 77 | + properties: |
| 78 | + daysOfMonth: |
| 79 | + description: DaysOfMonth specifies on which days of the |
| 80 | + month the fault injection configuration is effective. |
| 81 | + For example, 1 represents the first day of the month, |
| 82 | + and so on. |
| 83 | + items: |
| 84 | + type: integer |
| 85 | + type: array |
| 86 | + daysOfWeek: |
| 87 | + description: DaysOfWeek specifies on which days of the week |
| 88 | + the fault injection configuration is effective. 0 represents |
| 89 | + Sunday, 1 represents Monday, and so on. |
| 90 | + items: |
| 91 | + type: integer |
| 92 | + type: array |
| 93 | + endTime: |
| 94 | + description: EndTime is the ending time of fault injection. |
| 95 | + type: string |
| 96 | + months: |
| 97 | + description: Months specifies in which months of the year |
| 98 | + the fault injection configuration is effective. 1 represents |
| 99 | + January, 2 represents February, and so on. |
| 100 | + items: |
| 101 | + type: integer |
| 102 | + type: array |
| 103 | + startTime: |
| 104 | + description: StartTime is the starting time of fault injection. |
| 105 | + type: string |
| 106 | + type: object |
| 107 | + match: |
| 108 | + description: Match specifies a set of criterion to be met in |
| 109 | + order for the rule to be applied to the HTTP request. |
| 110 | + properties: |
| 111 | + httpMatch: |
| 112 | + items: |
| 113 | + description: HttpMatch specifies the criteria for matching |
| 114 | + HTTP requests to RESTful resources as part of HTTP FaultInjection. |
| 115 | + Each rule can target one or more URLs and HTTP methods. |
| 116 | + properties: |
| 117 | + method: |
| 118 | + description: 'Method specifies the http method of |
| 119 | + the request, like: PUT, POST, GET, DELETE.' |
| 120 | + items: |
| 121 | + type: string |
| 122 | + type: array |
| 123 | + url: |
| 124 | + description: URL gives the location of the rest request, |
| 125 | + in standard URL form (`scheme://host:port/path`) |
| 126 | + items: |
| 127 | + type: string |
| 128 | + type: array |
| 129 | + required: |
| 130 | + - method |
| 131 | + - url |
| 132 | + type: object |
| 133 | + type: array |
| 134 | + resources: |
| 135 | + items: |
| 136 | + properties: |
| 137 | + apiGroups: |
| 138 | + items: |
| 139 | + type: string |
| 140 | + type: array |
| 141 | + namespaces: |
| 142 | + items: |
| 143 | + type: string |
| 144 | + type: array |
| 145 | + resources: |
| 146 | + items: |
| 147 | + type: string |
| 148 | + type: array |
| 149 | + verbs: |
| 150 | + items: |
| 151 | + type: string |
| 152 | + type: array |
| 153 | + type: object |
| 154 | + type: array |
| 155 | + type: object |
| 156 | + name: |
| 157 | + description: Name is the name of the policy |
| 158 | + type: string |
| 159 | + type: object |
| 160 | + type: array |
| 161 | + selector: |
| 162 | + description: Selector is a label query over pods of this configuration. |
| 163 | + properties: |
| 164 | + matchExpressions: |
| 165 | + description: matchExpressions is a list of label selector requirements. |
| 166 | + The requirements are ANDed. |
| 167 | + items: |
| 168 | + description: A label selector requirement is a selector that |
| 169 | + contains values, a key, and an operator that relates the key |
| 170 | + and values. |
| 171 | + properties: |
| 172 | + key: |
| 173 | + description: key is the label key that the selector applies |
| 174 | + to. |
| 175 | + type: string |
| 176 | + operator: |
| 177 | + description: operator represents a key's relationship to |
| 178 | + a set of values. Valid operators are In, NotIn, Exists |
| 179 | + and DoesNotExist. |
| 180 | + type: string |
| 181 | + values: |
| 182 | + description: values is an array of string values. If the |
| 183 | + operator is In or NotIn, the values array must be non-empty. |
| 184 | + If the operator is Exists or DoesNotExist, the values |
| 185 | + array must be empty. This array is replaced during a strategic |
| 186 | + merge patch. |
| 187 | + items: |
| 188 | + type: string |
| 189 | + type: array |
| 190 | + required: |
| 191 | + - key |
| 192 | + - operator |
| 193 | + type: object |
| 194 | + type: array |
| 195 | + matchLabels: |
| 196 | + additionalProperties: |
| 197 | + type: string |
| 198 | + description: matchLabels is a map of {key,value} pairs. A single |
| 199 | + {key,value} in the matchLabels map is equivalent to an element |
| 200 | + of matchExpressions, whose key field is "key", the operator |
| 201 | + is "In", and the values array contains only "value". The requirements |
| 202 | + are ANDed. |
| 203 | + type: object |
| 204 | + type: object |
| 205 | + x-kubernetes-map-type: atomic |
| 206 | + type: object |
| 207 | + status: |
| 208 | + properties: |
| 209 | + currentSpecHash: |
| 210 | + type: string |
| 211 | + lastUpdatedTime: |
| 212 | + format: date-time |
| 213 | + type: string |
| 214 | + observedGeneration: |
| 215 | + format: int64 |
| 216 | + type: integer |
| 217 | + targetStatus: |
| 218 | + items: |
| 219 | + properties: |
| 220 | + configHash: |
| 221 | + type: string |
| 222 | + message: |
| 223 | + type: string |
| 224 | + podIP: |
| 225 | + type: string |
| 226 | + podName: |
| 227 | + type: string |
| 228 | + type: object |
| 229 | + type: array |
| 230 | + type: object |
| 231 | + type: object |
| 232 | + served: true |
| 233 | + storage: true |
| 234 | + subresources: |
| 235 | + status: {} |
0 commit comments