this should work
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pünkösd Marcell 2021-12-14 18:05:35 +01:00
parent 13079cfa44
commit 264c3afde2
2 changed files with 5 additions and 1 deletions

View File

@ -35,5 +35,9 @@ class FlaskKubernetes:
def corev1api(self) -> kubernetes.client.CoreV1Api:
return kubernetes.client.CoreV1Api(self.connection)
@property
def customobjectsapi(self) -> kubernetes.client.CustomObjectsApi:
return kubernetes.client.CustomObjectsApi(self.connection)
k8s = FlaskKubernetes()

View File

@ -226,7 +226,7 @@ class JobView(FlaskView):
version = 'v1beta1'
plural = 'federatedjobs'
r = k8s.connection.create_namespaced_custom_object(
r = k8s.customobjectsapi.create_namespaced_custom_object(
group, version, current_app.config['WORKING_NAMESPACE'], plural, pod_object
)