From 5fb179cad9cf6f035b870b3ba525b1753080ef5c Mon Sep 17 00:00:00 2001
From: Bryan  BRANCOTTE <bryan.brancotte@pasteur.fr>
Date: Thu, 13 Jun 2024 16:54:33 +0200
Subject: [PATCH] Rename package

---
 .gitignore                                                  | 3 ++-
 .gitlab-ci.yml                                              | 6 +++---
 README.md                                                   | 6 +++---
 {shiny-server => shiny-k8s-toolkit-helm}/.helmignore        | 0
 {shiny-server => shiny-k8s-toolkit-helm}/Chart.yaml         | 4 ++--
 .../templates/NOTES.txt                                     | 0
 .../templates/_helpers.tpl                                  | 0
 .../templates/_secretHelper.tpl                             | 0
 .../templates/deployment.yaml                               | 0
 {shiny-server => shiny-k8s-toolkit-helm}/templates/hpa.yaml | 0
 .../templates/image-pull-secret.yaml                        | 0
 .../templates/ingress.yaml                                  | 0
 .../templates/service.yaml                                  | 0
 .../templates/storage.yaml                                  | 0
 {shiny-server => shiny-k8s-toolkit-helm}/values.yaml        | 0
 15 files changed, 10 insertions(+), 9 deletions(-)
 rename {shiny-server => shiny-k8s-toolkit-helm}/.helmignore (100%)
 rename {shiny-server => shiny-k8s-toolkit-helm}/Chart.yaml (96%)
 rename {shiny-server => shiny-k8s-toolkit-helm}/templates/NOTES.txt (100%)
 rename {shiny-server => shiny-k8s-toolkit-helm}/templates/_helpers.tpl (100%)
 rename {shiny-server => shiny-k8s-toolkit-helm}/templates/_secretHelper.tpl (100%)
 rename {shiny-server => shiny-k8s-toolkit-helm}/templates/deployment.yaml (100%)
 rename {shiny-server => shiny-k8s-toolkit-helm}/templates/hpa.yaml (100%)
 rename {shiny-server => shiny-k8s-toolkit-helm}/templates/image-pull-secret.yaml (100%)
 rename {shiny-server => shiny-k8s-toolkit-helm}/templates/ingress.yaml (100%)
 rename {shiny-server => shiny-k8s-toolkit-helm}/templates/service.yaml (100%)
 rename {shiny-server => shiny-k8s-toolkit-helm}/templates/storage.yaml (100%)
 rename {shiny-server => shiny-k8s-toolkit-helm}/values.yaml (100%)

diff --git a/.gitignore b/.gitignore
index dbcff3b..1b990a0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -21,4 +21,5 @@
 *.tmproj
 .vscode/
 rshiny-*.tgz
-shiny-server-*.tgz
\ No newline at end of file
+shiny-server-*.tgz
+shiny-k8s-toolkit-helm-*.tgz
\ No newline at end of file
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8384dd7..322842a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -5,8 +5,8 @@ upload:
   needs: []
   image: harbor.pasteur.fr/kube-system/helm-kubectl:3.4.0
   script:
-    - CHART_VERSION=$(helm show chart shiny-server | grep version | cut -d' ' -f2)
-    - CHART_NAME=$(helm show chart shiny-server | grep name | cut -d' ' -f2)
+    - CHART_VERSION=$(helm show chart shiny-k8s-toolkit-helm | grep version | cut -d' ' -f2)
+    - CHART_NAME=$(helm show chart shiny-k8s-toolkit-helm | grep name | cut -d' ' -f2)
     - |
       if [ "helm" == "${CI_COMMIT_REF_SLUG}" ]; then
         export CHANNEL="stable"
@@ -14,7 +14,7 @@ upload:
         export CHANNEL="${CI_COMMIT_REF_SLUG}"
       fi
       echo $CHANNEL
-    - helm package shiny-server
+    - helm package shiny-k8s-toolkit-helm
     - curl --request POST --user gitlab-ci-token:$CI_JOB_TOKEN --form "chart=@${CHART_NAME}-${CHART_VERSION}.tgz" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/api/${CHANNEL}/charts"
 
 
diff --git a/README.md b/README.md
index cc772bf..6d59c45 100644
--- a/README.md
+++ b/README.md
@@ -2,11 +2,11 @@
 
 To build a package locally, and test it with the example project, you can do:
 ```sh
-helm package shiny-server -d ../*shiny-k8s-example-python/chart/charts/
-helm package shiny-server -d ../*shiny-k8s-example-r/chart/charts/
+helm package shiny-k8s-toolkit-helm -d ../*shiny-k8s-example-python/chart/charts/
+helm package shiny-k8s-toolkit-helm -d ../*shiny-k8s-example-r/chart/charts/
 ```
 
 It will store the package in the appropriate folder, and when you will run 
 `./dohelm.sh` the newest version will be used.
 
-Don't forget to increment the version counter in shiny-server/Chart.yaml
+Don't forget to increment the version counter in shiny-k8s-toolkit-helm/Chart.yaml
diff --git a/shiny-server/.helmignore b/shiny-k8s-toolkit-helm/.helmignore
similarity index 100%
rename from shiny-server/.helmignore
rename to shiny-k8s-toolkit-helm/.helmignore
diff --git a/shiny-server/Chart.yaml b/shiny-k8s-toolkit-helm/Chart.yaml
similarity index 96%
rename from shiny-server/Chart.yaml
rename to shiny-k8s-toolkit-helm/Chart.yaml
index 6616663..59aef10 100644
--- a/shiny-server/Chart.yaml
+++ b/shiny-k8s-toolkit-helm/Chart.yaml
@@ -1,5 +1,5 @@
 apiVersion: v2
-name: shiny-server
+name: shiny-k8s-toolkit-helm
 description: A Helm chart for deploying shiny app in Kubernetes
 
 # A chart can be either an 'application' or a 'library' chart.
@@ -15,7 +15,7 @@ type: application
 # This is the chart version. This version number should be incremented each time you make changes
 # to the chart and its templates, including the app version.
 # Versions are expected to follow Semantic Versioning (https://semver.org/)
-version: 0.7.5
+version: 0.8.0
 
 # This is the version number of the application being deployed. This version number should be
 # incremented each time you make changes to the application. Versions are not expected to
diff --git a/shiny-server/templates/NOTES.txt b/shiny-k8s-toolkit-helm/templates/NOTES.txt
similarity index 100%
rename from shiny-server/templates/NOTES.txt
rename to shiny-k8s-toolkit-helm/templates/NOTES.txt
diff --git a/shiny-server/templates/_helpers.tpl b/shiny-k8s-toolkit-helm/templates/_helpers.tpl
similarity index 100%
rename from shiny-server/templates/_helpers.tpl
rename to shiny-k8s-toolkit-helm/templates/_helpers.tpl
diff --git a/shiny-server/templates/_secretHelper.tpl b/shiny-k8s-toolkit-helm/templates/_secretHelper.tpl
similarity index 100%
rename from shiny-server/templates/_secretHelper.tpl
rename to shiny-k8s-toolkit-helm/templates/_secretHelper.tpl
diff --git a/shiny-server/templates/deployment.yaml b/shiny-k8s-toolkit-helm/templates/deployment.yaml
similarity index 100%
rename from shiny-server/templates/deployment.yaml
rename to shiny-k8s-toolkit-helm/templates/deployment.yaml
diff --git a/shiny-server/templates/hpa.yaml b/shiny-k8s-toolkit-helm/templates/hpa.yaml
similarity index 100%
rename from shiny-server/templates/hpa.yaml
rename to shiny-k8s-toolkit-helm/templates/hpa.yaml
diff --git a/shiny-server/templates/image-pull-secret.yaml b/shiny-k8s-toolkit-helm/templates/image-pull-secret.yaml
similarity index 100%
rename from shiny-server/templates/image-pull-secret.yaml
rename to shiny-k8s-toolkit-helm/templates/image-pull-secret.yaml
diff --git a/shiny-server/templates/ingress.yaml b/shiny-k8s-toolkit-helm/templates/ingress.yaml
similarity index 100%
rename from shiny-server/templates/ingress.yaml
rename to shiny-k8s-toolkit-helm/templates/ingress.yaml
diff --git a/shiny-server/templates/service.yaml b/shiny-k8s-toolkit-helm/templates/service.yaml
similarity index 100%
rename from shiny-server/templates/service.yaml
rename to shiny-k8s-toolkit-helm/templates/service.yaml
diff --git a/shiny-server/templates/storage.yaml b/shiny-k8s-toolkit-helm/templates/storage.yaml
similarity index 100%
rename from shiny-server/templates/storage.yaml
rename to shiny-k8s-toolkit-helm/templates/storage.yaml
diff --git a/shiny-server/values.yaml b/shiny-k8s-toolkit-helm/values.yaml
similarity index 100%
rename from shiny-server/values.yaml
rename to shiny-k8s-toolkit-helm/values.yaml
-- 
GitLab