@@ -58,19 +58,16 @@ import (
58
58
apmodel "github.com/codefresh-io/go-sdk/pkg/codefresh/model/app-proxy"
59
59
"github.com/ghodss/yaml"
60
60
"github.com/go-git/go-billy/v5/memfs"
61
- billyUtils "github.com/go-git/go-billy/v5/util"
62
61
"github.com/manifoldco/promptui"
63
62
"github.com/rkrmr33/checklist"
64
63
"github.com/spf13/cobra"
65
64
"golang.org/x/text/cases"
66
65
"golang.org/x/text/language"
67
- appsv1 "k8s.io/api/apps/v1"
68
66
v1 "k8s.io/api/core/v1"
69
67
rbacv1 "k8s.io/api/rbac/v1"
70
68
kerrors "k8s.io/apimachinery/pkg/api/errors"
71
69
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
72
70
kusttypes "sigs.k8s.io/kustomize/api/types"
73
- kustid "sigs.k8s.io/kustomize/kyaml/resid"
74
71
)
75
72
76
73
type (
@@ -1476,45 +1473,6 @@ func CreateInternalRouterIngress(ctx context.Context, opts *CreateIngressOptions
1476
1473
return apu .PushWithMessage (ctx , r , "Created Internal Router Ingresses" )
1477
1474
}
1478
1475
1479
- func configureArgoWorkflows (ctx context.Context , opts * RuntimeInstallOptions , rt * runtime.Runtime ) error {
1480
- r , fs , err := opts .InsCloneOpts .GetRepo (ctx )
1481
- if err != nil {
1482
- return err
1483
- }
1484
-
1485
- overlaysDir := fs .Join (apstore .Default .AppsDir , "workflows" , apstore .Default .OverlaysDir , rt .Name )
1486
-
1487
- if err = billyUtils .WriteFile (fs , fs .Join (overlaysDir , "route-patch.json" ), workflowsRoutePatch , 0666 ); err != nil {
1488
- return err
1489
- }
1490
-
1491
- kust , err := kustutil .ReadKustomization (fs , overlaysDir )
1492
- if err != nil {
1493
- return err
1494
- }
1495
-
1496
- kust .Patches = append (kust .Patches , kusttypes.Patch {
1497
- Target : & kusttypes.Selector {
1498
- ResId : kustid.ResId {
1499
- Gvk : kustid.Gvk {
1500
- Group : appsv1 .SchemeGroupVersion .Group ,
1501
- Version : appsv1 .SchemeGroupVersion .Version ,
1502
- Kind : "Deployment" ,
1503
- },
1504
- Name : store .Get ().ArgoWfServiceName ,
1505
- },
1506
- },
1507
- Path : "route-patch.json" ,
1508
- })
1509
- if err = kustutil .WriteKustomization (fs , kust , overlaysDir ); err != nil {
1510
- return err
1511
- }
1512
-
1513
- log .G (ctx ).Info ("Pushing Argo Workflows configuration" )
1514
-
1515
- return apu .PushWithMessage (ctx , r , "Configured Argo Workflows " )
1516
- }
1517
-
1518
1476
func mergeAnnotations (annotation map [string ]string , newAnnotation map [string ]string ) {
1519
1477
for key , element := range newAnnotation {
1520
1478
annotation [key ] = element
0 commit comments