From e2fb1ce5ced318a7edcb9a2ef678684a8815cb45 Mon Sep 17 00:00:00 2001
From: Sheogorath <sheogorath@shivering-isles.com>
Date: Mon, 6 Nov 2023 12:33:04 +0100
Subject: [PATCH] feat(shared): Fix broken policy definiton

---
 shared/networkpolicies/allow-to-database.yaml | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/shared/networkpolicies/allow-to-database.yaml b/shared/networkpolicies/allow-to-database.yaml
index d4123fa58..b472c8ed1 100644
--- a/shared/networkpolicies/allow-to-database.yaml
+++ b/shared/networkpolicies/allow-to-database.yaml
@@ -3,8 +3,6 @@ kind: NetworkPolicy
 metadata:
   name: allow-to-database
 spec:
-  policyTypes:
-  - egress
   egress:
   - to:
       - ipBlock:
@@ -13,9 +11,11 @@ spec:
       - protocol: TCP
         port: 9000
   - to:
-      podSelector:
-        matchLabels:
-          application: spilo
+      - podSelector:
+          matchLabels:
+            application: spilo
   podSelector:
     matchLabels:
       application: spilo
+  policyTypes:
+  - Egress
\ No newline at end of file
-- 
GitLab