@nathapp/na-cli 1.0.0-rc.17 → 1.0.0-rc.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (375) hide show
  1. package/.npm/_cacache/index-v5/05/34/1929926becc54c1f69c0921ab74c461c1777ab3d43213900acd4779dbf27 +1 -1
  2. package/.npm/_cacache/index-v5/0b/57/19385728919a097d1777ef98285f6cdfca14b66511276b641ec4a3af64bc +1 -1
  3. package/.npm/_cacache/index-v5/0b/90/c147816be94e86ed9bbb4b9e20409e4791a8991fcfd41d7a44489dedd29b +1 -1
  4. package/.npm/_cacache/index-v5/0b/ac/1bc19a224468b5a9e4382b946d33bb4c236306c2cefe190e5e2db1ded98a +1 -1
  5. package/.npm/_cacache/index-v5/12/6d/f094b1c476935fbda8814b43ee001b439b1f793c265ee5bd97d566143fb4 +1 -1
  6. package/.npm/_cacache/index-v5/12/80/c192e66daf6ba49f528ae81b986857735e6d257bdf4b0b1758eb795cae9b +1 -1
  7. package/.npm/_cacache/index-v5/13/32/a5865acd35ae515cde972c2d6cbff2863e694975883870de78b62a80f30e +1 -1
  8. package/.npm/_cacache/index-v5/14/33/be443b6e6c3ef0ff8f09987bc62d5ef9e61259f3331c422182f6bb74fdeb +1 -1
  9. package/.npm/_cacache/index-v5/14/f7/87042931e5944467d47331c350feb4384bf9143ab6ceebf7108a55905843 +1 -1
  10. package/.npm/_cacache/index-v5/14/fa/f87baceab26935686548c742091e7014930673bc1f077574c54c4c6c2d2d +1 -1
  11. package/.npm/_cacache/index-v5/15/26/abf1072208668be6e34a4311ad25f34fc908c21abc17ef01b5836cef1879 +1 -1
  12. package/.npm/_cacache/index-v5/1a/fd/532a4c7bf52c908d567ded2bb11b0f3282f0733d0d079a5291c2f72e0077 +1 -1
  13. package/.npm/_cacache/index-v5/1b/15/2ed036cc76081b7f1bfb3aa59d491eb3b3602c9381ec8d81435ceecf56b5 +1 -1
  14. package/.npm/_cacache/index-v5/27/b7/7f36d855e73b72c900bef7ba44a2a553de3d77b218493b4ddb6ae6fce516 +1 -1
  15. package/.npm/_cacache/index-v5/27/cc/afd4aa090b087c509f17e75196209f498c916da50ee4e9f26bd8424fd6f7 +1 -1
  16. package/.npm/_cacache/index-v5/2d/80/b5e9ca2e40744e7fa089861626d2a29c62363c01729964f4cf0c3e8ee632 +1 -1
  17. package/.npm/_cacache/index-v5/2d/ed/7f785cb92982f557fdc81aec4081952ce428eb449dd91fa0867b6676fa17 +1 -1
  18. package/.npm/_cacache/index-v5/2e/30/64338ba8469bd5c48ab7843f9d06a83992a346cfd592194af9c6d4d6dc48 +1 -1
  19. package/.npm/_cacache/index-v5/2e/a8/503d5f11e5dcde5786e3973ff160d2acc4736af22f9cd5a883c26adc7824 +1 -1
  20. package/.npm/_cacache/index-v5/30/98/41b0d8db0052e964e4843260ec8a0b12f2541721317cd5ee90b07b6a4d59 +1 -1
  21. package/.npm/_cacache/index-v5/31/64/15cefe5f3b923ebb9c684b37db7451ccf335632aab377fa3c730ec2e79cd +1 -1
  22. package/.npm/_cacache/index-v5/31/ac/4d241faeb3fea9ec8318fd93dd55eb70a87cc8a6e3f849ccef9863882b4b +3 -3
  23. package/.npm/_cacache/index-v5/31/ca/a8c3ab0670811a3887ede187dcd3856d14272349a18f6844f7c8007cc05e +1 -1
  24. package/.npm/_cacache/index-v5/34/a0/f70f68dcf9baef2ff21f29fdd206513fe5b10736be36ddd2f65a654a8f23 +1 -1
  25. package/.npm/_cacache/index-v5/34/f7/8879c3cd1412a0890461590276aa13d0344cb4e09494a4b3d854a7c7660a +1 -1
  26. package/.npm/_cacache/index-v5/35/e5/adb97753b463aa67dc9f26f39e8a52f68bf467cf1187509be7da174c057d +1 -1
  27. package/.npm/_cacache/index-v5/37/53/b5dccfb634beb6de718b268b6434849f27d3cf60d426dc19472a642a3f01 +1 -1
  28. package/.npm/_cacache/index-v5/38/2e/fe53691fa43d2f5ac447c8a2431535ec49118be55bf483c6362d4f72c79b +1 -1
  29. package/.npm/_cacache/index-v5/3c/f6/26a7f7dccb969c764b8bdecb3667023c64bc1159e674fbeeca633c54964c +1 -1
  30. package/.npm/_cacache/index-v5/3d/dd/3e8c6b6c875addf2057fb5fa152fff0fab217f78a8e51c0aa457a925bf12 +1 -1
  31. package/.npm/_cacache/index-v5/3e/77/916dd3c99bb6e83a0217305b0a2a541f122d977edcb92fa6b58eed796c17 +1 -1
  32. package/.npm/_cacache/index-v5/40/62/d04e75208dec117f72a95a5989f81fac7565a530fd22f70ea5e3abc377c3 +2 -2
  33. package/.npm/_cacache/index-v5/42/89/e110619623b1c9111a6392de4b1a62a904fb08d0601f87b9c8e1d493f5d6 +1 -1
  34. package/.npm/_cacache/index-v5/46/5b/f3ce50d3f54a5d65ac316d3c71ef8a8f8bdb072b6dfabc2c69018c3e942a +1 -1
  35. package/.npm/_cacache/index-v5/48/17/0ecf04bc0839b23c609ec7bfea9d339fa2cc3ee5982716cf7465ffaea675 +1 -1
  36. package/.npm/_cacache/index-v5/53/aa/b41f4759346e1d3b6651322d78c7983a4a546cdd6c18c3eb56c944571e4b +1 -1
  37. package/.npm/_cacache/index-v5/57/4d/cdafdfd03e43ca95652cbbb0b23bbbbeef3e16fa307726cb2ae8a5658531 +1 -1
  38. package/.npm/_cacache/index-v5/58/c9/9f8c27572bf3034e8fa9cc74fc00878e45fa7d75d4570d4430e82bfb5ef3 +1 -1
  39. package/.npm/_cacache/index-v5/5a/8c/47e273da29b52c911f59eca44c62faa84be4bb59b1de259ba100ff968559 +1 -1
  40. package/.npm/_cacache/index-v5/5e/89/be4afbbaa5c56c070a74790be14bd112b9e1b3f251324d766264b2c5f880 +1 -1
  41. package/.npm/_cacache/index-v5/5e/e7/453bd89145eccf9d67f5797fb09e5a017b5b13f1ac45cb7b70bda45940ec +2 -2
  42. package/.npm/_cacache/index-v5/5f/57/67c3b0c63ea4198903509c050bb99de2eabd6a2fba583067c4f587dc25f7 +1 -1
  43. package/.npm/_cacache/index-v5/60/8c/b74a2ae1c6978d635a1a21438c553d956a762176742b2749d09db964bf4d +1 -1
  44. package/.npm/_cacache/index-v5/68/6b/1f834b2ea43c7a9d1ffd80eb09f9d44af0895dc31dc3955d4b4c797ea825 +1 -1
  45. package/.npm/_cacache/index-v5/6d/61/c9e7e8446341cea439547eb023fbf47c954ba932e6944a3fd50413c1e861 +1 -1
  46. package/.npm/_cacache/index-v5/6d/b3/82949bd186224f1f51cb3fabdad6a93aa6a64c685b395a36f0a34af15119 +1 -1
  47. package/.npm/_cacache/index-v5/6f/d8/170c71ac7185da1b8040f10243c7294ff9a667a27fffc3479ba2f222f014 +1 -1
  48. package/.npm/_cacache/index-v5/74/d3/f9a4984e5548c5f72b3dc858046781cc3a892b34b6b7e7c353fbc93aa060 +1 -1
  49. package/.npm/_cacache/index-v5/75/ec/5dd4c902abf3f9ae589620cd4fd5b6ccfe045b8abdfbfa050d1a5ba8c01e +1 -1
  50. package/.npm/_cacache/index-v5/77/be/4d3f23909fd5905444d34cb0ce78d5bf6ce157670ae6ed614389a2027d18 +1 -1
  51. package/.npm/_cacache/index-v5/7d/8f/423d7e791f7fedd6bef784f0f467761c619f209ce9c788f08b63e968a880 +1 -1
  52. package/.npm/_cacache/index-v5/80/da/c34ca077ec2051cad25b3313e4e75ff4ad2dc2b12a9c250cb9545c0adc4b +1 -1
  53. package/.npm/_cacache/index-v5/84/d7/a5acf52705a1beb66603196f4bc44e583052d0f1d5a23dfb5316da1811d3 +1 -1
  54. package/.npm/_cacache/index-v5/86/7a/c59a43ec4985d34346e5714968f7220d176ea3a61b55464a7fecae01ac47 +1 -1
  55. package/.npm/_cacache/index-v5/87/55/e56d34b37c3170079064597cabb288d076b0d0468eaba3b8a0cf8686ce1f +1 -1
  56. package/.npm/_cacache/index-v5/8a/c9/c10bf71d66461aba0899e81d7a146332c45dbbacb1693c38fc2e4e578e39 +3 -3
  57. package/.npm/_cacache/index-v5/8a/ee/e3e86b627c10a9fc4ed610c15792507293ba1c14e7ba839e22aec609f1e0 +1 -1
  58. package/.npm/_cacache/index-v5/8b/ee/c2ea22c4bf9c5ddcd0333850e543442de3364478847c7ebc382b1ff3a70d +2 -2
  59. package/.npm/_cacache/index-v5/8c/2d/fc95c0f3896963b4fe4b745b6d2bbc04a2a75f31f108ff740215559617f0 +1 -1
  60. package/.npm/_cacache/index-v5/8e/95/715914a073e3319f22dfec7ffac9df9f293d150c0d6723a60ce08ab7f735 +1 -1
  61. package/.npm/_cacache/index-v5/91/73/ad583fa49e5575064791f28a81fa97fa62a4c7483b74960a58010efa1e77 +1 -1
  62. package/.npm/_cacache/index-v5/92/a4/7b5bd924b74993fc2b0de1a458842881545ca2cc22f6bc104a0db4fafdab +1 -1
  63. package/.npm/_cacache/index-v5/96/3a/a15f6c4dc3aeb3fd89c0b7a8c3ba58cb31a9b72c98e3b11a8ef1647b537f +1 -1
  64. package/.npm/_cacache/index-v5/96/b2/def9b882b950a49a7096d71afd5fce3a6a9454795fc060b1901e41d44620 +1 -1
  65. package/.npm/_cacache/index-v5/98/64/01faddae5e2bf199c5f8953942897841c5634b1800e246226ea5489f4584 +1 -1
  66. package/.npm/_cacache/index-v5/99/a9/8e746181ef13bc400da207da412881206f4d2004d75453373f6ee7b25ffa +1 -1
  67. package/.npm/_cacache/index-v5/9a/fc/baddd71f459a50b3c710a007fa7d59fa62febef98033b7331374bf02db64 +1 -1
  68. package/.npm/_cacache/index-v5/9b/55/1bc87872916d09156d5c7056d7ac2b245e7a7638b817eb3dbeafa9d33be8 +1 -1
  69. package/.npm/_cacache/index-v5/9b/b8/d45062af43674e433f967d20768d308ed6ce195be6acadfb7cfd21d11e67 +1 -1
  70. package/.npm/_cacache/index-v5/9c/0e/3faaf557a9613fb7f09b5cecc63ebe78da10371a1f2f58b636f8dcb9a914 +1 -1
  71. package/.npm/_cacache/index-v5/9c/b1/fff150691ce095677426e98bb894621ce4a88097d4b2c5c342224e1852ae +1 -1
  72. package/.npm/_cacache/index-v5/9d/6b/339b9832e323abb280eb874ec64f59486423026430be7b1c2ec42ca7e1b7 +1 -1
  73. package/.npm/_cacache/index-v5/9d/eb/0927bbd589e18b447a3726f591019d6728da728f603e77a1ded3f78dc6eb +1 -1
  74. package/.npm/_cacache/index-v5/9f/43/3636172cbc03abf2262c921f9f71572e6b049aa3db8c65d166bcfe5aca5f +1 -1
  75. package/.npm/_cacache/index-v5/a0/9e/5b7b95cdee86846e4fbe92c9e16e0e7f337c77d2c12de9778522b15bed2e +1 -1
  76. package/.npm/_cacache/index-v5/a1/ff/6532bc014331c9b572482a4bd805bf54a7ff8b4ca179b1c811aff3dec690 +1 -1
  77. package/.npm/_cacache/index-v5/a7/11/13f3c5864a7e9d12ca50a19b99d77d88fbcebb1ceb7455eb7ff77f158b64 +1 -1
  78. package/.npm/_cacache/index-v5/aa/9b/8b6d9e0f45dde1c6af2a4fc211f9b3a74f14041dc04a8a20490a478660b2 +1 -1
  79. package/.npm/_cacache/index-v5/aa/c4/489c0e6a9e4cbd64a8acd4fbfda113e9dfdd114f464830471fda53fff0cd +1 -1
  80. package/.npm/_cacache/index-v5/ab/47/d7a88d46cb8996b726bc7ed9280b5eea26889ab7c848149032a6e8911e4b +1 -1
  81. package/.npm/_cacache/index-v5/ac/4c/71e880f5d5c742e0e3807e7f3c398e920dd019bbf723586f0a7342715580 +1 -1
  82. package/.npm/_cacache/index-v5/ac/86/c0732592365d753d382502d91754a3c88f8b20e22cc25a0327beb9429687 +1 -1
  83. package/.npm/_cacache/index-v5/b0/9b/1a1d76c3ad82dd54353bb8ac8397667df4c5db97e42abf0de3fab68065bb +1 -1
  84. package/.npm/_cacache/index-v5/b3/b3/05a8af0a671c32b41850c1223429fe74449cfcb4c7cac54a9c7c213dfcae +3 -3
  85. package/.npm/_cacache/index-v5/b3/ba/fbf7da5c8eb06d9cc72143e3d36d7f701447b4e0a221c40d4960e06c7296 +1 -1
  86. package/.npm/_cacache/index-v5/b5/5f/1a200e91b7580c5893016e1b1397b6a076ff51cc7c5d382c3b1f1e52edd5 +1 -1
  87. package/.npm/_cacache/index-v5/b6/a8/3bf06da815e92239da2bd4ef7322819b458ee23ae8db9f02dc9a3dca722f +1 -1
  88. package/.npm/_cacache/index-v5/b7/38/992d3e6c01fc9098d137f7dbccfcaa5f5124ba9c487e582e6e0d83f99d30 +1 -1
  89. package/.npm/_cacache/index-v5/b7/d6/b5986a5f5d44d726090a94a22a8dff7a7c391df4a4fa4862bb50b1da196b +1 -1
  90. package/.npm/_cacache/index-v5/ba/d5/f7d95a8e3571758f8b5d095a21909a8f6cdfe7fd2349f7f72b2801eef079 +1 -1
  91. package/.npm/_cacache/index-v5/bb/8a/9c0052bb21f628e48a1e8d25084ee4adb402eba28c747d0299ebf4c3185d +1 -1
  92. package/.npm/_cacache/index-v5/be/a3/c0779c8e0be92c748c91a7dad4e6f0fe57ba0158b6bb1bcfddd8fc56c934 +1 -1
  93. package/.npm/_cacache/index-v5/be/c2/aa68eca6cebd477430ae24727732ec08ee9fc9ef2482df77932eb2f413d9 +1 -1
  94. package/.npm/_cacache/index-v5/bf/7c/375aec77f76404d91225e72006a0105b2a6ec04bb02cfa365ebcd4a0232b +1 -1
  95. package/.npm/_cacache/index-v5/c0/15/8b360dbe06b62052f2a43702140af0bca66e2e4064d7d2016efb4a2a149a +1 -1
  96. package/.npm/_cacache/index-v5/c2/a4/488f71f39bc65742422faf2c74e3b330852ef2192dbb3198fed044e60c20 +1 -1
  97. package/.npm/_cacache/index-v5/c4/89/38b2ab5b89326ead12dbed7a2076caa44d1207dd6cdb3f9f93273843dcf5 +1 -1
  98. package/.npm/_cacache/index-v5/c4/ac/4511be3eecea50ee9cadc09a612f9be8598d7b29d5c8b1253c75fa283cc5 +1 -1
  99. package/.npm/_cacache/index-v5/c5/2d/90031096314e15f4fcc35c804c2180f88214a7851b531aa27bd64064f740 +1 -1
  100. package/.npm/_cacache/index-v5/c7/5e/2acc90bb8fd9d3150354ec8b2f7e7cc2c8e0e59efd575a1963f1ca66cbed +1 -1
  101. package/.npm/_cacache/index-v5/c9/f5/c4a24d8834c4e9523cc24e10c6db63876e3eecdb2cf33762b159e3a1e92f +1 -1
  102. package/.npm/_cacache/index-v5/cc/2d/3cc1e00b73d00c921b8f8c92faaae480a160fc63637ba7b098518db79e02 +1 -1
  103. package/.npm/_cacache/index-v5/cf/56/427919eefb09afe942b12902069325293191afa7d59ff0f2b016c402b4ec +1 -1
  104. package/.npm/_cacache/index-v5/d1/86/f4ec8df7e9b3ceb2ae6c610f3231b693689e2ce78bd03413adef8d029a63 +1 -1
  105. package/.npm/_cacache/index-v5/d3/ba/564670f99cd2d757d1ac6209834faf1ce9a94ed856243cf090249d9b2b38 +1 -1
  106. package/.npm/_cacache/index-v5/d5/f4/0913a74f5e223a4fe6108493dd3b03c2d47259df459926160659513c9ad3 +1 -1
  107. package/.npm/_cacache/index-v5/dd/03/456ce7d8bffee20c3acf7e18ef6501b637d59a6fa3fa7bac5ed160b6be3f +1 -1
  108. package/.npm/_cacache/index-v5/e3/6a/b90e45414a9e52cdf1e4a96698065357795b9400d7af079b0a75ee8fd76d +1 -1
  109. package/.npm/_cacache/index-v5/e7/16/c0952e37a6a02b506441a59ee6b0e7fa873a515247763df9dddd162bbcf0 +1 -1
  110. package/.npm/_cacache/index-v5/e8/50/601e38974398787a5a8a8b8d835e29447814cd68ff6fe2e9629738e124c6 +1 -1
  111. package/.npm/_cacache/index-v5/ee/47/02714e9e61ca394444a92772fe85340de8bd216b58f59e1af25d5618303f +1 -1
  112. package/.npm/_cacache/index-v5/ef/23/134a34866512795c8a5025d0b968f2e44b5be8ab3a05b400c089c32a272e +1 -1
  113. package/.npm/_cacache/index-v5/ef/74/026f830458505ca7ae44dac678900360af24ed6e76521eb12df5fadcf26f +1 -1
  114. package/.npm/_cacache/index-v5/f1/75/91238e32e2ac4d9c4976deec39a2e6ca85c0c678a4466a50ca4412272a7c +1 -1
  115. package/.npm/_cacache/index-v5/f2/1f/c662626ec8eafafa54476678b9f71799a74ee368f2b7845a6ec9f9174a4d +3 -3
  116. package/.npm/_cacache/index-v5/f5/a4/ca599571c5bcfc5351ca53c418a6cd9d162539528b1ed87a692a1677020e +1 -1
  117. package/.npm/_cacache/index-v5/f6/18/16e565c66306149a0b31bb2af01babb55bd65ef7cb85a8a11d486d933b60 +1 -1
  118. package/.npm/_cacache/index-v5/f8/f5/f04b833fa130e113a9093088ad108d8cf9b2b1d5a0336e48cbf0916b8686 +1 -1
  119. package/.npm/_cacache/index-v5/fa/88/31cbd6ca584e75edf3642c6f8b079c1f2b5eca1d7b2780ce2e86c24f1e84 +1 -1
  120. package/.npm/_cacache/index-v5/fb/ae/46c38299837b3b4dcee9dc45854a6901355864326b4e64c730727ca1c88a +1 -1
  121. package/.npm/_cacache/index-v5/fc/1c/958fc085ebdc42fa37d4985cba976a5cca21f678c751c968f8fe9b259455 +1 -1
  122. package/.npm/_cacache/index-v5/fd/2e/6ead8880f4d02a536a570e21b13b4e7c9700082833e556cd53e9e92bfd1b +1 -1
  123. package/.npm/_cacache/index-v5/fd/46/fa56121e15b7f090f8050d0c954bbc9452e4c7ddde82777b2e00552c4220 +1 -1
  124. package/README.md +3 -2
  125. package/dist/templates/k8s-deployment/.gitlab-ci.yml +128 -0
  126. package/dist/templates/k8s-deployment/.helmignore +23 -0
  127. package/dist/templates/k8s-deployment/Chart.yaml +23 -0
  128. package/dist/templates/k8s-deployment/Makefile +196 -0
  129. package/dist/templates/k8s-deployment/README.md +17 -0
  130. package/dist/templates/k8s-deployment/resources/charts/mysql/Chart.yaml +23 -0
  131. package/dist/templates/k8s-deployment/resources/charts/mysql/charts/mysql-install/Chart.yaml +23 -0
  132. package/dist/templates/k8s-deployment/resources/charts/mysql/charts/mysql-install/script/Makefile +12 -0
  133. package/dist/templates/k8s-deployment/resources/charts/mysql/charts/mysql-install/templates/_helpers.tpl +62 -0
  134. package/dist/templates/k8s-deployment/resources/charts/mysql/charts/mysql-install/templates/configmap.yaml +1 -0
  135. package/dist/templates/k8s-deployment/resources/charts/mysql/charts/mysql-install/templates/job.yaml +1 -0
  136. package/dist/templates/k8s-deployment/resources/charts/mysql/charts/mysql-install/templates/secret.yaml +1 -0
  137. package/dist/templates/k8s-deployment/resources/charts/mysql/charts/mysql-install/values.yaml +51 -0
  138. package/dist/templates/k8s-deployment/resources/charts/mysql/templates/_helpers.tpl +62 -0
  139. package/dist/templates/k8s-deployment/resources/charts/mysql/templates/configmap.yaml +1 -0
  140. package/dist/templates/k8s-deployment/resources/charts/mysql/templates/deployment.yaml +1 -0
  141. package/dist/templates/k8s-deployment/resources/charts/mysql/templates/ingress.yaml +1 -0
  142. package/dist/templates/k8s-deployment/resources/charts/mysql/templates/job.yaml +1 -0
  143. package/dist/templates/k8s-deployment/resources/charts/mysql/templates/pv.yaml +1 -0
  144. package/dist/templates/k8s-deployment/resources/charts/mysql/templates/pvc.yaml +1 -0
  145. package/dist/templates/k8s-deployment/resources/charts/mysql/templates/sc.yaml +1 -0
  146. package/dist/templates/k8s-deployment/resources/charts/mysql/templates/secret.yaml +1 -0
  147. package/dist/templates/k8s-deployment/resources/charts/mysql/templates/service.yaml +1 -0
  148. package/dist/templates/k8s-deployment/resources/charts/mysql/templates/statefulset.yaml +1 -0
  149. package/dist/templates/k8s-deployment/resources/charts/mysql/values.yaml +15 -0
  150. package/dist/templates/k8s-deployment/resources/charts/redis/Chart.yaml +23 -0
  151. package/dist/templates/k8s-deployment/resources/charts/redis/charts/redis-install/Chart.yaml +23 -0
  152. package/dist/templates/k8s-deployment/resources/charts/redis/charts/redis-install/script/Makefile +8 -0
  153. package/dist/templates/k8s-deployment/resources/charts/redis/charts/redis-install/templates/_helpers.tpl +62 -0
  154. package/dist/templates/k8s-deployment/resources/charts/redis/charts/redis-install/templates/configmap.yaml +1 -0
  155. package/dist/templates/k8s-deployment/resources/charts/redis/charts/redis-install/templates/job.yaml +1 -0
  156. package/dist/templates/k8s-deployment/resources/charts/redis/charts/redis-install/templates/secret.yaml +1 -0
  157. package/dist/templates/k8s-deployment/resources/charts/redis/charts/redis-install/values.yaml +42 -0
  158. package/dist/templates/k8s-deployment/resources/charts/redis/templates/_helpers.tpl +62 -0
  159. package/dist/templates/k8s-deployment/resources/charts/redis/templates/configmap.yaml +1 -0
  160. package/dist/templates/k8s-deployment/resources/charts/redis/templates/deployment.yaml +1 -0
  161. package/dist/templates/k8s-deployment/resources/charts/redis/templates/ingress.yaml +1 -0
  162. package/dist/templates/k8s-deployment/resources/charts/redis/templates/job.yaml +1 -0
  163. package/dist/templates/k8s-deployment/resources/charts/redis/templates/pv.yaml +1 -0
  164. package/dist/templates/k8s-deployment/resources/charts/redis/templates/pvc.yaml +1 -0
  165. package/dist/templates/k8s-deployment/resources/charts/redis/templates/sc.yaml +1 -0
  166. package/dist/templates/k8s-deployment/resources/charts/redis/templates/secret.yaml +1 -0
  167. package/dist/templates/k8s-deployment/resources/charts/redis/templates/service.yaml +1 -0
  168. package/dist/templates/k8s-deployment/resources/charts/redis/templates/statefulset.yaml +1 -0
  169. package/dist/templates/k8s-deployment/resources/charts/redis/values.yaml +12 -0
  170. package/dist/templates/k8s-deployment/services/charts/hooks/Chart.yaml +23 -0
  171. package/dist/templates/k8s-deployment/services/charts/hooks/charts/pre-delete-rsc/Chart.yaml +23 -0
  172. package/dist/templates/k8s-deployment/services/charts/hooks/charts/pre-delete-rsc/script/Makefile +49 -0
  173. package/dist/templates/k8s-deployment/services/charts/hooks/charts/pre-delete-rsc/script/_env.yaml +2 -0
  174. package/dist/templates/k8s-deployment/services/charts/hooks/charts/pre-delete-rsc/templates/_helpers.tpl +62 -0
  175. package/dist/templates/k8s-deployment/services/charts/hooks/charts/pre-delete-rsc/templates/configmap.yaml +1 -0
  176. package/dist/templates/k8s-deployment/services/charts/hooks/charts/pre-delete-rsc/templates/job.yaml +1 -0
  177. package/dist/templates/k8s-deployment/services/charts/hooks/charts/pre-delete-rsc/templates/secret.yaml +1 -0
  178. package/dist/templates/k8s-deployment/services/charts/hooks/charts/pre-delete-rsc/values.yaml +36 -0
  179. package/dist/templates/k8s-deployment/services/charts/sample-nginx/Chart.yaml +23 -0
  180. package/dist/templates/k8s-deployment/services/charts/sample-nginx/templates/_helpers.tpl +62 -0
  181. package/dist/templates/k8s-deployment/services/charts/sample-nginx/templates/configmap.yaml +1 -0
  182. package/dist/templates/k8s-deployment/services/charts/sample-nginx/templates/deployment.yaml +1 -0
  183. package/dist/templates/k8s-deployment/services/charts/sample-nginx/templates/ingress.yaml +1 -0
  184. package/dist/templates/k8s-deployment/services/charts/sample-nginx/templates/secret.yaml +1 -0
  185. package/dist/templates/k8s-deployment/services/charts/sample-nginx/templates/service.yaml +1 -0
  186. package/dist/templates/k8s-deployment/services/charts/sample-nginx/templates/statefulset.yaml +1 -0
  187. package/dist/templates/k8s-deployment/services/charts/sample-nginx/values.yaml +47 -0
  188. package/dist/templates/k8s-deployment/services/charts/tests/Chart.yaml +23 -0
  189. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/Chart.yaml +23 -0
  190. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/Makefile +9 -0
  191. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/fixtures/index.json +1 -0
  192. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/integration/login/login-spec.js +47 -0
  193. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/integration/login/loginEmailWrong-spec.js +14 -0
  194. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/integration/login/loginPasswordWrong-spec.js +14 -0
  195. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/integration/profile/updatePassword-spec.js +15 -0
  196. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/integration/profile/updateProfile-spec.js +25 -0
  197. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/integration/test-script.spec.js +9 -0
  198. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/plugins/index.js +22 -0
  199. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/support/commands.js +258 -0
  200. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/support/index.js +35 -0
  201. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/support/misc.js +8 -0
  202. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress.json +4 -0
  203. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/templates/_helpers.tpl +62 -0
  204. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/templates/configmap.yaml +1 -0
  205. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/templates/pod.yaml +1 -0
  206. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/templates/secret.yaml +1 -0
  207. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/values.yaml +70 -0
  208. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/.helmignore +2 -0
  209. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/Chart.yaml +23 -0
  210. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/script/Makefile +14 -0
  211. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/templates/_helpers.tpl +62 -0
  212. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/templates/configmap.yaml +1 -0
  213. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/templates/pod.yaml +1 -0
  214. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/templates/secret.yaml +1 -0
  215. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/_t-0100-readiness-liveness.ts +84 -0
  216. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/hub.ts +372 -0
  217. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-contact.ts +158 -0
  218. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-contract.ts +328 -0
  219. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-kyc.ts +304 -0
  220. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-onboard-app.ts +823 -0
  221. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-onboard-web.ts +493 -0
  222. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-profile.ts +277 -0
  223. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-whitelist.ts +133 -0
  224. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/resources/live.jpg +0 -0
  225. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/resources/mykad_front.jpg +0 -0
  226. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/resources/profile.jpg +0 -0
  227. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/t-0200-start.ts +172 -0
  228. package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/values.yaml +59 -0
  229. package/dist/templates/k8s-deployment/templates/_cluster-role-binding.tpl +20 -0
  230. package/dist/templates/k8s-deployment/templates/_configmap.tpl +37 -0
  231. package/dist/templates/k8s-deployment/templates/_cronjob.tpl +225 -0
  232. package/dist/templates/k8s-deployment/templates/_deployment.tpl +246 -0
  233. package/dist/templates/k8s-deployment/templates/_helpers.tpl +31 -0
  234. package/dist/templates/k8s-deployment/templates/_ingress.tpl +77 -0
  235. package/dist/templates/k8s-deployment/templates/_job.tpl +233 -0
  236. package/dist/templates/k8s-deployment/templates/_pod.tpl +214 -0
  237. package/dist/templates/k8s-deployment/templates/_pv.tpl +42 -0
  238. package/dist/templates/k8s-deployment/templates/_pvc.tpl +27 -0
  239. package/dist/templates/k8s-deployment/templates/_root.tpl +314 -0
  240. package/dist/templates/k8s-deployment/templates/_sc.tpl +19 -0
  241. package/dist/templates/k8s-deployment/templates/_secret.tpl +15 -0
  242. package/dist/templates/k8s-deployment/templates/_service-account.tpl +8 -0
  243. package/dist/templates/k8s-deployment/templates/_service.tpl +40 -0
  244. package/dist/templates/k8s-deployment/templates/_statefulset.tpl +244 -0
  245. package/dist/templates/k8s-deployment/templates/root-cm.yaml +10 -0
  246. package/dist/templates/k8s-deployment/templates/root-pull-secret.yaml +11 -0
  247. package/dist/templates/k8s-deployment/templates/root-secret.yaml +24 -0
  248. package/dist/templates/k8s-deployment/values.yaml +35 -0
  249. package/dist/utils/template.js +1 -1
  250. package/package.json +1 -1
  251. package/src/utils/template.ts +1 -1
  252. package/templates/k8s-deployment/.gitlab-ci.yml +128 -0
  253. package/templates/k8s-deployment/.helmignore +23 -0
  254. package/templates/k8s-deployment/Chart.yaml +23 -0
  255. package/templates/k8s-deployment/Makefile +196 -0
  256. package/templates/k8s-deployment/README.md +17 -0
  257. package/templates/k8s-deployment/resources/charts/mysql/Chart.yaml +23 -0
  258. package/templates/k8s-deployment/resources/charts/mysql/charts/mysql-install/Chart.yaml +23 -0
  259. package/templates/k8s-deployment/resources/charts/mysql/charts/mysql-install/script/Makefile +12 -0
  260. package/templates/k8s-deployment/resources/charts/mysql/charts/mysql-install/templates/_helpers.tpl +62 -0
  261. package/templates/k8s-deployment/resources/charts/mysql/charts/mysql-install/templates/configmap.yaml +1 -0
  262. package/templates/k8s-deployment/resources/charts/mysql/charts/mysql-install/templates/job.yaml +1 -0
  263. package/templates/k8s-deployment/resources/charts/mysql/charts/mysql-install/templates/secret.yaml +1 -0
  264. package/templates/k8s-deployment/resources/charts/mysql/charts/mysql-install/values.yaml +51 -0
  265. package/templates/k8s-deployment/resources/charts/mysql/templates/_helpers.tpl +62 -0
  266. package/templates/k8s-deployment/resources/charts/mysql/templates/configmap.yaml +1 -0
  267. package/templates/k8s-deployment/resources/charts/mysql/templates/deployment.yaml +1 -0
  268. package/templates/k8s-deployment/resources/charts/mysql/templates/ingress.yaml +1 -0
  269. package/templates/k8s-deployment/resources/charts/mysql/templates/job.yaml +1 -0
  270. package/templates/k8s-deployment/resources/charts/mysql/templates/pv.yaml +1 -0
  271. package/templates/k8s-deployment/resources/charts/mysql/templates/pvc.yaml +1 -0
  272. package/templates/k8s-deployment/resources/charts/mysql/templates/sc.yaml +1 -0
  273. package/templates/k8s-deployment/resources/charts/mysql/templates/secret.yaml +1 -0
  274. package/templates/k8s-deployment/resources/charts/mysql/templates/service.yaml +1 -0
  275. package/templates/k8s-deployment/resources/charts/mysql/templates/statefulset.yaml +1 -0
  276. package/templates/k8s-deployment/resources/charts/mysql/values.yaml +15 -0
  277. package/templates/k8s-deployment/resources/charts/redis/Chart.yaml +23 -0
  278. package/templates/k8s-deployment/resources/charts/redis/charts/redis-install/Chart.yaml +23 -0
  279. package/templates/k8s-deployment/resources/charts/redis/charts/redis-install/script/Makefile +8 -0
  280. package/templates/k8s-deployment/resources/charts/redis/charts/redis-install/templates/_helpers.tpl +62 -0
  281. package/templates/k8s-deployment/resources/charts/redis/charts/redis-install/templates/configmap.yaml +1 -0
  282. package/templates/k8s-deployment/resources/charts/redis/charts/redis-install/templates/job.yaml +1 -0
  283. package/templates/k8s-deployment/resources/charts/redis/charts/redis-install/templates/secret.yaml +1 -0
  284. package/templates/k8s-deployment/resources/charts/redis/charts/redis-install/values.yaml +42 -0
  285. package/templates/k8s-deployment/resources/charts/redis/templates/_helpers.tpl +62 -0
  286. package/templates/k8s-deployment/resources/charts/redis/templates/configmap.yaml +1 -0
  287. package/templates/k8s-deployment/resources/charts/redis/templates/deployment.yaml +1 -0
  288. package/templates/k8s-deployment/resources/charts/redis/templates/ingress.yaml +1 -0
  289. package/templates/k8s-deployment/resources/charts/redis/templates/job.yaml +1 -0
  290. package/templates/k8s-deployment/resources/charts/redis/templates/pv.yaml +1 -0
  291. package/templates/k8s-deployment/resources/charts/redis/templates/pvc.yaml +1 -0
  292. package/templates/k8s-deployment/resources/charts/redis/templates/sc.yaml +1 -0
  293. package/templates/k8s-deployment/resources/charts/redis/templates/secret.yaml +1 -0
  294. package/templates/k8s-deployment/resources/charts/redis/templates/service.yaml +1 -0
  295. package/templates/k8s-deployment/resources/charts/redis/templates/statefulset.yaml +1 -0
  296. package/templates/k8s-deployment/resources/charts/redis/values.yaml +12 -0
  297. package/templates/k8s-deployment/services/charts/hooks/Chart.yaml +23 -0
  298. package/templates/k8s-deployment/services/charts/hooks/charts/pre-delete-rsc/Chart.yaml +23 -0
  299. package/templates/k8s-deployment/services/charts/hooks/charts/pre-delete-rsc/script/Makefile +49 -0
  300. package/templates/k8s-deployment/services/charts/hooks/charts/pre-delete-rsc/script/_env.yaml +2 -0
  301. package/templates/k8s-deployment/services/charts/hooks/charts/pre-delete-rsc/templates/_helpers.tpl +62 -0
  302. package/templates/k8s-deployment/services/charts/hooks/charts/pre-delete-rsc/templates/configmap.yaml +1 -0
  303. package/templates/k8s-deployment/services/charts/hooks/charts/pre-delete-rsc/templates/job.yaml +1 -0
  304. package/templates/k8s-deployment/services/charts/hooks/charts/pre-delete-rsc/templates/secret.yaml +1 -0
  305. package/templates/k8s-deployment/services/charts/hooks/charts/pre-delete-rsc/values.yaml +36 -0
  306. package/templates/k8s-deployment/services/charts/sample-nginx/Chart.yaml +23 -0
  307. package/templates/k8s-deployment/services/charts/sample-nginx/templates/_helpers.tpl +62 -0
  308. package/templates/k8s-deployment/services/charts/sample-nginx/templates/configmap.yaml +1 -0
  309. package/templates/k8s-deployment/services/charts/sample-nginx/templates/deployment.yaml +1 -0
  310. package/templates/k8s-deployment/services/charts/sample-nginx/templates/ingress.yaml +1 -0
  311. package/templates/k8s-deployment/services/charts/sample-nginx/templates/secret.yaml +1 -0
  312. package/templates/k8s-deployment/services/charts/sample-nginx/templates/service.yaml +1 -0
  313. package/templates/k8s-deployment/services/charts/sample-nginx/templates/statefulset.yaml +1 -0
  314. package/templates/k8s-deployment/services/charts/sample-nginx/values.yaml +47 -0
  315. package/templates/k8s-deployment/services/charts/tests/Chart.yaml +23 -0
  316. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/Chart.yaml +23 -0
  317. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/Makefile +9 -0
  318. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/fixtures/index.json +1 -0
  319. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/integration/login/login-spec.js +47 -0
  320. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/integration/login/loginEmailWrong-spec.js +14 -0
  321. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/integration/login/loginPasswordWrong-spec.js +14 -0
  322. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/integration/profile/updatePassword-spec.js +15 -0
  323. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/integration/profile/updateProfile-spec.js +25 -0
  324. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/integration/test-script.spec.js +9 -0
  325. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/plugins/index.js +22 -0
  326. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/support/commands.js +258 -0
  327. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/support/index.js +35 -0
  328. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/support/misc.js +8 -0
  329. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress.json +4 -0
  330. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/templates/_helpers.tpl +62 -0
  331. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/templates/configmap.yaml +1 -0
  332. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/templates/pod.yaml +1 -0
  333. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/templates/secret.yaml +1 -0
  334. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/values.yaml +70 -0
  335. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/.helmignore +2 -0
  336. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/Chart.yaml +23 -0
  337. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/script/Makefile +14 -0
  338. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/templates/_helpers.tpl +62 -0
  339. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/templates/configmap.yaml +1 -0
  340. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/templates/pod.yaml +1 -0
  341. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/templates/secret.yaml +1 -0
  342. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/_t-0100-readiness-liveness.ts +84 -0
  343. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/hub.ts +372 -0
  344. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-contact.ts +158 -0
  345. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-contract.ts +328 -0
  346. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-kyc.ts +304 -0
  347. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-onboard-app.ts +823 -0
  348. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-onboard-web.ts +493 -0
  349. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-profile.ts +277 -0
  350. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-whitelist.ts +133 -0
  351. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/resources/live.jpg +0 -0
  352. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/resources/mykad_front.jpg +0 -0
  353. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/resources/profile.jpg +0 -0
  354. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/t-0200-start.ts +172 -0
  355. package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/values.yaml +59 -0
  356. package/templates/k8s-deployment/templates/_cluster-role-binding.tpl +20 -0
  357. package/templates/k8s-deployment/templates/_configmap.tpl +37 -0
  358. package/templates/k8s-deployment/templates/_cronjob.tpl +225 -0
  359. package/templates/k8s-deployment/templates/_deployment.tpl +246 -0
  360. package/templates/k8s-deployment/templates/_helpers.tpl +31 -0
  361. package/templates/k8s-deployment/templates/_ingress.tpl +77 -0
  362. package/templates/k8s-deployment/templates/_job.tpl +233 -0
  363. package/templates/k8s-deployment/templates/_pod.tpl +214 -0
  364. package/templates/k8s-deployment/templates/_pv.tpl +42 -0
  365. package/templates/k8s-deployment/templates/_pvc.tpl +27 -0
  366. package/templates/k8s-deployment/templates/_root.tpl +314 -0
  367. package/templates/k8s-deployment/templates/_sc.tpl +19 -0
  368. package/templates/k8s-deployment/templates/_secret.tpl +15 -0
  369. package/templates/k8s-deployment/templates/_service-account.tpl +8 -0
  370. package/templates/k8s-deployment/templates/_service.tpl +40 -0
  371. package/templates/k8s-deployment/templates/_statefulset.tpl +244 -0
  372. package/templates/k8s-deployment/templates/root-cm.yaml +10 -0
  373. package/templates/k8s-deployment/templates/root-pull-secret.yaml +11 -0
  374. package/templates/k8s-deployment/templates/root-secret.yaml +24 -0
  375. package/templates/k8s-deployment/values.yaml +35 -0
@@ -0,0 +1,24 @@
1
+ {{- if .Values.global.secret.root }}
2
+ apiVersion: v1
3
+ kind: Secret
4
+ metadata:
5
+ name: {{ print $.Release.Name "-root" }}
6
+ type: Opaque
7
+ data:
8
+ {{- with .Values.global.secret.root }}
9
+ {{- range $key, $value := . }}
10
+ {{- $key | nindent 2 }}{{- ": " -}}
11
+ {{- if eq (typeOf $value) "string" -}}
12
+ {{ include "root.global" (list $ $value) | b64enc }}
13
+ {{- else -}}
14
+ {{- if hasKey $value "service" -}}
15
+ {{- with index $value "service" -}}
16
+ {{ include "root.global" (list $ "CLUSTER_BASE_URL" .schema .name .namespace .domain .port) | b64enc }}
17
+ {{- end -}}
18
+ {{- else -}}
19
+ {{ include "root.global" (list $ $key) | b64enc }}
20
+ {{- end -}}
21
+ {{- end -}}
22
+ {{- end }}
23
+ {{- end }}
24
+ {{- end }}
@@ -0,0 +1,35 @@
1
+ mysql:
2
+ enabled: false
3
+ mysql-install:
4
+ enabled: false
5
+ config:
6
+ GIT_REPO: "gitlab.com/test-db-scehama.git"
7
+ GIT_TAG: "1.0.0"
8
+ CI_PIPELINE_URL: "{{CI_PIPELINE_URL}}"
9
+ secret:
10
+ HOST_IP: "rm-xxxxxx.mysql.rds.aliyuncs.com"
11
+ USERNAME: "{{CI_DB_USERNAME}}"
12
+ PASSWORD: "{{CI_DB_PASSWORD}}"
13
+ GITLAB_USER_NAME: "{{GITLAB_USER_NAME}}"
14
+ CI_GIT_TOKEN: "{{CI_GIT_TOKEN}}"
15
+ redis:
16
+ enabled: false
17
+ redis-install:
18
+ enabled: false
19
+ secret:
20
+ HOST_URL: "redis://root@{{Release.Name}}-redis.{{CLUSTER_NAMESPACE}}.svc.{{CLUSTER_DOMAIN}}:6379/0"
21
+
22
+
23
+
24
+ global:
25
+ secret:
26
+ root:
27
+ REDIS_URL: "redis://root@{{Release.Name}}-rsc-redis.{{CLUSTER_NAMESPACE}}.svc.{{CLUSTER_DOMAIN}}:6379/0"
28
+
29
+ root:
30
+ SERVICE_DOMAIN: "WKS"
31
+ MYSQL_BASE_SCHEMA: "mysql"
32
+ MYSQL_BASE_DATABASE: "dev"
33
+ MYSQL_BASE_DOMAIN: "{{Release.Name}}-mysql.{{CLUSTER_NAMESPACE}}.svc.{{CLUSTER_DOMAIN}}"
34
+
35
+ pathType: "Prefix"
@@ -97,7 +97,7 @@ function generateTemplate(templateDir, targetDirectory) {
97
97
  message: "Do you want to run npm install after template created?",
98
98
  when: function (answer) {
99
99
  var projectChoice = answer["template"];
100
- return projectChoice !== "db-schema" || projectChoice !== "k8s-deployment";
100
+ return projectChoice !== "db-schema" && projectChoice !== "k8s-deployment";
101
101
  }
102
102
  },
103
103
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nathapp/na-cli",
3
- "version": "1.0.0-rc.17",
3
+ "version": "1.0.0-rc.19",
4
4
  "main": "dist/index.js",
5
5
  "scripts": {
6
6
  "start": "npm run build && node dist/index.js",
@@ -64,7 +64,7 @@ export async function generateTemplate(templateDir: string, targetDirectory: str
64
64
  message: "Do you want to run npm install after template created?",
65
65
  when: (answer: any)=> {
66
66
  const projectChoice = answer["template"]
67
- return projectChoice !== "db-schema" || projectChoice !== "k8s-deployment"
67
+ return projectChoice !== "db-schema" && projectChoice !== "k8s-deployment"
68
68
  }
69
69
  },
70
70
  {
@@ -0,0 +1,128 @@
1
+ # Deployment must implement Makefile for commands (test, pre-install, install, uninstall, name, version, image)
2
+ # command:
3
+ # - test: run deployment integration test cases
4
+ # - pre-install: deploy prerelease (with commit hash) version of resources and services
5
+ # - install: deploy release version of resources and services
6
+ # - name: display deployment name
7
+ # - version: display deployment version
8
+ # - image: display deployment name and version (e.g. hello-world:1.0.0)
9
+ #
10
+ stages:
11
+ - test
12
+ # run test cases
13
+ - install
14
+ # deploy helm charts
15
+ - release
16
+ # mark release commit as verified
17
+
18
+ run-lint:
19
+ stage: test
20
+ image: alpine/helm:3.3.4
21
+ before_script:
22
+ - apk update
23
+ - apk add make git npm jq
24
+ script:
25
+ - make lint
26
+ rules:
27
+ - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
28
+ - if: '$CI_COMMIT_MESSAGE =~ /run-lint/'
29
+ # merge request
30
+ # commit message contains `run-lint`,`run-release` keyword
31
+
32
+ # run-test:
33
+ # stage: test
34
+ # image: alpine/helm:3.3.4
35
+ # variables:
36
+ # CI_TEST: "true"
37
+ # before_script:
38
+ # - apk update
39
+ # - apk add make git npm jq
40
+ # script:
41
+ # - make test
42
+ # only:
43
+ # refs:
44
+ # - branches
45
+ # - merge_requests
46
+ # variables:
47
+ # - $CI_COMMIT_MESSAGE =~ /run-test/
48
+ # except:
49
+ # refs:
50
+ # - master
51
+ # variables:
52
+ # - $CI_COMMIT_MESSAGE =~ /release-rc-by-devbot/
53
+ # - $CI_COMMIT_MESSAGE =~ /release-by-devbot/
54
+ # - $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH
55
+ # # merge request or commit branch is not default branch (master)
56
+ # # commit message contains `run-test` keyword
57
+
58
+ # run-pre-install:
59
+ # stage: install
60
+ # image: alpine/helm:3.3.4
61
+ # before_script:
62
+ # - apk update
63
+ # - apk add make git npm jq
64
+ # - git config --global user.name "$GITLAB_USER_NAME"
65
+ # - git config --global user.email "$GITLAB_USER_EMAIL"
66
+ # script:
67
+ # - make pre-install
68
+ # - git add -A
69
+ # - git commit -m "$(make version)" -m "== release-rc-by-devbot ($CI_COMMIT_SHA) =="
70
+ # - git tag -a "$(make version)" -m "$(make image)"
71
+ # - git push "https://${GITLAB_USER_NAME}:${CI_GIT_TOKEN}@${CI_REPOSITORY_URL#*@}" "HEAD:${CI_COMMIT_BRANCH}"
72
+ # - git push "https://${GITLAB_USER_NAME}:${CI_GIT_TOKEN}@${CI_REPOSITORY_URL#*@}" --tags
73
+ # only:
74
+ # refs:
75
+ # - branches
76
+ # variables:
77
+ # - $CI_COMMIT_MESSAGE =~ /run-prerelease/
78
+ # except:
79
+ # - master
80
+ # # commit branch is not default branch (master) and commit message contains `run-prerelease` keyword
81
+
82
+ # run-pre-release:
83
+ # stage: release
84
+ # image: alpine/make:4.2.1
85
+ # script:
86
+ # - echo "Prerelease version $(make version)"
87
+ # only:
88
+ # refs:
89
+ # - tags
90
+ # variables:
91
+ # - $CI_COMMIT_MESSAGE =~ /release-rc-by-devbot/
92
+ # except:
93
+ # - master
94
+ # # commit into non default branch (master) when tag was created and commit message contains `release-rc-by-devbot`
95
+
96
+ run-install:
97
+ stage: install
98
+ image: alpine/helm:3.3.4
99
+ before_script:
100
+ - apk update
101
+ - apk add make git npm jq
102
+ - git config --global user.name "$GITLAB_USER_NAME"
103
+ - git config --global user.email "$GITLAB_USER_EMAIL"
104
+ script:
105
+ - make install
106
+ - git add -A
107
+ - git commit -m "$(make version)" -m "== release-by-devbot ($CI_COMMIT_SHA) =="
108
+ - git tag -a "$(make version)" -m "$(make image)"
109
+ - git push "https://${GITLAB_USER_NAME}:${CI_GIT_TOKEN}@${CI_REPOSITORY_URL#*@}" "HEAD:${CI_COMMIT_BRANCH}"
110
+ - git push "https://${GITLAB_USER_NAME}:${CI_GIT_TOKEN}@${CI_REPOSITORY_URL#*@}" --tags
111
+ only:
112
+ refs:
113
+ - master
114
+ variables:
115
+ - $CI_COMMIT_MESSAGE =~ /run-release/
116
+ # commit into default branch (master) and commit message contains `run-release`
117
+
118
+ run-release:
119
+ stage: release
120
+ image: alpine/make:4.2.1
121
+ script:
122
+ - echo "Release version $(make version)"
123
+ only:
124
+ refs:
125
+ - master
126
+ variables:
127
+ - $CI_COMMIT_MESSAGE =~ /release-by-devbot/
128
+ # commit into default branch (master) and commit message contains `release-by-devbot`
@@ -0,0 +1,23 @@
1
+ # Patterns to ignore when building packages.
2
+ # This supports shell glob matching, relative path matching, and
3
+ # negation (prefixed with !). Only one pattern per line.
4
+ .DS_Store
5
+ # Common VCS dirs
6
+ .git/
7
+ .gitignore
8
+ .bzr/
9
+ .bzrignore
10
+ .hg/
11
+ .hgignore
12
+ .svn/
13
+ # Common backup files
14
+ *.swp
15
+ *.bak
16
+ *.tmp
17
+ *.orig
18
+ *~
19
+ # Various IDEs
20
+ .project
21
+ .idea/
22
+ *.tmproj
23
+ .vscode/
@@ -0,0 +1,23 @@
1
+ apiVersion: v2
2
+ name: shared
3
+ description: SHARED Deployment For Development
4
+
5
+ # A chart can be either an 'application' or a 'library' chart.
6
+ #
7
+ # Application charts are a collection of templates that can be packaged into versioned archives
8
+ # to be deployed.
9
+ #
10
+ # Library charts provide useful utilities or functions for the chart developer. They're included as
11
+ # a dependency of application charts to inject those utilities and functions into the rendering
12
+ # pipeline. Library charts do not define any templates and therefore cannot be deployed.
13
+ type: application
14
+
15
+ # This is the chart version. This version number should be incremented each time you make changes
16
+ # to the chart and its templates, including the app version.
17
+ # Versions are expected to follow Semantic Versioning (https://semver.org/)
18
+ version: 1.0.42
19
+
20
+ # This is the version number of the application being deployed. This version number should be
21
+ # incremented each time you make changes to the application. Versions are not expected to
22
+ # follow Semantic Versioning. They should reflect the version the application is using.
23
+ appVersion: 1.16.0
@@ -0,0 +1,196 @@
1
+ MAKEFILE := $(abspath $(lastword $(MAKEFILE_LIST)))
2
+ ROOT_PATH := $(shell pwd)
3
+
4
+ .PHONY: resources services
5
+
6
+ pre-install: version-prerelease run-install
7
+ @echo "==> Testing SERVICES"
8
+ @cat /tmp/_env.yaml | helm test -n $(CI_KUBE_NAMESPACE) $$(make --no-print-directory -f$(MAKEFILE) RELEASE_NAME)
9
+
10
+ install: version-patch run-install
11
+ @echo "==> Testing SERVICES"
12
+ @cat /tmp/_env.yaml | helm test -n $(CI_KUBE_NAMESPACE) $$(make --no-print-directory -f$(MAKEFILE) RELEASE_NAME)
13
+
14
+ run-install: env run-install-rsc
15
+ @echo "==> Installing SERVICES"
16
+ @rm -rf charts
17
+ @cp -rf services/charts charts
18
+ @cp -f /tmp/_env.yaml charts/hooks/charts/pre-delete-rsc/script/_env.yaml
19
+ @cat /tmp/_env.yaml | helm upgrade -n $(CI_KUBE_NAMESPACE) --install --atomic --timeout 10m \
20
+ -f $$(make --no-print-directory -f$(MAKEFILE) RELEASE_VALUE_FILE) -f - $$(make --no-print-directory -f$(MAKEFILE) RELEASE_NAME) .
21
+ @rm -rf charts
22
+
23
+ run-install-rsc:
24
+ @echo "==> Installing RESOURCES"
25
+ @rm -rf charts
26
+ @cp -rf resources/charts charts
27
+ @cat /tmp/_env.yaml | helm upgrade -n $(CI_KUBE_NAMESPACE) --install --atomic --timeout 10m \
28
+ -f $$(make --no-print-directory -f$(MAKEFILE) RELEASE_VALUE_FILE) -f - $$(make --no-print-directory -f$(MAKEFILE) RELEASE_NAME)-rsc .
29
+ @rm -rf charts
30
+
31
+ uninstall: env
32
+ @echo "==> Uninstalling SERVICES"
33
+ @-cat /tmp/_env.yaml | helm uninstall -n $(CI_KUBE_NAMESPACE) $$(make --no-print-directory -f$(MAKEFILE) RELEASE_NAME)
34
+
35
+ lint: env run-lint
36
+
37
+ run-lint: run-lint-rsc
38
+ @echo "==> Lint SERVICES"
39
+ @rm -rf charts
40
+ @ln -s services/charts charts
41
+ @cat /tmp/_env.yaml | helm lint -n $(CI_KUBE_NAMESPACE)
42
+ @rm -rf charts
43
+
44
+ run-lint-rsc:
45
+ @echo "==> Lint RESOURCES"
46
+ @rm -rf charts
47
+ @ln -s resources/charts charts
48
+ @cat /tmp/_env.yaml | helm lint -n $(CI_KUBE_NAMESPACE)
49
+ @rm -rf charts
50
+
51
+ test: run-install run-test uninstall
52
+
53
+ run-test:
54
+ @echo "==> Testing SERVICES"
55
+ @cat /tmp/_env.yaml | helm test -n $(CI_KUBE_NAMESPACE) --logs $$(make --no-print-directory -f$(MAKEFILE) RELEASE_NAME) || \
56
+ ($$(make --no-print-directory -f$(MAKEFILE) uninstall); exit 1);
57
+
58
+ RELEASE_NAME:
59
+ @awk 'BEGIN{ \
60
+ if (ENVIRON["CI_COMMIT_BRANCH"] == ENVIRON["CI_DEFAULT_BRANCH"]) { \
61
+ printf("%s", ENVIRON["CI_PROJECT_NAME"]) \
62
+ } \
63
+ else { \
64
+ if (ENVIRON["CI_TEST"] == "true") { \
65
+ printf("%s-%s", ENVIRON["CI_PROJECT_NAME"], ENVIRON["CI_COMMIT_SHORT_SHA"]) \
66
+ } \
67
+ else { \
68
+ printf("%s-%s", ENVIRON["CI_PROJECT_NAME"], ENVIRON["CI_COMMIT_REF_SLUG"]) \
69
+ } \
70
+ } \
71
+ }'
72
+
73
+ RELEASE_VALUE_FILE:
74
+ @awk 'BEGIN{ \
75
+ if (ENVIRON["CI_COMMIT_BRANCH"] == ENVIRON["CI_DEFAULT_BRANCH"]) { \
76
+ printf("values.yaml") \
77
+ } \
78
+ else { \
79
+ printf("test-values.yaml") \
80
+ } \
81
+ }'
82
+
83
+ env:
84
+ @if [ ! -f "/tmp/_env.yaml" ]; then \
85
+ awk 'END { for (name in ENVIRON) { if (name ~ /^(CI|GITLAB|CONTAINER)/ ) print name} }' < /dev/null | \
86
+ awk 'BEGIN { \
87
+ printf("global:\n env:\n"); \
88
+ } \
89
+ { \
90
+ name = $$0; \
91
+ multiline = "0"; \
92
+ split(ENVIRON[name], chars, ""); \
93
+ for (i = 1; i <= length(ENVIRON[name]); i++) { \
94
+ if (chars[i] == "\n") { \
95
+ multiline = "1"; \
96
+ break; \
97
+ } \
98
+ } \
99
+ if (multiline == "0") { \
100
+ printf(" %s: \"%s\"\n", name, ENVIRON[name]); \
101
+ } \
102
+ else { \
103
+ printf(" %s: |\n ", name); \
104
+ split(ENVIRON[name], chars, ""); \
105
+ for (i = 1; i <= length(ENVIRON[name]); i++) { \
106
+ if (chars[i] == "\n") { \
107
+ printf("\n "); \
108
+ } \
109
+ else { \
110
+ printf("%s", chars[i]); \
111
+ } \
112
+ } \
113
+ printf("\n"); \
114
+ } \
115
+ }' > /tmp/_env.yaml; \
116
+ fi;
117
+
118
+ name:
119
+ @cat Chart.yaml | grep "name:" | awk -F": " '{ printf("%s",$$2) }'
120
+
121
+ separator:
122
+ @echo -n ":"
123
+
124
+ image: name separator version
125
+
126
+ version:
127
+ @cat Chart.yaml | grep "version:" | awk -F": " '{ printf("%s",$$2) }'
128
+
129
+ version-major: version-sync
130
+ @npm -s version major --no-git-tag-version
131
+ @sed -i "s/^version:.*/version: $$( cat package.json | jq -r '.version')/" Chart.yaml
132
+ @rm -rf package.json
133
+
134
+ version-minor: version-sync
135
+ @npm -s version minor --no-git-tag-version
136
+ @sed -i "s/^version:.*/version: $$( cat package.json | jq -r '.version')/" Chart.yaml
137
+ @rm -rf package.json
138
+
139
+ version-patch: version-sync
140
+ @npm -s version patch --no-git-tag-version
141
+ @sed -i "s/^version:.*/version: $$( cat package.json | jq -r '.version')/" Chart.yaml
142
+ @rm -rf package.json
143
+
144
+ version-prerelease: version-sync
145
+ @npm -s version prerelease --preid=rc --no-git-tag-version
146
+ @sed -i "s/^version:.*/version: $$( cat package.json | jq -r '.version')/" Chart.yaml
147
+ @rm -rf package.json
148
+
149
+ version-latest:
150
+ @(git tag --sort=-creatordate || echo) | awk 'NR==1 { \
151
+ split($$0, n, "-"); \
152
+ if (n[1] != "") { \
153
+ split(n[1], v, "."); \
154
+ if (v[1] ~ /^[0-9]+$$/ && v[2] ~ /^[0-9]+$$/ && v[3] ~ /^[0-9]+$$/) { \
155
+ print $$0; \
156
+ exit 0; \
157
+ } \
158
+ } \
159
+ print "1.0.0-rc.0"; \
160
+ } \
161
+ END { \
162
+ if (NR == 0) { \
163
+ print "1.0.0-rc.0"; \
164
+ } \
165
+ }'
166
+
167
+ version-sync:
168
+ @git checkout $(CI_COMMIT_BRANCH)
169
+ @git pull --tags 2>/dev/null || true
170
+ @git tag --sort=-creatordate | head -10
171
+ @echo '{"version": ""}' | jq -r --arg PKG_VERSION `make --no-print-directory -f$(MAKEFILE) version-latest` '.version=$$PKG_VERSION' > package.json;
172
+ @echo -n "Current Git tag: "; cat package.json | jq -r '.version'
173
+
174
+ resources:
175
+ @rm -rf charts
176
+ @ln -s resources/charts charts
177
+
178
+ services:
179
+ @rm -rf charts
180
+ @ln -s services/charts charts
181
+
182
+ images:
183
+ @for file in `make --no-print-directory -f$(MAKEFILE) images-file`; do \
184
+ echo `cat $$file | grep "repository:" | awk -F": " '{ gsub(/"/,"",$$2); print $$2 }'`:`cat $$file | grep "tag:" | awk -F": " '{ gsub(/"/,"",$$2); print $$2 }'`; \
185
+ done;
186
+
187
+ images-file:
188
+ ifeq ($(TARGET),*)
189
+ @for file in `find $(ROOT_PATH)/services -iname values.yaml`; do \
190
+ echo $$file | grep -v "services/charts/hooks"; \
191
+ done;
192
+ else
193
+ @for file in `find $(TARGET) -iname values.yaml`; do \
194
+ echo $$file; \
195
+ done;
196
+ endif
@@ -0,0 +1,17 @@
1
+ # K8s Deployment
2
+
3
+ K8s Deployment
4
+
5
+ ## For Release (Master Branch Only)
6
+
7
+ Write commit message with keyword `run-release`` on merge request.
8
+
9
+ ## View Service Images
10
+
11
+ ```
12
+ TARGET=* make images
13
+ ```
14
+
15
+ ---
16
+
17
+ devbot chat: 0
@@ -0,0 +1,23 @@
1
+ apiVersion: v2
2
+ name: mysql
3
+ description: MYSQL
4
+
5
+ # A chart can be either an 'application' or a 'library' chart.
6
+ #
7
+ # Application charts are a collection of templates that can be packaged into versioned archives
8
+ # to be deployed.
9
+ #
10
+ # Library charts provide useful utilities or functions for the chart developer. They're included as
11
+ # a dependency of application charts to inject those utilities and functions into the rendering
12
+ # pipeline. Library charts do not define any templates and therefore cannot be deployed.
13
+ type: application
14
+
15
+ # This is the chart version. This version number should be incremented each time you make changes
16
+ # to the chart and its templates, including the app version.
17
+ # Versions are expected to follow Semantic Versioning (https://semver.org/)
18
+ version: 1.0.0-rc.0
19
+
20
+ # This is the version number of the application being deployed. This version number should be
21
+ # incremented each time you make changes to the application. Versions are not expected to
22
+ # follow Semantic Versioning. They should reflect the version the application is using.
23
+ appVersion: 1.16.0
@@ -0,0 +1,23 @@
1
+ apiVersion: v2
2
+ name: mysql-install
3
+ description: Hooks
4
+
5
+ # A chart can be either an 'application' or a 'library' chart.
6
+ #
7
+ # Application charts are a collection of templates that can be packaged into versioned archives
8
+ # to be deployed.
9
+ #
10
+ # Library charts provide useful utilities or functions for the chart developer. They're included as
11
+ # a dependency of application charts to inject those utilities and functions into the rendering
12
+ # pipeline. Library charts do not define any templates and therefore cannot be deployed.
13
+ type: application
14
+
15
+ # This is the chart version. This version number should be incremented each time you make changes
16
+ # to the chart and its templates, including the app version.
17
+ # Versions are expected to follow Semantic Versioning (https://semver.org/)
18
+ version: 1.0.0-rc.0
19
+
20
+ # This is the version number of the application being deployed. This version number should be
21
+ # incremented each time you make changes to the application. Versions are not expected to
22
+ # follow Semantic Versioning. They should reflect the version the application is using.
23
+ appVersion: 1.16.0
@@ -0,0 +1,12 @@
1
+ REPO_PATH := /tmp/repo
2
+ GIT_PATH := $(REPO_PATH)/.git
3
+
4
+ .PHONY:
5
+
6
+ install: repo
7
+ @make --no-print-directory -f$(REPO_PATH)/Makefile install ROOT_PATH=$(REPO_PATH);
8
+
9
+ # Clone Git repo according to target version
10
+ repo:
11
+ @git clone -q -b "$(GIT_TAG)" https://$(GITLAB_USER_NAME):$(CI_GIT_TOKEN)@$(GIT_REPO) $(REPO_PATH)
12
+ @git --git-dir=$(GIT_PATH) pull --tags 2>/dev/null || true
@@ -0,0 +1,62 @@
1
+ {{/*
2
+ Expand the name of the chart.
3
+ */}}
4
+ {{- define "mysql-install.name" -}}
5
+ {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
6
+ {{- end }}
7
+
8
+ {{/*
9
+ Create a default fully qualified app name.
10
+ We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
11
+ If release name contains chart name it will be used as a full name.
12
+ */}}
13
+ {{- define "mysql-install.fullname" -}}
14
+ {{- if .Values.fullnameOverride }}
15
+ {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
16
+ {{- else }}
17
+ {{- $name := default .Chart.Name .Values.nameOverride }}
18
+ {{- if contains $name .Release.Name }}
19
+ {{- .Release.Name | trunc 63 | trimSuffix "-" }}
20
+ {{- else }}
21
+ {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
22
+ {{- end }}
23
+ {{- end }}
24
+ {{- end }}
25
+
26
+ {{/*
27
+ Create chart name and version as used by the chart label.
28
+ */}}
29
+ {{- define "mysql-install.chart" -}}
30
+ {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
31
+ {{- end }}
32
+
33
+ {{/*
34
+ Common labels
35
+ */}}
36
+ {{- define "mysql-install.labels" -}}
37
+ helm.sh/chart: {{ include "mysql-install.chart" . }}
38
+ {{ include "mysql-install.selectorLabels" . }}
39
+ {{- if .Chart.AppVersion }}
40
+ app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
41
+ {{- end }}
42
+ app.kubernetes.io/managed-by: {{ .Release.Service }}
43
+ {{- end }}
44
+
45
+ {{/*
46
+ Selector labels
47
+ */}}
48
+ {{- define "mysql-install.selectorLabels" -}}
49
+ app.kubernetes.io/name: {{ include "mysql-install.name" . }}
50
+ app.kubernetes.io/instance: {{ .Release.Name }}
51
+ {{- end }}
52
+
53
+ {{/*
54
+ Create the name of the service account to use
55
+ */}}
56
+ {{- define "mysql-install.serviceAccountName" -}}
57
+ {{- if .Values.serviceAccount.create }}
58
+ {{- default (include "mysql-install.fullname" .) .Values.serviceAccount.name }}
59
+ {{- else }}
60
+ {{- default "default" .Values.serviceAccount.name }}
61
+ {{- end }}
62
+ {{- end }}
@@ -0,0 +1,51 @@
1
+ enabled: true
2
+ kind: Job
3
+
4
+ annotations:
5
+ helm.sh/hook: post-install,post-upgrade
6
+ helm.sh/hook-weight: "10"
7
+ helm.sh/hook-delete-policy: before-hook-creation
8
+
9
+ initContainers:
10
+ - name: wait-for-resources
11
+ image: busybox:1.28
12
+ command: ['sh', '-c', "sleep 5s;"]
13
+
14
+ image:
15
+ repository: alpine/git
16
+ tag: "v2.26.2"
17
+ pullPolicy: IfNotPresent
18
+
19
+ restartPolicy: Never
20
+
21
+ script:
22
+ - apk update
23
+ - apk add make mysql-client
24
+ - cd /script
25
+ - make --no-print-directory install
26
+
27
+ secret:
28
+ HOST_IP: ""
29
+ USERNAME: ""
30
+ PASSWORD: ""
31
+ GITLAB_USER_NAME: ""
32
+ CI_GIT_TOKEN: ""
33
+
34
+ config:
35
+ GIT_REPO: ""
36
+ GIT_TAG: ""
37
+ CI_PIPELINE_URL: ""
38
+
39
+ configFiles:
40
+ - name: script
41
+ files:
42
+ - "script/*"
43
+
44
+ volumeMounts:
45
+ - name: script-volume
46
+ mountPath: /script/
47
+
48
+ volumes:
49
+ - name: script-volume
50
+ configMap:
51
+ name: "{{Release.Name}}-{{Chart.Name}}-script"