mathieu-benoit / sail-sharp

Sail Sharp - Security best practices with .NET Core & Kubernetes
https://medium.com/p/c68ba253844a
3 stars 0 forks source link

`humctl` is out #90

Closed mathieu-benoit closed 11 months ago

mathieu-benoit commented 11 months ago

https://developer.humanitec.com/platform-orchestrator/cli/

In addition to this PR, needed to do that https://github.com/mathieu-benoit/sail-sharp/commit/9312c23bd8890983efe7c49ee191ceb623622b17 too.

github-actions[bot] commented 11 months ago

Deployment successfully completed for PR-90! :tada:

View in Humanitec

Deployment ID: c1be691d24df84bdc0a89c623eec400e73609747

Domains:

Deployment diff ### Deployment diff: ```json Diff two objects. Displays the difference between two objects. See the subcommands for comparable entities. Usage: humctl diff [command] Available Commands: sets diff two deployment sets Flags: -h, --help help for diff Global Flags: --api-prefix string The Humanitec API prefix for use with on-prem Humanitec setups. (default "https://api.humanitec.io") --app string The Humanitec app to use. Overrides the config file and HUMANITEC_APP environment variable. --config string Path to the humctl config file to use. --env string The Humanitec environment to use. Overrides the config file and HUMANITEC_ENV environment variable. --org string The Humanitec org to use. Overrides the config file and HUMANITEC_ORG environment variable. -o, --output string The output format. One of: (json, yaml, text). (default "text") --token string The Humanitec authentication token to use for requests. It is recommended to use the HUMANITEC_TOKEN environment variable instead. -v, --verbose int32 Number for the log level verbosity, from 0 (low) to 9 (high). Use "humctl diff [command] --help" for more information about a command. ```
Score Output ### Score Output: ```json { "id": "c1be691d24df84bdc0a89c623eec400e73609747", "metadata": { "env_id": "pr-90", "name": "--context doesn't exist anymore, use --org|app|env instead", "url": "https://app.humanitec.io/orgs/my-trial/apps/my-sample-app/envs/pr-90/draft/c1be691d24df84bdc0a89c623eec400e73609747", "created_by": "s-9d271151-e949-4548-81ed-e7c652fecbb8", "created_at": "2023-12-12T22:26:38.847634622Z", "last_modified_at": "2023-12-12T22:26:38.847634622Z" }, "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:5762db6246f1cb85c01747eb4b5d7c70f6214489f959f43c9f8559244e16a1aa", "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 } } } } } ```
github-actions[bot] commented 11 months ago

Deployment successfully completed for PR-90! :tada:

View in Humanitec

Deployment ID: 38dfe948a55d3cf008244822d344fe78f8595d78

Domains:

Deployment diff ### Deployment diff: ```json { "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:6eebc68febd9089e0493bc4654cc526591270e9d23e29236600e7733febc9160", "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 } } }, "remove": [ "busybox" ], "update": null }, "shared": null } ```
Score Output ### Score Output: ```json { "id": "38dfe948a55d3cf008244822d344fe78f8595d78", "metadata": { "env_id": "pr-90", "name": "humctl diff sets", "url": "https://app.humanitec.io/orgs/my-trial/apps/my-sample-app/envs/pr-90/draft/38dfe948a55d3cf008244822d344fe78f8595d78", "created_by": "s-9d271151-e949-4548-81ed-e7c652fecbb8", "created_at": "2023-12-12T22:54:10.326792441Z", "last_modified_at": "2023-12-12T22:54:10.326792441Z" }, "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:6eebc68febd9089e0493bc4654cc526591270e9d23e29236600e7733febc9160", "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 } } } } } ```