-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
📖 use generated RuntimeSDK schema YAML #6838
📖 use generated RuntimeSDK schema YAML #6838
Conversation
1fd46d0
to
8f8a851
Compare
8f8a851
to
f3b018b
Compare
@@ -67,7 +67,7 @@ message: "error message if status == Failure" | |||
retryAfterSeconds: 10 | |||
``` | |||
|
|||
For additional details, refer to the [Draft OpenAPI spec](https://editor.swagger.io/?url=https://raw.githubusercontent.com/kubernetes-sigs/cluster-api/main/docs/proposals/images/runtime-hooks/runtime-hooks-openapi.yaml). | |||
For additional details, you can see the full schema in <button onclick="openSwaggerUI()">Swagger UI</button>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay so it looks like this works :).
The issue I'm solving here is that we need the URL of the runtime-sdk-openapi.yaml
of the current book.
The button just calculates that URL and opens the Swagger UI with it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Demo can be seen under:
- https://deploy-preview-6838--kubernetes-sigs-cluster-api.netlify.app/tasks/experimental-features/runtime-sdk/implement-lifecycle-hooks.html
- Click on one of the "Swagger UI" buttons
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very fancy 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You know the feeling when you're kind of proud of a very bad hack you made work? 😂
f3b018b
to
69326aa
Compare
69326aa
to
dc7089a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Let's make sure this works once it's in the main book.
@@ -67,7 +67,7 @@ message: "error message if status == Failure" | |||
retryAfterSeconds: 10 | |||
``` | |||
|
|||
For additional details, refer to the [Draft OpenAPI spec](https://editor.swagger.io/?url=https://raw.githubusercontent.com/kubernetes-sigs/cluster-api/main/docs/proposals/images/runtime-hooks/runtime-hooks-openapi.yaml). | |||
For additional details, you can see the full schema in <button onclick="openSwaggerUI()">Swagger UI</button>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very fancy 🙂
/lgtm @sbueringer seems you're getting to the next level regarding netlify docs 😂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vincepri The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/cherry-pick release-1.2 |
@sbueringer: new pull request created: #6851 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #6795