File tree Expand file tree Collapse file tree 2 files changed +27
-5
lines changed
Expand file tree Collapse file tree 2 files changed +27
-5
lines changed Original file line number Diff line number Diff line change @@ -507,12 +507,12 @@ def _get_k8s(self, config):
507507 """
508508 sec_get = partial (config .get , 'kubernetes' )
509509
510- self .k8s_volume_mount_path = sec_get ('VOLUME_MOUNT_PATH' )
511- self .k8s_volume_name = sec_get ('VOLUME_NAME' )
512- self .k8s_pvc_name = sec_get ('PVC_NAME' )
510+ self .k8s_volume_mount_path = sec_get ('VOLUME_MOUNT_PATH' , fallback = None )
511+ self .k8s_volume_name = sec_get ('VOLUME_NAME' , fallback = None )
512+ self .k8s_pvc_name = sec_get ('PVC_NAME' , fallback = None )
513513
514514 self .k8s_image_pull_policy = sec_get ('IMAGE_PULL_POLICY' , fallback = 'IfNotPresent' )
515- self .k8s_image_pull_secrets = sec_get ('IMAGE_PULL_SECRETS' )
515+ self .k8s_image_pull_secrets = sec_get ('IMAGE_PULL_SECRETS' , fallback = None )
516516
517- self .k8s_namespace = sec_get ('NAMESPACE' )
517+ self .k8s_namespace = sec_get ('NAMESPACE' , fallback = None )
518518
Original file line number Diff line number Diff line change @@ -258,3 +258,25 @@ STATS_MAP_CENTER_LONGITUDE =
258258# #Optional. Name of a file in qiita_pet/static/img that shall be
259259# #displayed for login through Service Provider, instead of a plain button
260260# LOGO = oidc_lifescienceAAI.png
261+
262+ # ----------------------------- kubernetes job settings -----------------------------
263+ [kubernetes]
264+ # Mount path for qiita-data directory in kubernetes setup. Must match the
265+ # path set in the qiita.yaml under volumeMounts.
266+ VOLUME_MOUNT_PATH =
267+ # Volume name for qiita-data directory in kubernetes setup. Must match the
268+ # name set in the qiita.yaml under volumeMounts.
269+ VOLUME_NAME =
270+
271+ # Name of the persistent volume claim used for qiita-data in kubernetes. Must
272+ # match the name set in pvc_nfs_qiita.yaml
273+ PVC_NAME =
274+
275+ # Pull policy for images used in kubernetes plugin jobs
276+ IMAGE_PULL_POLICY =
277+
278+ # Currently not optional. Will be once we switch to the "public" harbor images.
279+ IMAGE_PULL_SECRETS =
280+
281+ # Namespace used to send jobs. Must match namespace qiita deployment is running in.
282+ NAMESPACE =
You can’t perform that action at this time.
0 commit comments