Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: refactor config file #1267

Merged
merged 10 commits into from
Jan 28, 2024
Merged

feat: refactor config file #1267

merged 10 commits into from
Jan 28, 2024

Conversation

onedr0p
Copy link
Owner

@onedr0p onedr0p commented Jan 28, 2024

Fixes: #1249

  • Completely refactors the config file to be more structured: https://github.com/onedr0p/flux-cluster-template/blob/config-rerefactor/config.sample.yaml
  • Moved config.yaml to the root of the repo. (used to be bootstrap/vars/config.yaml)
  • Flux can be be disabled which will just generate the cluster bootstrap configuration. This is helpful if people want to go at Flux their own way, or use another tool for managing Kubernetes (e.g. Argo, kubectl, kluctl etc..)
  • Cloudflare can be disabled if Flux is enabled. This is helpful if people want to go at DNS, TLS and Tunneling their own way instead of using Cloudflare. Disabling Cloudflare will make it so the entire network namespace is omitted when templating out the Flux resources, also no cert-manager issuers or flux webhook ingresses are created.
  • Added conditions to the helm repos, and only templates them when needed.
  • Moved kubeconform.sh to ./scripts directory since it is used by taskfiles and github workflows

Validation has been changed to bare bones checks until I can get a better way to handle this using Pydantic or whatever.

Signed-off-by: Devin Buhl <devin@buhl.casa>
@github-actions github-actions bot added area/github Changes made in the github directory area/bootstrap Changes made in the bootstrap directory area/taskfile labels Jan 28, 2024
Signed-off-by: Devin Buhl <devin@buhl.casa>
Signed-off-by: Devin Buhl <devin@buhl.casa>
Signed-off-by: Devin Buhl <devin@buhl.casa>
Signed-off-by: Devin Buhl <devin@buhl.casa>
Signed-off-by: Devin Buhl <devin@buhl.casa>
Signed-off-by: Devin Buhl <devin@buhl.casa>
Signed-off-by: Devin Buhl <devin@buhl.casa>
Signed-off-by: Devin Buhl <devin@buhl.casa>
Signed-off-by: Devin Buhl <devin@buhl.casa>
@onedr0p onedr0p merged commit 889ca07 into main Jan 28, 2024
5 checks passed
@onedr0p onedr0p deleted the config-rerefactor branch January 28, 2024 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/bootstrap Changes made in the bootstrap directory area/github Changes made in the github directory area/taskfile
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make the config file more structured
1 participant