Skip to content

Commit 0d04e07

Browse files
authored
feat: allow unauthenticated usage and expose resource_control_id for Docker resources for terraform output
1 parent 508accd commit 0d04e07

File tree

15 files changed

+164
-39
lines changed

15 files changed

+164
-39
lines changed

docs/resources/docker_config.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,4 @@ Use `terraform destroy` to remove the config.
5252
| Name | Description |
5353
|------|--------------------------|
5454
| `id` | ID of the created Docker config (from Portainer) |
55+
| `resource_control_id` | ID of the automatically generated Portainer ResourceControl for this config |

docs/resources/docker_network.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,5 @@ terraform apply
100100

101101
| Name | Description |
102102
|------|---------------------------------------------------------------|
103-
| `id` | ID of the created Docker network (as returned by Portainer) |
103+
| `id` | ID of the created Docker network (as returned by Portainer) |
104+
| `resource_control_id` | ID of the automatically generated Portainer ResourceControl for this network |

docs/resources/docker_volume.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,3 +154,4 @@ terraform destroy
154154
| Name | Description |
155155
|------|--------------------------|
156156
| `id` | Unique identifier of the volume |
157+
| `resource_control_id` | ID of the automatically generated Portainer ResourceControl for this volume |

docs/resources/stack.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,4 +376,4 @@ terraform apply
376376
| Name | Description |
377377
|------|---------------------------------|
378378
| `id` | ID of the created stack |
379-
379+
| `resource_control_id` | ID of the automatically generated Portainer ResourceControl for this stack |

e2e-tests/user_admin/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
| Name | Description | Type | Default | Required |
1919
|------|-------------|------|---------|:--------:|
20-
| <a name="input_portainer_api_key"></a> [portainer\_api\_key](#input\_portainer\_api\_key) | Default Portainer Admin API Key | `string` | `"some-fake-api-token"` | no |
2120
| <a name="input_portainer_password"></a> [portainer\_password](#input\_portainer\_password) | Portainer password | `string` | `"password123456789"` | no |
2221
| <a name="input_portainer_skip_ssl_verify"></a> [portainer\_skip\_ssl\_verify](#input\_portainer\_skip\_ssl\_verify) | Set to true to skip TLS certificate verification (useful for self-signed certs) | `bool` | `true` | no |
2322
| <a name="input_portainer_url"></a> [portainer\_url](#input\_portainer\_url) | Default Portainer URL | `string` | `"https://localhost:9443"` | no |

e2e-tests/user_admin/main.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@ terraform {
88

99
provider "portainer" {
1010
endpoint = var.portainer_url
11-
api_key = var.portainer_api_key
1211
skip_ssl_verify = var.portainer_skip_ssl_verify
1312
}

e2e-tests/user_admin/variables.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ variable "portainer_url" {
44
default = "https://localhost:9443"
55
}
66

7-
variable "portainer_api_key" {
8-
description = "Default Portainer Admin API Key"
9-
default = "some-fake-api-token"
10-
}
11-
127
variable "portainer_skip_ssl_verify" {
138
description = "Set to true to skip TLS certificate verification (useful for self-signed certs)"
149
type = bool

examples/user_admin/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
| Name | Description | Type | Default | Required |
1919
|------|-------------|------|---------|:--------:|
20-
| <a name="input_portainer_api_key"></a> [portainer\_api\_key](#input\_portainer\_api\_key) | Default Portainer Admin API Key | `string` | `"some-fake-api-token"` | no |
2120
| <a name="input_portainer_password"></a> [portainer\_password](#input\_portainer\_password) | Portainer password | `string` | `"password123456789"` | no |
2221
| <a name="input_portainer_skip_ssl_verify"></a> [portainer\_skip\_ssl\_verify](#input\_portainer\_skip\_ssl\_verify) | Set to true to skip TLS certificate verification (useful for self-signed certs) | `bool` | `true` | no |
2322
| <a name="input_portainer_url"></a> [portainer\_url](#input\_portainer\_url) | Default Portainer URL | `string` | `"https://localhost:9443"` | no |

examples/user_admin/main.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@ terraform {
88

99
provider "portainer" {
1010
endpoint = var.portainer_url
11-
api_key = var.portainer_api_key
1211
skip_ssl_verify = var.portainer_skip_ssl_verify
1312
}

examples/user_admin/variables.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ variable "portainer_url" {
44
default = "https://localhost:9443"
55
}
66

7-
variable "portainer_api_key" {
8-
description = "Default Portainer Admin API Key"
9-
default = "some-fake-api-token"
10-
}
11-
127
variable "portainer_skip_ssl_verify" {
138
description = "Set to true to skip TLS certificate verification (useful for self-signed certs)"
149
type = bool

0 commit comments

Comments
 (0)