@codefresh-io/kube-integration 1.24.7 → 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.
Files changed (132) hide show
  1. package/.deploy/kube-integration/Chart.yaml +0 -0
  2. package/.deploy/kube-integration/README.md +0 -0
  3. package/.deploy/kube-integration/templates/_helpers.tpl +0 -0
  4. package/.deploy/kube-integration/templates/_kube-integration-deployment.tpl +1 -7
  5. package/.deploy/kube-integration/templates/deployment.yaml +0 -0
  6. package/.deploy/kube-integration/templates/hpa.yaml +0 -0
  7. package/.deploy/kube-integration/templates/kube-integration-istio-destinationrule.yaml +0 -0
  8. package/.deploy/kube-integration/templates/kube-integration-istio-local-virtuslservice.yaml +0 -0
  9. package/.deploy/kube-integration/templates/secrets.yaml +0 -0
  10. package/.deploy/kube-integration/templates/service.yaml +0 -0
  11. package/.deploy/kube-integration/values.yaml +0 -0
  12. package/.dockerignore +0 -0
  13. package/.eslintignore +0 -0
  14. package/.eslintrc.json +0 -0
  15. package/.nvmrc +0 -0
  16. package/CODEOWNERS +0 -0
  17. package/Dockerfile +1 -1
  18. package/README.md +0 -0
  19. package/_proto/hapi/chart/chart_pb.js +0 -0
  20. package/_proto/hapi/chart/config_pb.js +0 -0
  21. package/_proto/hapi/chart/metadata_pb.js +0 -0
  22. package/_proto/hapi/chart/template_pb.js +0 -0
  23. package/_proto/hapi/release/hook_pb.js +0 -0
  24. package/_proto/hapi/release/info_pb.js +0 -0
  25. package/_proto/hapi/release/release_pb.js +0 -0
  26. package/_proto/hapi/release/status_pb.js +0 -0
  27. package/_proto/hapi/release/test_run_pb.js +0 -0
  28. package/_proto/hapi/release/test_suite_pb.js +0 -0
  29. package/_proto/hapi/rudder/rudder_pb.js +0 -0
  30. package/_proto/hapi/services/tiller_pb.js +0 -0
  31. package/_proto/hapi/version/version_pb.js +0 -0
  32. package/config/environment/kubernetes.js +0 -0
  33. package/config/index.js +0 -14
  34. package/example.js +0 -0
  35. package/index.js +0 -0
  36. package/infra/eventbus.js +0 -0
  37. package/infra/express.js +0 -0
  38. package/infra/index.js +1 -4
  39. package/infra/kube.manager.event.handler.js +0 -0
  40. package/infra/logging.js +0 -0
  41. package/infra/middleware.js +0 -0
  42. package/infra/process-events.js +0 -0
  43. package/lib/helm/release/base/pool.js +0 -0
  44. package/lib/helm/release/base/revision.js +0 -0
  45. package/lib/helm/release/helm2/pool.js +0 -0
  46. package/lib/helm/release/helm2/release.controller.js +0 -0
  47. package/lib/helm/release/helm2/release.js +0 -0
  48. package/lib/helm/release/helm2/revision.js +0 -0
  49. package/lib/helm/release/helm3/pool.js +0 -0
  50. package/lib/helm/release/helm3/release.controller.js +0 -0
  51. package/lib/helm/release/helm3/release.js +0 -0
  52. package/lib/helm/release/helm3/revision.js +0 -0
  53. package/lib/helm/release/helm3/tests/revision.unit.spec.js +0 -0
  54. package/lib/helm/release/tests/release.controller.unit.spec.js +0 -0
  55. package/lib/helm/release/tests/release.unit.spec.js +0 -0
  56. package/lib/helm/release/tests/revision.unit.spec.js +0 -0
  57. package/lib/index.js +0 -0
  58. package/lib/internal-components/SquashedPod/SquashedPod.js +0 -0
  59. package/lib/internal-components/SquashedPod/SquashedPodPool.js +0 -0
  60. package/lib/internal-components/SquashedPod/index.js +0 -0
  61. package/lib/internal-components/SquashedPod/tests/SquashedPod.unit.spec.js +0 -0
  62. package/lib/internal-components/SquashedPod/tests/SquashedPodPool.unit.spec.js +0 -0
  63. package/lib/internal-components/project/Project.js +0 -0
  64. package/lib/internal-components/project/controller.js +0 -0
  65. package/lib/internal-components/project/project.internal.evenets.js +0 -0
  66. package/lib/internal-components/project/project.labels.js +0 -0
  67. package/lib/kube-client-wrapper/KubeWrapper.js +0 -0
  68. package/lib/kube-client-wrapper/tests/KubeWrapper.unit.spec.js +0 -0
  69. package/lib/kube-endpoints/index.js +0 -0
  70. package/lib/kube-endpoints/v15.js +0 -0
  71. package/lib/kube-endpoints/v16.js +0 -0
  72. package/lib/kube-native/builder.base.js +0 -0
  73. package/lib/kube-native/configMap/configMap.builder.js +0 -0
  74. package/lib/kube-native/configMap/configMap.events.js +0 -0
  75. package/lib/kube-native/configMap/configMap.js +0 -0
  76. package/lib/kube-native/deployment/deploy.builder.js +0 -0
  77. package/lib/kube-native/deployment/deploy.controller.js +0 -0
  78. package/lib/kube-native/deployment/deploy.events.js +0 -0
  79. package/lib/kube-native/deployment/deploy.js +0 -0
  80. package/lib/kube-native/deployment/deploy.status.analyzer.js +0 -0
  81. package/lib/kube-native/deployment/tests/deploy.builder.unit.spec.js +0 -0
  82. package/lib/kube-native/deployment/tests/deploy.unit.spec.js +0 -0
  83. package/lib/kube-native/entity.base.js +0 -0
  84. package/lib/kube-native/namespace/namespace.builder.js +0 -0
  85. package/lib/kube-native/namespace/namespace.events.js +0 -0
  86. package/lib/kube-native/namespace/namespace.js +0 -0
  87. package/lib/kube-native/node/node.js +0 -0
  88. package/lib/kube-native/pod/pod.controller.js +0 -0
  89. package/lib/kube-native/pod/pod.js +0 -0
  90. package/lib/kube-native/pod/pod.status.analyzer.js +0 -0
  91. package/lib/kube-native/pod/tests/pod.unit.spec.js +0 -0
  92. package/lib/kube-native/replicaSet/rs.js +0 -0
  93. package/lib/kube-native/replicaSet/rs.status.analyzer.js +0 -0
  94. package/lib/kube-native/resource.base.controller.js +0 -0
  95. package/lib/kube-native/secret/image.pull.secret.builder.js +0 -0
  96. package/lib/kube-native/secret/secret.builder.js +0 -0
  97. package/lib/kube-native/secret/secret.controller.js +0 -0
  98. package/lib/kube-native/secret/secret.events.js +0 -0
  99. package/lib/kube-native/secret/secret.js +0 -0
  100. package/lib/kube-native/secret/secret.labels.js +0 -0
  101. package/lib/kube-native/service/svc.builder.js +0 -0
  102. package/lib/kube-native/service/svc.controller.js +0 -0
  103. package/lib/kube-native/service/svc.events.js +0 -0
  104. package/lib/kube-native/service/svc.js +0 -0
  105. package/lib/kube-native/service/svc.status.analyzer.js +0 -0
  106. package/lib/kube-native/service/tests/svc.builder.unit.spec.js +0 -0
  107. package/lib/kube-native/service/tests/svc.controller.unit.spec.js +0 -0
  108. package/lib/kube-native/supported.recourses.js +0 -0
  109. package/lib/kube-native/tests/base.entity.unit.spec.js +0 -0
  110. package/lib/kube.controllers.js +0 -0
  111. package/lib/kube.manager.js +0 -0
  112. package/lib/labels.js +0 -0
  113. package/lib/status.analyzer.base.js +0 -0
  114. package/newrelic.js +0 -0
  115. package/package.json +5 -6
  116. package/server/api/crud.base.controller.js +0 -0
  117. package/server/api/index.js +0 -0
  118. package/server/api/internal/projects/controller.js +0 -0
  119. package/server/api/internal/projects/index.js +0 -0
  120. package/server/api/internal/test/index.js +0 -0
  121. package/server/api/kube-native/releases/controller.js +0 -0
  122. package/server/api/kube-native/releases/index.js +0 -0
  123. package/server/api/kube-native/secrets/controller.js +0 -0
  124. package/server/api/kube-native/secrets/index.js +0 -0
  125. package/server/api/kube-native/services/controller.js +0 -0
  126. package/server/api/native.endpoints.js +0 -0
  127. package/server/helpers/ResponseHandler.js +0 -0
  128. package/server/helpers/filters/Match.js +0 -0
  129. package/server/helpers/filters/index.js +0 -0
  130. package/service.yaml +1 -1
  131. package/test.deploy.step.js +0 -0
  132. 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
- forceRedeployUniqId: {{ now | quote }}
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
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
@@ -1,4 +1,4 @@
1
- FROM node:12.22.12-alpine
1
+ FROM node:14.20.0-alpine
2
2
 
3
3
  WORKDIR /kube-integration
4
4
 
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
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
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.24.7",
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": "12.22.12"
22
+ "node": "14.20.0"
23
23
  },
24
24
  "author": "Oleg Sucharevich <olegs@codefresh.io>",
25
25
  "license": "ISC",
@@ -29,16 +29,16 @@
29
29
  "homepage": "https://github.com/codefresh-io/kube-integration#readme",
30
30
  "resolutions": {
31
31
  "json-schema": "^0.4.0",
32
- "amqplib": "0.5.1",
33
32
  "lodash": "~4.17.21",
34
33
  "normalize-url": "4.5.1",
35
34
  "shelljs": "0.8.5",
36
35
  "node-forge": "1.3.0",
37
- "openid-client": "^4.9.0"
36
+ "openid-client": "^4.9.0",
37
+ "newrelic": "7.0.1"
38
38
  },
39
39
  "dependencies": {
40
40
  "@codefresh-io/docker-reference": "^0.0.5",
41
- "@codefresh-io/eventbus": "1.4.2",
41
+ "@codefresh-io/eventbus": "1.4.3",
42
42
  "@codefresh-io/http-infra": "^1.8.11",
43
43
  "bluebird": "^3.5.0",
44
44
  "body-parser": "^1.17.2",
@@ -55,7 +55,6 @@
55
55
  "kubernetes-client": "^8.3.7",
56
56
  "lodash": "~4.17.21",
57
57
  "method-override": "^2.3.9",
58
- "mongoose": "^5.12.3",
59
58
  "morgan": "^1.10.0",
60
59
  "nock": "^12.0.3",
61
60
  "nodegistry": "^1.2.3",
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/service.yaml CHANGED
@@ -1 +1 @@
1
- version: 1.25.18
1
+ version: 1.25.22
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();