Skip to content

Commit f5a4c1a

Browse files
Fix broken Kubernetes API documentation links (#6527)
- Update gen-crd-api-reference-docs config to use current k8s API URL structure - Replace v1.18 API links with current kubernetes.io documentation URLs - Fix Pod v1 core reference link in deploying-from-private-registry.md - Fix Event v1 core reference link in troubleshooting/README.md
1 parent 3561f72 commit f5a4c1a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/versioned/eventing/troubleshooting/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ kubectl apply --filename example.yaml
3737
## Triggering Events
3838

3939
Knative events will occur whenever a Kubernetes
40-
[`Event`](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#event-v1-core)
40+
[`Event`](https://kubernetes.io/docs/reference/kubernetes-api/cluster-resources/event-v1/)
4141
occurs in the `knative-debug` namespace. We can cause this to occur with the
4242
following commands:
4343

docs/versioned/serving/deploying-from-private-registry.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function: how-to
77

88
# Deploying images from a private container registry
99

10-
You can configure your Knative cluster to deploy images from a private registry across multiple Services and Revisions. To do this, you must create a list of Kubernetes secrets ([`imagePullSecrets`](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#pod-v1-core)) by using your registry credentials. You must then add those secrets to the default [service account](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/) for all Services, or the Revision template for a single Service.
10+
You can configure your Knative cluster to deploy images from a private registry across multiple Services and Revisions. To do this, you must create a list of Kubernetes secrets ([`imagePullSecrets`](https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/)) by using your registry credentials. You must then add those secrets to the default [service account](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/) for all Services, or the Revision template for a single Service.
1111

1212
## Prerequisites
1313

hack/reference-docs-gen-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
{
1515
"typeMatchPrefix": "^k8s\\.io/(api|apimachinery/pkg/apis)/",
16-
"docsURLTemplate": "https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#{{lower .TypeIdentifier}}-{{arrIndex .PackageSegments -1}}-{{arrIndex .PackageSegments -2}}"
16+
"docsURLTemplate": "https://kubernetes.io/docs/reference/kubernetes-api/{{arrIndex .PackageSegments -2}}/{{lower .TypeIdentifier}}/"
1717
},
1818
{
1919
"typeMatchPrefix": "^knative\\.dev/pkg/apis/duck",

0 commit comments

Comments
 (0)