-
Notifications
You must be signed in to change notification settings - Fork 7
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
Adding revision to Environment resource #289
Conversation
@@ -14,14 +14,26 @@ import ( | |||
"github.com/stretchr/testify/assert" | |||
) | |||
|
|||
type getEnvironmentFunc func(ctx context.Context, orgName string, envName string, decrypt bool) (yaml []byte, etag string, err error) | |||
type getEnvironmentFunc func(ctx context.Context, orgName string, envName string, version string, decrypt bool) (yaml []byte, etag string, revision int, err error) |
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.
What is the version
here?
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.
This function has to match the signature of GetEnvironment method inside ESC client. I bumped the version and signature of the method changed, so had to change to match as well.
Other than that, version allows to pass in either tag or revision that you want to get of this environment.
@@ -70,9 +74,11 @@ export class Environment extends pulumi.CustomResource { | |||
resourceInputs["name"] = args ? args.name : undefined; | |||
resourceInputs["organization"] = args ? args.organization : undefined; | |||
resourceInputs["yaml"] = args ? args.yaml : undefined; | |||
resourceInputs["revision"] = undefined /*out*/; |
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.
This is odd... why is it in the inputs section?
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 think this is fine, I'm just not used to seeing outputs only.
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'm guessing because it's an output only property?
Summary
Testing