diff --git a/README.md b/README.md index 7cf1335..7758e6a 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ First [install Stackspin](https://docs.stackspin.net/en/latest/installation/inst Then apply the configuration to your cluster: ```sh -install.sh +./install.sh ``` Done! @@ -118,4 +118,6 @@ but for clarity I omitted it beyond the initial one. Clouds are created not via Flux GitOps, but through one-time scripts. -![Flux Diagram](./stackspout.png) +![Flux Diagram](util/stackspout.png) + +See also https://about.ftt.gmbh/projects/polygon.html#state-of-stackspout-2022 diff --git a/install.sh b/install.sh index 1e3e943..18f54bc 100755 --- a/install.sh +++ b/install.sh @@ -14,3 +14,8 @@ flux create kustomization stackspout \ --path="./infrastructure/kustomizations/" \ --prune=true \ --interval=5m + +flux bootstrap git \ + --url=https://open.greenhost.net/xeruf/stackspout.git \ + --branch=main \ + --path=util/flux diff --git a/adopt-secrets.sh b/util/adopt-secrets.sh similarity index 100% rename from adopt-secrets.sh rename to util/adopt-secrets.sh diff --git a/util/flux/gotk-components.yaml b/util/flux/gotk-components.yaml new file mode 100644 index 0000000..e69de29 diff --git a/util/flux/gotk-sync.yaml b/util/flux/gotk-sync.yaml new file mode 100644 index 0000000..e69de29 diff --git a/overrides/source-controller-patch.yaml b/util/flux/source-controller-patch.yaml similarity index 70% rename from overrides/source-controller-patch.yaml rename to util/flux/source-controller-patch.yaml index 4f4c69f..32e6bda 100644 --- a/overrides/source-controller-patch.yaml +++ b/util/flux/source-controller-patch.yaml @@ -1,8 +1,9 @@ +# https://fluxcd.io/flux/installation/configuration/boostrap-customization/ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization -metadata: - name: source-controller-patch - namespace: flux-system +resources: # manifests generated during bootstrap + - gotk-components.yaml + - gotk-sync.yaml patches: - patch: | - op: add diff --git a/stackspin-local-path-provisioner-override.yaml b/util/stackspin-local-path-provisioner-override.yaml similarity index 100% rename from stackspin-local-path-provisioner-override.yaml rename to util/stackspin-local-path-provisioner-override.yaml diff --git a/stackspout.png b/util/stackspout.png similarity index 100% rename from stackspout.png rename to util/stackspout.png