Skip to content

Commit fe52b53

Browse files
committed
fixed: docs formatting for docs.scs.community
Signed-off-by: Danny Eiselt <[email protected]>
1 parent 22cc6d7 commit fe52b53

File tree

3 files changed

+22
-20
lines changed

3 files changed

+22
-20
lines changed

docs/architecture/overview.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
# Architecture
1+
# Overview
2+
3+
## Architecture
24

35
![Cluster Stacks](../pics/syself-cluster-stacks-web.png)
46

57
## Cluster stacks
68

79
The cluster stacks are opinionated templates of clusters in which all configuration and all core components are defined. They can be implemented on any provider.
810

9-
There can be multiple cluster stacks that acknowledge the many ways in which a cluster can be set up. There is no right or wrong and cluster stacks make sure that the flexibility is not lost.
11+
There can be multiple cluster stacks that acknowledge the many ways in which a cluster can be set up. There is no right or wrong and cluster stacks make sure that the flexibility is not lost.
1012

1113
At the same time, they offer ready-made templates for users, who do not have to spend a lot of thought on how to build clusters so that everything works well together.
1214

@@ -20,23 +22,23 @@ To sum up, there are three components of a cluster stack:
2022
2. Cluster API objects: The `ClusterClass` object makes it easier to use Cluster-API. The cluster stack contains a `ClusterClass` object and other Cluster-API objects that are necessary in order to use the `ClusterClass`. These objects have to be applied in the management cluster.
2123
3. Node images: Node images can be provided to the user in different form. They are released and tested together with the other two components of the cluster stack.
2224

23-
More information about cluster stacks and their three parts can be found in https://github.com/SovereignCloudStack/cluster-stacks/blob/main/README.md.
25+
More information about cluster stacks and their three parts can be found in https://github.com/SovereignCloudStack/cluster-stacks/blob/main/README.md.
2426

2527
## Cluster Stack Operator
2628

2729
The Cluster Stack Operator takes care of all steps that have to be done in order to use a certain cluster stack implementation.
2830

29-
It has to be installed in the management cluster and can be interacted with by applying custom resources. It extends the functionality of the Cluster API operators.
31+
It has to be installed in the management cluster and can be interacted with by applying custom resources. It extends the functionality of the Cluster API operators.
3032

3133
The Cluster Stack Operator mainly applies the two Helm charts from a cluster stack implementation. It is also able to automatically fetch a remote Github repository to see whether there are new releases of a certain cluster stack.
3234

33-
The first and second component of a cluster stack are handled by the Cluster Stack Operator.
35+
The first and second component of a cluster stack are handled by the Cluster Stack Operator.
3436

3537
The node images, on the other hand, have to be handled by separate provider integrations, similar to the ones that [Cluster-API uses](https://cluster-api.sigs.k8s.io/developer/providers/implementers-guide/overview).
3638

3739
## Cluster Stack Provider Integrations
3840

39-
The Cluster Stack Operator is accompanied by Cluster Stack Provider Integrations. A provider integration is also an operator that works together with the Cluster Stack Operator in a specific way, which is described in the docs about building [provider integrations](../develop/provider-integration.md).
41+
The Cluster Stack Operator is accompanied by Cluster Stack Provider Integrations. A provider integration is also an operator that works together with the Cluster Stack Operator in a specific way, which is described in the docs about building [provider integrations](../develop/provider-integration.md).
4042

4143
A provider integration makes sure that the node images are taken care of and made available to the user.
4244

@@ -46,7 +48,7 @@ If there is no work to be done for node images, then the Cluster Stack Operator
4648

4749
There are many steps that are needed in order to make cluster stacks ready to use. In order to understand the full flow better and to get an idea of how much work there is and how many personas are involved, we will give an overview of how to start from scratch with a new cluster stack and provider.
4850

49-
We will assume that this operator exists, but that you want to use a new cluster stack and provider.
51+
We will assume that this operator exists, but that you want to use a new cluster stack and provider.
5052

5153
### Defining a cluster stack
5254

@@ -58,8 +60,8 @@ The next step is to implement your cluster stack for your provider. You can take
5860

5961
### Implementing a Cluster Stack Provider Integration
6062

61-
We assume that you need to do some manual tasks in order to make node images accessible on your provider. These steps should be implemented in a Cluster Stack Provider Integration, which of course has to work together with the details of how you implemented your cluster stack.
63+
We assume that you need to do some manual tasks in order to make node images accessible on your provider. These steps should be implemented in a Cluster Stack Provider Integration, which of course has to work together with the details of how you implemented your cluster stack.
6264

6365
### Using everything
6466

65-
Finally, you can use the new cluster stack you defined and implemented on the infrastructure of your provider. Enjoy!
67+
Finally, you can use the new cluster stack you defined and implemented on the infrastructure of your provider. Enjoy!

docs/develop/develop.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Develop Cluster Stack Operator
22

33

4-
Developing our operator is quite easy. First, you need to install some base requirements: Docker and Go. Second, you need to configure your environment variables. Then you can start developing with the local Kind cluster and the Tilt UI to create a workload cluster that is already pre-configured.
4+
Developing our operator is quite easy. First, you need to install some base requirements: Docker and Go. Second, you need to configure your environment variables. Then you can start developing with the local Kind cluster and the Tilt UI to create a workload cluster that is already pre-configured.
55

66
## Setting Tilt up
77
1. Install Docker and Go. We expect you to run on a Linux OS.
@@ -10,8 +10,8 @@ Developing our operator is quite easy. First, you need to install some base requ
1010
## Developing with Tilt
1111

1212
<p align="center">
13-
<img alt="tilt" src="./docs/pics/tilt.png" width=800px/>
14-
</p>
13+
<img alt="tilt" src="./docs/pics/tilt.png" width="800px" />
14+
</p>
1515

1616
Operator development requires a lot of iteration, and the “build, tag, push, update deployment” workflow can be very tedious. Tilt makes this process much simpler by watching for updates and automatically building and deploying them. To build a kind cluster and to start Tilt, run:
1717

@@ -23,7 +23,7 @@ make tilt-up
2323

2424
You should make sure that everything in the UI looks green. If not, e.g. if the clusterstack has not been synced, you can trigger the Tilt workflow again. In case of the clusterstack button this might be necessary, as it cannot be applied right after startup of the cluster and fails. Tilt unfortunately does not include a waiting period.
2525

26-
If everything is green, then you can already check for your clusterstack that has been deployed. You can use a tool like k9s to have a look at the management cluster and its custom resources.
26+
If everything is green, then you can already check for your clusterstack that has been deployed. You can use a tool like k9s to have a look at the management cluster and its custom resources.
2727

2828
Example:
2929

@@ -47,12 +47,12 @@ In case you want to change some code, you can do so and see that Tilt triggers o
4747

4848
If you want to change something in your ClusterStack or Cluster custom resources, you can have a look at `.cluster.yaml` and `.clusterstack.yaml`, which Tilt uses.
4949

50-
To tear down the workload cluster press the "Delete Workload Cluster" button. After a few minutes the resources should be deleted.
50+
To tear down the workload cluster press the "Delete Workload Cluster" button. After a few minutes the resources should be deleted.
5151

5252
To tear down the kind cluster, use:
5353

5454
```shell
5555
$ make delete-bootstrap-cluster
5656
```
5757

58-
If you have any trouble finding the right command, then you can use `make help` to get a list of all available make targets.
58+
If you have any trouble finding the right command, then you can use `make help` to get a list of all available make targets.

docs/reference/clusterstack.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
## ClusterStack
22

3-
The `ClusterStack` object is the main resource for users to work with. It contains the most important details of a cluster stack and its releases (i.e. certain versions). In its status is the main source of information of the state of everything related to cluster stacks.
3+
The `ClusterStack` object is the main resource for users to work with. It contains the most important details of a cluster stack and its releases (i.e. certain versions). In its status is the main source of information of the state of everything related to cluster stacks.
44

55

66

77
### Lifecycle of a ClusterStack
88

99
The `ClusterStack` object has a sub-resource `ClusterStackRelease` for every release that should be provided to the user, either by specifying them manually in the versions array, or automatically through the auto-subscribe functionality.
1010

11-
The controller reconciles the two sources of information and checks whether for every release that should exist, there is actually one. It also deletes `ClusterStackRelease` objects that are not required anymore.
11+
The controller reconciles the two sources of information and checks whether for every release that should exist, there is actually one. It also deletes `ClusterStackRelease` objects that are not required anymore.
1212

13-
Additionally, it fetches information from the `ClusterStackRelease` objects and populates its own state with it.
13+
Additionally, it fetches information from the `ClusterStackRelease` objects and populates its own state with it.
1414

1515
In case that a provider integration is used, it will create `ProviderClusterStackRelease` objects in addition to `ClusterStackRelease` objects, based on the `ProviderClusterStackReleaseTemplate` objects given as reference in `spec.providerRef`.
1616

@@ -21,7 +21,7 @@ In case that a provider integration is used, it will create `ProviderClusterStac
2121
| ------------------------ | --------- | ------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
2222
| provider | string | | yes | Name of the provider, e.g. "docker". It is used in various places, e.g. while fetching the respective release assets or while naming resources (ClusterStackReleases, ProviderClusterStackResources, etc.).|
2323
| name | string | | yes | Name of the cluster stack. It is used as well for fetching release assets and other tasks. |
24-
| kubernetesVersion | string | | yes | Kubernetes version in the format '<majorVersion>.<minorVersion>', e.g. 1.26. Specifies the Kubernetes minor version of the cluster stack that should be taken.|
24+
| kubernetesVersion | string | | yes | Kubernetes version in the format `<majorVersion>.<minorVersion>`, e.g. 1.26. Specifies the Kubernetes minor version of the cluster stack that should be taken.|
2525
| channel | string | stable | no | Name of release channel that is used, e.g. stable channel ("v1", "v2", etc.) or beta channel (e.g. "v0-beta.1").|
2626
| versions | []string | | no | List of versions that the controller should make available of a cluster stack. Used only in case very specific versions are supposed to be used. Not required if always the latest versions should be made available. |
2727
| autoSubscribe | bool | true | no | Specifies whether the controller should automatically check whether there are new releases of the cluster stack and if so automatically download them. |
@@ -45,4 +45,4 @@ spec:
4545
channel: stable
4646
autoSubscribe: true
4747
noProvider: true
48-
```
48+
```

0 commit comments

Comments
 (0)