This commit is contained in:
parent
13079cfa44
commit
264c3afde2
@ -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()
|
||||
|
@ -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
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user