kube-apply

This commit is contained in:
Gabriel Simmer 2023-11-30 12:09:51 +00:00
parent 07d8ed6fc4
commit e33d45bb13
Signed by: arch
SSH key fingerprint: SHA256:m3OEcdtrnBpMX+2BDGh/byv3hrCekCLzDYMdvGEKPPQ

View file

@ -37,9 +37,9 @@
set +o allexport set +o allexport
''; '';
nativeBuildInputs = [ nativeBuildInputs = [
jq opentofu kubectl awscli2 jq opentofu kubectl
nodePackages.yaml-language-server k9s terraform-ls kubernetes-helm
k9s terraform-ls kubernetes-helm nil nil
]; ];
buildInputs = [ ]; buildInputs = [ ];
}; };
@ -64,6 +64,12 @@
}; };
apps = nixinate.nixinate.x86_64-linux self // { apps = nixinate.nixinate.x86_64-linux self // {
x86_64-linux = { x86_64-linux = {
kube-apply = {
type = "app";
program = toString (pkgs.writers.writeBash "diff" ''
${pkgs.kubectl}/bin/kubectl apply -f ${self.packages.x86_64-linux.kubernetes}
'');
};
kube-diff = { kube-diff = {
type = "app"; type = "app";
program = toString (pkgs.writers.writeBash "diff" '' program = toString (pkgs.writers.writeBash "diff" ''
@ -122,11 +128,6 @@
# use it as an overlay # use it as an overlay
nixpkgs.overlays = [ nixpkgs-wayland.overlay ]; nixpkgs.overlays = [ nixpkgs-wayland.overlay ];
# or, pull specific packages (built against inputs.nixpkgs, usually `nixos-unstable`)
environment.systemPackages = [
nixpkgs-wayland.packages.x86_64-linux.waybar
];
}; };
} }
) )