Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
Charts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
魏国强
Charts
Commits
31a84fce
Commit
31a84fce
authored
Nov 20, 2021
by
Muhammad Rehan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add deployments for additional coins
parent
43e7f9f5
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
161 additions
and
10 deletions
+161
-10
Makefile
Makefile
+4
-0
library/common/2105.0.0/templates/lib/containers/_image.tpl
library/common/2105.0.0/templates/lib/containers/_image.tpl
+1
-1
library/common/2105.0.0/templates/lib/containers/_port.tpl
library/common/2105.0.0/templates/lib/containers/_port.tpl
+12
-0
library/common/2105.0.0/templates/lib/storage/_appStorage.tpl
...ary/common/2105.0.0/templates/lib/storage/_appStorage.tpl
+6
-6
test/machinaris/1.0.11/Chart.yaml
test/machinaris/1.0.11/Chart.yaml
+1
-1
test/machinaris/1.0.11/charts/common-2105.0.0.tgz
test/machinaris/1.0.11/charts/common-2105.0.0.tgz
+0
-0
test/machinaris/1.0.11/ix_values.yaml
test/machinaris/1.0.11/ix_values.yaml
+84
-1
test/machinaris/1.0.11/templates/coins-deployment.yaml
test/machinaris/1.0.11/templates/coins-deployment.yaml
+51
-0
test/machinaris/1.0.11/templates/service.yaml
test/machinaris/1.0.11/templates/service.yaml
+1
-0
test/machinaris/1.0.11/test_values.yaml
test/machinaris/1.0.11/test_values.yaml
+1
-1
No files found.
Makefile
0 → 100644
View file @
31a84fce
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
library/common/2105.0.0/templates/lib/containers/_image.tpl
View file @
31a84fce
...
@@ -4,6 +4,6 @@ Retrieve image configuration for container
...
@@ -4,6 +4,6 @@ Retrieve image configuration for container
{{- define "common.containers.imageConfig" -}}
{{- define "common.containers.imageConfig" -}}
{{- $values := . -}}
{{- $values := . -}}
{{- include "common.schema.validateKeys" (dict "values" $values "checkKeys" (list "repository" "tag" "pullPolicy")) -}}
{{- include "common.schema.validateKeys" (dict "values" $values "checkKeys" (list "repository" "tag" "pullPolicy")) -}}
image: "{{ $values.repository }}:{{ $values.tag }}"
image: "{{ $values.repository }}
{{- if hasKey $values "postfix" -}}-{{ $values.postfix }}{{- end -}}
:{{ $values.tag }}"
imagePullPolicy: {{ $values.pullPolicy }}
imagePullPolicy: {{ $values.pullPolicy }}
{{- end -}}
{{- end -}}
library/common/2105.0.0/templates/lib/containers/_port.tpl
0 → 100644
View file @
31a84fce
{{
/*
Retrieve
ports
configuration
for
container
*/
}}
{{- define "common.containers.configurePorts" -}}
ports:
{{- range $index, $port := .ports -}}
{{- include "common.schema.validateKeys" (dict "values" $port "checkKeys" (list "protocol" "containerPort")) }}
- protocol: {{ $port.protocol }}
containerPort: {{ $port.containerPort }}
{{- if hasKey $port "name" }}name: {{ $port.name }}{{ end -}}
{{- end }}
{{ end -}}
library/common/2105.0.0/templates/lib/storage/_appStorage.tpl
View file @
31a84fce
...
@@ -29,23 +29,23 @@ Define hostPath for appVolumes
...
@@ -29,23 +29,23 @@ Define hostPath for appVolumes
{{- $values := . -}}
{{- $values := . -}}
{{- if $values.appVolumeMounts -}}
{{- if $values.appVolumeMounts -}}
{{- range $name, $av := $values.appVolumeMounts -}}
{{- range $name, $av := $values.appVolumeMounts -}}
{{ if (default true $av.enabled) }}
{{ if (default true $av.enabled)
-
}}
- name: {{ $name }}
- name: {{ $name }}
{{ if or $av.emptyDir $.emptyDirVolumes }}
{{
-
if or $av.emptyDir $.emptyDirVolumes }}
emptyDir: {}
emptyDir: {}
{{- else -}}
{{- else -}}
hostPath:
hostPath:
{{ if $av.hostPathEnabled }}
{{
-
if $av.hostPathEnabled }}
path: {{ required "hostPath not set" $av.hostPath }}
path: {{ required "hostPath not set" $av.hostPath }}
{{ else }}
{{ else }}
{{- include "common.schema.validateKeys" (dict "values" $values "checkKeys" (list "ixVolumes")) -}}
{{- include "common.schema.validateKeys" (dict "values" $values "checkKeys" (list "ixVolumes")) -}}
{{- include "common.schema.validateKeys" (dict "values" $av "checkKeys" (list "datasetName")) -}}
{{- include "common.schema.validateKeys" (dict "values" $av "checkKeys" (list "datasetName")) -}}
{{- $volDict := dict "datasetName" $av.datasetName "ixVolumes" $values.ixVolumes -}}
{{- $volDict := dict "datasetName" $av.datasetName "ixVolumes" $values.ixVolumes -}}
path: {{ include "common.storage.retrieveHostPathFromiXVolume" $volDict }}
path: {{ include "common.storage.retrieveHostPathFromiXVolume" $volDict }}
{{ end }}
{{ end
-
}}
{{
end
}}
{{
- end -
}}
{{ end }}
{{ end }}
{{
-
end -}}
{{ end -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- end -}}
...
...
test/machinaris/1.0.11/Chart.yaml
View file @
31a84fce
apiVersion
:
v1
apiVersion
:
v1
appVersion
:
v0.6.
1
appVersion
:
v0.6.
4
dependencies
:
dependencies
:
-
name
:
common
-
name
:
common
repository
:
file://../../../library/common/2105.0.0
repository
:
file://../../../library/common/2105.0.0
...
...
test/machinaris/1.0.11/charts/common-2105.0.0.tgz
View file @
31a84fce
No preview for this file type
test/machinaris/1.0.11/ix_values.yaml
View file @
31a84fce
image
:
image
:
pullPolicy
:
IfNotPresent
pullPolicy
:
IfNotPresent
repository
:
ghcr.io/guydavis/machinaris
repository
:
ghcr.io/guydavis/machinaris
tag
:
v0.6.1
tag
:
v0.6.4
appVolumeMounts
:
config
:
emptyDir
:
true
mountPath
:
/data
plots
:
emptyDir
:
true
mountPath
:
/plots
coins
:
-
name
:
cactus
apiPort
:
8936
ports
:
-
protocol
:
TCP
containerPort
:
8936
-
protocol
:
TCP
containerPort
:
11444
-
protocol
:
TCP
containerPort
:
11447
-
name
:
chives
apiPort
:
8931
ports
:
-
protocol
:
TCP
containerPort
:
8931
-
protocol
:
TCP
containerPort
:
9699
-
protocol
:
TCP
containerPort
:
9647
-
name
:
flax
apiPort
:
8928
ports
:
-
protocol
:
TCP
containerPort
:
8928
-
protocol
:
TCP
containerPort
:
6888
-
protocol
:
TCP
containerPort
:
6885
-
name
:
flora
apiPort
:
8936
ports
:
-
protocol
:
TCP
containerPort
:
8932
-
protocol
:
TCP
containerPort
:
18644
-
protocol
:
TCP
containerPort
:
18647
-
name
:
hddcoin
apiPort
:
8936
ports
:
-
protocol
:
TCP
containerPort
:
8930
-
protocol
:
TCP
containerPort
:
28444
-
protocol
:
TCP
containerPort
:
28447
-
name
:
nchain
apiPort
:
8936
ports
:
-
protocol
:
TCP
containerPort
:
8929
-
protocol
:
TCP
containerPort
:
58445
-
protocol
:
TCP
containerPort
:
38447
-
name
:
stacoin
apiPort
:
8936
ports
:
-
protocol
:
TCP
containerPort
:
8934
-
protocol
:
TCP
containerPort
:
1999
-
protocol
:
TCP
containerPort
:
1692
-
name
:
stor
apiPort
:
8936
ports
:
-
protocol
:
TCP
containerPort
:
8935
-
protocol
:
TCP
containerPort
:
8668
-
protocol
:
TCP
containerPort
:
8337
machinaris_ui_port
:
31003
timezone
:
America/Edmonton
updateStrategy
:
Recreate
updateStrategy
:
Recreate
nodeIP
:
127.0.0.1
test/machinaris/1.0.11/templates/coins-deployment.yaml
0 → 100644
View file @
31a84fce
{{
- $ref
:
= .
}}
{{
- range $coin
:
= $ref.Values.coins
}}
{{
$_
:
= set $ref "common" (dict "nameSuffix" $coin.name)
}}
apiVersion
:
{{
template "common.capabilities.deployment.apiVersion" $ref
}}
kind
:
Deployment
metadata
:
name
:
{{
template "common.names.fullname" $ref
}}
labels
:
{{
include "common.labels" $ref | nindent 4
}}
spec
:
strategy
:
type
:
{{
$ref.Values.updateStrategy
}}
selector
:
matchLabels
:
{{
include "common.labels.selectorLabels" $ref | nindent 6
}}
template
:
metadata
:
name
:
{{
template "common.names.fullname" $ref
}}
labels
:
{{
include "common.labels.selectorLabels" $ref | nindent 8
}}
spec
:
containers
:
-
name
:
{{
$ref.Chart.Name
}}
{{
if $ref.Values.enableResourceLimits
}}
resources
:
limits
:
cpu
:
{{
$ref.Values.cpuLimit
}}
memory
:
{{
$ref.Values.memLimit
}}
{{
end
}}
tty
:
true
{{
include "common.containers.imageConfig" (dict "repository" $ref.Values.image.repository "tag" $ref.Values.image.tag "pullPolicy" $ref.Values.image.pullPolicy "postfix" $ref.common.nameSuffix) | nindent 10
}}
{{
include "common.containers.configurePorts" $coin | nindent 10
}}
volumeMounts
:
{{
include "common.storage.configureAppVolumeMountsInContainer" $ref.Values | nindent 12
}}
{{
range $index
,
$hostPathConfiguration
:
= $ref.Values.extraAppVolumeMounts
}}
-
name
:
extrappvolume-{{ $index }}
mountPath
:
{{
$hostPathConfiguration.mountPath
}}
{{
end
}}
{{
$envList
:
= (default list $ref.Values.environmentVariables)
}}
{{
$envList = mustAppend $envList (dict "name" "TZ" "value" $ref.Values.timezone)
}}
{{
$envList = mustAppend $envList (dict "name" "worker_address" "value" $ref.Values.nodeIP)
}}
{{
$envList = mustAppend $envList (dict "name" "controller_host" "value" $ref.Values.nodeIP)
}}
{{
$envList = mustAppend $envList (dict "name" "worker_api_port" "value" $coin.apiPort)
}}
{{
$envList = mustAppend $envList (dict "name" "blockchains" "value" $coin.name)
}}
{{
$envList = mustAppend $envList (dict "name" "plots_dir" "value" $ref.Values.appVolumeMounts.plots.mountPath)
}}
{{
$envList = mustAppend $envList (dict "name" "mode" "value" "fullnode")
}}
{{
include "common.containers.allEnvironmentVariables" (dict "environmentVariables" $envList) | nindent 10
}}
volumes
:
{{
include "common.storage.configureAppVolumes" $ref.Values | nindent 8
}}
{{
range $index
,
$hostPathConfiguration
:
= $ref.Values.extraAppVolumeMounts
}}
-
name
:
extrappvolume-{{ $coin.name }}-{{ $index }}
hostPath
:
path
:
{{
$hostPathConfiguration.hostPath
}}
{{
end
}}
---
{{
- end
}}
test/machinaris/1.0.11/templates/service.yaml
View file @
31a84fce
...
@@ -4,3 +4,4 @@
...
@@ -4,3 +4,4 @@
{{
$params
:
= .
}}
{{
$params
:
= .
}}
{{
$_
:
= set $params "commonService" (dict "ports" $ports "type" "NodePort" )
}}
{{
$_
:
= set $params "commonService" (dict "ports" $ports "type" "NodePort" )
}}
{{
include "common.classes.service" $params
}}
{{
include "common.classes.service" $params
}}
{{
}}
test/machinaris/1.0.11/test_values.yaml
View file @
31a84fce
...
@@ -8,7 +8,7 @@ appVolumeMounts:
...
@@ -8,7 +8,7 @@ appVolumeMounts:
image
:
image
:
pullPolicy
:
IfNotPresent
pullPolicy
:
IfNotPresent
repository
:
ghcr.io/guydavis/machinaris
repository
:
ghcr.io/guydavis/machinaris
tag
:
v0.6.
1
tag
:
v0.6.
4
machinaris_ui_port
:
31003
machinaris_ui_port
:
31003
timezone
:
America/Edmonton
timezone
:
America/Edmonton
updateStrategy
:
Recreate
updateStrategy
:
Recreate
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment