@leverege/build-tools 2.43.5 → 2.43.6
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.
- package/package.json +2 -2
- package/src/chart-to-registry.mjs +17 -1
- package/src/circleate.sh +2 -0
- package/src/dirty-git.sh +3 -1
- package/src/helm-charts/api-server/values-local.yaml +1 -1
- package/src/helm-charts/authz-server/values-local.yaml +2 -0
- package/src/helm-charts/db-curator-dh/values-local.yaml +11 -0
- package/src/helm-charts/messenger/values-local.yaml +1 -1
- package/src/helm-charts/resource-server/values-local.yaml +1 -1
- package/src/helm-charts/transponder-bq/values-local.yaml +1 -1
- package/src/helm-charts/transponder-rt/values-local.yaml +1 -1
- package/src/helm-charts/transponder-tsdb/values-local.yaml +2 -2
- package/src/helmup.sh +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leverege/build-tools",
|
|
3
|
-
"version": "2.43.
|
|
3
|
+
"version": "2.43.6",
|
|
4
4
|
"description": "A collection of build / support tools for Leverege developers",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -72,6 +72,6 @@
|
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@leverege/eslint-config-leverege": "^4.2.0",
|
|
75
|
-
"npm": "^10.2.
|
|
75
|
+
"npm": "^10.2.1"
|
|
76
76
|
}
|
|
77
77
|
}
|
|
@@ -8,7 +8,7 @@ import commandLineArgs from 'command-line-args'
|
|
|
8
8
|
import commandLineUsage from 'command-line-usage'
|
|
9
9
|
import { lt as semverLt } from 'semver'
|
|
10
10
|
|
|
11
|
-
import { debug, log, shellCmd } from './Utils.mjs'
|
|
11
|
+
import { debug, err, log, shellCmd } from './Utils.mjs'
|
|
12
12
|
|
|
13
13
|
const commandLineOptions = [ // Use commandLineOptions to tie into the Usage statements
|
|
14
14
|
/* eslint-disable max-len */
|
|
@@ -67,3 +67,19 @@ const getGcpSecretCommand = ( secretName ) => {
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
log( chalk.yellow( '\n\n***WARNING: Under Construction' ) )
|
|
70
|
+
|
|
71
|
+
// gcloud auth print-access-token | helm registry login -u oauth2accesstoken \
|
|
72
|
+
// -p ${password} https://us-docker.pkg.dev
|
|
73
|
+
//
|
|
74
|
+
// Get the current access token and use it to login to the registry with helm.
|
|
75
|
+
try {
|
|
76
|
+
const accessToken = await shellCmd( 'gcloud auth print-access-token' )
|
|
77
|
+
const registryLoginCommand = `helm registry login -u oauth2accesstoken -p ${accessToken}`
|
|
78
|
+
|
|
79
|
+
const loginResult = await shellCmd( `${registryLoginCommand} https://us-docker.pkg.dev` ) // TODO: cmd line param
|
|
80
|
+
} catch( error ) {
|
|
81
|
+
err( error, '<==Error fetching the token' )
|
|
82
|
+
process.exit( 1 )
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// helm push hello-chart-0.1.0.tgz oci://us-docker.pkg.dev/PROJECT/pubsub-pulse/chart
|
package/src/circleate.sh
CHANGED
|
@@ -241,6 +241,7 @@ workflows:
|
|
|
241
241
|
requires:
|
|
242
242
|
- install
|
|
243
243
|
- coverage:
|
|
244
|
+
context: npm
|
|
244
245
|
requires:
|
|
245
246
|
- install
|
|
246
247
|
- docs:
|
|
@@ -413,6 +414,7 @@ workflows:
|
|
|
413
414
|
requires:
|
|
414
415
|
- install
|
|
415
416
|
- coverage:
|
|
417
|
+
context: npm
|
|
416
418
|
requires:
|
|
417
419
|
- install
|
|
418
420
|
- docs:
|
package/src/dirty-git.sh
CHANGED
|
@@ -11,6 +11,7 @@ AHEAD="\e[34;42m!\e[0m"
|
|
|
11
11
|
#NOHED="\e[31m✖\e[0m"
|
|
12
12
|
NOHED="\e[31;43m⚑\e[0m"
|
|
13
13
|
LOCKD="\e[35m\e[0m"
|
|
14
|
+
ELAS7="\e[33m7\e[0m"
|
|
14
15
|
|
|
15
16
|
clear
|
|
16
17
|
printf "${CLEAN} clean ${DIRTY} dirty ${STASH} stashed ${AHEAD} unpushed ${NOHED} no remote ${LOCKD} locked\n\n"
|
|
@@ -30,6 +31,7 @@ do
|
|
|
30
31
|
[ $ahead -gt 0 ] && ahead="$AHEAD" || ahead=" "
|
|
31
32
|
fi
|
|
32
33
|
[ -f "Versions.json" ] && locked="$LOCKD" || locked=" "
|
|
34
|
+
[ ! -d "elasticsearch8" ] && elastic="$ELAS7" || elastic=" "
|
|
33
35
|
cd - &>/dev/null
|
|
34
|
-
printf "${status} %-28s ${stash}${ahead}${locked} %s\n" $dir $branch
|
|
36
|
+
printf "${status} %-28s ${stash}${ahead}${locked}${elastic} %s\n" $dir $branch
|
|
35
37
|
done
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
nameOverride: transponder-tsdb
|
|
8
8
|
|
|
9
9
|
image:
|
|
10
|
-
tag: # v5.0.
|
|
10
|
+
tag: # v5.0.3
|
|
11
11
|
|
|
12
12
|
config:
|
|
13
13
|
TRANSPONDER_RUN_MODE: "timescale"
|
|
@@ -15,7 +15,7 @@ config:
|
|
|
15
15
|
|
|
16
16
|
TRANSPORT_CONFIG: '{
|
|
17
17
|
"type": "pubsub",
|
|
18
|
-
"projectId": "OVH:<
|
|
18
|
+
"projectId": "OVH:<PROJECT_ID>",
|
|
19
19
|
"publisher": {
|
|
20
20
|
"batching": {
|
|
21
21
|
"maxMilliseconds": 0,
|
package/src/helmup.sh
CHANGED
|
@@ -690,8 +690,8 @@ CATBACKUP
|
|
|
690
690
|
installDefaultConfigs
|
|
691
691
|
;;
|
|
692
692
|
|
|
693
|
-
db-curator
|
|
694
|
-
# db-curator
|
|
693
|
+
db-curator-dh)
|
|
694
|
+
# db-curator-dh is a variant of db-curator with diff controlled in values-local.yaml
|
|
695
695
|
HELMUP="helm upgrade --install $SERVICE leverege/db-curator --values $SERVICE/values.yaml $CHARTVER $HELM_WHAT"
|
|
696
696
|
doHelmup "$HELMUP"
|
|
697
697
|
;;
|