Skip to content
This repository was archived by the owner on Feb 13, 2024. It is now read-only.

[FEATURE REQUEST] Support of labels for resources #316

Closed
1 task
lechnerc77 opened this issue Nov 16, 2022 · 4 comments · Fixed by #319
Closed
1 task

[FEATURE REQUEST] Support of labels for resources #316

lechnerc77 opened this issue Nov 16, 2022 · 4 comments · Fixed by #319
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@lechnerc77
Copy link
Member

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

@lechnerc77 lechnerc77 added the enhancement New feature or request label Nov 16, 2022
@lechnerc77
Copy link
Member Author

lechnerc77 commented Nov 16, 2022

Tasks:

  • Analysis of commands where labels are available
  • Enhancement of btpsa-usecase.json and btpsa-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)

@lechnerc77
Copy link
Member Author

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

@lechnerc77 lechnerc77 added this to the btpsa-v1.1.0 milestone Nov 22, 2022
@lechnerc77 lechnerc77 self-assigned this Nov 22, 2022
@lechnerc77 lechnerc77 modified the milestones: btpsa-v1.1.0, btpsa-v1.2.0 Nov 23, 2022
@lechnerc77 lechnerc77 moved this from Backlog to In Progress in btpsa planning Nov 23, 2022
@lechnerc77
Copy link
Member Author

Merged to dev branch, functionality will be available with next release

@lechnerc77 lechnerc77 moved this from In Progress to Test/Review in btpsa planning Nov 28, 2022
@lechnerc77 lechnerc77 moved this from Test/Review to Done in btpsa planning Dec 5, 2022
@lechnerc77
Copy link
Member Author

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)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant