@@ -347,7 +347,7 @@ func configSetStartupData(conf *Configuration) (string, error) {
347
347
if conf .UI != nil {
348
348
var cfg = api.StartupConfigConsumer {
349
349
ID : sdk .UUID (),
350
- Name : "ui" ,
350
+ Name : conf . UI . Name ,
351
351
Description : "Autogenerated configuration for ui service" ,
352
352
Type : api .StartupConfigConsumerTypeUI ,
353
353
}
@@ -370,7 +370,7 @@ func configSetStartupData(conf *Configuration) (string, error) {
370
370
if h .Local != nil {
371
371
var cfg = api.StartupConfigConsumer {
372
372
ID : sdk .UUID (),
373
- Name : "hatchery:local" ,
373
+ Name : h . Local . Name ,
374
374
Description : "Autogenerated configuration for local hatchery" ,
375
375
Type : api .StartupConfigConsumerTypeHatchery ,
376
376
}
@@ -395,7 +395,7 @@ func configSetStartupData(conf *Configuration) (string, error) {
395
395
if h .Openstack != nil {
396
396
var cfg = api.StartupConfigConsumer {
397
397
ID : sdk .UUID (),
398
- Name : "hatchery:openstack" ,
398
+ Name : h . Openstack . Name ,
399
399
Description : "Autogenerated configuration for openstack hatchery" ,
400
400
Type : api .StartupConfigConsumerTypeHatchery ,
401
401
}
@@ -420,7 +420,7 @@ func configSetStartupData(conf *Configuration) (string, error) {
420
420
if h .VSphere != nil {
421
421
var cfg = api.StartupConfigConsumer {
422
422
ID : sdk .UUID (),
423
- Name : "hatchery:vsphere" ,
423
+ Name : h . VSphere . Name ,
424
424
Description : "Autogenerated configuration for vsphere hatchery" ,
425
425
Type : api .StartupConfigConsumerTypeHatchery ,
426
426
}
@@ -446,7 +446,7 @@ func configSetStartupData(conf *Configuration) (string, error) {
446
446
if h .Swarm != nil {
447
447
var cfg = api.StartupConfigConsumer {
448
448
ID : sdk .UUID (),
449
- Name : "hatchery:swarm" ,
449
+ Name : h . Swarm . Name ,
450
450
Description : "Autogenerated configuration for swarm hatchery" ,
451
451
Type : api .StartupConfigConsumerTypeHatchery ,
452
452
}
@@ -471,7 +471,7 @@ func configSetStartupData(conf *Configuration) (string, error) {
471
471
if h .Marathon != nil {
472
472
var cfg = api.StartupConfigConsumer {
473
473
ID : sdk .UUID (),
474
- Name : "hatchery:marathon" ,
474
+ Name : h . Marathon . Name ,
475
475
Description : "Autogenerated configuration for marathon hatchery" ,
476
476
Type : api .StartupConfigConsumerTypeHatchery ,
477
477
}
@@ -496,7 +496,7 @@ func configSetStartupData(conf *Configuration) (string, error) {
496
496
if h .Kubernetes != nil {
497
497
var cfg = api.StartupConfigConsumer {
498
498
ID : sdk .UUID (),
499
- Name : "hatchery:kubernetes" ,
499
+ Name : h . Kubernetes . Name ,
500
500
Description : "Autogenerated configuration for kubernetes hatchery" ,
501
501
Type : api .StartupConfigConsumerTypeHatchery ,
502
502
}
@@ -522,7 +522,7 @@ func configSetStartupData(conf *Configuration) (string, error) {
522
522
if conf .Hooks != nil {
523
523
var cfg = api.StartupConfigConsumer {
524
524
ID : sdk .UUID (),
525
- Name : "hooks" ,
525
+ Name : conf . Hooks . Name ,
526
526
Description : "Autogenerated configuration for hooks service" ,
527
527
Type : api .StartupConfigConsumerTypeHooks ,
528
528
}
@@ -544,7 +544,7 @@ func configSetStartupData(conf *Configuration) (string, error) {
544
544
if conf .Repositories != nil {
545
545
var cfg = api.StartupConfigConsumer {
546
546
ID : sdk .UUID (),
547
- Name : "repositories" ,
547
+ Name : conf . Repositories . Name ,
548
548
Description : "Autogenerated configuration for repositories service" ,
549
549
Type : api .StartupConfigConsumerTypeRepositories ,
550
550
}
@@ -566,7 +566,7 @@ func configSetStartupData(conf *Configuration) (string, error) {
566
566
if conf .DatabaseMigrate != nil {
567
567
var cfg = api.StartupConfigConsumer {
568
568
ID : sdk .UUID (),
569
- Name : "migrate" ,
569
+ Name : conf . DatabaseMigrate . Name ,
570
570
Description : "Autogenerated configuration for migrate service" ,
571
571
Type : api .StartupConfigConsumerTypeDBMigrate ,
572
572
}
@@ -588,7 +588,7 @@ func configSetStartupData(conf *Configuration) (string, error) {
588
588
if conf .VCS != nil {
589
589
var cfg = api.StartupConfigConsumer {
590
590
ID : sdk .UUID (),
591
- Name : "vcs" ,
591
+ Name : conf . VCS . Name ,
592
592
Description : "Autogenerated configuration for vcs service" ,
593
593
Type : api .StartupConfigConsumerTypeVCS ,
594
594
}
@@ -610,7 +610,7 @@ func configSetStartupData(conf *Configuration) (string, error) {
610
610
if conf .CDN != nil {
611
611
var cfg = api.StartupConfigConsumer {
612
612
ID : sdk .UUID (),
613
- Name : "cdn" ,
613
+ Name : conf . CDN . Name ,
614
614
Description : "Autogenerated configuration for cdn service" ,
615
615
Type : api .StartupConfigConsumerTypeCDN ,
616
616
}
@@ -632,7 +632,7 @@ func configSetStartupData(conf *Configuration) (string, error) {
632
632
if conf .ElasticSearch != nil {
633
633
var cfg = api.StartupConfigConsumer {
634
634
ID : sdk .UUID (),
635
- Name : "elasticsearch" ,
635
+ Name : conf . ElasticSearch . Name ,
636
636
Description : "Autogenerated configuration for elasticSearch service" ,
637
637
Type : api .StartupConfigConsumerTypeElasticsearch ,
638
638
}
@@ -678,7 +678,7 @@ func getInitTokenFromExistingConfiguration(conf Configuration) (string, error) {
678
678
}
679
679
var cfg = api.StartupConfigConsumer {
680
680
ID : consumerID ,
681
- Name : "ui" ,
681
+ Name : conf . UI . Name ,
682
682
Description : "Autogenerated configuration for ui service" ,
683
683
Type : api .StartupConfigConsumerTypeUI ,
684
684
}
@@ -696,7 +696,7 @@ func getInitTokenFromExistingConfiguration(conf Configuration) (string, error) {
696
696
}
697
697
var cfg = api.StartupConfigConsumer {
698
698
ID : consumerID ,
699
- Name : "hatchery:local" ,
699
+ Name : h . Local . Name ,
700
700
Description : "Autogenerated configuration for local hatchery" ,
701
701
Type : api .StartupConfigConsumerTypeHatchery ,
702
702
}
@@ -713,7 +713,7 @@ func getInitTokenFromExistingConfiguration(conf Configuration) (string, error) {
713
713
}
714
714
var cfg = api.StartupConfigConsumer {
715
715
ID : consumerID ,
716
- Name : "hatchery:openstack" ,
716
+ Name : h . Openstack . Name ,
717
717
Description : "Autogenerated configuration for openstack hatchery" ,
718
718
Type : api .StartupConfigConsumerTypeHatchery ,
719
719
}
@@ -730,7 +730,7 @@ func getInitTokenFromExistingConfiguration(conf Configuration) (string, error) {
730
730
}
731
731
var cfg = api.StartupConfigConsumer {
732
732
ID : consumerID ,
733
- Name : "hatchery:vsphere" ,
733
+ Name : h . VSphere . Name ,
734
734
Description : "Autogenerated configuration for vsphere hatchery" ,
735
735
Type : api .StartupConfigConsumerTypeHatchery ,
736
736
}
@@ -747,7 +747,7 @@ func getInitTokenFromExistingConfiguration(conf Configuration) (string, error) {
747
747
}
748
748
var cfg = api.StartupConfigConsumer {
749
749
ID : consumerID ,
750
- Name : "hatchery:swarm" ,
750
+ Name : h . Swarm . Name ,
751
751
Description : "Autogenerated configuration for swarm hatchery" ,
752
752
Type : api .StartupConfigConsumerTypeHatchery ,
753
753
}
@@ -764,7 +764,7 @@ func getInitTokenFromExistingConfiguration(conf Configuration) (string, error) {
764
764
}
765
765
var cfg = api.StartupConfigConsumer {
766
766
ID : consumerID ,
767
- Name : "hatchery:marathon" ,
767
+ Name : h . Marathon . Name ,
768
768
Description : "Autogenerated configuration for marathon hatchery" ,
769
769
Type : api .StartupConfigConsumerTypeHatchery ,
770
770
}
@@ -781,7 +781,7 @@ func getInitTokenFromExistingConfiguration(conf Configuration) (string, error) {
781
781
}
782
782
var cfg = api.StartupConfigConsumer {
783
783
ID : consumerID ,
784
- Name : "hatchery:kubernetes" ,
784
+ Name : h . Kubernetes . Name ,
785
785
Description : "Autogenerated configuration for kubernetes hatchery" ,
786
786
Type : api .StartupConfigConsumerTypeHatchery ,
787
787
}
@@ -799,7 +799,7 @@ func getInitTokenFromExistingConfiguration(conf Configuration) (string, error) {
799
799
}
800
800
var cfg = api.StartupConfigConsumer {
801
801
ID : consumerID ,
802
- Name : "hooks" ,
802
+ Name : conf . Hooks . Name ,
803
803
Description : "Autogenerated configuration for hooks service" ,
804
804
Type : api .StartupConfigConsumerTypeHooks ,
805
805
}
@@ -816,7 +816,7 @@ func getInitTokenFromExistingConfiguration(conf Configuration) (string, error) {
816
816
}
817
817
var cfg = api.StartupConfigConsumer {
818
818
ID : consumerID ,
819
- Name : "repositories" ,
819
+ Name : conf . Repositories . Name ,
820
820
Description : "Autogenerated configuration for repositories service" ,
821
821
Type : api .StartupConfigConsumerTypeRepositories ,
822
822
}
@@ -833,7 +833,7 @@ func getInitTokenFromExistingConfiguration(conf Configuration) (string, error) {
833
833
}
834
834
var cfg = api.StartupConfigConsumer {
835
835
ID : consumerID ,
836
- Name : "migrate" ,
836
+ Name : conf . DatabaseMigrate . Name ,
837
837
Description : "Autogenerated configuration for migrate service" ,
838
838
Type : api .StartupConfigConsumerTypeDBMigrate ,
839
839
}
@@ -850,7 +850,7 @@ func getInitTokenFromExistingConfiguration(conf Configuration) (string, error) {
850
850
}
851
851
var cfg = api.StartupConfigConsumer {
852
852
ID : consumerID ,
853
- Name : "vcs" ,
853
+ Name : conf . VCS . Name ,
854
854
Description : "Autogenerated configuration for vcs service" ,
855
855
Type : api .StartupConfigConsumerTypeVCS ,
856
856
}
@@ -867,7 +867,7 @@ func getInitTokenFromExistingConfiguration(conf Configuration) (string, error) {
867
867
}
868
868
var cfg = api.StartupConfigConsumer {
869
869
ID : consumerID ,
870
- Name : "cdn" ,
870
+ Name : conf . CDN . Name ,
871
871
Description : "Autogenerated configuration for cdn service" ,
872
872
Type : api .StartupConfigConsumerTypeCDN ,
873
873
}
@@ -884,7 +884,7 @@ func getInitTokenFromExistingConfiguration(conf Configuration) (string, error) {
884
884
}
885
885
var cfg = api.StartupConfigConsumer {
886
886
ID : consumerID ,
887
- Name : "elasticsearch" ,
887
+ Name : conf . ElasticSearch . Name ,
888
888
Description : "Autogenerated configuration for elasticSearch service" ,
889
889
Type : api .StartupConfigConsumerTypeElasticsearch ,
890
890
}
0 commit comments