please
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pünkösd Marcell 2021-12-14 17:42:52 +01:00
parent afde4e58c0
commit 13079cfa44
2 changed files with 1 additions and 5 deletions

View File

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

View File

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