Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1780327

Summary: most of links from API explorer are broken
Product: OpenShift Container Platform Reporter: jooho lee <jlee>
Component: kube-apiserverAssignee: Lukasz Szaszkiewicz <lszaszki>
Status: CLOSED NOTABUG QA Contact: Xingxing Xia <xxia>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.2.zCC: aos-bugs, jokerman, mfojtik, pdhamdhe, yanpzhan
Target Milestone: ---   
Target Release: 4.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1795704 (view as bug list) Environment:
Last Closed: 2020-01-30 07:41:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1795704    

Description jooho lee 2019-12-05 17:16:54 UTC
Description of problem:
API explorer page has a bunch of wrong links 

(Example)
https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status

==> result in 404 pages.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.Go webconsole console
2.Click explorer
3.Click any of objects


Actual results:
Links are broken.

Expected results:
Links show a right page.

Additional info:

Comment 1 Samuel Padgett 2019-12-05 19:08:30 UTC
This isn't specific to console and happens with `oc explain` as well. The links in the API doc itself are broken. Looks like the pages moved in the community repo.

Comment 2 Lukasz Szaszkiewicz 2020-01-08 09:47:59 UTC
The link to the api-conventions doc is part of the API types definition, for example, https://github.com/openshift/origin/blob/release-4.2/vendor/k8s.io/kubernetes/staging/src/k8s.io/api/core/v1/types.go#L3179
 
To fix the link we would have to identify every occurrence of it in all types and regenerate the swagger spec.
Additionally, we would have check if the other links are not outdated too.

This seems to be only broken in 4.2 (4.3 and 4.4 look good).

Comment 3 Samuel Padgett 2020-01-09 21:19:00 UTC
*** Bug 1789267 has been marked as a duplicate of this bug. ***

Comment 4 Lukasz Szaszkiewicz 2020-01-28 16:47:37 UTC
@Xingxing please close it as this bug only affects 4.2.