@leverege/build-tools 2.3.1 → 2.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/helmup +8 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leverege/build-tools",
3
- "version": "2.3.1",
3
+ "version": "2.3.2",
4
4
  "description": "A collection of build / support tools for Leverege developers",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/helmup CHANGED
@@ -21,12 +21,13 @@ PLATFORM=(
21
21
  SYSTEM=(
22
22
  coredns
23
23
  elastic
24
- polaris
25
24
  redis
25
+ mysql
26
+ postgres
26
27
  velero
27
28
  reloader
28
29
  tiller
29
- # monitoring
30
+ monitoring
30
31
  # custom-metrics
31
32
  )
32
33
 
@@ -412,7 +413,7 @@ function doInstall() {
412
413
  ;;
413
414
 
414
415
  "mysql")
415
- helm dep up ./mysql && helm upgrade --install mysql ./mysql
416
+ helm upgrade --install mysql stable/mysql -f mysql/mysql-values.yaml --version 1.6.3
416
417
  printf "\n***Proxy 4306 with this => kubectl port-forward svc/mysql 4306:3306\n\n"
417
418
  printf "\n***Grab MYSQL Root Password => MYSQL_ROOT_PASSWORD=\$(kubectl get secret --namespace default mysql -o jsonpath="{.data.mysql-root-password}" | base64 --decode; echo)"
418
419
  printf "\n***Set MYSQL_HOST to 127.0.0.1 and MYSQL_PORT to 4306 and run => mysql -h \${MYSQL_HOST} -P\${MYSQL_PORT} -u root -p\${MYSQL_ROOT_PASSWORD} \n\n"
@@ -425,6 +426,10 @@ function doInstall() {
425
426
  printf "\n***Proxy 8081 with this=> kubectl port-forward --namespace polaris svc/polaris-dashboard 8081:80\n\n"
426
427
  ;;
427
428
 
429
+ "postgres"|"postgresql")
430
+ helm repo add bitnami https://charts.bitnami.com/bitnami
431
+ helm upgrade --install postgres bitnami/postgresql -f postgres/postgres-values.yaml --version 8.9.6
432
+
428
433
  "redis")
429
434
  # https://github.com/helm/charts/tree/master/stable/redis
430
435
  [ -z "$REDIS_HELM_CHART" ] && REDIS_HELM_CHART="v9.1.5"