@@ -40,35 +40,25 @@ program
4040
4141program
4242 . command ( 'all' )
43- . description ( 'Run complete setup (all tasks, use --no-<task> to exclude specific tasks )' )
43+ . description ( 'Run complete setup (all tasks)' )
4444 . option ( '--config <path>' , 'Path to setup configuration file' )
4545 . option ( '--workflows-config <path>' , 'Path to workflows configuration file' )
4646 . option ( '--locations-config <path>' , 'Path to locations configuration file' )
4747 . option ( '--git-access-token <token>' , 'Git access token for metadata repository' )
4848 . option ( '--metadata-namespace <namespace>' , 'Metadata service namespace' , 'metadata' )
49- . option ( '--no-rbac' , 'Skip RBAC setup' )
50- . option ( '--no-dns' , 'Skip DNS setup' )
51- . option ( '--no-mocks' , 'Skip mock services setup' )
52- . option ( '--no-locations' , 'Skip storage locations setup' )
53- . option ( '--no-accounts' , 'Skip accounts setup' )
54- . option ( '--no-workflows' , 'Skip workflows setup' )
55- . option ( '--no-metadata' , 'Skip Metadata service setup' )
56- . option ( '--no-kafka-topics' , 'Skip Kafka topics setup' )
57- . option ( '--no-notifications' , 'Skip notifications setup' )
5849 . action ( async ( options ) => {
5950 const globalOptions = program . opts ( ) ;
6051 await runSetup ( {
6152 ...globalOptions ,
62- rbac : ! options . noRbac ,
63- dns : ! options . noDns ,
64- mocks : ! options . noMocks ,
65- locations : ! options . noLocations ,
66- accounts : ! options . noAccounts ,
67- workflows : ! options . noWorkflows ,
68- metadata : ! options . noMetadata ,
69- kafkaTopics : ! options . noKafkaTopics ,
70- notifications : ! options . noNotifications ,
71- ctstLocal : ! options . noCtstLocal ,
53+ rbac : true ,
54+ dns : true ,
55+ mocks : true ,
56+ locations : true ,
57+ accounts : true ,
58+ workflows : true ,
59+ metadata : true ,
60+ kafkaTopics : true ,
61+ notifications : true ,
7262 configFile : options . config ,
7363 workflowsConfig : options . workflowsConfig ,
7464 locationsConfig : options . locationsConfig ,
@@ -331,9 +321,6 @@ async function runSetup(options: any) {
331321 if ( options . accounts ) {
332322 tasks . push ( {
333323 name : 'Accounts' , fn : async ( ) => {
334- if ( ! setupFlags . dns ) {
335- throw new Error ( 'DNS setup is required before accounts setup' ) ;
336- }
337324 await setupAccounts ( {
338325 namespace : options . namespace ,
339326 accounts : options . accounts === true ? undefined : options . accounts , // Allow array of account names
@@ -346,12 +333,6 @@ async function runSetup(options: any) {
346333 if ( options . locations ) {
347334 tasks . push ( {
348335 name : 'Storage Locations' , fn : async ( ) => {
349- if ( ! setupFlags . dns ) {
350- throw new Error ( 'DNS setup is required before locations setup' ) ;
351- }
352- if ( ! setupFlags . accounts ) {
353- throw new Error ( 'Accounts setup is required before locations setup' ) ;
354- }
355336 await setupLocations ( {
356337 namespace : options . namespace ,
357338 subdomain : options . subdomain ,
@@ -370,9 +351,6 @@ async function runSetup(options: any) {
370351 }
371352 tasks . push ( {
372353 name : 'Workflows' , fn : async ( ) => {
373- if ( ! setupFlags . locations ) {
374- throw new Error ( 'Locations setup is required before workflows setup' ) ;
375- }
376354 await setupWorkflows ( {
377355 namespace : options . namespace ,
378356 configFile : options . workflowsConfig ,
@@ -390,9 +368,6 @@ async function runSetup(options: any) {
390368 }
391369 tasks . push ( {
392370 name : 'Kafka Topics' , fn : async ( ) => {
393- if ( ! setupFlags . locations ) {
394- throw new Error ( 'Locations setup is required before Kafka topics setup' ) ;
395- }
396371 await setupKafkaTopics ( {
397372 namespace : options . namespace ,
398373 zenkoName : options . zenkoName ,
@@ -408,9 +383,6 @@ async function runSetup(options: any) {
408383 }
409384 tasks . push ( {
410385 name : 'Notifications' , fn : async ( ) => {
411- if ( ! setupFlags . locations ) {
412- throw new Error ( 'Locations setup is required before notifications setup' ) ;
413- }
414386 await setupNotifications ( {
415387 namespace : options . namespace ,
416388 configFile : options . notificationsConfig ,
0 commit comments