@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.
- package/.npm/_cacache/index-v5/05/34/1929926becc54c1f69c0921ab74c461c1777ab3d43213900acd4779dbf27 +1 -1
- package/.npm/_cacache/index-v5/0b/57/19385728919a097d1777ef98285f6cdfca14b66511276b641ec4a3af64bc +1 -1
- package/.npm/_cacache/index-v5/0b/90/c147816be94e86ed9bbb4b9e20409e4791a8991fcfd41d7a44489dedd29b +1 -1
- package/.npm/_cacache/index-v5/0b/ac/1bc19a224468b5a9e4382b946d33bb4c236306c2cefe190e5e2db1ded98a +1 -1
- package/.npm/_cacache/index-v5/12/6d/f094b1c476935fbda8814b43ee001b439b1f793c265ee5bd97d566143fb4 +1 -1
- package/.npm/_cacache/index-v5/12/80/c192e66daf6ba49f528ae81b986857735e6d257bdf4b0b1758eb795cae9b +1 -1
- package/.npm/_cacache/index-v5/13/32/a5865acd35ae515cde972c2d6cbff2863e694975883870de78b62a80f30e +1 -1
- package/.npm/_cacache/index-v5/14/33/be443b6e6c3ef0ff8f09987bc62d5ef9e61259f3331c422182f6bb74fdeb +1 -1
- package/.npm/_cacache/index-v5/14/f7/87042931e5944467d47331c350feb4384bf9143ab6ceebf7108a55905843 +1 -1
- package/.npm/_cacache/index-v5/14/fa/f87baceab26935686548c742091e7014930673bc1f077574c54c4c6c2d2d +1 -1
- package/.npm/_cacache/index-v5/15/26/abf1072208668be6e34a4311ad25f34fc908c21abc17ef01b5836cef1879 +1 -1
- package/.npm/_cacache/index-v5/1a/fd/532a4c7bf52c908d567ded2bb11b0f3282f0733d0d079a5291c2f72e0077 +1 -1
- package/.npm/_cacache/index-v5/1b/15/2ed036cc76081b7f1bfb3aa59d491eb3b3602c9381ec8d81435ceecf56b5 +1 -1
- package/.npm/_cacache/index-v5/27/b7/7f36d855e73b72c900bef7ba44a2a553de3d77b218493b4ddb6ae6fce516 +1 -1
- package/.npm/_cacache/index-v5/27/cc/afd4aa090b087c509f17e75196209f498c916da50ee4e9f26bd8424fd6f7 +1 -1
- package/.npm/_cacache/index-v5/2d/80/b5e9ca2e40744e7fa089861626d2a29c62363c01729964f4cf0c3e8ee632 +1 -1
- package/.npm/_cacache/index-v5/2d/ed/7f785cb92982f557fdc81aec4081952ce428eb449dd91fa0867b6676fa17 +1 -1
- package/.npm/_cacache/index-v5/2e/30/64338ba8469bd5c48ab7843f9d06a83992a346cfd592194af9c6d4d6dc48 +1 -1
- package/.npm/_cacache/index-v5/2e/a8/503d5f11e5dcde5786e3973ff160d2acc4736af22f9cd5a883c26adc7824 +1 -1
- package/.npm/_cacache/index-v5/30/98/41b0d8db0052e964e4843260ec8a0b12f2541721317cd5ee90b07b6a4d59 +1 -1
- package/.npm/_cacache/index-v5/31/64/15cefe5f3b923ebb9c684b37db7451ccf335632aab377fa3c730ec2e79cd +1 -1
- package/.npm/_cacache/index-v5/31/ac/4d241faeb3fea9ec8318fd93dd55eb70a87cc8a6e3f849ccef9863882b4b +3 -3
- package/.npm/_cacache/index-v5/31/ca/a8c3ab0670811a3887ede187dcd3856d14272349a18f6844f7c8007cc05e +1 -1
- package/.npm/_cacache/index-v5/34/a0/f70f68dcf9baef2ff21f29fdd206513fe5b10736be36ddd2f65a654a8f23 +1 -1
- package/.npm/_cacache/index-v5/34/f7/8879c3cd1412a0890461590276aa13d0344cb4e09494a4b3d854a7c7660a +1 -1
- package/.npm/_cacache/index-v5/35/e5/adb97753b463aa67dc9f26f39e8a52f68bf467cf1187509be7da174c057d +1 -1
- package/.npm/_cacache/index-v5/37/53/b5dccfb634beb6de718b268b6434849f27d3cf60d426dc19472a642a3f01 +1 -1
- package/.npm/_cacache/index-v5/38/2e/fe53691fa43d2f5ac447c8a2431535ec49118be55bf483c6362d4f72c79b +1 -1
- package/.npm/_cacache/index-v5/3c/f6/26a7f7dccb969c764b8bdecb3667023c64bc1159e674fbeeca633c54964c +1 -1
- package/.npm/_cacache/index-v5/3d/dd/3e8c6b6c875addf2057fb5fa152fff0fab217f78a8e51c0aa457a925bf12 +1 -1
- package/.npm/_cacache/index-v5/3e/77/916dd3c99bb6e83a0217305b0a2a541f122d977edcb92fa6b58eed796c17 +1 -1
- package/.npm/_cacache/index-v5/40/62/d04e75208dec117f72a95a5989f81fac7565a530fd22f70ea5e3abc377c3 +2 -2
- package/.npm/_cacache/index-v5/42/89/e110619623b1c9111a6392de4b1a62a904fb08d0601f87b9c8e1d493f5d6 +1 -1
- package/.npm/_cacache/index-v5/46/5b/f3ce50d3f54a5d65ac316d3c71ef8a8f8bdb072b6dfabc2c69018c3e942a +1 -1
- package/.npm/_cacache/index-v5/48/17/0ecf04bc0839b23c609ec7bfea9d339fa2cc3ee5982716cf7465ffaea675 +1 -1
- package/.npm/_cacache/index-v5/53/aa/b41f4759346e1d3b6651322d78c7983a4a546cdd6c18c3eb56c944571e4b +1 -1
- package/.npm/_cacache/index-v5/57/4d/cdafdfd03e43ca95652cbbb0b23bbbbeef3e16fa307726cb2ae8a5658531 +1 -1
- package/.npm/_cacache/index-v5/58/c9/9f8c27572bf3034e8fa9cc74fc00878e45fa7d75d4570d4430e82bfb5ef3 +1 -1
- package/.npm/_cacache/index-v5/5a/8c/47e273da29b52c911f59eca44c62faa84be4bb59b1de259ba100ff968559 +1 -1
- package/.npm/_cacache/index-v5/5e/89/be4afbbaa5c56c070a74790be14bd112b9e1b3f251324d766264b2c5f880 +1 -1
- package/.npm/_cacache/index-v5/5e/e7/453bd89145eccf9d67f5797fb09e5a017b5b13f1ac45cb7b70bda45940ec +2 -2
- package/.npm/_cacache/index-v5/5f/57/67c3b0c63ea4198903509c050bb99de2eabd6a2fba583067c4f587dc25f7 +1 -1
- package/.npm/_cacache/index-v5/60/8c/b74a2ae1c6978d635a1a21438c553d956a762176742b2749d09db964bf4d +1 -1
- package/.npm/_cacache/index-v5/68/6b/1f834b2ea43c7a9d1ffd80eb09f9d44af0895dc31dc3955d4b4c797ea825 +1 -1
- package/.npm/_cacache/index-v5/6d/61/c9e7e8446341cea439547eb023fbf47c954ba932e6944a3fd50413c1e861 +1 -1
- package/.npm/_cacache/index-v5/6d/b3/82949bd186224f1f51cb3fabdad6a93aa6a64c685b395a36f0a34af15119 +1 -1
- package/.npm/_cacache/index-v5/6f/d8/170c71ac7185da1b8040f10243c7294ff9a667a27fffc3479ba2f222f014 +1 -1
- package/.npm/_cacache/index-v5/74/d3/f9a4984e5548c5f72b3dc858046781cc3a892b34b6b7e7c353fbc93aa060 +1 -1
- package/.npm/_cacache/index-v5/75/ec/5dd4c902abf3f9ae589620cd4fd5b6ccfe045b8abdfbfa050d1a5ba8c01e +1 -1
- package/.npm/_cacache/index-v5/77/be/4d3f23909fd5905444d34cb0ce78d5bf6ce157670ae6ed614389a2027d18 +1 -1
- package/.npm/_cacache/index-v5/7d/8f/423d7e791f7fedd6bef784f0f467761c619f209ce9c788f08b63e968a880 +1 -1
- package/.npm/_cacache/index-v5/80/da/c34ca077ec2051cad25b3313e4e75ff4ad2dc2b12a9c250cb9545c0adc4b +1 -1
- package/.npm/_cacache/index-v5/84/d7/a5acf52705a1beb66603196f4bc44e583052d0f1d5a23dfb5316da1811d3 +1 -1
- package/.npm/_cacache/index-v5/86/7a/c59a43ec4985d34346e5714968f7220d176ea3a61b55464a7fecae01ac47 +1 -1
- package/.npm/_cacache/index-v5/87/55/e56d34b37c3170079064597cabb288d076b0d0468eaba3b8a0cf8686ce1f +1 -1
- package/.npm/_cacache/index-v5/8a/c9/c10bf71d66461aba0899e81d7a146332c45dbbacb1693c38fc2e4e578e39 +3 -3
- package/.npm/_cacache/index-v5/8a/ee/e3e86b627c10a9fc4ed610c15792507293ba1c14e7ba839e22aec609f1e0 +1 -1
- package/.npm/_cacache/index-v5/8b/ee/c2ea22c4bf9c5ddcd0333850e543442de3364478847c7ebc382b1ff3a70d +2 -2
- package/.npm/_cacache/index-v5/8c/2d/fc95c0f3896963b4fe4b745b6d2bbc04a2a75f31f108ff740215559617f0 +1 -1
- package/.npm/_cacache/index-v5/8e/95/715914a073e3319f22dfec7ffac9df9f293d150c0d6723a60ce08ab7f735 +1 -1
- package/.npm/_cacache/index-v5/91/73/ad583fa49e5575064791f28a81fa97fa62a4c7483b74960a58010efa1e77 +1 -1
- package/.npm/_cacache/index-v5/92/a4/7b5bd924b74993fc2b0de1a458842881545ca2cc22f6bc104a0db4fafdab +1 -1
- package/.npm/_cacache/index-v5/96/3a/a15f6c4dc3aeb3fd89c0b7a8c3ba58cb31a9b72c98e3b11a8ef1647b537f +1 -1
- package/.npm/_cacache/index-v5/96/b2/def9b882b950a49a7096d71afd5fce3a6a9454795fc060b1901e41d44620 +1 -1
- package/.npm/_cacache/index-v5/98/64/01faddae5e2bf199c5f8953942897841c5634b1800e246226ea5489f4584 +1 -1
- package/.npm/_cacache/index-v5/99/a9/8e746181ef13bc400da207da412881206f4d2004d75453373f6ee7b25ffa +1 -1
- package/.npm/_cacache/index-v5/9a/fc/baddd71f459a50b3c710a007fa7d59fa62febef98033b7331374bf02db64 +1 -1
- package/.npm/_cacache/index-v5/9b/55/1bc87872916d09156d5c7056d7ac2b245e7a7638b817eb3dbeafa9d33be8 +1 -1
- package/.npm/_cacache/index-v5/9b/b8/d45062af43674e433f967d20768d308ed6ce195be6acadfb7cfd21d11e67 +1 -1
- package/.npm/_cacache/index-v5/9c/0e/3faaf557a9613fb7f09b5cecc63ebe78da10371a1f2f58b636f8dcb9a914 +1 -1
- package/.npm/_cacache/index-v5/9c/b1/fff150691ce095677426e98bb894621ce4a88097d4b2c5c342224e1852ae +1 -1
- package/.npm/_cacache/index-v5/9d/6b/339b9832e323abb280eb874ec64f59486423026430be7b1c2ec42ca7e1b7 +1 -1
- package/.npm/_cacache/index-v5/9d/eb/0927bbd589e18b447a3726f591019d6728da728f603e77a1ded3f78dc6eb +1 -1
- package/.npm/_cacache/index-v5/9f/43/3636172cbc03abf2262c921f9f71572e6b049aa3db8c65d166bcfe5aca5f +1 -1
- package/.npm/_cacache/index-v5/a0/9e/5b7b95cdee86846e4fbe92c9e16e0e7f337c77d2c12de9778522b15bed2e +1 -1
- package/.npm/_cacache/index-v5/a1/ff/6532bc014331c9b572482a4bd805bf54a7ff8b4ca179b1c811aff3dec690 +1 -1
- package/.npm/_cacache/index-v5/a7/11/13f3c5864a7e9d12ca50a19b99d77d88fbcebb1ceb7455eb7ff77f158b64 +1 -1
- package/.npm/_cacache/index-v5/aa/9b/8b6d9e0f45dde1c6af2a4fc211f9b3a74f14041dc04a8a20490a478660b2 +1 -1
- package/.npm/_cacache/index-v5/aa/c4/489c0e6a9e4cbd64a8acd4fbfda113e9dfdd114f464830471fda53fff0cd +1 -1
- package/.npm/_cacache/index-v5/ab/47/d7a88d46cb8996b726bc7ed9280b5eea26889ab7c848149032a6e8911e4b +1 -1
- package/.npm/_cacache/index-v5/ac/4c/71e880f5d5c742e0e3807e7f3c398e920dd019bbf723586f0a7342715580 +1 -1
- package/.npm/_cacache/index-v5/ac/86/c0732592365d753d382502d91754a3c88f8b20e22cc25a0327beb9429687 +1 -1
- package/.npm/_cacache/index-v5/b0/9b/1a1d76c3ad82dd54353bb8ac8397667df4c5db97e42abf0de3fab68065bb +1 -1
- package/.npm/_cacache/index-v5/b3/b3/05a8af0a671c32b41850c1223429fe74449cfcb4c7cac54a9c7c213dfcae +3 -3
- package/.npm/_cacache/index-v5/b3/ba/fbf7da5c8eb06d9cc72143e3d36d7f701447b4e0a221c40d4960e06c7296 +1 -1
- package/.npm/_cacache/index-v5/b5/5f/1a200e91b7580c5893016e1b1397b6a076ff51cc7c5d382c3b1f1e52edd5 +1 -1
- package/.npm/_cacache/index-v5/b6/a8/3bf06da815e92239da2bd4ef7322819b458ee23ae8db9f02dc9a3dca722f +1 -1
- package/.npm/_cacache/index-v5/b7/38/992d3e6c01fc9098d137f7dbccfcaa5f5124ba9c487e582e6e0d83f99d30 +1 -1
- package/.npm/_cacache/index-v5/b7/d6/b5986a5f5d44d726090a94a22a8dff7a7c391df4a4fa4862bb50b1da196b +1 -1
- package/.npm/_cacache/index-v5/ba/d5/f7d95a8e3571758f8b5d095a21909a8f6cdfe7fd2349f7f72b2801eef079 +1 -1
- package/.npm/_cacache/index-v5/bb/8a/9c0052bb21f628e48a1e8d25084ee4adb402eba28c747d0299ebf4c3185d +1 -1
- package/.npm/_cacache/index-v5/be/a3/c0779c8e0be92c748c91a7dad4e6f0fe57ba0158b6bb1bcfddd8fc56c934 +1 -1
- package/.npm/_cacache/index-v5/be/c2/aa68eca6cebd477430ae24727732ec08ee9fc9ef2482df77932eb2f413d9 +1 -1
- package/.npm/_cacache/index-v5/bf/7c/375aec77f76404d91225e72006a0105b2a6ec04bb02cfa365ebcd4a0232b +1 -1
- package/.npm/_cacache/index-v5/c0/15/8b360dbe06b62052f2a43702140af0bca66e2e4064d7d2016efb4a2a149a +1 -1
- package/.npm/_cacache/index-v5/c2/a4/488f71f39bc65742422faf2c74e3b330852ef2192dbb3198fed044e60c20 +1 -1
- package/.npm/_cacache/index-v5/c4/89/38b2ab5b89326ead12dbed7a2076caa44d1207dd6cdb3f9f93273843dcf5 +1 -1
- package/.npm/_cacache/index-v5/c4/ac/4511be3eecea50ee9cadc09a612f9be8598d7b29d5c8b1253c75fa283cc5 +1 -1
- package/.npm/_cacache/index-v5/c5/2d/90031096314e15f4fcc35c804c2180f88214a7851b531aa27bd64064f740 +1 -1
- package/.npm/_cacache/index-v5/c7/5e/2acc90bb8fd9d3150354ec8b2f7e7cc2c8e0e59efd575a1963f1ca66cbed +1 -1
- package/.npm/_cacache/index-v5/c9/f5/c4a24d8834c4e9523cc24e10c6db63876e3eecdb2cf33762b159e3a1e92f +1 -1
- package/.npm/_cacache/index-v5/cc/2d/3cc1e00b73d00c921b8f8c92faaae480a160fc63637ba7b098518db79e02 +1 -1
- package/.npm/_cacache/index-v5/cf/56/427919eefb09afe942b12902069325293191afa7d59ff0f2b016c402b4ec +1 -1
- package/.npm/_cacache/index-v5/d1/86/f4ec8df7e9b3ceb2ae6c610f3231b693689e2ce78bd03413adef8d029a63 +1 -1
- package/.npm/_cacache/index-v5/d3/ba/564670f99cd2d757d1ac6209834faf1ce9a94ed856243cf090249d9b2b38 +1 -1
- package/.npm/_cacache/index-v5/d5/f4/0913a74f5e223a4fe6108493dd3b03c2d47259df459926160659513c9ad3 +1 -1
- package/.npm/_cacache/index-v5/dd/03/456ce7d8bffee20c3acf7e18ef6501b637d59a6fa3fa7bac5ed160b6be3f +1 -1
- package/.npm/_cacache/index-v5/e3/6a/b90e45414a9e52cdf1e4a96698065357795b9400d7af079b0a75ee8fd76d +1 -1
- package/.npm/_cacache/index-v5/e7/16/c0952e37a6a02b506441a59ee6b0e7fa873a515247763df9dddd162bbcf0 +1 -1
- package/.npm/_cacache/index-v5/e8/50/601e38974398787a5a8a8b8d835e29447814cd68ff6fe2e9629738e124c6 +1 -1
- package/.npm/_cacache/index-v5/ee/47/02714e9e61ca394444a92772fe85340de8bd216b58f59e1af25d5618303f +1 -1
- package/.npm/_cacache/index-v5/ef/23/134a34866512795c8a5025d0b968f2e44b5be8ab3a05b400c089c32a272e +1 -1
- package/.npm/_cacache/index-v5/ef/74/026f830458505ca7ae44dac678900360af24ed6e76521eb12df5fadcf26f +1 -1
- package/.npm/_cacache/index-v5/f1/75/91238e32e2ac4d9c4976deec39a2e6ca85c0c678a4466a50ca4412272a7c +1 -1
- package/.npm/_cacache/index-v5/f2/1f/c662626ec8eafafa54476678b9f71799a74ee368f2b7845a6ec9f9174a4d +3 -3
- package/.npm/_cacache/index-v5/f5/a4/ca599571c5bcfc5351ca53c418a6cd9d162539528b1ed87a692a1677020e +1 -1
- package/.npm/_cacache/index-v5/f6/18/16e565c66306149a0b31bb2af01babb55bd65ef7cb85a8a11d486d933b60 +1 -1
- package/.npm/_cacache/index-v5/f8/f5/f04b833fa130e113a9093088ad108d8cf9b2b1d5a0336e48cbf0916b8686 +1 -1
- package/.npm/_cacache/index-v5/fa/88/31cbd6ca584e75edf3642c6f8b079c1f2b5eca1d7b2780ce2e86c24f1e84 +1 -1
- package/.npm/_cacache/index-v5/fb/ae/46c38299837b3b4dcee9dc45854a6901355864326b4e64c730727ca1c88a +1 -1
- package/.npm/_cacache/index-v5/fc/1c/958fc085ebdc42fa37d4985cba976a5cca21f678c751c968f8fe9b259455 +1 -1
- package/.npm/_cacache/index-v5/fd/2e/6ead8880f4d02a536a570e21b13b4e7c9700082833e556cd53e9e92bfd1b +1 -1
- package/.npm/_cacache/index-v5/fd/46/fa56121e15b7f090f8050d0c954bbc9452e4c7ddde82777b2e00552c4220 +1 -1
- package/README.md +3 -2
- package/dist/templates/k8s-deployment/.gitlab-ci.yml +128 -0
- package/dist/templates/k8s-deployment/.helmignore +23 -0
- package/dist/templates/k8s-deployment/Chart.yaml +23 -0
- package/dist/templates/k8s-deployment/Makefile +196 -0
- package/dist/templates/k8s-deployment/README.md +17 -0
- package/dist/templates/k8s-deployment/resources/charts/mysql/Chart.yaml +23 -0
- package/dist/templates/k8s-deployment/resources/charts/mysql/charts/mysql-install/Chart.yaml +23 -0
- package/dist/templates/k8s-deployment/resources/charts/mysql/charts/mysql-install/script/Makefile +12 -0
- package/dist/templates/k8s-deployment/resources/charts/mysql/charts/mysql-install/templates/_helpers.tpl +62 -0
- package/dist/templates/k8s-deployment/resources/charts/mysql/charts/mysql-install/templates/configmap.yaml +1 -0
- package/dist/templates/k8s-deployment/resources/charts/mysql/charts/mysql-install/templates/job.yaml +1 -0
- package/dist/templates/k8s-deployment/resources/charts/mysql/charts/mysql-install/templates/secret.yaml +1 -0
- package/dist/templates/k8s-deployment/resources/charts/mysql/charts/mysql-install/values.yaml +51 -0
- package/dist/templates/k8s-deployment/resources/charts/mysql/templates/_helpers.tpl +62 -0
- package/dist/templates/k8s-deployment/resources/charts/mysql/templates/configmap.yaml +1 -0
- package/dist/templates/k8s-deployment/resources/charts/mysql/templates/deployment.yaml +1 -0
- package/dist/templates/k8s-deployment/resources/charts/mysql/templates/ingress.yaml +1 -0
- package/dist/templates/k8s-deployment/resources/charts/mysql/templates/job.yaml +1 -0
- package/dist/templates/k8s-deployment/resources/charts/mysql/templates/pv.yaml +1 -0
- package/dist/templates/k8s-deployment/resources/charts/mysql/templates/pvc.yaml +1 -0
- package/dist/templates/k8s-deployment/resources/charts/mysql/templates/sc.yaml +1 -0
- package/dist/templates/k8s-deployment/resources/charts/mysql/templates/secret.yaml +1 -0
- package/dist/templates/k8s-deployment/resources/charts/mysql/templates/service.yaml +1 -0
- package/dist/templates/k8s-deployment/resources/charts/mysql/templates/statefulset.yaml +1 -0
- package/dist/templates/k8s-deployment/resources/charts/mysql/values.yaml +15 -0
- package/dist/templates/k8s-deployment/resources/charts/redis/Chart.yaml +23 -0
- package/dist/templates/k8s-deployment/resources/charts/redis/charts/redis-install/Chart.yaml +23 -0
- package/dist/templates/k8s-deployment/resources/charts/redis/charts/redis-install/script/Makefile +8 -0
- package/dist/templates/k8s-deployment/resources/charts/redis/charts/redis-install/templates/_helpers.tpl +62 -0
- package/dist/templates/k8s-deployment/resources/charts/redis/charts/redis-install/templates/configmap.yaml +1 -0
- package/dist/templates/k8s-deployment/resources/charts/redis/charts/redis-install/templates/job.yaml +1 -0
- package/dist/templates/k8s-deployment/resources/charts/redis/charts/redis-install/templates/secret.yaml +1 -0
- package/dist/templates/k8s-deployment/resources/charts/redis/charts/redis-install/values.yaml +42 -0
- package/dist/templates/k8s-deployment/resources/charts/redis/templates/_helpers.tpl +62 -0
- package/dist/templates/k8s-deployment/resources/charts/redis/templates/configmap.yaml +1 -0
- package/dist/templates/k8s-deployment/resources/charts/redis/templates/deployment.yaml +1 -0
- package/dist/templates/k8s-deployment/resources/charts/redis/templates/ingress.yaml +1 -0
- package/dist/templates/k8s-deployment/resources/charts/redis/templates/job.yaml +1 -0
- package/dist/templates/k8s-deployment/resources/charts/redis/templates/pv.yaml +1 -0
- package/dist/templates/k8s-deployment/resources/charts/redis/templates/pvc.yaml +1 -0
- package/dist/templates/k8s-deployment/resources/charts/redis/templates/sc.yaml +1 -0
- package/dist/templates/k8s-deployment/resources/charts/redis/templates/secret.yaml +1 -0
- package/dist/templates/k8s-deployment/resources/charts/redis/templates/service.yaml +1 -0
- package/dist/templates/k8s-deployment/resources/charts/redis/templates/statefulset.yaml +1 -0
- package/dist/templates/k8s-deployment/resources/charts/redis/values.yaml +12 -0
- package/dist/templates/k8s-deployment/services/charts/hooks/Chart.yaml +23 -0
- package/dist/templates/k8s-deployment/services/charts/hooks/charts/pre-delete-rsc/Chart.yaml +23 -0
- package/dist/templates/k8s-deployment/services/charts/hooks/charts/pre-delete-rsc/script/Makefile +49 -0
- package/dist/templates/k8s-deployment/services/charts/hooks/charts/pre-delete-rsc/script/_env.yaml +2 -0
- package/dist/templates/k8s-deployment/services/charts/hooks/charts/pre-delete-rsc/templates/_helpers.tpl +62 -0
- package/dist/templates/k8s-deployment/services/charts/hooks/charts/pre-delete-rsc/templates/configmap.yaml +1 -0
- package/dist/templates/k8s-deployment/services/charts/hooks/charts/pre-delete-rsc/templates/job.yaml +1 -0
- package/dist/templates/k8s-deployment/services/charts/hooks/charts/pre-delete-rsc/templates/secret.yaml +1 -0
- package/dist/templates/k8s-deployment/services/charts/hooks/charts/pre-delete-rsc/values.yaml +36 -0
- package/dist/templates/k8s-deployment/services/charts/sample-nginx/Chart.yaml +23 -0
- package/dist/templates/k8s-deployment/services/charts/sample-nginx/templates/_helpers.tpl +62 -0
- package/dist/templates/k8s-deployment/services/charts/sample-nginx/templates/configmap.yaml +1 -0
- package/dist/templates/k8s-deployment/services/charts/sample-nginx/templates/deployment.yaml +1 -0
- package/dist/templates/k8s-deployment/services/charts/sample-nginx/templates/ingress.yaml +1 -0
- package/dist/templates/k8s-deployment/services/charts/sample-nginx/templates/secret.yaml +1 -0
- package/dist/templates/k8s-deployment/services/charts/sample-nginx/templates/service.yaml +1 -0
- package/dist/templates/k8s-deployment/services/charts/sample-nginx/templates/statefulset.yaml +1 -0
- package/dist/templates/k8s-deployment/services/charts/sample-nginx/values.yaml +47 -0
- package/dist/templates/k8s-deployment/services/charts/tests/Chart.yaml +23 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/Chart.yaml +23 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/Makefile +9 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/fixtures/index.json +1 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/integration/login/login-spec.js +47 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/integration/login/loginEmailWrong-spec.js +14 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/integration/login/loginPasswordWrong-spec.js +14 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/integration/profile/updatePassword-spec.js +15 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/integration/profile/updateProfile-spec.js +25 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/integration/test-script.spec.js +9 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/plugins/index.js +22 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/support/commands.js +258 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/support/index.js +35 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/support/misc.js +8 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress.json +4 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/templates/_helpers.tpl +62 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/templates/configmap.yaml +1 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/templates/pod.yaml +1 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/templates/secret.yaml +1 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/values.yaml +70 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/.helmignore +2 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/Chart.yaml +23 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/script/Makefile +14 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/templates/_helpers.tpl +62 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/templates/configmap.yaml +1 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/templates/pod.yaml +1 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/templates/secret.yaml +1 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/_t-0100-readiness-liveness.ts +84 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/hub.ts +372 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-contact.ts +158 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-contract.ts +328 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-kyc.ts +304 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-onboard-app.ts +823 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-onboard-web.ts +493 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-profile.ts +277 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-whitelist.ts +133 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/resources/live.jpg +0 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/resources/mykad_front.jpg +0 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/resources/profile.jpg +0 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/t-0200-start.ts +172 -0
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/values.yaml +59 -0
- package/dist/templates/k8s-deployment/templates/_cluster-role-binding.tpl +20 -0
- package/dist/templates/k8s-deployment/templates/_configmap.tpl +37 -0
- package/dist/templates/k8s-deployment/templates/_cronjob.tpl +225 -0
- package/dist/templates/k8s-deployment/templates/_deployment.tpl +246 -0
- package/dist/templates/k8s-deployment/templates/_helpers.tpl +31 -0
- package/dist/templates/k8s-deployment/templates/_ingress.tpl +77 -0
- package/dist/templates/k8s-deployment/templates/_job.tpl +233 -0
- package/dist/templates/k8s-deployment/templates/_pod.tpl +214 -0
- package/dist/templates/k8s-deployment/templates/_pv.tpl +42 -0
- package/dist/templates/k8s-deployment/templates/_pvc.tpl +27 -0
- package/dist/templates/k8s-deployment/templates/_root.tpl +314 -0
- package/dist/templates/k8s-deployment/templates/_sc.tpl +19 -0
- package/dist/templates/k8s-deployment/templates/_secret.tpl +15 -0
- package/dist/templates/k8s-deployment/templates/_service-account.tpl +8 -0
- package/dist/templates/k8s-deployment/templates/_service.tpl +40 -0
- package/dist/templates/k8s-deployment/templates/_statefulset.tpl +244 -0
- package/dist/templates/k8s-deployment/templates/root-cm.yaml +10 -0
- package/dist/templates/k8s-deployment/templates/root-pull-secret.yaml +11 -0
- package/dist/templates/k8s-deployment/templates/root-secret.yaml +24 -0
- package/dist/templates/k8s-deployment/values.yaml +35 -0
- package/dist/utils/template.js +1 -1
- package/package.json +1 -1
- package/src/utils/template.ts +1 -1
- package/templates/k8s-deployment/.gitlab-ci.yml +128 -0
- package/templates/k8s-deployment/.helmignore +23 -0
- package/templates/k8s-deployment/Chart.yaml +23 -0
- package/templates/k8s-deployment/Makefile +196 -0
- package/templates/k8s-deployment/README.md +17 -0
- package/templates/k8s-deployment/resources/charts/mysql/Chart.yaml +23 -0
- package/templates/k8s-deployment/resources/charts/mysql/charts/mysql-install/Chart.yaml +23 -0
- package/templates/k8s-deployment/resources/charts/mysql/charts/mysql-install/script/Makefile +12 -0
- package/templates/k8s-deployment/resources/charts/mysql/charts/mysql-install/templates/_helpers.tpl +62 -0
- package/templates/k8s-deployment/resources/charts/mysql/charts/mysql-install/templates/configmap.yaml +1 -0
- package/templates/k8s-deployment/resources/charts/mysql/charts/mysql-install/templates/job.yaml +1 -0
- package/templates/k8s-deployment/resources/charts/mysql/charts/mysql-install/templates/secret.yaml +1 -0
- package/templates/k8s-deployment/resources/charts/mysql/charts/mysql-install/values.yaml +51 -0
- package/templates/k8s-deployment/resources/charts/mysql/templates/_helpers.tpl +62 -0
- package/templates/k8s-deployment/resources/charts/mysql/templates/configmap.yaml +1 -0
- package/templates/k8s-deployment/resources/charts/mysql/templates/deployment.yaml +1 -0
- package/templates/k8s-deployment/resources/charts/mysql/templates/ingress.yaml +1 -0
- package/templates/k8s-deployment/resources/charts/mysql/templates/job.yaml +1 -0
- package/templates/k8s-deployment/resources/charts/mysql/templates/pv.yaml +1 -0
- package/templates/k8s-deployment/resources/charts/mysql/templates/pvc.yaml +1 -0
- package/templates/k8s-deployment/resources/charts/mysql/templates/sc.yaml +1 -0
- package/templates/k8s-deployment/resources/charts/mysql/templates/secret.yaml +1 -0
- package/templates/k8s-deployment/resources/charts/mysql/templates/service.yaml +1 -0
- package/templates/k8s-deployment/resources/charts/mysql/templates/statefulset.yaml +1 -0
- package/templates/k8s-deployment/resources/charts/mysql/values.yaml +15 -0
- package/templates/k8s-deployment/resources/charts/redis/Chart.yaml +23 -0
- package/templates/k8s-deployment/resources/charts/redis/charts/redis-install/Chart.yaml +23 -0
- package/templates/k8s-deployment/resources/charts/redis/charts/redis-install/script/Makefile +8 -0
- package/templates/k8s-deployment/resources/charts/redis/charts/redis-install/templates/_helpers.tpl +62 -0
- package/templates/k8s-deployment/resources/charts/redis/charts/redis-install/templates/configmap.yaml +1 -0
- package/templates/k8s-deployment/resources/charts/redis/charts/redis-install/templates/job.yaml +1 -0
- package/templates/k8s-deployment/resources/charts/redis/charts/redis-install/templates/secret.yaml +1 -0
- package/templates/k8s-deployment/resources/charts/redis/charts/redis-install/values.yaml +42 -0
- package/templates/k8s-deployment/resources/charts/redis/templates/_helpers.tpl +62 -0
- package/templates/k8s-deployment/resources/charts/redis/templates/configmap.yaml +1 -0
- package/templates/k8s-deployment/resources/charts/redis/templates/deployment.yaml +1 -0
- package/templates/k8s-deployment/resources/charts/redis/templates/ingress.yaml +1 -0
- package/templates/k8s-deployment/resources/charts/redis/templates/job.yaml +1 -0
- package/templates/k8s-deployment/resources/charts/redis/templates/pv.yaml +1 -0
- package/templates/k8s-deployment/resources/charts/redis/templates/pvc.yaml +1 -0
- package/templates/k8s-deployment/resources/charts/redis/templates/sc.yaml +1 -0
- package/templates/k8s-deployment/resources/charts/redis/templates/secret.yaml +1 -0
- package/templates/k8s-deployment/resources/charts/redis/templates/service.yaml +1 -0
- package/templates/k8s-deployment/resources/charts/redis/templates/statefulset.yaml +1 -0
- package/templates/k8s-deployment/resources/charts/redis/values.yaml +12 -0
- package/templates/k8s-deployment/services/charts/hooks/Chart.yaml +23 -0
- package/templates/k8s-deployment/services/charts/hooks/charts/pre-delete-rsc/Chart.yaml +23 -0
- package/templates/k8s-deployment/services/charts/hooks/charts/pre-delete-rsc/script/Makefile +49 -0
- package/templates/k8s-deployment/services/charts/hooks/charts/pre-delete-rsc/script/_env.yaml +2 -0
- package/templates/k8s-deployment/services/charts/hooks/charts/pre-delete-rsc/templates/_helpers.tpl +62 -0
- package/templates/k8s-deployment/services/charts/hooks/charts/pre-delete-rsc/templates/configmap.yaml +1 -0
- package/templates/k8s-deployment/services/charts/hooks/charts/pre-delete-rsc/templates/job.yaml +1 -0
- package/templates/k8s-deployment/services/charts/hooks/charts/pre-delete-rsc/templates/secret.yaml +1 -0
- package/templates/k8s-deployment/services/charts/hooks/charts/pre-delete-rsc/values.yaml +36 -0
- package/templates/k8s-deployment/services/charts/sample-nginx/Chart.yaml +23 -0
- package/templates/k8s-deployment/services/charts/sample-nginx/templates/_helpers.tpl +62 -0
- package/templates/k8s-deployment/services/charts/sample-nginx/templates/configmap.yaml +1 -0
- package/templates/k8s-deployment/services/charts/sample-nginx/templates/deployment.yaml +1 -0
- package/templates/k8s-deployment/services/charts/sample-nginx/templates/ingress.yaml +1 -0
- package/templates/k8s-deployment/services/charts/sample-nginx/templates/secret.yaml +1 -0
- package/templates/k8s-deployment/services/charts/sample-nginx/templates/service.yaml +1 -0
- package/templates/k8s-deployment/services/charts/sample-nginx/templates/statefulset.yaml +1 -0
- package/templates/k8s-deployment/services/charts/sample-nginx/values.yaml +47 -0
- package/templates/k8s-deployment/services/charts/tests/Chart.yaml +23 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/Chart.yaml +23 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/Makefile +9 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/fixtures/index.json +1 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/integration/login/login-spec.js +47 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/integration/login/loginEmailWrong-spec.js +14 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/integration/login/loginPasswordWrong-spec.js +14 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/integration/profile/updatePassword-spec.js +15 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/integration/profile/updateProfile-spec.js +25 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/integration/test-script.spec.js +9 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/plugins/index.js +22 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/support/commands.js +258 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/support/index.js +35 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress/support/misc.js +8 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/cypress.json +4 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/templates/_helpers.tpl +62 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/templates/configmap.yaml +1 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/templates/pod.yaml +1 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/templates/secret.yaml +1 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/values.yaml +70 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/.helmignore +2 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/Chart.yaml +23 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/script/Makefile +14 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/templates/_helpers.tpl +62 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/templates/configmap.yaml +1 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/templates/pod.yaml +1 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/templates/secret.yaml +1 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/_t-0100-readiness-liveness.ts +84 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/hub.ts +372 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-contact.ts +158 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-contract.ts +328 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-kyc.ts +304 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-onboard-app.ts +823 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-onboard-web.ts +493 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-profile.ts +277 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-whitelist.ts +133 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/resources/live.jpg +0 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/resources/mykad_front.jpg +0 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/resources/profile.jpg +0 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/t-0200-start.ts +172 -0
- package/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/values.yaml +59 -0
- package/templates/k8s-deployment/templates/_cluster-role-binding.tpl +20 -0
- package/templates/k8s-deployment/templates/_configmap.tpl +37 -0
- package/templates/k8s-deployment/templates/_cronjob.tpl +225 -0
- package/templates/k8s-deployment/templates/_deployment.tpl +246 -0
- package/templates/k8s-deployment/templates/_helpers.tpl +31 -0
- package/templates/k8s-deployment/templates/_ingress.tpl +77 -0
- package/templates/k8s-deployment/templates/_job.tpl +233 -0
- package/templates/k8s-deployment/templates/_pod.tpl +214 -0
- package/templates/k8s-deployment/templates/_pv.tpl +42 -0
- package/templates/k8s-deployment/templates/_pvc.tpl +27 -0
- package/templates/k8s-deployment/templates/_root.tpl +314 -0
- package/templates/k8s-deployment/templates/_sc.tpl +19 -0
- package/templates/k8s-deployment/templates/_secret.tpl +15 -0
- package/templates/k8s-deployment/templates/_service-account.tpl +8 -0
- package/templates/k8s-deployment/templates/_service.tpl +40 -0
- package/templates/k8s-deployment/templates/_statefulset.tpl +244 -0
- package/templates/k8s-deployment/templates/root-cm.yaml +10 -0
- package/templates/k8s-deployment/templates/root-pull-secret.yaml +11 -0
- package/templates/k8s-deployment/templates/root-secret.yaml +24 -0
- package/templates/k8s-deployment/values.yaml +35 -0
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
{{/*
|
|
2
|
+
Expand the name of the chart.
|
|
3
|
+
*/}}
|
|
4
|
+
{{- define "root.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 "root.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 "root.chart" -}}
|
|
30
|
+
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
|
31
|
+
{{- end }}
|
|
32
|
+
|
|
33
|
+
{{/*
|
|
34
|
+
Define deployment common settings
|
|
35
|
+
*/}}
|
|
36
|
+
|
|
37
|
+
{{- define "root.global.SERVICE_BASE_DOMAIN" -}}
|
|
38
|
+
{{ .Values.global.root.SERVICE_BASE_DOMAIN | default "DEFAULT" }}
|
|
39
|
+
{{- end }}
|
|
40
|
+
|
|
41
|
+
{{- define "root.global.SERVICE_BASE_NAME" -}}
|
|
42
|
+
{{ $.Release.Name | lower }}
|
|
43
|
+
{{- end }}
|
|
44
|
+
|
|
45
|
+
{{- define "root.global.SERVICE_BASE_URL" -}}
|
|
46
|
+
{{- include "root.global.SERVICE_BASE_DOMAIN" . }}/{{- include "root.global.SERVICE_BASE_NAME" . }}
|
|
47
|
+
{{- end }}
|
|
48
|
+
|
|
49
|
+
{{- define "root.global.CLUSTER_DOMAIN" -}}
|
|
50
|
+
{{ .Values.global.root.CLUSTER_DOMAIN | default "cluster.local" }}
|
|
51
|
+
{{- end }}
|
|
52
|
+
|
|
53
|
+
{{- define "root.global.CLUSTER_NAMESPACE" -}}
|
|
54
|
+
{{ $.Release.Namespace | lower }}
|
|
55
|
+
{{- end }}
|
|
56
|
+
|
|
57
|
+
{{/*
|
|
58
|
+
Define deployment global settings
|
|
59
|
+
*/}}
|
|
60
|
+
|
|
61
|
+
{{- define "array" -}}
|
|
62
|
+
{{- $array := first . -}}
|
|
63
|
+
{{- $type := typeOf $array -}}
|
|
64
|
+
|
|
65
|
+
{{- if or (eq $type "[]interface {}") (eq $type "map[string]interface {}") -}}
|
|
66
|
+
{{- $key := (index . 1) -}}
|
|
67
|
+
{{- if eq (typeOf $key) "int" -}}
|
|
68
|
+
{{- if ge (len $array) $key -}}
|
|
69
|
+
{{- index $array $key | default "" -}}
|
|
70
|
+
{{- end -}}
|
|
71
|
+
{{- else -}}
|
|
72
|
+
{{- index $array $key | default "" -}}
|
|
73
|
+
{{- end -}}
|
|
74
|
+
{{- end -}}
|
|
75
|
+
{{- end -}}
|
|
76
|
+
|
|
77
|
+
{{- define "root.globalMap" -}}
|
|
78
|
+
{{- $env := first . -}}
|
|
79
|
+
{{- $value := include "array" (list . 1) -}}
|
|
80
|
+
|
|
81
|
+
{{- $value := include "root._globalMap" (list $env $value "{{" "}}") -}}
|
|
82
|
+
{{- $value := include "root._globalMap" (list $env $value "$" "") -}}
|
|
83
|
+
{{- $value := include "root._globalMap" (list $env $value "${" "}") -}}
|
|
84
|
+
|
|
85
|
+
{{- $dict := (dict "key" $value) -}}
|
|
86
|
+
|
|
87
|
+
{{- range (until 5) -}}
|
|
88
|
+
{{- range (list (list "{{" "}}") (list "$" "") (list "${" "}")) -}}
|
|
89
|
+
{{- $prefix := first . -}}
|
|
90
|
+
{{- $postfix := include "array" (list . 1) -}}
|
|
91
|
+
|
|
92
|
+
{{- if and (contains $prefix $value) (contains $postfix $value) -}}
|
|
93
|
+
{{- $value := get $dict "key" -}}
|
|
94
|
+
{{- $n := include "root._globalMap" (list $env $value $prefix $postfix) -}}
|
|
95
|
+
{{- if not (eq $n $value) -}}
|
|
96
|
+
{{- $_ := set $dict "key" $n -}}
|
|
97
|
+
{{- end -}}
|
|
98
|
+
{{- end -}}
|
|
99
|
+
{{- end -}}
|
|
100
|
+
{{- end -}}
|
|
101
|
+
|
|
102
|
+
{{- get $dict "key" | default "" -}}
|
|
103
|
+
{{- end -}}
|
|
104
|
+
|
|
105
|
+
{{- define "root._globalMap" -}}
|
|
106
|
+
{{- $env := first . -}}
|
|
107
|
+
{{- $value := include "array" (list . 1) -}}
|
|
108
|
+
{{- $prefix := include "array" (list . 2) -}}
|
|
109
|
+
{{- $postfix := include "array" (list . 3) -}}
|
|
110
|
+
|
|
111
|
+
{{- $value := replace (print $prefix "Release.Name" $postfix) $env.Release.Name $value -}}
|
|
112
|
+
{{- $value := replace (print $prefix "Release.Namespace" $postfix) (lower $env.Release.Namespace) $value -}}
|
|
113
|
+
{{- $value := replace (print $prefix "Chart.Name" $postfix) (lower $env.Chart.Name) $value -}}
|
|
114
|
+
{{- $value := replace (print $prefix "SERVICE_BASE_SCHEMA" $postfix) ($env.Values.global.root.SERVICE_BASE_SCHEMA | default "https") $value -}}
|
|
115
|
+
{{- $value := replace (print $prefix "SERVICE_BASE_DOMAIN" $postfix) ($env.Values.global.root.SERVICE_BASE_DOMAIN | default "") $value -}}
|
|
116
|
+
{{- $value := replace (print $prefix "SERVICE_BASE_NAME" $postfix) ($env.Release.Name | default "" | lower) $value -}}
|
|
117
|
+
{{- $value := replace (print $prefix "SERVICE_NAME" $postfix) (print $env.Release.Name "_" $env.Chart.Name | replace "-" "_" | lower) $value -}}
|
|
118
|
+
|
|
119
|
+
{{- $v := print $env.Values.global.root.SERVICE_BASE_SCHEMA "://" $env.Values.global.root.SERVICE_BASE_DOMAIN "/" $env.Release.Name -}}
|
|
120
|
+
{{- $value := replace (print $prefix "SERVICE_BASE_URL" $postfix) ($v | default "" | lower) $value -}}
|
|
121
|
+
|
|
122
|
+
{{- $value := replace (print $prefix "CLUSTER_DOMAIN" $postfix) ((include "root.global.CLUSTER_DOMAIN" $env) | default "") $value -}}
|
|
123
|
+
{{- $value := replace (print $prefix "CLUSTER_NAMESPACE" $postfix) ((include "root.global.CLUSTER_NAMESPACE" $env) | default "") $value -}}
|
|
124
|
+
|
|
125
|
+
{{- $dict := (dict "key" $value) -}}
|
|
126
|
+
|
|
127
|
+
{{- if $env.Values.config -}}
|
|
128
|
+
{{- range $k, $v := $env.Values.config -}}
|
|
129
|
+
{{- if eq (typeOf $v) "string" -}}
|
|
130
|
+
{{- $key := print $prefix $k $postfix -}}
|
|
131
|
+
{{- $value := get $dict "key" -}}
|
|
132
|
+
{{- $n := replace $key $v $value -}}
|
|
133
|
+
|
|
134
|
+
{{- if not (eq $n $value) -}}
|
|
135
|
+
{{- $_ := set $dict "key" $n -}}
|
|
136
|
+
{{- end -}}
|
|
137
|
+
{{- else -}}
|
|
138
|
+
{{- if hasKey $v "service" -}}
|
|
139
|
+
{{- with index $v "service" -}}
|
|
140
|
+
{{- $key := print $prefix $k $postfix -}}
|
|
141
|
+
{{- $value := get $dict "key" -}}
|
|
142
|
+
|
|
143
|
+
{{- $v := include "root.globalValue" (list $env "CLUSTER_BASE_URL" .schema .name .namespace .domain .port) -}}
|
|
144
|
+
{{- $n := replace $key $v $value -}}
|
|
145
|
+
|
|
146
|
+
{{- if not (eq $n $value) -}}
|
|
147
|
+
{{- $_ := set $dict "key" $n -}}
|
|
148
|
+
{{- end -}}
|
|
149
|
+
{{- end -}}
|
|
150
|
+
{{- end -}}
|
|
151
|
+
{{- end -}}
|
|
152
|
+
{{- end -}}
|
|
153
|
+
{{- end -}}
|
|
154
|
+
|
|
155
|
+
{{- if $env.Values.env -}}
|
|
156
|
+
{{- range $k, $v := $env.Values.env -}}
|
|
157
|
+
{{- if eq (typeOf $v) "string" -}}
|
|
158
|
+
{{- $key := print $prefix $k $postfix -}}
|
|
159
|
+
{{- $value := get $dict "key" -}}
|
|
160
|
+
{{- $n := replace $key $v $value -}}
|
|
161
|
+
|
|
162
|
+
{{- if not (eq $n $value) -}}
|
|
163
|
+
{{- $_ := set $dict "key" $n -}}
|
|
164
|
+
{{- end -}}
|
|
165
|
+
{{- else -}}
|
|
166
|
+
{{- if hasKey $v "service" -}}
|
|
167
|
+
{{- with index $v "service" -}}
|
|
168
|
+
{{- $key := print $prefix $k $postfix -}}
|
|
169
|
+
{{- $value := get $dict "key" -}}
|
|
170
|
+
|
|
171
|
+
{{- $v := include "root.globalValue" (list $env "CLUSTER_BASE_URL" .schema .name .namespace .domain .port) -}}
|
|
172
|
+
{{- $n := replace $key $v $value -}}
|
|
173
|
+
|
|
174
|
+
{{- if not (eq $n $value) -}}
|
|
175
|
+
{{- $_ := set $dict "key" $n -}}
|
|
176
|
+
{{- end -}}
|
|
177
|
+
{{- end -}}
|
|
178
|
+
{{- end -}}
|
|
179
|
+
{{- end -}}
|
|
180
|
+
{{- end -}}
|
|
181
|
+
{{- end -}}
|
|
182
|
+
|
|
183
|
+
{{- if $env.Values.secret -}}
|
|
184
|
+
{{- range $k, $v := $env.Values.secret -}}
|
|
185
|
+
{{- if eq (typeOf $v) "string" -}}
|
|
186
|
+
{{- $key := print $prefix $k $postfix -}}
|
|
187
|
+
{{- $value := get $dict "key" -}}
|
|
188
|
+
{{- $n := replace $key $v $value -}}
|
|
189
|
+
|
|
190
|
+
{{- if not (eq $n $value) -}}
|
|
191
|
+
{{- $_ := set $dict "key" $n -}}
|
|
192
|
+
{{- end -}}
|
|
193
|
+
{{- end -}}
|
|
194
|
+
{{- end -}}
|
|
195
|
+
{{- end -}}
|
|
196
|
+
|
|
197
|
+
{{- if and $env.Values.global $env.Values.global.root -}}
|
|
198
|
+
{{- range $k, $v := $env.Values.global.root -}}
|
|
199
|
+
{{- if eq (typeOf $v) "string" -}}
|
|
200
|
+
{{- $key := print $prefix $k $postfix -}}
|
|
201
|
+
{{- $value := get $dict "key" -}}
|
|
202
|
+
{{- $n := replace $key $v $value -}}
|
|
203
|
+
|
|
204
|
+
{{- if not (eq $n $value) -}}
|
|
205
|
+
{{- $_ := set $dict "key" $n -}}
|
|
206
|
+
{{- end -}}
|
|
207
|
+
{{- else -}}
|
|
208
|
+
{{- if hasKey $v "service" -}}
|
|
209
|
+
{{- with index $v "service" -}}
|
|
210
|
+
{{- $key := print $prefix $k $postfix -}}
|
|
211
|
+
{{- $value := get $dict "key" -}}
|
|
212
|
+
|
|
213
|
+
{{- $v := include "root.globalValue" (list $env "CLUSTER_BASE_URL" .schema .name .namespace .domain .port) -}}
|
|
214
|
+
{{- $n := replace $key $v $value -}}
|
|
215
|
+
|
|
216
|
+
{{- if not (eq $n $value) -}}
|
|
217
|
+
{{- $_ := set $dict "key" $n -}}
|
|
218
|
+
{{- end -}}
|
|
219
|
+
{{- end -}}
|
|
220
|
+
{{- end -}}
|
|
221
|
+
{{- end -}}
|
|
222
|
+
{{- end -}}
|
|
223
|
+
{{- end -}}
|
|
224
|
+
|
|
225
|
+
{{- if and $env.Values.global $env.Values.global.env -}}
|
|
226
|
+
{{- range $k, $v := $env.Values.global.env -}}
|
|
227
|
+
{{- if eq (typeOf $v) "string" -}}
|
|
228
|
+
{{- $key := print $prefix $k $postfix -}}
|
|
229
|
+
{{- $value := get $dict "key" -}}
|
|
230
|
+
{{- $n := replace $key $v $value -}}
|
|
231
|
+
|
|
232
|
+
{{- if not (eq $n $value) -}}
|
|
233
|
+
{{- $_ := set $dict "key" $n -}}
|
|
234
|
+
{{- end -}}
|
|
235
|
+
{{- else -}}
|
|
236
|
+
{{- if hasKey $v "service" -}}
|
|
237
|
+
{{- with index $v "service" -}}
|
|
238
|
+
{{- $key := print $prefix $k $postfix -}}
|
|
239
|
+
{{- $value := get $dict "key" -}}
|
|
240
|
+
|
|
241
|
+
{{- $v := include "root.globalValue" (list $env "CLUSTER_BASE_URL" .schema .name .namespace .domain .port) -}}
|
|
242
|
+
{{- $n := replace $key $v $value -}}
|
|
243
|
+
|
|
244
|
+
{{- if not (eq $n $value) -}}
|
|
245
|
+
{{- $_ := set $dict "key" $n -}}
|
|
246
|
+
{{- end -}}
|
|
247
|
+
{{- end -}}
|
|
248
|
+
{{- end -}}
|
|
249
|
+
{{- end -}}
|
|
250
|
+
{{- end -}}
|
|
251
|
+
{{- end -}}
|
|
252
|
+
|
|
253
|
+
{{- if and $env.Values.global $env.Values.global.secret -}}
|
|
254
|
+
{{- if and $env.Values.global.secret $env.Values.global.secret.root -}}
|
|
255
|
+
{{- range $k, $v := $env.Values.global.secret.root -}}
|
|
256
|
+
{{- if eq (typeOf $v) "string" -}}
|
|
257
|
+
{{- $key := print $prefix $k $postfix -}}
|
|
258
|
+
{{- $value := get $dict "key" -}}
|
|
259
|
+
{{- $n := replace $key $v $value -}}
|
|
260
|
+
|
|
261
|
+
{{- if not (eq $n $value) -}}
|
|
262
|
+
{{- $_ := set $dict "key" $n -}}
|
|
263
|
+
{{- end -}}
|
|
264
|
+
{{- end -}}
|
|
265
|
+
{{- end -}}
|
|
266
|
+
{{- end -}}
|
|
267
|
+
{{- end -}}
|
|
268
|
+
|
|
269
|
+
{{- get $dict "key" | default "" -}}
|
|
270
|
+
{{- end -}}
|
|
271
|
+
|
|
272
|
+
{{- define "root.global" -}}
|
|
273
|
+
{{- $env := first . -}}
|
|
274
|
+
|
|
275
|
+
{{- $value := include "root.globalValue" . -}}
|
|
276
|
+
{{- $value := include "root.globalMap" (list $env $value) -}}
|
|
277
|
+
{{- $value | default "" -}}
|
|
278
|
+
{{- end -}}
|
|
279
|
+
|
|
280
|
+
{{- define "root.globalValue" -}}
|
|
281
|
+
{{- $env := first . -}}
|
|
282
|
+
{{- $key := include "array" (list . 1) -}}
|
|
283
|
+
|
|
284
|
+
{{- if eq $key "CLUSTER_BASE_URL" -}}
|
|
285
|
+
{{- $schema := include "array" (list . 2) | default "http" -}}
|
|
286
|
+
{{- $service := include "array" (list . 3) -}}
|
|
287
|
+
{{- $namespace := include "array" (list . 4) | default $env.Release.Namespace -}}
|
|
288
|
+
{{- $domain := include "array" (list . 5) -}}
|
|
289
|
+
{{- $port := include "array" (list . 6) -}}
|
|
290
|
+
|
|
291
|
+
{{- print $schema "://" -}}
|
|
292
|
+
{{- include "root.global.SERVICE_BASE_NAME" $env }}{{- "-" -}}
|
|
293
|
+
{{ $service }}{{- "." -}}
|
|
294
|
+
{{ $namespace }}{{- "." -}}
|
|
295
|
+
{{- include "root.globalValue" (list $env "CLUSTER_DOMAIN" $domain) }}
|
|
296
|
+
{{- if $port -}}
|
|
297
|
+
{{- print ":" $port -}}
|
|
298
|
+
{{- end -}}
|
|
299
|
+
{{- else -}}
|
|
300
|
+
{{- $value := include "array" (list $env.Values.config $key) | default (index $env.Values.global.root $key) -}}
|
|
301
|
+
|
|
302
|
+
{{- if eq (typeOf $value) "string" -}}
|
|
303
|
+
{{- $value -}}
|
|
304
|
+
{{- else -}}
|
|
305
|
+
{{- if hasKey $value "service" -}}
|
|
306
|
+
{{- with index $value "service" -}}
|
|
307
|
+
{{- include "root.globalValue" (list $env "CLUSTER_BASE_URL" .schema .name .namespace .domain .port) -}}
|
|
308
|
+
{{- end -}}
|
|
309
|
+
{{- else -}}
|
|
310
|
+
{{ $key }}
|
|
311
|
+
{{- end -}}
|
|
312
|
+
{{- end -}}
|
|
313
|
+
{{- end -}}
|
|
314
|
+
{{- end }}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{{- define "root.sc" -}}
|
|
2
|
+
{{- if and .Values.enabled (hasKey .Values "StorageClass") -}}
|
|
3
|
+
{{- range .Values.StorageClass }}
|
|
4
|
+
apiVersion: storage.k8s.io/v1
|
|
5
|
+
kind: StorageClass
|
|
6
|
+
metadata:
|
|
7
|
+
name: {{ include (print $.Chart.Name ".fullname") $ }}-{{ .name }}
|
|
8
|
+
{{- if .annotations }}
|
|
9
|
+
{{- with .annotations }}
|
|
10
|
+
annotations:
|
|
11
|
+
{{- toYaml . | nindent 4 }}
|
|
12
|
+
{{- end }}
|
|
13
|
+
{{- end }}
|
|
14
|
+
reclaimPolicy: {{ .reclaimPolicy | default "Delete" }}
|
|
15
|
+
provisioner: {{ .provisioner }}
|
|
16
|
+
{{- "---" | nindent 0 }}
|
|
17
|
+
{{- end }}
|
|
18
|
+
{{- end }}
|
|
19
|
+
{{- end }}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{{- define "root.secret" -}}
|
|
2
|
+
{{- if and .Values.enabled (hasKey .Values "secret") -}}
|
|
3
|
+
apiVersion: v1
|
|
4
|
+
kind: Secret
|
|
5
|
+
metadata:
|
|
6
|
+
name: {{ include (print $.Chart.Name ".fullname") . }}
|
|
7
|
+
type: Opaque
|
|
8
|
+
data:
|
|
9
|
+
{{- range $key, $value := .Values.secret }}
|
|
10
|
+
{{- if eq (typeOf $value) "string" }}
|
|
11
|
+
{{- $key | nindent 2 }}: {{ include "root.globalMap" (list $ $value) | b64enc }}
|
|
12
|
+
{{- end }}
|
|
13
|
+
{{- end }}
|
|
14
|
+
{{- end }}
|
|
15
|
+
{{- end }}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{{- define "root.service-account" -}}
|
|
2
|
+
{{- if and .Values.enabled (and (hasKey .Values "serviceAccountName")) -}}
|
|
3
|
+
apiVersion: v1
|
|
4
|
+
kind: ServiceAccount
|
|
5
|
+
metadata:
|
|
6
|
+
name: {{ include "root.globalMap" (list $ .Values.serviceAccountName) | default (include (print $.Chart.Name ".fullname") $) | quote }}
|
|
7
|
+
{{- end }}
|
|
8
|
+
{{- end }}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{{- define "root.service" -}}
|
|
2
|
+
{{- if and .Values.enabled .Values.service -}}
|
|
3
|
+
apiVersion: v1
|
|
4
|
+
kind: Service
|
|
5
|
+
metadata:
|
|
6
|
+
name: {{ include (print $.Chart.Name ".fullname") . }}
|
|
7
|
+
{{- if .Values.service.annotations }}
|
|
8
|
+
{{- with .Values.service.annotations }}
|
|
9
|
+
annotations:
|
|
10
|
+
{{- toYaml . | nindent 4 }}
|
|
11
|
+
{{- end }}
|
|
12
|
+
{{- end }}
|
|
13
|
+
spec:
|
|
14
|
+
type: {{ .Values.service.type }}
|
|
15
|
+
{{- if .Values.service.loadBalancerIP }}
|
|
16
|
+
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
|
|
17
|
+
{{- end }}
|
|
18
|
+
## set clusterIP to none to create headless services
|
|
19
|
+
{{- if .Values.service.clusterIP }}
|
|
20
|
+
clusterIP: {{ .Values.service.clusterIP }}
|
|
21
|
+
{{- end }}
|
|
22
|
+
ports:
|
|
23
|
+
{{- if .Values.service.ports }}
|
|
24
|
+
{{- range $.Values.service.ports }}
|
|
25
|
+
- port: {{ .port }}
|
|
26
|
+
targetPort: {{ .targetPort | default .port }}
|
|
27
|
+
protocol: {{ .protocol | default "TCP" }}
|
|
28
|
+
name: {{ .name | default "http" }}
|
|
29
|
+
{{- end }}
|
|
30
|
+
{{- end }}
|
|
31
|
+
{{- if .Values.service.port }}
|
|
32
|
+
- port: {{ .Values.service.port }}
|
|
33
|
+
targetPort: {{ .Values.service.targetPort | default .Values.service.port }}
|
|
34
|
+
protocol: TCP
|
|
35
|
+
name: http
|
|
36
|
+
{{- end }}
|
|
37
|
+
selector:
|
|
38
|
+
{{- include (print $.Chart.Name ".selectorLabels") . | nindent 4 }}
|
|
39
|
+
{{- end }}
|
|
40
|
+
{{- end }}
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
{{- define "root.statefulset" -}}
|
|
2
|
+
{{- if and .Values.enabled (.Values.kind | default "" | lower | eq "statefulset") -}}
|
|
3
|
+
apiVersion: apps/v1
|
|
4
|
+
kind: StatefulSet
|
|
5
|
+
metadata:
|
|
6
|
+
name: {{ include (print $.Chart.Name ".fullname") . }}
|
|
7
|
+
{{- if .Values.annotations }}
|
|
8
|
+
{{- with .Values.annotations }}
|
|
9
|
+
annotations:
|
|
10
|
+
{{- toYaml . | nindent 4 }}
|
|
11
|
+
{{- end }}
|
|
12
|
+
{{- end }}
|
|
13
|
+
spec:
|
|
14
|
+
replicas: {{ .Values.replicaCount | default "1" }}
|
|
15
|
+
serviceName: {{ include (print $.Chart.Name ".fullname") . }}
|
|
16
|
+
podManagementPolicy: {{ .Values.podManagementPolicy | default "Parallel" }}
|
|
17
|
+
updateStrategy:
|
|
18
|
+
type: {{ .Values.updateStrategy | default "RollingUpdate" }}
|
|
19
|
+
selector:
|
|
20
|
+
matchLabels:
|
|
21
|
+
{{- include (print $.Chart.Name ".selectorLabels") . | nindent 6 }}
|
|
22
|
+
template:
|
|
23
|
+
metadata:
|
|
24
|
+
labels:
|
|
25
|
+
{{- include (print $.Chart.Name ".selectorLabels") . | nindent 8 }}
|
|
26
|
+
annotations:
|
|
27
|
+
{{- $dict := (dict "local" "") }}
|
|
28
|
+
{{- if .Values.secret }}
|
|
29
|
+
{{- $value := get $dict "local" }}
|
|
30
|
+
{{- $value := print $value (include (print $.Template.BasePath "/secret.yaml") .) | sha256sum }}
|
|
31
|
+
{{- $_ := set $dict "local" $value }}
|
|
32
|
+
{{- end }}
|
|
33
|
+
{{- if .Values.config }}
|
|
34
|
+
{{- $value := get $dict "local" }}
|
|
35
|
+
{{- $value := print $value (include (print $.Template.BasePath "/configmap.yaml") .) | sha256sum }}
|
|
36
|
+
{{- $_ := set $dict "local" $value }}
|
|
37
|
+
{{- end }}
|
|
38
|
+
kubernetes.io/change-cause: {{ get $dict "local" | sha256sum }}
|
|
39
|
+
spec:
|
|
40
|
+
{{- if .Values.securityContext }}
|
|
41
|
+
{{- with .Values.securityContext }}
|
|
42
|
+
securityContext:
|
|
43
|
+
{{- toYaml . | nindent 8 }}
|
|
44
|
+
{{- end }}
|
|
45
|
+
{{- end }}
|
|
46
|
+
{{- if and (hasKey .Values "serviceAccountName") }}
|
|
47
|
+
serviceAccountName: {{ include "root.globalMap" (list $ .Values.serviceAccountName) | default (include (print $.Chart.Name ".fullname") $) | quote }}
|
|
48
|
+
{{- end }}
|
|
49
|
+
{{- with .Values.imagePullSecrets }}
|
|
50
|
+
imagePullSecrets:
|
|
51
|
+
- name: {{ include "root.globalMap" (list $ .) | quote }}
|
|
52
|
+
{{- end }}
|
|
53
|
+
{{- if .Values.nodeSelector }}
|
|
54
|
+
{{- with .Values.nodeSelector }}
|
|
55
|
+
nodeSelector:
|
|
56
|
+
{{- toYaml . | nindent 8 }}
|
|
57
|
+
{{- end }}
|
|
58
|
+
{{- end }}
|
|
59
|
+
{{- if .Values.initContainers }}
|
|
60
|
+
{{- with .Values.initContainers }}
|
|
61
|
+
initContainers:
|
|
62
|
+
{{- toYaml . | nindent 8 }}
|
|
63
|
+
{{- end }}
|
|
64
|
+
{{- end }}
|
|
65
|
+
containers:
|
|
66
|
+
- name: {{ include (print $.Chart.Name ".fullname") . }}
|
|
67
|
+
image: {{ .Values.image.repository }}:{{ .Values.image.tag | default $.Chart.AppVersion }}
|
|
68
|
+
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
69
|
+
{{- if .Values.resources }}
|
|
70
|
+
resources:
|
|
71
|
+
{{- toYaml .Values.resources | nindent 10 }}
|
|
72
|
+
{{- end }}
|
|
73
|
+
{{- if or .Values.script (or .Values.beforeScript .Values.afterScript) }}
|
|
74
|
+
command: ["/bin/sh"]
|
|
75
|
+
{{- $dict := (dict "key" "") -}}
|
|
76
|
+
|
|
77
|
+
{{- if .Values.beforeScript }}
|
|
78
|
+
{{- range .Values.beforeScript -}}
|
|
79
|
+
{{- if eq (typeOf .) "string" -}}
|
|
80
|
+
{{ $n := include "root.globalMap" (list $ .) }}
|
|
81
|
+
{{- $script := print (get $dict "key") $n ";" -}}
|
|
82
|
+
{{- $_ := set $dict "key" $script -}}
|
|
83
|
+
{{- end -}}
|
|
84
|
+
{{- end -}}
|
|
85
|
+
{{- end -}}
|
|
86
|
+
|
|
87
|
+
{{- if .Values.script }}
|
|
88
|
+
{{- range .Values.script -}}
|
|
89
|
+
{{- if eq (typeOf .) "string" -}}
|
|
90
|
+
{{ $n := include "root.globalMap" (list $ .) }}
|
|
91
|
+
{{- $script := print (get $dict "key") $n ";" -}}
|
|
92
|
+
{{- $_ := set $dict "key" $script -}}
|
|
93
|
+
{{- end -}}
|
|
94
|
+
{{- end -}}
|
|
95
|
+
{{- end -}}
|
|
96
|
+
|
|
97
|
+
{{- if .Values.afterScript }}
|
|
98
|
+
{{- range .Values.afterScript -}}
|
|
99
|
+
{{- if eq (typeOf .) "string" -}}
|
|
100
|
+
{{ $n := include "root.globalMap" (list $ .) }}
|
|
101
|
+
{{- $script := print (get $dict "key") $n ";" -}}
|
|
102
|
+
{{- $_ := set $dict "key" $script -}}
|
|
103
|
+
{{- end -}}
|
|
104
|
+
{{- end -}}
|
|
105
|
+
{{- end -}}
|
|
106
|
+
|
|
107
|
+
{{- $script := get $dict "key" -}}
|
|
108
|
+
{{- if not (empty $script) }}
|
|
109
|
+
args: ["-c", {{ print $script | quote }}]
|
|
110
|
+
{{- end }}
|
|
111
|
+
{{- else }}
|
|
112
|
+
{{- if .Values.command }}
|
|
113
|
+
command:
|
|
114
|
+
{{- toYaml .Values.command | nindent 10 }}
|
|
115
|
+
{{- end }}
|
|
116
|
+
{{- end }}
|
|
117
|
+
{{- if .Values.service }}
|
|
118
|
+
{{- if .Values.service.ports }}
|
|
119
|
+
ports:
|
|
120
|
+
{{- range $.Values.service.ports }}
|
|
121
|
+
- containerPort: {{ .targetPort | default .port }}
|
|
122
|
+
{{- end }}
|
|
123
|
+
{{- end }}
|
|
124
|
+
{{- if .Values.service.port }}
|
|
125
|
+
ports:
|
|
126
|
+
- containerPort: {{ .Values.service.targetPort | default .Values.service.port }}
|
|
127
|
+
{{- end }}
|
|
128
|
+
{{- end }}
|
|
129
|
+
{{- if .Values.readinessProbe }}
|
|
130
|
+
readinessProbe:
|
|
131
|
+
{{- toYaml .Values.readinessProbe | nindent 10 }}
|
|
132
|
+
{{- end }}
|
|
133
|
+
{{- if .Values.livenessProbe }}
|
|
134
|
+
livenessProbe:
|
|
135
|
+
{{- toYaml .Values.livenessProbe | nindent 10 }}
|
|
136
|
+
{{- end }}
|
|
137
|
+
env:
|
|
138
|
+
{{- range $key, $value := .Values.secret }}
|
|
139
|
+
- name: {{ $key }}
|
|
140
|
+
valueFrom:
|
|
141
|
+
secretKeyRef:
|
|
142
|
+
{{- if eq (typeOf $value) "string" }}
|
|
143
|
+
name: {{ include (print $.Chart.Name ".fullname") $ }}
|
|
144
|
+
key: {{ $key }}
|
|
145
|
+
{{- else }}
|
|
146
|
+
name: {{ include "root.globalMap" (list $ .fromKeyRef) | trimSuffix "-" }}
|
|
147
|
+
{{- if .key }}
|
|
148
|
+
key: {{ .key }}
|
|
149
|
+
{{- else }}
|
|
150
|
+
key: {{ $key }}
|
|
151
|
+
{{- end }}
|
|
152
|
+
{{- end }}
|
|
153
|
+
{{- end }}
|
|
154
|
+
{{- range $key, $value := .Values.config }}
|
|
155
|
+
- name: {{ $key }}
|
|
156
|
+
valueFrom:
|
|
157
|
+
configMapKeyRef:
|
|
158
|
+
{{- if eq (typeOf $value) "string" }}
|
|
159
|
+
name: {{ include (print $.Chart.Name ".fullname") $ }}
|
|
160
|
+
key: {{ $key }}
|
|
161
|
+
{{- else }}
|
|
162
|
+
name: {{ include "root.globalMap" (list $ .fromKeyRef) | trimSuffix "-" }}
|
|
163
|
+
{{- if .key }}
|
|
164
|
+
key: {{ .key }}
|
|
165
|
+
{{- else }}
|
|
166
|
+
key: {{ $key }}
|
|
167
|
+
{{- end }}
|
|
168
|
+
{{- end }}
|
|
169
|
+
{{- end }}
|
|
170
|
+
{{- range $key, $value := .Values.env }}
|
|
171
|
+
- name: {{ $key }}
|
|
172
|
+
value: {{ include "root.globalMap" (list $ $value) | quote }}
|
|
173
|
+
{{- end }}
|
|
174
|
+
{{- if $.Values.volumeMounts }}
|
|
175
|
+
volumeMounts:
|
|
176
|
+
{{- range $.Values.volumeMounts }}
|
|
177
|
+
- name: {{ .name }}
|
|
178
|
+
{{- if .mountPath }}
|
|
179
|
+
mountPath: {{ include "root.globalMap" (list $ .mountPath) | quote }}
|
|
180
|
+
{{- end }}
|
|
181
|
+
{{- if .subPath }}
|
|
182
|
+
subPath: {{ include "root.globalMap" (list $ .subPath) | quote }}
|
|
183
|
+
{{- end }}
|
|
184
|
+
{{- if .readOnly }}
|
|
185
|
+
readOnly: {{ .readOnly }}
|
|
186
|
+
{{- end }}
|
|
187
|
+
{{- end }}
|
|
188
|
+
{{- end }}
|
|
189
|
+
{{- if $.Values.volumes }}
|
|
190
|
+
volumes:
|
|
191
|
+
{{- range $.Values.volumes }}
|
|
192
|
+
{{- if .secret }}
|
|
193
|
+
- name: {{ .name }}
|
|
194
|
+
{{- with .secret }}
|
|
195
|
+
secret:
|
|
196
|
+
{{- if .defaultMode }}
|
|
197
|
+
defaultMode: {{ .defaultMode }}
|
|
198
|
+
{{- end }}
|
|
199
|
+
{{- if .items }}
|
|
200
|
+
items:
|
|
201
|
+
{{- range .items }}
|
|
202
|
+
- key: {{ .key }}
|
|
203
|
+
path: {{ .path }}
|
|
204
|
+
{{- end }}
|
|
205
|
+
{{- end }}
|
|
206
|
+
{{- if .secretName }}
|
|
207
|
+
secretName: {{ .secretName }}
|
|
208
|
+
{{- else }}
|
|
209
|
+
secretName: {{ include (print $.Chart.Name ".fullname") $ }}
|
|
210
|
+
{{- end }}
|
|
211
|
+
{{- end }}
|
|
212
|
+
{{- else if .configMap }}
|
|
213
|
+
- name: {{ .name }}
|
|
214
|
+
{{- with .configMap }}
|
|
215
|
+
configMap:
|
|
216
|
+
name: {{ include "root.globalMap" (list $ .name) | default (include (print $.Chart.Name ".fullname") $) | quote }}
|
|
217
|
+
{{- end }}
|
|
218
|
+
{{- else if .hostPath }}
|
|
219
|
+
- name: {{ .name }}
|
|
220
|
+
{{- with .hostPath }}
|
|
221
|
+
hostPath:
|
|
222
|
+
path: {{ include "root.globalMap" (list $ .path) }}
|
|
223
|
+
type: {{ .type }}
|
|
224
|
+
{{- end }}
|
|
225
|
+
{{- else if .nfs }}
|
|
226
|
+
- name: {{ .name }}
|
|
227
|
+
{{- with .nfs }}
|
|
228
|
+
nfs:
|
|
229
|
+
server: {{ include "root.globalMap" (list $ .server) }}
|
|
230
|
+
path: {{ include "root.globalMap" (list $ .path) }}
|
|
231
|
+
{{- end }}
|
|
232
|
+
{{- else if .persistentVolumeClaim }}
|
|
233
|
+
- name: {{ .name }}
|
|
234
|
+
{{- with .persistentVolumeClaim }}
|
|
235
|
+
persistentVolumeClaim:
|
|
236
|
+
claimName: {{ include (print $.Chart.Name ".fullname") $ }}-{{ .claimName }}
|
|
237
|
+
{{- end }}
|
|
238
|
+
{{- else }}
|
|
239
|
+
{{- toYaml . | nindent 8 }}
|
|
240
|
+
{{- end }}
|
|
241
|
+
{{- end }}
|
|
242
|
+
{{- end }}
|
|
243
|
+
{{- end }}
|
|
244
|
+
{{- end }}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
apiVersion: v1
|
|
2
|
+
kind: ConfigMap
|
|
3
|
+
metadata:
|
|
4
|
+
name: {{ print $.Release.Name "-root" }}
|
|
5
|
+
data:
|
|
6
|
+
{{- with .Values.global.root }}
|
|
7
|
+
{{- range $key, $value := . }}
|
|
8
|
+
{{- $key | nindent 2 }}{{- ": " -}}{{ include "root.global" (list $ $key) | quote }}
|
|
9
|
+
{{- end }}
|
|
10
|
+
{{- end }}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{{- if .Values.global.secret.pull }}
|
|
2
|
+
apiVersion: v1
|
|
3
|
+
kind: Secret
|
|
4
|
+
metadata:
|
|
5
|
+
name: {{ print $.Release.Name "-pull" }}
|
|
6
|
+
type: kubernetes.io/dockerconfigjson
|
|
7
|
+
data:
|
|
8
|
+
{{- with .Values.global.secret.pull }}
|
|
9
|
+
.dockerconfigjson: {{ .auth | b64enc | printf "{\"auths\":{\"%s\":{\"auth\":\"%s\"}}}" .host | b64enc }}
|
|
10
|
+
{{- end }}
|
|
11
|
+
{{- end }}
|