Skip to content
Open
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
2 changes: 1 addition & 1 deletion charts/pdp/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: pdp
description: An official Helm chart for Permit.io PDP (Policy Decision Point) with OpenShift support and configurable ports
version: 0.0.6
version: 0.0.7
keywords:
- policy
- authorization
Expand Down
2 changes: 2 additions & 0 deletions charts/pdp/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,13 @@ spec:
containerPort: {{ .targetPort }}
{{- end }}
env:
{{- if not .Values.pdp.userProvidedSecret }}
- name: PDP_API_KEY
valueFrom:
secretKeyRef:
name: {{ include "pdp.secretName" . }}
key: {{ include "pdp.secretKey" . }}
{{- end }}
{{- if .Values.pdp.pdpEnvs }}
{{- range .Values.pdp.pdpEnvs }}
- name: {{ .name }}
Expand Down
2 changes: 1 addition & 1 deletion charts/pdp/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if not .Values.pdp.existingApiKeySecret }}
{{- if and (not .Values.pdp.existingApiKeySecret) (not .Values.pdp.userProvidedSecret) }}
apiVersion: v1
kind: Secret
metadata:
Expand Down
4 changes: 4 additions & 0 deletions charts/pdp/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ pdp:
# existingApiKeySecret:
# name: "my-existing-secret"
# key: "api-key"

# Set to true to skip creating and mounting an API key secret.
# Use this when PDP_API_KEY is injected through pdpEnvs or another external mechanism.
userProvidedSecret: false
port: 7766
# Example - expose Envoy gRPC ext_authz port (requires PDP_OPA_PLUGINS env var above):
# additionalPorts:
Expand Down