-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
308 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
book |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
# Copyright 2021 The Kubernetes Authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
ROOT_DIR_RELATIVE := ../.. | ||
include $(ROOT_DIR_RELATIVE)/common.mk | ||
|
||
# Directories. | ||
MDBOOK := $(TOOLS_BIN_DIR)/mdbook | ||
MDBOOK_EMBED := $(TOOLS_BIN_DIR)/mdbook-embed | ||
MDBOOK_RELEASELINK := $(TOOLS_BIN_DIR)/mdbook-releaselink | ||
MDBOOK_TABULATE := $(TOOLS_BIN_DIR)/mdbook-tabulate | ||
GENCRDAPIREFERENCEDOCS := $(TOOLS_BIN_DIR)/gen-crd-api-reference-docs | ||
GENCRDAPIREFERENCEDOCS_SRCS := $(call rwildcard,.,gen-crd-api-reference-docs/*.*) | ||
CRD_DOCS := src/crd/cluster-api-aws.md src/crd/experimental.md src/crd/eks-control-plane.md | ||
BOOK_SRCS := $(filter-out $(CRD_DOCS), $(call rwildcard,.,*.*)) | ||
|
||
API_DIRS := cmd/clusterawsadm/api/bootstrap/v1beta1 api/v1beta1 exp/api/v1beta1 controlplane/eks/api/v1beta1 bootstrap/eks/api/v1beta1 iam/api/v1beta1 | ||
API_SRCS := $(foreach dir, $(API_DIRS), $(call rwildcard,../../$(dir),*.go)) | ||
GENERATED_SRCS := $(foreach dir, $(API_DIRS),../../$(dir)/zz_generated.deepcopy.go ../../$(dir)/zz_generated.conversion.go ../../$(dir)/zz_generated.defaults.go) | ||
API_FILTERED_SRCS := $(filter-out $(GENERATED_SRCS), $(API_SRCS)) | ||
|
||
OS := $(shell go env GOOS) | ||
ARCH := $(shell go env GOARCH) | ||
PATH := $(abspath $(TOOLS_BIN_DIR)):$(PATH) | ||
export PATH | ||
|
||
src/crd: | ||
mkdir -p src/crd | ||
|
||
src/crd/index.md: $(API_FILTERED_SRCS) src/crd | ||
$(MAKE) gen_crd_docs API_DIR="../.." OUT_FILE=$@ | ||
|
||
.PHONY: gen_crd_docs | ||
gen_crd_docs: $(GENCRDAPIREFERENCEDOCS) src/crd $(GENCRDAPIREFERENCEDOCS_SRCS) | ||
$(GENCRDAPIREFERENCEDOCS) -template-dir gen-crd-api-reference-docs/template -config "gen-crd-api-reference-docs/config.json" \ | ||
-api-dir $(API_DIR) \ | ||
-out-file $(OUT_FILE) | ||
|
||
src/clusterawsadm: | ||
mkdir -p src/clusterawsadm | ||
|
||
terraform/out: | ||
mkdir -p terraform/out | ||
|
||
terraform/out/amilist: terraform/out | ||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o $@ ./cmd/amilist && chmod 755 $@ | ||
|
||
.PHONY: generate | ||
generate: ## Generate any dependent files outside of a build | ||
$(MAKE) -C ../ diagrams | ||
|
||
#src/SUMMARY_CLUSTERAWSADM.md: src/clusterawsadm $(CLUSTERAWSADMCMDREF_SRCS) | ||
# go run ./cmd/clusterawsadmdocs > src/SUMMARY_CLUSTERAWSADM.md | ||
# | ||
## SUMMARY.md doesn't support processor statements, so construct it using cat | ||
#src/SUMMARY.md: src/SUMMARY_PREFIX.md src/SUMMARY_SUFFIX.md | ||
# cat src/SUMMARY_PREFIX.md > src/SUMMARY.md | ||
# cat src/SUMMARY_CLUSTERAWSADM.md >> src/SUMMARY.md | ||
# cat src/SUMMARY_SUFFIX.md >> src/SUMMARY.md | ||
|
||
verify: generate ## Verify that dependent artifacts are up to date | ||
@if !(git diff --quiet HEAD); then \ | ||
git diff; \ | ||
echo "generated files are out of date, run make generate"; exit 1; \ | ||
fi | ||
|
||
BOOK_DEPS := $(BOOK_SRCS) $(MDBOOK) $(MDBOOK_EMBED) $(MDBOOK_RELEASELINK) $(MDBOOK_TABULATE) #src/SUMMARY.md src/crd/index.md | ||
|
||
.PHONY: build | ||
build: $(BOOK_DEPS) ## Build the book | ||
$(MDBOOK) build | ||
|
||
.PHONY: serve | ||
serve: $(BOOK_DEPS) ## Run a local webserver with the compiled book | ||
$(MDBOOK) serve | ||
|
||
.PHONY: clean | ||
clean: | ||
rm -rf book |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[book] | ||
authors = ["The Cluster API Provider IBMCloud Maintainers"] | ||
language = "en" | ||
multilingual = false | ||
src = "src" | ||
title = "Kubernetes Cluster API Provider IBMCloud" | ||
|
||
[output.html] | ||
curly-quotes = true | ||
git-repository-url = "https://sigs.k8s.io/cluster-api-provider-ibmcloud" | ||
|
||
[preprocessor.tabulate] | ||
command = "mdbook-tabulate" | ||
|
||
[preprocessor.embed] | ||
command = "mdbook-embed" | ||
|
||
[preprocessor.releaselink] | ||
command = "mdbook-releaselink" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Summary | ||
|
||
- [Introduction](./introduction.md) | ||
- [Getting Started](./getting-started.md) | ||
- [Topics](./topics/index.md) | ||
- [VPC Cluster](./topics/vpc/index.md) | ||
- [Prerequisites](./topics/vpc/prerequisites.md) | ||
- [Creating a cluster](./topics/vpc/creating-a-cluster.md) | ||
- [Power VS Cluster](./topics/powervs/index.md) | ||
- [Prerequisites](./topics/powervs/prerequisites.md) | ||
- [Creating a cluster](./topics/powervs/creating-a-cluster.md) | ||
- [Developer Guide](./developer/index.md) | ||
- [Rapid iterative development with Tilt](./developer/tilt.md) | ||
- [Release Process](./developer/release.md) | ||
- [Troubleshooting](./user/troubleshooting.md) | ||
- [Reference](./reference/reference.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Developer Guide |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Release Process |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Rapid iterative development with Tilt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Getting Started |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Introduction |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Reference |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Topics |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Creating a cluster |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Power VS Cluster |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Prerequisites |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Creating a cluster |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# VPC Cluster |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Prerequisites |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Troubleshooting |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
bin | ||
share |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.