[FEATURE REQUEST] Support of labels for resources
lechnerc77 opened this issue · comments
Which area is mainly impacted
CLI in general
Requested Feature
The btpsa should support the definition of labels when resources are created. This is an important measure to enable e.g. governance and cost analysis.
The BTP CLI supports this feature see e.g. https://help.sap.com/docs/BTP/btp-cli/btp-create-accounts-directory.html parameter --labels JSON
Use Case/Scenario
Creation of resources
Would you like to support us?
- Yes, I would like to support you
Anything else?
No response
Tasks:
- Analysis of commands where labels are available
- Enhancement of
btpsa-usecase.json
andbtpsa-parameters.json
including JSON schemas - Enhancement of btp cli calls to hand over labels from input
- Enhancement of Kyma/Kubernetes calls to hand over labels from input
- Enhancement of CF calls to set the labels (special case due to https://cli.cloudfoundry.org/de-DE/v7/set-label.html)
The following command allow the transfer of labels to the resources:
- btp create accounts/directory --labels JSON
- btp create accounts/subaccount --labels JSON
- btp create services/binding --labels JSON
- btp create services/instance --labels JSON
Merged to dev branch, functionality will be available with next release
Close issue - release 1.2.0 is available.
Docker Image is updated (docker pull ghcr.io/sap-samples/btp-setup-automator:btpsa-v1.2.0
)