Skip to content

Commit 5fcf2bc

Browse files
chore: mark the existing scripts as potentially dangerous for now
1 parent cc2ee94 commit 5fcf2bc

14 files changed

+127
-1
lines changed

scripts/add_new_region.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@
1010

1111
set -e
1212

13+
if [ -z "$I_KNOW_WHAT_I_AM_DOING" ]; then
14+
# This script differs from our most recent updates to the gitlab build
15+
# pipelines. We are going to fix it, but you can help! Either you know what
16+
# you are doing and can let this script know, or you could update the
17+
# script yourself, or at least let us know that you want it to be updated!
18+
echo "Please set I_KNOW_WHAT_I_AM_DOING to 'true' to run this script"
19+
exit 1
20+
fi
21+
1322
FROM_REGION='us-east-1'
1423

1524
LAYER_NAMES=("Datadog-Extension")

scripts/bench.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33
# requires FUNCTION_NAME, REGION, and AWS_PROFILE to be set
44
set -eu pipefail
55

6+
if [ -z "$I_KNOW_WHAT_I_AM_DOING" ]; then
7+
# This script differs from our most recent updates to the gitlab build
8+
# pipelines. We are going to fix it, but you can help! Either you know what
9+
# you are doing and can let this script know, or you could update the
10+
# script yourself, or at least let us know that you want it to be updated!
11+
echo "Please set I_KNOW_WHAT_I_AM_DOING to 'true' to run this script"
12+
exit 1
13+
fi
14+
615
INVOKES="${INVOKES:-10}"
716
SLEEP_TIME="${SLEEP_TIME:-1}"
817

scripts/build_and_push_docker_image.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@
99

1010
set -e
1111

12+
if [ -z "$I_KNOW_WHAT_I_AM_DOING" ]; then
13+
# This script differs from our most recent updates to the gitlab build
14+
# pipelines. We are going to fix it, but you can help! Either you know what
15+
# you are doing and can let this script know, or you could update the
16+
# script yourself, or at least let us know that you want it to be updated!
17+
echo "Please set I_KNOW_WHAT_I_AM_DOING to 'true' to run this script"
18+
exit 1
19+
fi
20+
1221
DOCKER_REPOSITORY_NAME="datadog/lambda-extension"
1322

1423
# Move into the root directory, so this script can be called from any directory

scripts/build_binary_and_layer_dockerized.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@
1212

1313
set -e
1414

15+
if [ -z "$I_KNOW_WHAT_I_AM_DOING" ]; then
16+
# This script differs from our most recent updates to the gitlab build
17+
# pipelines. We are going to fix it, but you can help! Either you know what
18+
# you are doing and can let this script know, or you could update the
19+
# script yourself, or at least let us know that you want it to be updated!
20+
echo "Please set I_KNOW_WHAT_I_AM_DOING to 'true' to run this script"
21+
exit 1
22+
fi
23+
1524
if [ -z "$VERSION" ]; then
1625
echo "Extension version not specified"
1726
echo ""

scripts/build_bottlecap_layer.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@
1212

1313
set -e
1414

15+
if [ -z "$I_KNOW_WHAT_I_AM_DOING" ]; then
16+
# This script differs from our most recent updates to the gitlab build
17+
# pipelines. We are going to fix it, but you can help! Either you know what
18+
# you are doing and can let this script know, or you could update the
19+
# script yourself, or at least let us know that you want it to be updated!
20+
echo "Please set I_KNOW_WHAT_I_AM_DOING to 'true' to run this script"
21+
exit 1
22+
fi
23+
1524
prepare_folders() {
1625
# Move into the root directory, so this script can be called from any directory
1726
SCRIPTS_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"

scripts/build_publish_deploy_bench.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
set -eu pipefail
44

5+
if [ -z "$I_KNOW_WHAT_I_AM_DOING" ]; then
6+
# This script differs from our most recent updates to the gitlab build
7+
# pipelines. We are going to fix it, but you can help! Either you know what
8+
# you are doing and can let this script know, or you could update the
9+
# script yourself, or at least let us know that you want it to be updated!
10+
echo "Please set I_KNOW_WHAT_I_AM_DOING to 'true' to run this script"
11+
exit 1
12+
fi
13+
514
export ARCHITECTURE="${ARCHITECTURE:-amd64}"
615
export REGION="${REGION:-sa-east-1}"
716
export AWS_PROFILE="${AWS_PROFILE:-sso-serverless-sandbox-account-admin}"

scripts/create_documentation_pr.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@
77

88
# This script automatically opens a PR to the Documentation repo for lambda layer deploys
99

10+
if [ -z "$I_KNOW_WHAT_I_AM_DOING" ]; then
11+
# This script differs from our most recent updates to the gitlab build
12+
# pipelines. We are going to fix it, but you can help! Either you know what
13+
# you are doing and can let this script know, or you could update the
14+
# script yourself, or at least let us know that you want it to be updated!
15+
echo "Please set I_KNOW_WHAT_I_AM_DOING to 'true' to run this script"
16+
exit 1
17+
fi
18+
1019
GREEN="\033[0;32m"
1120
NC="\033[0;0m"
1221
DOCUMENTATION_REPO_PATH=$HOME/go/src/github.com/DataDog/documentation

scripts/publish_bottlecap_sandbox.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@
1414

1515
set -e
1616

17+
if [ -z "$I_KNOW_WHAT_I_AM_DOING" ]; then
18+
# This script differs from our most recent updates to the gitlab build
19+
# pipelines. We are going to fix it, but you can help! Either you know what
20+
# you are doing and can let this script know, or you could update the
21+
# script yourself, or at least let us know that you want it to be updated!
22+
echo "Please set I_KNOW_WHAT_I_AM_DOING to 'true' to run this script"
23+
exit 1
24+
fi
25+
1726
_init_arg(){
1827
if [ "$ARCHITECTURE" == "amd64" ]; then
1928
echo "Publishing for amd64 only"
@@ -53,4 +62,4 @@ publish(){
5362
}
5463

5564
_init_arg
56-
publish
65+
publish

scripts/publish_govcloud.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@
1111

1212
set -e
1313

14+
if [ -z "$I_KNOW_WHAT_I_AM_DOING" ]; then
15+
# This script differs from our most recent updates to the gitlab build
16+
# pipelines. We are going to fix it, but you can help! Either you know what
17+
# you are doing and can let this script know, or you could update the
18+
# script yourself, or at least let us know that you want it to be updated!
19+
echo "Please set I_KNOW_WHAT_I_AM_DOING to 'true' to run this script"
20+
exit 1
21+
fi
22+
1423
# Ensure the target extension version is defined
1524
if [ -z "$VERSION" ]; then
1625
echo "Extension version not specified"

scripts/publish_layers.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@
1414

1515
set -e
1616

17+
if [ -z "$I_KNOW_WHAT_I_AM_DOING" ]; then
18+
# This script differs from our most recent updates to the gitlab build
19+
# pipelines. We are going to fix it, but you can help! Either you know what
20+
# you are doing and can let this script know, or you could update the
21+
# script yourself, or at least let us know that you want it to be updated!
22+
echo "Please set I_KNOW_WHAT_I_AM_DOING to 'true' to run this script"
23+
exit 1
24+
fi
25+
1726
# Move into the root directory, so this script can be called from any directory
1827
SCRIPTS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
1928
cd $SCRIPTS_DIR/..

0 commit comments

Comments
 (0)