2024-01-25 14:12:00 +00:00
|
|
|
{ buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, testers
|
|
|
|
, argocd-vault-plugin
|
|
|
|
}:
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "argocd-vault-plugin";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "1.18.1";
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "argoproj-labs";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-rWNR4GVivuEprdX/xhwk/9SReeJ19UWDWx8Bf8z6CTI=";
|
2023-02-09 11:40:11 +00:00
|
|
|
};
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
vendorHash = "sha256-iZ3WWM5p0UuKpdLq6wczLtgX01q6Vtx8j/XCAH+4POs=";
|
2023-02-09 11:40:11 +00:00
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
ldflags = [
|
|
|
|
"-X=github.com/argoproj-labs/argocd-vault-plugin/version.Version=v${version}"
|
|
|
|
"-X=github.com/argoproj-labs/argocd-vault-plugin/version.BuildDate=1970-01-01T00:00:00Z"
|
|
|
|
"-X=github.com/argoproj-labs/argocd-vault-plugin/version.CommitSHA=unknown"
|
|
|
|
];
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
# integration tests require filesystem and network access for credentials
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
doInstallCheck = true;
|
|
|
|
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = argocd-vault-plugin;
|
|
|
|
command = "argocd-vault-plugin version";
|
|
|
|
version = "argocd-vault-plugin v${version} (unknown) BuildDate: 1970-01-01T00:00:00Z";
|
|
|
|
};
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://argocd-vault-plugin.readthedocs.io";
|
|
|
|
changelog = "https://github.com/argoproj-labs/argocd-vault-plugin/releases/tag/v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Argo CD plugin to retrieve secrets from Secret Management tools and inject them into Kubernetes secrets";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "argocd-vault-plugin";
|
2023-02-09 11:40:11 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ urandom ];
|
|
|
|
};
|
|
|
|
}
|