Skip to content

Commit

Permalink
fix: processor CRD collector role enum new values and make orderHint …
Browse files Browse the repository at this point in the history
…optional (#983)
  • Loading branch information
blumamir authored Feb 18, 2024
1 parent a475fc0 commit f03620b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions api/config/crd/bases/odigos.io_collectorsgroups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ spec:
type: string
role:
enum:
- GATEWAY
- DATA_COLLECTION
- CLUSTER_GATEWAY
- NODE_COLLECTOR
type: string
required:
- role
Expand Down
5 changes: 2 additions & 3 deletions api/config/crd/bases/odigos.io_processors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ spec:
processor is attached to.
items:
enum:
- GATEWAY
- DATA_COLLECTION
- CLUSTER_GATEWAY
- NODE_COLLECTOR
type: string
type: array
disabled:
Expand Down Expand Up @@ -91,7 +91,6 @@ spec:
type: string
required:
- collectorRoles
- orderHint
- processorConfig
- signals
- type
Expand Down
2 changes: 1 addition & 1 deletion api/odigos/v1alpha1/collectorsgroup_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

// +kubebuilder:validation:Enum=GATEWAY;DATA_COLLECTION
// +kubebuilder:validation:Enum=CLUSTER_GATEWAY;NODE_COLLECTOR
type CollectorsGroupRole string

const (
Expand Down
2 changes: 1 addition & 1 deletion api/odigos/v1alpha1/processor_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ type ProcessorSpec struct {
// a processor with lower order hint value will be placed before other processors with higher value.
// if 2 processors have the same value, the order is arbitrary.
// if the value is missing (or 0) the processor can be placed anywhere in the pipeline
OrderHint int `json:"orderHint"`
OrderHint int `json:"orderHint,omitempty"`

// +kubebuilder:pruning:PreserveUnknownFields
// +kubebuilder:validation:Type=object
Expand Down

0 comments on commit f03620b

Please sign in to comment.