Skip to content

Commit

Permalink
Move network init into db not dops
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed Sep 28, 2023
1 parent c2dd6af commit 169320a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 30 deletions.
29 changes: 0 additions & 29 deletions backend/dops/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,35 +122,6 @@ parameters:
description: Base URL for MOTI Pay
required: true
objects:
- apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-from-openshift-ingress
labels:
template: openshift-test
spec:
podSelector: {}
ingress:
- from:
- namespaceSelector:
matchLabels:
network.openshift.io/policy-group: ingress
policyTypes:
- Ingress
- apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-same-namespace
labels:
template: quickstart-network-security-policy
spec:
podSelector: {}
ingress:
- from:
- podSelector: {}
policyTypes:
- Ingress

- apiVersion: v1
kind: ConfigMap
metadata:
Expand Down
29 changes: 28 additions & 1 deletion database/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,34 @@ parameters:
- name: DATABASE_HOST
description: Host url/service of database connection
required: true
objects:
objects: - apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-from-openshift-ingress
labels:
template: openshift-test
spec:
podSelector: {}
ingress:
- from:
- namespaceSelector:
matchLabels:
network.openshift.io/policy-group: ingress
policyTypes:
- Ingress
- apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-same-namespace
labels:
template: quickstart-network-security-policy
spec:
podSelector: {}
ingress:
- from:
- podSelector: {}
policyTypes:
- Ingress
- kind: PersistentVolumeClaim
apiVersion: v1
metadata:
Expand Down

0 comments on commit 169320a

Please sign in to comment.