Skip to content
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 0.19.1 - score validate & score deploy #109

Merged
merged 5 commits into from
Mar 29, 2024
Merged

Conversation

mathieu-benoit
Copy link
Owner

@mathieu-benoit mathieu-benoit commented Mar 28, 2024

In addition to #110

Copy link

Deployment successfully completed for PR-109! 🎉

View in Humanitec

Deployment ID: 17c0c57966b99ead

Domains:

my-sample-app: rodriguezbodekoelpindanielbalistrerivandervort.newapp.io

Deployment diff

Deployment 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:f55720f0e76ecf7781cc43a24653860a0268f194acef54a469664c8e2f221c54"
        },
        {
          "from": "",
          "op": "remove",
          "path": "/spec/containers/my-sample-app/variables/NAMESPACE_NAME",
          "value": null
        },
        {
          "from": "",
          "op": "replace",
          "path": "/spec/containers/my-sample-app/variables/MESSAGE",
          "value": "Hello, Paris!"
        },
        {
          "from": "",
          "op": "remove",
          "path": "/spec/containers/my-sample-app/variables/POD_NAME",
          "value": null
        },
        {
          "from": "",
          "op": "add",
          "path": "/spec/containers/my-sample-app/env",
          "value": [
            {
              "name": "POD_NAME",
              "value": "${pod.metadata.name}"
            },
            {
              "name": "NAMESPACE_NAME",
              "value": "${pod.metadata.namespace}"
            }
          ]
        },
        {
          "from": "",
          "op": "add",
          "path": "/spec/annotations/humanitec.io~1workload-source",
          "value": "https://github.com/mathieu-benoit/sail-sharp/blob/humctl-0-19-1/score/score.yaml"
        },
        {
          "from": "",
          "op": "remove",
          "path": "/spec/terminationGracePeriodSeconds",
          "value": null
        }
      ]
    }
  },
  "shared": null
}
Active Resources Usage

Active Resources Usage:


ResType      	Class  	ResID                                	Usage         	Last referencing deployment	Last referencing deployment created ago
agent        	default	agent                                	current deploy	17c0c57966b99ead           	55.283145771s                          
base-env     	default	base-env                             	current deploy	17c0c57966b99ead           	55.283148015s                          
k8s-cluster  	default	k8s-cluster                          	current deploy	17c0c57966b99ead           	55.283149258s                          
k8s-namespace	default	k8s-namespace                        	current deploy	17c0c57966b99ead           	55.283150139s                          
logging      	default	logging                              	current deploy	17c0c57966b99ead           	55.283151121s                          
workload     	default	modules.my-sample-app                	current deploy	17c0c57966b99ead           	55.283152073s                          
dns          	default	modules.my-sample-app.externals.dns  	current deploy	17c0c57966b99ead           	55.283152925s                          
ingress      	default	modules.my-sample-app.externals.dns  	current deploy	17c0c57966b99ead           	55.283153826s                          
tls-cert     	default	modules.my-sample-app.externals.dns  	current deploy	17c0c57966b99ead           	55.283154738s                          
route        	default	modules.my-sample-app.externals.route	current deploy	17c0c57966b99ead           	55.28315555s                           

Resources Graph

Resources Graph:


strict digraph {

	label="Resource Graph
app: my-sample-app, env: pr-109

green: virtual nodes (environment, workloads), blue: active resources

";

	labelloc="t";

	overlap="false";

	splines="true";


	"4fa65f679fd4b27dadda5d0fcc03dded013a52f2" [ color="2", colorscheme="blues3", fillcolor="1", label="id: modules.my-sample-app.externals.dns
type: dns
class: default
provision time: 35.936802s", style="filled", tooltip="guresid: 4fa65f679fd4b27dadda5d0fcc03dded013a52f2",  weight=0 ];

	"d3c16d58126898fa79d4bf7220728d475eadc011" [ color="2", colorscheme="blues3", fillcolor="1", label="id: modules.my-sample-app.externals.dns
type: tls-cert
class: default
provision time: 95.833ms", style="filled", tooltip="guresid: d3c16d58126898fa79d4bf7220728d475eadc011",  weight=0 ];

	"d3c16d58126898fa79d4bf7220728d475eadc011" -> "4fa65f679fd4b27dadda5d0fcc03dded013a52f2" [  weight=0 ];

	"9a1cd28f07802957770111d5caee10732fb8e6f5" [ color="2", colorscheme="blues3", fillcolor="1", label="id: modules.my-sample-app.externals.dns
type: ingress
class: default
provision time: 20.345ms", style="filled", tooltip="guresid: 9a1cd28f07802957770111d5caee10732fb8e6f5",  weight=0 ];

	"9a1cd28f07802957770111d5caee10732fb8e6f5" -> "d3c16d58126898fa79d4bf7220728d475eadc011" [  weight=0 ];

	"9a1cd28f07802957770111d5caee10732fb8e6f5" -> "4fa65f679fd4b27dadda5d0fcc03dded013a52f2" [  weight=0 ];

	"2a55a24a0b89e7ee61fb1bc82cac296aabf5ebcf" [ color="2", colorscheme="blues3", fillcolor="1", label="id: base-env
type: base-env
class: default
provision time: 3.439861s", style="filled", tooltip="guresid: 2a55a24a0b89e7ee61fb1bc82cac296aabf5ebcf",  weight=0 ];

	"ab4cdb22ff7df639298af6130309e0ff99f53c5a" [ color="2", colorscheme="blues3", fillcolor="1", label="id: modules.my-sample-app.externals.route
type: route
class: default
provision time: 35.959191s", style="filled", tooltip="guresid: ab4cdb22ff7df639298af6130309e0ff99f53c5a",  weight=0 ];

	"676a2c6ddd1c59eed04830d3666ad09022d88828" [ color="2", colorscheme="blues3", fillcolor="1", label="id: modules.my-sample-app
type: workload
class: default
provision time: 19.938ms", style="filled", tooltip="guresid: 676a2c6ddd1c59eed04830d3666ad09022d88828",  weight=0 ];

	"676a2c6ddd1c59eed04830d3666ad09022d88828" -> "4fa65f679fd4b27dadda5d0fcc03dded013a52f2" [  weight=0 ];

	"676a2c6ddd1c59eed04830d3666ad09022d88828" -> "ab4cdb22ff7df639298af6130309e0ff99f53c5a" [  weight=0 ];

	"base" [ color="2", colorscheme="greens3", fillcolor="1", label="base", style="filled",  weight=0 ];

	"base" -> "2a55a24a0b89e7ee61fb1bc82cac296aabf5ebcf" [  weight=0 ];

	"my-sample-app" [ color="2", colorscheme="greens3", fillcolor="1", label="workload.my-sample-app", style="filled",  weight=0 ];

	"my-sample-app" -> "base" [  weight=0 ];

	"my-sample-app" -> "676a2c6ddd1c59eed04830d3666ad09022d88828" [  weight=0 ];

}


Score Output

Score Output:

{
  "id": "1ddabd37e5bf3004f4b0adf5322c4ee26efdf04b",
  "metadata": {
    "env_id": "pr-109",
    "name": "HUMCTL_VERSION: '0.19.1'",
    "url": "https://app.humanitec.io/orgs/mabenoit/apps/my-sample-app/envs/pr-109/draft/1ddabd37e5bf3004f4b0adf5322c4ee26efdf04b",
    "created_by": "s-bfd1178a-106a-4135-b6e9-95b5a9c92b59",
    "created_at": "2024-03-28T00:16:23.184575647Z",
    "last_modified_at": "2024-03-28T00:16:23.184575647Z"
  },
  "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",
            "humanitec.io/workload-source": "https://github.com/mathieu-benoit/sail-sharp/blob/humctl-0-19-1/score/score.yaml"
          },
          "containers": {
            "my-sample-app": {
              "env": [
                {
                  "name": "POD_NAME",
                  "value": "${pod.metadata.name}"
                },
                {
                  "name": "NAMESPACE_NAME",
                  "value": "${pod.metadata.namespace}"
                }
              ],
              "id": "my-sample-app",
              "image": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:f55720f0e76ecf7781cc43a24653860a0268f194acef54a469664c8e2f221c54",
              "resources": {
                "limits": {
                  "cpu": "250m",
                  "memory": "256Mi"
                },
                "requests": {
                  "cpu": "25m",
                  "memory": "64Mi"
                }
              },
              "variables": {
                "MESSAGE": "Hello, Paris!"
              }
            }
          },
          "service": {
            "ports": {
              "tcp": {
                "container_port": 8080,
                "protocol": "TCP",
                "service_port": 8080
              }
            }
          }
        }
      }
    }
  }
}

Copy link

Deployment successfully completed for PR-109! 🎉

View in Humanitec

Deployment ID: 17c0c642d0b8e6ba

Domains:

my-sample-app: rodriguezbodekoelpindanielbalistrerivandervort.newapp.io

Deployment diff

Deployment diff:

{
  "modules": {
    "add": null,
    "remove": [],
    "update": {
      "my-sample-app": [
        {
          "from": "",
          "op": "remove",
          "path": "/spec/terminationGracePeriodSeconds",
          "value": null
        },
        {
          "from": "",
          "op": "replace",
          "path": "/spec/containers/my-sample-app/image",
          "value": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:9bfd046f1bdb4b6e54da6c295963e1eb78e65aff69aa1f8ddda1f5df95efeb6c"
        },
        {
          "from": "",
          "op": "replace",
          "path": "/spec/containers/my-sample-app/variables/MESSAGE",
          "value": "Hello, Paris!"
        },
        {
          "from": "",
          "op": "remove",
          "path": "/spec/containers/my-sample-app/variables/POD_NAME",
          "value": null
        },
        {
          "from": "",
          "op": "remove",
          "path": "/spec/containers/my-sample-app/variables/NAMESPACE_NAME",
          "value": null
        },
        {
          "from": "",
          "op": "add",
          "path": "/spec/containers/my-sample-app/env",
          "value": [
            {
              "name": "POD_NAME",
              "value": "${pod.metadata.name}"
            },
            {
              "name": "NAMESPACE_NAME",
              "value": "${pod.metadata.namespace}"
            }
          ]
        },
        {
          "from": "",
          "op": "add",
          "path": "/spec/annotations/humanitec.io~1workload-source",
          "value": "https://github.com/mathieu-benoit/sail-sharp/blob/humctl-0-19-1/score/score.yaml"
        }
      ]
    }
  },
  "shared": null
}
Active Resources Usage

Active Resources Usage:


ResType      	Class  	ResID                                	Usage         	Last referencing deployment	Last referencing deployment created ago
agent        	default	agent                                	current deploy	17c0c642d0b8e6ba           	22.461209327s                          
base-env     	default	base-env                             	current deploy	17c0c642d0b8e6ba           	22.461211562s                          
k8s-cluster  	default	k8s-cluster                          	current deploy	17c0c642d0b8e6ba           	22.461212704s                          
k8s-namespace	default	k8s-namespace                        	current deploy	17c0c642d0b8e6ba           	22.461213545s                          
logging      	default	logging                              	current deploy	17c0c642d0b8e6ba           	22.461214667s                          
workload     	default	modules.my-sample-app                	current deploy	17c0c642d0b8e6ba           	22.461215539s                          
dns          	default	modules.my-sample-app.externals.dns  	current deploy	17c0c642d0b8e6ba           	22.461216331s                          
ingress      	default	modules.my-sample-app.externals.dns  	current deploy	17c0c642d0b8e6ba           	22.461217132s                          
tls-cert     	default	modules.my-sample-app.externals.dns  	current deploy	17c0c642d0b8e6ba           	22.461218054s                          
route        	default	modules.my-sample-app.externals.route	current deploy	17c0c642d0b8e6ba           	22.461218925s                          

Resources Graph

Resources Graph:


strict digraph {

	label="Resource Graph
app: my-sample-app, env: pr-109

green: virtual nodes (environment, workloads), blue: active resources

";

	labelloc="t";

	overlap="false";

	splines="true";


	"2a55a24a0b89e7ee61fb1bc82cac296aabf5ebcf" [ color="2", colorscheme="blues3", fillcolor="1", label="id: base-env
type: base-env
class: default
provision time: 3.716737s", style="filled", tooltip="guresid: 2a55a24a0b89e7ee61fb1bc82cac296aabf5ebcf",  weight=0 ];

	"ab4cdb22ff7df639298af6130309e0ff99f53c5a" [ color="2", colorscheme="blues3", fillcolor="1", label="id: modules.my-sample-app.externals.route
type: route
class: default
provision time: 3.554882s", style="filled", tooltip="guresid: ab4cdb22ff7df639298af6130309e0ff99f53c5a",  weight=0 ];

	"4fa65f679fd4b27dadda5d0fcc03dded013a52f2" [ color="2", colorscheme="blues3", fillcolor="1", label="id: modules.my-sample-app.externals.dns
type: dns
class: default
provision time: 3.532325s", style="filled", tooltip="guresid: 4fa65f679fd4b27dadda5d0fcc03dded013a52f2",  weight=0 ];

	"d3c16d58126898fa79d4bf7220728d475eadc011" [ color="2", colorscheme="blues3", fillcolor="1", label="id: modules.my-sample-app.externals.dns
type: tls-cert
class: default
provision time: 113.754ms", style="filled", tooltip="guresid: d3c16d58126898fa79d4bf7220728d475eadc011",  weight=0 ];

	"d3c16d58126898fa79d4bf7220728d475eadc011" -> "4fa65f679fd4b27dadda5d0fcc03dded013a52f2" [  weight=0 ];

	"676a2c6ddd1c59eed04830d3666ad09022d88828" [ color="2", colorscheme="blues3", fillcolor="1", label="id: modules.my-sample-app
type: workload
class: default
provision time: 22.975ms", style="filled", tooltip="guresid: 676a2c6ddd1c59eed04830d3666ad09022d88828",  weight=0 ];

	"676a2c6ddd1c59eed04830d3666ad09022d88828" -> "4fa65f679fd4b27dadda5d0fcc03dded013a52f2" [  weight=0 ];

	"676a2c6ddd1c59eed04830d3666ad09022d88828" -> "ab4cdb22ff7df639298af6130309e0ff99f53c5a" [  weight=0 ];

	"9a1cd28f07802957770111d5caee10732fb8e6f5" [ color="2", colorscheme="blues3", fillcolor="1", label="id: modules.my-sample-app.externals.dns
type: ingress
class: default
provision time: 23.639ms", style="filled", tooltip="guresid: 9a1cd28f07802957770111d5caee10732fb8e6f5",  weight=0 ];

	"9a1cd28f07802957770111d5caee10732fb8e6f5" -> "4fa65f679fd4b27dadda5d0fcc03dded013a52f2" [  weight=0 ];

	"9a1cd28f07802957770111d5caee10732fb8e6f5" -> "d3c16d58126898fa79d4bf7220728d475eadc011" [  weight=0 ];

	"base" [ color="2", colorscheme="greens3", fillcolor="1", label="base", style="filled",  weight=0 ];

	"base" -> "2a55a24a0b89e7ee61fb1bc82cac296aabf5ebcf" [  weight=0 ];

	"my-sample-app" [ color="2", colorscheme="greens3", fillcolor="1", label="workload.my-sample-app", style="filled",  weight=0 ];

	"my-sample-app" -> "base" [  weight=0 ];

	"my-sample-app" -> "676a2c6ddd1c59eed04830d3666ad09022d88828" [  weight=0 ];

}


Score Output

Score Output:

{
  "id": "8147bf21a512f5bf7a37f2d12228cbe5d08541d1",
  "metadata": {
    "env_id": "pr-109",
    "name": "humctl score validate",
    "url": "https://app.humanitec.io/orgs/mabenoit/apps/my-sample-app/envs/pr-109/draft/8147bf21a512f5bf7a37f2d12228cbe5d08541d1",
    "created_by": "s-bfd1178a-106a-4135-b6e9-95b5a9c92b59",
    "created_at": "2024-03-28T00:30:48.283173715Z",
    "last_modified_at": "2024-03-28T00:30:48.283173715Z"
  },
  "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",
            "humanitec.io/workload-source": "https://github.com/mathieu-benoit/sail-sharp/blob/humctl-0-19-1/score/score.yaml"
          },
          "containers": {
            "my-sample-app": {
              "env": [
                {
                  "name": "POD_NAME",
                  "value": "${pod.metadata.name}"
                },
                {
                  "name": "NAMESPACE_NAME",
                  "value": "${pod.metadata.namespace}"
                }
              ],
              "id": "my-sample-app",
              "image": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:9bfd046f1bdb4b6e54da6c295963e1eb78e65aff69aa1f8ddda1f5df95efeb6c",
              "resources": {
                "limits": {
                  "cpu": "250m",
                  "memory": "256Mi"
                },
                "requests": {
                  "cpu": "25m",
                  "memory": "64Mi"
                }
              },
              "variables": {
                "MESSAGE": "Hello, Paris!"
              }
            }
          },
          "service": {
            "ports": {
              "tcp": {
                "container_port": 8080,
                "protocol": "TCP",
                "service_port": 8080
              }
            }
          }
        }
      }
    }
  }
}

Copy link

Deployment successfully completed for PR-109! 🎉

View in Humanitec

Deployment ID: 17c0ee74d244572e

Domains:

my-sample-app: rodriguezbodekoelpindanielbalistrerivandervort.newapp.io

Deployment diff

Deployment 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:fa4ec67d4fd340528b55e53f502586b30515444aa0de7136e5d06d7ea7f83770"
        },
        {
          "from": "",
          "op": "remove",
          "path": "/spec/containers/my-sample-app/variables/POD_NAME",
          "value": null
        },
        {
          "from": "",
          "op": "remove",
          "path": "/spec/containers/my-sample-app/variables/NAMESPACE_NAME",
          "value": null
        },
        {
          "from": "",
          "op": "replace",
          "path": "/spec/containers/my-sample-app/variables/MESSAGE",
          "value": "Hello, Paris!"
        },
        {
          "from": "",
          "op": "add",
          "path": "/spec/containers/my-sample-app/env",
          "value": [
            {
              "name": "POD_NAME",
              "value": "${pod.metadata.name}"
            },
            {
              "name": "NAMESPACE_NAME",
              "value": "${pod.metadata.namespace}"
            }
          ]
        },
        {
          "from": "",
          "op": "add",
          "path": "/spec/annotations/humanitec.io~1workload-source",
          "value": "https://github.com/mathieu-benoit/sail-sharp/blob/humctl-0-19-1/score/score.yaml"
        },
        {
          "from": "",
          "op": "remove",
          "path": "/spec/terminationGracePeriodSeconds",
          "value": null
        }
      ]
    }
  },
  "shared": null
}
Active Resources Usage

Active Resources Usage:


ResType      	Class  	ResID                                	Usage         	Last referencing deployment	Last referencing deployment created ago
agent        	default	agent                                	current deploy	17c0ee74d244572e           	19.882764265s                          
base-env     	default	base-env                             	current deploy	17c0ee74d244572e           	19.882765767s                          
k8s-cluster  	default	k8s-cluster                          	current deploy	17c0ee74d244572e           	19.882766639s                          
k8s-namespace	default	k8s-namespace                        	current deploy	17c0ee74d244572e           	19.88276731s                           
logging      	default	logging                              	current deploy	17c0ee74d244572e           	19.882768172s                          
workload     	default	modules.my-sample-app                	current deploy	17c0ee74d244572e           	19.882768843s                          
dns          	default	modules.my-sample-app.externals.dns  	current deploy	17c0ee74d244572e           	19.882769745s                          
ingress      	default	modules.my-sample-app.externals.dns  	current deploy	17c0ee74d244572e           	19.882770386s                          
tls-cert     	default	modules.my-sample-app.externals.dns  	current deploy	17c0ee74d244572e           	19.882771087s                          
route        	default	modules.my-sample-app.externals.route	current deploy	17c0ee74d244572e           	19.882773051s                          

Resources Graph

Resources Graph:


strict digraph {

	label="Resource Graph
app: my-sample-app, env: pr-109

green: virtual nodes (environment, workloads), blue: active resources

";

	labelloc="t";

	overlap="false";

	splines="true";


	"my-sample-app" [ color="2", colorscheme="greens3", fillcolor="1", label="workload.my-sample-app", style="filled",  weight=0 ];

	"my-sample-app" -> "base" [  weight=0 ];

	"my-sample-app" -> "676a2c6ddd1c59eed04830d3666ad09022d88828" [  weight=0 ];

	"ab4cdb22ff7df639298af6130309e0ff99f53c5a" [ color="2", colorscheme="blues3", fillcolor="1", label="id: modules.my-sample-app.externals.route
type: route
class: default
provision time: 2.603913s", style="filled", tooltip="guresid: ab4cdb22ff7df639298af6130309e0ff99f53c5a",  weight=0 ];

	"4fa65f679fd4b27dadda5d0fcc03dded013a52f2" [ color="2", colorscheme="blues3", fillcolor="1", label="id: modules.my-sample-app.externals.dns
type: dns
class: default
provision time: 2.583002s", style="filled", tooltip="guresid: 4fa65f679fd4b27dadda5d0fcc03dded013a52f2",  weight=0 ];

	"676a2c6ddd1c59eed04830d3666ad09022d88828" [ color="2", colorscheme="blues3", fillcolor="1", label="id: modules.my-sample-app
type: workload
class: default
provision time: 26.897ms", style="filled", tooltip="guresid: 676a2c6ddd1c59eed04830d3666ad09022d88828",  weight=0 ];

	"676a2c6ddd1c59eed04830d3666ad09022d88828" -> "4fa65f679fd4b27dadda5d0fcc03dded013a52f2" [  weight=0 ];

	"676a2c6ddd1c59eed04830d3666ad09022d88828" -> "ab4cdb22ff7df639298af6130309e0ff99f53c5a" [  weight=0 ];

	"d3c16d58126898fa79d4bf7220728d475eadc011" [ color="2", colorscheme="blues3", fillcolor="1", label="id: modules.my-sample-app.externals.dns
type: tls-cert
class: default
provision time: 101.813ms", style="filled", tooltip="guresid: d3c16d58126898fa79d4bf7220728d475eadc011",  weight=0 ];

	"d3c16d58126898fa79d4bf7220728d475eadc011" -> "4fa65f679fd4b27dadda5d0fcc03dded013a52f2" [  weight=0 ];

	"9a1cd28f07802957770111d5caee10732fb8e6f5" [ color="2", colorscheme="blues3", fillcolor="1", label="id: modules.my-sample-app.externals.dns
type: ingress
class: default
provision time: 22.625ms", style="filled", tooltip="guresid: 9a1cd28f07802957770111d5caee10732fb8e6f5",  weight=0 ];

	"9a1cd28f07802957770111d5caee10732fb8e6f5" -> "d3c16d58126898fa79d4bf7220728d475eadc011" [  weight=0 ];

	"9a1cd28f07802957770111d5caee10732fb8e6f5" -> "4fa65f679fd4b27dadda5d0fcc03dded013a52f2" [  weight=0 ];

	"2a55a24a0b89e7ee61fb1bc82cac296aabf5ebcf" [ color="2", colorscheme="blues3", fillcolor="1", label="id: base-env
type: base-env
class: default
provision time: 2.74929s", style="filled", tooltip="guresid: 2a55a24a0b89e7ee61fb1bc82cac296aabf5ebcf",  weight=0 ];

	"base" [ color="2", colorscheme="greens3", fillcolor="1", label="base", style="filled",  weight=0 ];

	"base" -> "2a55a24a0b89e7ee61fb1bc82cac296aabf5ebcf" [  weight=0 ];

}


Score Output

Score Output:

{
  "id": "8882065dc89879e93c977da92bb9366f2cbd29d8",
  "metadata": {
    "env_id": "pr-109",
    "name": "validate --strict",
    "url": "https://app.humanitec.io/orgs/mabenoit/apps/my-sample-app/envs/pr-109/draft/8882065dc89879e93c977da92bb9366f2cbd29d8",
    "created_by": "s-bfd1178a-106a-4135-b6e9-95b5a9c92b59",
    "created_at": "2024-03-28T12:47:23.718965129Z",
    "last_modified_at": "2024-03-28T12:47:23.718965129Z"
  },
  "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",
            "humanitec.io/workload-source": "https://github.com/mathieu-benoit/sail-sharp/blob/humctl-0-19-1/score/score.yaml"
          },
          "containers": {
            "my-sample-app": {
              "env": [
                {
                  "name": "POD_NAME",
                  "value": "${pod.metadata.name}"
                },
                {
                  "name": "NAMESPACE_NAME",
                  "value": "${pod.metadata.namespace}"
                }
              ],
              "id": "my-sample-app",
              "image": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:fa4ec67d4fd340528b55e53f502586b30515444aa0de7136e5d06d7ea7f83770",
              "resources": {
                "limits": {
                  "cpu": "250m",
                  "memory": "256Mi"
                },
                "requests": {
                  "cpu": "25m",
                  "memory": "64Mi"
                }
              },
              "variables": {
                "MESSAGE": "Hello, Paris!"
              }
            }
          },
          "service": {
            "ports": {
              "tcp": {
                "container_port": 8080,
                "protocol": "TCP",
                "service_port": 8080
              }
            }
          }
        }
      }
    }
  }
}

Copy link

Deployment successfully completed for PR-109! 🎉

View in Humanitec

Deployment ID: 17c0f05b652b332e

Domains:

my-sample-app: rodriguezbodekoelpindanielbalistrerivandervort.newapp.io

Deployment diff

Deployment 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:cbb2d5bfd1271e9333b5b52c88f08206102d57117aa224fe9e6aca9ae38ca18a"
        },
        {
          "from": "",
          "op": "add",
          "path": "/spec/annotations/humanitec.io~1workload-source",
          "value": "https://github.com/mathieu-benoit/sail-sharp/blob/humctl-0-19-1/score/score.yaml"
        }
      ]
    }
  },
  "shared": null
}
Active Resources Usage

Active Resources Usage:


ResType      	Class  	ResID                                	Usage         	Last referencing deployment	Last referencing deployment created ago
agent        	default	agent                                	current deploy	17c0f05b652b332e           	23.824013588s                          
base-env     	default	base-env                             	current deploy	17c0f05b652b332e           	23.824015391s                          
k8s-cluster  	default	k8s-cluster                          	current deploy	17c0f05b652b332e           	23.824016302s                          
k8s-namespace	default	k8s-namespace                        	current deploy	17c0f05b652b332e           	23.824017064s                          
logging      	default	logging                              	current deploy	17c0f05b652b332e           	23.824017865s                          
workload     	default	modules.my-sample-app                	current deploy	17c0f05b652b332e           	23.824018577s                          
dns          	default	modules.my-sample-app.externals.dns  	current deploy	17c0f05b652b332e           	23.824019268s                          
ingress      	default	modules.my-sample-app.externals.dns  	current deploy	17c0f05b652b332e           	23.824019959s                          
tls-cert     	default	modules.my-sample-app.externals.dns  	current deploy	17c0f05b652b332e           	23.824020751s                          
route        	default	modules.my-sample-app.externals.route	current deploy	17c0f05b652b332e           	23.824021502s                          

Resources Graph

Resources Graph:


strict digraph {

	label="Resource Graph
app: my-sample-app, env: pr-109

green: virtual nodes (environment, workloads), blue: active resources

";

	labelloc="t";

	overlap="false";

	splines="true";


	"d3c16d58126898fa79d4bf7220728d475eadc011" [ color="2", colorscheme="blues3", fillcolor="1", label="id: modules.my-sample-app.externals.dns
type: tls-cert
class: default
provision time: 90.596ms", style="filled", tooltip="guresid: d3c16d58126898fa79d4bf7220728d475eadc011",  weight=0 ];

	"d3c16d58126898fa79d4bf7220728d475eadc011" -> "4fa65f679fd4b27dadda5d0fcc03dded013a52f2" [  weight=0 ];

	"9a1cd28f07802957770111d5caee10732fb8e6f5" [ color="2", colorscheme="blues3", fillcolor="1", label="id: modules.my-sample-app.externals.dns
type: ingress
class: default
provision time: 23.584ms", style="filled", tooltip="guresid: 9a1cd28f07802957770111d5caee10732fb8e6f5",  weight=0 ];

	"9a1cd28f07802957770111d5caee10732fb8e6f5" -> "d3c16d58126898fa79d4bf7220728d475eadc011" [  weight=0 ];

	"9a1cd28f07802957770111d5caee10732fb8e6f5" -> "4fa65f679fd4b27dadda5d0fcc03dded013a52f2" [  weight=0 ];

	"base" [ color="2", colorscheme="greens3", fillcolor="1", label="base", style="filled",  weight=0 ];

	"base" -> "2a55a24a0b89e7ee61fb1bc82cac296aabf5ebcf" [  weight=0 ];

	"my-sample-app" [ color="2", colorscheme="greens3", fillcolor="1", label="workload.my-sample-app", style="filled",  weight=0 ];

	"my-sample-app" -> "676a2c6ddd1c59eed04830d3666ad09022d88828" [  weight=0 ];

	"my-sample-app" -> "base" [  weight=0 ];

	"2a55a24a0b89e7ee61fb1bc82cac296aabf5ebcf" [ color="2", colorscheme="blues3", fillcolor="1", label="id: base-env
type: base-env
class: default
provision time: 3.104244s", style="filled", tooltip="guresid: 2a55a24a0b89e7ee61fb1bc82cac296aabf5ebcf",  weight=0 ];

	"ab4cdb22ff7df639298af6130309e0ff99f53c5a" [ color="2", colorscheme="blues3", fillcolor="1", label="id: modules.my-sample-app.externals.route
type: route
class: default
provision time: 2.96573s", style="filled", tooltip="guresid: ab4cdb22ff7df639298af6130309e0ff99f53c5a",  weight=0 ];

	"4fa65f679fd4b27dadda5d0fcc03dded013a52f2" [ color="2", colorscheme="blues3", fillcolor="1", label="id: modules.my-sample-app.externals.dns
type: dns
class: default
provision time: 2.94635s", style="filled", tooltip="guresid: 4fa65f679fd4b27dadda5d0fcc03dded013a52f2",  weight=0 ];

	"676a2c6ddd1c59eed04830d3666ad09022d88828" [ color="2", colorscheme="blues3", fillcolor="1", label="id: modules.my-sample-app
type: workload
class: default
provision time: 21.976ms", style="filled", tooltip="guresid: 676a2c6ddd1c59eed04830d3666ad09022d88828",  weight=0 ];

	"676a2c6ddd1c59eed04830d3666ad09022d88828" -> "4fa65f679fd4b27dadda5d0fcc03dded013a52f2" [  weight=0 ];

	"676a2c6ddd1c59eed04830d3666ad09022d88828" -> "ab4cdb22ff7df639298af6130309e0ff99f53c5a" [  weight=0 ];

}


Score Output

Score Output:

@mathieu-benoit mathieu-benoit changed the title HUMCTL_VERSION: '0.19.1' humctl 0.19.1 - score validate & score deploy Mar 28, 2024
Copy link

Deployment successfully completed for PR-109! 🎉

View in Humanitec

Deployment ID: 17c0f0bcb24d88e5

Domains:

my-sample-app: rodriguezbodekoelpindanielbalistrerivandervort.newapp.io

Deployment diff

Deployment diff:

{
  "modules": {
    "add": null,
    "remove": [],
    "update": {
      "my-sample-app": [
        {
          "from": "",
          "op": "add",
          "path": "/spec/annotations/humanitec.io~1workload-source",
          "value": "https://github.com/mathieu-benoit/sail-sharp/blob/humctl-0-19-1/score/score.yaml"
        },
        {
          "from": "",
          "op": "replace",
          "path": "/spec/containers/my-sample-app/image",
          "value": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:797fef87e59ced1dbc11a32b2f386b233072e8dd5ae2c4a210a49cc4104ede6c"
        }
      ]
    }
  },
  "shared": null
}
Active Resources Usage

Active Resources Usage:


ResType      	Class  	ResID                                	Usage         	Last referencing deployment	Last referencing deployment created ago
agent        	default	agent                                	current deploy	17c0f0bcb24d88e5           	23.705255718s                          
base-env     	default	base-env                             	current deploy	17c0f0bcb24d88e5           	23.705257321s                          
k8s-cluster  	default	k8s-cluster                          	current deploy	17c0f0bcb24d88e5           	23.705258383s                          
k8s-namespace	default	k8s-namespace                        	current deploy	17c0f0bcb24d88e5           	23.705259255s                          
logging      	default	logging                              	current deploy	17c0f0bcb24d88e5           	23.705260207s                          
workload     	default	modules.my-sample-app                	current deploy	17c0f0bcb24d88e5           	23.705261068s                          
dns          	default	modules.my-sample-app.externals.dns  	current deploy	17c0f0bcb24d88e5           	23.7052619s                            
ingress      	default	modules.my-sample-app.externals.dns  	current deploy	17c0f0bcb24d88e5           	23.705262822s                          
tls-cert     	default	modules.my-sample-app.externals.dns  	current deploy	17c0f0bcb24d88e5           	23.705263733s                          
route        	default	modules.my-sample-app.externals.route	current deploy	17c0f0bcb24d88e5           	23.705264545s                          

Resources Graph

Resources Graph:


strict digraph {

	label="Resource Graph
app: my-sample-app, env: pr-109

green: virtual nodes (environment, workloads), blue: active resources

";

	labelloc="t";

	overlap="false";

	splines="true";


	"2a55a24a0b89e7ee61fb1bc82cac296aabf5ebcf" [ color="2", colorscheme="blues3", fillcolor="1", label="id: base-env
type: base-env
class: default
provision time: 3.34916s", style="filled", tooltip="guresid: 2a55a24a0b89e7ee61fb1bc82cac296aabf5ebcf",  weight=0 ];

	"base" [ color="2", colorscheme="greens3", fillcolor="1", label="base", style="filled",  weight=0 ];

	"base" -> "2a55a24a0b89e7ee61fb1bc82cac296aabf5ebcf" [  weight=0 ];

	"my-sample-app" [ color="2", colorscheme="greens3", fillcolor="1", label="workload.my-sample-app", style="filled",  weight=0 ];

	"my-sample-app" -> "base" [  weight=0 ];

	"my-sample-app" -> "676a2c6ddd1c59eed04830d3666ad09022d88828" [  weight=0 ];

	"ab4cdb22ff7df639298af6130309e0ff99f53c5a" [ color="2", colorscheme="blues3", fillcolor="1", label="id: modules.my-sample-app.externals.route
type: route
class: default
provision time: 3.197835s", style="filled", tooltip="guresid: ab4cdb22ff7df639298af6130309e0ff99f53c5a",  weight=0 ];

	"4fa65f679fd4b27dadda5d0fcc03dded013a52f2" [ color="2", colorscheme="blues3", fillcolor="1", label="id: modules.my-sample-app.externals.dns
type: dns
class: default
provision time: 3.175223s", style="filled", tooltip="guresid: 4fa65f679fd4b27dadda5d0fcc03dded013a52f2",  weight=0 ];

	"676a2c6ddd1c59eed04830d3666ad09022d88828" [ color="2", colorscheme="blues3", fillcolor="1", label="id: modules.my-sample-app
type: workload
class: default
provision time: 19.651ms", style="filled", tooltip="guresid: 676a2c6ddd1c59eed04830d3666ad09022d88828",  weight=0 ];

	"676a2c6ddd1c59eed04830d3666ad09022d88828" -> "4fa65f679fd4b27dadda5d0fcc03dded013a52f2" [  weight=0 ];

	"676a2c6ddd1c59eed04830d3666ad09022d88828" -> "ab4cdb22ff7df639298af6130309e0ff99f53c5a" [  weight=0 ];

	"d3c16d58126898fa79d4bf7220728d475eadc011" [ color="2", colorscheme="blues3", fillcolor="1", label="id: modules.my-sample-app.externals.dns
type: tls-cert
class: default
provision time: 106.982ms", style="filled", tooltip="guresid: d3c16d58126898fa79d4bf7220728d475eadc011",  weight=0 ];

	"d3c16d58126898fa79d4bf7220728d475eadc011" -> "4fa65f679fd4b27dadda5d0fcc03dded013a52f2" [  weight=0 ];

	"9a1cd28f07802957770111d5caee10732fb8e6f5" [ color="2", colorscheme="blues3", fillcolor="1", label="id: modules.my-sample-app.externals.dns
type: ingress
class: default
provision time: 22.079ms", style="filled", tooltip="guresid: 9a1cd28f07802957770111d5caee10732fb8e6f5",  weight=0 ];

	"9a1cd28f07802957770111d5caee10732fb8e6f5" -> "4fa65f679fd4b27dadda5d0fcc03dded013a52f2" [  weight=0 ];

	"9a1cd28f07802957770111d5caee10732fb8e6f5" -> "d3c16d58126898fa79d4bf7220728d475eadc011" [  weight=0 ];

}


Copy link

@mateuszjenek mateuszjenek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks nice 👍🏻

.github/workflows/open-pr.yml Show resolved Hide resolved
@mathieu-benoit mathieu-benoit merged commit 541d60c into main Mar 29, 2024
2 checks passed
@mathieu-benoit mathieu-benoit deleted the humctl-0-19-1 branch March 29, 2024 04:15
@mathieu-benoit mathieu-benoit restored the humctl-0-19-1 branch March 29, 2024 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants