-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updates to iam jupyter operator charts
- Loading branch information
Showing
15 changed files
with
414 additions
and
190 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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Unit tests | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
- ready_for_review | ||
|
||
jobs: | ||
unittests: | ||
runs-on: | ||
labels: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
fetch-depth: 0 | ||
|
||
- name: Get changed files | ||
id: changed-files | ||
uses: tj-actions/changed-files@cc733854b1f224978ef800d29e4709d5ee2883e4 # v44.5.5 | ||
with: | ||
files: "./**" | ||
dir_names: "true" | ||
dir_names_max_depth: "2" | ||
dir_names_deleted_files_include_only_deleted_dirs: "true" | ||
|
||
- name: List all changed files | ||
id: modify-changed-files | ||
run: | | ||
echo "Number of changed files: ${{ steps.changed-files.outputs.all_modified_files_count }}" | ||
folders="" | ||
counter=0 | ||
for folder in ${{ steps.changed-files.outputs.all_modified_files }}; do | ||
echo "$folder was changed" | ||
# Check if overall chart folder still exists | ||
if [[ -d "$folder" ]]; then | ||
folders+="$folder " | ||
counter=$((counter+1)) | ||
else | ||
echo "$folder no longer exists and will not be tested" | ||
fi | ||
done | ||
modified_folders=$(echo "$folders" | sed 's/ *$//') | ||
echo "folder_string=$modified_folders" >> "$GITHUB_OUTPUT" | ||
echo "folder_count=$counter" >> "$GITHUB_OUTPUT" | ||
- name: Setup up Helm and unittest | ||
uses: d3adb5/helm-unittest-action@66140cd099aa6c4f2ebc59735b8e421135a6d4e3 # v2.4 | ||
if: steps.modify-changed-files.outputs.folder_count > 0 | ||
with: | ||
helm-version: v3.12.2 | ||
charts: ${{ steps.changed-files.outputs.folder_string }} |
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,96 @@ | ||
suite: test deployment | ||
templates: | ||
- templates/deployment.yaml | ||
tests: | ||
- it: "test affinity" | ||
asserts: | ||
- isSubset: | ||
path: spec.template.spec | ||
content: | ||
affinity: | ||
nodeAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: role.datalayer.io/api | ||
operator: In | ||
values: | ||
- "true" | ||
- it: "test environment variables" | ||
asserts: | ||
- isSubset: | ||
path: spec.template.spec.containers[0] | ||
content: | ||
env: | ||
- name: DATALAYER_SOLR_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
key: password | ||
name: solr-basic-auth | ||
- name: DATALAYER_SOLR_USERNAME | ||
valueFrom: | ||
secretKeyRef: | ||
key: username | ||
name: solr-basic-auth | ||
- name: DATALAYER_AUTHZ_ENGINE | ||
value: "openfga" | ||
- name: DATALAYER_CDN_URL | ||
value: "" | ||
- name: DATALAYER_CREDITS_PROVIDER | ||
value: "" | ||
- name: DATALAYER_GITHUB_CLIENT_ID | ||
value: "" | ||
- name: DATALAYER_GITHUB_CLIENT_SECRET | ||
value: "" | ||
- name: DATALAYER_IAM_API_KEY | ||
value: "" | ||
- name: DATALAYER_JWT_ALGORITHM | ||
value: "" | ||
- name: DATALAYER_JWT_ALLOWED_ISSUERS | ||
value: "" | ||
- name: DATALAYER_JWT_DEFAULT_KID_ISSUER | ||
value: "" | ||
- name: DATALAYER_JWT_ISSUER | ||
value: "https://id.datalayer.run" | ||
- name: DATALAYER_JWT_SECRET | ||
value: "" | ||
- name: DATALAYER_JWT_SKIP_3RD_TOKEN_SIGNATURE_VERIFICATION | ||
value: "false" | ||
- name: DATALAYER_OPENFGA_AUTHZ_MODEL_ID | ||
value: "" | ||
- name: DATALAYER_OPENFGA_REST_URL | ||
value: "http://datalayer-openfga.datalayer-openfga.svc.cluster.local:8080" | ||
- name: DATALAYER_OPENFGA_STORE_ID | ||
value: "" | ||
- name: DATALAYER_PUB_SUB_ENGINE | ||
value: "pulsar" | ||
- name: DATALAYER_PULSAR_URL | ||
value: "pulsar://datalayer-pulsar-broker.datalayer-pulsar.svc.cluster.local:6650" | ||
- name: DATALAYER_RUNTIME_ENV | ||
value: "prod" | ||
- name: DATALAYER_RUN_HOST | ||
value: "" | ||
- name: DATALAYER_SMTP_HOST | ||
value: "" | ||
- name: DATALAYER_SMTP_PASSWORD | ||
value: "" | ||
- name: DATALAYER_SMTP_PORT | ||
value: "0" | ||
- name: DATALAYER_SMTP_USERNAME | ||
value: "" | ||
- name: DATALAYER_SOLR_ZK_HOST | ||
value: "solr-datalayer-solrcloud-zookeeper-headless.datalayer-solr.svc.cluster.local" | ||
- name: DATALAYER_STRIPE_API_KEY | ||
value: "" | ||
- name: DATALAYER_STRIPE_BILLING_ROUTE | ||
value: "/usage/billing" | ||
- name: DATALAYER_STRIPE_JS_API_KEY | ||
value: "" | ||
- name: DATALAYER_STRIPE_PRODUCT_ID | ||
value: "" | ||
- name: DATALAYER_STRIPE_WEBHOOK_SECRET | ||
value: "" | ||
- name: DATALAYER_SUPPORT_EMAIL | ||
value: "" | ||
|
||
|
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,10 @@ | ||
suite: test traefik-middleware | ||
templates: | ||
- templates/traefik-middleware.yaml | ||
tests: | ||
- it: "test traefik middleware resource" | ||
values: | ||
- ./values/alternate_ingressclass.yaml | ||
asserts: | ||
- hasDocuments: | ||
count: 0 |
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,2 @@ | ||
iam: | ||
ingressClass: "nginx" |
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.