-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #107 from JarvusInnovations/develop
Release: gatekeeper v2.5.0
- Loading branch information
Showing
46 changed files
with
1,043 additions
and
182 deletions.
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
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,37 @@ | ||
name: K8s PR Sandbox Destroy | ||
|
||
on: | ||
pull_request: | ||
branches: [develop] | ||
types: [closed] | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
KUBE_NAMESPACE: ${{ secrets.kube_namespace }} | ||
KUBE_CONFIG_DATA: ${{ secrets.kube_config }} | ||
|
||
PR_NAME: pr-${{ github.event.number }} | ||
|
||
jobs: | ||
|
||
k8s-destroy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Add kubeconfig to environment | ||
run: | | ||
set -e | ||
test -e ~/.kube || mkdir ~/.kube | ||
cat <<EOF > ~/.kube/config | ||
$(printf '%s' "$KUBE_CONFIG_DATA" | base64 -d) | ||
EOF | ||
- uses: azure/setup-kubectl@v1 | ||
|
||
- name: Delete PR Deployment | ||
run: | | ||
set -e | ||
kubectl config set-context --current --namespace="${KUBE_NAMESPACE}" | ||
kubectl delete all,ingress -l "app.kubernetes.io/instance=${PR_NAME}" | ||
kubectl delete secret "${PR_NAME}-tls" |
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,7 +1,15 @@ | ||
[holomapping] | ||
files = [ | ||
"*/**", | ||
|
||
# exclude CI and developer assets | ||
"!.github/", | ||
"!.vscode/", | ||
"!habitat/" | ||
"!docs/", | ||
"!fixtures/", | ||
"!habitat/", | ||
"!helm-chart/", | ||
"!php-config/Git.config.d/", | ||
"!script/", | ||
] | ||
after = "*" |
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,3 @@ | ||
[holomapping] | ||
root = "fixtures" | ||
files = "*.sql" |
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,6 +1,6 @@ | ||
[holosource] | ||
url = "https://github.com/JarvusInnovations/emergence-skeleton-v2" | ||
ref = "refs/tags/v2.4.1" | ||
ref = "refs/tags/v2.5.1" | ||
|
||
[holosource.project] | ||
holobranch = "emergence-skeleton" |
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
9 changes: 9 additions & 0 deletions
9
event-handlers/Gatekeeper/ApiRequestHandler/beforeApiRequest/10_load-client-ip.php
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,9 @@ | ||
<?php | ||
|
||
namespace Gatekeeper; | ||
|
||
use Emergence\Site\Client; | ||
|
||
|
||
// populate request with client IP address | ||
$_EVENT['request']->setClientAddress(Client::getAddress()); |
Oops, something went wrong.