Skip to content

Commit b38d678

Browse files
authored
Fix tenant slug error on auto generation (#6)
* fix tenant slug * hatchet_organization data source remove
1 parent 3f6ddda commit b38d678

File tree

16 files changed

+17
-193
lines changed

16 files changed

+17
-193
lines changed

GNUmakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ build:
44
go build -o terraform-provider-hatchet
55

66
install: build
7-
mkdir -p ~/.terraform.d/plugins/registry.terraform.io/hatchet-dev/hatchet/0.1.0/darwin_arm64
8-
mv terraform-provider-hatchet ~/.terraform.d/plugins/registry.terraform.io/hatchet-dev/hatchet/0.1.0/darwin_arm64/terraform-provider-hatchet
7+
mkdir -p ~/.terraform.d/plugins/registry.terraform.io/hatchet-dev/hatchet/0.2.1/darwin_arm64
8+
mv terraform-provider-hatchet ~/.terraform.d/plugins/registry.terraform.io/hatchet-dev/hatchet/0.2.1/darwin_arm64/terraform-provider-hatchet
99
lint:
1010
golangci-lint run
1111

docs/data-sources/organization.md

Lines changed: 0 additions & 44 deletions
This file was deleted.

docs/data-sources/tenant.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ terraform {
1717
required_providers {
1818
hatchet = {
1919
source = "hatchet-dev/hatchet"
20-
version = "~> 0.1.0"
20+
version = "~> 0.2.1"
2121
}
2222
}
2323
}

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ terraform {
1616
required_providers {
1717
hatchet = {
1818
source = "hatchet-dev/hatchet"
19-
version = "~> 0.1.0"
19+
version = "~> 0.2.1"
2020
}
2121
}
2222
}

docs/resources/organization_member.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ terraform {
1717
required_providers {
1818
hatchet = {
1919
source = "hatchet-dev/hatchet"
20-
version = "~> 0.1.0"
20+
version = "~> 0.2.1"
2121
}
2222
}
2323
}

docs/resources/tenant.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ terraform {
1717
required_providers {
1818
hatchet = {
1919
source = "hatchet-dev/hatchet"
20-
version = "~> 0.1.0"
20+
version = "~> 0.2.1"
2121
}
2222
}
2323
}
@@ -29,6 +29,7 @@ provider "hatchet" {
2929
# Create a new tenant
3030
resource "hatchet_tenant" "production" {
3131
name = "Production Environment"
32+
slug = "production-123"
3233
}
3334
3435
# Create another tenant
@@ -46,7 +47,7 @@ resource "hatchet_tenant" "staging" {
4647

4748
### Optional
4849

49-
- `slug` (String) The slug of the tenant. If not provided, a random slug will be generated.
50+
- `slug` (String) The slug of the tenant. If not provided, a slug will be generated from the name.
5051

5152
### Read-Only
5253

docs/resources/tenant_api_token.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ terraform {
1717
required_providers {
1818
hatchet = {
1919
source = "hatchet-dev/hatchet"
20-
version = "~> 0.1.0"
20+
version = "~> 0.2.1"
2121
}
2222
}
2323
}

examples/data-sources/hatchet_organization/data-source.tf

Lines changed: 0 additions & 17 deletions
This file was deleted.

examples/data-sources/hatchet_tenant/data-source.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ terraform {
22
required_providers {
33
hatchet = {
44
source = "hatchet-dev/hatchet"
5-
version = "~> 0.1.0"
5+
version = "~> 0.2.1"
66
}
77
}
88
}

examples/provider/provider.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ terraform {
22
required_providers {
33
hatchet = {
44
source = "hatchet-dev/hatchet"
5-
version = "~> 0.1.0"
5+
version = "~> 0.2.1"
66
}
77
}
88
}

0 commit comments

Comments
 (0)