Skip to content

Commit 2de0e04

Browse files
add primary site tests
1 parent f6101ae commit 2de0e04

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,45 @@ jobs:
1313

1414
- name: lint
1515
run: helm lint charts/*
16+
17+
test_primary_site:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
- uses: medyagh/[email protected]
22+
- name: Install primary site chart
23+
env:
24+
FOXGLOVE_API_URL: ${{ }}
25+
FOXGLOVE_SITE_TOKEN: ${{ }}
26+
run: |
27+
set -e
28+
kubectl create namespace foxglove
29+
kubectl create secret generic foxglove-site-token --from-literal="FOXGLOVE_SITE_TOKEN=\"$FOXGLOVE_SITE_TOKEN\"" --namespace foxglove
30+
31+
cat >> ./cloud-credentials-secret.yaml << EOF
32+
apiVersion: v1
33+
kind: Secret
34+
metadata:
35+
name: cloud-credentials
36+
type: Opaque
37+
stringData:
38+
S3_COMPATIBLE_ACCESS_KEY_ID: root
39+
S3_COMPATIBLE_SECRET_ACCESS_KEY: password
40+
S3_COMPATIBLE_SERVICE_REGION: default
41+
S3_COMPATIBLE_SERVICE_URL: http://localhost:9000
42+
EOF
43+
44+
kubectl apply -f ./cloud-credentials-secret.yaml -n foxglove
45+
46+
cat >> ./values.yaml << EOF
47+
globals:
48+
foxgloveApiUrl: "$FOXGLOVE_API_URL"
49+
inbox:
50+
storageProvider: "s3_compatible"
51+
lake:
52+
storageProvider: "s3_compatible"
53+
EOF
54+
55+
helm upgrade --install foxglove-primary-site ./charts/primary-site \
56+
--namespace foxglove \
57+
--values ./values.yaml

0 commit comments

Comments
 (0)