@leverege/build-tools 2.101.2 → 2.103.0

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 (43) hide show
  1. package/.vscode/launch.json +10 -0
  2. package/README.md +22 -9
  3. package/package.json +10 -13
  4. package/src/Utils.mjs +2 -0
  5. package/src/chart-to-registry.mjs +12 -1
  6. package/src/circle-orb-it/{circle-orb.yml → circle-npm.yml} +6 -3
  7. package/src/circle-orb-it/circle-orb-it.mjs +16 -11
  8. package/src/circle-orb-it/circle-yarn.yml +25 -0
  9. package/src/dashboard/DashboardManager.mjs +192 -17
  10. package/src/dashboard/dashboard.mjs +29 -4
  11. package/src/dashboard/json/{standard/noc-rows-12.json → devops/devops-noc.json} +801 -61
  12. package/src/dashboard/json/{standard/pvc-all-usage.json → devops/pvc-usage.json} +2 -2
  13. package/src/dashboard/json/leverege/leverege-noc.json +2364 -0
  14. package/src/dashboard/json/{standard/redis.json → leverege/leverege-rule-engine.json} +695 -646
  15. package/src/dashboard/json/leverege/leverege-services.json +4757 -0
  16. package/src/dashboard/json/recovr/recovr-locators.json +1227 -0
  17. package/src/dashboard/json/recovr/recovr-noc.json +1949 -0
  18. package/src/dashboard/json/recovr/recovr-position-srvr.json +339 -0
  19. package/src/dashboard/json/recovr/recovr-server.json +1127 -0
  20. package/src/dashboard/json/siren/siren-services.json +2066 -0
  21. package/src/dashboard/json/{standard/cloudnative-pg-20417-rev4.json → system/cloudnative-pg.json} +241 -243
  22. package/src/dashboard/json/{standard → system}/elasticsearch8.json +123 -72
  23. package/src/dashboard/json/system/stackdriver.json +1189 -0
  24. package/src/dashboard/json/{standard/traefik-op.json → system/traefik.json} +44 -56
  25. package/src/dashboard/json/{standard → system}/valkey.json +91 -86
  26. package/src/dashboard/json/{standard → tpi}/gpu-autoscaling-dashboard-ui-import.json +1 -1
  27. package/src/dashboard/json/tpi/leverege-noc.json +3624 -0
  28. package/src/helm-charts/prom-operator/helmup.plugin +1 -1
  29. package/src/helm-charts/prom-operator/prometheus-stack.yaml.ovh +15 -0
  30. package/src/helm-charts/prom-operator/rules/gke-maintenance-rules.yaml +19 -0
  31. package/src/helm-charts/prom-operator/stackdriver-exporter.yaml.ovh +2 -1
  32. package/src/helm-charts/valkey/valkey-local.yaml +1 -0
  33. package/src/helmup.sh +24 -1
  34. package/src/init-my-chart/Chartwright.mjs +1 -1
  35. package/src/init-my-chart/leaf-chart-templates/templates/extraobjects.yaml +1 -0
  36. package/src/overwhelm.mjs +5 -5
  37. package/src/push-my-chart.mjs +13 -4
  38. package/src/repo-panopticon.mjs +415 -0
  39. package/src/service-man/config/secrets/npmrc.json +1 -0
  40. package/src/service-man/config/secrets/tsdb-dense-password.json +13 -0
  41. package/src/dashboard/json/standard/stackdriver.json +0 -624
  42. package/src/pkgck.sh +0 -158
  43. /package/src/dashboard/json/{standard → devops}/k8s-api-latency.json +0 -0
package/src/pkgck.sh DELETED
@@ -1,158 +0,0 @@
1
- #!/bin/bash
2
-
3
- C_off='\e[0m'
4
- C_yellow='\e[93m'
5
- C_red='\e[101m'
6
- C_green='\e[92m'
7
-
8
- good() {
9
- printf "\e[32m✔${C_off}"
10
- }
11
-
12
- meh() {
13
- printf "\e[36m✩${C_off}"
14
- }
15
-
16
- bad() {
17
- printf "\e[31m✘${C_off}"
18
- }
19
-
20
- semver() {
21
- local version=$1
22
- local isSemver=`echo $version | egrep -e "^v\d+\.\d+\.\d+$"`
23
- if [ -z "$version" ];
24
- then
25
- printf "UNTAGGD"
26
- elif [ $isSemver ];
27
- then
28
- printf "$version"
29
- else
30
- printf "!SEMVER"
31
- fi
32
- }
33
-
34
- check_babel () {
35
- local C_stat=$(bad)
36
- [ -f .babelrc ] && grep --silent @leverege/babel-preset-leverege-node .babelrc
37
- [ $? -eq 0 ] && C_stat=$(good)
38
- [ ! -f .babelrc ] && C_stat=$(meh)
39
- printf $C_stat
40
- }
41
-
42
- check_har () {
43
- local C_stat=$(bad)
44
- local prep="`node -p \"require('./package.json').scripts.prepare\"`"
45
- local isHar=`echo $prep | egrep -e "hook-and-release"`
46
- [ ! -z "$isHar" ] && C_stat=$(good)
47
- printf $C_stat
48
- }
49
-
50
- check_circle () {
51
- local C_stat=$(bad)
52
- [ -f ".circleci/config.yml" ] && C_stat=$(good)
53
- printf $C_stat
54
- }
55
-
56
- check_eslint () {
57
- local C_stat=$(bad)
58
- [ -f .eslintrc ] && grep --silent @leverege/eslint-config-leverege .eslintrc
59
- [ $? -eq 0 ] && C_stat=$(good)
60
- printf $C_stat
61
- }
62
-
63
- check_license () {
64
- local C_stat=$(meh)
65
- local lic="`node -p \"require('./package.json').scripts.licenseCheck == undefined\"`"
66
- [ $lic == true ] && C_stat=$(good)
67
- printf $C_stat
68
- }
69
-
70
- # Invoke as: version_ck $GITTAG $NPMVER
71
- #
72
- check_git_version() {
73
- local tag=$1
74
- local pkg=$2
75
- local clr=$C_green
76
-
77
- if [ "$tag" == 'UNTAGGD' ];
78
- then
79
- clr=$C_red
80
- elif [ "$tag" != "$pkg" ];
81
- then
82
- clr=$C_yellow
83
- fi
84
-
85
- printf "$clr$tag$C_off"
86
- }
87
-
88
- #check_nodemon() {
89
- # nodemon="`getjson --file ./package.json --key nodemon`"
90
- #}
91
-
92
- check_scope() {
93
- private="`node -p \"require('./package.json').private == true\"`"
94
- scoped="`getjson --file ./package.json --key name --regex '^@\w{3}'`"
95
- result="${C_red}PUBL${C_off}"
96
- if [[ "$scoped" == "" ]] && [[ "$private" == "true" ]];
97
- then
98
- result="${C_yellow}PRVT"
99
- elif [[ "$scoped" != "" ]];
100
- then
101
- result="${C_green}${scoped}"
102
- elif [[ "$private" == "true" ]];
103
- then
104
- result="${C_green}prv"
105
- fi
106
- printf "${result}${C_off}"
107
- }
108
-
109
- check_ESM() {
110
- local C_stat=$(bad)
111
- jstype="`getjson --file package.json --key type`"
112
- [[ "$jstype" == "module" ]] && C_stat=$(good)
113
- printf $C_stat
114
- }
115
-
116
- repos=0
117
- check_repo() {
118
- local dir=$1
119
- [ ! -d $dir/.git ] || [ ! -f $dir/package.json ] && return
120
- cd $dir &> /dev/null
121
- local gperrs=0
122
- git pull -q &> /dev/null; [ $? -ne 0 ] && let "gperrs++"
123
- git pull -q --tags &> /dev/null; [ $? -ne 0 ] && let "gperrs++"
124
-
125
- # It is necessary to use the output from printf to set localmods in order
126
- # to get the ANSI escape codes expanded.
127
- local localmods=$(good)
128
- [ $gperrs -ne 0 ] && localmods=$(bad)
129
- pkgver=$(semver "v`node -p \"require('./package.json').version\"`")
130
- gitver=$(semver `git describe --abbrev=0 2>/dev/null`)
131
- [ $? -ne 0 ] && gitver='UNTAGGD'
132
- local needspush=
133
- if [ "$pkgver" == "$gitver" ];
134
- then
135
- git ls-remote --tags origin | grep $gitver &> /dev/null
136
- [ $? -ne 0 ] && needspush='!tags'
137
- fi
138
- local babel7=$(check_babel)
139
- local hookar=$(check_har)
140
- local circle=$(check_circle)
141
- local eslint=$(check_eslint)
142
- local esmlib=$(check_ESM)
143
- local license=$(check_license)
144
- local scoped=$(check_scope)
145
- [ $(( $repos % 15)) -eq 0 ] && printf "\n%35s pkg git cln scop cir lic ESM har\n"
146
- printf "%32s: %-8s %-16s %s %8s %s %s %s %s %s\n" ${dir:0:32} $pkgver $(check_git_version $gitver $pkgver) $localmods $scoped $circle $license $esmlib $hookar "$needspush"
147
- let "repos++"
148
- cd - &> /dev/null
149
- }
150
-
151
- clear
152
-
153
- pkgs="$@"
154
- for dir in $@; do
155
- check_repo $dir
156
- done
157
-
158
- printf "\ntotal repoitories checked: $repos\n\n"