Skip to content

Commit 30c79e0

Browse files
Merge branch 'main' into expand-gke-backup-configuration
2 parents 6361ce2 + da60ab0 commit 30c79e0

File tree

606 files changed

+53329
-9103
lines changed

Some content is hidden

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

606 files changed

+53329
-9103
lines changed

.github/conventional-commit-lint.yaml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/renovate.json

Lines changed: 1 addition & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,4 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": [
4-
"config:base",
5-
":semanticCommits",
6-
":preserveSemverRanges",
7-
":rebaseStalePrs"
8-
],
9-
"stabilityDays":7,
10-
"ignorePaths": [],
11-
"labels": ["dependencies"],
12-
"vulnerabilityAlerts":{
13-
"labels":[
14-
"type:security"
15-
],
16-
"stabilityDays":0
17-
},
18-
"separateMajorMinor":false,
19-
"constraints": {
20-
"go": "1.20"
21-
},
22-
"packageRules": [
23-
{
24-
"matchPaths": ["examples/**", "test/**", ".github/**"],
25-
"extends": [":semanticCommitTypeAll(chore)"]
26-
},
27-
{
28-
"matchPaths": ["*", "modules/**"],
29-
"extends": [":semanticCommitTypeAll(fix)"]
30-
},
31-
{
32-
"matchDepTypes": ["module"],
33-
"groupName": "TF modules"
34-
},
35-
{
36-
"matchDepTypes": ["require"],
37-
"groupName": "GO modules",
38-
"postUpdateOptions": ["gomodTidy"]
39-
},
40-
{
41-
"matchDatasources": ["golang-version"],
42-
"rangeStrategy": "bump",
43-
"allowedVersions": "<1.21.0",
44-
"postUpdateOptions": ["gomodTidy"]
45-
},
46-
{
47-
"matchPackageNames": ["google", "google-beta"],
48-
"groupName": "terraform googles"
49-
}
50-
],
51-
"regexManagers": [
52-
{
53-
"fileMatch": ["(^|/)Makefile$"],
54-
"matchStrings": ["DOCKER_TAG_VERSION_DEVELOPER_TOOLS := (?<currentValue>.*?)\\n"],
55-
"datasourceTemplate": "docker",
56-
"registryUrlTemplate": "https://gcr.io/cloud-foundation-cicd",
57-
"depNameTemplate": "cft/developer-tools"
58-
},
59-
{
60-
"fileMatch": ["(^|/)build/(int|lint)\\.cloudbuild\\.yaml$"],
61-
"matchStrings": [" _DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '(?<currentValue>.*?)'\\n"],
62-
"datasourceTemplate": "docker",
63-
"registryUrlTemplate": "https://gcr.io/cloud-foundation-cicd",
64-
"depNameTemplate": "cft/developer-tools"
65-
}
66-
]
3+
"extends": ["github>GoogleCloudPlatform/cloud-foundation-toolkit//infra/terraform/test-org/github/resources/renovate"]
674
}

.github/trusted-contribution.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 Google LLC
1+
# Copyright 2023-2025 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
# NOTE: This file is automatically generated from:
16-
# https://github.com/GoogleCloudPlatform/cloud-foundation-toolkit/blob/master/infra/terraform/test-org/github
16+
# https://github.com/GoogleCloudPlatform/cloud-foundation-toolkit/blob/main/infra/terraform/test-org/github
1717

1818
annotations:
1919
- type: comment

.github/workflows/lint.yaml

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 Google LLC
1+
# Copyright 2023-2025 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -13,14 +13,18 @@
1313
# limitations under the License.
1414

1515
# NOTE: This file is automatically generated from values at:
16-
# https://github.com/GoogleCloudPlatform/cloud-foundation-toolkit/blob/master/infra/terraform/test-org/org/locals.tf
16+
# https://github.com/GoogleCloudPlatform/cloud-foundation-toolkit/blob/main/infra/terraform/test-org/org/locals.tf
1717

1818
name: 'lint'
1919

2020
on:
21+
workflow_dispatch:
2122
pull_request:
22-
branches:
23-
- master
23+
types: [opened, edited, reopened, synchronize]
24+
branches: [main]
25+
26+
permissions:
27+
contents: read
2428

2529
concurrency:
2630
group: '${{ github.workflow }}-${{ github.head_ref || github.ref }}'
@@ -31,7 +35,7 @@ jobs:
3135
name: 'lint'
3236
runs-on: 'ubuntu-latest'
3337
steps:
34-
- uses: 'actions/checkout@v3'
38+
- uses: 'actions/checkout@v4'
3539
- id: variables
3640
run: |
3741
MAKEFILE=$(find . -name Makefile -print -quit)
@@ -43,4 +47,29 @@ jobs:
4347
REGISTRY=$(grep "REGISTRY_URL := " $MAKEFILE | cut -d\ -f3)
4448
echo dev-tools=${REGISTRY}/${IMAGE}:${VERSION} >> "$GITHUB_OUTPUT"
4549
fi
46-
- run: docker run --rm -v ${{ github.workspace }}:/workspace ${{ steps.variables.outputs.dev-tools }} /usr/local/bin/test_lint.sh
50+
- run: docker run --rm -e ENABLE_BPMETADATA -v ${{ github.workspace }}:/workspace ${{ steps.variables.outputs.dev-tools }} module-swapper
51+
env:
52+
ENABLE_BPMETADATA: 1
53+
54+
- run: docker run --rm -e ENABLE_BPMETADATA -v ${{ github.workspace }}:/workspace ${{ steps.variables.outputs.dev-tools }} /usr/local/bin/test_lint.sh
55+
env:
56+
ENABLE_BPMETADATA: 1
57+
58+
commitlint:
59+
runs-on: ubuntu-latest
60+
steps:
61+
- uses: actions/checkout@v4
62+
with:
63+
fetch-depth: 0
64+
- name: Setup node
65+
uses: actions/setup-node@v4
66+
with:
67+
node-version: lts/*
68+
- name: Install commitlint
69+
run: |
70+
npm install -D @commitlint/[email protected] @commitlint/[email protected]
71+
echo "module.exports = { extends: ['@commitlint/config-conventional'], rules: {'subject-case': [0]} };" > commitlint.config.js
72+
npx commitlint --version
73+
- name: Validate PR commits with commitlint
74+
if: github.event_name == 'pull_request'
75+
run: 'echo "${{ github.event.pull_request.title }}" | npx commitlint --verbose'

.github/workflows/stale.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022-2023 Google LLC
1+
# Copyright 2022-2025 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
# NOTE: This file is automatically generated from:
16-
# https://github.com/GoogleCloudPlatform/cloud-foundation-toolkit/blob/master/infra/terraform/test-org/github
16+
# https://github.com/GoogleCloudPlatform/cloud-foundation-toolkit/blob/main/infra/terraform/test-org/github
1717

1818
name: "Close stale issues"
1919
on:
@@ -22,11 +22,13 @@ on:
2222

2323
jobs:
2424
stale:
25+
if: github.repository_owner == 'GoogleCloudPlatform' || github.repository_owner == 'terraform-google-modules'
2526
runs-on: ubuntu-latest
2627
steps:
27-
- uses: actions/stale@v8
28+
- uses: actions/stale@v9
2829
with:
2930
repo-token: ${{ secrets.GITHUB_TOKEN }}
3031
stale-issue-message: 'This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days'
3132
stale-pr-message: 'This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days'
32-
exempt-issue-labels: triaged,dependencies
33+
exempt-issue-labels: 'triaged'
34+
exempt-pr-labels: 'dependencies,autorelease: pending'

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ Session.vim
3737
# tf lock file
3838
.terraform.lock.hcl
3939

40+
# Top level lock used by the test tooling
41+
/.terraform.lock
42+
4043
# Crash log files
4144
crash.log
4245

@@ -47,7 +50,8 @@ crash.log
4750
**/.kitchen.local.yml
4851
**/Gemfile.lock
4952

50-
test/fixtures/shared/terraform.tfvars
53+
test/fixtures/**/terraform.tfvars
54+
modules/**/terraform.tfvars
5155

5256
test/integration/gcloud/config.sh
5357
test/integration/tmp

0 commit comments

Comments
 (0)