Skip to content

Commit

Permalink
chore(terraform): remove deprecated code related to github_branch.mai…
Browse files Browse the repository at this point in the history
…n resource (#450)

chore(terraform): remove unused outputs.tf file in github/repository module
fix(openapi-v2.yml): remove unused x-version-name property in info section

Co-authored-by: Ash Davies <[email protected]>
  • Loading branch information
ashdavies and ashdavies authored Aug 3, 2023
1 parent ebf65e7 commit 3647d14
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion google-cloud/src/main/terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ resource "google_project_iam_custom_role" "main" {

resource "local_file" "openapi_config" {
content = templatefile(var.openapi_config, {
version_name = substr(module.github-repository.sha, 0, 7)
backend_service_name = module.cloud-run-build.url
})
filename = basename(var.openapi_config)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ resource "github_repository" "main" {
]
}

# github_branch.main is deprecated
resource "github_branch" "main" {
branch = github_repository.main.default_branch
repository = github_repository.main.name
}

resource "github_issue_label" "main" {
for_each = {
for label in var.labels : label.name => label
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion openapi-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ info:
title: "playground-api Playground Service"
description: "Playground Service definition hosted by Cloud Endpoints with a Cloud Run backend"
version: "1.0.0"
x-version-name: "${version_name}"
host: playground.ashdavies.dev
schemes:
- "https"
Expand Down

0 comments on commit 3647d14

Please sign in to comment.