Skip to content

feat: add Pulumi up action - #1991

Merged
helderco merged 3 commits into
dagger:mainfrom
rawkode:feat/pulumi
Apr 1, 2022
Merged

helderco merged 3 commits into
dagger:mainfrom
rawkode:feat/pulumi

Conversation

@rawkode

@rawkode rawkode commented Apr 1, 2022

Copy link
Copy Markdown
Contributor

No description provided.

@rawkode
rawkode requested review from helderco and shykes as code owners April 1, 2022 16:10
@rawkode rawkode mentioned this pull request Apr 1, 2022
5 tasks
Signed-off-by: David Flanagan <[email protected]>

@shykes shykes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good! I have a few questions (no changes required)

  • Have you thought about integration testing? We have testing infrastructure for other packages that require integrations with third-party services. But so far it's only been accessible to Dagger employees. This is a good opportunity to test how to expand that model, so that you can "plug" into universe's testing infra.

  • I'm not super familiar with Pulumi best practices, but I'm guessing some operators like to use the saas, while others like to store their state in eg. S3? If I wanted to do the latter, is that supported?

Thanks again for the contribution and for being patient with us as we figure out the model :)

@marcosnils

Copy link
Copy Markdown
Contributor
  • Have you thought about integration testing? We have testing infrastructure for other packages that require integrations with third-party services

Does this action requires integrations tests though? Shouldn't exporting the pulumi up plan and comparing that plan with the expected output should be enough? In this particular case I'm not actually sure if it adds value to make the integration test provisioning some sort of infra somewhere since as stated before, we can already validate "exactly" what pulumi's plan will be doing.

@rawkode

rawkode commented Apr 1, 2022

Copy link
Copy Markdown
Contributor Author
  • Have you thought about integration testing? We have testing infrastructure for other packages that require integrations with third-party services. But so far it's only been accessible to Dagger employees. This is a good opportunity to test how to expand that model, so that you can "plug" into universe's testing infra.

I have. I plan to include a simple Pulumi program that generates some random values and assert against their creation. We'll avoid speaking to any external providers.

  • I'm not super familiar with Pulumi best practices, but I'm guessing some operators like to use the saas, while others like to store their state in eg. S3? If I wanted to do the latter, is that supported?

Yeah, I do plan on adding a configuration option for state location when passphrase option is used; though I was kind of keen to go down the BuildKit as state storage route. Using S3 does require permissions for AWS/GCP/et al.

I guess we can expand support as new consumers begin to kick the tires?

@shykes

shykes commented Apr 1, 2022

Copy link
Copy Markdown
Contributor

Does this action requires integrations tests though? Shouldn't exporting the pulumi up plan and comparing that plan with the expected output should be enough? In this particular case I'm not actually sure if it adds value to make the integration test provisioning some sort of infra somewhere since as stated before, we can already validate "exactly" what pulumi's plan will be doing.

That's true. I was thinking of integration tests for the state storage backend (for Pulumi's state itself). This would be either S3 or Pulumi's SaaS (from my experience with the Terraform community, both are probably equally important). I'm sure there will be requests for other storage backends beyond S3, too.

@shykes

shykes commented Apr 1, 2022

Copy link
Copy Markdown
Contributor

Yeah, I do plan on adding a configuration option for state location when passphrase option is used; though I was kind of keen to go down the BuildKit as state storage route. Using S3 does require permissions for AWS/GCP/et al.

I guess we can expand support as new consumers begin to kick the tires?

Yes absolutely. That's the beauty of an experimental namespace :)

@helderco helderco left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good 🙂

@helderco

helderco commented Apr 1, 2022

Copy link
Copy Markdown
Contributor

Just missing a make lint.

Signed-off-by: David Flanagan <[email protected]>
@rawkode

rawkode commented Apr 1, 2022

Copy link
Copy Markdown
Contributor Author

@helderco Should be good now

Signed-off-by: David Flanagan <[email protected]>
@helderco
helderco merged commit fb3eafb into dagger:main Apr 1, 2022
@rawkode
rawkode deleted the feat/pulumi branch April 1, 2022 20:29
@gerhard gerhard mentioned this pull request Apr 4, 2022
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.

4 participants