mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-27 10:45:08 -06:00
230fae190d
Previously the code content was only kept in master and was Subsequently referenced by the versioned doc contents. This causes A few problems.. so we will version it along with the doc content. To get this to work we make a handful of changes: * Move the docs up into just opa/docs/content/*, we’re going to remove The difference between local/dev and production builds soon. * Move the “code” directory into the content dir, it is content tied To the markdown files already there. * Change the Hugo config to ignore the code directories * Change the “code” shortcode to load the versioned code snippet * Change load-docs to copy the code directory in addition to the other markdown content. Signed-off-by: Patrick East <east.patrick@gmail.com>
33 lines
684 B
YAML
33 lines
684 B
YAML
apiVersion: extensions/v1beta1
|
|
kind: Deployment
|
|
metadata:
|
|
name: opa
|
|
labels:
|
|
app: opa
|
|
spec:
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: opa
|
|
name: opa
|
|
spec:
|
|
containers:
|
|
- name: opa
|
|
image: openpolicyagent/opa:0.10.5
|
|
ports:
|
|
- name: http
|
|
containerPort: 8181
|
|
args:
|
|
- "run"
|
|
- "--ignore=.*" # exclude hidden dirs created by Kubernetes
|
|
- "--server"
|
|
- "/policies"
|
|
volumeMounts:
|
|
- readOnly: true
|
|
mountPath: /policies
|
|
name: example-policy
|
|
volumes:
|
|
- name: example-policy
|
|
configMap:
|
|
name: example-policy |