5
5
"fmt"
6
6
7
7
"github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes"
8
+ "github.com/hashicorp/terraform-plugin-framework/attr"
8
9
"github.com/hashicorp/terraform-plugin-framework/datasource"
9
10
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
10
11
"github.com/hashicorp/terraform-plugin-framework/types"
@@ -30,7 +31,7 @@ func getRouteDataSourceAttributes(idRequired bool) map[string]schema.Attribute {
30
31
Computed : true ,
31
32
Description : "From URL." ,
32
33
},
33
- "to" : schema.ListAttribute {
34
+ "to" : schema.SetAttribute {
34
35
Computed : true ,
35
36
ElementType : types .StringType ,
36
37
Description : "To URLs." ,
@@ -39,7 +40,7 @@ func getRouteDataSourceAttributes(idRequired bool) map[string]schema.Attribute {
39
40
Computed : true ,
40
41
Description : "ID of the namespace the route belongs to." ,
41
42
},
42
- "policies" : schema.ListAttribute {
43
+ "policies" : schema.SetAttribute {
43
44
Computed : true ,
44
45
ElementType : types .StringType ,
45
46
Description : "List of policy IDs associated with the route." ,
@@ -131,7 +132,7 @@ func getRouteDataSourceAttributes(idRequired bool) map[string]schema.Attribute {
131
132
ElementType : types .StringType ,
132
133
Description : "Set request headers." ,
133
134
},
134
- "remove_request_headers" : schema.ListAttribute {
135
+ "remove_request_headers" : schema.SetAttribute {
135
136
Computed : true ,
136
137
ElementType : types .StringType ,
137
138
Description : "Remove request headers." ,
@@ -165,6 +166,58 @@ func getRouteDataSourceAttributes(idRequired bool) map[string]schema.Attribute {
165
166
Computed : true ,
166
167
Description : "Show error details." ,
167
168
},
169
+ "jwt_groups_filter" : JWTGroupsFilterSchema ,
170
+ "jwt_issuer_format" : schema.ObjectAttribute {
171
+ Description : "JWT issuer format configuration." ,
172
+ Computed : true ,
173
+ AttributeTypes : map [string ]attr.Type {
174
+ "format" : types .StringType ,
175
+ },
176
+ },
177
+ "rewrite_response_headers" : schema.SetNestedAttribute {
178
+ Description : "Response header rewrite rules." ,
179
+ Computed : true ,
180
+ NestedObject : schema.NestedAttributeObject {
181
+ Attributes : map [string ]schema.Attribute {
182
+ "header" : schema.StringAttribute {
183
+ Required : true ,
184
+ Description : "Header name to rewrite" ,
185
+ },
186
+ "prefix" : schema.StringAttribute {
187
+ Optional : true ,
188
+ Description : "Prefix matcher for the header" ,
189
+ },
190
+ "value" : schema.StringAttribute {
191
+ Required : true ,
192
+ Description : "New value for the header" ,
193
+ },
194
+ },
195
+ },
196
+ },
197
+ "tls_custom_ca_key_pair_id" : schema.StringAttribute {
198
+ Description : "Custom CA key pair ID for TLS verification." ,
199
+ Computed : true ,
200
+ },
201
+ "tls_client_key_pair_id" : schema.StringAttribute {
202
+ Description : "Client key pair ID for TLS client authentication." ,
203
+ Computed : true ,
204
+ },
205
+ "description" : schema.StringAttribute {
206
+ Description : "Description of the route." ,
207
+ Computed : true ,
208
+ },
209
+ "kubernetes_service_account_token_file" : schema.StringAttribute {
210
+ Description : "Path to the Kubernetes service account token file." ,
211
+ Computed : true ,
212
+ },
213
+ "logo_url" : schema.StringAttribute {
214
+ Description : "URL to the logo image." ,
215
+ Computed : true ,
216
+ },
217
+ "enable_google_cloud_serverless_authentication" : schema.BoolAttribute {
218
+ Description : "Enable Google Cloud serverless authentication." ,
219
+ Computed : true ,
220
+ },
168
221
}
169
222
}
170
223
0 commit comments