From 4c9f6954698b6ade970335427db4034fc2e514b5 Mon Sep 17 00:00:00 2001 From: Steve Perry Date: Tue, 3 Oct 2017 15:23:54 -0700 Subject: [PATCH] Fix paths to yaml files. (#5745) --- .../set-up-placement-policies-federation.md | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/docs/tasks/federation/set-up-placement-policies-federation.md b/docs/tasks/federation/set-up-placement-policies-federation.md index a5dd281593..b61c3a77b8 100644 --- a/docs/tasks/federation/set-up-placement-policies-federation.md +++ b/docs/tasks/federation/set-up-placement-policies-federation.md @@ -31,8 +31,7 @@ received from the external policy engine. Shown below is an example ConfigMap for the Admission Controller: -{% include code.html language="yaml" file="scheduling-policy-admission.yaml" -ghlink="/docs/tutorials/federation/scheduling-policy-admission.yaml" %} +{% include code.html language="yaml" file="scheduling-policy-admission.yaml" ghlink="/docs/tasks/federation/scheduling-policy-admission.yaml" %} The ConfigMap contains three files: @@ -82,8 +81,7 @@ Create a Service in the host cluster to contact the external policy engine: Shown below is an example Service for OPA. -{% include code.html language="yaml" file="policy-engine-service.yaml" -ghlink="/docs/tutorials/federation/policy-engine-service.yaml" %} +{% include code.html language="yaml" file="policy-engine-service.yaml" ghlink="/docs/tasks/federation/policy-engine-service.yaml" %} Create a Deployment in the host cluster with the Federation control plane: @@ -91,8 +89,7 @@ Create a Deployment in the host cluster with the Federation control plane: Shown below is an example Deployment for OPA. -{% include code.html language="yaml" file="policy-engine-deployment.yaml" -ghlink="/docs/tutorials/federation/policy-engine-deployment.yaml" %} +{% include code.html language="yaml" file="policy-engine-deployment.yaml" ghlink="/docs/tasks/federation/policy-engine-deployment.yaml" %} ## Configuring placement policies via ConfigMaps @@ -105,8 +102,7 @@ Create the namespace if it does not already exist: Configure a sample policy to test the external policy engine: -{% include code.html language="yaml" file="policy.rego" -ghlink="/docs/tutorials/federation/policy.rego" %} +{% include code.html language="yaml" file="policy.rego" ghlink="/docs/tasks/federation/policy.rego" %} Shown below is the command to create the sample policy: @@ -129,8 +125,7 @@ Annotate one of the clusters to indicate that it is PCI certified. Deploy a Federated ReplicaSet to test the placement policy. -{% include code.html language="yaml" file="replicaset-example-policy.yaml" -ghlink="/docs/tutorials/federation/replicaset-example-policy.yaml" %} +{% include code.html language="yaml" file="replicaset-example-policy.yaml" ghlink="/docs/tasks/federation/replicaset-example-policy.yaml" %} Shown below is the command to deploy a ReplicaSet that *does* match the policy.