cloudfoundry / cloudfoundry/multiapps-cli-plugin

bg-deploy different result with option -e

Open
#218 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
87
Forks
42
Avg merge
17d 21h
Merged PRs (30d)
1

Description

Description

Dear mta-cli colleagues,

I try to deploy my meta-app with an extension file. When I run the following commands I get different results:

success scenario:

  1. mbt build -p=cf -e ./extensions/extension.mtaext --mtar=service.mtar
  2. cf bg-deploy ./mta_archives/service.mtar --no-confirm

error scenario:

  1. mbt build -p=cf --mtar=service.mtar
  2. cf bg-deploy ./mta_archives/servicve.mtar -e ./extension/extension.mtaext --no-confirm

MTA.yaml

`modules:

Node Server

  • name: my-app
    type: custom
    path: gen/srv
    build-parameters:
    builder: custom
    ignore: ["jest.*"]
    commands:
    - npm install --omit=dev
    parameters:
    memory: 1024M
    buildpack: nodejs_buildpack
    domain: cert.${default-domain}
    requires:
    • name: my-dependent-service
      parameters:
      path: ./my-cert.json
      `

MTAEXT.matext

modules: - name: my-app requires: - name: my-depndent-service parameters: path: ./my-new-space-dep-cert.json

My assumption is that both scenarios behave equally. Unfortunately the second scenario doesn't merge the extension file with the mta file properly.

Your environment
  • MultiApps Controller version - 3.2.2
  • MultiApps CF CLI Plugin version - 3.2.2
  • which CF vendor is used - SAP BTP Cloud Foundry
  •  MTA Build Tools 1.2.28
    
Steps to reproduce
Additional information

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the two mbt build and cf bg-deploy command sequences using the provided MTA.yaml and MTAEXT.matext examples. Compare how the extension is merged in each path; done means deploying with -e during bg-deploy produces the same merged result as supplying the extension to mbt build.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.