Skip to content

Commit

Permalink
cluster: add nixified cdr for cilium
Browse files Browse the repository at this point in the history
Signed-off-by: aserowy <serowy@hotmail.com>
  • Loading branch information
aserowy committed Nov 8, 2024
1 parent 958320e commit 11eda4e
Show file tree
Hide file tree
Showing 3 changed files with 8,999 additions and 27 deletions.
36 changes: 11 additions & 25 deletions .dev/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{ nixidy, pkgs }:
{
self,
nixidy,
pkgs,
}:
with pkgs;
mkShell {
buildInputs = [
packages = [
doas-sudo-shim
kubectl
nixd
Expand All @@ -16,27 +20,9 @@ mkShell {
sumneko-lua-language-server
taplo
];
}

# a14y

# packages = {
# nixidy = nixidy.packages.${system}.default;
# generators = {
# cilium = nixidy.packages.${system}.generators.fromCRD {
# name = "cilium";
# src = pkgs.fetchFromGitHub {
# owner = "cilium";
# repo = "cilium";
# rev = "v1.16.0";
# hash = "sha256-LJrNGHF52hdKCuVwjvGifqsH+8hxkf/A3LZNpCHeR7E=";
# };
# crds = [
# "pkg/k8s/apis/cilium.io/client/crds/v2/ciliumnetworkpolicies.yaml"
# "pkg/k8s/apis/cilium.io/client/crds/v2/ciliumclusterwidenetworkpolicies.yaml"
# ];
# };
#
#
# echo "generate cilium"
# cat ${self.packages.${system}.generators.cilium} > modules/cilium/generated.nix
shellHook = ''
echo "generate cilium"
cat ${self.packages.${pkgs.system}.generators.cilium} > ./cluster/cdr/cilium.nix
'';
}
Loading

0 comments on commit 11eda4e

Please sign in to comment.