Skip to content

Commit

Permalink
chore: make manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
kubeJocker committed Oct 24, 2023
1 parent 6cabe8d commit feaefab
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 19 deletions.
2 changes: 1 addition & 1 deletion apis/monitor/v1alpha1/appdatasource_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type MetricsConfig struct {
type MetricsDataSource struct {
Enable bool `json:"enable,omitempty"`

MetricsCollector *MetricsConfig `json:"metricsCollector,omitempty"`
MetricsCollector *MetricsConfig `json:",inline"`
}

type InputConfig struct {
Expand Down
16 changes: 7 additions & 9 deletions config/crd/bases/monitor.kubeblocks.io_appdatasources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,14 @@ spec:
metrics:
description: MetricsConfig is the metrics config
properties:
collectionInterval:
type: string
enable:
type: boolean
metricsCollector:
properties:
collectionInterval:
type: string
enabledMetrics:
items:
type: string
type: array
type: object
enabledMetrics:
items:
type: string
type: array
type: object
mode:
description: Mode represents how the OTeld should be deployed (deployment,
Expand All @@ -90,6 +87,7 @@ spec:
type: string
nodeSelector:
description: NodeSelector is the node selector of the data source
only used when mode is deployment
properties:
nodeSelectorTerms:
description: Required. A list of node selector terms. The terms
Expand Down
5 changes: 5 additions & 0 deletions config/crd/bases/monitor.kubeblocks.io_otelds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ spec:
spec:
description: OTeldSpec defines the desired state of CollectorDataSource
properties:
collectionInterval:
description: CollectionInterval is the default collect interval of
the oteld collection
type: string
env:
description: ENV vars to set on the OpenTelemetry Collector's Pods.
These can then in certain cases be consumed in the config file for
Expand Down Expand Up @@ -2249,6 +2253,7 @@ spec:
type: array
x-kubernetes-list-type: atomic
required:
- collectionInterval
- useConfigMap
type: object
status:
Expand Down
16 changes: 7 additions & 9 deletions deploy/helm/crds/monitor.kubeblocks.io_appdatasources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,14 @@ spec:
metrics:
description: MetricsConfig is the metrics config
properties:
collectionInterval:
type: string
enable:
type: boolean
metricsCollector:
properties:
collectionInterval:
type: string
enabledMetrics:
items:
type: string
type: array
type: object
enabledMetrics:
items:
type: string
type: array
type: object
mode:
description: Mode represents how the OTeld should be deployed (deployment,
Expand All @@ -90,6 +87,7 @@ spec:
type: string
nodeSelector:
description: NodeSelector is the node selector of the data source
only used when mode is deployment
properties:
nodeSelectorTerms:
description: Required. A list of node selector terms. The terms
Expand Down
5 changes: 5 additions & 0 deletions deploy/helm/crds/monitor.kubeblocks.io_otelds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ spec:
spec:
description: OTeldSpec defines the desired state of CollectorDataSource
properties:
collectionInterval:
description: CollectionInterval is the default collect interval of
the oteld collection
type: string
env:
description: ENV vars to set on the OpenTelemetry Collector's Pods.
These can then in certain cases be consumed in the config file for
Expand Down Expand Up @@ -2249,6 +2253,7 @@ spec:
type: array
x-kubernetes-list-type: atomic
required:
- collectionInterval
- useConfigMap
type: object
status:
Expand Down

0 comments on commit feaefab

Please sign in to comment.