Skip to content

Commit

Permalink
Refactor QdrantCloudRegionStatus to replace AlternativeMonitoringSour…
Browse files Browse the repository at this point in the history
…ce with MonitoringStatus and update related documentation
  • Loading branch information
Charmelionag committed Nov 12, 2024
1 parent 14d0738 commit 54366a7
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 54 deletions.
14 changes: 7 additions & 7 deletions api/v1/region_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,18 @@ type QdrantCloudRegionStatus struct {
// KubernetesDistribution specifies the distribution of the Kubernetes cluster
// +optional
KubernetesDistribution KubernetesDistribution `json:"k8sDistribution,omitempty"`
// AlternativeMonitoringSource specifies the alternative monitoring source
// Monitoring specifies monitoring status
// +optional
AlternativeMonitoringSource AlternativeMonitoringSource `json:"alternativeMonitoringSource,omitempty"`
Monitoring MonitoringStatus `json:"monitoring,omitempty"`
}

type AlternativeMonitoringSource struct {
// CAdvisorMonitoringSource specifies the cAdvisor monitoring source
type MonitoringStatus struct {
// CAdvisorMetricSource specifies the cAdvisor metric source
// +optional
CAdvisorMonitoringSource MonitoringSource `json:"cAdvisorMonitoringSource,omitempty"`
// NodeMonitoringSource specifies the node monitoring source
CAdvisorMetricSource MonitoringSource `json:"cAdvisorMetricSource,omitempty"`
// NodeMetricSource specifies the node metric source
// +optional
NodeMonitoringSource MonitoringSource `json:"nodeMonitoringSource,omitempty"`
NodeMetricSource MonitoringSource `json:"nodeMetricSource,omitempty"`
}

type RegionCapabilities struct {
Expand Down
32 changes: 16 additions & 16 deletions api/v1/zz_generated.deepcopy.go

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

Original file line number Diff line number Diff line change
Expand Up @@ -1645,19 +1645,6 @@ spec:
type: object
status:
properties:
alternativeMonitoringSource:
description: AlternativeMonitoringSource specifies the alternative
monitoring source
properties:
cAdvisorMonitoringSource:
description: CAdvisorMonitoringSource specifies the cAdvisor monitoring
source
type: string
nodeMonitoringSource:
description: NodeMonitoringSource specifies the node monitoring
source
type: string
type: object
capabilities:
description: Capabilities specifies the capabilities of the Kubernetes
cluster
Expand Down Expand Up @@ -1731,6 +1718,17 @@ spec:
description: Message specifies the info explaining the current phase
of the region
type: string
monitoring:
description: Monitoring specifies monitoring status
properties:
cAdvisorMetricSource:
description: CAdvisorMetricSource specifies the cAdvisor metric
source
type: string
nodeMetricSource:
description: NodeMetricSource specifies the node metric source
type: string
type: object
numberOfNodes:
description: NumberOfNodes specifies the number of nodes in the Kubernetes
cluster
Expand Down
36 changes: 18 additions & 18 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,6 @@ Package v1 contains API Schema definitions for the qdrant.io v1 API group



#### AlternativeMonitoringSource







_Appears in:_
- [QdrantCloudRegionStatus](#qdrantcloudregionstatus)

| Field | Description | Default | Validation |
| --- | --- | --- | --- |
| `cAdvisorMonitoringSource` _[MonitoringSource](#monitoringsource)_ | CAdvisorMonitoringSource specifies the cAdvisor monitoring source | | |
| `nodeMonitoringSource` _[MonitoringSource](#monitoringsource)_ | NodeMonitoringSource specifies the node monitoring source | | |




#### ClusterPhase
Expand Down Expand Up @@ -220,10 +203,27 @@ _Underlying type:_ _string_


_Appears in:_
- [AlternativeMonitoringSource](#alternativemonitoringsource)
- [MonitoringStatus](#monitoringstatus)



#### MonitoringStatus







_Appears in:_
- [QdrantCloudRegionStatus](#qdrantcloudregionstatus)

| Field | Description | Default | Validation |
| --- | --- | --- | --- |
| `cAdvisorMetricSource` _[MonitoringSource](#monitoringsource)_ | CAdvisorMetricSource specifies the cAdvisor metric source | | |
| `nodeMetricSource` _[MonitoringSource](#monitoringsource)_ | NodeMetricSource specifies the node metric source | | |


#### NGINXConfig


Expand Down

0 comments on commit 54366a7

Please sign in to comment.