Skip to content

Commit 166b080

Browse files
ports configuration added (#297)
* ports configuration added * make only the external ports to be configurable * Added gRPC support and additionalPorts * bumped the chart version
1 parent 4fd1a05 commit 166b080

File tree

4 files changed

+25
-3
lines changed

4 files changed

+25
-3
lines changed

charts/pdp/Chart.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
apiVersion: v2
22
name: pdp
3-
description: An official Helm chart for Permit.io PDP (Policy Decision Point) with OpenShift support
4-
version: 0.0.5
3+
description: An official Helm chart for Permit.io PDP (Policy Decision Point) with OpenShift support and configurable ports
4+
version: 0.0.6
55
keywords:
66
- policy
77
- authorization
88
- security
99
- permit
1010
- openshift
11+
- grpc
1112
maintainers:
1213
- name: Permit.io
1314
url: https://permit.io

charts/pdp/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ spec:
4545
{{- end }}
4646
ports:
4747
- containerPort: {{ .Values.pdp.port }}
48+
{{- range .Values.pdp.additionalPorts }}
49+
- name: {{ .name }}
50+
containerPort: {{ .targetPort }}
51+
{{- end }}
4852
env:
4953
- name: PDP_API_KEY
5054
valueFrom:

charts/pdp/templates/service.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ spec:
1414
selector:
1515
{{- include "pdp.selectorLabels" . | nindent 4 }}
1616
ports:
17-
- protocol: TCP
17+
- name: http
18+
protocol: TCP
1819
port: {{ .Values.pdp.port }}
1920
targetPort: 7000
21+
{{- range .Values.pdp.additionalPorts }}
22+
- name: {{ .name }}
23+
port: {{ .port }}
24+
targetPort: {{ .targetPort }}
25+
protocol: TCP
26+
{{- end }}

charts/pdp/values.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ pdp:
66
[]
77
# - name: custom_env
88
# value: "custom_env"
9+
#
10+
# Example - enable Envoy gRPC ext_authz on port 9191 (requires PDP >= 0.9.10):
11+
# - name: PDP_OPA_PLUGINS
12+
# value: '{"permit_graph":{},"envoy_ext_authz_grpc":{"addr":":9191","path":"permit/root"}}'
913
ApiKey: "<your PDP API Key>"
1014

1115
# Use an existing secret for the API key instead of creating one
@@ -14,6 +18,12 @@ pdp:
1418
# name: "my-existing-secret"
1519
# key: "api-key"
1620
port: 7766
21+
# Example - expose Envoy gRPC ext_authz port (requires PDP_OPA_PLUGINS env var above):
22+
# additionalPorts:
23+
# - name: grpc
24+
# port: 9191
25+
# targetPort: 9191
26+
additionalPorts: []
1727
replicas: 1
1828
image:
1929
repository: permitio/pdp-v2

0 commit comments

Comments
 (0)