forked from radius-project/radius
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix connection direction (radius-project#7076)
# Description This is to fix appgraph connection direction. ## Type of change - This pull request fixes a bug in Radius and has an approved issue (issue link required). Fixes: radius-project#7038 --------- Signed-off-by: Young Bu Park <[email protected]>
- Loading branch information
1 parent
adb8db1
commit f9d9f42
Showing
8 changed files
with
248 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
pkg/corerp/frontend/controller/applications/testdata/graph-app-httproute2-in.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
[ | ||
{ | ||
"id": "/planes/radius/local/resourcegroups/default/providers/Applications.Core/httpRoutes/http-back-rte-simple1", | ||
"name": "http-back-rte-simple1", | ||
"properties": { | ||
"application": "/planes/radius/local/resourcegroups/default/providers/Applications.Core/Applications/myapp", | ||
"provisioningState": "Succeeded" | ||
}, | ||
"type": "Applications.Core/httpRoutes" | ||
}, | ||
{ | ||
"id": "/planes/radius/local/resourcegroups/default/providers/Applications.Core/containers/http-front-ctnr-simple1", | ||
"name": "http-front-ctnr-simple1", | ||
"properties": { | ||
"application": "/planes/radius/local/resourcegroups/default/providers/Applications.Core/Applications/myapp", | ||
"containers": { | ||
"image": "magpie:latest", | ||
"ports": { | ||
"web": { | ||
"port": 8080 | ||
} | ||
}, | ||
"readinessProbe": { | ||
"kind": "httpGet", | ||
"path": "/healthz", | ||
"containerPort": 8080 | ||
} | ||
}, | ||
"connections": { | ||
"backend": { | ||
"source": "/planes/radius/local/resourcegroups/default/providers/Applications.Core/httpRoutes/http-back-rte-simple1" | ||
} | ||
}, | ||
"provisioningState": "Succeeded", | ||
"status": { | ||
"outputResources": { | ||
"id": "/some/thing/else", | ||
"localId": "something" | ||
} | ||
} | ||
}, | ||
"type": "Applications.Core/containers" | ||
}, | ||
{ | ||
"id": "/planes/radius/local/resourcegroups/default/providers/Applications.Core/containers/http-back-ctnr-simple1", | ||
"name": "http-back-ctnr-simple1", | ||
"properties": { | ||
"application": "/planes/radius/local/resourcegroups/default/providers/Applications.Core/Applications/myapp", | ||
"container": { | ||
"ports": { | ||
"web": { | ||
"port": 8080, | ||
"provides": "/planes/radius/local/resourcegroups/default/providers/Applications.Core/httpRoutes/http-back-rte-simple1" | ||
} | ||
}, | ||
"readinessProbe": { | ||
"kind": "httpGet", | ||
"path": "/healthz", | ||
"containerPort": 8080 | ||
} | ||
}, | ||
"provisioningState": "Succeeded", | ||
"status": { | ||
"outputResources": { | ||
"id": "/some/thing/else", | ||
"localId": "something" | ||
} | ||
} | ||
}, | ||
"type": "Applications.Core/containers" | ||
} | ||
] |
41 changes: 41 additions & 0 deletions
41
pkg/corerp/frontend/controller/applications/testdata/graph-app-httproute2-out.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
[ | ||
{ | ||
"connections": [ | ||
{ | ||
"direction": "Inbound", | ||
"id": "/planes/radius/local/resourcegroups/default/providers/Applications.Core/containers/http-front-ctnr-simple1" | ||
} | ||
], | ||
"id": "/planes/radius/local/resourcegroups/default/providers/Applications.Core/httpRoutes/http-back-rte-simple1", | ||
"name": "http-back-rte-simple1", | ||
"outputResources": [], | ||
"provisioningState": "Succeeded", | ||
"type": "Applications.Core/httpRoutes" | ||
}, | ||
{ | ||
"connections": [ | ||
{ | ||
"direction": "Outbound", | ||
"id": "/planes/radius/local/resourcegroups/default/providers/Applications.Core/httpRoutes/http-back-rte-simple1" | ||
} | ||
], | ||
"id": "/planes/radius/local/resourcegroups/default/providers/Applications.Core/containers/http-front-ctnr-simple1", | ||
"name": "http-front-ctnr-simple1", | ||
"outputResources": [], | ||
"provisioningState": "Succeeded", | ||
"type": "Applications.Core/containers" | ||
}, | ||
{ | ||
"connections": [ | ||
{ | ||
"direction": "Inbound", | ||
"id": "/planes/radius/local/resourcegroups/default/providers/Applications.Core/httpRoutes/http-back-rte-simple1" | ||
} | ||
], | ||
"id": "/planes/radius/local/resourcegroups/default/providers/Applications.Core/containers/http-back-ctnr-simple1", | ||
"name": "http-back-ctnr-simple1", | ||
"outputResources": [], | ||
"provisioningState": "Succeeded", | ||
"type": "Applications.Core/containers" | ||
} | ||
] |
Oops, something went wrong.