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

Adding docs readme and getting started guide #66

Merged
merged 3 commits into from
Sep 8, 2022

Conversation

pokearu
Copy link
Contributor

@pokearu pokearu commented Sep 6, 2022

Description

Adding documentation to elaborate on rufio API and a getting started guide.

Signed-off-by: Aravind Ramalingam <ramaliar@amazon.com>
Signed-off-by: Aravind Ramalingam <ramaliar@amazon.com>
@codecov
Copy link

codecov bot commented Sep 6, 2022

Codecov Report

Merging #66 (9195f2d) into main (a246241) will not change coverage.
The diff coverage is n/a.

❗ Current head 9195f2d differs from pull request most recent head 3cd26ab. Consider uploading reports for the commit 3cd26ab to get more accurate results

@@           Coverage Diff           @@
##             main      #66   +/-   ##
=======================================
  Coverage   59.50%   59.50%           
=======================================
  Files           4        4           
  Lines         321      321           
=======================================
  Hits          191      191           
  Misses         97       97           
  Partials       33       33           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Member

@jacobweinstock jacobweinstock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, thanks for putting this together @pokearu! I left a few comments.

Signed-off-by: Aravind Ramalingam <ramaliar@amazon.com>
@jacobweinstock jacobweinstock added the ready-to-merge Mergify: Ready for Merging label Sep 8, 2022
@mergify mergify bot merged commit 6958e35 into tinkerbell:main Sep 8, 2022
Copy link
Member

@chrisdoherty4 chrisdoherty4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Useful doc. Would it be better off as a section in the root README so people don't need to navigate to this separately.

![architecture](puml/architecture.png)
Rufio controller consists of three main API types, [Machine](https://github.com/tinkerbell/rufio/blob/main/api/v1alpha1/machine.go), [Job](https://github.com/tinkerbell/rufio/blob/main/api/v1alpha1/job.go) and [Task](https://github.com/tinkerbell/rufio/blob/main/api/v1alpha1/task.go). An operator or an automated client like [CAPT](https://github.com/tinkerbell/cluster-api-provider-tinkerbell) can interact with Rufio using these APIs to manage the state of their physical machines.
### Machine API
The Machine type contains the information required for communicating with the BMC of the physical hardware.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The Machine type contains the information required for communicating with the BMC of the physical hardware.
The Machine type contains the information required for communicating with a BMC.

namespace: sample
insecureTLS: false
```
The `connection` object contains the required fields for establising a BMC connection. Fields `host`, `port` represent the BMC IP for the physical machine and `insecureTLS` instructs weather to use insecure TLS connectivity for performing BMC API calls. Field `authSecretRef` is a `SecretReference` which points to a kubernetes secret that contains the username/password for authenticating BMC API calls.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this level of docs would be better placed on the API types themselves. We can link to that as needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge Mergify: Ready for Merging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants