Skip to content

Commit 0d5e07e

Browse files
support setting userAccess
1 parent 74890d8 commit 0d5e07e

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

lib/interface/cli/commands/hybrid/init.cmd.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,11 @@ const initCmd = new Command({
179179
.option('app-proxy-ingress-class', {
180180
describe: 'the ingress class that will be used by the app-proxy ingress',
181181
type: 'string',
182+
})
183+
.option('docker-daemon-access', {
184+
describe: 'docker daemon access (default true)',
185+
default: true,
186+
type: 'boolean',
182187
}),
183188
handler: async (argv) => {
184189
let resumedInstallation = false;
@@ -231,6 +236,7 @@ const initCmd = new Command({
231236
'app-proxy': appProxy,
232237
'app-proxy-host': appProxyHost,
233238
'install-monitor': installMonitor,
239+
'docker-daemon-access': dockerDaemonAccess,
234240
} = _argv;
235241

236242
let valuesObj;
@@ -266,6 +272,9 @@ const initCmd = new Command({
266272
if (appProxy && !appProxyHost) {
267273
handleError(new Error('no hostname provided'), 'cannot install app-proxy component without a hostname', undefined, undefined, true);
268274
}
275+
if (_.has(valuesObj, 'dockerDaemonScheduler.userAccess')) {
276+
dockerDaemonAccess = _.get(valuesObj, 'dockerDaemonScheduler.userAccess')
277+
}
269278
}
270279
if (!url) {
271280
url = DEFAULTS.URL;
@@ -525,6 +534,9 @@ const initCmd = new Command({
525534
clusterName: kubeContextName,
526535
runtimeEnvironmentName: reName,
527536
agent: true,
537+
dockerDaemonScheduler: {
538+
userAccess: dockerDaemonAccess,
539+
},
528540
};
529541

530542
if (buildNodeSelector) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codefresh",
3-
"version": "0.73.6",
3+
"version": "0.73.7",
44
"description": "Codefresh command line utility",
55
"main": "index.js",
66
"preferGlobal": true,

0 commit comments

Comments
 (0)