-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ievgenii Shepeliuk <[email protected]>
- Loading branch information
1 parent
93d029c
commit 3ff4763
Showing
6 changed files
with
30 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,11 +31,17 @@ jobs: | |
- run: | | ||
go install honnef.co/go/tools/cmd/staticcheck@latest | ||
- uses: extractions/setup-just@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- run: just lint | ||
- run: just test | ||
- uses: rinx/[email protected] | ||
with: | ||
skipClusterCreation: true | ||
- run: just k3d | ||
- run: pip install httpie | ||
- run: just test-e2e-all | ||
# - run: just test-e2e-all | ||
- run: | | ||
just build | ||
env E2E_TEST=default just test-e2e | ||
env E2E_TEST=custom_config just test-e2e |
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
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,8 @@ | ||
#!/usr/bin/env sh | ||
set -ex | ||
|
||
TOKEN=$(kubectl exec deploy/kube-mgmt-opa-kube-mgmt -c mgmt -- cat /bootstrap/mgmt-token) | ||
OPA="http --ignore-stdin --default-scheme=https --verify=no -A bearer -a ${TOKEN} :8443/v1" | ||
|
||
${OPA}/data | jq -e '.result.test_helm_kubernetes_quickstart|keys|length==3' | ||
|
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 @@ | ||
opa: | ||
services: | ||
controller: | ||
url: 'https://www.openpolicyagent.org' | ||
bundles: | ||
quickstart: | ||
service: controller | ||
resource: /bundles/helm-kubernetes-quickstart | ||
default_decision: /helm_kubernetes_quickstart/main |
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