@@ -116,11 +116,11 @@ type (
116
116
}
117
117
118
118
RuntimeUpgradeOptions struct {
119
- RuntimeName string
120
- Version * semver.Version
121
- CloneOpts * git.CloneOptions
122
- CommonConfig * runtime.CommonConfig
123
- DisableTelemetry bool
119
+ RuntimeName string
120
+ Version * semver.Version
121
+ CloneOpts * git.CloneOptions
122
+ CommonConfig * runtime.CommonConfig
123
+ DisableTelemetry bool
124
124
}
125
125
126
126
gvr struct {
@@ -630,6 +630,7 @@ func RunRuntimeInstall(ctx context.Context, opts *RuntimeInstallOptions) error {
630
630
opts .RuntimeStoreIV = iv
631
631
rt .Spec .Cluster = server
632
632
rt .Spec .IngressHost = opts .IngressHost
633
+ rt .Spec .IngressClass = opts .IngressClass
633
634
rt .Spec .Repo = opts .InsCloneOpts .Repo
634
635
635
636
log .G (ctx ).WithField ("version" , rt .Spec .Version ).Infof ("Installing runtime \" %s\" " , opts .RuntimeName )
@@ -1287,6 +1288,7 @@ func RunRuntimeList(ctx context.Context) error {
1287
1288
healthMessage := "N/A"
1288
1289
installationStatus := rt .InstallationStatus
1289
1290
ingressHost := "N/A"
1291
+ ingressClass := "N/A"
1290
1292
1291
1293
if rt .Metadata .Namespace != nil {
1292
1294
namespace = * rt .Metadata .Namespace
@@ -1308,7 +1310,11 @@ func RunRuntimeList(ctx context.Context) error {
1308
1310
ingressHost = * rt .IngressHost
1309
1311
}
1310
1312
1311
- _ , err = fmt .Fprintf (tb , "%s\t %s\t %s\t %s\t %s\t %s\t %s\t %s\t %s\n " ,
1313
+ if rt .IngressClass != nil {
1314
+ ingressClass = * rt .IngressClass
1315
+ }
1316
+
1317
+ _ , err = fmt .Fprintf (tb , "%s\t %s\t %s\t %s\t %s\t %s\t %s\t %s\t %s\t %s\n " ,
1312
1318
name ,
1313
1319
namespace ,
1314
1320
cluster ,
@@ -1318,6 +1324,7 @@ func RunRuntimeList(ctx context.Context) error {
1318
1324
healthMessage ,
1319
1325
installationStatus ,
1320
1326
ingressHost ,
1327
+ ingressClass ,
1321
1328
)
1322
1329
if err != nil {
1323
1330
return err
0 commit comments