diff --git a/.github/README.md b/.github/README.md index a767f964d2a..08622b7beed 100644 --- a/.github/README.md +++ b/.github/README.md @@ -36,6 +36,8 @@ Creating charts takes some getting used to, as it's based on Helm charts. We hig Truecharts as a whole, is based on a BSD-3-clause license, this ensures almost everyone can use and modify our charts. However: As a lot of Apps are based on upstream Helm Charts, Licences can vary on a per-App basis. This can easily be seen by the presence of a "LICENSE" file in the App rootfolder. +Some Apps may also contain parts in other licenses, such as libraries or templates, these files can be recognised by their individual headers. + [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Ftruecharts%2Ftruecharts.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Ftruecharts%2Ftruecharts?ref=badge_large) --- diff --git a/.github/docs/legal/License-headers.md b/.github/docs/legal/License-headers.md new file mode 100644 index 00000000000..b6fc5032562 --- /dev/null +++ b/.github/docs/legal/License-headers.md @@ -0,0 +1,46 @@ +# License Header Format + +Within TrueCharts we sometimes use code thats has a different license from the rest of the project. +When there is not already a license header present, we use these standard license headers. + +##### TPL +``` +{{/* +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +`SPDX-License-Identifier: Apache-2.0` + +This file is considered to be modified by the TrueCharts Project. +*/}} +``` + +##### YAML +``` +## +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# `SPDX-License-Identifier: Apache-2.0` +# +# This file is considered to be modified by the TrueCharts Project. +## +``` diff --git a/charts/home-assistant/1.6.2/LICENSE b/charts/home-assistant/1.6.2/LICENSE deleted file mode 100644 index 056d3dab356..00000000000 --- a/charts/home-assistant/1.6.2/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2020 k8s@Home - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/charts/home-assistant/1.6.2/templates/secret.yaml b/charts/home-assistant/1.6.2/templates/secret.yaml index 19f769cf59b..f6e757fd704 100644 --- a/charts/home-assistant/1.6.2/templates/secret.yaml +++ b/charts/home-assistant/1.6.2/templates/secret.yaml @@ -1,3 +1,21 @@ +## +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# `SPDX-License-Identifier: Apache-2.0` +# +# This file is considered to be modified by the TrueCharts Project. +## + {{- if or .Values.git.deployKey .Values.git.deployKeyBase64 }} apiVersion: v1 kind: Secret diff --git a/charts/home-assistant/1.6.2/templates/servicemonitor.yaml b/charts/home-assistant/1.6.2/templates/servicemonitor.yaml index 1228ae6b215..e58ceac8186 100644 --- a/charts/home-assistant/1.6.2/templates/servicemonitor.yaml +++ b/charts/home-assistant/1.6.2/templates/servicemonitor.yaml @@ -1,3 +1,20 @@ +## +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# `SPDX-License-Identifier: Apache-2.0` +# +# This file is considered to be modified by the TrueCharts Project. +## {{- if .Values.prometheus.serviceMonitor.enabled }} apiVersion: monitoring.coreos.com/v1 diff --git a/charts/qbittorrent/1.6.2/LICENSE b/charts/qbittorrent/1.6.2/LICENSE deleted file mode 100644 index 056d3dab356..00000000000 --- a/charts/qbittorrent/1.6.2/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2020 k8s@Home - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/charts/qbittorrent/1.6.2/templates/configmap.yaml b/charts/qbittorrent/1.6.2/templates/configmap.yaml index 7a3548491a0..ced7963d6cb 100644 --- a/charts/qbittorrent/1.6.2/templates/configmap.yaml +++ b/charts/qbittorrent/1.6.2/templates/configmap.yaml @@ -1,3 +1,21 @@ +## +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# `SPDX-License-Identifier: Apache-2.0` +# +# This file is considered to be modified by the TrueCharts Project. +## + apiVersion: v1 kind: ConfigMap metadata: diff --git a/library/common/LICENSE b/library/common/LICENSE deleted file mode 100644 index 056d3dab356..00000000000 --- a/library/common/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2020 k8s@Home - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/library/common/templates/_all.tpl b/library/common/templates/_all.tpl index f3157f15631..9045fc9b11b 100644 --- a/library/common/templates/_all.tpl +++ b/library/common/templates/_all.tpl @@ -1,3 +1,22 @@ +{{/* +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +`SPDX-License-Identifier: Apache-2.0` + +This file is considered to be modified by the TrueCharts Project. +*/}} + + {{/* Main entrypoint for the common library chart. It will render all underlying templates based on the provided values. */}} diff --git a/library/common/templates/_daemonset.tpl b/library/common/templates/_daemonset.tpl index ce4e2450d68..91bb0a4fafd 100644 --- a/library/common/templates/_daemonset.tpl +++ b/library/common/templates/_daemonset.tpl @@ -1,3 +1,22 @@ +{{/* +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +`SPDX-License-Identifier: Apache-2.0` + +This file is considered to be modified by the TrueCharts Project. +*/}} + + {{/* This template serves as the blueprint for the DaemonSet objects that are created within the common library. diff --git a/library/common/templates/_deployment.tpl b/library/common/templates/_deployment.tpl index 3672dba806d..caa9464359b 100644 --- a/library/common/templates/_deployment.tpl +++ b/library/common/templates/_deployment.tpl @@ -1,3 +1,21 @@ +{{/* +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +`SPDX-License-Identifier: Apache-2.0` + +This file is considered to be modified by the TrueCharts Project. +*/}} + {{/* This template serves as the blueprint for the Deployment objects that are created within the common library. diff --git a/library/common/templates/_ingress.tpl b/library/common/templates/_ingress.tpl index d6ad879a26c..85a745add50 100644 --- a/library/common/templates/_ingress.tpl +++ b/library/common/templates/_ingress.tpl @@ -1,3 +1,21 @@ +{{/* +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +`SPDX-License-Identifier: Apache-2.0` + +This file is considered to be modified by the TrueCharts Project. +*/}} + {{/* Renders the Ingress objects required by the chart by returning a concatinated list of the main Ingress and any additionalIngresses. diff --git a/library/common/templates/_notes.tpl b/library/common/templates/_notes.tpl index 4cba1996e20..6b72c05312d 100644 --- a/library/common/templates/_notes.tpl +++ b/library/common/templates/_notes.tpl @@ -1,3 +1,21 @@ +{{/* +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +`SPDX-License-Identifier: Apache-2.0` + +This file is considered to be modified by the TrueCharts Project. +*/}} + {{/* Default NOTES.txt content. */}} diff --git a/library/common/templates/_pvc.tpl b/library/common/templates/_pvc.tpl index 7ad340ba385..1e00d3e44fa 100644 --- a/library/common/templates/_pvc.tpl +++ b/library/common/templates/_pvc.tpl @@ -1,3 +1,21 @@ +{{/* +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +`SPDX-License-Identifier: Apache-2.0` + +This file is considered to be modified by the TrueCharts Project. +*/}} + {{/* Renders the PersistentVolumeClaim objects required by the chart by returning a concatinated list of all the entries of the persistence key. diff --git a/library/common/templates/_service.tpl b/library/common/templates/_service.tpl index 2aba616d075..7190d60c3d3 100644 --- a/library/common/templates/_service.tpl +++ b/library/common/templates/_service.tpl @@ -1,7 +1,21 @@ {{/* -Renders the Service objects required by the chart by returning a concatinated list -of the main Service and any additionalServices. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +`SPDX-License-Identifier: Apache-2.0` + +This file is considered to be modified by the TrueCharts Project. */}} + {{- define "common.service" -}} {{- if .Values.service.enabled -}} {{- /* Generate primary service */ -}} diff --git a/library/common/templates/_serviceaccount.tpl b/library/common/templates/_serviceaccount.tpl index a8c0e7903ba..959a313662e 100644 --- a/library/common/templates/_serviceaccount.tpl +++ b/library/common/templates/_serviceaccount.tpl @@ -1,3 +1,21 @@ +{{/* +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +`SPDX-License-Identifier: Apache-2.0` + +This file is considered to be modified by the TrueCharts Project. +*/}} + {{/* The ServiceAccount object to be created. */}} diff --git a/library/common/templates/_statefulset.tpl b/library/common/templates/_statefulset.tpl index 16a11e69086..3b7915b3d92 100644 --- a/library/common/templates/_statefulset.tpl +++ b/library/common/templates/_statefulset.tpl @@ -1,3 +1,21 @@ +{{/* +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +`SPDX-License-Identifier: Apache-2.0` + +This file is considered to be modified by the TrueCharts Project. +*/}} + {{/* This template serves as the blueprint for the StatefulSet objects that are created within the common library. diff --git a/library/common/templates/addons/code-server/_codeserver.tpl b/library/common/templates/addons/code-server/_codeserver.tpl deleted file mode 100644 index 8cbb4c54265..00000000000 --- a/library/common/templates/addons/code-server/_codeserver.tpl +++ /dev/null @@ -1,44 +0,0 @@ -{{/* -Template to render code-server addon -It will include / inject the required templates based on the given values. -*/}} -{{- define "common.addon.codeserver" -}} -{{- if .Values.addons.codeserver.enabled -}} - {{/* Append the code-server container to the additionalContainers */}} - {{- $container := include "common.addon.codeserver.container" . | fromYaml -}} - {{- if $container -}} - {{- $additionalContainers := append .Values.additionalContainers $container -}} - {{- $_ := set .Values "additionalContainers" $additionalContainers -}} - {{- end -}} - - {{/* Add the code-server service */}} - {{- if .Values.addons.codeserver.service.enabled -}} - {{- print ("---") | nindent 0 -}} - {{- $serviceValues := .Values.addons.codeserver.service -}} - {{- if not $serviceValues.nameSuffix -}} - {{- $_ := set $serviceValues "nameSuffix" "codeserver" -}} - {{ end -}} - {{- $_ := set $ "ObjectValues" (dict "service" $serviceValues) -}} - {{- include "common.classes.service" $ -}} - {{- $_ := unset $ "ObjectValues" -}} - {{- end -}} - - {{/* Add the code-server ingress */}} - {{- if .Values.addons.codeserver.ingress.enabled -}} - {{- print ("---") | nindent 0 -}} - {{- $ingressValues := .Values.addons.codeserver.ingress -}} - {{- if not $ingressValues.nameSuffix -}} - {{- $_ := set $ingressValues "nameSuffix" "codeserver" -}} - {{ end -}} - - {{/* Determine the target service name & port */}} - {{- $svcName := printf "%v-%v" (include "common.names.fullname" .) .Values.addons.codeserver.service.nameSuffix -}} - {{- $_ := set $ingressValues "serviceName" $svcName -}} - {{- $_ := set $ingressValues "servicePort" .Values.addons.codeserver.service.port.port -}} - - {{- $_ := set $ "ObjectValues" (dict "ingress" $ingressValues) -}} - {{- include "common.classes.ingress" $ -}} - {{- $_ := unset $ "ObjectValues" -}} - {{- end -}} -{{- end -}} -{{- end -}} diff --git a/library/common/templates/addons/code-server/_container.tpl b/library/common/templates/addons/code-server/_container.tpl deleted file mode 100644 index 5d099a80e2b..00000000000 --- a/library/common/templates/addons/code-server/_container.tpl +++ /dev/null @@ -1,41 +0,0 @@ -{{/* -The code-server sidecar container to be inserted. -*/}} -{{- define "common.addon.codeserver.container" -}} -{{- if lt (len .Values.addons.codeserver.volumeMounts) 1 }} -{{- fail "At least 1 volumeMount is required for codeserver container" }} -{{- end -}} -name: codeserver -image: "{{ .Values.addons.codeserver.image.repository }}:{{ .Values.addons.codeserver.image.tag }}" -imagePullPolicy: {{ .Values.addons.codeserver.pullPolicy }} -{{- with .Values.addons.codeserver.securityContext }} -securityContext: - {{- toYaml . | nindent 2 }} -{{- end }} -{{- with .Values.addons.codeserver.env }} -env: -{{- range $k, $v := . }} - - name: {{ $k }} - value: {{ $v | quote }} -{{- end }} -{{- end }} -ports: -- name: {{ .Values.addons.codeserver.service.port.name }} - containerPort: {{ .Values.addons.codeserver.service.port.port }} - protocol: TCP -args: -{{- range .Values.addons.codeserver.args }} -- {{ . | quote }} -{{- end }} -- "--port" -- "{{ .Values.addons.codeserver.service.port.port }}" -- {{ .Values.addons.codeserver.workingDir | default (first .Values.addons.codeserver.volumeMounts).mountPath }} -{{- with .Values.addons.codeserver.volumeMounts }} -volumeMounts: - {{- toYaml . | nindent 2 }} -{{- end }} -{{- with .Values.addons.codeserver.resources }} -resources: - {{- toYaml . | nindent 2 }} -{{- end }} -{{- end -}} diff --git a/library/common/templates/addons/vpn/_configmap.tpl b/library/common/templates/addons/vpn/_configmap.tpl deleted file mode 100644 index bc5f6902c67..00000000000 --- a/library/common/templates/addons/vpn/_configmap.tpl +++ /dev/null @@ -1,26 +0,0 @@ -{{/* -The VPN config and scripts to be included. -*/}} -{{- define "common.addon.vpn.configmap" -}} -{{- if or .Values.addons.vpn.configFile .Values.addons.vpn.scripts.up .Values.addons.vpn.scripts.down }} -apiVersion: v1 -kind: ConfigMap -metadata: - name: {{ include "common.names.fullname" . }}-vpn - labels: - {{- include "common.labels" . | nindent 4 }} -data: -{{- with .Values.addons.vpn.configFile }} - vpnConfigfile: |- - {{- . | nindent 4}} -{{- end }} -{{- with .Values.addons.vpn.scripts.up }} - up.sh: |- - {{- . | nindent 4}} -{{- end }} -{{- with .Values.addons.vpn.scripts.down }} - down.sh: |- - {{- . | nindent 4}} -{{- end }} -{{- end -}} -{{- end -}} diff --git a/library/common/templates/addons/vpn/_networkpolicy.tpl b/library/common/templates/addons/vpn/_networkpolicy.tpl deleted file mode 100644 index 2694dbc008b..00000000000 --- a/library/common/templates/addons/vpn/_networkpolicy.tpl +++ /dev/null @@ -1,21 +0,0 @@ -{{/* -Blueprint for the NetworkPolicy object that can be included in the addon. -*/}} -{{- define "common.addon.vpn.networkpolicy" -}} -{{- if .Values.addons.vpn.networkPolicy.enabled -}} -kind: NetworkPolicy -apiVersion: networking.k8s.io/v1 -metadata: - name: {{ include "common.names.fullname" . }} -spec: - podSelector: - matchLabels: - {{- include "common.labels.selectorLabels" . | nindent 6 }} - policyTypes: - - Egress - egress: - {{- with .Values.addons.vpn.networkPolicy.egress }} - {{- . | toYaml | nindent 4 }} - {{- end -}} -{{- end -}} -{{- end -}} diff --git a/library/common/templates/addons/vpn/_volume.tpl b/library/common/templates/addons/vpn/_volume.tpl deleted file mode 100644 index ac7f83cf774..00000000000 --- a/library/common/templates/addons/vpn/_volume.tpl +++ /dev/null @@ -1,25 +0,0 @@ -{{/* -The volume (referencing VPN config and scripts) to be inserted into additionalVolumes. -*/}} -{{- define "common.addon.vpn.volume" -}} -{{- if or .Values.addons.vpn.configFile .Values.addons.vpn.scripts.up .Values.addons.vpn.scripts.down -}} -name: vpnconfig -configMap: - name: {{ include "common.names.fullname" . }}-vpn - items: - {{- if .Values.addons.vpn.configFile }} - - key: vpnConfigfile - path: vpnConfigfile - {{- end }} - {{- if .Values.addons.vpn.scripts.up }} - - key: up.sh - path: up.sh - mode: 0777 - {{- end }} - {{- if .Values.addons.vpn.scripts.down }} - - key: down.sh - path: down.sh - mode: 0777 - {{- end }} -{{- end -}} -{{- end -}} diff --git a/library/common/templates/addons/vpn/_vpn.tpl b/library/common/templates/addons/vpn/_vpn.tpl deleted file mode 100644 index e3d52a58008..00000000000 --- a/library/common/templates/addons/vpn/_vpn.tpl +++ /dev/null @@ -1,36 +0,0 @@ -{{/* -Template to render VPN addon -It will include / inject the required templates based on the given values. -*/}} -{{- define "common.addon.vpn" -}} -{{- if .Values.addons.vpn.enabled -}} - {{- if eq "openvpn" .Values.addons.vpn.type -}} - {{- include "common.addon.openvpn" . }} - {{- end -}} - - {{- if eq "wireguard" .Values.addons.vpn.type -}} - {{- include "common.addon.wireguard" . }} - {{- end -}} - - {{/* Include the configmap if not empty */}} - {{- $configmap := include "common.addon.vpn.configmap" . -}} - {{- if $configmap -}} - {{- print "---" | nindent 0 -}} - {{- $configmap | nindent 0 -}} - {{- end -}} - - {{/* Append the vpn config volume to the additionalVolumes */}} - {{- $volume := include "common.addon.vpn.volume" . | fromYaml -}} - {{- if $volume -}} - {{- $additionalVolumes := append .Values.additionalVolumes $volume }} - {{- $_ := set .Values "additionalVolumes" $additionalVolumes -}} - {{- end -}} - - {{/* Include the networkpolicy if not empty */}} - {{- $networkpolicy := include "common.addon.vpn.networkpolicy" . -}} - {{- if $networkpolicy -}} - {{- print "---" | nindent 0 -}} - {{- $networkpolicy | nindent 0 -}} - {{- end -}} -{{- end -}} -{{- end -}} diff --git a/library/common/templates/addons/vpn/openvpn/_addon.tpl b/library/common/templates/addons/vpn/openvpn/_addon.tpl deleted file mode 100644 index 62005db4caf..00000000000 --- a/library/common/templates/addons/vpn/openvpn/_addon.tpl +++ /dev/null @@ -1,19 +0,0 @@ -{{/* -Template to render OpenVPN addon. It will add the container to the list of additionalContainers -and add a credentials secret if speciffied. -*/}} -{{- define "common.addon.openvpn" -}} - {{/* Append the openVPN container to the additionalContainers */}} - {{- $container := include "common.addon.openvpn.container" . | fromYaml -}} - {{- if $container -}} - {{- $additionalContainers := append .Values.additionalContainers $container -}} - {{- $_ := set .Values "additionalContainers" $additionalContainers -}} - {{- end -}} - - {{/* Include the secret if not empty */}} - {{- $secret := include "common.addon.openvpn.secret" . -}} - {{- if $secret -}} - {{- print "---" | nindent 0 -}} - {{- $secret | nindent 0 -}} - {{- end -}} -{{- end -}} diff --git a/library/common/templates/addons/vpn/openvpn/_container.tpl b/library/common/templates/addons/vpn/openvpn/_container.tpl deleted file mode 100644 index 7727a408fbb..00000000000 --- a/library/common/templates/addons/vpn/openvpn/_container.tpl +++ /dev/null @@ -1,61 +0,0 @@ -{{/* -The OpenVPN sidecar container to be inserted. -*/}} -{{- define "common.addon.openvpn.container" -}} -name: openvpn -image: "{{ .Values.addons.vpn.openvpn.image.repository }}:{{ .Values.addons.vpn.openvpn.image.tag }}" -imagePullPolicy: {{ .Values.addons.vpn.openvpn.pullPolicy }} -{{- with .Values.addons.vpn.securityContext }} -securityContext: - {{- toYaml . | nindent 2 }} -{{- end }} -{{- with .Values.addons.vpn.env }} -env: -{{- range $k, $v := . }} - - name: {{ $k }} - value: {{ $v | quote }} -{{- end }} -{{- end }} -{{- if or .Values.addons.vpn.openvpn.auth .Values.addons.vpn.openvpn.authSecret }} -envFrom: - - secretRef: - {{- if .Values.addons.vpn.openvpn.authSecret }} - name: {{ .Values.addons.vpn.openvpn.authSecret }} - {{- else }} - name: {{ include "common.names.fullname" . }}-openvpn - {{- end }} -{{- end }} -{{- if or .Values.addons.vpn.configFile .Values.addons.vpn.scripts.up .Values.addons.vpn.scripts.down .Values.addons.vpn.additionalVolumeMounts .Values.persistence.shared.enabled }} -volumeMounts: -{{- if .Values.addons.vpn.configFile }} - - name: vpnconfig - mountPath: /vpn/vpn.conf - subPath: vpnConfigfile -{{- end }} -{{- if .Values.addons.vpn.scripts.up }} - - name: vpnconfig - mountPath: /vpn/up.sh - subPath: up.sh -{{- end }} -{{- if .Values.addons.vpn.scripts.down }} - - name: vpnconfig - mountPath: /vpn/down.sh - subPath: down.sh -{{- end }} -{{- if .Values.persistence.shared.enabled }} - - mountPath: {{ .Values.persistence.shared.mountPath }} - name: shared -{{- end }} -{{- with .Values.addons.vpn.additionalVolumeMounts }} - {{- toYaml . | nindent 2 }} -{{- end }} -{{- end }} -{{- with .Values.addons.vpn.livenessProbe }} -livenessProbe: - {{- toYaml . | nindent 2 }} -{{- end -}} -{{- with .Values.addons.vpn.resources }} -resources: - {{- toYaml . | nindent 2 }} -{{- end }} -{{- end -}} diff --git a/library/common/templates/addons/vpn/openvpn/_secret.tpl b/library/common/templates/addons/vpn/openvpn/_secret.tpl deleted file mode 100644 index 3a4deed7406..00000000000 --- a/library/common/templates/addons/vpn/openvpn/_secret.tpl +++ /dev/null @@ -1,15 +0,0 @@ -{{/* -The OpenVPN credentials secrets to be included. -*/}} -{{- define "common.addon.openvpn.secret" -}} -{{- with .Values.addons.vpn.openvpn.auth -}} -apiVersion: v1 -kind: Secret -metadata: - name: {{ include "common.names.fullname" $ }}-openvpn - labels: - {{- include "common.labels" $ | nindent 4 }} -data: - VPN_AUTH: {{ . | b64enc }} -{{- end -}} -{{- end -}} diff --git a/library/common/templates/addons/vpn/wireguard/_addon.tpl b/library/common/templates/addons/vpn/wireguard/_addon.tpl deleted file mode 100644 index 3213b5faa97..00000000000 --- a/library/common/templates/addons/vpn/wireguard/_addon.tpl +++ /dev/null @@ -1,12 +0,0 @@ -{{/* -Template to render Wireguard addon. It will add the container to the list of additionalContainers. -*/}} -*/}} -{{- define "common.addon.wireguard" -}} - {{/* Append the Wireguard container to the additionalContainers */}} - {{- $container := fromYaml (include "common.addon.wireguard.container" .) -}} - {{- if $container -}} - {{- $additionalContainers := append .Values.additionalContainers $container -}} - {{- $_ := set .Values "additionalContainers" $additionalContainers -}} - {{- end -}} -{{- end -}} diff --git a/library/common/templates/addons/vpn/wireguard/_container.tpl b/library/common/templates/addons/vpn/wireguard/_container.tpl deleted file mode 100644 index 13154639d23..00000000000 --- a/library/common/templates/addons/vpn/wireguard/_container.tpl +++ /dev/null @@ -1,52 +0,0 @@ -{{/* -The Wireguard sidecar container to be inserted. -*/}} -{{- define "common.addon.wireguard.container" -}} -name: wireguard -image: "{{ .Values.addons.vpn.wireguard.image.repository }}:{{ .Values.addons.vpn.wireguard.image.tag }}" -imagePullPolicy: {{ .Values.addons.vpn.wireguard.pullPolicy }} -{{- with .Values.addons.vpn.securityContext }} -securityContext: - {{- toYaml . | nindent 2 }} -{{- end }} -{{- with .Values.addons.vpn.env }} -env: -{{- range $k, $v := . }} - - name: {{ $k }} - value: {{ $v | quote }} -{{- end }} -{{- end }} -{{- if or .Values.addons.vpn.configFile .Values.addons.vpn.scripts.up .Values.addons.vpn.scripts.down .Values.addons.vpn.additionalVolumeMounts .Values.persistence.shared.enabled }} -volumeMounts: -{{- if .Values.addons.vpn.configFile }} - - name: vpnconfig - mountPath: /etc/wireguard/wg0.conf - subPath: vpnConfigfile -{{- end }} -{{- if .Values.addons.vpn.scripts.up }} - - name: vpnconfig - mountPath: /config/up.sh - subPath: up.sh -{{- end }} -{{- if .Values.addons.vpn.scripts.down }} - - name: vpnconfig - mountPath: /config/down.sh - subPath: down.sh -{{- end }} -{{- if .Values.persistence.shared.enabled }} - - mountPath: {{ .Values.persistence.shared.mountPath }} - name: shared -{{- end }} -{{- with .Values.addons.vpn.additionalVolumeMounts }} - {{- toYaml . | nindent 2 }} -{{- end }} -{{- end }} -{{- with .Values.addons.vpn.livenessProbe }} -livenessProbe: - {{- toYaml . | nindent 2 }} -{{- end -}} -{{- with .Values.addons.vpn.resources }} -resources: - {{- toYaml . | nindent 2 }} -{{- end }} -{{- end -}} diff --git a/library/common/templates/classes/_pvc.tpl b/library/common/templates/classes/_pvc.tpl index 5477935e1d5..45f67f6d5a6 100644 --- a/library/common/templates/classes/_pvc.tpl +++ b/library/common/templates/classes/_pvc.tpl @@ -1,3 +1,21 @@ +{{/* +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +`SPDX-License-Identifier: Apache-2.0` + +This file is considered to be modified by the TrueCharts Project. +*/}} + {{/* This template serves as a blueprint for all PersistentVolumeClaim objects that are created within the common library. diff --git a/library/common/templates/classes/_service.tpl b/library/common/templates/classes/_service.tpl index e95ce07ebcd..7f1243895a1 100644 --- a/library/common/templates/classes/_service.tpl +++ b/library/common/templates/classes/_service.tpl @@ -1,3 +1,21 @@ +{{/* +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +`SPDX-License-Identifier: Apache-2.0` + +This file is considered to be modified by the TrueCharts Project. +*/}} + {{/* This template serves as a blueprint for all Service objects that are created within the common library. diff --git a/library/common/templates/classes/_service_ports.tpl b/library/common/templates/classes/_service_ports.tpl index 14832e6ffe6..9ecbb09f405 100644 --- a/library/common/templates/classes/_service_ports.tpl +++ b/library/common/templates/classes/_service_ports.tpl @@ -1,3 +1,21 @@ +{{/* +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +`SPDX-License-Identifier: Apache-2.0` + +This file is considered to be modified by the TrueCharts Project. +*/}} + {{/* Render all the ports and additionalPorts for a Service object. */}} diff --git a/library/common/templates/classes/ingress/_ingress.tpl b/library/common/templates/classes/ingress/_ingress.tpl index bc33ef18977..b93d753714a 100644 --- a/library/common/templates/classes/ingress/_ingress.tpl +++ b/library/common/templates/classes/ingress/_ingress.tpl @@ -1,3 +1,21 @@ +{{/* +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +`SPDX-License-Identifier: Apache-2.0` + +This file is considered to be modified by the TrueCharts Project. +*/}} + {{/* This template serves as a blueprint for all Ingress objects that are created within the common library. diff --git a/library/common/templates/lib/bitnamiCompat/_affinities.tpl b/library/common/templates/lib/bitnamiCompat/_affinities.tpl index 56c16c82f0b..84644018592 100644 --- a/library/common/templates/lib/bitnamiCompat/_affinities.tpl +++ b/library/common/templates/lib/bitnamiCompat/_affinities.tpl @@ -1,4 +1,22 @@ -## Currently only used as Bitnami Compatibility layer, may want to integrate more later +{{/* +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +`SPDX-License-Identifier: Apache-2.0` + +This file is considered to be modified by the TrueCharts Project. +*/}} + +{{/* Currently only used as Bitnami Compatibility layer, may want to integrate more later */}} {{/* vim: set filetype=mustache: */}} diff --git a/library/common/templates/lib/bitnamiCompat/_ingressBackend.tpl b/library/common/templates/lib/bitnamiCompat/_ingressBackend.tpl index ae31280a855..7ad3912262e 100644 --- a/library/common/templates/lib/bitnamiCompat/_ingressBackend.tpl +++ b/library/common/templates/lib/bitnamiCompat/_ingressBackend.tpl @@ -1,4 +1,22 @@ -## Currently only used as Bitnami compatibility Layer, needs more integration during the Ingress integration project. +{{/* +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +`SPDX-License-Identifier: Apache-2.0` + +This file is considered to be modified by the TrueCharts Project. +*/}} + +{{/* Currently only used as Bitnami compatibility Layer, needs more integration during the Ingress integration project. */}} {{/* vim: set filetype=mustache: */}} diff --git a/library/common/templates/lib/bitnamiCompat/_secrets.tpl b/library/common/templates/lib/bitnamiCompat/_secrets.tpl index 9cd9b349976..eaa0d57271c 100644 --- a/library/common/templates/lib/bitnamiCompat/_secrets.tpl +++ b/library/common/templates/lib/bitnamiCompat/_secrets.tpl @@ -1,4 +1,22 @@ -## Currently only used as Bitnami Compatibility layer, may want to integrate more later +{{/* +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +`SPDX-License-Identifier: Apache-2.0` + +This file is considered to be modified by the TrueCharts Project. +*/}} + +{{/* Currently only used as Bitnami Compatibility layer, may want to integrate more later */}} {{/* vim: set filetype=mustache: */}} {{/* Generate secret name. diff --git a/library/common/templates/lib/bitnamiCompat/_tplvalues.tpl b/library/common/templates/lib/bitnamiCompat/_tplvalues.tpl index c9960dedaea..8b6df586ec2 100644 --- a/library/common/templates/lib/bitnamiCompat/_tplvalues.tpl +++ b/library/common/templates/lib/bitnamiCompat/_tplvalues.tpl @@ -1,4 +1,22 @@ -## Currently only used as Bitnami Compatibility layer, may want to integrate more later +{{/* +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +`SPDX-License-Identifier: Apache-2.0` + +This file is considered to be modified by the TrueCharts Project. +*/}} + +{{/* Currently only used as Bitnami Compatibility layer, may want to integrate more later */}} {{/* vim: set filetype=mustache: */}} {{/* diff --git a/library/common/templates/lib/chart/_capabilities.tpl b/library/common/templates/lib/chart/_capabilities.tpl index 71489eef9c3..37ff7d7420a 100644 --- a/library/common/templates/lib/chart/_capabilities.tpl +++ b/library/common/templates/lib/chart/_capabilities.tpl @@ -1,3 +1,21 @@ +{{/* +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +`SPDX-License-Identifier: Apache-2.0` + +This file is considered to be modified by the TrueCharts Project. +*/}} + {{/* Return the appropriate apiVersion for DaemonSet objects. */}} diff --git a/library/common/templates/lib/chart/_errors.tpl b/library/common/templates/lib/chart/_errors.tpl index d6d3ec65a10..2985af443df 100644 --- a/library/common/templates/lib/chart/_errors.tpl +++ b/library/common/templates/lib/chart/_errors.tpl @@ -1,3 +1,21 @@ +{{/* +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +`SPDX-License-Identifier: Apache-2.0` + +This file is considered to be modified by the TrueCharts Project. +*/}} + {{/* vim: set filetype=mustache: */}} {{/* Through error when upgrading using empty passwords values that must not be empty. diff --git a/library/common/templates/lib/chart/_images.tpl b/library/common/templates/lib/chart/_images.tpl index 60f04fd6e2f..12c8ea13608 100644 --- a/library/common/templates/lib/chart/_images.tpl +++ b/library/common/templates/lib/chart/_images.tpl @@ -1,3 +1,21 @@ +{{/* +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +`SPDX-License-Identifier: Apache-2.0` + +This file is considered to be modified by the TrueCharts Project. +*/}} + {{/* vim: set filetype=mustache: */}} {{/* Return the proper image name diff --git a/library/common/templates/lib/chart/_labels.tpl b/library/common/templates/lib/chart/_labels.tpl index 9e039adbb73..b5be05142c0 100644 --- a/library/common/templates/lib/chart/_labels.tpl +++ b/library/common/templates/lib/chart/_labels.tpl @@ -1,3 +1,21 @@ +{{/* +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +`SPDX-License-Identifier: Apache-2.0` + +This file is considered to be modified by the TrueCharts Project. +*/}} + {{/* Common labels shared across objects. */}} diff --git a/library/common/templates/lib/chart/_names.tpl b/library/common/templates/lib/chart/_names.tpl index f76111110ba..41273d69c96 100644 --- a/library/common/templates/lib/chart/_names.tpl +++ b/library/common/templates/lib/chart/_names.tpl @@ -1,3 +1,21 @@ +{{/* +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +`SPDX-License-Identifier: Apache-2.0` + +This file is considered to be modified by the TrueCharts Project. +*/}} + {{/* vim: set filetype=mustache: */}} {{/* Expand the name of the chart. diff --git a/library/common/templates/lib/chart/_utils.tpl b/library/common/templates/lib/chart/_utils.tpl index 4b5c12324dc..c8cec118629 100644 --- a/library/common/templates/lib/chart/_utils.tpl +++ b/library/common/templates/lib/chart/_utils.tpl @@ -1,3 +1,21 @@ +{{/* +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +`SPDX-License-Identifier: Apache-2.0` + +This file is considered to be modified by the TrueCharts Project. +*/}} + {{/* vim: set filetype=mustache: */}} {{/* Print instructions to get a secret value. diff --git a/library/common/templates/lib/chart/_values.tpl b/library/common/templates/lib/chart/_values.tpl index c8d6947e0dc..af6b4658fdf 100644 --- a/library/common/templates/lib/chart/_values.tpl +++ b/library/common/templates/lib/chart/_values.tpl @@ -1,3 +1,21 @@ +{{/* +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +`SPDX-License-Identifier: Apache-2.0` + +This file is considered to be modified by the TrueCharts Project. +*/}} + {{/* Merge the local chart values and the common chart defaults. */}} diff --git a/library/common/templates/lib/chart/_warnings.tpl b/library/common/templates/lib/chart/_warnings.tpl index aee4bbedd77..a65a82bffa0 100644 --- a/library/common/templates/lib/chart/_warnings.tpl +++ b/library/common/templates/lib/chart/_warnings.tpl @@ -1,5 +1,25 @@ +{{/* +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +`SPDX-License-Identifier: Apache-2.0` + +This file is considered to be modified by the TrueCharts Project. +*/}} + +{{/* ## We might want to include more repositories in this warnings ## This is mostly used to prevent chart maintainers using "latest" when version is available +*/}} {{/* vim: set filetype=mustache: */}} {{/* diff --git a/library/common/templates/lib/controller/_container.tpl b/library/common/templates/lib/controller/_container.tpl index 228088edb41..98e1c086da7 100644 --- a/library/common/templates/lib/controller/_container.tpl +++ b/library/common/templates/lib/controller/_container.tpl @@ -1,3 +1,22 @@ +{{/* +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +`SPDX-License-Identifier: Apache-2.0` + +This file is considered to be modified by the TrueCharts Project. +*/}} + + {{- /* The main container included in the controller. */ -}} diff --git a/library/common/templates/lib/controller/_pod.tpl b/library/common/templates/lib/controller/_pod.tpl index ea66503f8af..fa17fa88784 100644 --- a/library/common/templates/lib/controller/_pod.tpl +++ b/library/common/templates/lib/controller/_pod.tpl @@ -1,3 +1,22 @@ +{{/* +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +`SPDX-License-Identifier: Apache-2.0` + +This file is considered to be modified by the TrueCharts Project. +*/}} + + {{- /* The pod definition included in the controller. */ -}} diff --git a/library/common/templates/lib/controller/_ports.tpl b/library/common/templates/lib/controller/_ports.tpl index 5ba10248d36..257c9338513 100644 --- a/library/common/templates/lib/controller/_ports.tpl +++ b/library/common/templates/lib/controller/_ports.tpl @@ -1,3 +1,22 @@ +{{/* +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +`SPDX-License-Identifier: Apache-2.0` + +This file is considered to be modified by the TrueCharts Project. +*/}} + + {{/* Ports included by the controller. */}} diff --git a/library/common/templates/lib/controller/_probes.tpl b/library/common/templates/lib/controller/_probes.tpl index 9240962eecc..c6c5d38a75a 100644 --- a/library/common/templates/lib/controller/_probes.tpl +++ b/library/common/templates/lib/controller/_probes.tpl @@ -1,3 +1,22 @@ +{{/* +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +`SPDX-License-Identifier: Apache-2.0` + +This file is considered to be modified by the TrueCharts Project. +*/}} + + {{/* Probes selection logic. */}} diff --git a/library/common/templates/lib/controller/_volumes.tpl b/library/common/templates/lib/controller/_volumes.tpl index 23cd7641870..792b9b9c658 100644 --- a/library/common/templates/lib/controller/_volumes.tpl +++ b/library/common/templates/lib/controller/_volumes.tpl @@ -1,3 +1,22 @@ +{{/* +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +`SPDX-License-Identifier: Apache-2.0` + +This file is considered to be modified by the TrueCharts Project. +*/}} + + {{/* Volumes included by the controller. */}} diff --git a/library/common/templates/lib/storage/_storageclass.tpl b/library/common/templates/lib/storage/_storageclass.tpl index 60e2a844f6e..3f9864dcb37 100644 --- a/library/common/templates/lib/storage/_storageclass.tpl +++ b/library/common/templates/lib/storage/_storageclass.tpl @@ -1,3 +1,22 @@ +{{/* +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +`SPDX-License-Identifier: Apache-2.0` + +This file is considered to be modified by the TrueCharts Project. +*/}} + + {{/* vim: set filetype=mustache: */}} {{/* Return the proper Storage Class diff --git a/library/common/templates/lib/validations/_cassandra.tpl b/library/common/templates/lib/validations/_cassandra.tpl index 8679ddffb11..153273eb982 100644 --- a/library/common/templates/lib/validations/_cassandra.tpl +++ b/library/common/templates/lib/validations/_cassandra.tpl @@ -1,3 +1,22 @@ +{{/* +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +`SPDX-License-Identifier: Apache-2.0` + +This file is considered to be modified by the TrueCharts Project. +*/}} + + {{/* vim: set filetype=mustache: */}} {{/* Validate Cassandra required passwords are not empty. diff --git a/library/common/templates/lib/validations/_mariadb.tpl b/library/common/templates/lib/validations/_mariadb.tpl index bb5ed7253d6..f21697eb277 100644 --- a/library/common/templates/lib/validations/_mariadb.tpl +++ b/library/common/templates/lib/validations/_mariadb.tpl @@ -1,3 +1,22 @@ +{{/* +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +`SPDX-License-Identifier: Apache-2.0` + +This file is considered to be modified by the TrueCharts Project. +*/}} + + {{/* vim: set filetype=mustache: */}} {{/* Validate MariaDB required passwords are not empty. diff --git a/library/common/templates/lib/validations/_mongodb.tpl b/library/common/templates/lib/validations/_mongodb.tpl index 7d5ecbccb4d..d4b3c9728e2 100644 --- a/library/common/templates/lib/validations/_mongodb.tpl +++ b/library/common/templates/lib/validations/_mongodb.tpl @@ -1,3 +1,22 @@ +{{/* +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +`SPDX-License-Identifier: Apache-2.0` + +This file is considered to be modified by the TrueCharts Project. +*/}} + + {{/* vim: set filetype=mustache: */}} {{/* Validate MongoDB(R) required passwords are not empty. diff --git a/library/common/templates/lib/validations/_postgresql.tpl b/library/common/templates/lib/validations/_postgresql.tpl index 992bcd39080..bc83d0b19a7 100644 --- a/library/common/templates/lib/validations/_postgresql.tpl +++ b/library/common/templates/lib/validations/_postgresql.tpl @@ -1,3 +1,22 @@ +{{/* +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +`SPDX-License-Identifier: Apache-2.0` + +This file is considered to be modified by the TrueCharts Project. +*/}} + + {{/* vim: set filetype=mustache: */}} {{/* Validate PostgreSQL required passwords are not empty. diff --git a/library/common/templates/lib/validations/_redis.tpl b/library/common/templates/lib/validations/_redis.tpl index 3e2a47c0399..72d203dff6f 100644 --- a/library/common/templates/lib/validations/_redis.tpl +++ b/library/common/templates/lib/validations/_redis.tpl @@ -1,3 +1,21 @@ +{{/* +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +`SPDX-License-Identifier: Apache-2.0` + +This file is considered to be modified by the TrueCharts Project. +*/}} + {{/* vim: set filetype=mustache: */}} {{/* diff --git a/library/common/templates/lib/validations/_validations.tpl b/library/common/templates/lib/validations/_validations.tpl index 9a814cf40dc..61cf6035aeb 100644 --- a/library/common/templates/lib/validations/_validations.tpl +++ b/library/common/templates/lib/validations/_validations.tpl @@ -1,3 +1,22 @@ +{{/* +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +`SPDX-License-Identifier: Apache-2.0` + +This file is considered to be modified by the TrueCharts Project. +*/}} + + {{/* vim: set filetype=mustache: */}} {{/* Validate values must not be empty. diff --git a/library/common/values.yaml b/library/common/values.yaml index 1ebe8faecfa..9a294042e85 100644 --- a/library/common/values.yaml +++ b/library/common/values.yaml @@ -284,169 +284,7 @@ resources: {} # cpu: 100m # memory: 128Mi -addons: - # Enable running a VPN in the pod to route traffic through a VPN - vpn: - enabled: false - - # VPN type: options are openvpn or wireguard - type: openvpn - - # OpenVPN specific configuration - openvpn: - image: - repository: dperson/openvpn-client - pullPolicy: IfNotPresent - tag: latest - - # Credentials to connect to the VPN Service (used with -a) - auth: # "user;password" - # OR specify an existing secret that contains the credentials. Credentials should be stored - # under the VPN_AUTH key - authSecret: # my-vpn-secret - - # WireGuard specific configuration - wireguard: - image: - repository: k8sathome/wireguard - pullPolicy: IfNotPresent - tag: 1.0.20200827 - - # Set the VPN container securityContext - securityContext: - capabilities: - add: - - NET_ADMIN - - SYS_MODULE - - # All variables specified here will be added to the vpn sidecar container - # See the documentation of the VPN image for all config values - env: {} - # TZ: UTC - - # Provide a customized vpn configuration file to be used by the VPN. - configFile: # |- - # Some Example Config - # remote greatvpnhost.com 8888 - # auth-user-pass - # Cipher AES - - # Provide custom up/down scripts that can be used by the vpnConf - scripts: - up: # |- - # #!/bin/bash - # echo "connected" > /shared/vpnstatus - down: # |- - # #!/bin/bash - # echo "disconnected" > /shared/vpnstatus - - additionalVolumeMounts: [] - - # Optionally specify a livenessProbe, e.g. to check if the connection is still - # being protected by the VPN - livenessProbe: {} - # exec: - # command: - # - sh - # - -c - # - if [ $(curl -s https://ipinfo.io/country) == 'US' ]; then exit 0; else exit $?; fi - # initialDelaySeconds: 30 - # periodSeconds: 60 - # failureThreshold: 1 - - # If set to true, will deploy a network policy that blocks all outbound - # traffic except traffic specified as allowed - networkPolicy: - enabled: false - - # The egress configuration for your network policy, All outbound traffic - # From the pod will be blocked unless specified here. Your cluster must - # have a CNI that supports network policies (Canal, Calico, etc...) - # https://kubernetes.io/docs/concepts/services-networking/network-policies/ - # https://github.com/ahmetb/kubernetes-network-policy-recipes - egress: - # - to: - # - ipBlock: - # cidr: 0.0.0.0/0 - # ports: - # - port: 53 - # protocol: UDP - # - port: 53 - # protocol: TCP - - # Enable running a code-server container in the pod to access files - codeserver: - enabled: false - - image: - repository: codercom/code-server - pullPolicy: IfNotPresent - tag: 3.7.4 - - # Set any environment variables for code-server here - env: {} - # TZ: UTC - - # Set codeserver command line arguments - # consider setting --user-data-dir to a persistent location to preserve code-server setting changes - args: - - --auth - - none - # - --user-data-dir - # - "/config/.vscode" - - # Specify a list of volumes that get mounted in the code-server container. - # At least 1 volumeMount is required! - volumeMounts: [] - # - name: config - # mountPath: /data/config - - # Specify the working dir that will be opened when code-server starts - # If not given, the app will default to the mountpah of the first specified volumeMount - workingDir: "" - - service: - enabled: true - type: ClusterIP - # Specify the default port information - port: - port: 12321 - name: codeserver - protocol: TCP - targetPort: codeserver - ## Specify the nodePort value for the LoadBalancer and NodePort service types. - ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport - ## - # nodePort: - - ## Provide any additional annotations which may be required. This can be used to - ## set the LoadBalancer service type to internal only. - ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer - ## - annotations: {} - labels: {} - - ingress: - enabled: false - nameSuffix: codeserver - annotations: {} - # kubernetes.io/ingress.class: nginx - # kubernetes.io/tls-acme: "true" - labels: {} - hosts: - - host: code.chart-example.local - paths: - - path: / - # Ignored if not kubeVersion >= 1.14-0 - pathType: Prefix - tls: [] - # - secretName: chart-example-tls - # hosts: - # - code.chart-example.local - - securityContext: - runAsUser: 0 ## TrueCharts Specific