Skip to content

Commit

Permalink
argocd: upgrade to 2.13.2
Browse files Browse the repository at this point in the history
argocd: add fish completions
  • Loading branch information
znd4 committed Nov 22, 2024
1 parent 72f6884 commit eabcdd8
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions pkgs/by-name/ar/argocd/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

buildGoModule rec {
pname = "argocd";
version = "2.12.6";
version = "2.13.1";

src = fetchFromGitHub {
owner = "argoproj";
repo = "argo-cd";
rev = "v${version}";
hash = "sha256-Lu0RUCSOrNNQ17CZGv/+ic3jPz4+3433JjwnjVzYzF4=";
hash = "sha256-0qL9CnEwEp7sJK7u6EKHVFY/hH8lTb182HZ3r+9nIyQ=";
};

proxyVendor = true; # darwin/linux hash mismatch
vendorHash = "sha256-8BX0QErfe2mxTbIToNgZ3U9OtpIy887936U68Qr+3W0=";
vendorHash = "sha256-p+9Q9VOdN7v7iK5oaO5f+B1iyOwVdk672zQsYsrb398=";

# Set target as ./cmd per cli-local
# https://github.com/argoproj/argo-cd/blob/master/Makefile#L227
Expand All @@ -27,10 +27,10 @@ buildGoModule rec {
"-X ${package_url}.gitCommit=${src.rev}"
"-X ${package_url}.gitTag=${src.rev}"
"-X ${package_url}.gitTreeState=clean"
"-X ${package_url}.kubectlVersion=v0.24.2"
"-X ${package_url}.kubectlVersion=v0.31.2"
# NOTE: Update kubectlVersion when upgrading this package with
# https://github.com/argoproj/argo-cd/blob/v${version}/go.mod#L95
# Per https://github.com/argoproj/argo-cd/blob/master/Makefile#L18
# https://github.com/search?q=repo%3Aargoproj%2Fargo-cd+%22k8s.io%2Fkubectl%22+path%3Ago.mod&type=code
# Per https://github.com/search?q=repo%3Aargoproj%2Fargo-cd+%22KUBECTL_VERSION%3D%22+path%3AMakefile&type=code
# Will need a way to automate it :P
];

Expand All @@ -51,6 +51,7 @@ buildGoModule rec {
postInstall = ''
installShellCompletion --cmd argocd \
--bash <($out/bin/argocd completion bash) \
--fish <($out/bin/argocd completion fish) \
--zsh <($out/bin/argocd completion zsh)
'';

Expand Down

0 comments on commit eabcdd8

Please sign in to comment.