Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,11 @@ spec:
ports:
- name: http
containerPort: {{ .Values.port }}
{{- if .Values.containers.volumeMounts }}
volumeMounts:
{{- toYaml .Values.containers.volumeMounts | nindent 12 }}
{{- end }}
{{- if .Values.volumes }}
volumes:
{{- toYaml .Values.volumes | nindent 8 }}
{{- end }}
8 changes: 8 additions & 0 deletions preview-traq/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
helmGlobals:
chartHome: ../.common

configMapGenerator:
- name: preview-traq-config
namespace: preview-traq
files:
- config.json=../traq/frontend/config.jsonc
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ここファイル名が合ってなさそうです

Suggested change
- config.json=../traq/frontend/config.jsonc
- config.jsonc=../traq/frontend/config.jsonc

options:
disableNameSuffixHash: true

helmCharts:
- includeCRDs: true
name: preview-ui
Expand Down
11 changes: 11 additions & 0 deletions preview-traq/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,14 @@ staging:

otherParameters:
port: 80

containers:
volumeMounts:
- name: config-json
mountPath: /app/override/config.json
subPath: config.jsonc

volumes:
- name: config-json
configMap:
name: preview-traq-config
8 changes: 8 additions & 0 deletions traq-dev/frontend/deployment-patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,11 @@ spec:
value: "1120421442"
- name: NEW_RELIC_AGENT_ID
value: "1120421442"
volumeMounts:
- name: config-json
mountPath: /app/override/config.json
subPath: config.jsonc
volumes:
- name: config-json
configMap:
name: traq-frontend-config
5 changes: 5 additions & 0 deletions traq-dev/frontend/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
resources:
- ../../traq/frontend

configMapGenerator:
- name: traq-frontend-config
files:
- ../../traq/frontend/config.jsonc
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これpreview-traqと書き方が違うのって理由ありますか?
あと、本番環境の方に無さそうな気がします


patches:
- path: deployment-patch.yaml
target:
Expand Down
140 changes: 140 additions & 0 deletions traq/frontend/config.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
{
"$schema": "https://raw.githubusercontent.com/traPtitech/traQ_S-UI/refs/heads/master/config.schema.json",
"firebase": {
"apiKey": "AIzaSyDee_VkrRtByJCrCZAX3nTSDPl8AaHlWfY",
"appId": "1:993645413001:web:b253ea3776d6cf85163c58",
"projectId": "traq-r",
"messagingSenderId": "993645413001",
"vapidKey": "BPHegiDotHG7TlKhoW1qvwUYjOQj1C7RgKjvw3etUJZ_4x3LWUtFVXtRANWwckJX4G2w3CVj4zwi5QNThg7DZH4"
Comment thread
uni-kakurenbo marked this conversation as resolved.
},
"enableQall": true,
"enableSearch": true,
"services": [
{
"label": "Portal",
"iconPath": "portal.svg",
"appLink": "https://portal.trap.jp/"
},
{
"label": "Official Website",
"iconPath": "traP.svg",
"appLink": "https://trap.jp/"
},
{
"label": "Wiki",
"iconPath": "crowi.svg",
"appLink": "https://wiki.trap.jp/"
},
{
"label": "Blog Admin",
"iconPath": "ghost.svg",
"appLink": "https://blog-admin.trap.jp/"
},
{
"label": "Drive",
"iconPath": "nextcloud.svg",
"appLink": "https://drive.trap.jp/"
},
{
"label": "Gitea",
"iconPath": "gitea.svg",
"appLink": "https://git.trap.jp/"
},
{
"label": "NeoShowcase",
"iconPath": "neoshowcase.svg",
"appLink": "https://ns.trap.jp/"
},
{
"label": "HackMD",
"iconPath": "hackmd.svg",
"appLink": "https://md.trap.jp/"
},
{
"label": "anke-to",
"iconPath": "anke-to.svg",
"appLink": "https://anke-to.trap.jp/"
},
{
"label": "booQ",
"iconPath": "booq.svg",
"appLink": "https://booq.trap.jp/"
},
{
"label": "knoQ",
"iconPath": "knoq.svg",
"appLink": "https://knoq.trap.jp/"
},
{
"label": "BOT Console",
"iconPath": "bot-console.svg",
"appLink": "https://bot-console.trap.jp/"
},
{
"label": "Jomon",
"iconPath": "jomon.svg",
"appLink": "https://jomon.trap.jp/"
},
{
"label": "traPortfolio",
"iconPath": "traPortfolio.svg",
"appLink": "https://portfolio.trap.jp/"
},
{
"label": "tpf-admin",
"iconPath": "traPortfolio-admin.svg",
"appLink": "https://portfolio-admin.trap.jp/"
},
{
"label": "rucQ",
"iconPath": "rucq.svg",
"appLink": "https://rucq.trap.jp/"
},
{
"label": "traP Collection",
"iconPath": "traPCollection.svg",
"appLink": "https://collection.trap.jp/"
}
],
"ogpIgnoreHostNames": [
"wiki.trap.jp",
"git.trap.jp",
"md.trap.jp",
"drive.trap.jp",
"anke-to.trap.jp",
"booq.trap.jp",
"knoq.trap.jp",
"wiki.trapti.tech",
"git.trapti.tech",
"md.trapti.tech",
"drive.trapti.tech",
"jomon.trap.jp",
"ns.trap.jp",
"portfolio-admin.trap.jp",
"rucq.trap.jp"
],
"wikiPageOrigin": "https://wiki.trap.jp",
"blogPagePrefix": "https://trap.jp/author/",
"auth": {
"resetLink": "https://portal.trap.jp/reset-password",
"changeLink": "https://portal.trap.jp/me/change-password",
"changeName": "traPortal"
},
"isRootChannelSelectableAsParentChannel": false,
"tooLargeFileMessage": "大きい%sの共有にはDriveを使用してください",
"showWidgetCopyButton": true,
"inlineReplyDisableChannels": [
"#general",
"#general/schedule",
"#general/meeting",
"#random",
"#random/wasure",
"#services"
],
"iosPwaInfoLink": "https://wiki.trap.jp/SysAd/docs/traQ-S/PWA",
"defaultChannelId": [
"04ad2c18-fdcb-4c43-beef-82e8ba26ac98", // #general of q.trap.jp
"83afc6cc-737d-4868-9a2f-aeb7c199260e" // #general of q-dev.trapti.tech
],
"fallbackChannelPath": "general"
}
8 changes: 8 additions & 0 deletions traq/frontend/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,12 @@ spec:
value: "1120420953"
- name: NEW_RELIC_AGENT_ID
value: "1120420953"
volumeMounts:
- mountPath: /app/override/config.json
name: config-json
subPath: config.jsonc
volumes:
- configMap:
name: traq-frontend-config
name: config-json
restartPolicy: Always
Loading