Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generalize import-flux2-assets.sh script
This is the first step towards supporting multiple versions of Flux to be documented in parallel. The script has been condensed to only require a single input parameter denoting the desired Flux major and minor version for which to build the documentation. This parameter is read from the environment variable `BRANCH` (which Netlify) automatically provides and has to be either `main` or have the format `vX-Y` which `X` denoting the major and `Y` denoting the minor version desired to build the docs for. The intent is to have branches following this naming pattern that Netlify will directly deploy under the URL vX-Y.fluxcd.io. The changed import-flux2-assets.sh script now conducts the following steps in order to generate the docs for a specific version: 1. Find most recent patch version of Flux matching the given `BRANCH`. 2. For each controller fetch the `kustomization.yaml` from https://github.com/fluxcd/flux2/blob/FLUX_VERSION/manifests/bases/CONTROLLER/kustomization.yaml 3. From there fetch the `*.crds.yaml` file and the controller version. 4. For each CRD group version fetch the API docs from the controller repository as well as the spec docs. Some special cases remain, e.g. for IRC/IAC which are supposed to be documented under the same main navigation entry and for NC's `Event` type which is not a CRD. refs #1534 Co-authored-by: Kingdon Barrett <kingdon@weave.works> Signed-off-by: Max Jonas Werner <mail@makk.es> Signed-off-by: Kingdon Barrett <kingdon@weave.works>
- Loading branch information
Showing
13 changed files
with
148 additions
and
86 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,6 @@ static/install.sh | |
|
||
# local GH token, used for some scripts | ||
.gh-token | ||
|
||
# build directories | ||
/bin |
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
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
api.md | ||
api/v*.md | ||
helmreleases.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,5 @@ | ||
--- | ||
title: API Reference | ||
linkTitle: API Reference | ||
weight: 1000 | ||
--- |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
automation-api.md | ||
automation-api/v*.md | ||
reflector-api/v*.md | ||
imagepolicies.md | ||
imagerepositories.md | ||
imageupdateautomations.md | ||
reflector-api.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,5 @@ | ||
--- | ||
title: Image Update Automation API Reference | ||
linkTitle: Image Update Automation API Reference | ||
weight: 70 | ||
--- |
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,5 @@ | ||
--- | ||
title: Image Reflector API Reference | ||
linkTitle: Image Reflector API Reference | ||
weight: 70 | ||
--- |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
api/v*.md | ||
kustomization.md | ||
kustomizations.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
alert.md | ||
alerts.md | ||
api/v*.md | ||
event.md | ||
provider.md | ||
receiver.md | ||
events.md | ||
providers.md | ||
receivers.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