|
75 | 75 | CommonConfig *runtime.CommonConfig
|
76 | 76 | SuggestedSharedConfigRepo string
|
77 | 77 | DisableTelemetry bool
|
| 78 | + SkipIngress bool |
78 | 79 | runtimeDef string
|
79 | 80 |
|
80 | 81 | versionStr string
|
@@ -821,6 +822,7 @@ func NewRuntimeUpgradeCommand() *cobra.Command {
|
821 | 822 | cmd.Flags().BoolVar(&opts.DisableTelemetry, "disable-telemetry", false, "If true, will disable analytics reporting for the upgrade process")
|
822 | 823 | cmd.Flags().BoolVar(&store.Get().SetDefaultResources, "set-default-resources", false, "If true, will set default requests and limits on all of the runtime components")
|
823 | 824 | cmd.Flags().StringVar(&opts.runtimeDef, "runtime-def", store.RuntimeDefURL, "Install runtime from a specific manifest")
|
| 825 | + cmd.Flags().BoolVar(&opts.SkipIngress, "skip-ingress", false, "Skips the creation of ingress resources") |
824 | 826 | opts.CloneOpts = apu.AddCloneFlags(cmd, &apu.CloneFlagsOptions{CloneForWrite: true})
|
825 | 827 |
|
826 | 828 | util.Die(cmd.Flags().MarkHidden("runtime-def"))
|
@@ -901,7 +903,7 @@ func runRuntimeUpgrade(ctx context.Context, opts *RuntimeUpgradeOptions) error {
|
901 | 903 | isIngress := curRt.Spec.AccessMode == platmodel.AccessModeIngress
|
902 | 904 | isNotAlb := curRt.Spec.IngressController != string(routingutil.IngressControllerALB)
|
903 | 905 |
|
904 |
| - if needsInternalRouter && isIngress && isNotAlb { |
| 906 | + if !opts.SkipIngress && needsInternalRouter && isIngress && isNotAlb { |
905 | 907 | log.G(ctx).Info("Migrating to Internal Router ")
|
906 | 908 |
|
907 | 909 | err = migrateInternalRouter(ctx, opts, newRt)
|
|
0 commit comments