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 is out #90

Merged
merged 3 commits into from
Dec 12, 2023
Merged

humctl is out #90

merged 3 commits into from
Dec 12, 2023

Conversation

mathieu-benoit
Copy link
Owner

@mathieu-benoit mathieu-benoit commented Dec 12, 2023

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

In addition to this PR, needed to do that 9312c23 too.

Copy link

Deployment successfully completed for PR-90! 🎉

View in Humanitec

Deployment ID: c1be691d24df84bdc0a89c623eec400e73609747

Domains:

Deployment diff

Deployment diff:

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:

{
  "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
        }
      }
    }
  }
}

Copy link

Deployment successfully completed for PR-90! 🎉

View in Humanitec

Deployment ID: 38dfe948a55d3cf008244822d344fe78f8595d78

Domains:

Deployment diff

Deployment diff:

{
  "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:

{
  "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
        }
      }
    }
  }
}

@mathieu-benoit mathieu-benoit merged commit 9dc1a12 into main Dec 12, 2023
2 checks passed
@mathieu-benoit mathieu-benoit deleted the humctl branch December 12, 2023 22:57
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