-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
humctl resource-graph
#95
Conversation
Deployment failed for PR-95! ❌Errors:no matching resource definition found for the resource 'config.default#app-config' in 'orgs/mabenoit/apps/my-sample-app/envs/pr-95?envType=development': resource definition custom-workload - resource workload.default#modules.my-sample-app
Errors detailsErrors details:[
{
"apiVersion": "entity.humanitec.io/v1b1",
"entity": {},
"kind": "DeploymentError",
"metadata": {
"app_id": "my-sample-app",
"deploy_id": "17ad61f9c86555c3",
"env_id": "pr-95",
"org_id": "mabenoit"
},
"status": {
"code": "RES-002",
"error_type": "",
"message": "no matching resource definition found for the resource 'config.default#app-config' in 'orgs/mabenoit/apps/my-sample-app/envs/pr-95?envType=development': resource definition custom-workload - resource workload.default#modules.my-sample-app",
"object_id": "",
"scope": "environment",
"summary": "Cannot resolve resource type"
}
}
]
View in HumanitecDeployment ID: 426bf75ded03335760ab5ca366665e8feb7cfb29 Domains:Deployment diffDeployment diff:{
"modules": {
"add": null,
"remove": [],
"update": {
"my-sample-app": [
{
"from": "",
"op": "replace",
"path": "/spec/containers/my-sample-app/image",
"value": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:62ad18a9aee309c192a4ecf6cebae75d07ffabde2fa2e8dbdb59c3934ca14f50"
}
]
}
},
"shared": null
}
Score OutputScore Output:{
"id": "426bf75ded03335760ab5ca366665e8feb7cfb29",
"metadata": {
"env_id": "pr-95",
"name": "humctl resource-graph",
"url": "https://app.humanitec.io/orgs/mabenoit/apps/my-sample-app/envs/pr-95/draft/426bf75ded03335760ab5ca366665e8feb7cfb29",
"created_by": "s-bfd1178a-106a-4135-b6e9-95b5a9c92b59",
"created_at": "2024-01-24T20:19:18.883301918Z",
"last_modified_at": "2024-01-24T20:19:18.883301918Z"
},
"modules": {
"add": {
"my-sample-app": {
"externals": {
"dns": {
"class": "default",
"type": "dns"
},
"route": {
"class": "default",
"params": {
"host": "${externals.dns.host}",
"path": "/",
"port": 8080
},
"type": "route"
}
},
"profile": "humanitec/default-module",
"spec": {
"annotations": {
"humanitec.io/managed-by": "score-humanitec"
},
"containers": {
"my-sample-app": {
"id": "my-sample-app",
"image": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:62ad18a9aee309c192a4ecf6cebae75d07ffabde2fa2e8dbdb59c3934ca14f50",
"variables": {
"MESSAGE": "Hello, World!",
"NAMESPACE_NAME": "${pod.metadata.namespace}",
"POD_NAME": "${pod.metadata.name}"
}
}
},
"service": {
"ports": {
"tcp": {
"container_port": 8080,
"protocol": "TCP",
"service_port": 8080
}
}
},
"terminationGracePeriodSeconds": 60
}
}
}
}
} |
Deployment failed for PR-95! ❌Errors:no matching resource definition found for the resource 'config.default#app-config' in 'orgs/mabenoit/apps/my-sample-app/envs/pr-95?envType=development': resource definition custom-workload - resource workload.default#modules.my-sample-app
Errors detailsErrors details:[
{
"apiVersion": "entity.humanitec.io/v1b1",
"entity": {},
"kind": "DeploymentError",
"metadata": {
"app_id": "my-sample-app",
"deploy_id": "17ad6666b8eafd90",
"env_id": "pr-95",
"org_id": "mabenoit"
},
"status": {
"code": "RES-002",
"error_type": "",
"message": "no matching resource definition found for the resource 'config.default#app-config' in 'orgs/mabenoit/apps/my-sample-app/envs/pr-95?envType=development': resource definition custom-workload - resource workload.default#modules.my-sample-app",
"object_id": "",
"scope": "environment",
"summary": "Cannot resolve resource type"
}
}
]
View in HumanitecDeployment ID: f97b8a68ef288ad4139bcef36aa49f774717bc69 Domains:Deployment diffDeployment diff:{
"modules": {
"add": null,
"remove": [],
"update": {
"my-sample-app": [
{
"from": "",
"op": "replace",
"path": "/spec/containers/my-sample-app/image",
"value": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:9e699bb897d38357906f3134be8883f5d9d086736333aacd3bf8f5fb72311eec"
}
]
}
},
"shared": null
}
Score outputScore output:{
"id": "f97b8a68ef288ad4139bcef36aa49f774717bc69",
"metadata": {
"env_id": "pr-95",
"name": "Display graph if no errors",
"url": "https://app.humanitec.io/orgs/mabenoit/apps/my-sample-app/envs/pr-95/draft/f97b8a68ef288ad4139bcef36aa49f774717bc69",
"created_by": "s-bfd1178a-106a-4135-b6e9-95b5a9c92b59",
"created_at": "2024-01-24T21:40:24.658961946Z",
"last_modified_at": "2024-01-24T21:40:24.658961946Z"
},
"modules": {
"add": {
"my-sample-app": {
"externals": {
"dns": {
"class": "default",
"type": "dns"
},
"route": {
"class": "default",
"params": {
"host": "${externals.dns.host}",
"path": "/",
"port": 8080
},
"type": "route"
}
},
"profile": "humanitec/default-module",
"spec": {
"annotations": {
"humanitec.io/managed-by": "score-humanitec"
},
"containers": {
"my-sample-app": {
"id": "my-sample-app",
"image": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:9e699bb897d38357906f3134be8883f5d9d086736333aacd3bf8f5fb72311eec",
"variables": {
"MESSAGE": "Hello, World!",
"NAMESPACE_NAME": "${pod.metadata.namespace}",
"POD_NAME": "${pod.metadata.name}"
}
}
},
"service": {
"ports": {
"tcp": {
"container_port": 8080,
"protocol": "TCP",
"service_port": 8080
}
}
},
"terminationGracePeriodSeconds": 60
}
}
}
}
} |
Deployment failed for PR-95! ❌Errors:Error processing templates: manifest object must have "location" and "data" properties, got .project_id instead of an object, error in .manifestsstring: resource definition default-config - resource config.default#app-config
Errors detailsErrors details:[
{
"apiVersion": "entity.humanitec.io/v1b1",
"entity": {},
"kind": "DeploymentError",
"metadata": {
"app_id": "my-sample-app",
"deploy_id": "17ad66d52e68a1a7",
"env_id": "pr-95",
"org_id": "mabenoit"
},
"status": {
"code": "RES-101",
"error_type": "",
"message": "Error processing templates: manifest object must have \"location\" and \"data\" properties, got .project_id instead of an object, error in .manifestsstring: resource definition default-config - resource config.default#app-config",
"object_id": "",
"scope": "environment",
"summary": "Driver parameters invalid"
}
}
]
View in HumanitecDeployment ID: cefc2bd0720af7b621115d3e441309d8aab9312e Domains:Deployment diffDeployment diff:{
"modules": {
"add": null,
"remove": [],
"update": {
"my-sample-app": [
{
"from": "",
"op": "replace",
"path": "/spec/containers/my-sample-app/image",
"value": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:4869bbb7255d0a3d0dc394c87e7282276e5da51dd5a5f4aa76ed0db95a61484d"
}
]
}
},
"shared": null
}
Score outputScore output:{
"id": "cefc2bd0720af7b621115d3e441309d8aab9312e",
"metadata": {
"env_id": "pr-95",
"name": "graph if no errors",
"url": "https://app.humanitec.io/orgs/mabenoit/apps/my-sample-app/envs/pr-95/draft/cefc2bd0720af7b621115d3e441309d8aab9312e",
"created_by": "s-bfd1178a-106a-4135-b6e9-95b5a9c92b59",
"created_at": "2024-01-24T21:48:19.259980327Z",
"last_modified_at": "2024-01-24T21:48:19.259980327Z"
},
"modules": {
"add": {
"my-sample-app": {
"externals": {
"dns": {
"class": "default",
"type": "dns"
},
"route": {
"class": "default",
"params": {
"host": "${externals.dns.host}",
"path": "/",
"port": 8080
},
"type": "route"
}
},
"profile": "humanitec/default-module",
"spec": {
"annotations": {
"humanitec.io/managed-by": "score-humanitec"
},
"containers": {
"my-sample-app": {
"id": "my-sample-app",
"image": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:4869bbb7255d0a3d0dc394c87e7282276e5da51dd5a5f4aa76ed0db95a61484d",
"variables": {
"MESSAGE": "Hello, World!",
"NAMESPACE_NAME": "${pod.metadata.namespace}",
"POD_NAME": "${pod.metadata.name}"
}
}
},
"service": {
"ports": {
"tcp": {
"container_port": 8080,
"protocol": "TCP",
"service_port": 8080
}
}
},
"terminationGracePeriodSeconds": 60
}
}
}
}
} |
Deployment failed for PR-95! ❌Errors:Error processing templates: manifest object must have "location" and "data" properties, got .project_id instead of an object, error in .manifestsstring: resource definition default-config - resource config.default#app-config
Errors detailsErrors details:[
{
"apiVersion": "entity.humanitec.io/v1b1",
"entity": {},
"kind": "DeploymentError",
"metadata": {
"app_id": "my-sample-app",
"deploy_id": "17ad66e198da6591",
"env_id": "pr-95",
"org_id": "mabenoit"
},
"status": {
"code": "RES-101",
"error_type": "",
"message": "Error processing templates: manifest object must have \"location\" and \"data\" properties, got .project_id instead of an object, error in .manifestsstring: resource definition default-config - resource config.default#app-config",
"object_id": "",
"scope": "environment",
"summary": "Driver parameters invalid"
}
}
]
View in HumanitecDeployment ID: c1211b2be1067b0f807466ab2cacdcb76a2de0d2 Domains:Deployment diffDeployment diff:{
"modules": {
"add": null,
"remove": [],
"update": {
"my-sample-app": [
{
"from": "",
"op": "replace",
"path": "/spec/containers/my-sample-app/image",
"value": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:4869bbb7255d0a3d0dc394c87e7282276e5da51dd5a5f4aa76ed0db95a61484d"
}
]
}
},
"shared": null
}
Score outputScore output:{
"id": "c1211b2be1067b0f807466ab2cacdcb76a2de0d2",
"metadata": {
"env_id": "pr-95",
"name": "graph if no errors",
"url": "https://app.humanitec.io/orgs/mabenoit/apps/my-sample-app/envs/pr-95/draft/c1211b2be1067b0f807466ab2cacdcb76a2de0d2",
"created_by": "s-bfd1178a-106a-4135-b6e9-95b5a9c92b59",
"created_at": "2024-01-24T21:49:12.603888514Z",
"last_modified_at": "2024-01-24T21:49:12.603888514Z"
},
"modules": {
"add": {
"my-sample-app": {
"externals": {
"dns": {
"class": "default",
"type": "dns"
},
"route": {
"class": "default",
"params": {
"host": "${externals.dns.host}",
"path": "/",
"port": 8080
},
"type": "route"
}
},
"profile": "humanitec/default-module",
"spec": {
"annotations": {
"humanitec.io/managed-by": "score-humanitec"
},
"containers": {
"my-sample-app": {
"id": "my-sample-app",
"image": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:4869bbb7255d0a3d0dc394c87e7282276e5da51dd5a5f4aa76ed0db95a61484d",
"variables": {
"MESSAGE": "Hello, World!",
"NAMESPACE_NAME": "${pod.metadata.namespace}",
"POD_NAME": "${pod.metadata.name}"
}
}
},
"service": {
"ports": {
"tcp": {
"container_port": 8080,
"protocol": "TCP",
"service_port": 8080
}
}
},
"terminationGracePeriodSeconds": 60
}
}
}
}
} |
Deployment failed for PR-95! ❌Errors:replacing placeholders in driver inputs for resource definition `gsa`, placeholder `${resources['config.default#app-config'].outputs.credentials}` for field `credentials`: can not replace `${resources['config.default#app-config'].outputs.credentials}`, not found: Invalid placeholders: resource definition gsa - resource gcp-service-account.default#modules.my-sample-app
Errors detailsErrors details:[
{
"apiVersion": "entity.humanitec.io/v1b1",
"entity": {},
"kind": "DeploymentError",
"metadata": {
"app_id": "my-sample-app",
"deploy_id": "17ad67c9426952dc",
"env_id": "pr-95",
"org_id": "mabenoit"
},
"status": {
"code": "RES-008",
"error_type": "",
"message": "replacing placeholders in driver inputs for resource definition `gsa`, placeholder `${resources['config.default#app-config'].outputs.credentials}` for field `credentials`: can not replace `${resources['config.default#app-config'].outputs.credentials}`, not found: Invalid placeholders: resource definition gsa - resource gcp-service-account.default#modules.my-sample-app",
"object_id": "",
"scope": "environment",
"summary": "Incorrect resource placeholder"
}
}
]
View in HumanitecDeployment ID: 9ede1a47f170600dbdbd3a13620f05935ce458ba Domains:my-sample-app: simoniswolflowe.newapp.io Deployment diffDeployment diff:{
"modules": {
"add": null,
"remove": [],
"update": {
"my-sample-app": [
{
"from": "",
"op": "replace",
"path": "/spec/containers/my-sample-app/image",
"value": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:4869bbb7255d0a3d0dc394c87e7282276e5da51dd5a5f4aa76ed0db95a61484d"
}
]
}
},
"shared": null
}
Score outputScore output:{
"id": "9ede1a47f170600dbdbd3a13620f05935ce458ba",
"metadata": {
"env_id": "pr-95",
"name": "graph if no errors",
"url": "https://app.humanitec.io/orgs/mabenoit/apps/my-sample-app/envs/pr-95/draft/9ede1a47f170600dbdbd3a13620f05935ce458ba",
"created_by": "s-bfd1178a-106a-4135-b6e9-95b5a9c92b59",
"created_at": "2024-01-24T22:05:47.694404046Z",
"last_modified_at": "2024-01-24T22:05:47.694404046Z"
},
"modules": {
"add": {
"my-sample-app": {
"externals": {
"dns": {
"class": "default",
"type": "dns"
},
"route": {
"class": "default",
"params": {
"host": "${externals.dns.host}",
"path": "/",
"port": 8080
},
"type": "route"
}
},
"profile": "humanitec/default-module",
"spec": {
"annotations": {
"humanitec.io/managed-by": "score-humanitec"
},
"containers": {
"my-sample-app": {
"id": "my-sample-app",
"image": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:4869bbb7255d0a3d0dc394c87e7282276e5da51dd5a5f4aa76ed0db95a61484d",
"variables": {
"MESSAGE": "Hello, World!",
"NAMESPACE_NAME": "${pod.metadata.namespace}",
"POD_NAME": "${pod.metadata.name}"
}
}
},
"service": {
"ports": {
"tcp": {
"container_port": 8080,
"protocol": "TCP",
"service_port": 8080
}
}
},
"terminationGracePeriodSeconds": 60
}
}
}
}
} |
Deployment successfully completed for PR-95! 🎉View in HumanitecDeployment ID: 20767eae53dcf995c813709878fefc437ebdb0a6 Domains:my-sample-app: my-sample-app-pr-95.endpoints.mathieu-benoit-gcp.cloud.goog Deployment diffDeployment diff:{
"modules": {
"add": null,
"remove": [],
"update": {
"my-sample-app": [
{
"from": "",
"op": "replace",
"path": "/spec/containers/my-sample-app/image",
"value": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:4869bbb7255d0a3d0dc394c87e7282276e5da51dd5a5f4aa76ed0db95a61484d"
}
]
}
},
"shared": null
}
Score outputScore output:{
"id": "20767eae53dcf995c813709878fefc437ebdb0a6",
"metadata": {
"env_id": "pr-95",
"name": "graph if no errors",
"url": "https://app.humanitec.io/orgs/my-trial/apps/my-sample-app/envs/pr-95/draft/20767eae53dcf995c813709878fefc437ebdb0a6",
"created_by": "s-9d271151-e949-4548-81ed-e7c652fecbb8",
"created_at": "2024-01-31T11:52:16.547748075Z",
"last_modified_at": "2024-01-31T11:52:16.547748075Z"
},
"modules": {
"add": {
"my-sample-app": {
"externals": {
"dns": {
"class": "default",
"type": "dns"
},
"route": {
"class": "default",
"params": {
"host": "${externals.dns.host}",
"path": "/",
"port": 8080
},
"type": "route"
}
},
"profile": "humanitec/default-module",
"spec": {
"annotations": {
"humanitec.io/managed-by": "score-humanitec"
},
"containers": {
"my-sample-app": {
"id": "my-sample-app",
"image": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:4869bbb7255d0a3d0dc394c87e7282276e5da51dd5a5f4aa76ed0db95a61484d",
"variables": {
"MESSAGE": "Hello, World!",
"NAMESPACE_NAME": "${pod.metadata.namespace}",
"POD_NAME": "${pod.metadata.name}"
}
}
},
"service": {
"ports": {
"tcp": {
"container_port": 8080,
"protocol": "TCP",
"service_port": 8080
}
}
},
"terminationGracePeriodSeconds": 60
}
}
}
}
} Resources graphNew resources graph:![Alt text](https://g.gravizo.com/svg? strict digraph {
type: redis
type: workload
type: route
type: workload
type: dns
type: tls-cert
type: base-env
type: ingress
}) |
No description provided.