-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Fixes incorrect podSelectorLabels with workspace #8334
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
Conversation
@@ -19,8 +20,11 @@ import ( | |||
func networkpolicy(ctx *common.RenderContext) ([]runtime.Object, error) { | |||
labels := common.DefaultLabels(Component) | |||
|
|||
podSelectorLabels := labels | |||
podSelectorLabels["gitpod.io/networkpolicy"] = "default" | |||
podSelectorLabels := map[string]string{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Separate setting to avoid future failures caused by adding other values to DefaultLabels
Codecov Report
@@ Coverage Diff @@
## main #8334 +/- ##
==========================================
- Coverage 33.00% 7.60% -25.41%
==========================================
Files 33 31 -2
Lines 4735 2171 -2564
==========================================
- Hits 1563 165 -1398
+ Misses 3054 2003 -1051
+ Partials 118 3 -115
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
Works well, thank you @iQQBot ! gitpod /workspace/gitpod (pd/fix-network-policy) $ kubectl describe pod ws-3c81f5ae-bacb-4622-a890-da712c4d8313
Name: ws-3c81f5ae-bacb-4622-a890-da712c4d8313
Namespace: staging-pd-fix-network-policy
Priority: 0
Node: a-node
Start Time: Sun, 20 Feb 2022 14:51:01 +0000
Labels: app=gitpod
component=workspace
gitpod.io/networkpolicy=default
gpwsman=true
headless=false
metaID=gitpodio-templatepythonf-sl7n6agbfjl
owner=47d8709c-9e0b-4a87-9c17-2d6b4a6af52a
workspaceID=3c81f5ae-bacb-4622-a890-da712c4d8313
workspaceType=regular |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Fixes incorrect podSelectorLabels with workspace
Related Issue(s)
Fixes #
How to test
Release Notes
Documentation