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

score-compose 0.11.0 #108

Merged
merged 5 commits into from
Mar 22, 2024
Merged

score-compose 0.11.0 #108

merged 5 commits into from
Mar 22, 2024

Conversation

mathieu-benoit
Copy link
Owner

No description provided.

Copy link

Deployment successfully completed for PR-108! 🎉

View in Humanitec

Deployment ID: 17be7f0e5845c8db

Domains:

my-sample-app: larkindouglaskundemcclure.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:ccc47e4cb50133526b9a7b0154eb0c5041e17a5cc9bc68ad320ff6f0cc4f0cb6"
        },
        {
          "from": "",
          "op": "replace",
          "path": "/spec/containers/my-sample-app/variables/MESSAGE",
          "value": "Hello, Paris!"
        },
        {
          "from": "",
          "op": "add",
          "path": "/spec/annotations/humanitec.io~1workload-source",
          "value": "https://github.com/mathieu-benoit/sail-sharp/blob/mathieu-benoit-patch-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	17be7f0e5845c8db           	55.776834906s                          
base-env     	default	base-env                             	current deploy	17be7f0e5845c8db           	55.776836358s                          
k8s-cluster  	default	k8s-cluster                          	current deploy	17be7f0e5845c8db           	55.77683744s                           
k8s-namespace	default	k8s-namespace                        	current deploy	17be7f0e5845c8db           	55.776838141s                          
logging      	default	logging                              	current deploy	17be7f0e5845c8db           	55.776838943s                          
workload     	default	modules.my-sample-app                	current deploy	17be7f0e5845c8db           	55.776839574s                          
dns          	default	modules.my-sample-app.externals.dns  	current deploy	17be7f0e5845c8db           	55.776840155s                          
ingress      	default	modules.my-sample-app.externals.dns  	current deploy	17be7f0e5845c8db           	55.776840746s                          
tls-cert     	default	modules.my-sample-app.externals.dns  	current deploy	17be7f0e5845c8db           	55.776841428s                          
route        	default	modules.my-sample-app.externals.route	current deploy	17be7f0e5845c8db           	55.776842029s                          

Resources Graph

Resources Graph:


strict digraph {

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

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

";

	labelloc="t";

	overlap="false";

	splines="true";


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

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

	"base" -> "aed66216c28c15c33aabff3b66082d3cb40e0f4e" [  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" -> "bac6d8b7259e4f219b26011dd771cfdd1426e337" [  weight=0 ];

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

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

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

	"bac6d8b7259e4f219b26011dd771cfdd1426e337" -> "cb7a44d12c45f95825b084bbac4c685f7aaa2c36" [  weight=0 ];

	"bac6d8b7259e4f219b26011dd771cfdd1426e337" -> "e7725d44491c06eb057ce5cec05178c42a005d3c" [  weight=0 ];

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

	"90ad0d7db9810f08e3a331c24b0ad56a9c8ca722" -> "cb7a44d12c45f95825b084bbac4c685f7aaa2c36" [  weight=0 ];

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

	"abb884374c2f75cdfc911d53f58fd75b32a1469b" -> "90ad0d7db9810f08e3a331c24b0ad56a9c8ca722" [  weight=0 ];

	"abb884374c2f75cdfc911d53f58fd75b32a1469b" -> "cb7a44d12c45f95825b084bbac4c685f7aaa2c36" [  weight=0 ];

}


Score Output

Score Output:

{
  "id": "661d789f0236da1a4257d3004fe2765f3f526a00",
  "metadata": {
    "env_id": "pr-108",
    "name": "Update open-pr.yml - SCORE_COMPOSE_VERSION: '0.10.0'",
    "url": "https://app.humanitec.io/orgs/mabenoit/apps/my-sample-app/envs/pr-108/draft/661d789f0236da1a4257d3004fe2765f3f526a00",
    "created_by": "s-bfd1178a-106a-4135-b6e9-95b5a9c92b59",
    "created_at": "2024-03-20T14:23:27.648178412Z",
    "last_modified_at": "2024-03-20T14:23:27.648178412Z"
  },
  "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/mathieu-benoit-patch-1/score/score.yaml"
          },
          "containers": {
            "my-sample-app": {
              "id": "my-sample-app",
              "image": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-app@sha256:ccc47e4cb50133526b9a7b0154eb0c5041e17a5cc9bc68ad320ff6f0cc4f0cb6",
              "resources": {
                "limits": {
                  "cpu": "250m",
                  "memory": "256Mi"
                },
                "requests": {
                  "cpu": "25m",
                  "memory": "64Mi"
                }
              },
              "variables": {
                "MESSAGE": "Hello, Paris!",
                "NAMESPACE_NAME": "${pod.metadata.namespace}",
                "POD_NAME": "${pod.metadata.name}"
              }
            }
          },
          "service": {
            "ports": {
              "tcp": {
                "container_port": 8080,
                "protocol": "TCP",
                "service_port": 8080
              }
            }
          },
          "terminationGracePeriodSeconds": 60
        }
      }
    }
  }
}

Copy link

Deployment successfully completed for PR-108! 🎉

View in Humanitec

Deployment ID: 17bf1e3377d71637

Domains:

my-sample-app: larkindouglaskundemcclure.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:486f7e1cdb7accea138522d42d5b0184452c11fec145c6e08fe79c6de8251606"
        },
        {
          "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/mathieu-benoit-patch-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	17bf1e3377d71637           	25.911620992s                          
base-env     	default	base-env                             	current deploy	17bf1e3377d71637           	25.911622896s                          
k8s-cluster  	default	k8s-cluster                          	current deploy	17bf1e3377d71637           	25.911623738s                          
k8s-namespace	default	k8s-namespace                        	current deploy	17bf1e3377d71637           	25.911624399s                          
logging      	default	logging                              	current deploy	17bf1e3377d71637           	25.91162508s                           
workload     	default	modules.my-sample-app                	current deploy	17bf1e3377d71637           	25.911625761s                          
dns          	default	modules.my-sample-app.externals.dns  	current deploy	17bf1e3377d71637           	25.911626453s                          
ingress      	default	modules.my-sample-app.externals.dns  	current deploy	17bf1e3377d71637           	25.911627074s                          
tls-cert     	default	modules.my-sample-app.externals.dns  	current deploy	17bf1e3377d71637           	25.911627765s                          
route        	default	modules.my-sample-app.externals.route	current deploy	17bf1e3377d71637           	25.911628406s                          

Resources Graph

Resources Graph:


strict digraph {

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

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" -> "bac6d8b7259e4f219b26011dd771cfdd1426e337" [  weight=0 ];

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

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

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

	"90ad0d7db9810f08e3a331c24b0ad56a9c8ca722" -> "cb7a44d12c45f95825b084bbac4c685f7aaa2c36" [  weight=0 ];

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

	"abb884374c2f75cdfc911d53f58fd75b32a1469b" -> "cb7a44d12c45f95825b084bbac4c685f7aaa2c36" [  weight=0 ];

	"abb884374c2f75cdfc911d53f58fd75b32a1469b" -> "90ad0d7db9810f08e3a331c24b0ad56a9c8ca722" [  weight=0 ];

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

	"bac6d8b7259e4f219b26011dd771cfdd1426e337" -> "cb7a44d12c45f95825b084bbac4c685f7aaa2c36" [  weight=0 ];

	"bac6d8b7259e4f219b26011dd771cfdd1426e337" -> "e7725d44491c06eb057ce5cec05178c42a005d3c" [  weight=0 ];

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

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

	"base" -> "aed66216c28c15c33aabff3b66082d3cb40e0f4e" [  weight=0 ];

}


Score Output

Score Output:

{
  "id": "a96da0ca13df461f886788be4b0338106b486988",
  "metadata": {
    "env_id": "pr-108",
    "name": "Kubernetes env var out of score file",
    "url": "https://app.humanitec.io/orgs/mabenoit/apps/my-sample-app/envs/pr-108/draft/a96da0ca13df461f886788be4b0338106b486988",
    "created_by": "s-bfd1178a-106a-4135-b6e9-95b5a9c92b59",
    "created_at": "2024-03-22T14:59:49.423732954Z",
    "last_modified_at": "2024-03-22T14:59:49.423732954Z"
  },
  "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/mathieu-benoit-patch-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:486f7e1cdb7accea138522d42d5b0184452c11fec145c6e08fe79c6de8251606",
              "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
              }
            }
          }
        }
      }
    }
  }
}

@mathieu-benoit mathieu-benoit changed the title Update score.yaml score-compose 0.11.0 Mar 22, 2024
@mathieu-benoit mathieu-benoit merged commit 52cd284 into main Mar 22, 2024
2 checks passed
@mathieu-benoit mathieu-benoit deleted the mathieu-benoit-patch-1 branch March 22, 2024 15:05
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.

1 participant