#deploy mongodb
function deploy_mongodb() {
[ -z "${DEBUG_INSTALL}" ] || DEBUG beginning of function
- MONGO_OPTS="-d ${OSM_HELM_WORK_DIR} -D ${OSM_DEVOPS} -s ${OSM_NAMESPACE} -t ${OSM_DOCKER_TAG} -U ${DOCKER_USER} ${DEBUG_INSTALL}"
+ MONGO_OPTS="-d ${OSM_HELM_WORK_DIR} -D ${OSM_DEVOPS} -s ${OSM_NAMESPACE} -U ${DOCKER_USER} ${DEBUG_INSTALL}"
[ -n "${DOCKER_REGISTRY_URL}" ] && MONGO_OPTS="${MONGO_OPTS} -r ${DOCKER_REGISTRY_URL}"
$OSM_DEVOPS/installers/install_mongodb.sh ${MONGO_OPTS} || \
FATAL_TRACK install_osm_mongodb_service "install_mongodb.sh failed"
description: A Helm chart for Open Source MANO (OSM)
type: application
icon: https://www.etsi.org/images/articles/logos/OSM.png
-version: 0.0.1
-appVersion: "16"
+version: 16.0.0
+appVersion: "16.0.0"
dependencies:
- name: mysql
repository: "https://charts.bitnami.com/bitnami"
}
# main
-while getopts ":D:d:s:t:r:U:-: " o; do
+while getopts ":D:d:s:r:U:-: " o; do
case "${o}" in
D)
OSM_DEVOPS="${OPTARG}"
s)
OSM_NAMESPACE="${OPTARG}"
;;
- t)
- OSM_DOCKER_TAG="${OPTARG}"
- ;;
r)
DOCKER_REGISTRY_URL="${OPTARG}"
;;
DEBUG_INSTALL=${DEBUG_INSTALL:-}
OSM_DEVOPS=${OSM_DEVOPS:-"/usr/share/osm-devops"}
-OSM_DOCKER_TAG=${OSM_DOCKER_TAG:-"16"}
OSM_HELM_WORK_DIR=${OSM_HELM_WORK_DIR:-"/etc/osm/helm"}
OSM_NAMESPACE=${OSM_NAMESPACE:-"osm"}
DOCKER_REGISTRY_URL=${DOCKER_REGISTRY_URL:-}
DOCKER_USER=${DOCKER_USER:-"opensourcemano"}
echo "DEBUG_INSTALL=$DEBUG_INSTALL"
echo "OSM_DEVOPS=$OSM_DEVOPS"
-echo "OSM_DOCKER_TAG=$OSM_DOCKER_TAG"
echo "OSM_HELM_WORK_DIR=$OSM_HELM_WORK_DIR"
echo "OSM_NAMESPACE=$OSM_NAMESPACE"
echo "DOCKER_REGISTRY_URL=$DOCKER_REGISTRY_URL"
value: "sw-catalogs-osm"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:16
# imagePullPolicy: Always
env:
- name: CRED_SECRET_CONTENT
value: "sw-catalogs-osm"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:16
# imagePullPolicy: Always
env:
- name: CRED_SECRET_CONTENT
value: "fleet-osm"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:16
# imagePullPolicy: Always
env:
- name: DEBUG
value: "false"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:16
# imagePullPolicy: Always
env:
- name: PRIVATE_KEY_NEW_CLUSTER
value: "false"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:16
# imagePullPolicy: Always
env:
- name: PRIVATE_KEY_NEW_CLUSTER
persistentVolumeClaim:
claimName: '{{inputs.parameters.sw_catalogs_volume_name}}'
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:16
# imagePullPolicy: Always
# securityContext:
# runAsUser: 10000
value: "false"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:16
# imagePullPolicy: Always
env:
- name: PRIVATE_KEY_NEW_CLUSTER
value: "false"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:16
# imagePullPolicy: Always
env:
- name: DEBUG
value: "{{inputs.parameters.fleet_repo_dir}}/{{inputs.parameters.project_name}}/managed-resources/_management"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:16
# imagePullPolicy: Always
command: ["/app/scripts/entrypoint.sh"]
args:
- name: debug
value: "false"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:16
# imagePullPolicy: Always
env:
- name: SECRET_VALUES
- name: debug
value: "false"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:16
# imagePullPolicy: Always
env:
- name: SECRET_VALUES
value: "false"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:16
# imagePullPolicy: Always
env:
- name: SECRET_VALUES
value: "false"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:16
# imagePullPolicy: Always
env:
- name: SECRET_VALUES
- name: debug
value: "false"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:16
# imagePullPolicy: Always
env:
- name: DEBUG
- name: debug
value: "false"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:16
# imagePullPolicy: Always
env:
- name: DEBUG
- name: output_file
value: "/results/resourcelist.{{inputs.parameters.rand_str}}.yaml"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:16
# imagePullPolicy: Always
env:
- name: INFILE
- name: output_file
value: "/results/resourcelist.{{inputs.parameters.rand_str}}.yaml"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:16
# imagePullPolicy: Always
env:
- name: INFILE
- name: output_file
value: "/results/resourcelist.{{inputs.parameters.rand_str}}.yaml"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:16
# imagePullPolicy: Always
env:
- name: INFILE
- name: output_file
value: "/results/resourcelist.{{inputs.parameters.rand_str}}.yaml"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:16
# imagePullPolicy: Always
env:
- name: INFILE
- name: output_file
value: "/results/resourcelist.{{inputs.parameters.rand_str}}.yaml"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:16
# imagePullPolicy: Always
env:
- name: INFILE
- name: output_file
value: "/results/manifest.{{inputs.parameters.rand_str}}.yaml"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:16
# imagePullPolicy: Always
env:
- name: INSTREAM
- name: output_file
value: "/results/manifest.{{inputs.parameters.rand_str}}.yaml"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:16
# imagePullPolicy: Always
env:
- name: INSTREAM
value: "/oka"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:16
# imagePullPolicy: Always
env:
- name: DEBUG
value: "/oka"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:16
# imagePullPolicy: Always
env:
- name: DEBUG
value: "sw-catalogs-osm"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:16
# imagePullPolicy: Always
env:
- name: DEBUG
persistentVolumeClaim:
claimName: '{{inputs.parameters.fleet_volume_name}}'
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:16
# imagePullPolicy: Always
volumeMounts:
- name: fleet-repo-volume
persistentVolumeClaim:
claimName: '{{inputs.parameters.fleet_volume_name}}'
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:16
# imagePullPolicy: Always
volumeMounts:
- name: fleet-repo-volume
persistentVolumeClaim:
claimName: '{{inputs.parameters.fleet_volume_name}}'
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:16
# imagePullPolicy: Always
volumeMounts:
- name: fleet-repo-volume
persistentVolumeClaim:
claimName: '{{inputs.parameters.fleet_volume_name}}'
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:16
# imagePullPolicy: Always
volumeMounts:
- name: fleet-repo-volume
// Parameters to define the specific OSM version to test
// --> Defaults to latest stable version of Release FOURTEEN
string(defaultValue: 'https://osm-download.etsi.org/ftp/osm-16.0-sixteen/install_osm.sh', description: 'URL to OSM installer', name: 'INSTALLER_URL')
- string(defaultValue: 'testing-daily', description: 'Release for OSM binaries (REPO_BASE)', name: 'REPO_BASE')
- string(defaultValue: 'testing-daily', description: 'OSM docker tag (DOCKER_TAG)', name: 'DOCKER_TAG')
+ string(defaultValue: 'relesesixteen-daily', description: 'Release for OSM binaries (REPO_BASE)', name: 'REPO_BASE')
+ string(defaultValue: 'relesesixteen-daily', description: 'OSM docker tag (DOCKER_TAG)', name: 'DOCKER_TAG')
string(defaultValue: 'testing', description: 'Repository name for OSM packages (REPO_NAME)', name: 'REPO_NAME')
// Parameters for docker run
string(defaultValue: 'opensourcemano/tests', description: 'Name of docker image for client-side of Robot tests', name: 'TEST_IMAGE')
- string(defaultValue: 'testing-daily', description: 'Tag of docker image for client-side', name: 'TEST_TAG')
+ string(defaultValue: 'relesesixteen-daily', description: 'Tag of docker image for client-side', name: 'TEST_TAG')
// Parameters to define SSH keys (Jenkins secret) used when creating VMs
string(defaultValue: '', description: 'Jenkins credential containing SSH private key used in VMs', name: 'SSH_PRIVATE_KEY')
if [ "$#" -ne 2]; then
echo "Usage: $0 <NEW_VERSION> <USER>"
- echo "Exapmle: $0 v16.0.0 garciadeblas"
- echo "Exapmle: $0 v15.0.7 vegall"
+ echo "Exapmle: $0 16.0.0 garciadeblas"
+ echo "Exapmle: $0 15.0.7 vegall"
exit 1
fi
git checkout $BRANCH_NAME
-sed -i -E "0,/^version: .*/s//version: $NEW_VERSION/" installers/osm/Chart.yaml
+sed -i -E "0,/^version: .*/s//version: \"$NEW_VERSION\"/" installers/osm/Chart.yaml
sed -i -E "0,/^appVersion: .*/s//appVersion: \"$NEW_VERSION\"/" installers/helm/osm/Chart.yaml
git add installers/helm/osm/Chart.yaml