Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PRごとにをデバッグサーバーを立ち上げるときのinitContainersにmod-downloaderを追加 #1414

Merged
merged 3 commits into from
Nov 18, 2023
Merged
Show file tree
Hide file tree
Changes from 2 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 @@ -33,6 +33,27 @@ spec:
- "sh"
- "-c"
- 'wget -O /root/jmx-exporter-download/jmx-exporter-javaagent.jar "${JMX_EXPORTER_URL}"'
- name: mod-downloader
image: ghcr.io/giganticminecraft/mod-downloader:sha-8326d06
env:
- name: MINIO_ENDPOINT
value: seichi-private-plugin-blackhole-minio-console.minio:9001
- name: MINIO_ACCESS_KEY
valueFrom:
secretKeyRef:
name: mcserver--common--config-secrets
key: MINIO_DEBUG_ACCESS_KEY
- name: MINIO_ACCESS_KEY
valueFrom:
secretKeyRef:
name: mcserver--common--config-secrets
key: MINIO_DEBUG_ACCESS_SECRET
rito528 marked this conversation as resolved.
Show resolved Hide resolved
- name: BUCKET_NAME
value: seichi-plugins
- name: BUCKET_PREFIX_NAME
value: deb-1-18-2
- name: DOWNLOAD_TARGET_DIR_PATH
value: /plugins

containers:
- resources:
Expand Down
4 changes: 3 additions & 1 deletion terraform/onp_cluster_minecraft_secrets.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ resource "kubernetes_secret" "onp_minecraft_debug_secrets" {
}

data = {
DISCORDSRV_TOKEN = var.minecraft__discordsrv_bot_token
DISCORDSRV_TOKEN = var.minecraft__discordsrv_bot_token
MINIO_DEBUG_ACCESS_KEY = var.minio_debug_access_key
MINIO_DEBUG_ACCESS_SECRET = var.minio_debug_access_secret
}

type = "Opaque"
Expand Down