Skip to content

Commit 301ecb2

Browse files
authored
Merge pull request #305 from junior/storefront_update (initial support for Oracle Digital Assistant)
Storefront update and initial support for Oracle Digital Assistant
2 parents a1676fd + 664c1eb commit 301ecb2

File tree

28 files changed

+457
-192
lines changed

28 files changed

+457
-192
lines changed

deploy/complete/docker-compose/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ services:
7878

7979
# Storefront backend API service
8080
storefront:
81-
image: iad.ocir.io/oracle/ateam/mushop-storefront:2.2
81+
image: iad.ocir.io/oracle/ateam/mushop-storefront:2.3.0
8282
hostname: storefront
8383
restart: always
8484
cap_drop:

deploy/complete/helm-chart/mushop/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ apiVersion: v1
22
appVersion: "1.0"
33
description: MuShop App microservices chart
44
name: mushop
5-
version: 0.1.1
5+
version: 0.1.2

deploy/complete/helm-chart/mushop/charts/nats/values.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ replicaCount: 1
22

33
image:
44
repository: nats
5-
tag: 2.1.2
5+
tag: 2.7.1
66
pullPolicy: IfNotPresent
77

88
exporter:
9-
repository: synadia/prometheus-nats-exporter
10-
tag: 0.6.2
9+
repository: natsio/prometheus-nats-exporter
10+
tag: 0.9.1
1111
pullPolicy: IfNotPresent
1212

1313
osb: {}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: v1
22
name: storefront
3-
appVersion: 0.1.0
4-
version: 0.1.0
3+
appVersion: 2.3.0
4+
version: 0.2.0
55
description: Helm chart for storefront component of the MuShop

deploy/complete/helm-chart/mushop/charts/storefront/templates/storefront-deployment.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,17 @@ spec:
3030
containerPort: 8080
3131
- name: status
3232
containerPort: 8888
33+
env:
34+
- name: ODA_ENABLED
35+
value: {{ .Values.env.odaEnabled | default "false" | quote }}
36+
- name: ODA_URI
37+
value: {{ .Values.env.odaUri | quote }}
38+
- name: ODA_CHANNEL_ID
39+
value: {{ .Values.env.odaChannelId | quote }}
40+
- name: ODA_SECRET
41+
value: {{ .Values.env.odaSecret | quote }}
42+
- name: ODA_USER_INIT_MESSAGE
43+
value: {{ .Values.env.odaUserHiddenInitMessage | quote }}
3344
livenessProbe:
3445
httpGet:
3546
path: /
@@ -45,6 +56,7 @@ spec:
4556
{{- toYaml .Values.resources | nindent 12 }}
4657
securityContext:
4758
{{- toYaml .Values.securityContext | nindent 12 }}
59+
readOnlyRootFilesystem: {{ if eq (.Values.env.odaEnabled | default false) true }}false{{ else }}true{{ end }}
4860
volumes:
4961
- name: tmp-volume
5062
emptyDir:

deploy/complete/helm-chart/mushop/charts/storefront/values.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,16 @@ replicaCount: 1
22

33
image:
44
repository: iad.ocir.io/oracle/ateam/mushop-storefront
5-
tag: 2.2
5+
tag: 2.3
66
pullPolicy: Always
77

8+
env:
9+
odaEnabled:
10+
odaUri:
11+
odaChannelId:
12+
odaSecret:
13+
odaUserHiddenInitMessage:
14+
815
resources:
916
limits:
1017
cpu: 300m
@@ -15,7 +22,7 @@ resources:
1522

1623
securityContext:
1724
runAsNonRoot: true
18-
runAsUser: 10001
25+
runAsUser: 101
1926
capabilities:
2027
drop:
2128
- all
@@ -24,7 +31,6 @@ securityContext:
2431
- CHOWN
2532
- SETGID
2633
- SETUID
27-
readOnlyRootFilesystem: true
2834

2935
hpa:
3036
enabled: true

deploy/complete/helm-chart/mushop/requirements.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ dependencies:
3131
version: 0.1.0
3232
condition: session.enabled
3333
- name: storefront
34-
version: 0.1.0
34+
version: 0.2.0
3535
condition: storefront.enabled
3636
- name: user
3737
version: 0.1.0

deploy/complete/helm-chart/mushop/values-dev.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ api:
1515
mediaUrl: # URL for catalogue image assets (https://objectstorage.[REGION].oraclecloud.com/n/[NAMESPACE]/b/[BUCKET_NAME]/o/)
1616
newsletterSubscribeUrl: # Newsletter subscription endpoint (https://[API_GATEWAY_URL]/newsletter/subscribe)
1717

18+
storefront:
19+
env:
20+
odaEnabled: # Enables the Oracle Digital Assistant as widget on the storefront
21+
odaUri: # Oracle Digital Assistant Channel URI to be used with MuShop
22+
odaChannelId: # Oracle Digital Assistant Channel Id to be used with MuShop
23+
odaSecret: # Used if client auth is enabled.
24+
odaUserHiddenInitMessage: # Hidden Init Message if any. Makes the Digital Assistant proactive.
25+
1826
carts:
1927
secrets:
2028
oadbAdminPassword: # ADMIN password entered when provisioning ATP database

deploy/complete/helm-chart/mushop/values-prod-reference.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,12 @@ ingress:
3333
api:
3434
env:
3535
mediaUrl: # Object Storage URL for catalog image assets
36-
newsletterSubscribeUrl: # Newsletter subscription endpoint (https://[API_GATEWAY_URL]/newsletter/subscribe)
36+
newsletterSubscribeUrl: # Newsletter subscription endpoint (https://[API_GATEWAY_URL]/newsletter/subscribe)
37+
38+
storefront:
39+
env:
40+
odaEnabled: # Enables the Oracle Digital Assistant as widget on the storefront
41+
odaUri: # Oracle Digital Assistant Channel URI to be used with MuShop
42+
odaChannelId: # Oracle Digital Assistant Channel Id to be used with MuShop
43+
odaSecret: # Used if client auth is enabled.
44+
odaUserHiddenInitMessage: # Hidden Init Message if any. Makes the Digital Assistant proactive.

deploy/complete/helm-chart/setup/requirements.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@
55
dependencies:
66
# Prometheus
77
- name: prometheus
8-
version: 14.6.0
8+
version: 15.1.1
99
condition: prometheus.enabled
1010
repository: https://prometheus-community.github.io/helm-charts
1111
# Grafana
1212
- name: grafana
13-
version: 6.16.3
13+
version: 6.21.1
1414
condition: grafana.enabled
1515
repository: https://grafana.github.io/helm-charts
1616
# HPA Metrics
1717
- name: metrics-server
18-
version: 2.11.4
18+
version: 3.7.0
1919
condition: metrics-server.enabled
20-
repository: https://charts.helm.sh/stable
20+
repository: https://kubernetes-sigs.github.io/metrics-server
2121
# Ingress Controller
2222
- name: ingress-nginx
23-
version: 4.0.1
23+
version: 4.0.13
2424
condition: ingress-nginx.enabled
2525
repository: https://kubernetes.github.io/ingress-nginx
2626
# Service Catalog
@@ -30,7 +30,7 @@ dependencies:
3030
repository: https://kubernetes-sigs.github.io/service-catalog
3131
# cert-manager
3232
- name: cert-manager
33-
version: 1.5.3
33+
version: 1.7.0
3434
condition: cert-manager.enabled
3535
repository: https://charts.jetstack.io
3636
# jenkins

0 commit comments

Comments
 (0)