Skip to content

Commit fa1b6df

Browse files
Merge pull request #44 from aa-replicated/demo/tier4
fix: EC3 image handling, preflight, and chart correctness
2 parents 4860527 + ca4c94e commit fa1b6df

File tree

4 files changed

+11
-13
lines changed

4 files changed

+11
-13
lines changed

chart/gameshelf/templates/deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ spec:
2525
{{- end }}
2626
containers:
2727
- name: gameshelf
28-
{{- if .Values.imageProxy.host }}
28+
{{- if .Values.image.registry }}
29+
image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
30+
{{- else if .Values.imageProxy.host }}
2931
image: "{{ .Values.imageProxy.host }}/proxy/{{ .Values.imageProxy.appSlug }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
3032
{{- else }}
3133
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"

chart/gameshelf/templates/preflight.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ stringData:
2525
exclude: {{ .Values.postgresql.enabled }}
2626
- http:
2727
collectorName: replicated-app-reachability
28-
exclude: {{ .Values.preflight.excludeReachability }}
2928
get:
3029
url: {{ .Values.preflight.requiredEndpoint }}
3130
timeout: 10s
@@ -45,14 +44,13 @@ stringData:
4544
- http:
4645
checkName: Replicated App Reachability
4746
collectorName: replicated-app-reachability
48-
exclude: {{ .Values.preflight.excludeReachability }}
4947
outcomes:
5048
- pass:
5149
when: "statusCode == 200"
5250
message: Successfully reached replicated.app. License validation will work correctly.
53-
- fail:
51+
- warn:
5452
when: "error"
55-
message: "Cannot reach replicated.app. Outbound internet access on port 443 is required for license validation. Check firewall or proxy settings."
53+
message: "Cannot reach replicated.app. Outbound internet access on port 443 is required for online license validation. Air-gapped installs can ignore this warning."
5654
- warn:
5755
message: "Received an unexpected response from replicated.app. License validation may be affected."
5856
- nodeResources:

chart/gameshelf/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ imageProxy:
1414
appSlug: gameshelf
1515

1616
image:
17+
registry: "" # When set, used directly as registry (EC installs set this via helmchart.yaml)
1718
repository: ghcr.io/aa-replicated/gameshelf
1819
tag: ""
1920
pullPolicy: Always
@@ -121,7 +122,6 @@ preflight:
121122
minCPU: 2
122123
minMemory: 4Gi
123124
requiredEndpoint: "https://replicated.app"
124-
excludeReachability: false
125125

126126
replicated:
127127
enabled: true

helmchart.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,22 @@ spec:
88
chartVersion: "0.0.0"
99
values:
1010
adminSecret: repl{{ ConfigOption `admin_secret`}}
11-
preflight:
12-
excludeReachability: repl{{ and IsEmbeddedCluster (not IsOnline) }}
1311
siteName: repl{{ ConfigOption `site_name`}}
1412
siteColor: repl{{ ConfigOption `site_color`}}
1513
customBrandingEnabled: repl{{ LicenseFieldValue `custom_branding_enabled` }}
16-
imageProxy:
17-
host: ""
1814
image:
15+
registry: 'repl{{ ReplicatedImageRegistry "proxy.replicated.com/proxy/gameshelf/ghcr.io/aa-replicated/gameshelf" }}'
16+
repository: 'repl{{ ReplicatedImageRepository "proxy.replicated.com/proxy/gameshelf/ghcr.io/aa-replicated/gameshelf" }}'
1917
pullPolicy: IfNotPresent
2018
postgresql:
2119
image:
22-
registry: ""
20+
registry: 'repl{{ ReplicatedImageRegistry "proxy.replicated.com/proxy/gameshelf/index.docker.io" }}'
2321
volumePermissions:
2422
image:
25-
registry: ""
23+
registry: 'repl{{ ReplicatedImageRegistry "proxy.replicated.com/proxy/gameshelf/index.docker.io" }}'
2624
redis:
2725
image:
28-
registry: ""
26+
registry: 'repl{{ ReplicatedImageRegistry "proxy.replicated.com/proxy/gameshelf/index.docker.io" }}'
2927
builder:
3028
postgresql:
3129
image:

0 commit comments

Comments
 (0)