@@ -145,15 +145,15 @@ func RunRuntimeCreate(ctx context.Context, opts *RuntimeCreateOptions) error {
145145 return err
146146 }
147147
148- if err = createApp (ctx , installOpts , opts .RuntimeName , "events" , store .Get ().ArgoEventsManifestsURL , opts .RuntimeName ); err != nil {
148+ if err = createApp (ctx , installOpts , opts .RuntimeName , "events" , store .Get ().ArgoEventsManifestsURL , application . AppTypeKustomize , opts .RuntimeName ); err != nil {
149149 return fmt .Errorf ("failed to create application events: %w" , err )
150150 }
151151
152- if err = createApp (ctx , installOpts , opts .RuntimeName , "rollouts" , store .Get ().ArgoRolloutsManifestsURL , opts .RuntimeName ); err != nil {
152+ if err = createApp (ctx , installOpts , opts .RuntimeName , "rollouts" , store .Get ().ArgoRolloutsManifestsURL , application . AppTypeKustomize , opts .RuntimeName ); err != nil {
153153 return fmt .Errorf ("failed to create application rollouts: %w" , err )
154154 }
155155
156- if err = createApp (ctx , installOpts , opts .RuntimeName , "workflows" , store .Get ().ArgoWorkflowsManifestsURL , opts .RuntimeName ); err != nil {
156+ if err = createApp (ctx , installOpts , opts .RuntimeName , "workflows" , store .Get ().ArgoWorkflowsManifestsURL , application . AppTypeKustomize , opts .RuntimeName ); err != nil {
157157 return fmt .Errorf ("failed to create application workflows: %w" , err )
158158 }
159159
@@ -175,7 +175,7 @@ func createCodefreshResources(ctx context.Context, cloneOpts *git.CloneOptions,
175175 }
176176
177177 resPath := cloneOpts .FS .Join (apstore .Default .AppsDir , store .Get ().ComponentsReporterName , opts .RuntimeName , "resources" )
178- if err := createApp (ctx , cloneOpts , opts .RuntimeName , store .Get ().ComponentsReporterName , cloneOpts .URL ()+ "/" + resPath , opts .RuntimeName ); err != nil {
178+ if err := createApp (ctx , cloneOpts , opts .RuntimeName , store .Get ().ComponentsReporterName , cloneOpts .URL ()+ "/" + resPath , application . AppTypeDirectory , opts .RuntimeName ); err != nil {
179179 return err
180180 }
181181
@@ -205,13 +205,14 @@ func createCodefreshResources(ctx context.Context, cloneOpts *git.CloneOptions,
205205 })
206206}
207207
208- func createApp (ctx context.Context , cloneOpts * git.CloneOptions , projectName , appName , appURL , namespace string ) error {
208+ func createApp (ctx context.Context , cloneOpts * git.CloneOptions , projectName , appName , appURL , appType , namespace string ) error {
209209 return apcmd .RunAppCreate (ctx , & apcmd.AppCreateOptions {
210210 CloneOpts : cloneOpts ,
211211 ProjectName : projectName ,
212212 AppOpts : & application.CreateOptions {
213213 AppName : appName ,
214214 AppSpecifier : appURL ,
215+ AppType : appType ,
215216 DestNamespace : namespace ,
216217 },
217218 })
0 commit comments