Skip to content

Commit 0769b6d

Browse files
committed
chore: align meshstack_integration docs with API
1 parent e58e3ee commit 0769b6d

File tree

4 files changed

+105
-74
lines changed

4 files changed

+105
-74
lines changed

docs/data-sources/integrations.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
page_title: "meshstack_integrations Data Source - terraform-provider-meshstack"
44
subcategory: ""
55
description: |-
6-
List of integrations.
6+
Retrieve a list of integrations. Includes integrations that belong to your workspace as well as built-in integrations (replicator and metering). Platform administrators can retrieve any integration. Sensitive fields are masked with a hash value for security purposes.
77
---
88

99
# meshstack_integrations (Data Source)
1010

11-
List of integrations.
11+
Retrieve a list of integrations. Includes integrations that belong to your workspace as well as built-in integrations (replicator and metering). Platform administrators can retrieve any integration. Sensitive fields are masked with a hash value for security purposes.
1212

1313
## Example Usage
1414

@@ -23,27 +23,27 @@ data "meshstack_integrations" "all" {
2323

2424
### Read-Only
2525

26-
- `integrations` (Attributes List) List of integrations (see [below for nested schema](#nestedatt--integrations))
27-
- `workload_identity_federation` (Attributes) Workload identity federation information for built in integrations. (see [below for nested schema](#nestedatt--workload_identity_federation))
26+
- `integrations` (Attributes List) List of integrations. Each integration contains configuration for external CI/CD systems. (see [below for nested schema](#nestedatt--integrations))
27+
- `workload_identity_federation` (Attributes) Workload identity federation information for built-in integrations (replicator and metering). (see [below for nested schema](#nestedatt--workload_identity_federation))
2828

2929
<a id="nestedatt--integrations"></a>
3030
### Nested Schema for `integrations`
3131

3232
Optional:
3333

34-
- `status` (Attributes) (see [below for nested schema](#nestedatt--integrations--status))
34+
- `status` (Attributes) Status information of the integration. System-managed state. (see [below for nested schema](#nestedatt--integrations--status))
3535

3636
Read-Only:
3737

38-
- `metadata` (Attributes) (see [below for nested schema](#nestedatt--integrations--metadata))
39-
- `spec` (Attributes) (see [below for nested schema](#nestedatt--integrations--spec))
38+
- `metadata` (Attributes) Metadata of the integration. Contains identifiers and ownership details. (see [below for nested schema](#nestedatt--integrations--metadata))
39+
- `spec` (Attributes) Specification of the integration. Contains configuration settings specific to the integration type. (see [below for nested schema](#nestedatt--integrations--spec))
4040

4141
<a id="nestedatt--integrations--status"></a>
4242
### Nested Schema for `integrations.status`
4343

4444
Read-Only:
4545

46-
- `is_built_in` (Boolean)
46+
- `is_built_in` (Boolean) Indicates whether this is a built-in integration (replicator or metering).
4747
- `workload_identity_federation` (Attributes) (see [below for nested schema](#nestedatt--integrations--status--workload_identity_federation))
4848

4949
<a id="nestedatt--integrations--status--workload_identity_federation"></a>
@@ -89,26 +89,26 @@ Read-Only:
8989

9090
Read-Only:
9191

92-
- `owned_by_workspace` (String)
93-
- `uuid` (String)
92+
- `owned_by_workspace` (String) Identifier of the workspace that owns this integration.
93+
- `uuid` (String) UUID of the integration.
9494

9595

9696
<a id="nestedatt--integrations--spec"></a>
9797
### Nested Schema for `integrations.spec`
9898

9999
Read-Only:
100100

101-
- `config` (Attributes) (see [below for nested schema](#nestedatt--integrations--spec--config))
102-
- `display_name` (String)
101+
- `config` (Attributes) Configuration for the integration. Specifies one of github, gitlab, or azuredevops integration types. (see [below for nested schema](#nestedatt--integrations--spec--config))
102+
- `display_name` (String) Display name of the integration.
103103

104104
<a id="nestedatt--integrations--spec--config"></a>
105105
### Nested Schema for `integrations.spec.config`
106106

107107
Optional:
108108

109-
- `azuredevops` (Attributes) (see [below for nested schema](#nestedatt--integrations--spec--config--azuredevops))
110-
- `github` (Attributes) (see [below for nested schema](#nestedatt--integrations--spec--config--github))
111-
- `gitlab` (Attributes) (see [below for nested schema](#nestedatt--integrations--spec--config--gitlab))
109+
- `azuredevops` (Attributes) Azure DevOps integration configuration. (see [below for nested schema](#nestedatt--integrations--spec--config--azuredevops))
110+
- `github` (Attributes) GitHub integration configuration. (see [below for nested schema](#nestedatt--integrations--spec--config--github))
111+
- `gitlab` (Attributes) GitLab integration configuration. (see [below for nested schema](#nestedatt--integrations--spec--config--gitlab))
112112

113113
<a id="nestedatt--integrations--spec--config--azuredevops"></a>
114114
### Nested Schema for `integrations.spec.config.azuredevops`
@@ -119,9 +119,9 @@ Required:
119119

120120
Read-Only:
121121

122-
- `base_url` (String)
123-
- `organization` (String)
124-
- `runner_ref` (Attributes) (see [below for nested schema](#nestedatt--integrations--spec--config--azuredevops--runner_ref))
122+
- `base_url` (String) Base URL of the Azure DevOps instance (e.g., https://dev.azure.com).
123+
- `organization` (String) Azure DevOps organization name.
124+
- `runner_ref` (Attributes) Reference to the building block runner that executes Azure DevOps pipelines. (see [below for nested schema](#nestedatt--integrations--spec--config--azuredevops--runner_ref))
125125

126126
<a id="nestedatt--integrations--spec--config--azuredevops--personal_access_token"></a>
127127
### Nested Schema for `integrations.spec.config.azuredevops.personal_access_token`
@@ -136,8 +136,8 @@ Read-Only:
136136

137137
Read-Only:
138138

139-
- `kind` (String)
140-
- `uuid` (String)
139+
- `kind` (String) meshObject type, always meshBuildingBlockRunner.
140+
- `uuid` (String) UUID of the meshBuildingBlockRunner.
141141

142142

143143

@@ -150,10 +150,10 @@ Required:
150150

151151
Read-Only:
152152

153-
- `app_id` (String)
154-
- `base_url` (String)
155-
- `owner` (String)
156-
- `runner_ref` (Attributes) (see [below for nested schema](#nestedatt--integrations--spec--config--github--runner_ref))
153+
- `app_id` (String) GitHub App ID for authentication.
154+
- `base_url` (String) Base URL of the GitHub instance (e.g., https://github.com for GitHub.com or your GitHub Enterprise URL).
155+
- `owner` (String) GitHub organization or user that owns the repositories.
156+
- `runner_ref` (Attributes) Reference to the building block runner that executes GitHub workflows. (see [below for nested schema](#nestedatt--integrations--spec--config--github--runner_ref))
157157

158158
<a id="nestedatt--integrations--spec--config--github--app_private_key"></a>
159159
### Nested Schema for `integrations.spec.config.github.app_private_key`
@@ -168,8 +168,8 @@ Read-Only:
168168

169169
Read-Only:
170170

171-
- `kind` (String)
172-
- `uuid` (String)
171+
- `kind` (String) meshObject type, always meshBuildingBlockRunner.
172+
- `uuid` (String) UUID of the meshBuildingBlockRunner.
173173

174174

175175

@@ -178,16 +178,16 @@ Read-Only:
178178

179179
Read-Only:
180180

181-
- `base_url` (String)
182-
- `runner_ref` (Attributes) (see [below for nested schema](#nestedatt--integrations--spec--config--gitlab--runner_ref))
181+
- `base_url` (String) Base URL of the GitLab instance (e.g., https://gitlab.com or your self-hosted GitLab URL).
182+
- `runner_ref` (Attributes) Reference to the building block runner that executes GitLab pipelines. (see [below for nested schema](#nestedatt--integrations--spec--config--gitlab--runner_ref))
183183

184184
<a id="nestedatt--integrations--spec--config--gitlab--runner_ref"></a>
185185
### Nested Schema for `integrations.spec.config.gitlab.runner_ref`
186186

187187
Read-Only:
188188

189-
- `kind` (String)
190-
- `uuid` (String)
189+
- `kind` (String) meshObject type, always meshBuildingBlockRunner.
190+
- `uuid` (String) UUID of the meshBuildingBlockRunner.
191191

192192

193193

docs/resources/integration.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
page_title: "meshstack_integration Resource - terraform-provider-meshstack"
44
subcategory: ""
55
description: |-
6-
Manages a meshIntegration in meshStack. Integrations configure external CI/CD systems (GitHub, GitLab, Azure DevOps) for building block execution.
6+
Manages a meshIntegration in meshStack. Integrations configure external CI/CD systems (GitHub, GitLab, Azure DevOps) for building block execution. Secrets in the integration configurations are encrypted and stored securely. When retrieving the integration, these fields are returned with a hash value instead of the actual secret, enabling drift detection while maintaining security.
77
---
88

99
# meshstack_integration (Resource)
1010

11-
Manages a meshIntegration in meshStack. Integrations configure external CI/CD systems (GitHub, GitLab, Azure DevOps) for building block execution.
11+
Manages a meshIntegration in meshStack. Integrations configure external CI/CD systems (GitHub, GitLab, Azure DevOps) for building block execution. Secrets in the integration configurations are encrypted and stored securely. When retrieving the integration, these fields are returned with a hash value instead of the actual secret, enabling drift detection while maintaining security.
1212

1313
## Example Usage
1414

@@ -77,20 +77,20 @@ resource "meshstack_integration" "example_gitlab" {
7777

7878
### Required
7979

80-
- `metadata` (Attributes) Metadata of the integration. (see [below for nested schema](#nestedatt--metadata))
81-
- `spec` (Attributes) Specification of the integration. (see [below for nested schema](#nestedatt--spec))
80+
- `metadata` (Attributes) Metadata of the integration. Contains identifiers and ownership details. (see [below for nested schema](#nestedatt--metadata))
81+
- `spec` (Attributes) Specification of the integration. Contains configuration settings specific to the integration type. (see [below for nested schema](#nestedatt--spec))
8282

8383
### Read-Only
8484

8585
- `ref` (Attributes) Reference to integration, can be used in building block definitions. (see [below for nested schema](#nestedatt--ref))
86-
- `status` (Attributes) Status information of the integration. Computed by meshStack. (see [below for nested schema](#nestedatt--status))
86+
- `status` (Attributes) Status information of the integration. System-managed state computed by meshStack. (see [below for nested schema](#nestedatt--status))
8787

8888
<a id="nestedatt--metadata"></a>
8989
### Nested Schema for `metadata`
9090

9191
Required:
9292

93-
- `owned_by_workspace` (String) Identifier of the workspace that owns this integration.
93+
- `owned_by_workspace` (String) Identifier of the workspace that owns this integration. The integration will be owned by the workspace specified here.
9494

9595
Read-Only:
9696

internal/provider/integration_resource_schema.go

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,13 @@ func (r *integrationResource) Schema(_ context.Context, _ resource.SchemaRequest
6868
)
6969
resp.Schema = schema.Schema{
7070
MarkdownDescription: "Manages a meshIntegration in meshStack. " +
71-
"Integrations configure external CI/CD systems (GitHub, GitLab, Azure DevOps) for building block execution.",
71+
"Integrations configure external CI/CD systems (GitHub, GitLab, Azure DevOps) for building block execution. " +
72+
"Secrets in the integration configurations are encrypted and stored securely. When retrieving the integration, " +
73+
"these fields are returned with a hash value instead of the actual secret, enabling drift detection while maintaining security.",
7274

7375
Attributes: map[string]schema.Attribute{
7476
"metadata": schema.SingleNestedAttribute{
75-
MarkdownDescription: "Metadata of the integration.",
77+
MarkdownDescription: "Metadata of the integration. Contains identifiers and ownership details.",
7678
Required: true,
7779
Attributes: map[string]schema.Attribute{
7880
"uuid": schema.StringAttribute{
@@ -83,7 +85,7 @@ func (r *integrationResource) Schema(_ context.Context, _ resource.SchemaRequest
8385
},
8486
},
8587
"owned_by_workspace": schema.StringAttribute{
86-
MarkdownDescription: "Identifier of the workspace that owns this integration.",
88+
MarkdownDescription: "Identifier of the workspace that owns this integration. The integration will be owned by the workspace specified here.",
8789
Required: true,
8890
PlanModifiers: []planmodifier.String{
8991
stringplanmodifier.RequiresReplace(),
@@ -92,7 +94,7 @@ func (r *integrationResource) Schema(_ context.Context, _ resource.SchemaRequest
9294
},
9395
},
9496
"spec": schema.SingleNestedAttribute{
95-
MarkdownDescription: "Specification of the integration.",
97+
MarkdownDescription: "Specification of the integration. Contains configuration settings specific to the integration type.",
9698
Required: true,
9799
Attributes: map[string]schema.Attribute{
98100
"display_name": schema.StringAttribute{
@@ -182,7 +184,7 @@ func (r *integrationResource) Schema(_ context.Context, _ resource.SchemaRequest
182184
},
183185
},
184186
"status": schema.SingleNestedAttribute{
185-
MarkdownDescription: "Status information of the integration. Computed by meshStack.",
187+
MarkdownDescription: "Status information of the integration. System-managed state computed by meshStack.",
186188
Computed: true,
187189
Attributes: map[string]schema.Attribute{
188190
"is_built_in": schema.BoolAttribute{

0 commit comments

Comments
 (0)