Skip to content

Commit 28ddf7f

Browse files
authored
Merge pull request #113 from bcgov/ops/patronibump
Minor Helm Chart Maintenance and Patroni Bump
2 parents 6edf9cd + af99137 commit 28ddf7f

File tree

3 files changed

+26
-4
lines changed

3 files changed

+26
-4
lines changed

.github/environments/values.pr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ patroni:
1111
cpu: 250m
1212
memory: 384Mi
1313
requests:
14-
cpu: 50m
14+
cpu: 20m
1515
memory: 192Mi
1616
persistentVolume:
1717
enabled: false

charts/coms/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: common-object-management-service
33
# This is the chart version. This version number should be incremented each time you make changes
44
# to the chart and its templates, including the app version.
55
# Versions are expected to follow Semantic Versioning (https://semver.org/)
6-
version: 0.0.7
6+
version: 0.0.8
77
kubeVersion: ">= 1.13.0"
88
description: A microservice for managing access control to S3 Objects
99
# A chart can be either an 'application' or a 'library' chart.
@@ -28,7 +28,7 @@ sources:
2828
- https://github.com/bcgov/common-object-management-service
2929
dependencies:
3030
- name: patroni
31-
version: ~0.0.3
31+
version: ~0.0.4
3232
repository: https://bcgov.github.io/nr-patroni-chart
3333
condition: patroni.enabled
3434
tags:

charts/coms/templates/networkpolicy.yaml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,25 @@
1-
{{- if and .Values.networkPolicy.enabled .Values.patroni.enabled }}
1+
{{- if .Values.networkPolicy.enabled }}
2+
---
3+
apiVersion: networking.k8s.io/v1
4+
kind: NetworkPolicy
5+
metadata:
6+
name: allow-openshift-ingress-to-{{ include "coms.fullname" . }}-app
7+
labels:
8+
{{- include "coms.labels" . | nindent 4 }}
9+
spec:
10+
ingress:
11+
- from:
12+
- namespaceSelector:
13+
matchLabels:
14+
network.openshift.io/policy-group: ingress
15+
- podSelector:
16+
matchLabels: {{ include "coms.selectorLabels" . | nindent 14 }}
17+
ports:
18+
- port: {{ default "8080" .Values.config.configMap.SERVER_PORT | atoi }}
19+
protocol: TCP
20+
podSelector:
21+
matchLabels: {{- include "coms.selectorLabels" . | nindent 6 }}
22+
{{- if .Values.patroni.enabled }}
223
---
324
apiVersion: networking.k8s.io/v1
425
kind: NetworkPolicy
@@ -33,3 +54,4 @@ spec:
3354
podSelector:
3455
matchLabels: {{ include "patroni.selectorLabels" .Subcharts.patroni | nindent 6 }}
3556
{{- end }}
57+
{{- end }}

0 commit comments

Comments
 (0)