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

No example of what a harness environment yaml should look like, or ability to display current environment values #68

Open
rob-casper opened this issue Jan 31, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@rob-casper
Copy link

No description provided.

@nicholaslotz nicholaslotz added documentation Improvements or additions to documentation enhancement New feature or request labels Feb 5, 2024
@nicholaslotz
Copy link
Contributor

Hi @rob-casper, thanks for opening this issue!

You're right that we don't include YAML examples in the CLI docs or built-in help. The CLI is basically a wrapper for the API, which is separate from the YAML schema used by Harness entities.

We have some examples in this repo. Creating the resource in the Harness UI and seeing the YAML it generates also helps get a sense for what's needed. For an environment, the YAML needs at minimum a name, ID, and to designate the type as either Production or PreProduction.

environment:
  name: myenv
  identifier: myenv
  description: ""
  tags: {}
  type: PreProduction 
  variables: []

Regarding the second part of your question, we don't have a command right now to display environment details, though we do have an API endpoint. I'll submit to the team as a feature request.

Thank you again for reaching out with this. Please let us know if you have any other questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants