Skip to content

Commit 1f6934d

Browse files
mheapharshadixit12
andauthored
Release/3.0.0 (#260)
* Feat/portal v3 (#254) * tests: fix portal v2 tests to use classic resource * tests: add acceptance tests for portal v3 resources * tests: fix tests using v2 portals * OpenAPI changes * Generated provider and docs * Update CHANGELOG.md * OpenAPI changes to fix CGW gcp gateway * Generated provider and docs * Add new examples and update existing * Update CHANGELOG.md * OpenAPI changes: use v3 endpoints for portal team and auth * Generated provider and docs * Add a scenario and fix e2e tests * Feat: null support with tests (#255) * tests: Add acceptance tests for nullable properties * tests: add for opentelemetry plugin * tests: add tests for popular plugins * tests: add for request transformer, and proxy cache plugins * tests: fix misconfigured tests * tests: clean up portal dir structure * tests: fix tests which used non-nullable properties * tests: remove refs to portal v2 * OpenAPI changes * Generated provider and docs * Add test for plugin ordering * tests: fix acceptance tests * OpenAPI changes to fix plugin false diffs * Generated provider * Update CHANGELOG.md * tests: remove expectNonEmptyPlan * OpenAPI changes to fix plugin false diffs * Generated provider and docs * tests: add CRUD test for canary plugin --------- Co-authored-by: Michael Heap <m@michaelheap.com> * Feat: API builder v3 (#256) * tests: add acceptance tests for v3 api resources * Update CHANGELOG.md * Add Examples and Scenario * tests: fix for API implementation * OpenAPI changes * Generated provider and docs * examples: add attributes to konnect_api * Bump provider to v3 (#257) * Update v2->v3 references * Regenerate provider * Add Control Plane data source (#258) * Update openapi.yaml * Regenerate provider * Add data source lookup test * Update CHANGELOG * Update gateway_control_plane data example * Portal Data Source (#259) * Update openapi.yaml * Regenerate provider * Add test * Update CHANGELOG * Update examples --------- Co-authored-by: Harsha P Dixit <harsha.dixit@konghq.com>
1 parent e74b154 commit 1f6934d

1,755 files changed

Lines changed: 83126 additions & 32104 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.speakeasy/gen.lock

Lines changed: 1493 additions & 663 deletions
Large diffs are not rendered by default.

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Changelog
22

3+
## 3.0.0
4+
> Released on 2025/08/??
5+
6+
### BREAKING CHANGES
7+
* `konnect_portal` resource on v2.x of terraform-provider-konnect no longer works with v3.x. Kindly import into `konnect_portal_classic`
8+
* `konnect_control_plane_list` data source has been removed. The `konnect_control_plane` data source is now available
9+
10+
### Features
11+
* New resources `konnect_portal`, `konnect_portal_logo`, `konnect_portal_favicon`, `konnect_portal_custom_domain`, `konnect_portal_snippet`, `konnect_portal_page`, `konnect_portal_customization` for Portal are now supported
12+
* New data source `konnect_portal` is now supported
13+
* New resources `konnect_api`, `konnect_api_version`, `konnect_api_implementation`, `konnect_api_document`, `konnect_api_specification`, `konnect_api_publication` for API Builder are now supported
14+
* Add support for `gcp_vpc_peering_transit_gateway` in `konnect_cloud_gateway_transit_gateway` resource
15+
16+
### Bug Fixes
17+
* Fields that are nullable can be set to null
18+
319
## 2.14.0
420
> Released on 2025/08/13
521
Lines changed: 25 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
---
22
# generated by https://github.com/hashicorp/terraform-plugin-docs
3-
page_title: "konnect_gateway_control_plane_list Data Source - terraform-provider-konnect"
3+
page_title: "konnect_gateway_control_plane Data Source - terraform-provider-konnect"
44
subcategory: ""
55
description: |-
6-
GatewayControlPlaneList DataSource
6+
GatewayControlPlane DataSource
77
---
88

9-
# konnect_gateway_control_plane_list (Data Source)
9+
# konnect_gateway_control_plane (Data Source)
1010

11-
GatewayControlPlaneList DataSource
11+
GatewayControlPlane DataSource
1212

1313
## Example Usage
1414

1515
```terraform
16-
data "konnect_gateway_control_plane_list" "my_gatewaycontrolplanelist" {
16+
data "konnect_gateway_control_plane" "my_gatewaycontrolplane" {
1717
filter = {
1818
cloud_gateway = true
1919
cluster_type = {
@@ -30,10 +30,10 @@ data "konnect_gateway_control_plane_list" "my_gatewaycontrolplanelist" {
3030
neq = "...my_neq..."
3131
}
3232
}
33-
labels = "key:value,existCheck"
34-
page_number = 1
35-
page_size = 10
36-
sort = "created_at desc"
33+
filter_labels = "key:value,existCheck"
34+
page_number = 1
35+
page_size = 10
36+
sort = "created_at desc"
3737
}
3838
```
3939

@@ -43,16 +43,24 @@ data "konnect_gateway_control_plane_list" "my_gatewaycontrolplanelist" {
4343
### Optional
4444

4545
- `filter` (Attributes) Filters a collection of control-planes. (see [below for nested schema](#nestedatt--filter))
46-
- `labels` (String) Filter control planes in the response by associated labels.
46+
- `filter_labels` (String) Filter control planes in the response by associated labels.
4747
- `page_number` (Number) Determines which page of the entities to retrieve.
4848
- `page_size` (Number) The maximum number of items to include per page. The last page of a collection may include fewer items.
4949
- `sort` (String) Sorts a collection of control-planes. Supported sort attributes are:
5050
- created_at
5151

5252
### Read-Only
5353

54-
- `data` (Attributes List) (see [below for nested schema](#nestedatt--data))
55-
- `meta` (Attributes) returns the pagination information (see [below for nested schema](#nestedatt--meta))
54+
- `config` (Attributes) CP configuration object for related access endpoints. (see [below for nested schema](#nestedatt--config))
55+
- `description` (String) The description of the control plane in Konnect.
56+
- `id` (String) The control plane ID.
57+
- `labels` (Map of String) Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
58+
59+
Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
60+
- `name` (String) The name of the control plane.
61+
- `number` (Number)
62+
- `size` (Number)
63+
- `total` (Number)
5664

5765
<a id="nestedatt--filter"></a>
5866
### Nested Schema for `filter`
@@ -93,55 +101,23 @@ Optional:
93101

94102

95103

96-
<a id="nestedatt--data"></a>
97-
### Nested Schema for `data`
98-
99-
Read-Only:
100-
101-
- `config` (Attributes) CP configuration object for related access endpoints. (see [below for nested schema](#nestedatt--data--config))
102-
- `description` (String) The description of the control plane in Konnect.
103-
- `id` (String) The control plane ID.
104-
- `labels` (Map of String) Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
105-
106-
Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
107-
- `name` (String) The name of the control plane.
108-
109-
<a id="nestedatt--data--config"></a>
110-
### Nested Schema for `data.config`
104+
<a id="nestedatt--config"></a>
105+
### Nested Schema for `config`
111106

112107
Read-Only:
113108

114109
- `auth_type` (String) The auth type value of the cluster associated with the Runtime Group.
115110
- `cloud_gateway` (Boolean) Whether the Control Plane can be used for cloud-gateways.
116111
- `cluster_type` (String) The ClusterType value of the cluster associated with the Control Plane.
117112
- `control_plane_endpoint` (String) Control Plane Endpoint.
118-
- `proxy_urls` (Attributes Set) Array of proxy URLs associated with reaching the data-planes connected to a control-plane. (see [below for nested schema](#nestedatt--data--config--proxy_urls))
113+
- `proxy_urls` (Attributes Set) Array of proxy URLs associated with reaching the data-planes connected to a control-plane. (see [below for nested schema](#nestedatt--config--proxy_urls))
119114
- `telemetry_endpoint` (String) Telemetry Endpoint.
120115

121-
<a id="nestedatt--data--config--proxy_urls"></a>
122-
### Nested Schema for `data.config.proxy_urls`
116+
<a id="nestedatt--config--proxy_urls"></a>
117+
### Nested Schema for `config.proxy_urls`
123118

124119
Read-Only:
125120

126121
- `host` (String) Hostname of the proxy URL.
127122
- `port` (Number) Port of the proxy URL.
128123
- `protocol` (String) Protocol of the proxy URL.
129-
130-
131-
132-
133-
<a id="nestedatt--meta"></a>
134-
### Nested Schema for `meta`
135-
136-
Read-Only:
137-
138-
- `page` (Attributes) Contains pagination query parameters and the total number of objects returned. (see [below for nested schema](#nestedatt--meta--page))
139-
140-
<a id="nestedatt--meta--page"></a>
141-
### Nested Schema for `meta.page`
142-
143-
Read-Only:
144-
145-
- `number` (Number)
146-
- `size` (Number)
147-
- `total` (Number)

docs/data-sources/portal.md

Lines changed: 232 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,232 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "konnect_portal Data Source - terraform-provider-konnect"
4+
subcategory: ""
5+
description: |-
6+
Portal DataSource
7+
---
8+
9+
# konnect_portal (Data Source)
10+
11+
Portal DataSource
12+
13+
## Example Usage
14+
15+
```terraform
16+
data "konnect_portal" "my_portal" {
17+
filter = {
18+
authentication_enabled = true
19+
auto_approve_applications = true
20+
auto_approve_developers = true
21+
canonical_domain = {
22+
contains = "...my_contains..."
23+
eq = "...my_eq..."
24+
neq = "...my_neq..."
25+
ocontains = "...my_ocontains..."
26+
oeq = "...my_oeq..."
27+
}
28+
default_api_visibility = {
29+
contains = "...my_contains..."
30+
eq = "...my_eq..."
31+
neq = "...my_neq..."
32+
ocontains = "...my_ocontains..."
33+
oeq = "...my_oeq..."
34+
}
35+
default_application_auth_strategy_id = {
36+
eq = "...my_eq..."
37+
neq = "...my_neq..."
38+
oeq = "...my_oeq..."
39+
}
40+
default_domain = {
41+
contains = "...my_contains..."
42+
eq = "...my_eq..."
43+
neq = "...my_neq..."
44+
ocontains = "...my_ocontains..."
45+
oeq = "...my_oeq..."
46+
}
47+
default_page_visibility = {
48+
contains = "...my_contains..."
49+
eq = "...my_eq..."
50+
neq = "...my_neq..."
51+
ocontains = "...my_ocontains..."
52+
oeq = "...my_oeq..."
53+
}
54+
description = {
55+
contains = "...my_contains..."
56+
eq = "...my_eq..."
57+
neq = "...my_neq..."
58+
ocontains = "...my_ocontains..."
59+
oeq = "...my_oeq..."
60+
}
61+
id = {
62+
eq = "...my_eq..."
63+
neq = "...my_neq..."
64+
oeq = "...my_oeq..."
65+
}
66+
name = {
67+
contains = "...my_contains..."
68+
eq = "...my_eq..."
69+
neq = "...my_neq..."
70+
ocontains = "...my_ocontains..."
71+
oeq = "...my_oeq..."
72+
}
73+
rbac_enabled = true
74+
}
75+
page_number = 1
76+
page_size = 10
77+
sort = "...my_sort..."
78+
}
79+
```
80+
81+
<!-- schema generated by tfplugindocs -->
82+
## Schema
83+
84+
### Optional
85+
86+
- `filter` (Attributes) Filter portals returned in the response. (see [below for nested schema](#nestedatt--filter))
87+
- `page_number` (Number) Determines which page of the entities to retrieve.
88+
- `page_size` (Number) The maximum number of items to include per page. The last page of a collection may include fewer items.
89+
- `sort` (String) Sorts a collection of portals. Supported sort attributes are:
90+
- name
91+
- description
92+
- authentication_enabled
93+
- rbac_enabled
94+
- auto_approve_applications
95+
- auto_approve_developers
96+
- default_domain
97+
- canonical_domain
98+
- created_at
99+
- updated_at
100+
101+
### Read-Only
102+
103+
- `authentication_enabled` (Boolean) Whether the portal supports developer authentication. If disabled, developers cannot register for accounts or create applications.
104+
- `auto_approve_applications` (Boolean) Whether requests from applications to register for APIs will be automatically approved, or if they will be set to pending until approved by an admin.
105+
- `auto_approve_developers` (Boolean) Whether developer account registrations will be automatically approved, or if they will be set to pending until approved by an admin.
106+
- `canonical_domain` (String) The canonical domain of the developer portal
107+
- `created_at` (String) An ISO-8601 timestamp representation of entity creation date.
108+
- `default_api_visibility` (String) The default visibility of APIs in the portal. If set to `public`, newly published APIs are visible to unauthenticated developers. If set to `private`, newly published APIs are hidden from unauthenticated developers.
109+
- `default_application_auth_strategy_id` (String) The default authentication strategy for APIs published to the portal. Newly published APIs will use this authentication strategy unless overridden during publication. If set to `null`, API publications will not use an authentication strategy unless set during publication.
110+
- `default_domain` (String) The domain assigned to the portal by Konnect. This is the default place to access the portal and its API if not using a `custom_domain``.
111+
- `default_page_visibility` (String) The default visibility of pages in the portal. If set to `public`, newly created pages are visible to unauthenticated developers. If set to `private`, newly created pages are hidden from unauthenticated developers.
112+
- `description` (String) A description of the portal.
113+
- `display_name` (String) The display name of the portal. This value will be the portal's `name` in Portal API.
114+
- `id` (String) Contains a unique identifier used for this resource.
115+
- `labels` (Map of String) Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
116+
117+
Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
118+
- `name` (String) The name of the portal, used to distinguish it from other portals. Name must be unique.
119+
- `number` (Number)
120+
- `rbac_enabled` (Boolean) Whether the portal resources are protected by Role Based Access Control (RBAC). If enabled, developers view or register for APIs until unless assigned to teams with access to view and consume specific APIs. Authentication must be enabled to use RBAC.
121+
- `size` (Number)
122+
- `total` (Number)
123+
- `updated_at` (String) An ISO-8601 timestamp representation of entity update date.
124+
125+
<a id="nestedatt--filter"></a>
126+
### Nested Schema for `filter`
127+
128+
Optional:
129+
130+
- `authentication_enabled` (Boolean) Filter by a boolean value (true/false).
131+
- `auto_approve_applications` (Boolean) Filter by a boolean value (true/false).
132+
- `auto_approve_developers` (Boolean) Filter by a boolean value (true/false).
133+
- `canonical_domain` (Attributes) Filters on the given string field value by exact match inequality. (see [below for nested schema](#nestedatt--filter--canonical_domain))
134+
- `default_api_visibility` (Attributes) Filters on the given string field value by exact match inequality. (see [below for nested schema](#nestedatt--filter--default_api_visibility))
135+
- `default_application_auth_strategy_id` (Attributes) Filters on the given string field value by exact match inequality. (see [below for nested schema](#nestedatt--filter--default_application_auth_strategy_id))
136+
- `default_domain` (Attributes) Filters on the given string field value by exact match inequality. (see [below for nested schema](#nestedatt--filter--default_domain))
137+
- `default_page_visibility` (Attributes) Filters on the given string field value by exact match inequality. (see [below for nested schema](#nestedatt--filter--default_page_visibility))
138+
- `description` (Attributes) Filters on the given string field value by exact match inequality. (see [below for nested schema](#nestedatt--filter--description))
139+
- `id` (Attributes) Filters on the given string field value by exact match inequality. (see [below for nested schema](#nestedatt--filter--id))
140+
- `name` (Attributes) Filters on the given string field value by exact match inequality. (see [below for nested schema](#nestedatt--filter--name))
141+
- `rbac_enabled` (Boolean) Filter by a boolean value (true/false).
142+
143+
<a id="nestedatt--filter--canonical_domain"></a>
144+
### Nested Schema for `filter.canonical_domain`
145+
146+
Optional:
147+
148+
- `contains` (String)
149+
- `eq` (String)
150+
- `neq` (String)
151+
- `ocontains` (String)
152+
- `oeq` (String)
153+
154+
155+
<a id="nestedatt--filter--default_api_visibility"></a>
156+
### Nested Schema for `filter.default_api_visibility`
157+
158+
Optional:
159+
160+
- `contains` (String)
161+
- `eq` (String)
162+
- `neq` (String)
163+
- `ocontains` (String)
164+
- `oeq` (String)
165+
166+
167+
<a id="nestedatt--filter--default_application_auth_strategy_id"></a>
168+
### Nested Schema for `filter.default_application_auth_strategy_id`
169+
170+
Optional:
171+
172+
- `eq` (String)
173+
- `neq` (String)
174+
- `oeq` (String)
175+
176+
177+
<a id="nestedatt--filter--default_domain"></a>
178+
### Nested Schema for `filter.default_domain`
179+
180+
Optional:
181+
182+
- `contains` (String)
183+
- `eq` (String)
184+
- `neq` (String)
185+
- `ocontains` (String)
186+
- `oeq` (String)
187+
188+
189+
<a id="nestedatt--filter--default_page_visibility"></a>
190+
### Nested Schema for `filter.default_page_visibility`
191+
192+
Optional:
193+
194+
- `contains` (String)
195+
- `eq` (String)
196+
- `neq` (String)
197+
- `ocontains` (String)
198+
- `oeq` (String)
199+
200+
201+
<a id="nestedatt--filter--description"></a>
202+
### Nested Schema for `filter.description`
203+
204+
Optional:
205+
206+
- `contains` (String)
207+
- `eq` (String)
208+
- `neq` (String)
209+
- `ocontains` (String)
210+
- `oeq` (String)
211+
212+
213+
<a id="nestedatt--filter--id"></a>
214+
### Nested Schema for `filter.id`
215+
216+
Optional:
217+
218+
- `eq` (String)
219+
- `neq` (String)
220+
- `oeq` (String)
221+
222+
223+
<a id="nestedatt--filter--name"></a>
224+
### Nested Schema for `filter.name`
225+
226+
Optional:
227+
228+
- `contains` (String)
229+
- `eq` (String)
230+
- `neq` (String)
231+
- `ocontains` (String)
232+
- `oeq` (String)

0 commit comments

Comments
 (0)