-
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
is out
#90
Merged
Merged
humctl
is out
#90
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Deployment successfully completed for PR-90! 🎉View in HumanitecDeployment ID: c1be691d24df84bdc0a89c623eec400e73609747 Domains:Deployment diffDeployment 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 OutputScore 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
}
}
}
}
} |
Deployment successfully completed for PR-90! 🎉View in HumanitecDeployment ID: 38dfe948a55d3cf008244822d344fe78f8595d78 Domains:Deployment diffDeployment 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 OutputScore 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
}
}
}
}
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
https://developer.humanitec.com/platform-orchestrator/cli/
In addition to this PR, needed to do that 9312c23 too.