Skip to content

Commit

Permalink
feat: fix host path for dlc and add defaults (#152)
Browse files Browse the repository at this point in the history
* feat: add dlc flag and path to pod yaml

* feat: fix host path for dlc and add defaults
  • Loading branch information
pritamstyz4ever authored Jan 22, 2021
1 parent 7e00cbf commit 815bc81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/pod.yaml.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ spec:
- name: sd-docker-cache
type: DirectoryOrCreate
hostPath:
path: {{cache.dlc_path}}/pipelines/{{pipeline_id}}/{{cache.dlc_mount_path}}
path: {{cache.dlc_path}}/pipelines/{{pipeline_id}}{{cache.dlc_mount_path}}
{{/if}}
{{#each volume_mounts}}
- name: {{this.name}}
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,8 @@ class K8sExecutor extends Executor {
);
};
this.dlcEnabled = hoek.reach(options, 'kubernetes.dlcEnabled', { default: false });
this.dlcPath = hoek.reach(options, 'kubernetes.dlcPath');
this.dlcMountPath = hoek.reach(options, 'kubernetes.dlcMountPath');
this.dlcPath = hoek.reach(options, 'kubernetes.dlcPath', { default: '/' });
this.dlcMountPath = hoek.reach(options, 'kubernetes.dlcMountPath', { default: '/' });
}

/**
Expand Down

0 comments on commit 815bc81

Please sign in to comment.