Skip to content

Commit

Permalink
feat(example-content): update version and add internal URL support fo…
Browse files Browse the repository at this point in the history
…r local setup
  • Loading branch information
nexus49 committed Feb 9, 2025
1 parent f24aea9 commit 1dda425
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/example-content/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "0.148.0"
description: Helm Chart for the openmfp Portal
name: example-content
version: 0.113.1
version: 0.113.2
dependencies:
- name: common
version: 0.2.7
Expand Down
6 changes: 6 additions & 0 deletions charts/example-content/templates/contentconfigurations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ metadata:
spec:
remoteConfiguration:
url: {{ .Values.contentConfigurations.ui.url }}
{{- if .Values.contentConfigurations.ui.internalUrl }}
internalUrl: {{ .Values.contentConfigurations.ui.internalUrl }}
{{- end }}
contentType: json
{{- end }}

Expand All @@ -20,5 +23,8 @@ metadata:
spec:
remoteConfiguration:
url: {{ .Values.contentConfigurations.wc.url }}
{{- if .Values.contentConfigurations.wc.internalUrl }}
internalUrl: {{ .Values.contentConfigurations.wc.internalUrl }}
{{- end }}
contentType: json
{{- end }}
4 changes: 4 additions & 0 deletions charts/example-content/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@ contentConfigurations:
ui:
enabled: true
url: http://localhost:8000/ui/example-content/ui/assets/config.json
# Set internal url especially for local a setup where the url is not reachable from within the cluster
# internalUrl: null
wc:
enabled: true
url: http://localhost:8000/ui/example-content/wc/assets/config.json
# Set internal url especially for local a setup where the url is not reachable from within the cluster
# internalUrl: null

contentProtocolDomain: https://example-content.some-domain.com
8 changes: 5 additions & 3 deletions local-setup/kustomize/components/openmfp/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ spec:
contentConfigurations:
ui:
enabled: true
url: http://openmfp-example-content.openmfp-system.svc.cluster.local:8080/ui/assets/config.json
internalUrl: http://openmfp-example-content.openmfp-system.svc.cluster.local:8080/ui/assets/config.json
wc:
enabled: true
url: http://openmfp-example-content.openmfp-system.svc.cluster.local:8080/wc/assets/config.json
internalUrl: http://openmfp-example-content.openmfp-system.svc.cluster.local:8080/wc/assets/config.json
istio:
enabled: true
virtualService:
Expand All @@ -43,7 +43,9 @@ spec:
matchers:
- match:
- uri:
prefix: /ui/
prefix: /ui/example-content
rewrite:
uri: /
portal:
baseDomains:
- "localhost"
Expand Down

0 comments on commit 1dda425

Please sign in to comment.