@@ -235,6 +235,7 @@ const initCmd = new Command({
235
235
name,
236
236
'app-proxy' : appProxy ,
237
237
'app-proxy-host' : appProxyHost ,
238
+ 'app-proxy-path-prefix' : appProxyPathPrefix ,
238
239
'install-monitor' : installMonitor ,
239
240
'docker-daemon-access' : dockerDaemonAccess ,
240
241
} = _argv ;
@@ -269,6 +270,9 @@ const initCmd = new Command({
269
270
if ( ! appProxyHost && _ . get ( valuesObj , 'AppProxy.Host' ) ) {
270
271
appProxyHost = _ . get ( valuesObj , 'AppProxy.Host' ) ;
271
272
}
273
+ if ( ! appProxyPathPrefix && _ . get ( valuesObj , 'AppProxy.PathPrefix' ) ) {
274
+ appProxyPathPrefix = _ . get ( valuesObj , 'AppProxy.PathPrefix' ) ;
275
+ }
272
276
if ( appProxy && ! appProxyHost ) {
273
277
handleError ( new Error ( 'no hostname provided' ) , 'cannot install app-proxy component without a hostname' , undefined , undefined , true ) ;
274
278
}
@@ -531,6 +535,7 @@ const initCmd = new Command({
531
535
const runtimeCreateOpt = {
532
536
namespace : kubeNamespace ,
533
537
storageClassName : storageClassName || `${ INSTALLATION_DEFAULTS . STORAGE_CLASS_PREFIX } -${ kubeNamespace } ` ,
538
+ serviceAccount : INSTALLATION_DEFAULTS . RUNTIME_SERVICE_ACCOUNT ,
534
539
clusterName : kubeContextName ,
535
540
runtimeEnvironmentName : reName ,
536
541
agent : true ,
@@ -646,7 +651,7 @@ const initCmd = new Command({
646
651
installationPlan . addStep ( {
647
652
name : 'install app-proxy' ,
648
653
func : async ( ) => {
649
- const appProxyIP = await installAppProxy ( {
654
+ await installAppProxy ( {
650
655
apiHost : sdk . config . context . url ,
651
656
kubeContextName,
652
657
kubeNamespace,
@@ -657,7 +662,8 @@ const initCmd = new Command({
657
662
appProxyHost,
658
663
appProxyIngressClass,
659
664
} ) ;
660
- installationPlan . addContext ( 'appProxyIP' , `${ appProxyIP } ` ) ;
665
+ const appProxyUrl = `https://${ appProxyHost } ${ appProxyPathPrefix || '' } ` ;
666
+ installationPlan . addContext ( 'appProxyIP' , `${ appProxyUrl } ` ) ;
661
667
} ,
662
668
installationEvent : installationProgress . events . APP_PROXY_INSTALLED ,
663
669
condition : ! ! appProxy ,
0 commit comments