@leverege/build-tools 2.54.1 → 2.55.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.
- package/package.json +4 -4
- package/registry-compass.yaml +20 -0
- package/src/chart-compass.mjs +96 -0
- package/src/helm-charts/elasticsearch8/helmup.plugin +2 -21
- package/src/helm-charts/prom-operator/.nohelm +0 -0
- package/src/helm-charts/prom-operator/.nohelmdn +0 -0
- package/src/helm-charts/prom-operator/apply-rules +13 -0
- package/src/helm-charts/prom-operator/elasticsearch-exporter.yaml +20 -0
- package/src/helm-charts/prom-operator/gitignore +2 -0
- package/src/helm-charts/prom-operator/helmdn.plugin +17 -0
- package/src/helm-charts/prom-operator/helmup.plugin +27 -0
- package/src/helm-charts/prom-operator/prometheus-stack.yaml.ovh +139 -0
- package/src/helm-charts/prom-operator/rules/elasticsearch-rules.yaml +111 -0
- package/src/helm-charts/prom-operator/rules/gcp-rules.yaml +47 -0
- package/src/helm-charts/prom-operator/rules/kubernetes-rules.yaml +112 -0
- package/src/helm-charts/prom-operator/rules/kubernetes-rules.yaml.off +112 -0
- package/src/helm-charts/prom-operator/rules/leverege-rules.yaml +20 -0
- package/src/helm-charts/prom-operator/rules/postgres-rules.yaml +190 -0
- package/src/helm-charts/prom-operator/rules/prometheus-rules.yaml +79 -0
- package/src/helm-charts/prom-operator/rules/prometheus-rules.yaml.off +79 -0
- package/src/helm-charts/prom-operator/rules/redis-rules.yaml +90 -0
- package/src/helm-charts/prom-operator/rules/traefik-rules.yaml +28 -0
- package/src/helm-charts/prom-operator/rules/velero-rules.yaml +28 -0
- package/src/helm-charts/prom-operator/stackdriver-exporter.yaml.ovh +52 -0
- package/src/helm-charts/redis/redis-local.yaml +3 -0
- package/src/helmup.sh +11 -4
- package/src/overwhelm.mjs +8 -1
package/src/helmup.sh
CHANGED
|
@@ -296,7 +296,7 @@ function installStackdriverExporterEnvironment() {
|
|
|
296
296
|
# Add necessary helm repositories - note that stable is deprecated
|
|
297
297
|
addHelmRepo prometheus-community https://prometheus-community.github.io/helm-charts
|
|
298
298
|
|
|
299
|
-
local SDEXP_NS
|
|
299
|
+
local SDEXP_NS=${1:-monitoring}
|
|
300
300
|
local SDEXP_SA="stackdriver-exporter"
|
|
301
301
|
local SDEXP_EM="$SDEXP_SA@$GCP_PROJECT_ID.iam.gserviceaccount.com"
|
|
302
302
|
|
|
@@ -306,7 +306,8 @@ function installStackdriverExporterEnvironment() {
|
|
|
306
306
|
printf "\n*** Removing the previous $SDEXP_SA installation...\n"
|
|
307
307
|
helm uninstall -n $SDEXP_NS $SDEXP_SA &> $DEVNULL
|
|
308
308
|
kubectl delete serviceaccounts -n $SDEXP_NS $SDEXP_SA &> $DEVNULL
|
|
309
|
-
|
|
309
|
+
printf "!!! Skipping deletion of the gcloud SA $SDEXP_EM\n"
|
|
310
|
+
# gcloud --quiet iam service-accounts delete $SDEXP_EM &> $DEVNULL
|
|
310
311
|
|
|
311
312
|
# NOTE: The k8s SA != GCP SA - the former is created by the helm chart
|
|
312
313
|
# that installs the stackdriver-exporter, the latter is handled here in
|
|
@@ -321,7 +322,7 @@ function installStackdriverExporterEnvironment() {
|
|
|
321
322
|
|
|
322
323
|
printf "\n*** Binding IAM role of $SDEXP_NS viewer to $SDEXP_SA in $GCP_PROJECT_ID\n"
|
|
323
324
|
gcloud projects add-iam-policy-binding "$GCP_PROJECT_ID" \
|
|
324
|
-
--role "roles
|
|
325
|
+
--role "roles/monitoring.viewer" \
|
|
325
326
|
--member "serviceAccount:$SDEXP_EM" &> $DEVNULL
|
|
326
327
|
sleep 2 # give the IAM binding a chance to complete before moving on
|
|
327
328
|
|
|
@@ -1002,7 +1003,13 @@ CATBACKUP
|
|
|
1002
1003
|
bootstrapLocalSetup $SERVICE
|
|
1003
1004
|
;;
|
|
1004
1005
|
|
|
1005
|
-
"prometheus"
|
|
1006
|
+
"prometheus")
|
|
1007
|
+
installStackdriverExporterEnvironment
|
|
1008
|
+
bootstrapLocalSetup $SERVICE
|
|
1009
|
+
;;
|
|
1010
|
+
|
|
1011
|
+
"prom-operator")
|
|
1012
|
+
installStackdriverExporterEnvironment prometheus
|
|
1006
1013
|
bootstrapLocalSetup $SERVICE
|
|
1007
1014
|
;;
|
|
1008
1015
|
|
package/src/overwhelm.mjs
CHANGED
|
@@ -206,6 +206,13 @@ const doReplacements = ( yamls, replacements ) => {
|
|
|
206
206
|
process.exit( 1 )
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
+
// Eat any doubly double quoted values such that
|
|
210
|
+
// ""<ovh replace>"" -> "<ovh replace>"
|
|
211
|
+
// but
|
|
212
|
+
// someDefault: ""
|
|
213
|
+
// remains unchanged
|
|
214
|
+
replYaml = replYaml.replace( /""([^"]+)""/g, '"$1"' )
|
|
215
|
+
|
|
209
216
|
return replYaml
|
|
210
217
|
}
|
|
211
218
|
|
|
@@ -307,7 +314,7 @@ ahoy.forEach( ( dir ) => {
|
|
|
307
314
|
}
|
|
308
315
|
} )
|
|
309
316
|
|
|
310
|
-
// we can also apply replaceables to
|
|
317
|
+
// we can also apply replaceables to all .ovh files in the project
|
|
311
318
|
glob.sync( '**/*.ovh' ).forEach( ( cfgmap ) => {
|
|
312
319
|
const target = cfgmap.replace( /.ovh$/, '' )
|
|
313
320
|
let valuesOut = fs.readFileSync( cfgmap, { encoding : 'utf-8' } )
|