Skip to content

call prestophook.sh from ring1 directly #10776

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 1 commit into from
Jun 21, 2022
Merged

call prestophook.sh from ring1 directly #10776

merged 1 commit into from
Jun 21, 2022

Conversation

sagor999
Copy link
Contributor

@sagor999 sagor999 commented Jun 20, 2022

Description

When adding support for prebuilds to work with PVC, noticed that pod's lifecycle hook does not execute for prebuilds, because when they are done, they transition into completed state.
So this PR changes how prestophook.sh is executed and allows prebuilds to execute it as well now.

Related Issue(s)

Related to #10689

How to test

  1. Open preview environment
  2. Open workspace. Edit file. Close workspace. Notice pending changes in workspace dashboard.
  3. Now enable persistent_volume_claim feature from admin dashboard for your user.
  4. Do step 2 again.

Release Notes

none

Documentation

Werft options:

  • /werft with-preview

@werft-gitpod-dev-com
Copy link

started the job as gitpod-build-pavel-10260-hook.1 because the annotations in the pull request description changed
(with .werft/ from main)

@sagor999 sagor999 marked this pull request as ready for review June 20, 2022 20:19
@sagor999 sagor999 requested a review from a team June 20, 2022 20:19
@sagor999 sagor999 marked this pull request as draft June 20, 2022 20:21
@sagor999 sagor999 marked this pull request as ready for review June 20, 2022 20:21
@github-actions github-actions bot added the team: workspace Issue belongs to the Workspace team label Jun 20, 2022
@utam0k
Copy link
Contributor

utam0k commented Jun 21, 2022

Now enable persistent_volume_claim feature from admin dashboard for your user.

I didn't have a admin permission 😭

@roboquat roboquat merged commit 26c17da into main Jun 21, 2022
@roboquat roboquat deleted the pavel/10260-hook branch June 21, 2022 07:06
@roboquat roboquat added deployed: workspace Workspace team change is running in production deployed Change is completely running in production labels Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: workspace Workspace team change is running in production deployed Change is completely running in production release-note-none size/S team: workspace Issue belongs to the Workspace team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants