From 8956d345ba759f1cfa455172e31e6a3fc9b7a4b9 Mon Sep 17 00:00:00 2001 From: Bryan Brancotte <bryan.brancotte@pasteur.fr> Date: Tue, 25 Feb 2025 16:16:02 +0100 Subject: [PATCH] add license header to helm charts and Dockerfile --- chart/Chart.yaml | 17 +++++++++++++++++ chart/templates/config-map-app.yaml | 17 +++++++++++++++++ chart/templates/config-map-nginx.yaml | 17 +++++++++++++++++ chart/templates/deploy-app-and-service.yaml | 17 +++++++++++++++++ chart/templates/deploy-doc-and-service.yaml | 17 +++++++++++++++++ chart/templates/django-secret.yaml | 17 +++++++++++++++++ chart/templates/ingress.yaml | 17 +++++++++++++++++ chart/templates/storage.yaml | 17 +++++++++++++++++ chart/values.prod.yaml | 17 +++++++++++++++++ chart/values.yaml | 17 +++++++++++++++++ src/strass/Dockerfile | 17 +++++++++++++++++ 11 files changed, 187 insertions(+) diff --git a/chart/Chart.yaml b/chart/Chart.yaml index 9a4c1f13..bbab4daf 100644 --- a/chart/Chart.yaml +++ b/chart/Chart.yaml @@ -1,3 +1,20 @@ +# +# STRASS +# Copyright (C) 2025 The STRASS Authors +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# apiVersion: v2 name: strass description: A Helm chart for Kubernetes diff --git a/chart/templates/config-map-app.yaml b/chart/templates/config-map-app.yaml index 0ba631d1..146039c5 100644 --- a/chart/templates/config-map-app.yaml +++ b/chart/templates/config-map-app.yaml @@ -1,3 +1,20 @@ +# +# STRASS +# Copyright (C) 2025 The STRASS Authors +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# apiVersion: v1 kind: ConfigMap metadata: diff --git a/chart/templates/config-map-nginx.yaml b/chart/templates/config-map-nginx.yaml index 885a68b7..4c821d3f 100644 --- a/chart/templates/config-map-nginx.yaml +++ b/chart/templates/config-map-nginx.yaml @@ -1,3 +1,20 @@ +# +# STRASS +# Copyright (C) 2025 The STRASS Authors +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# apiVersion: v1 kind: ConfigMap metadata: diff --git a/chart/templates/deploy-app-and-service.yaml b/chart/templates/deploy-app-and-service.yaml index fe439c9e..ecd9d989 100644 --- a/chart/templates/deploy-app-and-service.yaml +++ b/chart/templates/deploy-app-and-service.yaml @@ -1,3 +1,20 @@ +# +# STRASS +# Copyright (C) 2025 The STRASS Authors +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# --- apiVersion: apps/v1 kind: Deployment diff --git a/chart/templates/deploy-doc-and-service.yaml b/chart/templates/deploy-doc-and-service.yaml index a02bb755..937c5ad8 100644 --- a/chart/templates/deploy-doc-and-service.yaml +++ b/chart/templates/deploy-doc-and-service.yaml @@ -1,3 +1,20 @@ +# +# STRASS +# Copyright (C) 2025 The STRASS Authors +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# apiVersion: v1 kind: Pod metadata: diff --git a/chart/templates/django-secret.yaml b/chart/templates/django-secret.yaml index 138737cd..864fe873 100644 --- a/chart/templates/django-secret.yaml +++ b/chart/templates/django-secret.yaml @@ -1,3 +1,20 @@ +# +# STRASS +# Copyright (C) 2025 The STRASS Authors +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# apiVersion: v1 kind: Secret metadata: diff --git a/chart/templates/ingress.yaml b/chart/templates/ingress.yaml index 5f9b1a59..9384a86d 100644 --- a/chart/templates/ingress.yaml +++ b/chart/templates/ingress.yaml @@ -1,3 +1,20 @@ +# +# STRASS +# Copyright (C) 2025 The STRASS Authors +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# {{- if and $.Values.publiclyOpen (not $.Values.isProd) }} {{- required "You cannot ask for a dev instance publicly open (publiclyOpen == true and isProd == false )" "" }} {{- end}} diff --git a/chart/templates/storage.yaml b/chart/templates/storage.yaml index a3c23ca4..c4e35ade 100644 --- a/chart/templates/storage.yaml +++ b/chart/templates/storage.yaml @@ -1,3 +1,20 @@ +# +# STRASS +# Copyright (C) 2025 The STRASS Authors +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# --- apiVersion: v1 kind: PersistentVolumeClaim diff --git a/chart/values.prod.yaml b/chart/values.prod.yaml index 76f9a769..5c815ff5 100644 --- a/chart/values.prod.yaml +++ b/chart/values.prod.yaml @@ -1,3 +1,20 @@ +# +# STRASS +# Copyright (C) 2025 The STRASS Authors +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# resources: limits: memory: "2Gi" diff --git a/chart/values.yaml b/chart/values.yaml index 017a5dfa..7f0bc945 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -1,3 +1,20 @@ +# +# STRASS +# Copyright (C) 2025 The STRASS Authors +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# resources: requests: memory: "256Mi" diff --git a/src/strass/Dockerfile b/src/strass/Dockerfile index 82313de8..16af12ee 100644 --- a/src/strass/Dockerfile +++ b/src/strass/Dockerfile @@ -1,3 +1,20 @@ +# +# STRASS +# Copyright (C) 2025 The STRASS Authors +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# FROM python:3.11-slim ENV PYTHONUNBUFFERED 1 ENV PROJECT_NAME strass -- GitLab