Skip to content

Commit aa2269a

Browse files
iQQBotSimon Emms
authored and
Simon Emms
committed
Fixes incorrect podSelectorLabels with workspace
1 parent 9cb3d3f commit aa2269a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

installer/pkg/components/workspace/networkpolicy.go

+6-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package workspace
66

77
import (
88
"fmt"
9+
910
"github.com/gitpod-io/gitpod/installer/pkg/common"
1011
agentsmith "github.com/gitpod-io/gitpod/installer/pkg/components/agent-smith"
1112
"github.com/gitpod-io/gitpod/installer/pkg/components/proxy"
@@ -19,8 +20,11 @@ import (
1920
func networkpolicy(ctx *common.RenderContext) ([]runtime.Object, error) {
2021
labels := common.DefaultLabels(Component)
2122

22-
podSelectorLabels := labels
23-
podSelectorLabels["gitpod.io/networkpolicy"] = "default"
23+
podSelectorLabels := map[string]string{
24+
"app": common.AppName,
25+
"component": Component,
26+
"gitpod.io/networkpolicy": "default",
27+
}
2428

2529
return []runtime.Object{&networkingv1.NetworkPolicy{
2630
TypeMeta: common.TypeMetaNetworkPolicy,

0 commit comments

Comments
 (0)