Skip to content

Commit

Permalink
fix: yet more types
Browse files Browse the repository at this point in the history
Signed-off-by: David van der Spek <vanderspek.david@gmail.com>
  • Loading branch information
davidspek committed Jul 14, 2023
1 parent beb7949 commit d7dbdaa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
6 changes: 2 additions & 4 deletions api/observability/v1alpha1/tempo_limit_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,12 @@ type PolicyMatch struct {
}

type MatchPolicyAttribute struct {
// +kubebuilder:validation:Optional
Key *string `yaml:"key,omitempty" json:"key,omitempty"`
Key string `yaml:"key" json:"key"`

// +kubebuilder:validation:Optional
// +kubebuilder:pruning:PreserveUnknownFields
// +kubebuilder:validation:Schemaless
// +kubebuilder:validation:Type=object
Value *WrappedMap `yaml:"value,omitempty" json:"value,omitempty"`
Value WrappedMap `yaml:"value" json:"value"`
}

type WrappedMap struct {
Expand Down
10 changes: 1 addition & 9 deletions api/observability/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions config/crd/bases/observability.traceshield.io_tenants.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1091,6 +1091,9 @@ spec:
value:
type: object
x-kubernetes-preserve-unknown-fields: true
required:
- key
- value
type: object
type: array
match_type:
Expand All @@ -1109,6 +1112,9 @@ spec:
value:
type: object
x-kubernetes-preserve-unknown-fields: true
required:
- key
- value
type: object
type: array
match_type:
Expand Down

0 comments on commit d7dbdaa

Please sign in to comment.