blob: 2e7ff1f161d59799899d49481fe3d3cc77d02ff5 [file] [log] [blame]
#/bin/bash
# Creates the autoroll-email-creds secret, used for sending email from the
# autoroller.
set -e -x
source ./config.sh
source ../bash/ramdisk.sh
SECRET_NAME="webhook-request-salt"
ORIG_WD=$(pwd)
cd /tmp/ramdisk
function get() {
gcloud compute project-info describe --project=google.com:skia-buildbots --format="value[](commonInstanceMetadata.items.$1)" > $1
}
get webhook_request_salt
kubectl create secret generic "${SECRET_NAME}" --from-file=webhook_request_salt
cd -