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

Add distribution to drenv metadata #1416

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

nirs
Copy link
Member

@nirs nirs commented May 22, 2024

This can be used to do the right thing for ocp or k8s clusters in tests or tools using environment files.

@rakeshgm
Copy link
Member

Looks quite useful. What about documenting this env variable.

@nirs
Copy link
Member Author

nirs commented May 22, 2024

Looks quite useful. What about documenting this env variable.

Right, need to document it.

@nirs nirs marked this pull request as draft May 22, 2024 13:45
These tiny envs are useful for development of tools.

Signed-off-by: Nir Soffer <nsoffer@redhat.com>
@nirs nirs marked this pull request as ready for review May 22, 2024 14:30
test/README.md Outdated Show resolved Hide resolved
nirs added 2 commits May 22, 2024 17:36
Document the environment name and ramen info.

Signed-off-by: Nir Soffer <nsoffer@redhat.com>
This can be used to do the right thing for ocp or k8s clusters in tests
or tools.

Signed-off-by: Nir Soffer <nsoffer@redhat.com>
@@ -481,6 +481,17 @@ $ drenv delete envs/example.yaml

### The environment file format

- `name`: environment name, used for logging

- `ramen`: ramen metadata
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ramen metadata looked like its a key to ramen but its not, may be add the text on line 485, just a nit.

Copy link
Member Author

@nirs nirs May 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just like - templates and profiles - see line 493 and 534.

Can you suggest clear way to make it more clear?

Maybe have no text will be more clear?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, probably having no text makes it more clear.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we need to switch to CRD format so we have a format way to describe eveything, and also be able to use kustomize with environment files?

@rakeshgm
Copy link
Member

my observations are just nits, but on the whole. this looks good to me.

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.

None yet

2 participants