Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

prepare for duty migration in canary checker #139

Merged
merged 10 commits into from
May 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions fixtures/dummy/components.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ var Logistics = models.Component{
Labels: types.JSONStringMap{"telemetry": "enabled"},
Owner: "logistics-team",
CreatedAt: DummyCreatedAt,
Status: models.ComponentStatusHealthy,
Status: types.ComponentStatusHealthy,
}

var LogisticsAPI = models.Component{
ID: uuid.MustParse("018681fd-5770-336f-227c-259435D7fc6b"),
Name: "logistics-api",
ExternalId: "dummy/logistics-api",
Type: "Application",
Status: models.ComponentStatusHealthy,
Status: types.ComponentStatusHealthy,
Labels: types.JSONStringMap{"telemetry": "enabled"},
Owner: "logistics-team",
ParentId: &Logistics.ID,
Expand All @@ -35,7 +35,7 @@ var LogisticsUI = models.Component{
Name: "logistics-ui",
Type: "Application",
ExternalId: "dummy/logistics-ui",
Status: models.ComponentStatusHealthy,
Status: types.ComponentStatusHealthy,
Owner: "logistics-team",
ParentId: &Logistics.ID,
Path: Logistics.ID.String(),
Expand All @@ -47,7 +47,7 @@ var LogisticsWorker = models.Component{
Name: "logistics-worker",
ExternalId: "dummy/logistics-worker",
Type: "Application",
Status: models.ComponentStatusHealthy,
Status: types.ComponentStatusHealthy,
ParentId: &LogisticsAPI.ID,
Path: Logistics.ID.String() + "." + LogisticsAPI.ID.String(),
CreatedAt: DummyCreatedAt,
Expand All @@ -58,7 +58,7 @@ var LogisticsDB = models.Component{
Name: "logistics-db",
ExternalId: "dummy/logistics-db",
Type: "Database",
Status: models.ComponentStatusUnhealthy,
Status: types.ComponentStatusUnhealthy,
ParentId: &LogisticsAPI.ID,
Path: Logistics.ID.String() + "." + LogisticsAPI.ID.String(),
CreatedAt: DummyCreatedAt,
Expand All @@ -69,7 +69,7 @@ var ClusterComponent = models.Component{
Name: "cluster",
ExternalId: "dummy/cluster",
Type: "KubernetesCluster",
Status: models.ComponentStatusHealthy,
Status: types.ComponentStatusHealthy,
CreatedAt: DummyCreatedAt,
}

Expand All @@ -78,7 +78,7 @@ var NodesComponent = models.Component{
Name: "Nodes",
ExternalId: "dummy/nodes",
Type: "KubernetesNodes",
Status: models.ComponentStatusHealthy,
Status: types.ComponentStatusHealthy,
ParentId: &ClusterComponent.ID,
CreatedAt: DummyCreatedAt,
}
Expand All @@ -88,7 +88,7 @@ var NodeA = models.Component{
Name: "node-a",
ExternalId: "dummy/node-a",
Type: "KubernetesNode",
Status: models.ComponentStatusHealthy,
Status: types.ComponentStatusHealthy,
ParentId: &NodesComponent.ID,
CreatedAt: DummyCreatedAt,
}
Expand All @@ -98,7 +98,7 @@ var NodeB = models.Component{
Name: "node-b",
ExternalId: "dummy/node-b",
Type: "KubernetesNode",
Status: models.ComponentStatusHealthy,
Status: types.ComponentStatusHealthy,
ParentId: &NodesComponent.ID,
CreatedAt: DummyCreatedAt,
}
Expand All @@ -108,7 +108,7 @@ var PodsComponent = models.Component{
Name: "Pods",
ExternalId: "dummy/pods",
Type: "KubernetesPods",
Status: models.ComponentStatusHealthy,
Status: types.ComponentStatusHealthy,
ParentId: &ClusterComponent.ID,
CreatedAt: DummyCreatedAt,
}
Expand All @@ -118,7 +118,7 @@ var LogisticsAPIPod = models.Component{
Name: "logistics-api-574dc95b5d-mp64w",
ExternalId: "dummy/logistics-api-574dc95b5d-mp64w",
Type: "KubernetesPod",
Status: models.ComponentStatusHealthy,
Status: types.ComponentStatusHealthy,
ParentId: &PodsComponent.ID,
CreatedAt: DummyCreatedAt,
}
Expand All @@ -128,7 +128,7 @@ var LogisticsUIPod = models.Component{
Name: "logistics-ui-676b85b87c-tjjcp",
Type: "KubernetesPod",
ExternalId: "dummy/logistics-ui-676b85b87c-tjjcp",
Status: models.ComponentStatusHealthy,
Status: types.ComponentStatusHealthy,
ParentId: &PodsComponent.ID,
CreatedAt: DummyCreatedAt,
}
Expand All @@ -138,7 +138,7 @@ var LogisticsWorkerPod = models.Component{
Name: "logistics-worker-79cb67d8f5-lr66n",
ExternalId: "dummy/logistics-worker-79cb67d8f5-lr66n",
Type: "KubernetesPod",
Status: models.ComponentStatusHealthy,
Status: types.ComponentStatusHealthy,
ParentId: &PodsComponent.ID,
CreatedAt: DummyCreatedAt,
}
Expand Down
5 changes: 1 addition & 4 deletions fixtures/expectations/topology_child_tree.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"healthy"
],
"tags": null,
"teams": null,
"teams": [],
"types": [
"KubernetesNode",
"KubernetesPod"
Expand All @@ -16,7 +16,6 @@
"name": "node-a",
"status": "healthy",
"type": "KubernetesNode",
"configs": null,
"summary": {
"healthy": 2
},
Expand All @@ -31,7 +30,6 @@
"name": "logistics-api-574dc95b5d-mp64w",
"status": "healthy",
"type": "KubernetesPod",
"configs": null,
"summary": {
"healthy": 1
},
Expand All @@ -46,7 +44,6 @@
"name": "logistics-ui-676b85b87c-tjjcp",
"status": "healthy",
"type": "KubernetesPod",
"configs": null,
"summary": {
"healthy": 1
},
Expand Down
3 changes: 1 addition & 2 deletions fixtures/expectations/topology_depth_1_child_tree.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"enabled"
]
},
"teams": null,
"teams": [],
"types": [
"Application",
"Database"
Expand All @@ -25,7 +25,6 @@
"status": "warning",
"type": "Application",
"owner": "logistics-team",
"configs": null,
"checks": {
"healthy": 2
},
Expand Down
4 changes: 1 addition & 3 deletions fixtures/expectations/topology_depth_1_root_tree.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"enabled"
]
},
"teams": null,
"teams": [],
"types": [
"Application",
"Database",
Expand All @@ -30,7 +30,6 @@
"labels": {
"telemetry": "enabled"
},
"configs": null,
"summary": {
"healthy": 1,
"warning": 1,
Expand All @@ -55,7 +54,6 @@
"name": "cluster",
"status": "healthy",
"type": "KubernetesCluster",
"configs": null,
"summary": {
"healthy": 2,
"insights": {
Expand Down
8 changes: 1 addition & 7 deletions fixtures/expectations/topology_depth_2_root_tree.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"enabled"
]
},
"teams": null,
"teams": [],
"types": [
"Application",
"Database",
Expand All @@ -30,7 +30,6 @@
"status": "warning",
"type": "Entity",
"owner": "logistics-team",
"configs": null,
"summary": {
"healthy": 1,
"warning": 1,
Expand Down Expand Up @@ -60,7 +59,6 @@
"status": "warning",
"type": "Application",
"owner": "logistics-team",
"configs": null,
"checks": {
"healthy": 2
},
Expand Down Expand Up @@ -91,7 +89,6 @@
"status": "healthy",
"type": "Application",
"owner": "logistics-team",
"configs": null,
"path": "018681fc-e54f-bd4f-42be-068a9a69eeb5",
"summary": {
"healthy": 1
Expand All @@ -108,7 +105,6 @@
"name": "cluster",
"status": "healthy",
"type": "KubernetesCluster",
"configs": null,
"summary": {
"healthy": 2,
"insights": {
Expand All @@ -128,7 +124,6 @@
"name": "Nodes",
"status": "healthy",
"type": "KubernetesNodes",
"configs": null,
"summary": {
"healthy": 2,
"insights": {
Expand All @@ -148,7 +143,6 @@
"name": "Pods",
"status": "healthy",
"type": "KubernetesPods",
"configs": null,
"summary": {
"healthy": 3
},
Expand Down
18 changes: 1 addition & 17 deletions fixtures/expectations/topology_root_tree.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"enabled"
]
},
"teams": null,
"teams": [],
"types": [
"Application",
"Database",
Expand All @@ -30,7 +30,6 @@
"labels": {
"telemetry": "enabled"
},
"configs": null,
"summary": {
"healthy": 1,
"warning": 1,
Expand Down Expand Up @@ -60,7 +59,6 @@
},
"status": "warning",
"type": "Application",
"configs": null,
"checks": {
"healthy": 2
},
Expand Down Expand Up @@ -90,7 +88,6 @@
"name": "logistics-worker",
"status": "healthy",
"type": "Application",
"configs": null,
"path": "018681fc-e54f-bd4f-42be-068a9a69eeb5.018681fd-5770-336f-227c-259435d7fc6b",
"summary": {
"healthy": 1
Expand All @@ -106,7 +103,6 @@
"name": "logistics-db",
"status": "unhealthy",
"type": "Database",
"configs": null,
"checks": {
"unhealthy": 1
},
Expand Down Expand Up @@ -138,7 +134,6 @@
"owner": "logistics-team",
"status": "healthy",
"type": "Application",
"configs": null,
"path": "018681fc-e54f-bd4f-42be-068a9a69eeb5",
"summary": {
"healthy": 1
Expand All @@ -155,7 +150,6 @@
"name": "cluster",
"status": "healthy",
"type": "KubernetesCluster",
"configs": null,
"summary": {
"healthy": 2,
"insights": {
Expand All @@ -175,7 +169,6 @@
"name": "Nodes",
"status": "healthy",
"type": "KubernetesNodes",
"configs": null,
"summary": {
"healthy": 2,
"insights": {
Expand Down Expand Up @@ -203,7 +196,6 @@
"name": "logistics-api-574dc95b5d-mp64w",
"status": "healthy",
"type": "KubernetesPod",
"configs": null,
"summary": {
"healthy": 1
},
Expand All @@ -221,7 +213,6 @@
"name": "logistics-ui-676b85b87c-tjjcp",
"status": "healthy",
"type": "KubernetesPod",
"configs": null,
"summary": {
"healthy": 1
},
Expand All @@ -233,7 +224,6 @@
]
}
],
"configs": null,
"summary": {
"healthy": 2
},
Expand All @@ -256,7 +246,6 @@
"name": "logistics-worker-79cb67d8f5-lr66n",
"status": "healthy",
"type": "KubernetesPod",
"configs": null,
"summary": {
"healthy": 1
},
Expand All @@ -268,7 +257,6 @@
]
}
],
"configs": null,
"summary": {
"healthy": 1,
"insights": {
Expand All @@ -290,7 +278,6 @@
"name": "Pods",
"status": "healthy",
"type": "KubernetesPods",
"configs": null,
"summary": {
"healthy": 3
},
Expand All @@ -305,7 +292,6 @@
"name": "logistics-api-574dc95b5d-mp64w",
"status": "healthy",
"type": "KubernetesPod",
"configs": null,
"summary": {
"healthy": 1
},
Expand All @@ -320,7 +306,6 @@
"name": "logistics-ui-676b85b87c-tjjcp",
"status": "healthy",
"type": "KubernetesPod",
"configs": null,
"summary": {
"healthy": 1
},
Expand All @@ -335,7 +320,6 @@
"name": "logistics-worker-79cb67d8f5-lr66n",
"status": "healthy",
"type": "KubernetesPod",
"configs": null,
"summary": {
"healthy": 1
},
Expand Down
Loading