Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions charts/pdp/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
apiVersion: v2
name: pdp
description: An official Helm chart for Permit.io PDP (Policy Decision Point) with OpenShift support
version: 0.0.5
description: An official Helm chart for Permit.io PDP (Policy Decision Point) with OpenShift support and configurable ports
version: 0.0.6
keywords:
- policy
- authorization
- security
- permit
- openshift
- grpc
maintainers:
- name: Permit.io
url: https://permit.io
4 changes: 4 additions & 0 deletions charts/pdp/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ spec:
{{- end }}
ports:
- containerPort: {{ .Values.pdp.port }}
{{- range .Values.pdp.additionalPorts }}
- name: {{ .name }}
containerPort: {{ .targetPort }}
{{- end }}
env:
- name: PDP_API_KEY
valueFrom:
Expand Down
9 changes: 8 additions & 1 deletion charts/pdp/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ spec:
selector:
{{- include "pdp.selectorLabels" . | nindent 4 }}
ports:
- protocol: TCP
- name: http
protocol: TCP
port: {{ .Values.pdp.port }}
targetPort: 7000
{{- range .Values.pdp.additionalPorts }}
- name: {{ .name }}
port: {{ .port }}
targetPort: {{ .targetPort }}
protocol: TCP
{{- end }}
10 changes: 10 additions & 0 deletions charts/pdp/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ pdp:
[]
# - name: custom_env
# value: "custom_env"
#
# Example - enable Envoy gRPC ext_authz on port 9191 (requires PDP >= 0.9.10):
# - name: PDP_OPA_PLUGINS
# value: '{"permit_graph":{},"envoy_ext_authz_grpc":{"addr":":9191","path":"permit/root"}}'
ApiKey: "<your PDP API Key>"

# Use an existing secret for the API key instead of creating one
Expand All @@ -14,6 +18,12 @@ pdp:
# name: "my-existing-secret"
# key: "api-key"
port: 7766
# Example - expose Envoy gRPC ext_authz port (requires PDP_OPA_PLUGINS env var above):
# additionalPorts:
# - name: grpc
# port: 9191
# targetPort: 9191
additionalPorts: []
replicas: 1
image:
repository: permitio/pdp-v2
Expand Down
Loading