Skip to content

Commit 76af2aa

Browse files
committed
fix(ske): align repository_id wiring and platform support
- align git-repository repository_id output to INTEGER and improve output description\n- align forgejo-connector dependent repository_id input/variable types\n- set forgejo-connector supported_platforms to KUBERNETES\n- enable consumer updates for safe git-repository inputs (description/private)\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 86f793b commit 76af2aa

4 files changed

Lines changed: 17 additions & 14 deletions

File tree

modules/ske/forgejo-connector/buildingblock/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ No modules.
7474
| <a name="input_kubeconfig"></a> [kubeconfig](#input\_kubeconfig) | Static kubeconfig content of the SKE cluster. | `any` | n/a | yes |
7575
| <a name="input_kubeconfig_cluster_name"></a> [kubeconfig\_cluster\_name](#input\_kubeconfig\_cluster\_name) | Cluster name used in merged kubeconfig context entries. | `string` | n/a | yes |
7676
| <a name="input_namespace"></a> [namespace](#input\_namespace) | Associated namespace in kubernetes cluster. | `string` | n/a | yes |
77-
| <a name="input_repository_id"></a> [repository\_id](#input\_repository\_id) | The ID of the Forgejo repository. | `string` | n/a | yes |
77+
| <a name="input_repository_id"></a> [repository\_id](#input\_repository\_id) | The ID of the Forgejo repository. | `number` | n/a | yes |
7878
| <a name="input_stage"></a> [stage](#input\_stage) | Deployment stage used for secret suffixing (`dev` or `prod`). | `string` | n/a | yes |
7979

8080
## Outputs

modules/ske/forgejo-connector/buildingblock/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ variable "harbor_password" {
2828
}
2929

3030
variable "repository_id" {
31-
type = string
31+
type = number
3232
description = "The ID of the Forgejo repository."
3333
}
3434

modules/ske/forgejo-connector/meshstack_integration.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ resource "meshstack_building_block_definition" "this" {
233233
repository_id = {
234234
display_name = "repository_id"
235235
description = "ID of the parent Forgejo repository where action secrets are created."
236-
type = "STRING"
236+
type = "INTEGER"
237237
assignment_type = "BUILDING_BLOCK_OUTPUT"
238238
argument = jsonencode("${var.forgejo_repo_definition_uuid}.repository_id")
239239
}

modules/stackit/git-repository/meshstack_integration.tf

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -134,19 +134,21 @@ resource "meshstack_building_block_definition" "this" {
134134
}
135135

136136
description = {
137-
display_name = "Repository Description"
138-
description = "Short description of the repository."
139-
type = "STRING"
140-
assignment_type = "USER_INPUT"
141-
default_value = jsonencode("")
137+
display_name = "Repository Description"
138+
description = "Short description of the repository."
139+
type = "STRING"
140+
assignment_type = "USER_INPUT"
141+
updateable_by_consumer = true
142+
default_value = jsonencode("")
142143
}
143144

144145
private = {
145-
display_name = "Private Repository"
146-
description = "If true, the repository has private visibility in Forgejo."
147-
type = "BOOLEAN"
148-
assignment_type = "USER_INPUT"
149-
default_value = jsonencode(true)
146+
display_name = "Private Repository"
147+
description = "If true, the repository has private visibility in Forgejo."
148+
type = "BOOLEAN"
149+
assignment_type = "USER_INPUT"
150+
updateable_by_consumer = true
151+
default_value = jsonencode(true)
150152
}
151153

152154
clone_addr = {
@@ -173,8 +175,9 @@ resource "meshstack_building_block_definition" "this" {
173175
outputs = {
174176
repository_id = {
175177
display_name = "Repository ID"
176-
type = "STRING"
178+
type = "INTEGER"
177179
assignment_type = "NONE"
180+
description = "Numeric Forgejo repository ID, primarily intended for wiring dependent building blocks."
178181
}
179182

180183
repository_html_url = {

0 commit comments

Comments
 (0)