Skip to content

Commit

Permalink
update tags docs and tests (#75)
Browse files Browse the repository at this point in the history
Update tags docs and tests

Make it clear for users

Reviewed-by: Artem Lifshits
  • Loading branch information
anton-sidelnikov authored Apr 2, 2024
1 parent f69e1dd commit d82aa6e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# OpenTelekomCloud Docker Machine driver

[![Zuul Gate](https://zuul.eco.tsi-dev.otc-service.com/api/tenant/eco/badge?project=opentelekomcloud/docker-machine-opentelekomcloud&pipeline=check&branch=devel)](https://zuul.eco.tsi-dev.otc-service.com/t/eco/builds?project=opentelekomcloud%2Fdocker-machine-opentelekomcloud)
[![Zuul Gate](https://zuul.otc-service.com/api/tenant/eco/badge?project=opentelekomcloud/docker-machine-opentelekomcloud&pipeline=check&branch=devel)](https://zuul.eco.tsi-dev.otc-service.com/t/eco/builds?project=opentelekomcloud%2Fdocker-machine-opentelekomcloud)
[![Go Report Card](https://goreportcard.com/badge/github.com/opentelekomcloud/docker-machine-opentelekomcloud)](https://goreportcard.com/report/github.com/opentelekomcloud/docker-machine-opentelekomcloud)
![GitHub](https://img.shields.io/github/license/opentelekomcloud/docker-machine-opentelekomcloud)

Expand Down Expand Up @@ -28,6 +28,7 @@ There are two more options of docker-machine driver suitable for usage with Open
| AK/SK auth | Yes | Yes | No |
| Server group | **Yes** | No | No |
| Security group(s) | Multiple | Single | Multiple |
| Instance Tags | Multiple | No | No |
| Rancher integration | Needs setup | Built-in | Built-in |

### Installation
Expand Down
2 changes: 1 addition & 1 deletion docs/supported-options-v0.3.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
| `--otc-subnet-id` | `OS_SUBNET_ID` | | Subnet ID the machine will be connected on |
| `--otc-subnet-name` | `OS_SUBNET_NAME` | subnet-docker-machine | Subnet name the machine will be connected on |
| `--otc-token` | `OS_TOKEN` | | Authorization token |
| `--otc-tags` | `OS_TAGS` | | Comma-separated list of instance tags |
| `--otc-tags` | `OS_TAGS` | | Comma-separated list of instance tags (e.g. key1.value1,key2.value2,key3) |
| `--otc-user-data-file` | `OS_USER_DATA_FILE` | | File containing an userdata script |
| `--otc-user-data-raw` | | | Contents of user data file as a string |
| `--otc-username` | `OS_USERNAME` | | OpenTelekomCloud username |
Expand Down
2 changes: 1 addition & 1 deletion driver/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func (d *Driver) GetCreateFlags() []mcnflag.Flag {
mcnflag.StringFlag{
Name: "otc-tags",
EnvVar: "OS_TAGS",
Usage: "Comma-separated list of instance tags",
Usage: "Comma-separated list of instance tags (e.g. key1.value1,key2.value2,key3)",
},
}
}
Expand Down
4 changes: 2 additions & 2 deletions driver/opentelekomcloud_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var (
"otc-cloud": defaultCloud(),
"otc-subnet-name": subnetName,
"otc-vpc-name": vpcName,
"otc-tags": "machine,test",
"otc-tags": "machine.dmd,test.value,empty",
"otc-availability-zone": defaultAz(),
}
testEnv = openstack.NewEnv("OS_")
Expand Down Expand Up @@ -136,7 +136,7 @@ func TestDriver_Create(t *testing.T) {
"otc-project-name": testEnv.GetEnv("PROJECT_NAME"),
"otc-subnet-name": defaultFlags["otc-subnet-name"],
"otc-vpc-name": defaultFlags["otc-vpc-name"],
"otc-tags": "machine,test",
"otc-tags": "machine.dmd,test.value,empty",
},
}
for name, flags := range testFlags {
Expand Down

0 comments on commit d82aa6e

Please sign in to comment.