Skip to content

Commit

Permalink
feat: correcting namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
pbastia authored and matthieu-foucault committed Jan 5, 2021
1 parent 5e9dfa1 commit 1ad5243
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ spec:
- name: GGIRCS_PORT
value: "5432"
- name: GGIRCS_HOST
value: cas-ggircs-patroni
value: "{{ .Values.ggircs.service }}.{{ .Values.ggircs.namespace }}"
name: {{ template "cas-ciip-portal.fullname" . }}-swrs-import
image: {{ .Values.image.psql.repository }}:{{ .Values.image.psql.tag }}
resources:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{{- if .Values.networkSecurityPolicies.enable }}
kind: NetworkSecurityPolicy
apiVersion: security.devops.gov.bc.ca/v1alpha1
metadata:
name: {{ .Release.Name }}-ciip-to-ggircs
labels:
{{ include "cas-ciip-portal.labels" . | nindent 4 }}
spec:
description: allow ciip and ggircs apps to talk
source:
- - $namespace={{ .Release.Namespace }}
- release={{ .Release.Name }}
destination:
- - $namespace={{ .Values.ggircs.namespace }}
- service={{ .Values.ggircs.service }}
{{- end }}
4 changes: 4 additions & 0 deletions helm/cas-ciip-portal/values-09269b-dev.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@

ggircs:
namespace: 9212c9-dev

replicas: 2
route:
host: ciip-dev.apps.silver.devops.gov.bc.ca
Expand Down
5 changes: 5 additions & 0 deletions helm/cas-ciip-portal/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ resources:
networkSecurityPolicies:
enable: true

# Will tell which target to use when building the NSP for communication with the GGIRCS app
ggircs:
namespace: ~
service: cas-ggircs-patroni

route:
# route.host defines the host name for the route template,
# and the HOST env variable for the app deployment
Expand Down

0 comments on commit 1ad5243

Please sign in to comment.