Skip to content

Commit

Permalink
fix: canary CRD. kubebuilder annotation on metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
adityathebe committed Oct 25, 2024
1 parent 914de31 commit 946dc18
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/v1/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ type Description struct {
TransformDeleteStrategy string `yaml:"transformDeleteStrategy,omitempty" json:"transformDeleteStrategy,omitempty"`
// Metrics to expose from check.
// https://canarychecker.io/concepts/metrics-exporter
// +kubebuilder:validation:XPreserveUnknownFields
Metrics []external.Metrics `json:"metrics,omitempty" yaml:"metrics,omitempty"`
}

Expand Down
39 changes: 39 additions & 0 deletions config/deploy/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ spec:
type: object
additionalProperties: true
type: array
x-kubernetes-preserve-unknown-fields: true
name:
description: Name of the check
type: string
Expand Down Expand Up @@ -507,6 +508,7 @@ spec:
type: object
additionalProperties: true
type: array
x-kubernetes-preserve-unknown-fields: true
name:
description: Name of the check
type: string
Expand Down Expand Up @@ -899,6 +901,7 @@ spec:
type: object
additionalProperties: true
type: array
x-kubernetes-preserve-unknown-fields: true
name:
description: Name of the check
type: string
Expand Down Expand Up @@ -1241,6 +1244,7 @@ spec:
type: object
additionalProperties: true
type: array
x-kubernetes-preserve-unknown-fields: true
name:
description: Name of the check
type: string
Expand Down Expand Up @@ -1546,6 +1550,7 @@ spec:
type: object
additionalProperties: true
type: array
x-kubernetes-preserve-unknown-fields: true
name:
description: Name of the check
type: string
Expand Down Expand Up @@ -1895,6 +1900,7 @@ spec:
type: object
additionalProperties: true
type: array
x-kubernetes-preserve-unknown-fields: true
name:
description: Name of the check
type: string
Expand Down Expand Up @@ -2309,6 +2315,7 @@ spec:
type: object
additionalProperties: true
type: array
x-kubernetes-preserve-unknown-fields: true
name:
description: Name of the check
type: string
Expand Down Expand Up @@ -2523,6 +2530,7 @@ spec:
type: object
additionalProperties: true
type: array
x-kubernetes-preserve-unknown-fields: true
name:
description: Name of the check
type: string
Expand Down Expand Up @@ -2814,6 +2822,7 @@ spec:
type: object
additionalProperties: true
type: array
x-kubernetes-preserve-unknown-fields: true
name:
description: Name of the check
type: string
Expand Down Expand Up @@ -3051,6 +3060,7 @@ spec:
type: object
additionalProperties: true
type: array
x-kubernetes-preserve-unknown-fields: true
minrecords:
type: integer
name:
Expand Down Expand Up @@ -3368,6 +3378,7 @@ spec:
type: object
additionalProperties: true
type: array
x-kubernetes-preserve-unknown-fields: true
name:
description: Name of the check
type: string
Expand Down Expand Up @@ -3667,6 +3678,7 @@ spec:
type: object
additionalProperties: true
type: array
x-kubernetes-preserve-unknown-fields: true
name:
description: Name of the check
type: string
Expand Down Expand Up @@ -3935,6 +3947,7 @@ spec:
type: object
additionalProperties: true
type: array
x-kubernetes-preserve-unknown-fields: true
name:
description: Name of the check
type: string
Expand Down Expand Up @@ -4186,6 +4199,7 @@ spec:
type: object
additionalProperties: true
type: array
x-kubernetes-preserve-unknown-fields: true
name:
description: Name of the check
type: string
Expand Down Expand Up @@ -5055,6 +5069,7 @@ spec:
type: object
additionalProperties: true
type: array
x-kubernetes-preserve-unknown-fields: true
name:
description: Name of the check
type: string
Expand Down Expand Up @@ -5532,6 +5547,7 @@ spec:
type: object
additionalProperties: true
type: array
x-kubernetes-preserve-unknown-fields: true
minAge:
description: MinAge the latest object should be older than defined age
type: string
Expand Down Expand Up @@ -5987,6 +6003,7 @@ spec:
type: object
additionalProperties: true
type: array
x-kubernetes-preserve-unknown-fields: true
name:
description: Name of the check
type: string
Expand Down Expand Up @@ -6361,6 +6378,7 @@ spec:
type: object
additionalProperties: true
type: array
x-kubernetes-preserve-unknown-fields: true
name:
description: Name of the check
type: string
Expand Down Expand Up @@ -6687,6 +6705,7 @@ spec:
type: object
additionalProperties: true
type: array
x-kubernetes-preserve-unknown-fields: true
name:
description: Name of the check
type: string
Expand Down Expand Up @@ -7014,6 +7033,7 @@ spec:
type: object
additionalProperties: true
type: array
x-kubernetes-preserve-unknown-fields: true
name:
description: Name of the check
type: string
Expand Down Expand Up @@ -7518,6 +7538,7 @@ spec:
type: object
additionalProperties: true
type: array
x-kubernetes-preserve-unknown-fields: true
name:
description: Name of the check
type: string
Expand Down Expand Up @@ -7788,6 +7809,7 @@ spec:
type: object
additionalProperties: true
type: array
x-kubernetes-preserve-unknown-fields: true
name:
description: Name of the check
type: string
Expand Down Expand Up @@ -8041,6 +8063,7 @@ spec:
type: object
additionalProperties: true
type: array
x-kubernetes-preserve-unknown-fields: true
name:
description: Name of the check
type: string
Expand Down Expand Up @@ -8347,6 +8370,7 @@ spec:
type: object
additionalProperties: true
type: array
x-kubernetes-preserve-unknown-fields: true
name:
description: Name of the check
type: string
Expand Down Expand Up @@ -8680,6 +8704,7 @@ spec:
type: object
additionalProperties: true
type: array
x-kubernetes-preserve-unknown-fields: true
name:
description: Name of the check
type: string
Expand Down Expand Up @@ -8954,6 +8979,7 @@ spec:
type: object
additionalProperties: true
type: array
x-kubernetes-preserve-unknown-fields: true
name:
description: Name of the check
type: string
Expand Down Expand Up @@ -9258,6 +9284,7 @@ spec:
type: object
additionalProperties: true
type: array
x-kubernetes-preserve-unknown-fields: true
name:
description: Name of the check
type: string
Expand Down Expand Up @@ -9398,6 +9425,7 @@ spec:
type: object
additionalProperties: true
type: array
x-kubernetes-preserve-unknown-fields: true
name:
description: Name of the check
type: string
Expand Down Expand Up @@ -9735,6 +9763,7 @@ spec:
type: object
additionalProperties: true
type: array
x-kubernetes-preserve-unknown-fields: true
name:
description: Name of the check
type: string
Expand Down Expand Up @@ -10084,6 +10113,7 @@ spec:
type: object
additionalProperties: true
type: array
x-kubernetes-preserve-unknown-fields: true
name:
description: Name of the check
type: string
Expand Down Expand Up @@ -10337,6 +10367,7 @@ spec:
type: object
additionalProperties: true
type: array
x-kubernetes-preserve-unknown-fields: true
name:
description: Name of the check
type: string
Expand Down Expand Up @@ -10691,6 +10722,7 @@ spec:
type: object
additionalProperties: true
type: array
x-kubernetes-preserve-unknown-fields: true
name:
description: Name of the check
type: string
Expand Down Expand Up @@ -10933,6 +10965,7 @@ spec:
type: object
additionalProperties: true
type: array
x-kubernetes-preserve-unknown-fields: true
name:
description: Name of the check
type: string
Expand Down Expand Up @@ -11315,6 +11348,7 @@ spec:
type: object
additionalProperties: true
type: array
x-kubernetes-preserve-unknown-fields: true
name:
description: Name of the check
type: string
Expand Down Expand Up @@ -11881,6 +11915,7 @@ spec:
type: object
additionalProperties: true
type: array
x-kubernetes-preserve-unknown-fields: true
name:
description: Name of the check
type: string
Expand Down Expand Up @@ -12238,6 +12273,7 @@ spec:
type: object
additionalProperties: true
type: array
x-kubernetes-preserve-unknown-fields: true
name:
description: Name of the check
type: string
Expand Down Expand Up @@ -12593,6 +12629,7 @@ spec:
type: object
additionalProperties: true
type: array
x-kubernetes-preserve-unknown-fields: true
name:
description: Name of the check
type: string
Expand Down Expand Up @@ -12906,6 +12943,7 @@ spec:
type: object
additionalProperties: true
type: array
x-kubernetes-preserve-unknown-fields: true
name:
description: Name of the check
type: string
Expand Down Expand Up @@ -13143,6 +13181,7 @@ spec:
type: string
type: object
type: array
x-kubernetes-preserve-unknown-fields: true
name:
description: Name of the check
type: string
Expand Down
Loading

0 comments on commit 946dc18

Please sign in to comment.