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

Support specifying python version for policy packs. #351

Open
MitchellGerdisch opened this issue May 22, 2024 · 1 comment
Open

Support specifying python version for policy packs. #351

MitchellGerdisch opened this issue May 22, 2024 · 1 comment
Labels
feature/pac Impacts the Policy as Code offering kind/enhancement Improvements or new features language/python

Comments

@MitchellGerdisch
Copy link

Hello!

  • Vote on this issue by adding a 👍 reaction
  • If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details

Currently, the policy engine uses the default python version set on the machine where it is running, or one can set PULUMI_PYTHON_CMD to point at the python command to use.
It would be useful to be able to specify the python version to use as part of the policy pack configuration - say in the PulumiPolicy.yaml file.

Affected area/feature

Python policies

@MitchellGerdisch MitchellGerdisch added kind/enhancement Improvements or new features needs-triage Needs attention from the triage team labels May 22, 2024
@justinvp justinvp removed the needs-triage Needs attention from the triage team label May 24, 2024
@justinvp
Copy link
Member

How exactly do we envision this working? We have a way of specifying the version (or min version) of Python to use and if the version of Python we're going to use doesn't match, we error?

@mikhailshilkov mikhailshilkov added feature/pac Impacts the Policy as Code offering language/python labels May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/pac Impacts the Policy as Code offering kind/enhancement Improvements or new features language/python
Projects
None yet
Development

No branches or pull requests

3 participants