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

Pass job/instance/label value context to scripted checks #989

Open
peterschretlen opened this issue Nov 13, 2024 · 1 comment
Open

Pass job/instance/label value context to scripted checks #989

peterschretlen opened this issue Nov 13, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@peterschretlen
Copy link
Contributor

peterschretlen commented Nov 13, 2024

What would you like to be added:

(logging on behalf of a customer)

Some synthetic scripts can be repurposed to run in multiple environments, like testing environment or production.
The targets for these environments might be different URLs and have different credentials for login, but otherwise the scripts are identical.

The request is to be able to pass data like

  • jobname
  • instance
  • label values to the script as context.

This would allow the instance value to be used as the starting or base url for example. a label value like env=test or env=prod can be used to determine which set of credentials are used. The script would have some idea of the context that it's running in.

Why is this needed:

Right now the only option ( I can see ) is to pre-bundle the scripts with environment-specific values and/or make environment specific scripts.

@peterschretlen peterschretlen added the enhancement New feature or request label Nov 13, 2024
@peterschretlen
Copy link
Contributor Author

Alternative could be to allow setting key-value pairs and passing these as environment variables to scripts.

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

No branches or pull requests

1 participant