Skip to content

Instantly share code, notes, and snippets.

@a-bruhn
a-bruhn / README.md
Last active May 8, 2025 07:35
Simpler settings for python

Pydantic is a great tool all around and can be used to load and validate app settings. The problem is, that this usually results in a lot of environment variables having to be set, which is suboptimal for kubernetes deployments. See a typical example in this configuration module pydantic_settings_version.py.

Instead we usually want to mount our configurations as secrets and configmaps and merge them all together:

  • configuration.yaml
  • secret.yaml

Unfortunately, pydantic does not offer the same partial-merging

@a-bruhn
a-bruhn / .gitlab-ci.yml
Created March 29, 2024 16:14 — forked from LukeMathWalker/.gitlab-ci.yml
GitLab CI - Rust setup
image: "rust:latest"
default:
before_script:
- rustc --version
- cargo --version
stages:
- test
@a-bruhn
a-bruhn / config.yml
Created March 29, 2024 16:13 — forked from LukeMathWalker/config.yml
CircleCI - Rust setup
version: 2
jobs:
build-and-test:
docker:
- image: cimg/rust:1.69
environment:
# Fail the build if there are warnings
RUSTFLAGS: '-D warnings'
steps:
- checkout