From 316bd058d0b25895207a3420766b28751d66f714 Mon Sep 17 00:00:00 2001 From: Chao Xu Date: Wed, 21 Oct 2015 15:45:52 -0700 Subject: [PATCH] fix htmlpreview links to point to subdictory --- docs/admin/node.md | 2 +- docs/man/man1/kubectl-patch.1 | 2 +- docs/man/man1/kubectl-replace.1 | 2 +- docs/user-guide/configuring-containers.md | 2 +- docs/user-guide/connecting-applications.md | 2 +- docs/user-guide/deploying-applications.md | 2 +- docs/user-guide/kubectl/kubectl_patch.md | 2 +- docs/user-guide/kubectl/kubectl_replace.md | 2 +- docs/user-guide/pods.md | 2 +- docs/user-guide/replication-controller.md | 2 +- docs/user-guide/services.md | 2 +- pkg/kubectl/cmd/patch.go | 2 +- pkg/kubectl/cmd/replace.go | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/admin/node.md b/docs/admin/node.md index 55df25bf28f..bf68a052ce6 100644 --- a/docs/admin/node.md +++ b/docs/admin/node.md @@ -257,7 +257,7 @@ on each kubelet where you want to reserve resources. Node is a top-level resource in the kubernetes REST API. More details about the API object can be found at: [Node API -object](https://htmlpreview.github.io/?https://github.com/kubernetes/kubernetes/HEAD/docs/api-reference/definitions.html#_v1_node). +object](https://htmlpreview.github.io/?https://github.com/kubernetes/kubernetes/HEAD/docs/api-reference/v1/definitions.html#_v1_node). diff --git a/docs/man/man1/kubectl-patch.1 b/docs/man/man1/kubectl-patch.1 index db3c8a520f7..d1c465336ac 100644 --- a/docs/man/man1/kubectl-patch.1 +++ b/docs/man/man1/kubectl-patch.1 @@ -20,7 +20,7 @@ JSON and YAML formats are accepted. .PP Please refer to the models in -\[la]https://htmlpreview.github.io/?https://github.com/kubernetes/kubernetes/HEAD/docs/api-reference/definitions.html\[ra] to find if a field is mutable. +\[la]https://htmlpreview.github.io/?https://github.com/kubernetes/kubernetes/HEAD/docs/api-reference/v1/definitions.html\[ra] to find if a field is mutable. .SH OPTIONS diff --git a/docs/man/man1/kubectl-replace.1 b/docs/man/man1/kubectl-replace.1 index 7ab5b244344..4da4d9f706c 100644 --- a/docs/man/man1/kubectl-replace.1 +++ b/docs/man/man1/kubectl-replace.1 @@ -22,7 +22,7 @@ $ kubectl get TYPE NAME \-o yaml .PP Please refer to the models in -\[la]https://htmlpreview.github.io/?https://github.com/kubernetes/kubernetes/HEAD/docs/api-reference/definitions.html\[ra] to find if a field is mutable. +\[la]https://htmlpreview.github.io/?https://github.com/kubernetes/kubernetes/HEAD/docs/api-reference/v1/definitions.html\[ra] to find if a field is mutable. .SH OPTIONS diff --git a/docs/user-guide/configuring-containers.md b/docs/user-guide/configuring-containers.md index 76bc72fd00f..b4cf3117667 100644 --- a/docs/user-guide/configuring-containers.md +++ b/docs/user-guide/configuring-containers.md @@ -109,7 +109,7 @@ pods/hello-world `kubectl create --validate` currently warns about problems it detects, but creates the resource anyway, unless a required field is absent or a field value is invalid. Unknown API fields are ignored, so be careful. This pod was created, but with no `command`, which is an optional field, since the image may specify an `Entrypoint`. View the [Pod API -object](https://htmlpreview.github.io/?https://github.com/kubernetes/kubernetes/HEAD/docs/api-reference/definitions.html#_v1_pod) +object](https://htmlpreview.github.io/?https://github.com/kubernetes/kubernetes/HEAD/docs/api-reference/v1/definitions.html#_v1_pod) to see the list of valid fields. ## Environment variables and variable expansion diff --git a/docs/user-guide/connecting-applications.md b/docs/user-guide/connecting-applications.md index 4739c32b37a..ad79fe4a8f0 100644 --- a/docs/user-guide/connecting-applications.md +++ b/docs/user-guide/connecting-applications.md @@ -128,7 +128,7 @@ spec: app: nginx ``` -This specification will create a Service which targets TCP port 80 on any Pod with the `app=nginx` label, and expose it on an abstracted Service port (`targetPort`: is the port the container accepts traffic on, `port`: is the abstracted Service port, which can be any port other pods use to access the Service). View [service API object](https://htmlpreview.github.io/?https://github.com/kubernetes/kubernetes/HEAD/docs/api-reference/definitions.html#_v1_service) to see the list of supported fields in service definition. +This specification will create a Service which targets TCP port 80 on any Pod with the `app=nginx` label, and expose it on an abstracted Service port (`targetPort`: is the port the container accepts traffic on, `port`: is the abstracted Service port, which can be any port other pods use to access the Service). View [service API object](https://htmlpreview.github.io/?https://github.com/kubernetes/kubernetes/HEAD/docs/api-reference/v1/definitions.html#_v1_service) to see the list of supported fields in service definition. Check your Service: ```console diff --git a/docs/user-guide/deploying-applications.md b/docs/user-guide/deploying-applications.md index 6d9af19284d..9ada4ad1906 100644 --- a/docs/user-guide/deploying-applications.md +++ b/docs/user-guide/deploying-applications.md @@ -76,7 +76,7 @@ spec: Some differences compared to specifying just a pod are that the `kind` is `ReplicationController`, the number of `replicas` desired is specified, and the pod specification is under the `template` field. The names of the pods don’t need to be specified explicitly because they are generated from the name of the replication controller. View the [replication controller API -object](https://htmlpreview.github.io/?https://github.com/kubernetes/kubernetes/HEAD/docs/api-reference/definitions.html#_v1_replicationcontroller) +object](https://htmlpreview.github.io/?https://github.com/kubernetes/kubernetes/HEAD/docs/api-reference/v1/definitions.html#_v1_replicationcontroller) to view the list of supported fields. This replication controller can be created using `create`, just as with pods: diff --git a/docs/user-guide/kubectl/kubectl_patch.md b/docs/user-guide/kubectl/kubectl_patch.md index 5eef32fbf79..5da9456f577 100644 --- a/docs/user-guide/kubectl/kubectl_patch.md +++ b/docs/user-guide/kubectl/kubectl_patch.md @@ -42,7 +42,7 @@ Update field(s) of a resource using strategic merge patch JSON and YAML formats are accepted. -Please refer to the models in https://htmlpreview.github.io/?https://github.com/kubernetes/kubernetes/HEAD/docs/api-reference/definitions.html to find if a field is mutable. +Please refer to the models in https://htmlpreview.github.io/?https://github.com/kubernetes/kubernetes/HEAD/docs/api-reference/v1/definitions.html to find if a field is mutable. ``` kubectl patch (-f FILENAME | TYPE NAME) -p PATCH diff --git a/docs/user-guide/kubectl/kubectl_replace.md b/docs/user-guide/kubectl/kubectl_replace.md index 2836c6e16e7..1229967eaee 100644 --- a/docs/user-guide/kubectl/kubectl_replace.md +++ b/docs/user-guide/kubectl/kubectl_replace.md @@ -44,7 +44,7 @@ JSON and YAML formats are accepted. If replacing an existing resource, the complete resource spec must be provided. This can be obtained by $ kubectl get TYPE NAME -o yaml -Please refer to the models in https://htmlpreview.github.io/?https://github.com/kubernetes/kubernetes/HEAD/docs/api-reference/definitions.html to find if a field is mutable. +Please refer to the models in https://htmlpreview.github.io/?https://github.com/kubernetes/kubernetes/HEAD/docs/api-reference/v1/definitions.html to find if a field is mutable. ``` kubectl replace -f FILENAME diff --git a/docs/user-guide/pods.md b/docs/user-guide/pods.md index e1d7092353e..55a793b2e5a 100644 --- a/docs/user-guide/pods.md +++ b/docs/user-guide/pods.md @@ -164,7 +164,7 @@ spec.containers[0].securityContext.privileged: forbidden '<*>(0xc20b222db0)true' Pod is a top-level resource in the kubernetes REST API. More details about the API object can be found at: [Pod API -object](https://htmlpreview.github.io/?https://github.com/kubernetes/kubernetes/HEAD/docs/api-reference/definitions.html#_v1_pod). +object](https://htmlpreview.github.io/?https://github.com/kubernetes/kubernetes/HEAD/docs/api-reference/v1/definitions.html#_v1_pod). diff --git a/docs/user-guide/replication-controller.md b/docs/user-guide/replication-controller.md index af59f052a98..3365d41a791 100644 --- a/docs/user-guide/replication-controller.md +++ b/docs/user-guide/replication-controller.md @@ -124,7 +124,7 @@ For instance, a service might target all pods with `tier in (frontend), environm Replication controller is a top-level resource in the kubernetes REST API. More details about the API object can be found at: [ReplicationController API -object](https://htmlpreview.github.io/?https://github.com/kubernetes/kubernetes/HEAD/docs/api-reference/definitions.html#_v1_replicationcontroller). +object](https://htmlpreview.github.io/?https://github.com/kubernetes/kubernetes/HEAD/docs/api-reference/v1/definitions.html#_v1_replicationcontroller). diff --git a/docs/user-guide/services.md b/docs/user-guide/services.md index 7014294ab0d..1c77a8a2d69 100644 --- a/docs/user-guide/services.md +++ b/docs/user-guide/services.md @@ -587,7 +587,7 @@ of which `Pods` they are actually accessing. Service is a top-level resource in the kubernetes REST API. More details about the API object can be found at: [Service API -object](https://htmlpreview.github.io/?https://github.com/kubernetes/kubernetes/HEAD/docs/api-reference/definitions.html#_v1_service). +object](https://htmlpreview.github.io/?https://github.com/kubernetes/kubernetes/HEAD/docs/api-reference/v1/definitions.html#_v1_service). diff --git a/pkg/kubectl/cmd/patch.go b/pkg/kubectl/cmd/patch.go index 13bfc8fbef9..42cc34e606f 100644 --- a/pkg/kubectl/cmd/patch.go +++ b/pkg/kubectl/cmd/patch.go @@ -40,7 +40,7 @@ const ( JSON and YAML formats are accepted. -Please refer to the models in https://htmlpreview.github.io/?https://github.com/kubernetes/kubernetes/HEAD/docs/api-reference/definitions.html to find if a field is mutable.` +Please refer to the models in https://htmlpreview.github.io/?https://github.com/kubernetes/kubernetes/HEAD/docs/api-reference/v1/definitions.html to find if a field is mutable.` patch_example = ` # Partially update a node using strategic merge patch kubectl patch node k8s-node-1 -p '{"spec":{"unschedulable":true}}' diff --git a/pkg/kubectl/cmd/replace.go b/pkg/kubectl/cmd/replace.go index 6bdf4f39935..a188e956d05 100644 --- a/pkg/kubectl/cmd/replace.go +++ b/pkg/kubectl/cmd/replace.go @@ -44,7 +44,7 @@ JSON and YAML formats are accepted. If replacing an existing resource, the complete resource spec must be provided. This can be obtained by $ kubectl get TYPE NAME -o yaml -Please refer to the models in https://htmlpreview.github.io/?https://github.com/kubernetes/kubernetes/HEAD/docs/api-reference/definitions.html to find if a field is mutable.` +Please refer to the models in https://htmlpreview.github.io/?https://github.com/kubernetes/kubernetes/HEAD/docs/api-reference/v1/definitions.html to find if a field is mutable.` replace_example = `# Replace a pod using the data in pod.json. $ kubectl replace -f ./pod.json