diff --git a/lib/KubeResourceMeta.js b/lib/KubeResourceMeta.js index 37158c9..e803dd6 100644 --- a/lib/KubeResourceMeta.js +++ b/lib/KubeResourceMeta.js @@ -75,7 +75,11 @@ module.exports = class KubeResourceMeta { } hasVerb(verb) { - return this.verbs.some(v => verb == v); + let result=false; + if (Array.isArray(this.verbs)){ + result=this.verbs.some(v => verb == v); + } + return result; } addHeader(key, value) { objectPath.set(this._extraHeaders, ['headers', key], value);