@@ -58,19 +58,16 @@ import (
5858 apmodel "github.com/codefresh-io/go-sdk/pkg/codefresh/model/app-proxy"
5959 "github.com/ghodss/yaml"
6060 "github.com/go-git/go-billy/v5/memfs"
61- billyUtils "github.com/go-git/go-billy/v5/util"
6261 "github.com/manifoldco/promptui"
6362 "github.com/rkrmr33/checklist"
6463 "github.com/spf13/cobra"
6564 "golang.org/x/text/cases"
6665 "golang.org/x/text/language"
67- appsv1 "k8s.io/api/apps/v1"
6866 v1 "k8s.io/api/core/v1"
6967 rbacv1 "k8s.io/api/rbac/v1"
7068 kerrors "k8s.io/apimachinery/pkg/api/errors"
7169 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
7270 kusttypes "sigs.k8s.io/kustomize/api/types"
73- kustid "sigs.k8s.io/kustomize/kyaml/resid"
7471)
7572
7673type (
@@ -1476,45 +1473,6 @@ func CreateInternalRouterIngress(ctx context.Context, opts *CreateIngressOptions
14761473 return apu .PushWithMessage (ctx , r , "Created Internal Router Ingresses" )
14771474}
14781475
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-
15181476func mergeAnnotations (annotation map [string ]string , newAnnotation map [string ]string ) {
15191477 for key , element := range newAnnotation {
15201478 annotation [key ] = element
0 commit comments