This repository was archived by the owner on Apr 13, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -549,9 +549,9 @@ describe("reconcile tests", () => {
549
549
expect ( dependencies . createServiceComponent ) . toHaveBeenCalledTimes ( 1 ) ;
550
550
expect ( dependencies . createRingComponent ) . toHaveBeenCalledTimes ( 1 ) ;
551
551
expect ( dependencies . addChartToRing ) . toHaveBeenCalledTimes ( 1 ) ;
552
- expect ( dependencies . createStaticComponent ) . toHaveBeenCalledTimes ( 1 ) ;
553
552
554
553
// Skipping route generation.
554
+ expect ( dependencies . createStaticComponent ) . toHaveBeenCalledTimes ( 0 ) ;
555
555
expect ( dependencies . createMiddlewareForRing ) . not . toHaveBeenCalled ( ) ;
556
556
expect ( dependencies . createIngressRouteForRing ) . not . toHaveBeenCalled ( ) ;
557
557
} ) ;
Original file line number Diff line number Diff line change @@ -277,12 +277,6 @@ export const reconcileHld = async (
277
277
serviceConfig
278
278
) ;
279
279
280
- // Create config directory, create static manifest directory.
281
- await dependencies . createStaticComponent (
282
- dependencies . exec ,
283
- normalizedRingPathInHld
284
- ) ;
285
-
286
280
// Service explicitly requests no ingress-routes to be generated.
287
281
if ( serviceConfig . disableRouteScaffold ) {
288
282
logger . info (
@@ -291,6 +285,12 @@ export const reconcileHld = async (
291
285
continue ;
292
286
}
293
287
288
+ // Create config directory, create static manifest directory.
289
+ await dependencies . createStaticComponent (
290
+ dependencies . exec ,
291
+ normalizedRingPathInHld
292
+ ) ;
293
+
294
294
// Calculate shared path for both IngressRoute and Middleware
295
295
const ingressVersionAndPath = getFullPathPrefix (
296
296
serviceConfig . pathPrefixMajorVersion || "" ,
You can’t perform that action at this time.
0 commit comments