From 0e71d27a8d9841dcd58ba3d416144dd287c92706 Mon Sep 17 00:00:00 2001 From: andrejrabcenko Date: Mon, 21 Aug 2023 23:10:56 +0300 Subject: [PATCH] github.com/kubernetes-sigs/aws-iam-authenticator --- .../aws-iam-authenticator/package.yml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 projects/github.com/kubernetes-sigs/aws-iam-authenticator/package.yml diff --git a/projects/github.com/kubernetes-sigs/aws-iam-authenticator/package.yml b/projects/github.com/kubernetes-sigs/aws-iam-authenticator/package.yml new file mode 100644 index 00000000..d83cf729 --- /dev/null +++ b/projects/github.com/kubernetes-sigs/aws-iam-authenticator/package.yml @@ -0,0 +1,27 @@ +distributable: + url: https://github.com/kubernetes-sigs/aws-iam-authenticator/archive/v{{version}}.tar.gz + strip-components: 1 +versions: + github: kubernetes-sigs/aws-iam-authenticator +build: + dependencies: + go.dev: '*' + script: + - go build $GO_ARGS -ldflags="$LDFLAGS" ./cmd/aws-iam-authenticator + env: + GO_ARGS: + - -v + - -trimpath + - -o="{{prefix}}/bin/aws-iam-authenticator" + LDFLAGS: + - -s + - -w + - "-X sigs.k8s.io/aws-iam-authenticator/pkg.Version={{version}}" +provides: + - bin/aws-iam-authenticator +test: + script: + - aws-iam-authenticator version | grep {{version}} + - aws-iam-authenticator init -i test + - cat key.pem | grep "BEGIN RSA PRIVATE KEY" + - cat cert.pem | grep "BEGIN CERTIFICATE" \ No newline at end of file