-
Notifications
You must be signed in to change notification settings - Fork 115
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 transforms to YAML support for Python SDK #500
Conversation
d73e209
to
fc9f820
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with nits
# Allow users to change API objects before any validation. | ||
if transformations is not None: | ||
for t in transformations: | ||
obj = t(obj) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reading this code now, I realize that we're running the transformations before we unpack the lists of resources, both here and in the nodejs SDK. I think we want to do the opposite? Perhaps not in this PR but in the future.
name="guestbook", | ||
file_id="https://raw.githubusercontent.com/pulumi/pulumi-kubernetes/master/tests/examples/yaml-guestbook/yaml" | ||
"/guestbook.yaml", | ||
transformations=[add_namespace], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we are not verifying that this namespace is actually added in the test harness? Can we do that?
937202f
to
e295ae8
Compare
Fixes #325