From 2e04c9a200c4ba3450c3175d25b20bd88e008751 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Volkan=20=C3=96z=C3=A7elik?= Date: Thu, 26 Sep 2024 20:08:02 -0700 Subject: [PATCH] add helper scripts to workshop (#1141) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Volkan Özçelik --- examples/workshop_spiffe_federation/README.md | 4 ++-- .../clusters/azmodan/hack/federate.sh | 15 +++++++++++++++ .../clusters/baal/hack/federate.sh | 15 +++++++++++++++ .../clusters/diablo/hack/federate.sh | 15 +++++++++++++++ .../clusters/mephisto/hack/federate.sh | 15 +++++++++++++++ 5 files changed, 62 insertions(+), 2 deletions(-) create mode 100755 examples/workshop_spiffe_federation/clusters/azmodan/hack/federate.sh create mode 100755 examples/workshop_spiffe_federation/clusters/baal/hack/federate.sh create mode 100755 examples/workshop_spiffe_federation/clusters/diablo/hack/federate.sh create mode 100755 examples/workshop_spiffe_federation/clusters/mephisto/hack/federate.sh diff --git a/examples/workshop_spiffe_federation/README.md b/examples/workshop_spiffe_federation/README.md index 9f97cdd7..9e836650 100644 --- a/examples/workshop_spiffe_federation/README.md +++ b/examples/workshop_spiffe_federation/README.md @@ -42,8 +42,8 @@ After ensuring that SPIRE is up and running in all the clusters, execute the following in each cluster. ```bash -go run ./hack/federate.go -./hack/set-initial-bundle.sh +cd ./hack +./federate.sh ``` ## Deploy the Workloads diff --git a/examples/workshop_spiffe_federation/clusters/azmodan/hack/federate.sh b/examples/workshop_spiffe_federation/clusters/azmodan/hack/federate.sh new file mode 100755 index 00000000..d95ac31f --- /dev/null +++ b/examples/workshop_spiffe_federation/clusters/azmodan/hack/federate.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +# /* +# | Protect your secrets, protect your sensitive data. +# : Explore VMware Secrets Manager docs at https://vsecm.com/ +# / keep your secrets... secret +# >/ +# <>/' Copyright 2023-present VMware Secrets Manager contributors. +# >/' SPDX-License-Identifier: BSD-2-Clause +# */ + +go run federate.go +./set-initial-bundle.sh +echo "Federation established." diff --git a/examples/workshop_spiffe_federation/clusters/baal/hack/federate.sh b/examples/workshop_spiffe_federation/clusters/baal/hack/federate.sh new file mode 100755 index 00000000..d95ac31f --- /dev/null +++ b/examples/workshop_spiffe_federation/clusters/baal/hack/federate.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +# /* +# | Protect your secrets, protect your sensitive data. +# : Explore VMware Secrets Manager docs at https://vsecm.com/ +# / keep your secrets... secret +# >/ +# <>/' Copyright 2023-present VMware Secrets Manager contributors. +# >/' SPDX-License-Identifier: BSD-2-Clause +# */ + +go run federate.go +./set-initial-bundle.sh +echo "Federation established." diff --git a/examples/workshop_spiffe_federation/clusters/diablo/hack/federate.sh b/examples/workshop_spiffe_federation/clusters/diablo/hack/federate.sh new file mode 100755 index 00000000..d95ac31f --- /dev/null +++ b/examples/workshop_spiffe_federation/clusters/diablo/hack/federate.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +# /* +# | Protect your secrets, protect your sensitive data. +# : Explore VMware Secrets Manager docs at https://vsecm.com/ +# / keep your secrets... secret +# >/ +# <>/' Copyright 2023-present VMware Secrets Manager contributors. +# >/' SPDX-License-Identifier: BSD-2-Clause +# */ + +go run federate.go +./set-initial-bundle.sh +echo "Federation established." diff --git a/examples/workshop_spiffe_federation/clusters/mephisto/hack/federate.sh b/examples/workshop_spiffe_federation/clusters/mephisto/hack/federate.sh new file mode 100755 index 00000000..d95ac31f --- /dev/null +++ b/examples/workshop_spiffe_federation/clusters/mephisto/hack/federate.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +# /* +# | Protect your secrets, protect your sensitive data. +# : Explore VMware Secrets Manager docs at https://vsecm.com/ +# / keep your secrets... secret +# >/ +# <>/' Copyright 2023-present VMware Secrets Manager contributors. +# >/' SPDX-License-Identifier: BSD-2-Clause +# */ + +go run federate.go +./set-initial-bundle.sh +echo "Federation established."