I need help with structuring my cicd / deployment repo. Currently I have (among other…
- User
I need help with structuring my cicd / deployment repo. Currently I have (among other dirs) the following directories:
src (contains kcl files that are used to template everything that is rolled out) common (common source files that are imported by others) cluster-1 (template files for cluster-1) app (source for kubernetes manifests that are deployed) cluster (source for talos configuration (os layer)) infra (infrastructure that is provided via terraform) cluster-2 ... ... artifacts cluster-1 app (deployment files for cluster) cluster (controlplane.yaml and worker.yaml for talos) cluster-2 ... ... scripts (utility scripts)Perspectively all files that currently live under "artifacts" in the same repo could also be commited to a seperate gitops repo. But currently it is easier that way.
I am unsure about the following. Conceptually the flow is src -> artifacts. In src there are source files that generate artifacts. Only artifacts are then deployed in the end. But then I have this infa folder with terraform that lies somewhere in between. It somehow defines source that is "deployed". The terraform state sits there too. And there is no generated "terraform manifest". The terraform variables might be generated via templating by kcl. So that looks like a reason to put it into the src folder. But still I am unsure. What do you think or propose?
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.