Skip to content

Commit

Permalink
fix: add additional properties in crd for metrics obj
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra authored and moshloop committed Oct 23, 2024
1 parent 11b2f05 commit b7907ef
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ manifests: .bin/controller-gen .bin/yq
$(YQ) ea 'del(.spec.versions[0].schema.openAPIV3Schema.properties.spec.properties.checks.items.properties)' crd.yaml | \
$(YQ) ea 'del(.spec.versions[0].schema.openAPIV3Schema.properties.spec.properties.forEach.properties)' /dev/stdin | \
$(YQ) ea 'del(.spec.versions[0].schema.openAPIV3Schema.properties.spec.properties.[].items.properties.metrics.items.properties)' /dev/stdin | \
$(YQ) ea '.spec.versions[0].schema.openAPIV3Schema.properties.spec.properties[] |= (select(.items.properties.metrics != null) | .items.properties.metrics.items.additionalProperties = true)' /dev/stdin | \
$(YQ) ea 'del(.spec.versions[0].schema.openAPIV3Schema.properties.spec.properties.lookup.properties)' /dev/stdin | \
$(YQ) ea 'del(.spec.versions[0].schema.openAPIV3Schema.properties.spec.properties.properties.items.properties.lookup.properties)' /dev/stdin | \
$(YQ) ea 'del(.spec.versions[0].schema.openAPIV3Schema.properties.spec.properties.components.items.properties.forEach.properties)' /dev/stdin | \
Expand Down
38 changes: 38 additions & 0 deletions config/deploy/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ spec:
https://canarychecker.io/concepts/metrics-exporter
items:
type: object
additionalProperties: true
type: array
name:
description: Name of the check
Expand Down Expand Up @@ -492,6 +493,7 @@ spec:
https://canarychecker.io/concepts/metrics-exporter
items:
type: object
additionalProperties: true
type: array
name:
description: Name of the check
Expand Down Expand Up @@ -877,6 +879,7 @@ spec:
https://canarychecker.io/concepts/metrics-exporter
items:
type: object
additionalProperties: true
type: array
name:
description: Name of the check
Expand Down Expand Up @@ -1212,6 +1215,7 @@ spec:
https://canarychecker.io/concepts/metrics-exporter
items:
type: object
additionalProperties: true
type: array
name:
description: Name of the check
Expand Down Expand Up @@ -1510,6 +1514,7 @@ spec:
https://canarychecker.io/concepts/metrics-exporter
items:
type: object
additionalProperties: true
type: array
name:
description: Name of the check
Expand Down Expand Up @@ -1852,6 +1857,7 @@ spec:
https://canarychecker.io/concepts/metrics-exporter
items:
type: object
additionalProperties: true
type: array
name:
description: Name of the check
Expand Down Expand Up @@ -2259,6 +2265,7 @@ spec:
https://canarychecker.io/concepts/metrics-exporter
items:
type: object
additionalProperties: true
type: array
name:
description: Name of the check
Expand Down Expand Up @@ -2466,6 +2473,7 @@ spec:
https://canarychecker.io/concepts/metrics-exporter
items:
type: object
additionalProperties: true
type: array
name:
description: Name of the check
Expand Down Expand Up @@ -2750,6 +2758,7 @@ spec:
https://canarychecker.io/concepts/metrics-exporter
items:
type: object
additionalProperties: true
type: array
name:
description: Name of the check
Expand Down Expand Up @@ -2980,6 +2989,7 @@ spec:
https://canarychecker.io/concepts/metrics-exporter
items:
type: object
additionalProperties: true
type: array
minrecords:
type: integer
Expand Down Expand Up @@ -3290,6 +3300,7 @@ spec:
https://canarychecker.io/concepts/metrics-exporter
items:
type: object
additionalProperties: true
type: array
name:
description: Name of the check
Expand Down Expand Up @@ -3582,6 +3593,7 @@ spec:
https://canarychecker.io/concepts/metrics-exporter
items:
type: object
additionalProperties: true
type: array
name:
description: Name of the check
Expand Down Expand Up @@ -3843,6 +3855,7 @@ spec:
https://canarychecker.io/concepts/metrics-exporter
items:
type: object
additionalProperties: true
type: array
name:
description: Name of the check
Expand Down Expand Up @@ -4087,6 +4100,7 @@ spec:
https://canarychecker.io/concepts/metrics-exporter
items:
type: object
additionalProperties: true
type: array
name:
description: Name of the check
Expand Down Expand Up @@ -4949,6 +4963,7 @@ spec:
https://canarychecker.io/concepts/metrics-exporter
items:
type: object
additionalProperties: true
type: array
name:
description: Name of the check
Expand Down Expand Up @@ -5419,6 +5434,7 @@ spec:
https://canarychecker.io/concepts/metrics-exporter
items:
type: object
additionalProperties: true
type: array
minAge:
description: MinAge the latest object should be older than defined age
Expand Down Expand Up @@ -5867,6 +5883,7 @@ spec:
https://canarychecker.io/concepts/metrics-exporter
items:
type: object
additionalProperties: true
type: array
name:
description: Name of the check
Expand Down Expand Up @@ -6234,6 +6251,7 @@ spec:
https://canarychecker.io/concepts/metrics-exporter
items:
type: object
additionalProperties: true
type: array
name:
description: Name of the check
Expand Down Expand Up @@ -6553,6 +6571,7 @@ spec:
https://canarychecker.io/concepts/metrics-exporter
items:
type: object
additionalProperties: true
type: array
name:
description: Name of the check
Expand Down Expand Up @@ -6873,6 +6892,7 @@ spec:
https://canarychecker.io/concepts/metrics-exporter
items:
type: object
additionalProperties: true
type: array
name:
description: Name of the check
Expand Down Expand Up @@ -7370,6 +7390,7 @@ spec:
https://canarychecker.io/concepts/metrics-exporter
items:
type: object
additionalProperties: true
type: array
name:
description: Name of the check
Expand Down Expand Up @@ -7633,6 +7654,7 @@ spec:
https://canarychecker.io/concepts/metrics-exporter
items:
type: object
additionalProperties: true
type: array
name:
description: Name of the check
Expand Down Expand Up @@ -7879,6 +7901,7 @@ spec:
https://canarychecker.io/concepts/metrics-exporter
items:
type: object
additionalProperties: true
type: array
name:
description: Name of the check
Expand Down Expand Up @@ -8178,6 +8201,7 @@ spec:
https://canarychecker.io/concepts/metrics-exporter
items:
type: object
additionalProperties: true
type: array
name:
description: Name of the check
Expand Down Expand Up @@ -8504,6 +8528,7 @@ spec:
https://canarychecker.io/concepts/metrics-exporter
items:
type: object
additionalProperties: true
type: array
name:
description: Name of the check
Expand Down Expand Up @@ -8771,6 +8796,7 @@ spec:
https://canarychecker.io/concepts/metrics-exporter
items:
type: object
additionalProperties: true
type: array
name:
description: Name of the check
Expand Down Expand Up @@ -9068,6 +9094,7 @@ spec:
https://canarychecker.io/concepts/metrics-exporter
items:
type: object
additionalProperties: true
type: array
name:
description: Name of the check
Expand Down Expand Up @@ -9201,6 +9228,7 @@ spec:
https://canarychecker.io/concepts/metrics-exporter
items:
type: object
additionalProperties: true
type: array
name:
description: Name of the check
Expand Down Expand Up @@ -9531,6 +9559,7 @@ spec:
https://canarychecker.io/concepts/metrics-exporter
items:
type: object
additionalProperties: true
type: array
name:
description: Name of the check
Expand Down Expand Up @@ -9873,6 +9902,7 @@ spec:
https://canarychecker.io/concepts/metrics-exporter
items:
type: object
additionalProperties: true
type: array
name:
description: Name of the check
Expand Down Expand Up @@ -10119,6 +10149,7 @@ spec:
https://canarychecker.io/concepts/metrics-exporter
items:
type: object
additionalProperties: true
type: array
name:
description: Name of the check
Expand Down Expand Up @@ -10466,6 +10497,7 @@ spec:
https://canarychecker.io/concepts/metrics-exporter
items:
type: object
additionalProperties: true
type: array
name:
description: Name of the check
Expand Down Expand Up @@ -10701,6 +10733,7 @@ spec:
https://canarychecker.io/concepts/metrics-exporter
items:
type: object
additionalProperties: true
type: array
name:
description: Name of the check
Expand Down Expand Up @@ -11076,6 +11109,7 @@ spec:
https://canarychecker.io/concepts/metrics-exporter
items:
type: object
additionalProperties: true
type: array
name:
description: Name of the check
Expand Down Expand Up @@ -11635,6 +11669,7 @@ spec:
https://canarychecker.io/concepts/metrics-exporter
items:
type: object
additionalProperties: true
type: array
name:
description: Name of the check
Expand Down Expand Up @@ -11985,6 +12020,7 @@ spec:
https://canarychecker.io/concepts/metrics-exporter
items:
type: object
additionalProperties: true
type: array
name:
description: Name of the check
Expand Down Expand Up @@ -12333,6 +12369,7 @@ spec:
https://canarychecker.io/concepts/metrics-exporter
items:
type: object
additionalProperties: true
type: array
name:
description: Name of the check
Expand Down Expand Up @@ -12639,6 +12676,7 @@ spec:
https://canarychecker.io/concepts/metrics-exporter
items:
type: object
additionalProperties: true
type: array
name:
description: Name of the check
Expand Down
Loading

0 comments on commit b7907ef

Please sign in to comment.