mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 08:00:06 +01:00
flake: format
This commit is contained in:
parent
ea8fe3bd9c
commit
9492528225
3 changed files with 34 additions and 36 deletions
|
|
@ -21,11 +21,11 @@ For example, to patch the deployment created by the release above:
|
|||
kubernetes.resources.deployments.nginx = {
|
||||
# be sure to match the corresponding namespace as well
|
||||
metadata.namespace = "default";
|
||||
# here we can configure anything and are no longer bound by `values.yaml`
|
||||
# here we can configure anything and are no longer bound by `values.yaml`
|
||||
spec.template.spec.containers.nginx.env = [{
|
||||
name = "MY_VARIABLE";
|
||||
value = "100";
|
||||
}];
|
||||
};
|
||||
}
|
||||
```
|
||||
```
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ As such, on a server node, we can write kubenix's output there.
|
|||
```nix
|
||||
{
|
||||
# let's write `resultYAML` to an arbitrary file under `/etc`
|
||||
environment.etc."kubenix.yaml".source =
|
||||
environment.etc."kubenix.yaml".source =
|
||||
(kubenix.evalModules.x86_64-linux {
|
||||
module = { kubenix, ... }: {
|
||||
imports = [ kubenix.modules.k8s ];
|
||||
|
|
@ -20,6 +20,7 @@ As such, on a server node, we can write kubenix's output there.
|
|||
'';
|
||||
}
|
||||
```
|
||||
|
||||
{{< hint danger >}}
|
||||
**WARN**: this will write all manifests to the nix store and is therefore not suitable for inline sensitive data.
|
||||
{{< /hint >}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue