From 52f1780444afffcf736b9af250048eba471de5fb Mon Sep 17 00:00:00 2001 From: Aram Karapetyan Date: Tue, 17 Oct 2023 10:04:04 +0400 Subject: [PATCH] fix(DMVP-2755): Add main.tf for check publish --- README.md | 34 ++++++++++++++++++++++++++ main.tf | 10 ++++++++ modules/runner/tests/basic/README.md | 36 ++++++++++++++++++++++++++++ variables.tf | 31 ++++++++++++++++++++++++ 4 files changed, 111 insertions(+) create mode 100644 main.tf create mode 100644 modules/runner/tests/basic/README.md create mode 100644 variables.tf diff --git a/README.md b/README.md index 9185fa2..c2ca232 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,36 @@ # terraform-bitbucket-modules Terraform modules for Bitbucket + +## Requirements + +No requirements. + +## Providers + +No providers. + +## Modules + +| Name | Source | Version | +|------|--------|---------| +| [runner](#module\_runner) | ./modules/runner/ | n/a | + +## Resources + +No resources. + +## Inputs + +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| [accountUuid](#input\_accountUuid) | Account Uuid | `string` | n/a | yes | +| [create\_namespace](#input\_create\_namespace) | Create namespace or use existing one | `bool` | `true` | no | +| [namespace](#input\_namespace) | Namespace name | `string` | `"runner"` | no | +| [oauthClientId](#input\_oauthClientId) | Oauth Client | `string` | n/a | yes | +| [oauthClientSecret](#input\_oauthClientSecret) | Oauth Client Secret | `string` | n/a | yes | +| [runnerUuid](#input\_runnerUuid) | Runner Uuid | `string` | n/a | yes | + +## Outputs + +No outputs. + diff --git a/main.tf b/main.tf new file mode 100644 index 0000000..604838e --- /dev/null +++ b/main.tf @@ -0,0 +1,10 @@ +module "runner" { + source = "./modules/runner/" + oauthClientId = var.oauthClientId + oauthClientSecret = var.oauthClientSecret + accountUuid = var.accountUuid + runnerUuid = var.runnerUuid + + namespace = var.namespace + create_namespace = var.create_namespace +} diff --git a/modules/runner/tests/basic/README.md b/modules/runner/tests/basic/README.md new file mode 100644 index 0000000..8ee8f02 --- /dev/null +++ b/modules/runner/tests/basic/README.md @@ -0,0 +1,36 @@ +# basic + + +## Requirements + +| Name | Version | +|------|---------| +| [terraform](#requirement\_terraform) | >= 1.3.0 | +| [kubernetes](#requirement\_kubernetes) | 2.23.0 | + +## Providers + +| Name | Version | +|------|---------| +| [test](#provider\_test) | n/a | + +## Modules + +| Name | Source | Version | +|------|--------|---------| +| [test](#module\_test) | ../ | n/a | + +## Resources + +| Name | Type | +|------|------| +| test_assertions.dummy | resource | + +## Inputs + +No inputs. + +## Outputs + +No outputs. + diff --git a/variables.tf b/variables.tf new file mode 100644 index 0000000..52f7f62 --- /dev/null +++ b/variables.tf @@ -0,0 +1,31 @@ +variable "oauthClientId" { + type = string + description = "Oauth Client" +} + +variable "oauthClientSecret" { + type = string + description = "Oauth Client Secret" +} + +variable "accountUuid" { + type = string + description = "Account Uuid" +} + +variable "runnerUuid" { + type = string + description = "Runner Uuid" +} + +variable "namespace" { + type = string + description = "Namespace name" + default = "runner" +} + +variable "create_namespace" { + type = bool + description = "Create namespace or use existing one" + default = true +}