-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
nixos/k3s: add autoDeployCharts
option and use systemd-tmpfiles for content activation
#374017
base: master
Are you sure you want to change the base?
Conversation
9f680c6
to
5ffa146
Compare
@@ -361,6 +361,8 @@ | |||
- The paperless module now has an option for regular automatic export of | |||
documents data using the integrated document exporter. | |||
|
|||
- `services.k3s` now provides the [](#opt-services.k3s.autoDeployCharts) option that allows to automatically deploy Helm charts via the k3s Helm controller. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- `services.k3s` now provides the [](#opt-services.k3s.autoDeployCharts) option that allows to automatically deploy Helm charts via the k3s Helm controller. | |
- `services.k3s` now provides the [](#opt-services.k3s.autoDeployCharts) option that allows to automatically deploy Helm charts via the k3s Helm controller. |
[]
is empty. Rendering is:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh true, now that you say it I'm not even sure that this kind of option referencing works outside of option descriptions. I changed it to autoDeployCharts
for now.
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/declaring-k3s-with-helm-and-cluster/56787/9 |
5ab580e
to
2e1b724
Compare
The `autoDeployCharts` option further improves the auto deploying capabilities of the k3s module by allowing to deploy and configure Helm charts that are then instaled via the k3s Helm controller. Although this was also previously possible by using auto deploying manifests, it required some knowledge of the k3s Helm controller and led to a lot of boilerplate code.
Formerly a `ExecStartPre` script was used to link k3s content. Building the script got fairly messy and it had some footguns like forgetting to create parent directories before linking or silent overriding of existing links.
2e1b724
to
52444bd
Compare
Things done
The
autoDeployCharts
option further improves the auto deployingcapabilities of the k3s module by allowing to deploy and configure Helm charts
that are then instaled via the k3s Helm controller. Although this was
also previously possible by using auto deploying manifests, it required
some knowledge of the k3s Helm controller and led to a lot of
boilerplate code.
In the process I noticed how messy and fragile the
activateK3sContent
script was. Therefore a second commit replaces the script with systemd-tmpfiles.Building the script got fairly messy and it had some footguns like
forgetting to create parent directories before linking or silent
overriding of existing links.
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)@NixOS/k3s
Add a 👍 reaction to pull requests you find important.