From 5afaf37fb6db76efa08b8a218b5b1126c26a4aee Mon Sep 17 00:00:00 2001 From: Eric Satterwhite Date: Thu, 20 Oct 2022 15:34:48 -0500 Subject: [PATCH 1/4] chore(eventhandler): include options object in event handler Includes a common options object to be passed into the event handler constructor and propogated through its factory function. This makes adding additional customer properties and configration easier to manage between the various repos and minimizes the need to explicitly expose option in every project --- lib/EventHandler.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/EventHandler.js b/lib/EventHandler.js index dc39401..536ef1f 100644 --- a/lib/EventHandler.js +++ b/lib/EventHandler.js @@ -24,6 +24,7 @@ module.exports = class EventHandler { this._kc = params.kubeClass; this._factory = params.factory; this._finalizerString = params.finalizerString; + this._options = params.options if (params.livenessInterval) { if (Number.isInteger(params.livenessInterval)) { this._livenessInterval = params.livenessInterval; @@ -96,7 +97,8 @@ module.exports = class EventHandler { eventData: data, kubeClass: this._kc, logger: this._logger, - finalizerString: this._finalizerString + finalizerString: this._finalizerString, + options: this._options }; const controller = new this._factory(params); return await controller.execute(); From 8d1a2f09fe83ce342de5f048a8097370bab88df5 Mon Sep 17 00:00:00 2001 From: Eric Satterwhite Date: Wed, 2 Nov 2022 11:14:25 -0500 Subject: [PATCH 2/4] Trigger Build From de21501e4d4c493e5ee555684ecee04f3d8bc21e Mon Sep 17 00:00:00 2001 From: Eric Satterwhite Date: Wed, 2 Nov 2022 11:31:35 -0500 Subject: [PATCH 3/4] fix(ci): pin the nod version to lts 16 Looks like there may be a change to the LIBC version on node18 that travis isn't ready for --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8c7c9ec..1c535af 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: node_js node_js: - - "lts/*" + - "lts/gallium" before_install: - echo "$DOCKERHUB_TOKEN" | docker login -u "icdevops" --password-stdin From e43207ec5f45039683fe258546750ce60b2ce102 Mon Sep 17 00:00:00 2001 From: Eric Satterwhite Date: Wed, 2 Nov 2022 13:10:15 -0500 Subject: [PATCH 4/4] Update .travis.yml Co-authored-by: Alex Lewitt <48691328+alewitt2@users.noreply.github.com> --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 1c535af..48d30e4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: node_js node_js: - - "lts/gallium" + - "16" before_install: - echo "$DOCKERHUB_TOKEN" | docker login -u "icdevops" --password-stdin