@codefresh-io/kube-integration 1.24.9-node16 → 1.25.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/.deploy/kube-integration/Chart.yaml +0 -0
- package/.deploy/kube-integration/README.md +0 -0
- package/.deploy/kube-integration/templates/_helpers.tpl +0 -0
- package/.deploy/kube-integration/templates/_kube-integration-deployment.tpl +1 -7
- package/.deploy/kube-integration/templates/deployment.yaml +0 -0
- package/.deploy/kube-integration/templates/hpa.yaml +0 -0
- package/.deploy/kube-integration/templates/kube-integration-istio-destinationrule.yaml +0 -0
- package/.deploy/kube-integration/templates/kube-integration-istio-local-virtuslservice.yaml +0 -0
- package/.deploy/kube-integration/templates/secrets.yaml +0 -0
- package/.deploy/kube-integration/templates/service.yaml +0 -0
- package/.deploy/kube-integration/values.yaml +0 -0
- package/.dockerignore +0 -0
- package/.eslintignore +0 -0
- package/.eslintrc.json +0 -0
- package/.nvmrc +0 -0
- package/CODEOWNERS +0 -0
- package/Dockerfile +1 -1
- package/README.md +0 -0
- package/_proto/hapi/chart/chart_pb.js +0 -0
- package/_proto/hapi/chart/config_pb.js +0 -0
- package/_proto/hapi/chart/metadata_pb.js +0 -0
- package/_proto/hapi/chart/template_pb.js +0 -0
- package/_proto/hapi/release/hook_pb.js +0 -0
- package/_proto/hapi/release/info_pb.js +0 -0
- package/_proto/hapi/release/release_pb.js +0 -0
- package/_proto/hapi/release/status_pb.js +0 -0
- package/_proto/hapi/release/test_run_pb.js +0 -0
- package/_proto/hapi/release/test_suite_pb.js +0 -0
- package/_proto/hapi/rudder/rudder_pb.js +0 -0
- package/_proto/hapi/services/tiller_pb.js +0 -0
- package/_proto/hapi/version/version_pb.js +0 -0
- package/config/environment/kubernetes.js +0 -0
- package/config/index.js +0 -14
- package/example.js +0 -0
- package/index.js +0 -0
- package/infra/eventbus.js +0 -0
- package/infra/express.js +0 -0
- package/infra/index.js +1 -4
- package/infra/kube.manager.event.handler.js +0 -0
- package/infra/logging.js +0 -0
- package/infra/middleware.js +0 -0
- package/infra/process-events.js +0 -0
- package/lib/helm/release/base/pool.js +0 -0
- package/lib/helm/release/base/revision.js +0 -0
- package/lib/helm/release/helm2/pool.js +0 -0
- package/lib/helm/release/helm2/release.controller.js +0 -0
- package/lib/helm/release/helm2/release.js +0 -0
- package/lib/helm/release/helm2/revision.js +0 -0
- package/lib/helm/release/helm3/pool.js +0 -0
- package/lib/helm/release/helm3/release.controller.js +0 -0
- package/lib/helm/release/helm3/release.js +0 -0
- package/lib/helm/release/helm3/revision.js +0 -0
- package/lib/helm/release/helm3/tests/revision.unit.spec.js +0 -0
- package/lib/helm/release/tests/release.controller.unit.spec.js +0 -0
- package/lib/helm/release/tests/release.unit.spec.js +0 -0
- package/lib/helm/release/tests/revision.unit.spec.js +0 -0
- package/lib/index.js +0 -0
- package/lib/internal-components/SquashedPod/SquashedPod.js +0 -0
- package/lib/internal-components/SquashedPod/SquashedPodPool.js +0 -0
- package/lib/internal-components/SquashedPod/index.js +0 -0
- package/lib/internal-components/SquashedPod/tests/SquashedPod.unit.spec.js +0 -0
- package/lib/internal-components/SquashedPod/tests/SquashedPodPool.unit.spec.js +0 -0
- package/lib/internal-components/project/Project.js +0 -0
- package/lib/internal-components/project/controller.js +0 -0
- package/lib/internal-components/project/project.internal.evenets.js +0 -0
- package/lib/internal-components/project/project.labels.js +0 -0
- package/lib/kube-client-wrapper/KubeWrapper.js +0 -0
- package/lib/kube-client-wrapper/tests/KubeWrapper.unit.spec.js +0 -0
- package/lib/kube-endpoints/index.js +0 -0
- package/lib/kube-endpoints/v15.js +0 -0
- package/lib/kube-endpoints/v16.js +0 -0
- package/lib/kube-native/builder.base.js +0 -0
- package/lib/kube-native/configMap/configMap.builder.js +0 -0
- package/lib/kube-native/configMap/configMap.events.js +0 -0
- package/lib/kube-native/configMap/configMap.js +0 -0
- package/lib/kube-native/deployment/deploy.builder.js +0 -0
- package/lib/kube-native/deployment/deploy.controller.js +0 -0
- package/lib/kube-native/deployment/deploy.events.js +0 -0
- package/lib/kube-native/deployment/deploy.js +0 -0
- package/lib/kube-native/deployment/deploy.status.analyzer.js +0 -0
- package/lib/kube-native/deployment/tests/deploy.builder.unit.spec.js +0 -0
- package/lib/kube-native/deployment/tests/deploy.unit.spec.js +0 -0
- package/lib/kube-native/entity.base.js +0 -0
- package/lib/kube-native/namespace/namespace.builder.js +0 -0
- package/lib/kube-native/namespace/namespace.events.js +0 -0
- package/lib/kube-native/namespace/namespace.js +0 -0
- package/lib/kube-native/node/node.js +0 -0
- package/lib/kube-native/pod/pod.controller.js +0 -0
- package/lib/kube-native/pod/pod.js +0 -0
- package/lib/kube-native/pod/pod.status.analyzer.js +0 -0
- package/lib/kube-native/pod/tests/pod.unit.spec.js +0 -0
- package/lib/kube-native/replicaSet/rs.js +0 -0
- package/lib/kube-native/replicaSet/rs.status.analyzer.js +0 -0
- package/lib/kube-native/resource.base.controller.js +0 -0
- package/lib/kube-native/secret/image.pull.secret.builder.js +0 -0
- package/lib/kube-native/secret/secret.builder.js +0 -0
- package/lib/kube-native/secret/secret.controller.js +0 -0
- package/lib/kube-native/secret/secret.events.js +0 -0
- package/lib/kube-native/secret/secret.js +0 -0
- package/lib/kube-native/secret/secret.labels.js +0 -0
- package/lib/kube-native/service/svc.builder.js +0 -0
- package/lib/kube-native/service/svc.controller.js +0 -0
- package/lib/kube-native/service/svc.events.js +0 -0
- package/lib/kube-native/service/svc.js +0 -0
- package/lib/kube-native/service/svc.status.analyzer.js +0 -0
- package/lib/kube-native/service/tests/svc.builder.unit.spec.js +0 -0
- package/lib/kube-native/service/tests/svc.controller.unit.spec.js +0 -0
- package/lib/kube-native/supported.recourses.js +0 -0
- package/lib/kube-native/tests/base.entity.unit.spec.js +0 -0
- package/lib/kube.controllers.js +0 -0
- package/lib/kube.manager.js +0 -0
- package/lib/labels.js +0 -0
- package/lib/status.analyzer.base.js +0 -0
- package/newrelic.js +0 -0
- package/package.json +5 -5
- package/server/api/crud.base.controller.js +0 -0
- package/server/api/index.js +0 -0
- package/server/api/internal/projects/controller.js +0 -0
- package/server/api/internal/projects/index.js +0 -0
- package/server/api/internal/test/index.js +0 -0
- package/server/api/kube-native/releases/controller.js +0 -0
- package/server/api/kube-native/releases/index.js +0 -0
- package/server/api/kube-native/secrets/controller.js +0 -0
- package/server/api/kube-native/secrets/index.js +0 -0
- package/server/api/kube-native/services/controller.js +0 -0
- package/server/api/native.endpoints.js +0 -0
- package/server/helpers/ResponseHandler.js +0 -0
- package/server/helpers/filters/Match.js +0 -0
- package/server/helpers/filters/index.js +0 -0
- package/service.yaml +1 -1
- package/test.deploy.step.js +0 -0
- package/infra/mongo.js +0 -40
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -20,14 +20,8 @@ spec:
|
|
|
20
20
|
app: {{ template "kube-integration.fullname" . }}
|
|
21
21
|
template:
|
|
22
22
|
metadata:
|
|
23
|
-
{{- if .Values.redeploy }}
|
|
24
23
|
annotations:
|
|
25
|
-
|
|
26
|
-
sidecar.istio.io/inject: {{ $.Values.global.istio.enabled | default "false" | quote }}
|
|
27
|
-
{{- else }}
|
|
28
|
-
annotations:
|
|
29
|
-
sidecar.istio.io/inject: {{ $.Values.global.istio.enabled | default "false" | quote }}
|
|
30
|
-
{{- end }}
|
|
24
|
+
checksum/secret: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }}
|
|
31
25
|
labels:
|
|
32
26
|
app: {{ template "kube-integration.fullname" . }}
|
|
33
27
|
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/.dockerignore
CHANGED
|
File without changes
|
package/.eslintignore
CHANGED
|
File without changes
|
package/.eslintrc.json
CHANGED
|
File without changes
|
package/.nvmrc
CHANGED
|
File without changes
|
package/CODEOWNERS
CHANGED
|
File without changes
|
package/Dockerfile
CHANGED
package/README.md
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/config/index.js
CHANGED
|
@@ -72,14 +72,6 @@ base.newrelic = {
|
|
|
72
72
|
license_key: process.env.NEWRELIC_LICENSE_KEY
|
|
73
73
|
};
|
|
74
74
|
|
|
75
|
-
base.mongo = {
|
|
76
|
-
uri: process.env.MONGO_URI || 'mongodb://codefresh.dev:27017/kube',
|
|
77
|
-
options: {
|
|
78
|
-
reconnectTries: process.env.MONGO_RECONNECT_TRIES || Number.MAX_VALUE,
|
|
79
|
-
reconnectInterval: process.env.MONGO_RECONNECT_INTERVAL || 30 * 1000
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
|
|
83
75
|
base.eventbus = {
|
|
84
76
|
uri: process.env.EVENTBUS_URI || 'amqp://codefresh.dev',
|
|
85
77
|
reconnectInterval: process.env.EVENTBUS_INTERVAL || 5,
|
|
@@ -98,12 +90,6 @@ base.helm = {
|
|
|
98
90
|
maxHelmHistorySize: process.env.MAX_HELM_HISTORY_SIZE, // If set, limits history in release
|
|
99
91
|
};
|
|
100
92
|
|
|
101
|
-
if (process.env.MTLS_CERT_PATH) {
|
|
102
|
-
const credentials = fs.readFileSync(process.env.MTLS_CERT_PATH);
|
|
103
|
-
base.mongo.options.sslKey = credentials;
|
|
104
|
-
base.mongo.options.sslCert = credentials;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
93
|
require(`./environment/kubernetes`)(base);
|
|
108
94
|
|
|
109
95
|
module.exports = base;
|
package/example.js
CHANGED
|
File without changes
|
package/index.js
CHANGED
|
File without changes
|
package/infra/eventbus.js
CHANGED
|
File without changes
|
package/infra/express.js
CHANGED
|
File without changes
|
package/infra/index.js
CHANGED
|
@@ -7,7 +7,6 @@ monitor.init();
|
|
|
7
7
|
const Promise = require('bluebird'); // jshint ignore:line
|
|
8
8
|
const processEvents = require('./process-events');
|
|
9
9
|
const express = require('./express');
|
|
10
|
-
const mongo = require('./mongo');
|
|
11
10
|
const eventbus = require('./eventbus');
|
|
12
11
|
const logger = require('cf-logs').Logger('codefresh:infra:index');
|
|
13
12
|
|
|
@@ -25,7 +24,6 @@ class Microservice {
|
|
|
25
24
|
})
|
|
26
25
|
.then(() => {
|
|
27
26
|
return Promise.all([
|
|
28
|
-
// mongo.init(config),
|
|
29
27
|
eventbus.init(config)
|
|
30
28
|
]);
|
|
31
29
|
})
|
|
@@ -50,7 +48,6 @@ class Microservice {
|
|
|
50
48
|
logger.info('Starting shutdown...');
|
|
51
49
|
return Promise.all([
|
|
52
50
|
express.stop(),
|
|
53
|
-
// mongo.stop(),
|
|
54
51
|
eventbus.stop()
|
|
55
52
|
])
|
|
56
53
|
.then(() => {
|
|
@@ -60,4 +57,4 @@ class Microservice {
|
|
|
60
57
|
|
|
61
58
|
}
|
|
62
59
|
|
|
63
|
-
module.exports = new Microservice();
|
|
60
|
+
module.exports = new Microservice();
|
|
File without changes
|
package/infra/logging.js
CHANGED
|
File without changes
|
package/infra/middleware.js
CHANGED
|
File without changes
|
package/infra/process-events.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/kube.controllers.js
CHANGED
|
File without changes
|
package/lib/kube.manager.js
CHANGED
|
File without changes
|
package/lib/labels.js
CHANGED
|
File without changes
|
|
File without changes
|
package/newrelic.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
2
|
+
"version": "1.25.0",
|
|
3
3
|
"name": "@codefresh-io/kube-integration",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"description": "",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"url": "git+https://github.com/codefresh-io/kube-integration.git"
|
|
20
20
|
},
|
|
21
21
|
"engines": {
|
|
22
|
-
"node": "
|
|
22
|
+
"node": "14.20.0"
|
|
23
23
|
},
|
|
24
24
|
"author": "Oleg Sucharevich <olegs@codefresh.io>",
|
|
25
25
|
"license": "ISC",
|
|
@@ -33,7 +33,8 @@
|
|
|
33
33
|
"normalize-url": "4.5.1",
|
|
34
34
|
"shelljs": "0.8.5",
|
|
35
35
|
"node-forge": "1.3.0",
|
|
36
|
-
"openid-client": "^4.9.0"
|
|
36
|
+
"openid-client": "^4.9.0",
|
|
37
|
+
"newrelic": "7.0.1"
|
|
37
38
|
},
|
|
38
39
|
"dependencies": {
|
|
39
40
|
"@codefresh-io/docker-reference": "^0.0.5",
|
|
@@ -43,7 +44,7 @@
|
|
|
43
44
|
"body-parser": "^1.17.2",
|
|
44
45
|
"cf-errors": "^0.1.16",
|
|
45
46
|
"cf-logs": "^1.1.24",
|
|
46
|
-
"cf-monitor": "git+https://github.com/codefresh-io/cf-monitor.git#
|
|
47
|
+
"cf-monitor": "git+https://github.com/codefresh-io/cf-monitor.git#00af78d3d7c7bffc41f27f75279a66a30f0ab987",
|
|
47
48
|
"compression": "^1.6.2",
|
|
48
49
|
"cookie-parser": "^1.4.3",
|
|
49
50
|
"eventemitter2": "^4.1.2",
|
|
@@ -54,7 +55,6 @@
|
|
|
54
55
|
"kubernetes-client": "^8.3.7",
|
|
55
56
|
"lodash": "~4.17.21",
|
|
56
57
|
"method-override": "^2.3.9",
|
|
57
|
-
"mongoose": "^5.12.3",
|
|
58
58
|
"morgan": "^1.10.0",
|
|
59
59
|
"nock": "^12.0.3",
|
|
60
60
|
"nodegistry": "^1.2.3",
|
|
File without changes
|
package/server/api/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/service.yaml
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
version: 1.25.
|
|
1
|
+
version: 1.25.22
|
package/test.deploy.step.js
CHANGED
|
File without changes
|
package/infra/mongo.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const Promise = require('bluebird');
|
|
4
|
-
const logger = require('cf-logs').Logger('codefresh:infra:mongo');
|
|
5
|
-
const mongoose = require('mongoose');
|
|
6
|
-
mongoose.Promise = require('bluebird');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
class Mongo {
|
|
10
|
-
|
|
11
|
-
constructor() {
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* starts the connection to mongo
|
|
17
|
-
* @returns {*}
|
|
18
|
-
*/
|
|
19
|
-
init(config) {
|
|
20
|
-
console.log(`Conncting to mongo uri: ${config.mongo.uri}`);
|
|
21
|
-
return mongoose.connect(config.mongo.uri, {
|
|
22
|
-
...config.mongo.options,
|
|
23
|
-
autoReconnect: true
|
|
24
|
-
}).then(() => {
|
|
25
|
-
console.log(`Mongoose connected to: ${config.mongo.uri}`);
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* stops the connection to mongo
|
|
32
|
-
* @returns {*}
|
|
33
|
-
*/
|
|
34
|
-
stop() {
|
|
35
|
-
return Promise.resolve();
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
module.exports = new Mongo();
|