Fix links for crds in k8s 1.14
The api of newer k8s versions (tested with 1.14) doesn't accept namespaces
for namespace-less crds anymore.
@@ -145,8 +145,7 @@ class PipelineInvocationController(Controller):
def _get_pipeline(self, pi):
if pi['spec']['pipelineName'] not in self.pipelines:
- url = '%s/apis/core.infrabox.net/v1alpha1/namespaces/%s/ibpipelines/%s' % (self.args.api_server,
- pi['metadata']['namespace'],
+ url = '%s/apis/core.infrabox.net/v1alpha1/ibpipelines/%s' % (self.args.api_server,
pi['spec']['pipelineName'])
self.pipelines[pi['spec']['pipelineName']] = self._get(url)
@@ -416,8 +415,7 @@ class FunctionInvocationController(Controller):
def _get_function(self, fi):
if fi['spec']['functionName'] not in self.functions:
- url = '%s/apis/core.infrabox.net/v1alpha1/namespaces/%s/ibfunctions/%s' % (self.args.api_server,
- self.namespace,
+ url = '%s/apis/core.infrabox.net/v1alpha1/ibfunctions/%s' % (self.args.api_server,
fi['spec']['functionName'])
self.functions[fi['spec']['functionName']] = self._get(url)
