diff --git a/content/en/flux/components/kustomize/.gitignore b/content/en/flux/components/kustomize/.gitignore index 86bb6f59d..db062c043 100644 --- a/content/en/flux/components/kustomize/.gitignore +++ b/content/en/flux/components/kustomize/.gitignore @@ -1,2 +1,2 @@ -api.md +api/v*.md kustomization.md diff --git a/content/en/flux/components/kustomize/api/_index.md b/content/en/flux/components/kustomize/api/_index.md new file mode 100644 index 000000000..ea8b91346 --- /dev/null +++ b/content/en/flux/components/kustomize/api/_index.md @@ -0,0 +1,5 @@ +--- +title: API Reference +linkTitle: API Reference +weight: 1000 +--- diff --git a/content/en/flux/components/kustomize/options.md b/content/en/flux/components/kustomize/options.md index bb0137806..629998beb 100644 --- a/content/en/flux/components/kustomize/options.md +++ b/content/en/flux/components/kustomize/options.md @@ -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, diff --git a/hack/import-flux2-assets.sh b/hack/import-flux2-assets.sh index 20e5e1c68..63fe98f3e 100755 --- a/hack/import-flux2-assets.sh +++ b/hack/import-flux2-assets.sh @@ -120,7 +120,7 @@ gen_crd_doc() { { # source-controller CRDs - SOURCE_VER="gitrepository-v1" + SOURCE_VER="main" gen_crd_doc "https://raw.githubusercontent.com/fluxcd/source-controller/$SOURCE_VER/docs/api/v1/source.md" "$COMPONENTS_DIR/source/api/v1.md" "HUGETABLE" gen_crd_doc "https://raw.githubusercontent.com/fluxcd/source-controller/$SOURCE_VER/docs/api/v1beta2/source.md" "$COMPONENTS_DIR/source/api/v1beta2.md" "HUGETABLE" SOURCE_CRD_VER="v1" @@ -134,9 +134,9 @@ gen_crd_doc() { { # kustomize-controller CRDs - KUSTOMIZE_VER="$(controller_version kustomize-controller)" - gen_crd_doc "https://raw.githubusercontent.com/fluxcd/kustomize-controller/$KUSTOMIZE_VER/docs/api/kustomize.md" "$COMPONENTS_DIR/kustomize/api.md" "HUGETABLE" - gen_crd_doc "https://raw.githubusercontent.com/fluxcd/kustomize-controller/$KUSTOMIZE_VER/docs/spec/v1beta2/kustomization.md" "$COMPONENTS_DIR/kustomize/kustomization.md" + KUSTOMIZE_VER="api-v1" + gen_crd_doc "https://raw.githubusercontent.com/fluxcd/kustomize-controller/$KUSTOMIZE_VER/docs/api/kustomize.md" "$COMPONENTS_DIR/kustomize/api/v1.md" "HUGETABLE" + gen_crd_doc "https://raw.githubusercontent.com/fluxcd/kustomize-controller/$KUSTOMIZE_VER/docs/spec/v1/kustomization.md" "$COMPONENTS_DIR/kustomize/kustomization.md" } {