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

Use new API for deployments #15684

Merged
merged 13 commits into from
Apr 17, 2024
Merged

Use new API for deployments #15684

merged 13 commits into from
Apr 17, 2024

Conversation

komalali
Copy link
Member

@komalali komalali commented Mar 14, 2024

Description

Updates Remote Automation API to use the new stable URLs for the Deployments API. Adds support for inheritSettings to allow inheriting deployment settings pre-existing on the stack.

I've tested this manually by editing the automation-api-examples for remote deployments, but not sure of a great way to add automated tests since automation api doesn't yet have support for setting deployment settings.

EDIT: I considered just setting up a static stack for this but abandoned it because of concerns around parallel runs. We can add automated tests for this once we support creating deployment settings with automation api (coming soon).

Fixes #12739
Fixes #15518

Checklist

  • I have run make tidy to update any new dependencies
  • I have run make lint to verify my code passes the lint check
    • I have formatted my code using gofumpt
  • I have added tests that prove my fix is effective or that my feature works
  • I have run make changelog and committed the changelog/pending/<file> documenting my change
  • Yes, there are changes in this PR that warrants bumping the Pulumi Cloud API version

@pulumi-bot
Copy link
Contributor

pulumi-bot commented Mar 14, 2024

Changelog

[uncommitted] (2024-04-16)

Features

  • [auto/{go,nodejs,python}] Add support for inheritSettings to go, nodejs and python automation API.
    #15684

@komalali komalali force-pushed the komal/update-deployments branch 3 times, most recently from afe2445 to 7a0ddb6 Compare April 12, 2024 15:11
@komalali komalali requested a review from justinvp April 12, 2024 18:35
@komalali komalali marked this pull request as ready for review April 15, 2024 17:10
@komalali komalali requested a review from a team as a code owner April 15, 2024 17:10
Copy link
Member

@justinvp justinvp left a comment

Choose a reason for hiding this comment

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

LGTM

pkg/cmd/pulumi/destroy.go Outdated Show resolved Hide resolved
pkg/cmd/pulumi/util_remote.go Outdated Show resolved Hide resolved
sdk/python/lib/pulumi/automation/_local_workspace.py Outdated Show resolved Hide resolved
@komalali komalali added this pull request to the merge queue Apr 16, 2024
Merged via the queue into master with commit 9a370c7 Apr 17, 2024
49 checks passed
@komalali komalali deleted the komal/update-deployments branch April 17, 2024 00:30
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.

Update remote automation api to use stable deployment APIs Support inheritSettings in remote automation API
3 participants