Fix token names in gitea provisioning 24/14524/5
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 21 Aug 2024 11:07:57 +0000 (13:07 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 21 Aug 2024 19:19:50 +0000 (21:19 +0200)
Change-Id: I27e3fbc8de428ab6a88058980f481ebcb117b4b5
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
installers/install_cluster_addons.sh
installers/mgmt-cluster/00-base-config.rc
installers/mgmt-cluster/01-provision-aux-svc.sh
installers/mgmt-cluster/gitea/90-provision-gitea-for-osm.sh
installers/mgmt-cluster/gitea/ALL-IN-ONE-Gitea-install.sh
installers/mgmt-cluster/gitea/admin/api.sh
installers/mgmt-cluster/gitea/admin/create-user-repository.sh
installers/mgmt-cluster/gitea/admin/create-user.sh
installers/mgmt-cluster/gitea/values-standalone-ingress-ssh2222.yaml
installers/mgmt-cluster/gitea/values-standalone-ingress.yaml
installers/mgmt-cluster/gitea/values-standalone.yaml

index b546418..8f42c7f 100755 (executable)
@@ -99,7 +99,6 @@ function install_helm_nginx() {
     echo "Installing nginx"
     NGINX_VERSION="4.10.0"
     ANNOTATIONS='--set controller.service.annotations."service\.beta\.kubernetes\.io/azure-load-balancer-health-probe-request-path"=/healthz'
-    ANNOTATIONS=${ANNOTATIONS:-""}
     helm upgrade --install ingress-nginx ingress-nginx \
         --repo https://kubernetes.github.io/ingress-nginx --version ${NGINX_VERSION} \
         --namespace ingress-nginx --create-namespace ${ANNOTATIONS}
index 56cc28b..de0d4db 100644 (file)
@@ -31,6 +31,14 @@ export REMOVE_LOCAL_DIR_BEFORE_CLONING=${REMOVE_LOCAL_DIR_BEFORE_CLONING:-"true"
 # Gitea's default values file
 export GITEA_CHART_VALUES_FILE=values-standalone-ingress-ssh2222.yaml
 
+# Gitea's admin user
+export GITEA_ADMINISTRATOR_USERNAME=${GITEA_ADMINISTRATOR_USERNAME:-osm-admin}
+export GITEA_ADMINISTRATOR_TOKEN_NAME=${GITEA_ADMINISTRATOR_TOKEN_NAME:-admin-token}
+
+# Gitea's regular user
+export GITEA_STD_USERNAME=${GITEA_STD_USERNAME:-osm-developer}
+export GITEA_STD_TOKEN_NAME=${GITEA_STD_TOKEN_NAME:-developer-token}
+
 # Base name for age keys for management cluster
 export AGE_KEY_NAME_MGMT=${AGE_KEY_NAME_MGMT:-age.mgmt}
 
index c444fe9..4f00732 100755 (executable)
@@ -16,7 +16,7 @@
 # limitations under the License.
 #######################################################################################
 
-set -e -o pipefail
+set -ex -o pipefail
 
 # Warning!!!: Remember to select the desired kubeconfig profile before launching this script
 
@@ -34,7 +34,6 @@ m "#####################################################################\n" "${C
 ## Uncomment for AKS:
 NGINX_VERSION="4.10.0"
 ANNOTATIONS='--set controller.service.annotations."service\.beta\.kubernetes\.io/azure-load-balancer-health-probe-request-path"=/healthz'
-ANNOTATIONS=${ANNOTATIONS:-""}
 helm upgrade --install ingress-nginx ingress-nginx \
   --repo https://kubernetes.github.io/ingress-nginx --version ${NGINX_VERSION} \
   --namespace ingress-nginx --create-namespace ${ANNOTATIONS}
index f2ada07..5931e90 100755 (executable)
@@ -16,7 +16,7 @@
 # limitations under the License.
 #######################################################################################
 
-set -e -o pipefail
+set -ex -o pipefail
 
 export HERE=$(dirname "$(readlink --canonicalize "$BASH_SOURCE")")
 source "${HERE}/library/functions.sh"
index b6bbffd..7bcd78c 100755 (executable)
@@ -16,7 +16,7 @@
 # limitations under the License.
 #######################################################################################
 
-set -e -o pipefail
+set -ex -o pipefail
 
 export HERE=$(dirname "$(readlink --canonicalize "$BASH_SOURCE")")
 source "${HERE}/library/functions.sh"
index de5b345..753e6b2 100755 (executable)
@@ -16,7 +16,7 @@
 # limitations under the License.
 #######################################################################################
 
-set -e
+set -ex
 
 # Wrapper function for raw calls to Gitea API
 
index 686c1a9..edaa358 100755 (executable)
@@ -16,7 +16,7 @@
 # limitations under the License.
 #######################################################################################
 
-set -e
+set -ex
 
 HERE=$(dirname "$(readlink --canonicalize "$BASH_SOURCE")")
 . "$HERE/../library/functions.sh"
index 6812427..6208d26 100755 (executable)
@@ -16,7 +16,7 @@
 # limitations under the License.
 #######################################################################################
 
-set -e
+set -ex
 
 HERE=$(dirname "$(readlink --canonicalize "$BASH_SOURCE")")
 source "${HERE}/../library/functions.sh"
index bf1296a..dfb460f 100644 (file)
@@ -161,7 +161,7 @@ ingress:
     # kubernetes.io/ingress.class: nginx
     # kubernetes.io/tls-acme: "true"
   hosts:
-    - host: git.miejemplo.com
+    - host: git.myexample.com
       paths:
         - path: /
           pathType: Prefix
@@ -349,8 +349,8 @@ gitea:
   #  RUN_MODE: dev
   #
     server:
-      DOMAIN: git.miejemplo.com
-      ROOT_URL: http://git.miejemplo.com
+      DOMAIN: git.myexample.com
+      ROOT_URL: http://git.myexample.com
     #  SSH_PORT: 22
   #
   #  security:
index 4c4bb31..f550908 100644 (file)
@@ -161,7 +161,7 @@ ingress:
     # kubernetes.io/ingress.class: nginx
     # kubernetes.io/tls-acme: "true"
   hosts:
-    - host: git.miejemplo.com
+    - host: git.myexample.com
       paths:
         - path: /
           pathType: Prefix
@@ -349,8 +349,8 @@ gitea:
   #  RUN_MODE: dev
   #
     server:
-      DOMAIN: git.miejemplo.com
-      ROOT_URL: http://git.miejemplo.com
+      DOMAIN: git.myexample.com
+      ROOT_URL: http://git.myexample.com
     #  SSH_PORT: 22
   #
   #  security:
index 867fc05..c6e07a7 100644 (file)
@@ -349,8 +349,8 @@ gitea:
   #  RUN_MODE: dev
   #
     server:
-      DOMAIN: git.miejemplo.com
-      ROOT_URL: http://git.miejemplo.com
+      DOMAIN: git.myexample.com
+      ROOT_URL: http://git.myexample.com
     #  SSH_PORT: 22
   #
   #  security: