From 80a3c0e8d73f4ddb10ce4b67daf6efb08c28239e Mon Sep 17 00:00:00 2001 From: sonicaj Date: Tue, 4 Jan 2022 12:00:10 +0000 Subject: [PATCH] Upgraded catalog item(s) This commit upgrades machinaris, minio catalog item(s). --- charts/machinaris/1.0.11/README.md | 9 - charts/machinaris/1.0.11/app-readme.md | 4 - .../1.0.11/charts/common-2112.0.0.tgz | Bin 4468 -> 0 bytes charts/machinaris/1.0.11/ix_values.yaml | 5 - charts/machinaris/1.0.11/questions.yaml | 190 -- charts/machinaris/1.0.11/test_values.yaml | 15 - .../machinaris/1.1.1}/.helmignore | 0 .../machinaris/1.1.1}/Chart.yaml | 4 +- .../machinaris/1.1.1}/README.md | 0 .../machinaris/1.1.1}/app-readme.md | 0 .../1.1.1}/charts/common-2112.0.0.tgz | Bin charts/machinaris/1.1.1/ix_values.yaml | 181 ++ .../machinaris/1.1.1}/questions.yaml | 0 .../machinaris/1.1.1}/requirements.lock | 0 .../machinaris/1.1.1}/templates/_helpers.tpl | 0 .../1.1.1}/templates/coins-deployment.yaml | 0 .../1.1.1}/templates/deployment.yaml | 0 .../{1.0.11 => 1.1.1}/templates/service.yaml | 0 .../1.1.1}/templates/tests/cactus-check.yaml | 0 .../templates/tests/machinaris-check.yaml | 0 .../machinaris/1.1.1}/test_values.yaml | 102 +- .../1.0.11 => minio/1.4.14}/.helmignore | 0 charts/minio/{1.4.13 => 1.4.14}/Chart.yaml | 4 +- charts/minio/{1.4.13 => 1.4.14}/README.md | 0 charts/minio/{1.4.13 => 1.4.14}/app-readme.md | 0 .../charts/common-2112.0.0.tgz | Bin .../{1.4.13 => 1.4.14}/default_values.yaml | 0 .../minio/{1.4.13 => 1.4.14}/ix_values.yaml | 2 +- .../migrations/migrate_from_1.0.0 | 0 .../minio/{1.4.13 => 1.4.14}/questions.yaml | 0 .../{1.4.13 => 1.4.14}/requirements.lock | 0 .../{1.4.13 => 1.4.14}/templates/NOTES.txt | 0 .../{1.4.13 => 1.4.14}/templates/_cert.tpl | 0 .../{1.4.13 => 1.4.14}/templates/_helpers.tpl | 0 .../templates/configmap.yaml | 0 .../templates/deployment.yaml | 0 .../{1.4.13 => 1.4.14}/templates/secrets.yaml | 0 .../{1.4.13 => 1.4.14}/templates/service.yaml | 0 .../templates/serviceaccount.yaml | 0 .../minio/{1.4.13 => 1.4.14}/test_values.yaml | 2 +- charts/minio/{1.4.13 => 1.4.14}/values.yaml | 0 test/machinaris/1.1.0/ix_values.yaml | 194 -- .../1.4.13 => machinaris/1.1.1}/.helmignore | 2 +- .../machinaris/1.1.1}/Chart.yaml | 4 +- test/machinaris/1.1.1/README.md | 71 + test/machinaris/1.1.1/app-readme.md | 66 + .../1.1.1/charts/common-2112.0.0.tgz | Bin 0 -> 4467 bytes test/machinaris/1.1.1/ix_values.yaml | 181 ++ test/machinaris/1.1.1/questions.yaml | 1623 +++++++++++++++++ .../machinaris/1.1.1}/requirements.lock | 2 +- test/machinaris/1.1.1/templates/_helpers.tpl | 40 + .../1.1.1/templates/coins-deployment.yaml | 46 + .../1.1.1}/templates/deployment.yaml | 28 +- .../{1.1.0 => 1.1.1}/templates/service.yaml | 0 .../1.1.1/templates/tests/cactus-check.yaml | 15 + .../templates/tests/machinaris-check.yaml | 13 + test/machinaris/1.1.1/test_values.yaml | 73 + .../1.4.13 => test/minio/1.4.14}/.helmignore | 0 test/minio/{1.4.13 => 1.4.14}/Chart.yaml | 4 +- test/minio/{1.4.13 => 1.4.14}/README.md | 0 test/minio/{1.4.13 => 1.4.14}/app-readme.md | 0 .../charts/common-2112.0.0.tgz | Bin .../{1.4.13 => 1.4.14}/default_values.yaml | 0 test/minio/{1.4.13 => 1.4.14}/ix_values.yaml | 2 +- .../migrations/migrate_from_1.0.0 | 0 test/minio/{1.4.13 => 1.4.14}/questions.yaml | 0 .../{1.4.13 => 1.4.14}/requirements.lock | 0 .../{1.4.13 => 1.4.14}/templates/NOTES.txt | 0 .../{1.4.13 => 1.4.14}/templates/_cert.tpl | 0 .../{1.4.13 => 1.4.14}/templates/_helpers.tpl | 0 .../templates/configmap.yaml | 0 .../templates/deployment.yaml | 0 .../{1.4.13 => 1.4.14}/templates/secrets.yaml | 0 .../{1.4.13 => 1.4.14}/templates/service.yaml | 0 .../templates/serviceaccount.yaml | 0 .../minio/{1.4.13 => 1.4.14}/test_values.yaml | 2 +- test/minio/{1.4.13 => 1.4.14}/values.yaml | 0 77 files changed, 2376 insertions(+), 508 deletions(-) delete mode 100755 charts/machinaris/1.0.11/README.md delete mode 100644 charts/machinaris/1.0.11/app-readme.md delete mode 100644 charts/machinaris/1.0.11/charts/common-2112.0.0.tgz delete mode 100644 charts/machinaris/1.0.11/ix_values.yaml delete mode 100644 charts/machinaris/1.0.11/questions.yaml delete mode 100644 charts/machinaris/1.0.11/test_values.yaml rename {test/machinaris/1.1.0 => charts/machinaris/1.1.1}/.helmignore (100%) rename {test/machinaris/1.1.0 => charts/machinaris/1.1.1}/Chart.yaml (92%) rename {test/machinaris/1.1.0 => charts/machinaris/1.1.1}/README.md (100%) rename {test/machinaris/1.1.0 => charts/machinaris/1.1.1}/app-readme.md (100%) rename {test/machinaris/1.1.0 => charts/machinaris/1.1.1}/charts/common-2112.0.0.tgz (100%) create mode 100644 charts/machinaris/1.1.1/ix_values.yaml rename {test/machinaris/1.1.0 => charts/machinaris/1.1.1}/questions.yaml (100%) rename {test/machinaris/1.1.0 => charts/machinaris/1.1.1}/requirements.lock (100%) rename {test/machinaris/1.1.0 => charts/machinaris/1.1.1}/templates/_helpers.tpl (100%) rename {test/machinaris/1.1.0 => charts/machinaris/1.1.1}/templates/coins-deployment.yaml (100%) rename {test/machinaris/1.1.0 => charts/machinaris/1.1.1}/templates/deployment.yaml (100%) rename charts/machinaris/{1.0.11 => 1.1.1}/templates/service.yaml (100%) rename {test/machinaris/1.1.0 => charts/machinaris/1.1.1}/templates/tests/cactus-check.yaml (100%) rename {test/machinaris/1.1.0 => charts/machinaris/1.1.1}/templates/tests/machinaris-check.yaml (100%) rename {test/machinaris/1.1.0 => charts/machinaris/1.1.1}/test_values.yaml (59%) rename charts/{machinaris/1.0.11 => minio/1.4.14}/.helmignore (100%) rename charts/minio/{1.4.13 => 1.4.14}/Chart.yaml (91%) rename charts/minio/{1.4.13 => 1.4.14}/README.md (100%) rename charts/minio/{1.4.13 => 1.4.14}/app-readme.md (100%) rename charts/minio/{1.4.13 => 1.4.14}/charts/common-2112.0.0.tgz (100%) rename charts/minio/{1.4.13 => 1.4.14}/default_values.yaml (100%) rename charts/minio/{1.4.13 => 1.4.14}/ix_values.yaml (62%) rename charts/minio/{1.4.13 => 1.4.14}/migrations/migrate_from_1.0.0 (100%) rename charts/minio/{1.4.13 => 1.4.14}/questions.yaml (100%) rename charts/minio/{1.4.13 => 1.4.14}/requirements.lock (100%) rename charts/minio/{1.4.13 => 1.4.14}/templates/NOTES.txt (100%) rename charts/minio/{1.4.13 => 1.4.14}/templates/_cert.tpl (100%) rename charts/minio/{1.4.13 => 1.4.14}/templates/_helpers.tpl (100%) rename charts/minio/{1.4.13 => 1.4.14}/templates/configmap.yaml (100%) rename charts/minio/{1.4.13 => 1.4.14}/templates/deployment.yaml (100%) rename charts/minio/{1.4.13 => 1.4.14}/templates/secrets.yaml (100%) rename charts/minio/{1.4.13 => 1.4.14}/templates/service.yaml (100%) rename charts/minio/{1.4.13 => 1.4.14}/templates/serviceaccount.yaml (100%) rename charts/minio/{1.4.13 => 1.4.14}/test_values.yaml (91%) rename charts/minio/{1.4.13 => 1.4.14}/values.yaml (100%) delete mode 100644 test/machinaris/1.1.0/ix_values.yaml rename test/{minio/1.4.13 => machinaris/1.1.1}/.helmignore (98%) rename {charts/machinaris/1.0.11 => test/machinaris/1.1.1}/Chart.yaml (92%) create mode 100755 test/machinaris/1.1.1/README.md create mode 100644 test/machinaris/1.1.1/app-readme.md create mode 100644 test/machinaris/1.1.1/charts/common-2112.0.0.tgz create mode 100644 test/machinaris/1.1.1/ix_values.yaml create mode 100644 test/machinaris/1.1.1/questions.yaml rename {charts/machinaris/1.0.11 => test/machinaris/1.1.1}/requirements.lock (79%) create mode 100644 test/machinaris/1.1.1/templates/_helpers.tpl create mode 100644 test/machinaris/1.1.1/templates/coins-deployment.yaml rename {charts/machinaris/1.0.11 => test/machinaris/1.1.1}/templates/deployment.yaml (60%) rename test/machinaris/{1.1.0 => 1.1.1}/templates/service.yaml (100%) create mode 100644 test/machinaris/1.1.1/templates/tests/cactus-check.yaml create mode 100644 test/machinaris/1.1.1/templates/tests/machinaris-check.yaml create mode 100644 test/machinaris/1.1.1/test_values.yaml rename {charts/minio/1.4.13 => test/minio/1.4.14}/.helmignore (100%) rename test/minio/{1.4.13 => 1.4.14}/Chart.yaml (91%) rename test/minio/{1.4.13 => 1.4.14}/README.md (100%) rename test/minio/{1.4.13 => 1.4.14}/app-readme.md (100%) rename test/minio/{1.4.13 => 1.4.14}/charts/common-2112.0.0.tgz (100%) rename test/minio/{1.4.13 => 1.4.14}/default_values.yaml (100%) rename test/minio/{1.4.13 => 1.4.14}/ix_values.yaml (62%) rename test/minio/{1.4.13 => 1.4.14}/migrations/migrate_from_1.0.0 (100%) rename test/minio/{1.4.13 => 1.4.14}/questions.yaml (100%) rename test/minio/{1.4.13 => 1.4.14}/requirements.lock (100%) rename test/minio/{1.4.13 => 1.4.14}/templates/NOTES.txt (100%) rename test/minio/{1.4.13 => 1.4.14}/templates/_cert.tpl (100%) rename test/minio/{1.4.13 => 1.4.14}/templates/_helpers.tpl (100%) rename test/minio/{1.4.13 => 1.4.14}/templates/configmap.yaml (100%) rename test/minio/{1.4.13 => 1.4.14}/templates/deployment.yaml (100%) rename test/minio/{1.4.13 => 1.4.14}/templates/secrets.yaml (100%) rename test/minio/{1.4.13 => 1.4.14}/templates/service.yaml (100%) rename test/minio/{1.4.13 => 1.4.14}/templates/serviceaccount.yaml (100%) rename test/minio/{1.4.13 => 1.4.14}/test_values.yaml (91%) rename test/minio/{1.4.13 => 1.4.14}/values.yaml (100%) diff --git a/charts/machinaris/1.0.11/README.md b/charts/machinaris/1.0.11/README.md deleted file mode 100755 index 613aec890d..0000000000 --- a/charts/machinaris/1.0.11/README.md +++ /dev/null @@ -1,9 +0,0 @@ -Machinaris -===== - -[MACHINARIS](https://github.com/guydavis/machinaris) is an easy-to-use WebUI for Chia plotting and farming. Includes Chia, Plotman, MadMax, Chiadog, and Flax in a single Docker image. - -Introduction ------------- - -This chart bootstraps MACHINARIS deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. diff --git a/charts/machinaris/1.0.11/app-readme.md b/charts/machinaris/1.0.11/app-readme.md deleted file mode 100644 index 0e815a115c..0000000000 --- a/charts/machinaris/1.0.11/app-readme.md +++ /dev/null @@ -1,4 +0,0 @@ -Machinaris -===== - -[MACHINARIS](https://github.com/guydavis/machinaris) is an easy-to-use WebUI for Chia plotting and farming. Includes Chia, Plotman, MadMax, Chiadog, and Flax in a single Docker image. diff --git a/charts/machinaris/1.0.11/charts/common-2112.0.0.tgz b/charts/machinaris/1.0.11/charts/common-2112.0.0.tgz deleted file mode 100644 index 62591a2a38491b4d723c7a305993a5f529121e6d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4468 zcmV-)5sU60iwG0|00000|0w_~VMtOiV@ORlOnEsqVl!4SWK%V1T2nbTPgYhoO;>Dc zVQyr3R8em|NM&qo0PH>ebKAC({h5Eo9+S?qay2E{vVG&3&YaKoYduXJPwdNkotqmE zL_!j33Savd%a%$|K47&_g#O`KiD7a9}ap4-}U-?gM-8Gp!W>8G+Hhs;@|b2{I2@s zzLAD9@(y!B7(IsBUVyT!yzB=F7BMH8)Ym7Fk|9TY4zZ#Z7%>jypYUchA~8WJoFa)* zHV!D7;$tv`707vpkKMpv=3wvj`+HF@>IGkV{(tpm`CsB`mLiEo_f}v&BQZvC%yKFt znLSw~tm6N{QNPCjhlBks|8Jyy{MdaJoN6KfyYpbTK6urAcnCgz+=T>>2*nT@Vu`90 z62k7oLr{?;{osz!rM8^Su5fUFi0-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C~4Ot50Z1iHW&Dym*Dpw&7-`nmiIXt<3m zOR8K*J!T~1ru#IL^E1NXW%1K4o9XOs9>d2<-Dz`{(Ct!DuG^4Ix<%gY%{ z&lHT~AHl%#JL@&^ZusaHL{i);02j;Mn1f{&Zrv9@+vWZ{XH)V|112nSYArCkxG2jS zr*wb9QWqwkS&Y|i>^1X$w)uY>X;t5}Ql?rL7(WB~ zP>9_j5;y@y!RnUf&g%8FM$Mja`QJ{XSM&RnjpHdUC#VwP{_=~$aKYfxNT~XIURE@v zgH;H@HDR^XOaFGHk>&qrg3~D(Q^xVl{_WMPz?4@a0ucPq z&p4e{U;n>56Dc!s-0iwbvI&btSF()6+B8*NZ*}=D(S4!%bRxKre-n`9JYz!VDX1xo zIm3{ym?#1tu@G1IY=^7R(D{_A7< zhG5K4sxTR1HI=iszePdt;ssn#$yt)?kd0kXQ~b +>If Custom Host Path is not enabled for a Volume Configuration then, application will use ix-volumes and create datasets inside for Host Path by default. +> +>The path for ix-volumes has the following composition: +>``` +>/mnt//ix-applications/releases//volumes/ix-volumes/ +>``` +>And with the dataset inside, would be like: +>``` +>/mnt//ix-applications/releases//volumes/ix-volumes/> +>``` +> +Following are the Volume Configurations for Machinaris main node & the coin-forks by default: + +| Volume | hostPath (default value) | mountPath in container | Description | +| ---------------------- | ----------------------------------------------------- | ----------------------- | ----------------------------------------------- | +| `config` | `/config` | `/root/.chia` | Chia config for main node | +| `plots` | `/plots` | `/plots` | Plots volume for main node & coin forks | +| `plotting` | `/plotting` | `/plotting` | Plotting temp volume for main node & coin forks | +| `-config` | `/-config` | `/root/.chia` | Chia config for each of the coin-fork containers| + +Where `` is `/mnt//ix-applications/releases//volumes/ix_volumes/` and `` is one of the following: `[ cactus, chives, crypodoge, flax, flora, hddcoin, maize, nchain, staicoin, stor, btcgreen ]`. diff --git a/test/machinaris/1.1.1/app-readme.md b/test/machinaris/1.1.1/app-readme.md new file mode 100644 index 0000000000..d8bfc3c15f --- /dev/null +++ b/test/machinaris/1.1.1/app-readme.md @@ -0,0 +1,66 @@ +Machinaris +===== + +[MACHINARIS](https://github.com/guydavis/machinaris) is an easy-to-use WebUI for Chia plotting and farming. This includes Chia, Plotman, MadMax, Chiadog under main node along with various coin-forks which can be enabled conditionally. + +Coins include Cactus, Chives, CrypoDoge, Flax, Flora, HDDCoin, Maize, NChain, StaiCoin, Stor and BTCGreen. + +# Machinaris Defaults +This section contains information about the defaults of Machinaris application for visibility. + +## 1. Environment Variables +Following are the default environment variables for Machinaris main node and the coin forks. + +### Machinaris Node +Machinaris main node comes with following default environment variables: + +| Variable | Default Value | Description | +| ---------------- | ----------------------------------------------------- | --------------------- | +| TZ | Same as to User selected Timezone | Timezone information | +| worker_address | Same as to LAN IP address | Worker Address | +| blockchains | chia | Block Chain | +| plots_dir | Same as to User selected plots volume | Plots Directory | +| mode | fullnode | Machinaris Mode | + +These values can be overridden while configuring Machinaris application. + +### Coin Forks +Coin forks also come with a set of default environment variables: + +| Variable | Default Value | Description | +| ---------------- | ----------------------------------------------------- | --------------------- | +| TZ | Same as to User selected Timezone | Timezone information | +| worker_address | Same as to LAN IP address | Worker Address | +| blockchains | chia | BlockChain | +| plots_dir | Same as to User selected plots volume | Plots Directory | +| mode | fullnode | Machinaris Mode | +| controller_host| Same as to LAN IP address | Controller Host | +| worker_api_port| Coin's Workload REST API Port | Worker API Port | + +These defaults can be overridden for each coin fork when you enable them through Machinaris application configuration. + +## 2. Volumes + +Before getting to defaults, please take the following note: +> +>If Custom Host Path is not enabled for a Volume Configuration then, application will use ix-volumes and create datasets inside for Host Path by default. +> +>The path for ix-volumes has the following composition: +>``` +>/mnt//ix-applications/releases//volumes/ix-volumes/ +>``` +>And with the dataset inside, would be like: +>``` +>/mnt//ix-applications/releases//volumes/ix-volumes/> +>``` +> +Following are the Volume Configurations for Machinaris main node & the coin-forks by default: + +| Volume | hostPath (default value) | mountPath in container | Description | +| ---------------------- | ----------------------------------------------------- | ----------------------- | ----------------------------------------------- | +| `config` | `/config` | `/root/.chia` | Chia config for main node | +| `plots` | `/plots` | `/plots` | Plots volume for main node & coin forks | +| `plotting` | `/plotting` | `/plotting` | Plotting temp volume for main node & coin forks | +| `-config` | `/-config` | `/root/.chia` | Chia config for each of the coin-fork containers| + +Where `` is `/mnt//ix-applications/releases//volumes/ix_volumes/` and `` is one of the following: `[ cactus, chives, crypodoge, flax, flora, hddcoin, maize, nchain, staicoin, stor, btcgreen ]`. diff --git a/test/machinaris/1.1.1/charts/common-2112.0.0.tgz b/test/machinaris/1.1.1/charts/common-2112.0.0.tgz new file mode 100644 index 0000000000000000000000000000000000000000..b59d12bcec328438f0764e93aeda41b45f8cd970 GIT binary patch literal 4467 zcmV-(5sdC1iwG0|00000|0w_~VMtOiV@ORlOnEsqVl!4SWK%V1T2nbTPgYhoO;>Dc zVQyr3R8em|NM&qo0PH<$Z`-(*^Vz@RtlGhiyA$~lCs_m-V6#c?OwdjmG}+!eSS$is zqHQ)ZsgjgaZzlWOFZhzEhaYJgx1BLRw3b939g^pza}G};Hk~rsIhi0X!#SEJKYaPt z?RL8dgMt3P+wE5W@AkXhA9{n{{@$QJ=ywl(==S=9{r(ToeFj`=EfW&)AG%L|S9NmV zNkb`lkGUX>9>J{NLTOrD_F6F(5htnC*T;~MAxC@;k)jqDF%IOP@OCsJ5kU!@Ac+z- zZc#MFM_>r6CFdzVasyj42fN?v^}}x1ZGG+e|J9r2e~G7Qf+QB58-e+ZL>NU8%cu-x z`ec!?ivI_Py$b&y4EDDCzmax--+9$K(L?}t=fQ4$>s9CBp>==13o#xMiXkw>5|$|> zfZd0OR!NTZTDOG8M{s329$R=*EK!UkI%)wJA#r~Xghojg7r@m6;a*`!UZ5!sAcQ~Q zW5y(ghX)Hmq$o0A!gn~qNZ|0o-7fb|&=4m=b=|GK(mV?VPH-d{f1@wW`zWC?rV<8v zl4>xfvHtzFH|`6y8vjQL62g-MUqAq?;Q#)hKdAEmes9bF8)=&VuO~!+BLOW2umB_g z!7#~i$_X{v9wmw6X<)+-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(cs7md*IPrz}4B$;6&M~eH1#;q4X z@!0V5PRj9!e8RE$OF#eC4ncnyGO9-^lpw_%5<+p<3Qw0fjf83>*(M|zqh@#spg%Q!my+d)AwqAupblZ9r%BlLz zI2pHI{eSBPyhog{Ou+f+nP`P6XCH7RTOo-t>X`1FeQ1R<5wRF|zH!#q&GP@dv*Xj> z&cbQ@9Pd~e|LNBFzq_sfy_xm`-q=6tda~?~x~hA+L#y@b)jy8kU7TP1as=1Eo?pSq zugCAM;rt3N-d@9RXU7-UaQznk>kQ5>uC9;Yyg56C)AM&{C)aO&fAy+m$}1582>$0+ zoJ`BF|KFX7l&LuCbX+Cbm_?!^SxO>pnyRihx_p=Dyik4GA)L#<2}m=ZGNJPn)D*^? zWvLQg?oZIMF^OP^}Qz|LSahydMrif69DN;Zqrei0?>n(8o*Yh%=tL^C$jC>9#nrLGT z!I+^$VKT&ODyQ#$4_mDlFW{U?&f-jmZ0v%X;%7E8BiyX>WYGyuQp^S1O-M9>2+_Q% zpJWi@8BSOV6yG_tG97Nx8&unpwo?dT%Hs0ydysS6wr$(CZQE9E{|W#A|Nm^ZLJ|Og F0068Z+SmX9 literal 0 HcmV?d00001 diff --git a/test/machinaris/1.1.1/ix_values.yaml b/test/machinaris/1.1.1/ix_values.yaml new file mode 100644 index 0000000000..3fff630bcb --- /dev/null +++ b/test/machinaris/1.1.1/ix_values.yaml @@ -0,0 +1,181 @@ +apiPort: 8927 +btcgreen: + apiPort: 8938 + farmerPort: 18655 + ports: + - containerPort: 8938 + name: api + protocol: TCP + - containerPort: 9282 + name: blockchain + protocol: TCP + - containerPort: 18655 + name: farming + protocol: TCP +cactus: + apiPort: 8936 + farmerPort: 11447 + ports: + - containerPort: 8936 + hostPort: 8936 + name: api + protocol: TCP + - containerPort: 11444 + hostPort: 11444 + name: blockchain + protocol: TCP + - containerPort: 11447 + hostPort: 11447 + name: farming + protocol: TCP +chives: + apiPort: 8931 + farmerPort: 9647 + ports: + - containerPort: 8931 + name: api + protocol: TCP + - containerPort: 9699 + name: blockchain + protocol: TCP + - containerPort: 9647 + name: farming + protocol: TCP +coins: +- cactus +- chives +- cryptodoge +- flax +- flora +- hddcoin +- maize +- nchain +- staicoin +- stor +- btcgreen +cryptodoge: + apiPort: 8937 + farmerPort: 16895 + ports: + - containerPort: 8937 + name: api + protocol: TCP + - containerPort: 15994 + name: blockchain + protocol: TCP + - containerPort: 16895 + name: farming + protocol: TCP +farmerPort: 8447 +flax: + apiPort: 8928 + farmerPort: 6885 + ports: + - containerPort: 8928 + name: api + protocol: TCP + - containerPort: 6888 + name: blockchain + protocol: TCP + - containerPort: 6885 + name: farming + protocol: TCP +flora: + apiPort: 8932 + farmerPort: 18647 + ports: + - containerPort: 8932 + name: api + protocol: TCP + - containerPort: 18644 + name: blockchain + protocol: TCP + - containerPort: 18647 + name: farming + protocol: TCP +hddcoin: + apiPort: 8930 + farmerPort: 28447 + ports: + - containerPort: 8930 + name: api + protocol: TCP + - containerPort: 28444 + name: blockchain + protocol: TCP + - containerPort: 28447 + name: farming + protocol: TCP +image: + pullPolicy: IfNotPresent + repository: ghcr.io/guydavis/machinaris + tag: v0.6.8 +maize: + apiPort: 8933 + farmerPort: 8647 + ports: + - containerPort: 8933 + name: api + protocol: TCP + - containerPort: 8644 + name: blockchain + protocol: TCP + - containerPort: 8647 + name: farming + protocol: TCP +nchain: + apiPort: 8929 + farmerPort: 38447 + ports: + - containerPort: 8929 + name: api + protocol: TCP + - containerPort: 58445 + name: blockchain + protocol: TCP + - containerPort: 38447 + name: farming + protocol: TCP +ports: +- containerPort: 8444 + hostPort: 8444 + name: chia-network + protocol: TCP +- containerPort: 8926 + name: machinaris-ui + protocol: TCP +- containerPort: 8927 + hostPort: 8927 + name: machinaris-api + protocol: TCP +- containerPort: 8447 + hostPort: 8447 + name: farming + protocol: TCP +staicoin: + apiPort: 8934 + farmerPort: 1692 + ports: + - containerPort: 8934 + name: api + protocol: TCP + - containerPort: 1999 + name: blockchain + protocol: TCP + - containerPort: 1692 + name: farming + protocol: TCP +stor: + apiPort: 8935 + farmerPort: 8337 + ports: + - containerPort: 8935 + name: api + protocol: TCP + - containerPort: 8668 + name: blockchain + protocol: TCP + - containerPort: 8337 + name: farming + protocol: TCP +updateStrategy: Recreate diff --git a/test/machinaris/1.1.1/questions.yaml b/test/machinaris/1.1.1/questions.yaml new file mode 100644 index 0000000000..8b926c2d0d --- /dev/null +++ b/test/machinaris/1.1.1/questions.yaml @@ -0,0 +1,1623 @@ +groups: + - name: "Networking" + description: "Configure Networking for Machinaris" + - name: "Machinaris Configuration" + description: "Machinaris configuration" + - name: "Storage" + description: "Configure Storage for Machinaris" + - name: "Machinaris Environment Variables" + description: "Set the environment that will be visible to the container" + - name: "Resource Limits" + description: "Set CPU/memory limits for Kubernetes Pod" + - name: "Configure Coins" + description: "Configure different coins" + +portals: + web_portal: + protocols: + - "http" + host: + - "$node_ip" + ports: + - "$variable-machinaris_ui_port" + +questions: + - variable: timezone + label: "Configure timezone" + group: "Machinaris Configuration" + description: "Configure timezone for machinaris" + schema: + type: string + $ref: + - "definitions/timezone" + + - variable: nodeIP + description: "LAN IP address of your TrueNAS server" + group: "Machinaris Configuration" + label: "Worker Address" + schema: + type: string + $ref: + - "definitions/nodeIP" + + - variable: machinaris_ui_port + label: "Machinaris Web UI" + group: "Networking" + description: "Web UI Port for Machinaris" + schema: + type: int + min: 9000 + max: 65535 + default: 9003 + - variable: machinarisApiPort + label: "Machinaris API port" + group: "Networking" + description: "API port for Machinaris" + schema: + editable: false + hidden: true + type: int + default: 8927 + - variable: appVolumeMounts + label: "Machinaris Storage" + group: "Storage" + schema: + 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 + - variable: plots + label: "Plot Volume" + schema: + type: dict + attrs: + - variable: datasetName + label: "Plots Volume Name" + schema: + type: string + hidden: true + $ref: + - "normalize/ixVolume" + show_if: [["hostPathEnabled", "=", false]] + default: "plots" + editable: false + - variable: mountPath + label: "Plots Mount Path" + description: "Path where the volume will be mounted inside the pod" + schema: + type: path + hidden: true + editable: false + default: "/plots" + - variable: hostPathEnabled + label: "Enable Custom Host Path for Machinaris Plots Volume" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: hostPath + label: "Host Path for Machinaris Plots Volume" + schema: + type: hostpath + required: true + - variable: plotting + label: "Plotting Temp Volume" + schema: + type: dict + attrs: + - variable: datasetName + label: "Plotting Volume Name" + schema: + type: string + hidden: true + $ref: + - "normalize/ixVolume" + show_if: [["hostPathEnabled", "=", false]] + default: "plotting" + editable: false + - variable: mountPath + label: "Plotting Mount Path" + description: "Path where the volume will be mounted inside the pod" + schema: + type: path + hidden: true + editable: false + default: "/plotting" + - variable: hostPathEnabled + label: "Enable Custom Host Path for Machinaris Plotting Temp Volume" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: hostPath + label: "Host Path for Machinaris Plotting Volume" + schema: + type: hostpath + required: true + + - variable: extraAppVolumeMounts + label: "Machinaris Extra Host Path Volumes" + group: "Storage" + schema: + type: list + items: + - variable: extraAppVolume + label: "Machinaris Host Path Volume" + description: "Add an extra host path volume for machinaris application" + schema: + type: dict + attrs: + - variable: mountPath + label: "Mount Path in Pod" + description: "Path where the volume will be mounted inside the pod" + schema: + type: path + required: true + - variable: hostPath + label: "Host Path" + description: "Host path" + schema: + type: hostpath + required: true + + - variable: environmentVariables + label: "Environment Variables for Machinaris" + group: "Machinaris Environment Variables" + schema: + type: list + default: [] + items: + - variable: environmentVariable + label: "Environment Variable" + schema: + type: dict + attrs: + - variable: name + label: "Name" + schema: + type: string + - variable: value + label: "Value" + schema: + type: string + + - variable: enableResourceLimits + label: "Enable Pod resource limits" + group: "Resource Limits" + schema: + type: boolean + - variable: cpuLimit + label: "CPU limit" + group: "Resource Limits" + schema: + type: string + show_if: [["enableResourceLimits", "=", true]] + valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)" + - variable: memLimit + label: "Memory limit" + group: "Resource Limits" + schema: + type: string + show_if: [["enableResourceLimits", "=", true]] + valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$" + + # Cactus Configurations + - variable: cactusEnabled + label: "Enable Cactus" + group: "Configure Coins" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: cactus + label: "Configure Cactus" + schema: + type: dict + additional_attrs: true + attrs: + - variable: volumeMounts + label: "Storage Configurations" + schema: + 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: "cactus-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: false + default: "/root/.chia" + - variable: hostPathEnabled + label: "Enable Custom Host Path for Configuration Volume" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: hostPath + label: "Host Path for Configuration Volume" + schema: + type: hostpath + required: true + - variable: mnemonic + label: "Mnemonic Volume" + schema: + type: dict + attrs: + - variable: datasetName + label: "Mnemonic Volume Dataset Name" + schema: + type: string + hidden: true + $ref: + - "normalize/ixVolume" + show_if: [["hostPathEnabled", "=", false]] + default: "config" + editable: false + - variable: mountPath + label: "Mnemonic Mount Path" + description: "Path where the volume will be mounted inside the pod" + schema: + type: path + hidden: true + editable: false + default: "/root/.chia/mnemonic.txt" + - variable: subPath + label: "Subpath in the Dataset" + schema: + type: string + hidden: true + show_if: [["hostPathEnabled", "=", false]] + default: "mnemonic.txt" + editable: false + - variable: readOnly + label: "Mode" + description: "Mnemonic file mode" + schema: + type: boolean + hidden: true + editable: false + default: true + - variable: hostPathEnabled + label: "Enable Custom Host Path for Mnemonic Volume" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: hostPath + label: "Host Path for Mnemonic Volume" + schema: + type: hostpath + required: true + - variable: environmentVariables + label: "Environment Variables" + schema: + type: list + default: [] + items: + - variable: environmentVariable + label: "Environment Variable" + schema: + type: dict + attrs: + - variable: name + label: "Name" + schema: + type: string + - variable: value + label: "Value" + schema: + type: string + + # Chives Configurations + - variable: chivesEnabled + label: "Enable Chives" + group: "Configure Coins" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: chives + label: "Configure Chives" + schema: + type: dict + additional_attrs: true + attrs: + - variable: volumeMounts + label: "Storage Configurations" + schema: + 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: "chives-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: false + default: "/root/.chia" + - variable: hostPathEnabled + label: "Enable Custom Host Path for Configuration Volume" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: hostPath + label: "Host Path for Configuration Volume" + schema: + type: hostpath + required: true + - variable: mnemonic + label: "Mnemonic Volume" + schema: + type: dict + attrs: + - variable: datasetName + label: "Mnemonic Volume Dataset Name" + schema: + type: string + hidden: true + $ref: + - "normalize/ixVolume" + show_if: [["hostPathEnabled", "=", false]] + default: "config" + editable: false + - variable: mountPath + label: "Mnemonic Mount Path" + description: "Path where the volume will be mounted inside the pod" + schema: + type: path + hidden: true + editable: false + default: "/root/.chia/mnemonic.txt" + - variable: subPath + label: "Subpath in the Dataset" + schema: + type: string + hidden: true + show_if: [["hostPathEnabled", "=", false]] + default: "mnemonic.txt" + editable: false + - variable: readOnly + label: "Mode" + description: "Mnemonic file mode" + schema: + type: boolean + hidden: true + editable: false + default: true + - variable: hostPathEnabled + label: "Enable Custom Host Path for Mnemonic Volume" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: hostPath + label: "Host Path for Mnemonic Volume" + schema: + type: hostpath + required: true + - variable: environmentVariables + label: "Environment Variables" + schema: + type: list + default: [] + items: + - variable: environmentVariable + label: "Environment Variable" + schema: + type: dict + attrs: + - variable: name + label: "Name" + schema: + type: string + - variable: value + label: "Value" + schema: + type: string + + # Cryptodoge Configurations + - variable: cryptodogeEnabled + label: "Enable Cryptodoge" + group: "Configure Coins" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: cryptodoge + label: "Configure Cryptodoge" + schema: + type: dict + additional_attrs: true + attrs: + - variable: volumeMounts + label: "Storage Configurations" + schema: + 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: "cryptodoge-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: false + default: "/root/.chia" + - variable: hostPathEnabled + label: "Enable Custom Host Path for Configuration Volume" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: hostPath + label: "Host Path for Configuration Volume" + schema: + type: hostpath + required: true + - variable: mnemonic + label: "Mnemonic Volume" + schema: + type: dict + attrs: + - variable: datasetName + label: "Mnemonic Volume Dataset Name" + schema: + type: string + hidden: true + $ref: + - "normalize/ixVolume" + show_if: [["hostPathEnabled", "=", false]] + default: "config" + editable: false + - variable: mountPath + label: "Mnemonic Mount Path" + description: "Path where the volume will be mounted inside the pod" + schema: + type: path + hidden: true + editable: false + default: "/root/.chia/mnemonic.txt" + - variable: subPath + label: "Subpath in the Dataset" + schema: + type: string + hidden: true + show_if: [["hostPathEnabled", "=", false]] + default: "mnemonic.txt" + editable: false + - variable: readOnly + label: "Mode" + description: "Mnemonic file mode" + schema: + type: boolean + hidden: true + editable: false + default: true + - variable: hostPathEnabled + label: "Enable Custom Host Path for Mnemonic Volume" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: hostPath + label: "Host Path for Mnemonic Volume" + schema: + type: hostpath + required: true + - variable: environmentVariables + label: "Environment Variables" + schema: + type: list + default: [] + items: + - variable: environmentVariable + label: "Environment Variable" + schema: + type: dict + attrs: + - variable: name + label: "Name" + schema: + type: string + - variable: value + label: "Value" + schema: + type: string + + # Flax Configurations + - variable: flaxEnabled + label: "Enable Flax" + group: "Configure Coins" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: flax + label: "Configure Flax" + schema: + type: dict + additional_attrs: true + attrs: + - variable: volumeMounts + label: "Storage Configurations" + schema: + 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: "flax-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: false + default: "/root/.chia" + - variable: hostPathEnabled + label: "Enable Custom Host Path for Configuration Volume" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: hostPath + label: "Host Path for Configuration Volume" + schema: + type: hostpath + required: true + - variable: mnemonic + label: "Mnemonic Volume" + schema: + type: dict + attrs: + - variable: datasetName + label: "Mnemonic Volume Dataset Name" + schema: + type: string + hidden: true + $ref: + - "normalize/ixVolume" + show_if: [["hostPathEnabled", "=", false]] + default: "config" + editable: false + - variable: mountPath + label: "Mnemonic Mount Path" + description: "Path where the volume will be mounted inside the pod" + schema: + type: path + hidden: true + editable: false + default: "/root/.chia/mnemonic.txt" + - variable: subPath + label: "Subpath in the Dataset" + schema: + type: string + hidden: true + show_if: [["hostPathEnabled", "=", false]] + default: "mnemonic.txt" + editable: false + - variable: readOnly + label: "Mode" + description: "Mnemonic file mode" + schema: + type: boolean + hidden: true + editable: false + default: true + - variable: hostPathEnabled + label: "Enable Custom Host Path for Mnemonic Volume" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: hostPath + label: "Host Path for Mnemonic Volume" + schema: + type: hostpath + required: true + - variable: environmentVariables + label: "Environment Variables" + schema: + type: list + default: [] + items: + - variable: environmentVariable + label: "Environment Variable" + schema: + type: dict + attrs: + - variable: name + label: "Name" + schema: + type: string + - variable: value + label: "Value" + schema: + type: string + + # Flora Configurations + - variable: floraEnabled + label: "Enable Flora" + group: "Configure Coins" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: flora + label: "Configure Flora" + schema: + type: dict + additional_attrs: true + attrs: + - variable: volumeMounts + label: "Storage Configurations" + schema: + 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: "flora-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: false + default: "/root/.chia" + - variable: hostPathEnabled + label: "Enable Custom Host Path for Configuration Volume" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: hostPath + label: "Host Path for Configuration Volume" + schema: + type: hostpath + required: true + - variable: mnemonic + label: "Mnemonic Volume" + schema: + type: dict + attrs: + - variable: datasetName + label: "Mnemonic Volume Dataset Name" + schema: + type: string + hidden: true + $ref: + - "normalize/ixVolume" + show_if: [["hostPathEnabled", "=", false]] + default: "config" + editable: false + - variable: mountPath + label: "Mnemonic Mount Path" + description: "Path where the volume will be mounted inside the pod" + schema: + type: path + hidden: true + editable: false + default: "/root/.chia/mnemonic.txt" + - variable: subPath + label: "Subpath in the Dataset" + schema: + type: string + hidden: true + show_if: [["hostPathEnabled", "=", false]] + default: "mnemonic.txt" + editable: false + - variable: readOnly + label: "Mode" + description: "Mnemonic file mode" + schema: + type: boolean + hidden: true + editable: false + default: true + - variable: hostPathEnabled + label: "Enable Custom Host Path for Mnemonic Volume" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: hostPath + label: "Host Path for Mnemonic Volume" + schema: + type: hostpath + required: true + - variable: environmentVariables + label: "Environment Variables" + schema: + type: list + default: [] + items: + - variable: environmentVariable + label: "Environment Variable" + schema: + type: dict + attrs: + - variable: name + label: "Name" + schema: + type: string + - variable: value + label: "Value" + schema: + type: string + + # HDDCoin Configurations + - variable: hddcoinEnabled + label: "Enable HDDCoin" + group: "Configure Coins" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: hddcoin + label: "Configure HDDCoin" + schema: + type: dict + additional_attrs: true + attrs: + - variable: volumeMounts + label: "Storage Configurations" + schema: + 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: "hddcoin-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: false + default: "/root/.chia" + - variable: hostPathEnabled + label: "Enable Custom Host Path for Configuration Volume" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: hostPath + label: "Host Path for Configuration Volume" + schema: + type: hostpath + required: true + - variable: mnemonic + label: "Mnemonic Volume" + schema: + type: dict + attrs: + - variable: datasetName + label: "Mnemonic Volume Dataset Name" + schema: + type: string + hidden: true + $ref: + - "normalize/ixVolume" + show_if: [["hostPathEnabled", "=", false]] + default: "config" + editable: false + - variable: mountPath + label: "Mnemonic Mount Path" + description: "Path where the volume will be mounted inside the pod" + schema: + type: path + hidden: true + editable: false + default: "/root/.chia/mnemonic.txt" + - variable: subPath + label: "Subpath in the Dataset" + schema: + type: string + hidden: true + show_if: [["hostPathEnabled", "=", false]] + default: "mnemonic.txt" + editable: false + - variable: readOnly + label: "Mode" + description: "Mnemonic file mode" + schema: + type: boolean + hidden: true + editable: false + default: true + - variable: hostPathEnabled + label: "Enable Custom Host Path for Mnemonic Volume" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: hostPath + label: "Host Path for Mnemonic Volume" + schema: + type: hostpath + required: true + - variable: environmentVariables + label: "Environment Variables" + schema: + type: list + default: [] + items: + - variable: environmentVariable + label: "Environment Variable" + schema: + type: dict + attrs: + - variable: name + label: "Name" + schema: + type: string + - variable: value + label: "Value" + schema: + type: string + + # Maize Configurations + - variable: maizeEnabled + label: "Enable Maize" + group: "Configure Coins" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: maize + label: "Configure Maize" + schema: + type: dict + additional_attrs: true + attrs: + - variable: volumeMounts + label: "Storage Configurations" + schema: + 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: "maize-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: false + default: "/root/.chia" + - variable: hostPathEnabled + label: "Enable Custom Host Path for Configuration Volume" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: hostPath + label: "Host Path for Configuration Volume" + schema: + type: hostpath + required: true + - variable: mnemonic + label: "Mnemonic Volume" + schema: + type: dict + attrs: + - variable: datasetName + label: "Mnemonic Volume Dataset Name" + schema: + type: string + hidden: true + $ref: + - "normalize/ixVolume" + show_if: [["hostPathEnabled", "=", false]] + default: "config" + editable: false + - variable: mountPath + label: "Mnemonic Mount Path" + description: "Path where the volume will be mounted inside the pod" + schema: + type: path + hidden: true + editable: false + default: "/root/.chia/mnemonic.txt" + - variable: subPath + label: "Subpath in the Dataset" + schema: + type: string + hidden: true + show_if: [["hostPathEnabled", "=", false]] + default: "mnemonic.txt" + editable: false + - variable: readOnly + label: "Mode" + description: "Mnemonic file mode" + schema: + type: boolean + hidden: true + editable: false + default: true + - variable: hostPathEnabled + label: "Enable Custom Host Path for Mnemonic Volume" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: hostPath + label: "Host Path for Mnemonic Volume" + schema: + type: hostpath + required: true + - variable: environmentVariables + label: "Environment Variables" + schema: + type: list + default: [] + items: + - variable: environmentVariable + label: "Environment Variable" + schema: + type: dict + attrs: + - variable: name + label: "Name" + schema: + type: string + - variable: value + label: "Value" + schema: + type: string + + # N-Chain Configurations + - variable: nchainEnabled + label: "Enable N-Chain" + group: "Configure Coins" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: nchain + label: "Configure N-Chain" + schema: + type: dict + additional_attrs: true + attrs: + - variable: volumeMounts + label: "Storage Configurations" + schema: + 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: "nchain-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: false + default: "/root/.chia" + - variable: hostPathEnabled + label: "Enable Custom Host Path for Configuration Volume" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: hostPath + label: "Host Path for Configuration Volume" + schema: + type: hostpath + required: true + - variable: mnemonic + label: "Mnemonic Volume" + schema: + type: dict + attrs: + - variable: datasetName + label: "Mnemonic Volume Dataset Name" + schema: + type: string + hidden: true + $ref: + - "normalize/ixVolume" + show_if: [["hostPathEnabled", "=", false]] + default: "config" + editable: false + - variable: mountPath + label: "Mnemonic Mount Path" + description: "Path where the volume will be mounted inside the pod" + schema: + type: path + hidden: true + editable: false + default: "/root/.chia/mnemonic.txt" + - variable: subPath + label: "Subpath in the Dataset" + schema: + type: string + hidden: true + show_if: [["hostPathEnabled", "=", false]] + default: "mnemonic.txt" + editable: false + - variable: readOnly + label: "Mode" + description: "Mnemonic file mode" + schema: + type: boolean + hidden: true + editable: false + default: true + - variable: hostPathEnabled + label: "Enable Custom Host Path for Mnemonic Volume" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: hostPath + label: "Host Path for Mnemonic Volume" + schema: + type: hostpath + required: true + - variable: environmentVariables + label: "Environment Variables" + schema: + type: list + default: [] + items: + - variable: environmentVariable + label: "Environment Variable" + schema: + type: dict + attrs: + - variable: name + label: "Name" + schema: + type: string + - variable: value + label: "Value" + schema: + type: string + +# Staicoin Configurations + - variable: staicoinEnabled + label: "Enable Staicoin" + group: "Configure Coins" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: staicoin + label: "Configure Staicoin" + schema: + type: dict + additional_attrs: true + attrs: + - variable: volumeMounts + label: "Storage Configurations" + schema: + 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: "staicoin-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: false + default: "/root/.chia" + - variable: hostPathEnabled + label: "Enable Custom Host Path for Configuration Volume" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: hostPath + label: "Host Path for Configuration Volume" + schema: + type: hostpath + required: true + - variable: mnemonic + label: "Mnemonic Volume" + schema: + type: dict + attrs: + - variable: datasetName + label: "Mnemonic Volume Dataset Name" + schema: + type: string + hidden: true + $ref: + - "normalize/ixVolume" + show_if: [["hostPathEnabled", "=", false]] + default: "config" + editable: false + - variable: mountPath + label: "Mnemonic Mount Path" + description: "Path where the volume will be mounted inside the pod" + schema: + type: path + hidden: true + editable: false + default: "/root/.chia/mnemonic.txt" + - variable: subPath + label: "Subpath in the Dataset" + schema: + type: string + hidden: true + show_if: [["hostPathEnabled", "=", false]] + default: "mnemonic.txt" + editable: false + - variable: readOnly + label: "Mode" + description: "Mnemonic file mode" + schema: + type: boolean + hidden: true + editable: false + default: true + - variable: hostPathEnabled + label: "Enable Custom Host Path for Mnemonic Volume" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: hostPath + label: "Host Path for Mnemonic Volume" + schema: + type: hostpath + required: true + - variable: environmentVariables + label: "Environment Variables" + schema: + type: list + default: [] + items: + - variable: environmentVariable + label: "Environment Variable" + schema: + type: dict + attrs: + - variable: name + label: "Name" + schema: + type: string + - variable: value + label: "Value" + schema: + type: string + + # Stor Configurations + - variable: storEnabled + label: "Enable Stor" + group: "Configure Coins" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: stor + label: "Configure Stor" + schema: + type: dict + additional_attrs: true + attrs: + - variable: volumeMounts + label: "Storage Configurations" + schema: + 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: "stor-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: false + default: "/root/.chia" + - variable: hostPathEnabled + label: "Enable Custom Host Path for Configuration Volume" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: hostPath + label: "Host Path for Configuration Volume" + schema: + type: hostpath + required: true + - variable: mnemonic + label: "Mnemonic Volume" + schema: + type: dict + attrs: + - variable: datasetName + label: "Mnemonic Volume Dataset Name" + schema: + type: string + hidden: true + $ref: + - "normalize/ixVolume" + show_if: [["hostPathEnabled", "=", false]] + default: "config" + editable: false + - variable: mountPath + label: "Mnemonic Mount Path" + description: "Path where the volume will be mounted inside the pod" + schema: + type: path + hidden: true + editable: false + default: "/root/.chia/mnemonic.txt" + - variable: subPath + label: "Subpath in the Dataset" + schema: + type: string + hidden: true + show_if: [["hostPathEnabled", "=", false]] + default: "mnemonic.txt" + editable: false + - variable: readOnly + label: "Mode" + description: "Mnemonic file mode" + schema: + type: boolean + hidden: true + editable: false + default: true + - variable: hostPathEnabled + label: "Enable Custom Host Path for Mnemonic Volume" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: hostPath + label: "Host Path for Mnemonic Volume" + schema: + type: hostpath + required: true + - variable: environmentVariables + label: "Environment Variables" + schema: + type: list + default: [] + items: + - variable: environmentVariable + label: "Environment Variable" + schema: + type: dict + attrs: + - variable: name + label: "Name" + schema: + type: string + - variable: value + label: "Value" + schema: + type: string + +# BTCGreen Configurations + - variable: btcgreenEnabled + label: "Enable BTCGreen" + group: "Configure Coins" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: btcgreen + label: "Configure BTCGreen" + schema: + type: dict + additional_attrs: true + attrs: + - variable: volumeMounts + label: "Storage Configurations" + schema: + 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: "btcgreen-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: false + default: "/root/.chia" + - variable: hostPathEnabled + label: "Enable Custom Host Path for Configuration Volume" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: hostPath + label: "Host Path for Configuration Volume" + schema: + type: hostpath + required: true + - variable: mnemonic + label: "Mnemonic Volume" + schema: + type: dict + attrs: + - variable: datasetName + label: "Mnemonic Volume Dataset Name" + schema: + type: string + hidden: true + $ref: + - "normalize/ixVolume" + show_if: [["hostPathEnabled", "=", false]] + default: "config" + editable: false + - variable: mountPath + label: "Mnemonic Mount Path" + description: "Path where the volume will be mounted inside the pod" + schema: + type: path + hidden: true + editable: false + default: "/root/.chia/mnemonic.txt" + - variable: subPath + label: "Subpath in the Dataset" + schema: + type: string + hidden: true + show_if: [["hostPathEnabled", "=", false]] + default: "mnemonic.txt" + editable: false + - variable: readOnly + label: "Mode" + description: "Mnemonic file mode" + schema: + type: boolean + hidden: true + editable: false + default: true + - variable: hostPathEnabled + label: "Enable Custom Host Path for Mnemonic Volume" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: hostPath + label: "Host Path for Mnemonic Volume" + schema: + type: hostpath + required: true + - variable: environmentVariables + label: "Environment Variables" + schema: + type: list + default: [] + items: + - variable: environmentVariable + label: "Environment Variable" + schema: + type: dict + attrs: + - variable: name + label: "Name" + schema: + type: string + - variable: value + label: "Value" + schema: + type: string diff --git a/charts/machinaris/1.0.11/requirements.lock b/test/machinaris/1.1.1/requirements.lock similarity index 79% rename from charts/machinaris/1.0.11/requirements.lock rename to test/machinaris/1.1.1/requirements.lock index 36c2778f94..c555ad2636 100644 --- a/charts/machinaris/1.0.11/requirements.lock +++ b/test/machinaris/1.1.1/requirements.lock @@ -3,4 +3,4 @@ dependencies: repository: file://../../../library/common/2112.0.0 version: 2112.0.0 digest: sha256:47115d9b91afe42c8537dcf0fd8224f2f7d1c775f9ff860efa68a6b57d17d1c0 -generated: "2021-12-06T21:40:37.075818+05:00" +generated: "2021-12-06T19:55:04.707082+05:00" diff --git a/test/machinaris/1.1.1/templates/_helpers.tpl b/test/machinaris/1.1.1/templates/_helpers.tpl new file mode 100644 index 0000000000..52c11e849b --- /dev/null +++ b/test/machinaris/1.1.1/templates/_helpers.tpl @@ -0,0 +1,40 @@ +{{/* +Init container for coin deployments +*/}} +{{- define "initContainers" -}} +{{- $values := . -}} +{{- $machinarisApiUrl := (printf "http://%v:%v/" $values.nodeIP $values.apiPort) -}} +initContainers: + - name: init-{{ $values.coinName }} + image: curlimages/curl:7.80.0 + command: ['sh', '-c', 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' {{ $machinarisApiUrl }})" != "200" ]]; do echo "Machinaris is offline. Retrying in 2 seconds.." && sleep 2; done'] +{{- end -}} + + +{{/* +Evironment variables (support for overrides) +*/}} +{{- define "allEnvironmentVariables" -}} +{{- $finalEnvironmentVariables := .defaultEnv -}} +{{- range $env := .environmentVariables -}} + {{- $_ := set $finalEnvironmentVariables $env.name $env.value -}} +{{- end -}} +env: +{{- range $envVariableName := keys $finalEnvironmentVariables }} + - name: {{ $envVariableName | quote }} + value: {{ (get $finalEnvironmentVariables $envVariableName) | quote }} +{{- end -}} +{{- end -}} + + +{{/* +Resource limits +*/}} +{{- define "resourceLimits" -}} +{{- if .Values.enableResourceLimits -}} +resources: + limits: + cpu: {{ .Values.cpuLimit }} + memory: {{ .Values.memLimit }} +{{- end -}} +{{- end -}} diff --git a/test/machinaris/1.1.1/templates/coins-deployment.yaml b/test/machinaris/1.1.1/templates/coins-deployment.yaml new file mode 100644 index 0000000000..36675675ac --- /dev/null +++ b/test/machinaris/1.1.1/templates/coins-deployment.yaml @@ -0,0 +1,46 @@ +{{- $ref := . }} +{{- range $coinName := $ref.Values.coins }} +{{- $coinEnabled := get $ref.Values (printf "%vEnabled" $coinName) }} +{{- if $coinEnabled }} +{{- $coin := get $ref.Values $coinName }} +{{- $_ := set $ref "common" (dict "nameSuffix" $coinName) }} +{{- $_ := set $coin.volumeMounts "plots" $ref.Values.appVolumeMounts.plots }} +{{- $_ := set $coin.volumeMounts "plotting" $ref.Values.appVolumeMounts.plotting }} +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: + hostNetwork: true + {{- include "initContainers" (dict "nodeIP" $ref.Values.nodeIP "apiPort" $ref.Values.machinarisApiPort "coinName" $coinName ) | nindent 6 }} + containers: + - name: {{ $ref.Chart.Name }} + {{- include "resourceLimits" $ref | nindent 10 }} + 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" (dict "appVolumeMounts" $coin.volumeMounts "ixVolumes" $ref.Values.ixVolumes) | nindent 12 }} + {{ range $index, $hostPathConfiguration := $ref.Values.extraAppVolumeMounts }} + - name: extrappvolume-{{ $index }} + mountPath: {{ $hostPathConfiguration.mountPath }} + {{ end }} + {{ include "allEnvironmentVariables" (dict "defaultEnv" (dict "TZ" $ref.Values.timezone "worker_address" $ref.Values.nodeIP "worker_api_port" $coin.apiPort "controller_api_port" $coin.apiPort "farmer_port" $coin.farmerPort "blockchains" $coinName "plots_dir" $ref.Values.appVolumeMounts.plots.mountPath "mode" "fullnode") "environmentVariables" $coin.environmentVariables) | nindent 10 }} + volumes: {{ include "common.storage.configureAppVolumes" (dict "appVolumeMounts" $coin.volumeMounts "ixVolumes" $ref.Values.ixVolumes) | nindent 8 }} + {{ range $index, $hostPathConfiguration := $ref.Values.extraAppVolumeMounts }} + - name: extrappvolume-{{ $coinName }}-{{ $index }} + hostPath: + path: {{ $hostPathConfiguration.hostPath }} + {{ end }} +--- +{{- end }} +{{- end }} diff --git a/charts/machinaris/1.0.11/templates/deployment.yaml b/test/machinaris/1.1.1/templates/deployment.yaml similarity index 60% rename from charts/machinaris/1.0.11/templates/deployment.yaml rename to test/machinaris/1.1.1/templates/deployment.yaml index dae15d4f56..891474cc4a 100644 --- a/charts/machinaris/1.0.11/templates/deployment.yaml +++ b/test/machinaris/1.1.1/templates/deployment.yaml @@ -1,3 +1,6 @@ +{{- if hasKey . "common" }} +{{- $_ := unset .common "nameSuffix" }} +{{- end }} apiVersion: {{ template "common.capabilities.deployment.apiVersion" . }} kind: Deployment metadata: @@ -17,12 +20,7 @@ spec: hostNetwork: true containers: - name: {{ .Chart.Name }} - {{ if .Values.enableResourceLimits }} - resources: - limits: - cpu: {{ .Values.cpuLimit }} - memory: {{ .Values.memLimit }} - {{ end }} + {{- include "resourceLimits" . | nindent 10 }} tty: true {{ include "common.containers.imageConfig" .Values.image | nindent 10 }} volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }} @@ -30,22 +28,8 @@ spec: - name: extrappvolume-{{ $index }} mountPath: {{ $hostPathConfiguration.mountPath }} {{ end }} - ports: - - name: chia-network - protocol: TCP - containerPort: 8444 - hostPort: 8444 - - name: machinaris-ui - protocol: TCP - containerPort: 8926 - - name: machinaris-api - protocol: TCP - containerPort: 8927 - hostPort: 8927 - {{ $envList := (default list .Values.environmentVariables) }} - {{ $envList = mustAppend $envList (dict "name" "TZ" "value" $.Values.timezone) }} - {{ $envList = mustAppend $envList (dict "name" "worker_address" "value" $.Values.nodeIP) }} - {{ include "common.containers.allEnvironmentVariables" (dict "environmentVariables" $envList) | nindent 10 }} + {{ include "common.containers.configurePorts" .Values | nindent 10 }} + {{ include "allEnvironmentVariables" (dict "defaultEnv" (dict "TZ" .Values.timezone "worker_address" .Values.nodeIP "worker_api_port" .Values.apiPort "controller_api_port" .Values.apiPort "farmer_port" .Values.farmerPort "blockchains" "chia" "plots_dir" .Values.appVolumeMounts.plots.mountPath "mode" "fullnode") "environmentVariables" .Values.environmentVariables) | nindent 10 }} volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }} {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} - name: extrappvolume-{{ $index }} diff --git a/test/machinaris/1.1.0/templates/service.yaml b/test/machinaris/1.1.1/templates/service.yaml similarity index 100% rename from test/machinaris/1.1.0/templates/service.yaml rename to test/machinaris/1.1.1/templates/service.yaml diff --git a/test/machinaris/1.1.1/templates/tests/cactus-check.yaml b/test/machinaris/1.1.1/templates/tests/cactus-check.yaml new file mode 100644 index 0000000000..775061f346 --- /dev/null +++ b/test/machinaris/1.1.1/templates/tests/cactus-check.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: Pod +metadata: + name: "{{ .Release.Name }}-cactus-deployment-test" + annotations: + "helm.sh/hook": test +spec: + hostNetwork: true + restartPolicy: Never + containers: + - name: {{ .Release.Name }}-cactus-deployment-test + image: busybox + # Note: Adding sleep 15, as even when cactus pod status is ready, I've seen API + # taking a few seconds to be live and running. + command: ['sh', '-c', 'sleep 30 && nc -vz {{ .Values.nodeIP }} {{ .Values.cactus.apiPort }}'] diff --git a/test/machinaris/1.1.1/templates/tests/machinaris-check.yaml b/test/machinaris/1.1.1/templates/tests/machinaris-check.yaml new file mode 100644 index 0000000000..29b612245e --- /dev/null +++ b/test/machinaris/1.1.1/templates/tests/machinaris-check.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Pod +metadata: + name: "{{ .Release.Name }}-machinaris-deployment-test" + annotations: + "helm.sh/hook": test +spec: + hostNetwork: true + restartPolicy: Never + containers: + - name: {{ .Release.Name }}-machinaris-deployment-test + image: busybox + command: ['sh', '-c', 'nc -vz {{ .Values.nodeIP }} {{ .Values.machinarisApiPort }}'] diff --git a/test/machinaris/1.1.1/test_values.yaml b/test/machinaris/1.1.1/test_values.yaml new file mode 100644 index 0000000000..365ddbdfad --- /dev/null +++ b/test/machinaris/1.1.1/test_values.yaml @@ -0,0 +1,73 @@ +apiPort: 8927 +appVolumeMounts: + config: + emptyDir: true + mountPath: /root/.chia + plots: + emptyDir: true + mountPath: /plots + plotting: + emptyDir: true + mountPath: /plotting +cactus: + apiPort: 8936 + environmentVariables: + - name: mode + value: plotter + farmerPort: 11447 + ports: + - containerPort: 8936 + hostPort: 8936 + name: api + protocol: TCP + - containerPort: 11444 + hostPort: 11444 + name: blockchain + protocol: TCP + - containerPort: 11447 + hostPort: 11447 + name: farming + protocol: TCP + volumeMounts: + cactus-config: + emptyDir: true + mountPath: /root/.chia + mnemonic: + emptyDir: true + mountPath: /root/.chia/mnemonic.txt + readOnly: true + subPath: mnemonic.txt +cactusEnabled: true +coins: +- cactus +cpuLimit: 0.5 +enableResourceLimits: true +environmentVariables: +- name: mode + value: fullnode +farmerPort: 8447 +image: + pullPolicy: IfNotPresent + repository: ghcr.io/guydavis/machinaris + tag: v0.6.8 +machinarisApiPort: 8927 +machinaris_ui_port: 31003 +memLimit: 1G +nodeIP: 127.0.0.1 +ports: +- containerPort: 8444 + hostPort: 8444 + name: chia-network + protocol: TCP +- containerPort: 8926 + name: machinaris-ui + protocol: TCP +- containerPort: 8927 + hostPort: 8927 + name: machinaris-api + protocol: TCP +- containerPort: 8447 + hostPort: 8447 + protocol: TCP +timezone: America/Edmonton +updateStrategy: Recreate diff --git a/charts/minio/1.4.13/.helmignore b/test/minio/1.4.14/.helmignore similarity index 100% rename from charts/minio/1.4.13/.helmignore rename to test/minio/1.4.14/.helmignore diff --git a/test/minio/1.4.13/Chart.yaml b/test/minio/1.4.14/Chart.yaml similarity index 91% rename from test/minio/1.4.13/Chart.yaml rename to test/minio/1.4.14/Chart.yaml index 8a6e57fcbb..14de08a2f8 100644 --- a/test/minio/1.4.13/Chart.yaml +++ b/test/minio/1.4.14/Chart.yaml @@ -1,5 +1,5 @@ apiVersion: v1 -appVersion: '2021-12-29' +appVersion: '2022-01-03' dependencies: - name: common repository: file://../../../library/common/2112.0.0 @@ -16,4 +16,4 @@ sources: - https://github.com/minio/minio - https://github.com/minio/charts upstream_version: 8.0.5 -version: 1.4.13 +version: 1.4.14 diff --git a/test/minio/1.4.13/README.md b/test/minio/1.4.14/README.md similarity index 100% rename from test/minio/1.4.13/README.md rename to test/minio/1.4.14/README.md diff --git a/test/minio/1.4.13/app-readme.md b/test/minio/1.4.14/app-readme.md similarity index 100% rename from test/minio/1.4.13/app-readme.md rename to test/minio/1.4.14/app-readme.md diff --git a/test/minio/1.4.13/charts/common-2112.0.0.tgz b/test/minio/1.4.14/charts/common-2112.0.0.tgz similarity index 100% rename from test/minio/1.4.13/charts/common-2112.0.0.tgz rename to test/minio/1.4.14/charts/common-2112.0.0.tgz diff --git a/test/minio/1.4.13/default_values.yaml b/test/minio/1.4.14/default_values.yaml similarity index 100% rename from test/minio/1.4.13/default_values.yaml rename to test/minio/1.4.14/default_values.yaml diff --git a/test/minio/1.4.13/ix_values.yaml b/test/minio/1.4.14/ix_values.yaml similarity index 62% rename from test/minio/1.4.13/ix_values.yaml rename to test/minio/1.4.14/ix_values.yaml index 7f01a54fd0..3d344301d8 100644 --- a/test/minio/1.4.13/ix_values.yaml +++ b/test/minio/1.4.14/ix_values.yaml @@ -1,4 +1,4 @@ image: pullPolicy: IfNotPresent repository: minio/minio - tag: RELEASE.2021-12-29T06-49-06Z + tag: RELEASE.2022-01-03T18-22-58Z diff --git a/test/minio/1.4.13/migrations/migrate_from_1.0.0 b/test/minio/1.4.14/migrations/migrate_from_1.0.0 similarity index 100% rename from test/minio/1.4.13/migrations/migrate_from_1.0.0 rename to test/minio/1.4.14/migrations/migrate_from_1.0.0 diff --git a/test/minio/1.4.13/questions.yaml b/test/minio/1.4.14/questions.yaml similarity index 100% rename from test/minio/1.4.13/questions.yaml rename to test/minio/1.4.14/questions.yaml diff --git a/test/minio/1.4.13/requirements.lock b/test/minio/1.4.14/requirements.lock similarity index 100% rename from test/minio/1.4.13/requirements.lock rename to test/minio/1.4.14/requirements.lock diff --git a/test/minio/1.4.13/templates/NOTES.txt b/test/minio/1.4.14/templates/NOTES.txt similarity index 100% rename from test/minio/1.4.13/templates/NOTES.txt rename to test/minio/1.4.14/templates/NOTES.txt diff --git a/test/minio/1.4.13/templates/_cert.tpl b/test/minio/1.4.14/templates/_cert.tpl similarity index 100% rename from test/minio/1.4.13/templates/_cert.tpl rename to test/minio/1.4.14/templates/_cert.tpl diff --git a/test/minio/1.4.13/templates/_helpers.tpl b/test/minio/1.4.14/templates/_helpers.tpl similarity index 100% rename from test/minio/1.4.13/templates/_helpers.tpl rename to test/minio/1.4.14/templates/_helpers.tpl diff --git a/test/minio/1.4.13/templates/configmap.yaml b/test/minio/1.4.14/templates/configmap.yaml similarity index 100% rename from test/minio/1.4.13/templates/configmap.yaml rename to test/minio/1.4.14/templates/configmap.yaml diff --git a/test/minio/1.4.13/templates/deployment.yaml b/test/minio/1.4.14/templates/deployment.yaml similarity index 100% rename from test/minio/1.4.13/templates/deployment.yaml rename to test/minio/1.4.14/templates/deployment.yaml diff --git a/test/minio/1.4.13/templates/secrets.yaml b/test/minio/1.4.14/templates/secrets.yaml similarity index 100% rename from test/minio/1.4.13/templates/secrets.yaml rename to test/minio/1.4.14/templates/secrets.yaml diff --git a/test/minio/1.4.13/templates/service.yaml b/test/minio/1.4.14/templates/service.yaml similarity index 100% rename from test/minio/1.4.13/templates/service.yaml rename to test/minio/1.4.14/templates/service.yaml diff --git a/test/minio/1.4.13/templates/serviceaccount.yaml b/test/minio/1.4.14/templates/serviceaccount.yaml similarity index 100% rename from test/minio/1.4.13/templates/serviceaccount.yaml rename to test/minio/1.4.14/templates/serviceaccount.yaml diff --git a/test/minio/1.4.13/test_values.yaml b/test/minio/1.4.14/test_values.yaml similarity index 91% rename from test/minio/1.4.13/test_values.yaml rename to test/minio/1.4.14/test_values.yaml index ea7c271ef8..7c1ebc5aa4 100644 --- a/test/minio/1.4.13/test_values.yaml +++ b/test/minio/1.4.14/test_values.yaml @@ -13,7 +13,7 @@ extraArgs: [] image: pullPolicy: IfNotPresent repository: minio/minio - tag: RELEASE.2021-12-29T06-49-06Z + tag: RELEASE.2022-01-03T18-22-58Z minioDomain: null service: consolePort: 32325 diff --git a/test/minio/1.4.13/values.yaml b/test/minio/1.4.14/values.yaml similarity index 100% rename from test/minio/1.4.13/values.yaml rename to test/minio/1.4.14/values.yaml