Skip to content

Add some basic stack events #235

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

Merged
merged 2 commits into from
Nov 4, 2021
Merged

Add some basic stack events #235

merged 2 commits into from
Nov 4, 2021

Conversation

viveklak
Copy link
Contributor

@viveklak viveklak commented Nov 4, 2021

Proposed changes

This change adds support for some basic event publishing. With this change, you can do the following:

$ kubectl describe stacks

...
Events:
  Type     Reason                      Age   From              Message
  ----     ------                      ----  ----              -------
  Warning  StackInitializationFailure  1s    stack-controller  Failed to initialize stack: failed to create and/or select stack: s3backend.s3-op-project: failed to create stack: exit status 255
code: 255
stdout:
stderr: error: could not create stack: An IO error occurred while writing the new snapshot file: blob (key ".pulumi/stacks/s3backend.s3-op-project.json") (code=Unknown): InvalidBucketName: The specified bucket is not valid.
  status code: 400, request id: 9ZT47FVPDT2FR95Y, host id

This should significantly improve the experience of debugging issues with failing stacks.

Related issues (optional)

Fixes #73

@viveklak viveklak changed the title Vl/events Add some basic stack events Nov 4, 2021
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.

Add support for publishing Stack status updates to the event system
2 participants