-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into chore/accident-notification-organize-utils
- Loading branch information
Showing
4,433 changed files
with
144,979 additions
and
68,360 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,37 @@ | ||
node_modules/ | ||
dist/ | ||
scripts/ci/ | ||
/cache* | ||
# vi: ft=gitignore | ||
|
||
# Known ignores | ||
/.github/ | ||
/.git/ | ||
/scripts/ci/ | ||
/.env.* | ||
/.envrc* | ||
/.nx/ | ||
|
||
# Cache and packages | ||
**/node_modules/ | ||
# Ignoring _all_ cache folders dosen't work, because we have libraries named `cache` | ||
# **/cache/ | ||
/.yarn/cache/ | ||
/.yarn/install-state* | ||
# Ignores e.g. `cache/` and `cache_outptut/` | ||
/cache* | ||
/.cache*/ | ||
|
||
# Logs and temporaries | ||
**/log/ | ||
**/*.log | ||
**/tmp/ | ||
**/temp/ | ||
|
||
# Outputs | ||
**/dist/ | ||
**/out/ | ||
|
||
# Docker-stuff | ||
**/Dockerfile | ||
**/Dockerfile.* | ||
**/Containerfile | ||
**/Containerfile.* | ||
**/*-compose.yaml | ||
**/*-compose.yml |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
for c in kubectx kubectl aws; do | ||
if ! command -v "$c" >/dev/null; then | ||
echo "Optional dependency $c not installed. Aborting automatic kube configuration" | ||
return | ||
fi | ||
done | ||
|
||
set-kubectx() { | ||
: "${AWS_PROFILE:=}" | ||
if kubectx | grep -q "${AWS_PROFILE##islandis-}"; then | ||
return | ||
fi | ||
if [[ -z "${AWS_PROFILE}" ]]; then | ||
echo "No AWS_PROFILE set" >&2 | ||
return | ||
fi | ||
echo "Setting kube context..." >&2 | ||
AWS_ACCOUNT_ID="$(aws sts get-caller-identity | jq -r '.Account')" | ||
kubectx "$(kubectx | grep "${AWS_ACCOUNT_ID}")" | ||
CLUSTER="$(kubectl config current-context | sed 's/.*\///')" | ||
export CLUSTER | ||
} | ||
|
||
set-kubectx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
# Exit early if user is using docker | ||
if [[ -n "${DOCKER_HOST:-}" ]] || | ||
command -v docker >/dev/null && | ||
! (docker --version | grep -i podman); then | ||
return 0 | ||
fi | ||
|
||
echo "🐳 Using podman" | ||
|
||
SOCKET_DIR="${XDG_RUNTIME_DIR:-/run/user/$(id -u)}" | ||
if [[ -S /run/podman/podman.sock ]]; then | ||
SOCKET_DIR="/run/podman" | ||
return 0 | ||
fi | ||
|
||
export DOCKER_HOST=unix://$SOCKET_DIR/podman/podman.sock | ||
export TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE="${DOCKER_HOST##*://}" |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.