Skip to content

Commit 53d6266

Browse files
authored
Merge pull request #1515 from shiftstack/docs
📖 Document removal of OpenStackMachineSpec.Subnet
2 parents c71fa5f + c286d05 commit 53d6266

File tree

8 files changed

+65
-25
lines changed

8 files changed

+65
-25
lines changed

docs/book/src/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@
1010
- [CRD Changes](./topics/crd-changes/index.md)
1111
- [v1alpha4 to v1alpha5](./topics/crd-changes/v1alpha4-to-v1alpha5.md)
1212
- [v1alpha5 to v1alpha6](./topics/crd-changes/v1alpha5-to-v1alpha6.md)
13+
- [v1alpha6 to v1alpha7](./topics/crd-changes/v1alpha6-to-v1alpha7.md)
1314
- [Development](./development/development.md)
1415
- [Hacking CI](./development/ci.md)

docs/book/src/clusteropenstack/configuration.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
- [Required configuration](#required-configuration)
66
- [OpenStack version](#openstack-version)
77
- [Operating system image](#operating-system-image)
8+
- [cloud-init based images](#cloud-init-based-images)
9+
- [Ignition based images](#ignition-based-images)
810
- [SSH key pair](#ssh-key-pair)
911
- [OpenStack credential](#openstack-credential)
1012
- [Generate credentials](#generate-credentials)
@@ -222,7 +224,7 @@ during an upgrade. When the API server has a floating IP, this role is fulfilled
222224
floating IP even if there is no load balancer. When the API server does not have a floating
223225
IP, the load balancer virtual IP on the cluster network is used.
224226

225-
## Restrict Access to the API server
227+
### Restrict Access to the API server
226228

227229
> **NOTE**
228230
>

docs/book/src/development/ci.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- [Hacking CI for the E2E tests](#hacking-ci-for-the-e2e-tests)
66
- [Prow](#prow)
77
- [DevStack](#devstack)
8+
- [DevStack OS](#devstack-os)
89
- [Configuration](#configuration)
910
- [Build order](#build-order)
1011
- [Networking](#networking)
@@ -25,7 +26,7 @@ The E2E tests require an OpenStack cloud to run against, which we provision duri
2526

2627
The entry point for the creation of the test DevStack is `hack/ci/create_devstack.sh`, which is executed by `scripts/ci-e2e.sh`. We create 2 instances: `controller` and `worker`. Each will provision itself via cloud-init using config defined in `hack/ci/cloud-init`.
2728

28-
## DevStack OS
29+
### DevStack OS
2930

3031
In GCE, DevStack is installed on a community-maintained Ubuntu 20.04 LTS cloud image. The cloud-init config is also intended to work on CentOS 8, and this is known to work as of 2021-01-12. However, note that this is not regularly tested. See the comment in `hack/ci/gce-project.sh` for how to deploy on CentOS.
3132

docs/book/src/development/development.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
- [Running E2E tests locally](#running-e2e-tests-locally)
1111
- [Support for clouds using SSL](#support-for-clouds-using-ssl)
1212
- [Support for clouds with multiple external networks](#support-for-clouds-with-multiple-external-networks)
13-
- [OpenStack prerequisites](#openstack-prerequisites)
13+
- [E2E test environment](#e2e-test-environment)
14+
- [Requirements](#requirements)
15+
- [Create E2E test environment](#create-e2e-test-environment)
16+
- [OpenStack](#openstack)
1417
- [Running E2E tests using rootless podman](#running-e2e-tests-using-rootless-podman)
1518
- [Host configuration](#host-configuration)
1619
- [Running podman system service to emulate docker daemon](#running-podman-system-service-to-emulate-docker-daemon)

docs/book/src/topics/crd-changes/v1alpha5-to-v1alpha6.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212

1313
# v1alpha5 compared to v1alpha6
1414

15-
> ⚠️ v1alpha6 has not been released yet.
16-
1715
## Migration
1816

1917
All users are encouraged to migrate their usage of the CAPO CRDs from older versions to `v1alpha6`. This includes yaml files and source code. As CAPO implements automatic conversions between the CRD versions, this migration can happen after installing the new CAPO release.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
2+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
3+
**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*
4+
5+
- [v1alpha6 compared to v1alpha7](#v1alpha6-compared-to-v1alpha7)
6+
- [Migration](#migration)
7+
- [API Changes](#api-changes)
8+
- [`OpenStackCluster`](#openstackcluster)
9+
- [`OpenStackMachine`](#openstackmachine)
10+
- [Removal of Subnet](#removal-of-subnet)
11+
12+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
13+
14+
# v1alpha6 compared to v1alpha7
15+
16+
> ⚠️ v1alpha7 has not been released yet.
17+
18+
## Migration
19+
20+
All users are encouraged to migrate their usage of the CAPO CRDs from older versions to `v1alpha6`. This includes yaml files and source code. As CAPO implements automatic conversions between the CRD versions, this migration can happen after installing the new CAPO release.
21+
22+
## API Changes
23+
24+
This only documents backwards incompatible changes. Fields that were added to v1alpha6 are not listed here.
25+
26+
### `OpenStackCluster`
27+
28+
### `OpenStackMachine`
29+
30+
#### Removal of Subnet
31+
32+
The OpenStackMachine spec previously contained a `subnet` field which could used
33+
to set the `accessIPv4` field on Nova servers. This feature was not widely
34+
used, difficult to use, and could not be extended to support IPv6. It is
35+
removed without replacement.

docs/book/src/topics/external-cloud-provider.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*
44

55
- [External Cloud Provider](#external-cloud-provider)
6-
- [Steps](#steps)
6+
- [Steps of using external cloud provider template](#steps-of-using-external-cloud-provider-template)
77

88
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
99

hack/tools/Makefile

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ ifeq ($(OS), linux)
3737
GTAR := tar
3838
endif
3939

40-
MDBOOK_EXTRACT_COMMAND := tar xfvz $(SHARE_DIR)/mdbook.tar.gz -C bin
40+
MDBOOK_EXTRACT_COMMAND := tar xfvz $(SHARE_DIR)/mdbook.tar.gz -C $(BIN_DIR)
4141
MDBOOK_ARCHIVE_EXT := .tar.gz
4242

4343
ifeq ($(OS), windows)
@@ -62,19 +62,19 @@ $(GTAR):
6262

6363

6464
CONTROLLER_GEN := $(BIN_DIR)/controller-gen
65-
$(CONTROLLER_GEN): $(BIN_DIR) go.mod go.sum # Build controller-gen from tools folder.
65+
$(CONTROLLER_GEN): go.mod go.sum | $(BIN_DIR) # Build controller-gen from tools folder.
6666
go build -tags=tools -o $@ sigs.k8s.io/controller-tools/cmd/controller-gen
6767

6868
CONVERSION_GEN := $(BIN_DIR)/conversion-gen
69-
$(CONVERSION_GEN): $(BIN_DIR) go.mod go.sum
69+
$(CONVERSION_GEN): go.mod go.sum | $(BIN_DIR)
7070
go build -tags=tools -o $@ k8s.io/code-generator/cmd/conversion-gen
7171

7272
DEFAULTER_GEN := $(BIN_DIR)/defaulter-gen
73-
$(DEFAULTER_GEN): $(BIN_DIR) go.mod go.sum
73+
$(DEFAULTER_GEN): go.mod go.sum | $(BIN_DIR)
7474
go build -tags=tools -o $@ k8s.io/code-generator/cmd/defaulter-gen
7575

7676
ENVSUBST := $(BIN_DIR)/envsubst
77-
$(ENVSUBST): $(BIN_DIR) go.mod go.sum # Build envsubst from tools folder.
77+
$(ENVSUBST): go.mod go.sum | $(BIN_DIR) # Build envsubst from tools folder.
7878
go build -tags=tools -o $@ github.com/a8m/envsubst/cmd/envsubst
7979

8080
GH_SHARE := $(SHARE_DIR)/gh
@@ -86,63 +86,63 @@ $(GH_SHARE)/gh.tar.gz: $(GH_SHARE)
8686
curl -L "https://github.com/cli/cli/releases/download/v$(GH_VERSION)/gh_$(GH_VERSION)_$(GH_ARCH_SUFFIX).tar.gz" -o $@
8787

8888
GH := $(BIN_DIR)/gh
89-
GH: $(GTAR) $(GH_SHARE)/gh.tar.gz
90-
$(GTAR) -xvf share/gh/gh.tar.gz gh_$(GH_VERSION)_$(GH_ARCH_SUFFIX)/bin/gh --strip-components 1 --directory $(BIN_DIR)
89+
$(GH): $(GTAR) $(GH_SHARE)/gh.tar.gz | $(BIN_DIR)
90+
$(GTAR) -xvf $(SHARE_DIR)/gh/gh.tar.gz gh_$(GH_VERSION)_$(GH_ARCH_SUFFIX)/bin/gh --strip-components 1 --directory $(BIN_DIR)
9191
chmod +x $@
9292
touch -m $@
9393

9494
GINKGO := $(BIN_DIR)/ginkgo
95-
$(GINKGO): $(BIN_DIR) go.mod go.sum
95+
$(GINKGO): go.mod go.sum | $(BIN_DIR)
9696
go build -tags=tools -o $@ github.com/onsi/ginkgo/v2/ginkgo
9797

9898
GOJQ := $(BIN_DIR)/gojq
99-
$(GOJQ): $(BIN_DIR) go.mod go.sum
99+
$(GOJQ): go.mod go.sum | $(BIN_DIR)
100100
go build -tags=tools -o $@ github.com/itchyny/gojq/cmd/gojq
101101

102102
GOLANGCI_LINT := $(BIN_DIR)/golangci-lint
103103
$(GOLANGCI_LINT): Makefile ensure-golangci-lint.sh | $(BIN_DIR)
104104
./ensure-golangci-lint.sh -b $(BIN_DIR) $(GOLANGCI_LINT_VERSION)
105105

106106
KUSTOMIZE := $(BIN_DIR)/kustomize
107-
$(KUSTOMIZE): $(BIN_DIR) go.mod go.sum # Build kustomize from tools folder.
107+
$(KUSTOMIZE): go.mod go.sum | $(BIN_DIR) # Build kustomize from tools folder.
108108
CGO_ENABLED=0 go build -tags=tools -o $@ sigs.k8s.io/kustomize/kustomize/v4
109109

110110
MDBOOK_SHARE := $(SHARE_DIR)/mdbook$(MDBOOK_ARCHIVE_EXT)
111111
$(MDBOOK_SHARE): ../../versions.mk $(SHARE_DIR)
112112
curl -sL -o $(MDBOOK_SHARE) "https://github.com/rust-lang/mdBook/releases/download/$(MDBOOK_VERSION)/mdBook-$(MDBOOK_VERSION)-x86_64-$(RUST_TARGET)$(MDBOOK_ARCHIVE_EXT)"
113113

114114
MDBOOK := $(BIN_DIR)/mdbook
115-
$(MDBOOK): $(BIN_DIR) $(MDBOOK_SHARE)
115+
$(MDBOOK): $(MDBOOK_SHARE) | $(BIN_DIR)
116116
$(MDBOOK_EXTRACT_COMMAND)
117117
chmod +x $@
118118
touch -m $@
119119

120120
MDBOOK_EMBED := $(BIN_DIR)/mdbook-embed
121-
$(MDBOOK_EMBED): $(BIN_DIR) go.mod go.sum
121+
$(MDBOOK_EMBED): go.mod go.sum | $(BIN_DIR)
122122
go build -tags=tools -o $(BIN_DIR)/mdbook-embed sigs.k8s.io/cluster-api/hack/tools/mdbook/embed
123123

124124
MDBOOK_RELEASELINK := $(BIN_DIR)/mdbook-releaselink
125-
$(MDBOOK_RELEASELINK): $(BIN_DIR) go.mod go.sum
125+
$(MDBOOK_RELEASELINK): go.mod go.sum | $(BIN_DIR)
126126
go build -tags=tools -o $(BIN_DIR)/mdbook-releaselink sigs.k8s.io/cluster-api/hack/tools/mdbook/releaselink
127127

128128
MDBOOK_TABULATE := $(BIN_DIR)/mdbook-tabulate
129-
$(MDBOOK_TABULATE): $(BIN_DIR) go.mod go.sum
129+
$(MDBOOK_TABULATE): go.mod go.sum | $(BIN_DIR)
130130
go build -tags=tools -o $(BIN_DIR)/mdbook-tabulate sigs.k8s.io/cluster-api/hack/tools/mdbook/tabulate
131131

132132
MOCKGEN := $(BIN_DIR)/mockgen
133-
$(MOCKGEN): $(BIN_DIR) go.mod go.sum # Build mockgen from tools folder.
133+
$(MOCKGEN): go.mod go.sum | $(BIN_DIR) # Build mockgen from tools folder.
134134
go build -tags=tools -o $@ github.com/golang/mock/mockgen
135135

136136
RELEASE_NOTES := $(BIN_DIR)/release-notes
137-
$(RELEASE_NOTES): $(BIN_DIR) go.mod go.sum
137+
$(RELEASE_NOTES): go.mod go.sum | $(BIN_DIR)
138138
go build -tags tools -o $@ sigs.k8s.io/cluster-api/hack/tools/release
139139

140140
PLANTUML := $(BIN_DIR)/plantuml-sentinal
141-
$(PLANTUML): plantuml.Dockerfile ../../versions.mk
141+
$(PLANTUML): plantuml.Dockerfile ../../versions.mk | $(BIN_DIR)
142142
docker build --build-arg PLANTUML_VERSION=$(PLANTUML_VERSION) . -f plantuml.Dockerfile -t "plantuml-builder"
143143
touch $@
144144

145145
.PHONY: clean
146146
clean: ## Remove all tools
147-
rm -rf bin
148-
rm -rf share
147+
rm -rf $(BIN_DIR)
148+
rm -rf $(SHARE_DIR)

0 commit comments

Comments
 (0)