Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ jobs:
context: .
push: true
platforms: linux/amd64
tags: ghcr.io/aa-replicated/gameshelf:pr-${{ github.event.pull_request.number }}
tags: |
ghcr.io/aa-replicated/gameshelf:pr-${{ github.event.pull_request.number }}
ghcr.io/aa-replicated/gameshelf:pr-${{ github.event.pull_request.number }}-${{ github.run_number }}

- name: Package Helm chart
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ jobs:

- name: Create Replicated release
id: create-release
uses: replicatedhq/replicated-actions/create-release@v1.20.0
uses: replicatedhq/replicated-actions/create-release@v1
with:
app-slug: gameshelf
api-token: ${{ secrets.REPLICATED_API_TOKEN }}
yaml-dir: release/
version: ${{ env.VERSION }}

- name: Promote to Unstable
uses: replicatedhq/replicated-actions/promote-release@v1.20.0
uses: replicatedhq/replicated-actions/promote-release@v1
with:
app-slug: gameshelf
api-token: ${{ secrets.REPLICATED_API_TOKEN }}
Expand Down
4 changes: 3 additions & 1 deletion chart/gameshelf/templates/preflight.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@ stringData:
exclude: {{ .Values.postgresql.enabled }}
- http:
collectorName: replicated-app-reachability
exclude: {{ .Values.preflight.excludeReachability }}
get:
url: {{ .Values.preflight.requiredEndpoint }}
timeout: 10s
analyzers:
- textAnalyze:
checkName: External Database Connectivity
fileName: db-connection-check/check.log
fileName: db-connection-check.log
regex: "CONNECTION_OK"
exclude: {{ .Values.postgresql.enabled }}
outcomes:
Expand All @@ -44,6 +45,7 @@ stringData:
- http:
checkName: Replicated App Reachability
collectorName: replicated-app-reachability
exclude: {{ .Values.preflight.excludeReachability }}
outcomes:
- pass:
when: "statusCode == 200"
Expand Down
4 changes: 2 additions & 2 deletions chart/gameshelf/templates/support-bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ stringData:
- logs:
collectorName: replicated-sdk
selector:
- app=replicated
- app.kubernetes.io/name=replicated
namespace: {{ .Release.Namespace }}
limits:
maxLines: 5000
Expand All @@ -68,7 +68,7 @@ stringData:
message: "GameShelf health endpoint is not responding or returning an unhealthy status. Check the gameshelf-app logs for startup errors or crashes."
- textAnalyze:
checkName: Database Connection Errors
fileName: gameshelf-app/*.log
fileName: "*/gameshelf.log"
regex: "connection refused|no such host|dial tcp.*connect: connection refused"
outcomes:
- fail:
Expand Down
1 change: 1 addition & 0 deletions chart/gameshelf/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ preflight:
minCPU: 2
minMemory: 4Gi
requiredEndpoint: "https://replicated.app"
excludeReachability: false

replicated:
enabled: true
Expand Down
7 changes: 5 additions & 2 deletions helmchart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ spec:
name: gameshelf
chartVersion: "0.0.0"
values:
replicated:
integrationLicenseID: repl{{ LicenseFieldValue `licenseID` }}
adminSecret: repl{{ ConfigOption `admin_secret`}}
preflight:
excludeReachability: repl{{ and IsEmbeddedCluster (not IsOnline) }}
siteName: repl{{ ConfigOption `site_name`}}
siteColor: repl{{ ConfigOption `site_color`}}
customBrandingEnabled: repl{{ LicenseFieldValue `custom_branding_enabled` }}
Expand All @@ -20,6 +20,9 @@ spec:
postgresql:
image:
registry: ""
volumePermissions:
image:
registry: ""
redis:
image:
registry: ""
Expand Down
Loading