Skip to content

Commit 46d32d2

Browse files
committed
charts: plain python image for scenarios
1 parent f10ae75 commit 46d32d2

File tree

4 files changed

+3
-37
lines changed

4 files changed

+3
-37
lines changed

resources/charts/commander/templates/configmap.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
apiVersion: v1
22
kind: ConfigMap
3-
metadata:
4-
name: {{ include "commander.fullname" . }}-scenario
5-
labels:
6-
{{- include "commander.labels" . | nindent 4 }}
7-
binaryData:
8-
scenario.py: {{ .Values.scenario }}
9-
---
10-
apiVersion: v1
11-
kind: ConfigMap
123
metadata:
134
name: {{ include "commander.fullname" . }}-warnet
145
labels:

resources/charts/commander/templates/pod.yaml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,17 @@ 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
2623
volumes:
27-
- name: scenario
28-
configMap:
29-
name: {{ include "commander.fullname" . }}-scenario
3024
- name: warnet
3125
configMap:
3226
name: {{ include "commander.fullname" . }}-warnet

resources/charts/commander/values.yaml

Lines changed: 0 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,6 @@ volumeMounts: []
7165

7266
port:
7367

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

7870
args: ""

resources/images/commander/Dockerfile

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

0 commit comments

Comments
 (0)