From cda8bd6e26aa7baa5f7a9ac2ec8a348daec8fe88 Mon Sep 17 00:00:00 2001 From: Matt Moyer Date: Tue, 23 Mar 2021 17:17:14 -0500 Subject: [PATCH 1/2] Allow running CLI-related integration tests with pre-built binary. This allows setting `$PINNIPED_TEST_CLI` to point at an existing `pinniped` CLI binary instead of having the test build one on-the-fly. This is more efficient when you're running the tests across many clusters as we do in CI. Building the CLI from scratch in our CI environment takes 1.5-2 minutes, so this change should save nearly that much time on every test job. Signed-off-by: Matt Moyer --- test/library/cli.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/library/cli.go b/test/library/cli.go index d68e2439..b6618686 100644 --- a/test/library/cli.go +++ b/test/library/cli.go @@ -1,10 +1,11 @@ -// Copyright 2020 the Pinniped contributors. All Rights Reserved. +// Copyright 2020-2021 the Pinniped contributors. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package library import ( "io/ioutil" + "os" "os/exec" "path/filepath" "sync" @@ -24,6 +25,13 @@ var pinnipedCLIBinaryCache struct { // PinnipedCLIPath returns the path to the Pinniped CLI binary, built on demand and cached between tests. func PinnipedCLIPath(t *testing.T) string { t.Helper() + + // Allow a pre-built binary passed in via $PINNIPED_TEST_CLI. This is how our tests run in CI for efficiency. + if ext, ok := os.LookupEnv("PINNIPED_TEST_CLI"); ok { + t.Log("using externally provided pinniped CLI binary") + return ext + } + pinnipedCLIBinaryCache.mutex.Lock() defer pinnipedCLIBinaryCache.mutex.Unlock() path := filepath.Join(testutil.TempDir(t), "pinniped") From 03619fc878647d6b4a050c3789ba1480d2b0e5b3 Mon Sep 17 00:00:00 2001 From: Nanci Lancaster Date: Wed, 24 Mar 2021 18:03:57 -0500 Subject: [PATCH 2/2] Added kubeapps and vmware tanzu logos these logos will be used for the adopters.md file --- site/themes/pinniped/static/img/kubeapps.svg | 1 + .../pinniped/static/img/vmware-tanzu.svg | 57 +++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 site/themes/pinniped/static/img/kubeapps.svg create mode 100644 site/themes/pinniped/static/img/vmware-tanzu.svg diff --git a/site/themes/pinniped/static/img/kubeapps.svg b/site/themes/pinniped/static/img/kubeapps.svg new file mode 100644 index 00000000..e2e9a165 --- /dev/null +++ b/site/themes/pinniped/static/img/kubeapps.svg @@ -0,0 +1 @@ +Logo text \ No newline at end of file diff --git a/site/themes/pinniped/static/img/vmware-tanzu.svg b/site/themes/pinniped/static/img/vmware-tanzu.svg new file mode 100644 index 00000000..c118d4e5 --- /dev/null +++ b/site/themes/pinniped/static/img/vmware-tanzu.svg @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +