Skip to content

Commit 65800b3

Browse files
authored
Merge pull request #1150 from dongwangdw/setup-doctoc
issue-934: Add doctoc for docs updating
2 parents 4cb9377 + 5524f52 commit 65800b3

File tree

13 files changed

+276
-2
lines changed

13 files changed

+276
-2
lines changed

CONTRIBUTING.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,27 @@
11
# Contributing Guidelines
2+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
3+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
4+
5+
6+
- [Contributor License Agreements](#contributor-license-agreements)
7+
- [Finding Things That Need Help](#finding-things-that-need-help)
8+
- [Contributing a Patch](#contributing-a-patch)
9+
- [Backporting a Patch](#backporting-a-patch)
10+
- [Merge Approval](#merge-approval)
11+
- [Google Doc Viewing Permissions](#google-doc-viewing-permissions)
12+
- [Issue and Pull Request Management](#issue-and-pull-request-management)
13+
- [Cloud Provider Developer Guide](#cloud-provider-developer-guide)
14+
- [Overview](#overview)
15+
- [Resources](#resources)
16+
- [Boostrapping](#boostrapping)
17+
- [A new Machine can be created in a declarative way](#a-new-machine-can-be-created-in-a-declarative-way)
18+
- [Configurable Machine Setup](#configurable-machine-setup)
19+
- [GCE Implementation](#gce-implementation)
20+
- [A specific Machine can be deleted, freeing external resources associated with it.](#a-specific-machine-can-be-deleted-freeing-external-resources-associated-with-it)
21+
- [A specific Machine can be upgraded or downgraded](#a-specific-machine-can-be-upgraded-or-downgraded)
22+
- [Support Channels](#support-channels)
23+
24+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
225

326
Read the following guide if you're interested in contributing to cluster-api.
427

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ verify:
200200
./hack/verify-boilerplate.sh
201201
./hack/verify-clientset.sh
202202
./hack/verify-bazel.sh
203+
./hack/verify-doctoc.sh
203204

204205
.PHONY: clean-book
205206
clean-book: ## Remove all generated GitBook files

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
# Cluster API
2+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
3+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
4+
5+
6+
- [What is the Cluster API?](#what-is-the-cluster-api)
7+
- [Getting Started](#getting-started)
8+
- [Resources](#resources)
9+
- [Prerequisites](#prerequisites)
10+
- [Using `clusterctl` to create a cluster](#using-clusterctl-to-create-a-cluster)
11+
- [How does Cluster API compare to Kubernetes Cloud Providers?](#how-does-cluster-api-compare-to-kubernetes-cloud-providers)
12+
- [Get involved!](#get-involved)
13+
- [Provider Implementations](#provider-implementations)
14+
- [API Adoption](#api-adoption)
15+
16+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
217
## What is the Cluster API?
318

419
The Cluster API is a Kubernetes project to bring declarative, Kubernetes-style

cmd/clusterctl/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
# clusterctl
2+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
3+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
4+
5+
6+
- [Getting Started](#getting-started)
7+
- [Prerequisites](#prerequisites)
8+
- [Limitations](#limitations)
9+
- [Creating a cluster](#creating-a-cluster)
10+
- [Interacting with your cluster](#interacting-with-your-cluster)
11+
- [Scaling your cluster](#scaling-your-cluster)
12+
- [Upgrading your cluster](#upgrading-your-cluster)
13+
- [Node repair](#node-repair)
14+
- [Deleting a cluster](#deleting-a-cluster)
15+
- [Contributing](#contributing)
16+
17+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
218

319
`clusterctl` is the SIG-cluster-lifecycle sponsored tool that implements the Cluster API.
420

docs/developer/releasing.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
# Releasing
2+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
3+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
4+
5+
6+
- [Output](#output)
7+
- [Expected artifacts](#expected-artifacts)
8+
- [Artifact locations](#artifact-locations)
9+
- [Process](#process)
10+
- [Permissions](#permissions)
11+
12+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
213

314
## Output
415

docs/how-to-use-clusterctl.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
# Using `clusterctl` to create a cluster from scratch
2+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
3+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
4+
5+
6+
- [What is `clusterctl`?](#what-is-clusterctl)
7+
- [Creating a cluster](#creating-a-cluster)
8+
- [Creating a workload cluster using the management cluster](#creating-a-workload-cluster-using-the-management-cluster)
9+
10+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
211

312
This document provides an overview of how `clusterctl` works and explains how one can use `clusterctl`
413
to create a Kubernetes cluster from scratch.

docs/proposals/20181121-machine-api.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
Minimalistic Machines API
22
=========================
3-
3+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
4+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
5+
6+
7+
- [Capabilities](#capabilities)
8+
- [Proposal](#proposal)
9+
- [In-place vs. Replace](#in-place-vs-replace)
10+
- [Omitted Capabilities](#omitted-capabilities)
11+
- [A provider-agnostic mechanism to request new nodes](#a-provider-agnostic-mechanism-to-request-new-nodes)
12+
- [Dynamic API endpoint](#dynamic-api-endpoint)
13+
- [Conditions](#conditions)
14+
- [Types](#types)
15+
16+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
17+
418
This proposal is for a minimalistic start to a new Machines API, as part of the
519
overall Cluster API project. It is intended to live outside of core Kubernetes
620
and add optional machine management features to Kubernetes clusters.

docs/proposals/20190610-machine-states-preboot-bootstrapping.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,75 @@
11
---
22
title: Machine States & Preboot Bootstrapping
3+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
4+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
5+
6+
7+
- [Machine States & Preboot Bootstrapping](#machine-states--preboot-bootstrapping)
8+
- [Table of Contents](#table-of-contents)
9+
- [Glossary](#glossary)
10+
- [Summary](#summary)
11+
- [Motivation](#motivation)
12+
- [Goals](#goals)
13+
- [Non-Goals/Future Work](#non-goalsfuture-work)
14+
- [Proposal](#proposal)
15+
- [Data model changes](#data-model-changes)
16+
- [States and transitions](#states-and-transitions)
17+
- [Pending](#pending)
18+
- [Transition Conditions](#transition-conditions)
19+
- [Expectations](#expectations)
20+
- [Provisioning](#provisioning)
21+
- [Transition Conditions](#transition-conditions-1)
22+
- [Expectations](#expectations-1)
23+
- [Provisioned](#provisioned)
24+
- [Transition Conditions](#transition-conditions-2)
25+
- [Expectations](#expectations-2)
26+
- [Running](#running)
27+
- [Transition Conditions](#transition-conditions-3)
28+
- [Expectations](#expectations-3)
29+
- [Deleting](#deleting)
30+
- [Transition Conditions](#transition-conditions-4)
31+
- [Expectations](#expectations-4)
32+
- [Deleted](#deleted)
33+
- [Transition Conditions](#transition-conditions-5)
34+
- [Expectations](#expectations-5)
35+
- [Failed](#failed)
36+
- [Transition Conditions](#transition-conditions-6)
37+
- [Expectations](#expectations-6)
38+
- [Sequence diagram: User creates a machine with Kubeadm bootstrapper.](#sequence-diagram-user-creates-a-machine-with-kubeadm-bootstrapper)
39+
- [User Stories](#user-stories)
40+
- [As a Kubernetes operator, I’d like to provide custom bootstrap data without the use of a Kubernetes controller.](#as-a-kubernetes-operator-id-like-to-provide-custom-bootstrap-data-without-the-use-of-a-kubernetes-controller)
41+
- [As a Kubernetes operator, I’d like to monitor the progress of fulfilling a Machine and understand what errors, if any, have been reported by the controllers involved.](#as-a-kubernetes-operator-id-like-to-monitor-the-progress-of-fulfilling-a-machine-and-understand-what-errors-if-any-have-been-reported-by-the-controllers-involved)
42+
- [As an infrastructure provider author, I would like to build the fewest number of components possible to support the full cluster-api.](#as-an-infrastructure-provider-author-i-would-like-to-build-the-fewest-number-of-components-possible-to-support-the-full-cluster-api)
43+
- [As an infrastructure provider author, I would like to take advantage of the kubernetes API to provide validation for provider-specific data needed to provision a machine.](#as-an-infrastructure-provider-author-i-would-like-to-take-advantage-of-the-kubernetes-api-to-provide-validation-for-provider-specific-data-needed-to-provision-a-machine)
44+
- [As an infrastructure provider author, I would like to build a controller to manage provisioning machines using tools of my own choosing.](#as-an-infrastructure-provider-author-i-would-like-to-build-a-controller-to-manage-provisioning-machines-using-tools-of-my-own-choosing)
45+
- [As an infrastructure provider author, I would like to build a controller to manage provisioning machines without being restricted to a CRUD API.](#as-an-infrastructure-provider-author-i-would-like-to-build-a-controller-to-manage-provisioning-machines-without-being-restricted-to-a-crud-api)
46+
- [As an infrastructure provider consumer, I would like to have validation for the provider-specific data I need to give the system to have it provision a machine.](#as-an-infrastructure-provider-consumer-i-would-like-to-have-validation-for-the-provider-specific-data-i-need-to-give-the-system-to-have-it-provision-a-machine)
47+
- [Implementation Details/Notes/Constraints](#implementation-detailsnotesconstraints)
48+
- [Machine Controller Role](#machine-controller-role)
49+
- [Machine Controller dynamic watchers](#machine-controller-dynamic-watchers)
50+
- [Object References, Templates, MachineSets and MachineDeployments](#object-references-templates-machinesets-and-machinedeployments)
51+
- [Controllers and the single responsibility approach](#controllers-and-the-single-responsibility-approach)
52+
- [Remote references and accessing a workload cluster](#remote-references-and-accessing-a-workload-cluster)
53+
- [The “Phase” field and its role](#the-phase-field-and-its-role)
54+
- [Showing a status summary to users](#showing-a-status-summary-to-users)
55+
- [Risks and Mitigations](#risks-and-mitigations)
56+
- [State transitions are inflexible](#state-transitions-are-inflexible)
57+
- [Machine Controller can access any machine or cluster in any namespace](#machine-controller-can-access-any-machine-or-cluster-in-any-namespace)
58+
- [Certificates and tokens are exposed in plaintext](#certificates-and-tokens-are-exposed-in-plaintext)
59+
- [Bootstrap data cannot be merged](#bootstrap-data-cannot-be-merged)
60+
- [MachineClass is deprecated and will be revisited later](#machineclass-is-deprecated-and-will-be-revisited-later)
61+
- [Design Details](#design-details)
62+
- [Test Plan](#test-plan)
63+
- [Graduation Criteria](#graduation-criteria)
64+
- [Upgrade / Downgrade Strategy](#upgrade--downgrade-strategy)
65+
- [Version Skew Strategy](#version-skew-strategy)
66+
- [Implementation History](#implementation-history)
67+
- [Drawbacks](#drawbacks)
68+
- [Alternatives](#alternatives)
69+
- [Object References, Templates, MachineSets and MachineDeployments](#object-references-templates-machinesets-and-machinedeployments-1)
70+
71+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
72+
373
authors:
474
- "@ncdc"
575
- "@vincepri"

docs/proposals/YYYYMMDD-template.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,36 @@
11
---
22
title: proposal Template
3+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
4+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
5+
6+
7+
- [Title](#title)
8+
- [Table of Contents](#table-of-contents)
9+
- [Summary](#summary)
10+
- [Motivation](#motivation)
11+
- [Goals](#goals)
12+
- [Non-Goals](#non-goals)
13+
- [Proposal](#proposal)
14+
- [User Stories [optional]](#user-stories-optional)
15+
- [Story 1](#story-1)
16+
- [Story 2](#story-2)
17+
- [Implementation Details/Notes/Constraints [optional]](#implementation-detailsnotesconstraints-optional)
18+
- [Risks and Mitigations](#risks-and-mitigations)
19+
- [Design Details](#design-details)
20+
- [Test Plan](#test-plan)
21+
- [Graduation Criteria](#graduation-criteria)
22+
- [Examples](#examples)
23+
- [Alpha -> Beta Graduation](#alpha---beta-graduation)
24+
- [Beta -> GA Graduation](#beta---ga-graduation)
25+
- [Removing a deprecated flag](#removing-a-deprecated-flag)
26+
- [Upgrade / Downgrade Strategy](#upgrade--downgrade-strategy)
27+
- [Version Skew Strategy](#version-skew-strategy)
28+
- [Implementation History](#implementation-history)
29+
- [Drawbacks [optional]](#drawbacks-optional)
30+
- [Alternatives [optional]](#alternatives-optional)
31+
32+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
33+
334
authors:
435
- "@janedoe"
536
reviewers:

docs/proposals/images/machine-states-preboot/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
# Figures with PlantUML
2+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
3+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
4+
5+
6+
- [Generating figures](#generating-figures)
7+
8+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
29

310
Most of the figures for this proposal are generated with [PlantUML](http://plantuml.com/), an [open-source](https://sourceforge.net/projects/plantuml/) tool that can generate sequence, use case, class, activity, state, object, and other kinds of UML digrams.
411

0 commit comments

Comments
 (0)