Commit 74fc4f8
authored
fix(sm): allow string for probes in check composition (#71)
* fix(sm): allow string for probes in check composition
The SM Check expects probe IDs for the probes, in Terraform the
`grafana_synthetic_monitoring_probes` data source can be used to grab
those based on the probe name. Crossplane (Upjet) doesn't have a 'data
source' concept so that is not possible.
The grafana-data function[1] aims to provide the translation from name
to ID. To accommodate for that, the XRD will need to allow for probes to
be names, then the function can replace those with IDs in the composite.
[1] https://github.com/grafana/crossplane-function-grafana-data/
* fix: implement IntOrString according to CRD docs
* fix: must be anyOf
* fix: correctly patch item
* fix: s/number/integer1 parent 7c13cad commit 74fc4f8
2 files changed
Lines changed: 57 additions & 2 deletions
File tree
- generator
- packages/grafana-namespaced-sm
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 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 | + | |
31 | 79 | | |
32 | 80 | | |
33 | 81 | | |
| 82 | + | |
34 | 83 | | |
35 | 84 | | |
36 | 85 | | |
| |||
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
96 | 99 | | |
97 | 100 | | |
98 | 101 | | |
| |||
916 | 919 | | |
917 | 920 | | |
918 | 921 | | |
919 | | - | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
920 | 926 | | |
921 | 927 | | |
922 | 928 | | |
| |||
0 commit comments