_addEndpoint (endpoint) { const component = super._addEndpoint(endpoint) if (!component) return component // // Deprecate stream API. // if (endpoint.pathItem.get) { const action = endpoint.pathItem.get['x-kubernetes-action'] if (action === 'watch' || action === 'watchlist') { component.getStream = deprecate.function( component.getStream, '.getStream use .getObjectStream, see ' + 'https://github.com/godaddy/kubernetes-client/blob/master/merging-with-kubernetes.md') component.getObjectStream = component._getWatchObjectStream } else if (endpoint.name === '/api/v1/namespaces/{namespace}/pods/{name}/log') { component.getStream = deprecate.function( component.getStream, '.getStream use .getByteStream, see ' + 'https://github.com/godaddy/kubernetes-client/blob/master/merging-with-kubernetes.md') component.getByteStream = component._getLogByteStream } else { component.getStream = deprecate.function( component.getStream, '.getStream see https://github.com/godaddy/kubernetes-client/blob/master/merging-with-kubernetes.md') } } }