Commit c5d6bab0 authored by Muhammad Rehan's avatar Muhammad Rehan

Add a question test

parent 732f2189
validate: validate:
@helm dependency update ./test/machinaris/1.0.11 @helm dependency update ./charts/machinaris/1.1.0
@helm template --values ./test/machinaris/1.0.11/ix_values.yaml machinaris ./test/machinaris/1.0.11 --debug @helm template --values ./charts/machinaris/1.1.0/ix_values.yaml machinaris ./charts/machinaris/1.1.0 --debug
\ No newline at end of file \ No newline at end of file
...@@ -11,6 +11,7 @@ appVolumeMounts: ...@@ -11,6 +11,7 @@ appVolumeMounts:
mountPath: /plots mountPath: /plots
coins: coins:
- name: cactus - name: cactus
enabled: false
apiPort: apiPort:
nodePort: 90001 nodePort: 90001
targetPort: 8936 targetPort: 8936
...@@ -22,6 +23,7 @@ coins: ...@@ -22,6 +23,7 @@ coins:
- protocol: TCP - protocol: TCP
containerPort: 11447 containerPort: 11447
- name: chives - name: chives
enabled: false
apiPort: apiPort:
nodePort: 90002 nodePort: 90002
targetPort: 8931 targetPort: 8931
...@@ -33,6 +35,7 @@ coins: ...@@ -33,6 +35,7 @@ coins:
- protocol: TCP - protocol: TCP
containerPort: 9647 containerPort: 9647
- name: flax - name: flax
enabled: false
apiPort: apiPort:
nodePort: 90003 nodePort: 90003
targetPort: 8928 targetPort: 8928
...@@ -44,6 +47,7 @@ coins: ...@@ -44,6 +47,7 @@ coins:
- protocol: TCP - protocol: TCP
containerPort: 6885 containerPort: 6885
- name: flora - name: flora
enabled: false
apiPort: apiPort:
nodePort: 90004 nodePort: 90004
targetPort: 8932 targetPort: 8932
...@@ -55,6 +59,7 @@ coins: ...@@ -55,6 +59,7 @@ coins:
- protocol: TCP - protocol: TCP
containerPort: 18647 containerPort: 18647
- name: hddcoin - name: hddcoin
enabled: false
apiPort: apiPort:
nodePort: 90005 nodePort: 90005
targetPort: 8930 targetPort: 8930
...@@ -66,6 +71,7 @@ coins: ...@@ -66,6 +71,7 @@ coins:
- protocol: TCP - protocol: TCP
containerPort: 28447 containerPort: 28447
- name: nchain - name: nchain
enabled: false
apiPort: apiPort:
nodePort: 90006 nodePort: 90006
targetPort: 8929 targetPort: 8929
...@@ -77,6 +83,7 @@ coins: ...@@ -77,6 +83,7 @@ coins:
- protocol: TCP - protocol: TCP
containerPort: 38447 containerPort: 38447
- name: stacoin - name: stacoin
enabled: false
apiPort: apiPort:
nodePort: 90007 nodePort: 90007
targetPort: 8934 targetPort: 8934
...@@ -88,6 +95,7 @@ coins: ...@@ -88,6 +95,7 @@ coins:
- protocol: TCP - protocol: TCP
containerPort: 1692 containerPort: 1692
- name: stor - name: stor
enabled: false
apiPort: apiPort:
nodePort: 90008 nodePort: 90008
targetPort: 8935 targetPort: 8935
......
...@@ -191,7 +191,7 @@ questions: ...@@ -191,7 +191,7 @@ questions:
show_if: [["enableResourceLimits", "=", true]] show_if: [["enableResourceLimits", "=", true]]
valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$" valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"
- variable: enableStor - variable: coins.7.enabled
label: "Enable Stor" label: "Enable Stor"
group: "Configure Coins" group: "Configure Coins"
schema: schema:
...@@ -207,3 +207,45 @@ questions: ...@@ -207,3 +207,45 @@ questions:
max: 65535 max: 65535
default: 9004 default: 9004
show_if: [["enableStor", "=", true]] 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 := . }} {{- $ref := . }}
{{- range $coin := $ref.Values.coins }} {{- range $coin := $ref.Values.coins }}
{{- if $coin.enabled -}}
{{ $_ := set $ref "common" (dict "nameSuffix" $coin.name) }} {{ $_ := set $ref "common" (dict "nameSuffix" $coin.name) }}
apiVersion: {{ template "common.capabilities.deployment.apiVersion" $ref }} apiVersion: {{ template "common.capabilities.deployment.apiVersion" $ref }}
kind: Deployment kind: Deployment
...@@ -49,3 +50,4 @@ spec: ...@@ -49,3 +50,4 @@ spec:
{{ end }} {{ end }}
--- ---
{{- 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