Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
raffis committed Feb 14, 2019
1 parent 8dcfb39 commit 1379bbe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
4 changes: 0 additions & 4 deletions src/kube/abstract.resource.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
import {Logger} from 'winston';
import Icinga from '../icinga';
import JSONStream from 'json-stream';

/**
* kubernetes hosts
*/
Expand Down
4 changes: 2 additions & 2 deletions src/kube/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export default class Service extends Resource {
}

let protocol = servicePort.protocol.toLowerCase();
let port_name = servicePort.name || protocol+':'+servicePort.port;
let portName = servicePort.name || protocol+':'+servicePort.port;

if (!port.check_command) {
port.check_command = protocol;
Expand All @@ -155,7 +155,7 @@ export default class Service extends Resource {

port['vars._kubernetes'] = true;
port['vars.kubernetes'] = definition;
let name = this.escapeName([definition.metadata.name, port_name].join('-'));
let name = this.escapeName([definition.metadata.name, portName].join('-'));
port['display_name'] = name;

this.applyService(hostname, name, serviceType, port, templates);
Expand Down
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async function main() {
logger.error('failed to cleanup icinga objects', {error: err});
});
}
/*

if (config.kubernetes.nodes.discover) {
kubeNode.kubeListener(() => {
return kubeClient.apis.v1.watch.nodes.getStream();
Expand All @@ -36,7 +36,7 @@ async function main() {
return kubeClient.apis.extensions.v1beta1.watch.ingresses.getStream();
});
}
*/

if (config.kubernetes.volumes.discover) {
kubeVolume.kubeListener(() => {
return kubeClient.apis.v1.watch.persistentvolumes.getStream();
Expand Down

0 comments on commit 1379bbe

Please sign in to comment.