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-01-02 11:29:13 +00:00
|
|
|
version = "1.17.0";
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "argoproj-labs";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-YH7yNRaKdYzasaxYSManuiImyxglmIwgLvDKjUg3MR8=";
|
2023-02-09 11:40:11 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
vendorHash = "sha256-0PrGrcS8Gx0cVImGrlmXlycFgWCTLjg2ISi0OhYoPpw=";
|
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}";
|
|
|
|
description = "An Argo CD plugin to retrieve secrets from Secret Management tools and inject them into Kubernetes secrets";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ urandom ];
|
|
|
|
};
|
|
|
|
}
|