nixpkgs/pkgs/applications/networking/cluster/k3s
Artturin e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
..
1_28 k3s_1_28: 1.28.12+k3s1 -> 1.28.13+k3s1 2024-09-03 15:14:35 +02:00
1_29 k3s_1_29: 1.29.7+k3s2 -> 1.29.8+k3s1 2024-09-03 15:31:25 +02:00
1_30 k3s_1_30: 1.30.3+k3s1 -> 1.30.4+k3s1 2024-09-03 15:41:49 +02:00
1_31 k3s_1_31: init 1.31.0+k3s1 2024-09-03 21:03:39 +02:00
docs nixos/k3s: replace deprecated extra flag in usage example 2024-09-18 18:59:52 +02:00
builder.nix treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
default.nix k3s_1_31: init 1.31.0+k3s1 2024-09-03 21:03:39 +02:00
README.md k3s: documentation overhaul 2024-06-06 08:07:55 -05:00
update-script.sh k3s_1_31: init 1.31.0+k3s1 2024-09-03 21:03:39 +02:00

K3s

K3s is a simplified Kubernetes version that bundles Kubernetes cluster components into a few small binaries optimized for Edge and IoT devices.

Usage

Configuration Examples

Cluster Maintenance and Troubleshooting

K3s Package Upkeep