Skip to content

Commit

Permalink
Fix networkpolicies (#307)
Browse files Browse the repository at this point in the history
Fix networkpolicies

Signed-off-by: ArthurSens <arthursens2005@gmail.com>

Signed-off-by: ArthurSens <arthursens2005@gmail.com>
  • Loading branch information
ArthurSens authored Sep 8, 2022
1 parent 6288428 commit 6fb43f5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion installer/pkg/components/gitpod/messagebus.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func messagebusObjects() common.RenderFunc {
{
NamespaceSelector: &metav1.LabelSelector{
MatchLabels: map[string]string{
"namespace": Namespace,
"kubernetes.io/metadata.name": Namespace,
},
},
PodSelector: &metav1.LabelSelector{
Expand Down
2 changes: 1 addition & 1 deletion installer/pkg/components/gitpod/networkpolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func networkPolicy(target string) common.RenderFunc {
{
NamespaceSelector: &metav1.LabelSelector{
MatchLabels: map[string]string{
"namespace": Namespace,
"kubernetes.io/metadata.name": Namespace,
},
},
PodSelector: &metav1.LabelSelector{
Expand Down
2 changes: 1 addition & 1 deletion installer/pkg/components/gitpod/proxycaddy.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func proxyCaddyObjects() common.RenderFunc {
{
NamespaceSelector: &metav1.LabelSelector{
MatchLabels: map[string]string{
"namespace": Namespace,
"kubernetes.io/metadata.name": Namespace,
},
},
PodSelector: &metav1.LabelSelector{
Expand Down
2 changes: 1 addition & 1 deletion installer/pkg/components/gitpod/workspaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func workspaceObjects() common.RenderFunc {
{
NamespaceSelector: &metav1.LabelSelector{
MatchLabels: map[string]string{
"namespace": Namespace,
"kubernetes.io/metadata.name": Namespace,
},
},
PodSelector: &metav1.LabelSelector{
Expand Down

0 comments on commit 6fb43f5

Please sign in to comment.