cloud-barista / cb-tumblebug

Cloud-Barista Multi-Cloud Infra Management Framework
Apache License 2.0
56 stars 52 forks source link

Add Get Label Info and remove direct string usage #1820

Closed seokho-son closed 2 months ago

seokho-son commented 2 months ago

http://localhost:1323/tumblebug/labelInfo

응답 예시

{
  "labelTypes": [
    "vNet",
    "subnet",
    "dataDisk",
    "nlb",
    "vm",
    "mci",
    "subGroup",
    "k8s",
    "kubernetes",
    "container",
    "ns"
  ],
  "systemLabels": {
    "sys.cidr": "10.0.0.0/24",
    "sys.connectionName": "connection-1234",
    "sys.createdTime": "2021-01-01T00:00:00Z",
    "sys.cspResourceId": "csp-vm-1234",
    "sys.cspResourceName": "csp-vm-1234",
    "sys.cspVNetId": "csp-vnet-1234",
    "sys.cspVNetName": "csp-vnet-1234",
    "sys.deploymentType": "vm",
    "sys.description": "Description",
    "sys.diskSize": "10",
    "sys.diskType": "HDD",
    "sys.id": "mci-1234",
    "sys.ipv4_CIDR": "10.0.0.0/24",
    "sys.labelType": "mci",
    "sys.manager": "cb-tumblebug",
    "sys.mciId": "mci-1234",
    "sys.name": "mci-1234",
    "sys.namespace": "default",
    "sys.purpose": "testing",
    "sys.registered": "true",
    "sys.status": "Running",
    "sys.subGroupId": "sg-1234",
    "sys.uid": "wef12awefadf1221edcf",
    "sys.vNetId": "vnet-1234",
    "sys.version": "1.0",
    "sys.zone": "zone-1"
  }
}
seokho-son commented 2 months ago

/approve