From dee06de26a30c91ddc9e49c55738ff8c49102ce5 Mon Sep 17 00:00:00 2001 From: Tim Bannister Date: Mon, 17 Jun 2019 06:06:08 +0100 Subject: [PATCH] Tidy garbage collection controller page (#14856) * Tidy code blocks * Reword for better readability --- .../workloads/controllers/garbage-collection.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/content/en/docs/concepts/workloads/controllers/garbage-collection.md b/content/en/docs/concepts/workloads/controllers/garbage-collection.md index ecd89ba87693b..5c23a9291036f 100644 --- a/content/en/docs/concepts/workloads/controllers/garbage-collection.md +++ b/content/en/docs/concepts/workloads/controllers/garbage-collection.md @@ -45,7 +45,7 @@ kubectl get pods --output=yaml The output shows that the Pod owner is a ReplicaSet named `my-repset`: -```shell +```yaml apiVersion: v1 kind: Pod metadata: @@ -61,7 +61,7 @@ metadata: ``` {{< note >}} -Cross-namespace owner references is disallowed by design. This means: +Cross-namespace owner references are disallowed by design. This means: 1) Namespace-scoped dependents can only specify owners in the same namespace, and owners that are cluster-scoped. 2) Cluster-scoped dependents can only specify cluster-scoped owners, but not @@ -124,8 +124,8 @@ Here's an example that deletes dependents in background: ```shell kubectl proxy --port=8080 curl -X DELETE localhost:8080/apis/apps/v1/namespaces/default/replicasets/my-repset \ --d '{"kind":"DeleteOptions","apiVersion":"v1","propagationPolicy":"Background"}' \ --H "Content-Type: application/json" + -d '{"kind":"DeleteOptions","apiVersion":"v1","propagationPolicy":"Background"}' \ + -H "Content-Type: application/json" ``` Here's an example that deletes dependents in foreground: @@ -133,8 +133,8 @@ Here's an example that deletes dependents in foreground: ```shell kubectl proxy --port=8080 curl -X DELETE localhost:8080/apis/apps/v1/namespaces/default/replicasets/my-repset \ --d '{"kind":"DeleteOptions","apiVersion":"v1","propagationPolicy":"Foreground"}' \ --H "Content-Type: application/json" + -d '{"kind":"DeleteOptions","apiVersion":"v1","propagationPolicy":"Foreground"}' \ + -H "Content-Type: application/json" ``` Here's an example that orphans dependents: @@ -142,8 +142,8 @@ Here's an example that orphans dependents: ```shell kubectl proxy --port=8080 curl -X DELETE localhost:8080/apis/apps/v1/namespaces/default/replicasets/my-repset \ --d '{"kind":"DeleteOptions","apiVersion":"v1","propagationPolicy":"Orphan"}' \ --H "Content-Type: application/json" + -d '{"kind":"DeleteOptions","apiVersion":"v1","propagationPolicy":"Orphan"}' \ + -H "Content-Type: application/json" ``` kubectl also supports cascading deletion.