Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
e2e: small fixes to make linter happy (#2574)
Browse files Browse the repository at this point in the history
e2e: small fixes to make linter happy
  • Loading branch information
hiddeco authored Nov 1, 2019
2 parents fd0bb42 + e2a988d commit 3f0b6b5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/e2e/lib/gpg.bash
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function create_gpg_key() {
local batchcfg
batchcfg=$(mktemp)

cat >"$batchcfg" <<EOF
cat > "$batchcfg" << EOF
%echo Generating a throwaway OpenPGP key for "$name <$email>"
Key-Type: 1
Key-Length: 2048
Expand All @@ -28,9 +28,9 @@ EOF

# Find the ID of the key we just generated
local key_id
key_id=$(gpg --no-tty --list-secret-keys --with-colons "$name" 2>/dev/null \
| awk -F: '/^sec:/ { print $5 }' | tail -1)
echo "$key_id"
key_id=$(gpg --no-tty --list-secret-keys --with-colons "$name" 2> /dev/null |
awk -F: '/^sec:/ { print $5 }' | tail -1)
echo "$key_id"
}

function create_secret_from_gpg_key() {
Expand All @@ -44,7 +44,7 @@ function create_secret_from_gpg_key() {

# Export key to secret
gpg --export-secret-keys "$key_id" |
kubectl --namespace "${FLUX_NAMESPACE}" \
create secret generic "$secret_name" \
--from-file=flux.asc=/dev/stdin
kubectl --namespace "${FLUX_NAMESPACE}" \
create secret generic "$secret_name" \
--from-file=flux.asc=/dev/stdin
}

0 comments on commit 3f0b6b5

Please sign in to comment.