Skip to content

Commit 297bcf4

Browse files
committed
charts: plain python image for scenarios, run archive from configmap
1 parent f10ae75 commit 297bcf4

File tree

4 files changed

+15
-32
lines changed

4 files changed

+15
-32
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
apiVersion: v1
22
kind: ConfigMap
33
metadata:
4-
name: {{ include "commander.fullname" . }}-scenario
4+
name: {{ include "commander.fullname" . }}-warnet
55
labels:
66
{{- include "commander.labels" . | nindent 4 }}
77
binaryData:
8-
scenario.py: {{ .Values.scenario }}
8+
warnet.json: {{ .Values.warnet }}
99
---
1010
apiVersion: v1
1111
kind: ConfigMap
1212
metadata:
13-
name: {{ include "commander.fullname" . }}-warnet
13+
name: {{ include "commander.fullname" . }}-archive
1414
labels:
1515
{{- include "commander.labels" . | nindent 4 }}
1616
binaryData:
17-
warnet.json: {{ .Values.warnet }}
17+
archive.pyz: {{ .Values.archive }}

resources/charts/commander/templates/pod.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,23 @@ spec:
1010
restartPolicy: {{ .Values.restartPolicy }}
1111
containers:
1212
- name: {{ .Chart.Name }}
13-
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
14-
imagePullPolicy: {{ .Values.image.pullPolicy }}
13+
image: python:3.12-slim
14+
imagePullPolicy: IfNotPresent
1515
command: ["/bin/sh", "-c"]
1616
args:
1717
- |
18-
python3 /scenario.py {{ .Values.args }}
18+
python3 /archive.pyz {{ .Values.args }}
1919
volumeMounts:
20-
- name: scenario
21-
mountPath: /scenario.py
22-
subPath: scenario.py
2320
- name: warnet
2421
mountPath: /warnet.json
2522
subPath: warnet.json
23+
- name: archive
24+
mountPath: /archive.pyz
25+
subPath: archive.pyz
2626
volumes:
27-
- name: scenario
28-
configMap:
29-
name: {{ include "commander.fullname" . }}-scenario
3027
- name: warnet
3128
configMap:
3229
name: {{ include "commander.fullname" . }}-warnet
30+
- name: archive
31+
configMap:
32+
name: {{ include "commander.fullname" . }}-archive

resources/charts/commander/values.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@ namespace: warnet
55

66
restartPolicy: Never
77

8-
image:
9-
repository: bitcoindevproject/warnet-commander
10-
pullPolicy: IfNotPresent
11-
# Overrides the image tag whose default is the chart appVersion.
12-
tag: "latest"
13-
148
imagePullSecrets: []
159
nameOverride: ""
1610
fullnameOverride: ""
@@ -71,8 +65,8 @@ volumeMounts: []
7165

7266
port:
7367

74-
scenario: ""
75-
7668
warnet: ""
7769

70+
archive: ""
71+
7872
args: ""

resources/images/commander/Dockerfile

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)