@leverege/build-tools 2.55.2 → 2.55.4-pedro.1
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/helm-charts/cnpg-db-tsdb-basic/cluster.yaml.ovh +1 -1
- package/src/helm-charts/cnpg-db-tsdb-dense/cluster.yaml.ovh +1 -1
- package/src/helm-charts/cnpg-operator/helmup.plugin +10 -1
- package/src/helm-charts/prom-operator/apply-rules +2 -0
- package/src/helm-charts/prom-operator/helmup.plugin +12 -12
- package/src/helm-charts/prom-operator/rules/gitignore +1 -0
- package/src/helm-charts/prom-operator/{rules/test-alert.yaml → test-alert.yaml} +4 -0
- package/src/helm-charts/traefik/helmup.plugin +1 -1
- package/src/refresh-py-idx.sh +5 -1
- package/registry-compass.yaml +0 -20
- package/src/chart-compass.mjs +0 -96
- /package/src/helm-charts/prom-operator/rules/{elasticsearch-rules.yaml → elasticsearch-rules.yaml.ovh} +0 -0
- /package/src/helm-charts/prom-operator/rules/{gcp-rules.yaml → gcp-rules.yaml.ovh} +0 -0
- /package/src/helm-charts/prom-operator/rules/{kubernetes-rules.yaml → kubernetes-rules.yaml.ovh} +0 -0
- /package/src/helm-charts/prom-operator/rules/{leverege-rules.yaml → leverege-rules.yaml.ovh} +0 -0
- /package/src/helm-charts/prom-operator/rules/{postgres-rules.yaml → postgres-rules.yaml.ovh} +0 -0
- /package/src/helm-charts/prom-operator/rules/{prometheus-rules.yaml → prometheus-rules.yaml.ovh} +0 -0
- /package/src/helm-charts/prom-operator/rules/{redis-rules.yaml → redis-rules.yaml.ovh} +0 -0
- /package/src/helm-charts/prom-operator/rules/{traefik-rules.yaml → traefik-rules.yaml.ovh} +0 -0
- /package/src/helm-charts/prom-operator/rules/{velero-rules.yaml → velero-rules.yaml.ovh} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leverege/build-tools",
|
|
3
|
-
"version": "2.55.
|
|
3
|
+
"version": "2.55.4-pedro.1",
|
|
4
4
|
"description": "A collection of build / support tools for Leverege developers",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"readline-sync": "^1.4.10",
|
|
77
77
|
"semver": "^7.6.3",
|
|
78
78
|
"simple-git": "^3.27.0",
|
|
79
|
-
"zx": "^8.
|
|
79
|
+
"zx": "^8.2.0"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@leverege/eslint-config-leverege": "^5.0.1",
|
|
@@ -13,7 +13,7 @@ spec:
|
|
|
13
13
|
enablePodMonitor: false # set true once monitoring is setup
|
|
14
14
|
|
|
15
15
|
description: "Leverege Plain Timescale DB"
|
|
16
|
-
imageName: us-docker.pkg.dev/leverege-registry/system/images/leverege-pgsql:16.
|
|
16
|
+
imageName: us-docker.pkg.dev/leverege-registry/system/images/leverege-pgsql:16.4-cnpg-tsdb2-rel.1
|
|
17
17
|
bootstrap:
|
|
18
18
|
initdb:
|
|
19
19
|
# database: imagine # let it default to cnpg app db
|
|
@@ -13,7 +13,7 @@ spec:
|
|
|
13
13
|
enablePodMonitor: false # set true once monitoring is setup
|
|
14
14
|
|
|
15
15
|
description: "Leverege Dense Timescale DB"
|
|
16
|
-
imageName: us-docker.pkg.dev/leverege-registry/system/images/leverege-pgsql:16.
|
|
16
|
+
imageName: us-docker.pkg.dev/leverege-registry/system/images/leverege-pgsql:16.4-cnpg-tsdb2-rel.1
|
|
17
17
|
bootstrap:
|
|
18
18
|
initdb:
|
|
19
19
|
postInitTemplateSQL:
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
2
|
#
|
|
3
3
|
# See => https://cloudnative-pg.io/documentation/current/installation_upgrade/
|
|
4
|
+
#
|
|
5
|
+
# Legacy terraformed clusters (like sandbox) may need a special firewall rule
|
|
6
|
+
# added to the network layer on k8s. It should look like this:
|
|
7
|
+
#
|
|
8
|
+
# Name : cnpg-operator
|
|
9
|
+
# Ports : 8000,9443 <= kubectl cnpg status and webhooks
|
|
10
|
+
# Filters: 172.16.0.0/28 <= k8s control plane
|
|
11
|
+
#
|
|
12
|
+
OPVER="1.24.1"
|
|
4
13
|
|
|
5
|
-
|
|
14
|
+
createNamespaceIfNeeded cnpg-system
|
|
6
15
|
|
|
7
16
|
kubectl apply --server-side -f \
|
|
8
17
|
https://raw.githubusercontent.com/cloudnative-pg/cloudnative-pg/release-${OPVER%.*}/releases/cnpg-${OPVER}.yaml $K8S_WHAT
|
|
@@ -5,23 +5,23 @@ addHelmRepo prometheus-community https://prometheus-community.github.io/helm-cha
|
|
|
5
5
|
|
|
6
6
|
showInstalling "The Prometheus Operator (kube-prometheus-stack)"
|
|
7
7
|
[ -z "$PROMETHEUS_STACK_CHART_VERSION" ] && PROMETHEUS_STACK_CHART_VERSION="65"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
|
|
9
|
+
NS="--namespace prometheus"
|
|
10
|
+
|
|
11
|
+
helm upgrade $NS --install prometheus-stack prometheus-community/kube-prometheus-stack \
|
|
12
|
+
--values prom-operator/prometheus-stack.yaml \
|
|
13
|
+
--version $PROMETHEUS_STACK_CHART_VERSION $HELM_WHAT
|
|
12
14
|
|
|
13
15
|
showInstalling "The Elasticsearch Exporter (prom-operator)"
|
|
14
16
|
[ -z "$ELASTICSEARCH_EXPORTER_CHART_VERSION" ] && ELASTICSEARCH_EXPORTER_CHART_VERSION="6"
|
|
15
|
-
helm upgrade --install elasticsearch8-exporter prometheus-community/prometheus-elasticsearch-exporter \
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
--version $ELASTICSEARCH_EXPORTER_CHART_VERSION $HELM_WHAT
|
|
17
|
+
helm upgrade $NS --install elasticsearch8-exporter prometheus-community/prometheus-elasticsearch-exporter \
|
|
18
|
+
--values prom-operator/elasticsearch-exporter.yaml \
|
|
19
|
+
--version $ELASTICSEARCH_EXPORTER_CHART_VERSION $HELM_WHAT
|
|
19
20
|
|
|
20
21
|
showInstalling "The Stackdriver Exporter (prom-operator)"
|
|
21
22
|
[ -z "$STACKDRIVER_EXPORTER_CHART_VERSION" ] && STACKDRIVER_EXPORTER_CHART_VERSION="4"
|
|
22
|
-
helm upgrade --install stackdriver-exporter prometheus-community/prometheus-stackdriver-exporter \
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
--version $STACKDRIVER_EXPORTER_CHART_VERSION $HELM_WHAT
|
|
23
|
+
helm upgrade $NS --install stackdriver-exporter prometheus-community/prometheus-stackdriver-exporter \
|
|
24
|
+
--values prom-operator/stackdriver-exporter.yaml \
|
|
25
|
+
--version $STACKDRIVER_EXPORTER_CHART_VERSION $HELM_WHAT
|
|
26
26
|
|
|
27
27
|
removeHelmRepo prometheus-community
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*.yaml
|
|
@@ -17,7 +17,7 @@ TRAEFIK_NAMESPACE="traefik"
|
|
|
17
17
|
|
|
18
18
|
addHelmRepo traefik https://helm.traefik.io/traefik
|
|
19
19
|
|
|
20
|
-
[ -z "$TRAEFIK_CHART_VERSION" ] && TRAEFIK_CHART_VERSION="
|
|
20
|
+
[ -z "$TRAEFIK_CHART_VERSION" ] && TRAEFIK_CHART_VERSION="33"
|
|
21
21
|
helm upgrade --install traefik traefik/traefik \
|
|
22
22
|
--namespace $TRAEFIK_NAMESPACE --create-namespace \
|
|
23
23
|
--values traefik/traefik-local.yaml \
|
package/src/refresh-py-idx.sh
CHANGED
|
@@ -58,7 +58,11 @@ function leveregeBuildToolsRefreshPyIdx() {
|
|
|
58
58
|
|
|
59
59
|
if [ -f "$CONFIG_FILE" ]; then
|
|
60
60
|
if grep -q "export UV_EXTRA_INDEX_URL=" "$CONFIG_FILE"; then
|
|
61
|
-
|
|
61
|
+
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
62
|
+
sed -i '' "s|export UV_EXTRA_INDEX_URL=.*|export UV_EXTRA_INDEX_URL=${UV_EXTRA_INDEX_URL}|" "$CONFIG_FILE"
|
|
63
|
+
else
|
|
64
|
+
sed -i "s|export UV_EXTRA_INDEX_URL=.*|export UV_EXTRA_INDEX_URL=${UV_EXTRA_INDEX_URL}|" "$CONFIG_FILE"
|
|
65
|
+
fi
|
|
62
66
|
else
|
|
63
67
|
echo -e "\nexport UV_EXTRA_INDEX_URL=${UV_EXTRA_INDEX_URL}\n" >> "$CONFIG_FILE"
|
|
64
68
|
fi
|
package/registry-compass.yaml
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
registry:
|
|
2
|
-
- root: us-docker.pkg.dev
|
|
3
|
-
- repositories:
|
|
4
|
-
- name: stack
|
|
5
|
-
charts:
|
|
6
|
-
- api-server
|
|
7
|
-
- authz-server
|
|
8
|
-
- emailer
|
|
9
|
-
- message-processor
|
|
10
|
-
- name: leverege
|
|
11
|
-
charts:
|
|
12
|
-
- pubsub-pulse
|
|
13
|
-
- pusher
|
|
14
|
-
- overdose
|
|
15
|
-
- name: cox-health
|
|
16
|
-
charts:
|
|
17
|
-
- actions-server
|
|
18
|
-
- analytics-server
|
|
19
|
-
- centrak-healthz
|
|
20
|
-
- centrak-ingestor
|
package/src/chart-compass.mjs
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/*
|
|
3
|
-
* chart-to-registry will...
|
|
4
|
-
*/
|
|
5
|
-
import fs from 'node:fs'
|
|
6
|
-
|
|
7
|
-
import chalk from 'chalk'
|
|
8
|
-
import commandLineArgs from 'command-line-args'
|
|
9
|
-
import commandLineUsage from 'command-line-usage'
|
|
10
|
-
import { lt as semverLt } from 'semver'
|
|
11
|
-
import YAML from 'js-yaml'
|
|
12
|
-
|
|
13
|
-
import {
|
|
14
|
-
condir,
|
|
15
|
-
debug,
|
|
16
|
-
errorExit,
|
|
17
|
-
log,
|
|
18
|
-
warning,
|
|
19
|
-
getGitRootDirectory,
|
|
20
|
-
parsePackageJson,
|
|
21
|
-
parseHelmChart,
|
|
22
|
-
shellCmd } from './Utils.mjs'
|
|
23
|
-
|
|
24
|
-
const commandLineOptions = [ // Use commandLineOptions to tie into the Usage statements
|
|
25
|
-
/* eslint-disable max-len */
|
|
26
|
-
{
|
|
27
|
-
name : 'location',
|
|
28
|
-
type : String,
|
|
29
|
-
description : '{green the location of the artifact registry the chart will be pushed to (default us-docker.pkg.dev)}',
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
name : 'project',
|
|
33
|
-
type : String,
|
|
34
|
-
description : '{green the name of the google project containing the npmrc and slack config secrets (default leverege-registry)}',
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
name : 'repository',
|
|
38
|
-
type : String,
|
|
39
|
-
description : '{green the target repository to receive the pushed chart}',
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
name : 'dry-run',
|
|
43
|
-
type : Boolean,
|
|
44
|
-
description : '{yellow perform everything except the actual chart push}',
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
name : 'help',
|
|
48
|
-
type : Boolean,
|
|
49
|
-
description : '{green display this help screen}',
|
|
50
|
-
},
|
|
51
|
-
/* eslint-enable max-len */
|
|
52
|
-
]
|
|
53
|
-
|
|
54
|
-
const sections = [
|
|
55
|
-
{
|
|
56
|
-
header : 'Leverege Helm Chart Compass (for helmup)',
|
|
57
|
-
content : `{green This tool helps helmup navigate the helm charts stored in the
|
|
58
|
-
artifact-registries.}`
|
|
59
|
-
},
|
|
60
|
-
{ header : 'Options',
|
|
61
|
-
optionList : commandLineOptions,
|
|
62
|
-
},
|
|
63
|
-
]
|
|
64
|
-
|
|
65
|
-
const args = commandLineArgs( commandLineOptions, { camelCase : true, partial : true } )
|
|
66
|
-
const usage = commandLineUsage( sections )
|
|
67
|
-
|
|
68
|
-
if ( args.help ) {
|
|
69
|
-
log( usage )
|
|
70
|
-
process.exit( 0 )
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/* eslint-disable no-underscore-dangle */
|
|
74
|
-
if ( args._unknown ) {
|
|
75
|
-
log( usage )
|
|
76
|
-
log( `\nUnrecognized argument [${chalk.bold.red( args._unknown )}]\n` )
|
|
77
|
-
process.exit( 1 )
|
|
78
|
-
}
|
|
79
|
-
/* eslint-enable no-underscore-dangle */
|
|
80
|
-
|
|
81
|
-
const minNodejsVersion = '18.0.0'
|
|
82
|
-
if ( semverLt( process.version, minNodejsVersion ) ) {
|
|
83
|
-
errorExit( `\n***ERROR: must be running at least node ${minNodejsVersion}\n` )
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
// First of all, fail if we are not in a git repository
|
|
87
|
-
let gitRoot
|
|
88
|
-
try {
|
|
89
|
-
gitRoot = await getGitRootDirectory()
|
|
90
|
-
} catch ( error ) {
|
|
91
|
-
errorExit( chalk.red.bold( error ), { errorCode : 5 } )
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
const chartCompass = YAML.load( fs.readFileSync( './registry-compass.yaml', 'utf8' ) )
|
|
95
|
-
|
|
96
|
-
condir( { chartCompass }, '<==Navigation' )
|
|
File without changes
|
|
File without changes
|
/package/src/helm-charts/prom-operator/rules/{kubernetes-rules.yaml → kubernetes-rules.yaml.ovh}
RENAMED
|
File without changes
|
/package/src/helm-charts/prom-operator/rules/{leverege-rules.yaml → leverege-rules.yaml.ovh}
RENAMED
|
File without changes
|
/package/src/helm-charts/prom-operator/rules/{postgres-rules.yaml → postgres-rules.yaml.ovh}
RENAMED
|
File without changes
|
/package/src/helm-charts/prom-operator/rules/{prometheus-rules.yaml → prometheus-rules.yaml.ovh}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|