You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When generating an example yaml in examples-generated the expectation is that the type of the fields matches the type of the fields in the corresponding generated CRD. However, when generating a provider-datadog, the generated CRD for package/crds/monitor.datadog.upbound.io_monitors.yaml includes the expected type string for the following monitorThresholds numbers:
161 monitorThresholds:
162 description: '(Block List, Max: 1) Alert thresholds of the monitor.
163 (see below for nested schema) Alert thresholds of the monitor.'
164 items:
165 properties:
166 critical:
167 description: (String) The monitor CRITICAL threshold. Must
168 be a number. The monitor `CRITICAL` threshold. Must be
169 a number.
170 type: string
171 criticalRecovery:
172 description: (String) The monitor CRITICAL recovery threshold.
173 Must be a number. The monitor `CRITICAL` recovery threshold.
174 Must be a number.
175 type: string
176 ok:
177 description: (String) The monitor OK threshold. Only supported
178 in monitor type service check. Must be a number. The monitor
179 `OK` threshold. Only supported in monitor type `service
180 check`. Must be a number.
181 type: string
182 unknown:
183 description: (String) The monitor UNKNOWN threshold. Only
184 supported in monitor type service check. Must be a number.
185 The monitor `UNKNOWN` threshold. Only supported in monitor
186 type `service check`. Must be a number.
187 type: string
188 warning:
189 description: (String) The monitor WARNING threshold. Must
190 be a number. The monitor `WARNING` threshold. Must be
191 a number.
192 type: string
193 warningRecovery:
194 description: (String) The monitor WARNING recovery threshold.
195 Must be a number. The monitor `WARNING` recovery threshold.
196 Must be a number.
197 type: string
Yet the examples-generated/monitor/monitor.yaml, uses integers for those fields per below:
What happened?
When generating an example yaml in
examples-generated
the expectation is that the type of the fields matches the type of the fields in the corresponding generated CRD. However, when generating aprovider-datadog
, the generated CRD forpackage/crds/monitor.datadog.upbound.io_monitors.yaml
includes the expected type string for the followingmonitorThresholds
numbers:Yet the
examples-generated/monitor/monitor.yaml
, uses integers for those fields per below:When changing the example manually to use strings like below, resources are created.
How can Upjet be directed to create examples with matching types?
How can we reproduce it?
This can be reproduced as follows:
Compare the types of
examples-generated/monitor/monitor.yaml
andpackage/crds/monitor.datadog.upbound.io_monitors.yaml
formonitorThresholds
fields.The text was updated successfully, but these errors were encountered: