Skip to content
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

Rewrite spec documentation in more user-friendly format #2532

Closed
5 tasks done
hiddeco opened this issue Mar 11, 2022 · 0 comments
Closed
5 tasks done

Rewrite spec documentation in more user-friendly format #2532

hiddeco opened this issue Mar 11, 2022 · 0 comments
Labels
area/docs Documentation related issues and pull requests enhancement New feature or request

Comments

@hiddeco
Copy link
Member

hiddeco commented Mar 11, 2022

The source-controller v1beta2 API comes with a new format for the spec documentation, which is more in-line with the documentation from e.g. Kubernetes workload resources itself and does not include (for the end-user confusing) Go code.

It would be good to apply this structure to the spec documentation for the other controllers as well.

New format outline

# <API type>

## Example

Contains an example of a minimal YAML for the type, and explains (in steps) what happens when the controller reconciles this type.

## Writing a <API type> spec

Contains documentation for all the fields, and the impact they have when specified.

## Working with <API type>

Contains practical examples about working with the type, e.g. triggering on-demand reconciles, waiting for a `Ready` state, etc.

## <API type> Status

Explains in detail the Conditions and other Status fields the object may have.

(For a detailed example, see e.g. https://github.com/fluxcd/source-controller/blob/main/docs/spec/v1beta2/gitrepositories.md)

To-do

@hiddeco hiddeco added the area/docs Documentation related issues and pull requests label Mar 11, 2022
@stefanprodan stefanprodan added the enhancement New feature or request label Mar 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/docs Documentation related issues and pull requests enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants