Commit c5d6bab0 authored by Muhammad Rehan's avatar Muhammad Rehan

Add a question test

parent 732f2189
validate:
@helm dependency update ./test/machinaris/1.0.11
@helm template --values ./test/machinaris/1.0.11/ix_values.yaml machinaris ./test/machinaris/1.0.11 --debug
\ No newline at end of file
@helm dependency update ./charts/machinaris/1.1.0
@helm template --values ./charts/machinaris/1.1.0/ix_values.yaml machinaris ./charts/machinaris/1.1.0 --debug
\ No newline at end of file
......@@ -11,6 +11,7 @@ appVolumeMounts:
mountPath: /plots
coins:
- name: cactus
enabled: false
apiPort:
nodePort: 90001
targetPort: 8936
......@@ -22,6 +23,7 @@ coins:
- protocol: TCP
containerPort: 11447
- name: chives
enabled: false
apiPort:
nodePort: 90002
targetPort: 8931
......@@ -33,6 +35,7 @@ coins:
- protocol: TCP
containerPort: 9647
- name: flax
enabled: false
apiPort:
nodePort: 90003
targetPort: 8928
......@@ -44,6 +47,7 @@ coins:
- protocol: TCP
containerPort: 6885
- name: flora
enabled: false
apiPort:
nodePort: 90004
targetPort: 8932
......@@ -55,6 +59,7 @@ coins:
- protocol: TCP
containerPort: 18647
- name: hddcoin
enabled: false
apiPort:
nodePort: 90005
targetPort: 8930
......@@ -66,6 +71,7 @@ coins:
- protocol: TCP
containerPort: 28447
- name: nchain
enabled: false
apiPort:
nodePort: 90006
targetPort: 8929
......@@ -77,6 +83,7 @@ coins:
- protocol: TCP
containerPort: 38447
- name: stacoin
enabled: false
apiPort:
nodePort: 90007
targetPort: 8934
......@@ -88,6 +95,7 @@ coins:
- protocol: TCP
containerPort: 1692
- name: stor
enabled: false
apiPort:
nodePort: 90008
targetPort: 8935
......
......@@ -191,7 +191,7 @@ questions:
show_if: [["enableResourceLimits", "=", true]]
valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"
- variable: enableStor
- variable: coins.7.enabled
label: "Enable Stor"
group: "Configure Coins"
schema:
......@@ -207,3 +207,45 @@ questions:
max: 65535
default: 9004
show_if: [["enableStor", "=", true]]
- variable: coins.7.appVolumeMounts
label: "Machinaris Stor Storage"
group: "Configure Coins"
schema:
show_if: [["enableStor", "=", true]]
type: dict
attrs:
- variable: config
label: "Configuration Volume"
schema:
type: dict
attrs:
- variable: datasetName
label: "Configuration Volume Dataset Name"
schema:
type: string
hidden: true
$ref:
- "normalize/ixVolume"
show_if: [["hostPathEnabled", "=", false]]
default: "config"
editable: false
- variable: mountPath
label: "Configuration Mount Path"
description: "Path where the volume will be mounted inside the pod"
schema:
type: path
hidden: true
editable: true
default: "/root/.chia"
- variable: hostPathEnabled
label: "Enable Custom Host Path for Machinaris Configuration Volume"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: hostPath
label: "Host Path for Machinaris Configuration Volume"
schema:
type: hostpath
required: true
{{- $ref := . }}
{{- range $coin := $ref.Values.coins }}
{{- if $coin.enabled -}}
{{ $_ := set $ref "common" (dict "nameSuffix" $coin.name) }}
apiVersion: {{ template "common.capabilities.deployment.apiVersion" $ref }}
kind: Deployment
......@@ -49,3 +50,4 @@ spec:
{{ end }}
---
{{- end }}
{{- end }}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment