Skip to content

Commit

Permalink
Migrate tag resource (#719)
Browse files Browse the repository at this point in the history
* Chore!: Migrate tag resource

* Migrate tag resource

* fix build fail

* rename

* Add resource_tag_test.go

* Fix concurrent issue

* Fix update and import

* Fix document

* Fix wrong schema document

* refactor remove duplicate code

* tidy

* updated default value for description

---------

Co-authored-by: Huy Nguyen <huy.nguyen@octopus.com>
Co-authored-by: Ben Pearce <ben.pearce@octopus.com>
  • Loading branch information
3 people authored Aug 13, 2024
1 parent 3b1285c commit c16f12a
Show file tree
Hide file tree
Showing 8 changed files with 598 additions and 385 deletions.
12 changes: 6 additions & 6 deletions docs/resources/tag.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ This resource manages tags in Octopus Deploy.

### Required

- `color` (String)
- `name` (String) The name of this resource.
- `color` (String) The color of the tag.
- `name` (String) The name of the tag.
- `tag_set_id` (String) The ID of the associated tag set.

### Optional

- `description` (String) The description of this tag.
- `sort_order` (Number)
- `tag_set_space_id` (String) The Space ID of the associated tag set. Required if the tag set is not in the same space as what is configured on the provider
- `description` (String) The description of the tag.
- `sort_order` (Number) The sort order of the tag.
- `tag_set_space_id` (String) The Space ID of the associated tag set. Required if the tag set is not in the same space as what is configured on the provider.

### Read-Only

- `canonical_tag_name` (String)
- `canonical_tag_name` (String) The canonical name of the tag.
- `id` (String) The ID of this resource.


1 change: 0 additions & 1 deletion octopusdeploy/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ func Provider() *schema.Provider {
"octopusdeploy_ssh_connection_deployment_target": resourceSSHConnectionDeploymentTarget(),
"octopusdeploy_ssh_key_account": resourceSSHKeyAccount(),
"octopusdeploy_static_worker_pool": resourceStaticWorkerPool(),
"octopusdeploy_tag": resourceTag(),
"octopusdeploy_team": resourceTeam(),
"octopusdeploy_token_account": resourceTokenAccount(),
"octopusdeploy_user": resourceUser(),
Expand Down
304 changes: 0 additions & 304 deletions octopusdeploy/resource_tag.go

This file was deleted.

Loading

0 comments on commit c16f12a

Please sign in to comment.