Commit graph

409 commits

Author SHA1 Message Date
Technofab
3c7ebe910a
Merge branch 'hall:main' into main 2024-11-12 18:13:52 +01:00
Zaunei
d6ddf1b4e8
fix: README typo rev -> ref (#70) 2024-06-25 07:00:14 -04:00
Luiz Ribeiro
a04066c455
Suffix PATH on kubenix script (#67)
Fixes #66

Setting the `PATH` to `$out/bin` is causing programs from the original `PATH` (such as `gpg`) to be inaccessible to `vals` - causing decryption of sops secrets with `gpg` to fail.
2024-06-11 08:57:23 -04:00
Xavier Maillard
823cc87e64
update k8s supported versions (#68) 2024-06-11 08:55:23 -04:00
Cody McGinnis
b5dc95c847
allow kubeconfig to not be set (#65)
Co-authored-by: Cody McGinnis <cody@mcginnis.dev>
2024-06-04 14:06:09 -04:00
pizzapim
060f475729
Fix Bash expansion in kubeconfig path of CLI script (#63)
* Fix $HOME expansion in CLI script

* Allow overwriting kubeconfig at run-time of CLI script
2024-05-08 19:34:29 -04:00
pizzapim
c00c78b982
Package Kubenix script (#62)
* Package Kubenix script

* Update changelog

* Fix hardcoded kubeconfig

* Expose generated manifest with Kubenix CLI derivation passthru
2024-05-06 19:33:26 -04:00
Adrian
5692af23e0
fix undefined variable in nix 2.21 (#58)
closes #57
2024-03-26 15:10:55 -04:00
ddfdd8d090 feat: add file module 2024-03-08 15:36:47 +01:00
pizzapim
76b8053b27
fix unbound variable 'config' in resultYAML (#51) 2024-01-20 20:39:41 -05:00
Bryton Hall
e4d0365764 docs: bump hugo-book theme 2023-11-16 01:30:23 -05:00
Felix Scheinost
fceda84514
Fix default of helm.releases.<>.apiVersions (#42)
The previous value included only the `<group>.<version>`, e.g. `monitoring.coreos.com/v1`.

But Helm charts actually also check for e.g. `monitoring.coreos.com/v1/ServiceMonitor`. For this reason we need both.
2023-11-09 21:02:55 -05:00
Felix Scheinost
ea469ff77a
helm: add support for --api-versions (#38) 2023-10-18 11:45:20 -04:00
Matej Cotman
473fb3ae50 feat(k8s): add function for injecting names from hashed data objects (#33) 2023-09-25 22:05:18 -04:00
Bryton Hall
71cb0a2a47 github: bump deploy-pages action to v2 2023-08-26 17:59:46 -04:00
Bryton Hall
5e46569c9a docs: remove extra spacing around source file links 2023-08-26 17:59:12 -04:00
Bryton Hall
08740f5f55 remove evalnix package from devShell
I _think_ this is redundant with the flake checks (and if not, maybe it
should be); either way, I'm gonna remove it now for simplicity but can
always add it back if it turns out to be irreplaceable.
2023-07-08 00:06:06 -04:00
Bryton Hall
5fd83ecd81 rearrange flake output attributes 2023-07-08 00:05:17 -04:00
Bryton Hall
5a28ca925b remove fd and hugo from devShell 2023-07-07 23:54:14 -04:00
Bryton Hall
df4d8f80a1 follow nixpkgs in treefmt inputs 2023-07-07 23:51:35 -04:00
Bryton Hall
b231710109 replace flake-utils input with nix-systems
We're only using `eachDefaultSystem` from flake-utils so pulling it in is
a bit overkill; using the underlying nix-systems dependency directly brings
us closer to a "stock" flake format without adding unnecessary burden.
2023-07-07 23:44:44 -04:00
Bryton Hall
f7f2df7119 remove local kubectl and kubernetes packages
A comment added in the original commit suggests these were only used as
more up-to-date versions relative to those in nixpkgs. That's no longer
the case and I'm not sure there's good reason to maintain theme here.

I'm happy to reconsider but will remove them for now.
2023-07-07 23:13:43 -04:00
Bryton Hall
2712e89716 switch formatting to nixpkgs-fmt 2023-07-07 22:01:49 -04:00
Bryton Hall
3598716c73 remove usage of mkApp from flake-utils 2023-07-07 17:52:39 -04:00
Bryton Hall
ef5f5b3c89 move generator jobs into pkgs 2023-07-07 17:50:26 -04:00
Bryton Hall
7a64a0f599 docs: redeploy site when README.md changes 2023-07-07 01:16:48 -04:00
Bryton Hall
07ba711056
pkgs(kubenix): overhaul and drop support for the helm CLI (#24)
This is a relatively large re-design which

 - removes usage of the Helm CLI
 - expects users to override the default package
 - performs an interactive diff, confirm, apply by default
 - prunes removed resources
2023-07-07 00:33:25 -04:00
Bryton Hall
ccfd0d16c1 flake: remove non-existent nixpkgs input to flake-utils 2023-07-06 22:44:01 -04:00
Bryton Hall
098edd1266 docs: reformat hugo toml config to yaml
This is the only toml file in the repo now so lets just stick with yaml
which is a far more common format given the context of this project.
2023-07-06 22:37:21 -04:00
Bryton Hall
c70834ccb9 switch to treefmt module 2023-07-06 22:36:37 -04:00
Bryton Hall
319912f5f2 vscode: don't show submodule in sidebar 2023-07-06 22:27:53 -04:00
Bryton Hall
79db5442b5
add release process and cut version 0.1.0 (#29)
Adding CI steps to tag releases following CHANGELOG entries to reduce
unknowns and provide an easy way to communicate relevant changes.
2023-07-06 22:24:02 -04:00
Bryton Hall
60a5a28db7 docs: pin deployment example image and fix config
This fixes issue #28 in which the pod fails to start due to a duplicate
directive; it also pins the nginx version to avoid further breaking
changes.
2023-07-05 20:59:52 -04:00
Felix Scheinost
e77a3898de
Replace remarshal with yq (#26)
Remarshal doesn’t seem to be maintained anymore.

It is also affected by upstream bugs like https://github.com/yaml/pyyaml/issues/89 which affects e.g. prometheus-operator CRDs.
2023-06-19 12:14:20 -04:00
Bryton Hall
0456c92538 docs: use text attribute for default/example 2023-06-13 18:32:09 -04:00
Bryton Hall
2b8e452ef2 add support for kubernetes 1.27 2023-06-13 16:38:33 -04:00
Bryton Hall
0bb45c7161 docs: preserve paragraph breaks in module option descriptions 2023-06-13 01:45:52 -04:00
Bryton Hall
67e1d98464 helm: add noHooks option 2023-06-12 02:41:00 -04:00
Bryton Hall
9492528225 flake: format 2023-06-12 02:37:45 -04:00
Bryton Hall
ea8fe3bd9c docs: fix CLI flake package name 2023-06-12 00:01:53 -04:00
Bryton Hall
32dc1a09cb flake: format 2023-06-11 23:53:55 -04:00
Bryton Hall
5d95447b75 pkgs(vals): remove in favor of nixpkgs derivation 2023-06-11 23:53:22 -04:00
Bryton Hall
ab39f9e06d flake: update 2023-06-11 23:51:11 -04:00
Bryton Hall
9fe3b49493 docs: add k3s tip on auto-deploying manifests 2023-06-11 23:02:48 -04:00
Bryton Hall
c577e3e887 docs: add vals example for secrets 2023-06-11 23:02:06 -04:00
Bryton Hall
6c27c1d52b docs: add helm section on patching resources 2023-06-11 23:01:19 -04:00
Bryton Hall
baa1a6c949 flake: format 2023-06-03 03:11:07 -04:00
Bryton Hall
eb3ec20f46 flake: fix testing by hardcoding system
This is meant as a stopgap. I'm not quite sure how but we should use
the current system (which is not available under builtins in a pure
evaluation).
2023-06-03 03:08:37 -04:00
Bryton Hall
6764ef284f docs: add "edit this page" links 2023-06-03 02:47:30 -04:00
Bryton Hall
f83205c920 docs: inline hyperlink to example source files 2023-06-03 02:39:16 -04:00