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

Revert "Update k8s dependencies to v0.24.2" #11135

Merged
merged 5 commits into from
Jul 5, 2022
Merged

Conversation

jenting
Copy link
Contributor

@jenting jenting commented Jul 5, 2022

Description

Reverts #11003

Bumping the k8s dependencies to v0.24.2, when the installer installs gitpod, it failed at

error validating data: ValidationError(NetworkPolicy): unknown field "status" in io.k8s.api.networking.v1.NetworkPolicy

The root cause is that the NetworkPolicy status introduces from v1.24 (kubectl explain networkpolicy). However, our environment is still running v1.23.
Instead of asking the user manually remove the status field as we did before for StatefulSet status, it'd be good for the installer to auto remove the status field.

Release Notes

NONE

Werft options:

  • /werft with-preview

@jenting jenting marked this pull request as ready for review July 5, 2022 07:39
@jenting jenting requested review from a team July 5, 2022 07:39
@jenting jenting requested review from a team July 5, 2022 07:39
@jenting jenting requested a review from akosyakov as a code owner July 5, 2022 07:39
@jenting jenting requested a review from a team July 5, 2022 07:39
@github-actions github-actions bot added team: IDE team: devx team: delivery Issue belongs to the self-hosted team team: webapp Issue belongs to the WebApp team team: workspace Issue belongs to the Workspace team labels Jul 5, 2022
@github-actions github-actions bot added team: devx team: delivery Issue belongs to the self-hosted team team: webapp Issue belongs to the WebApp team team: workspace Issue belongs to the Workspace team labels Jul 5, 2022
Copy link
Member

@geropl geropl left a comment

Choose a reason for hiding this comment

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

👍

@werft-gitpod-dev-com
Copy link

started the job as gitpod-build-revert-11003-aledbf-k8.1 because the annotations in the pull request description changed
(with .werft/ from main)

Copy link
Contributor

@mads-hartmann mads-hartmann left a comment

Choose a reason for hiding this comment

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

/hold

We want to validate preview environments does indeed work with this revert 🧡

Copy link
Contributor

@iQQBot iQQBot left a comment

Choose a reason for hiding this comment

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

Why need revert whole PR? you can revert 1 commit

@jenting
Copy link
Contributor Author

jenting commented Jul 5, 2022

Why need revert whole PR? you can revert 1 commit

I tried to revert 1 commit, but it caused a lot of conflicts because the go.mod/go.sum changes in other commits.

@iQQBot
Copy link
Contributor

iQQBot commented Jul 5, 2022

We can choose to remove all status items at the end of the yaml generation

@jenting
Copy link
Contributor Author

jenting commented Jul 5, 2022

We can choose to remove all status items at the end of the yaml generation

Yes, we discussed in the incident channel, and we would like the installer to remove the status items rather than we ask the user to manually remove the status field.
After that, this approach applies to any environment 💪

@mads-hartmann
Copy link
Contributor

Preview environment works, removing the hold

@mads-hartmann
Copy link
Contributor

/unhold

@meysholdt meysholdt merged commit 8563711 into main Jul 5, 2022
@meysholdt meysholdt deleted the revert-11003-aledbf/k8 branch July 5, 2022 09:11
@roboquat roboquat added deployed: webapp Meta team change is running in production deployed: IDE IDE change is running in production deployed: workspace Workspace team change is running in production labels Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: IDE IDE change is running in production deployed: webapp Meta team change is running in production deployed: workspace Workspace team change is running in production release-note-none size/XXL team: delivery Issue belongs to the self-hosted team team: devx team: IDE team: webapp Issue belongs to the WebApp team team: workspace Issue belongs to the Workspace team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants