Skip to content

Commit

Permalink
chore: Merges master into dev (#2443)
Browse files Browse the repository at this point in the history
* doc: Updates `mongodbatlas_global_cluster_config` doc about self-managed sharding clusters (#2372)

* update doc

* add link

* test: Unifies Azure and GCP networking tests (#2371)

* unify Azure and GCP tests

* TEMPORARY no update

* Revert "TEMPORARY no update"

This reverts commit ab60d67.

* run in parallel

* chore: Updates examples link in index.html.markdown for v1.17.3 release

* chore: Updates CHANGELOG.md header for v1.17.3 release

* doc: Updates Terraform Compatibility Matrix documentation (#2370)

Co-authored-by: maastha <[email protected]>

* use ComposeAggregateTestCheckFunc (#2375)

* chore: Updates asdf to TF 1.9.0 and compatibility matrix body (#2376)

* update asdf to TF 1.9.0

* update compatibility message

* Update .github/workflows/update_tf_compatibility_matrix.yml

Co-authored-by: maastha <[email protected]>

* Fix actionlint

---------

Co-authored-by: maastha <[email protected]>

* fix: stale.yaml gh action (#2379)

* doc: Updates alert-config examples (#2378)

* doc: Update alert-config examples

* doc: Removes other references to GROUP_CHARTS_ADMIN

* chore: align table

* chore: Updates Atlas Go SDK (#2380)

* build(deps): bump go.mongodb.org/atlas-sdk

* rename DiskBackupSnapshotAWSExportBucket to DiskBackupSnapshotExportBucket

* add param to DeleteAtlasSearchDeployment

* add LatestDefinition

* more LatestDefinition and start using SearchIndexCreateRequest

* HasElementsSliceOrMap

* update

* ToAnySlicePointer

* fix update

---------

Co-authored-by: lantoli <[email protected]>

* chore: Bump github.com/aws/aws-sdk-go from 1.54.8 to 1.54.13 (#2383)

Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.54.8 to 1.54.13.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](aws/aws-sdk-go@v1.54.8...v1.54.13)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: Bump amannn/action-semantic-pull-request from 5.5.2 to 5.5.3 (#2382)

Bumps [amannn/action-semantic-pull-request](https://github.com/amannn/action-semantic-pull-request) from 5.5.2 to 5.5.3.
- [Release notes](https://github.com/amannn/action-semantic-pull-request/releases)
- [Changelog](https://github.com/amannn/action-semantic-pull-request/blob/main/CHANGELOG.md)
- [Commits](amannn/action-semantic-pull-request@cfb6070...0723387)

---
updated-dependencies:
- dependency-name: amannn/action-semantic-pull-request
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* test: Improves tests for mongodbatlas_search_index (#2384)

* checkVector

* checkBasic

* checkWithMapping

* checkWithSynonyms

* checkAdditional

* checkAdditionalAnalyzers and checkAdditionalMappingsFields

* remove addAttrChecks and addAttrSetChecks

* use commonChecks in all checks

* test checks cleanup

* chore: Updates nightly tests to TF 1.9.x (#2386)

* update nightly tests to TF 1.9.x

* use TF var

* keep until 1.3.x

* Update .github/workflows/update_tf_compatibility_matrix.yml

Co-authored-by: maastha <[email protected]>

---------

Co-authored-by: maastha <[email protected]>

* fix: Emptying cloud_back_schedule "copy_settings" (#2387)

* test: add test to reproduce Github Issue

* fix: update copy_settings on changes (even when empty)

* docs: Add changelog entry

* chore: fix changelog entry

* apply review comments

* chore: Updates CHANGELOG.md for #2387

* chore: Updates delete logic for `mongodbatlas_search_deployment` (#2389)

* update delete logic

* update unit test

* refactor: use advanced_cluster instead of cluster (#2392)

* fix: Returns error if the analyzers attribute contains unknown fields. (#2394)

* fix: Returns error if the analyzers attribute contains unknown fields.

* adds changelog file.

* Update .changelog/2394.txt

Co-authored-by: Leo Antoli <[email protected]>

---------

Co-authored-by: Leo Antoli <[email protected]>

* chore: Updates CHANGELOG.md for #2394

* chore: Bump github.com/aws/aws-sdk-go from 1.54.13 to 1.54.17 (#2401)

Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.54.13 to 1.54.17.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](aws/aws-sdk-go@v1.54.13...v1.54.17)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: Bump github.com/hashicorp/terraform-plugin-testing (#2400)

Bumps [github.com/hashicorp/terraform-plugin-testing](https://github.com/hashicorp/terraform-plugin-testing) from 1.8.0 to 1.9.0.
- [Release notes](https://github.com/hashicorp/terraform-plugin-testing/releases)
- [Changelog](https://github.com/hashicorp/terraform-plugin-testing/blob/main/CHANGELOG.md)
- [Commits](hashicorp/terraform-plugin-testing@v1.8.0...v1.9.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/terraform-plugin-testing
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: Bump github.com/hashicorp/terraform-plugin-framework (#2398)

Bumps [github.com/hashicorp/terraform-plugin-framework](https://github.com/hashicorp/terraform-plugin-framework) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/hashicorp/terraform-plugin-framework/releases)
- [Changelog](https://github.com/hashicorp/terraform-plugin-framework/blob/main/CHANGELOG.md)
- [Commits](hashicorp/terraform-plugin-framework@v1.9.0...v1.10.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/terraform-plugin-framework
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: Bump github.com/hashicorp/terraform-plugin-framework-validators (#2399)

Bumps [github.com/hashicorp/terraform-plugin-framework-validators](https://github.com/hashicorp/terraform-plugin-framework-validators) from 0.12.0 to 0.13.0.
- [Release notes](https://github.com/hashicorp/terraform-plugin-framework-validators/releases)
- [Changelog](https://github.com/hashicorp/terraform-plugin-framework-validators/blob/main/CHANGELOG.md)
- [Commits](hashicorp/terraform-plugin-framework-validators@v0.12.0...v0.13.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/terraform-plugin-framework-validators
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* test: Uses hclwrite to generate the cluster for GetClusterInfo (#2404)

* test: Use hclwrite to generate the cluster for GetClusterInfo

* test: fix unit test

* refactor: minor improvements

* refactor: use Zone 1 as the default ZoneName to make tests pass

* refactor: remove num_shards in request and add more tests

* fix: use same default region as before

* test: Support disk_size_gb for ClusterInfo and add test case for multiple dependencies

* refactor: move replication specs to ClusterRequest

* test: add support for CloudRegionConfig

* add: suggestions from PR comments

* refactor: use acc.ReplicationSpecRequest instead of admin.ReplicationSpec

* fix: Fixes `disk_iops` attribute for Azure cloud provider in `mongodbatlas_advanced_cluster` resource (#2396)

* fix disk_iops in Azure

* expand

* tests for disk_iops

* chore: Updates CHANGELOG.md for #2396

* test: Refactors `mongodbatlas_private_endpoint_regional_mode` to use cluster info (#2403)

* test: refactor to use cluster info

* test: enable test in CI and fix duplicate zone name

* test: use AWS_REGION_UPPERCASE and add pre-checks

* fix: use clusterResourceName

* test: fix GetClusterInfo call

* fix: pre check call

* fix: add UPPERCASE/LOWERCASE to network test suite

* test: Skip in ci since it is slow and use new GetClusterInfo api

* test: Fix the broken test and simpify assert statements

* test: enable in CI, after refactorings ~1230s

* test: Refactors resource tests to use GetClusterInfo `online_archive` (#2409)

* feat: adds support for Tags & AutoScalingDiskGbEnabled

* feat: refactor tests to use GetClusterInfo & new SDK

* chore: fomatting fix

* test: make unit test deterministic

* test: onlinearchive force us_east_1

* spelling in comment

* test: fix migration test to use package clusterRequest (with correct region)

* update .tool-versions (#2417)

* feat: Adds `stored_source` attribute to `mongodbatlas_search_index` resource and corresponding data sources (#2388)

* fix ds schemas

* add changelog

* add storedSource to configBasic and checkBasic

* update doc about index_id

* update boolean test

* first implementation of stored_source as string

* create model file

* marshal

* don't allow update

* test for objects in stored_source

* TestAccSearchIndex_withStoredSourceUpdate

* update StoredSource

* fix merge

* tests for storedSource updates

* swap test names

* doc

* chore: Updates CHANGELOG.md for #2388

* doc: Improves Guides menu (#2408)

* add 0.8.2 metadata

* update old category and remove unneeded headers

* update page_title

* fix titles

* remove old guide

* test: Refactors resource tests to use GetClusterInfo `ldap_configuration` (#2411)

* test:  Refactors resource tests to use GetClusterInfo ldap_configuration

* test: Fix depends_on clause

* test: remove unused clusterName and align fields

* test: Refactors resource tests to use GetClusterInfo `cloud_backup_snapshot_restore_job` (#2413)

* test: Refactors resource tests to use GetClusterInfo `cloud_backup_snapshot_restore_job`

* test: fix reference to clusterResourceName

* doc: Clarify usage of maintenance window resource (#2418)

* test: Refactors resource tests to use GetClusterInfo `cloud_backup_schedule` (#2414)

* test: Cluster support PitEnabled

* test: Refactors resource tests to use GetClusterInfo `mongodbatlas_cloud_backup_schedule`

* apply PR suggestions

* test: fix broken test after merging

* test: Refactors resource tests to use GetClusterInfo `federated_database_instance` (#2412)

* test: Support getting cluster info with project

* test: Refactors resource tests to use GetClusterInfo `federated_database_instance`

* test: refactor, use a single GetClusterInfo and support AddDefaults

* test: use renamed argument in test

* doc: Removes docs headers as they are not needed (#2422)

* remove unneeded YAML frontmatter headers

* small adjustements

* change root files

* remove from templates

* use Deprecated category

* apply feedback

* test: Refactors resource tests to use GetClusterInfo `backup_compliance_policy` (#2415)

* test: Support AdvancedConfiguration, MongoDBMajorVersion, RetainBackupsEnabled, EbsVolumeType in cluster

* test: refactor test to use GetClusterInfo

* test: Refactors resource tests to use GetClusterInfo `cluster_outage_simulation` (#2423)

* test: support Priority and NodeCountReadOnly

* test: Refactors resource tests to use GetClusterInfo `cluster_outage_simulation`

* test: reuse test case in migration test

* chore: increase timeout to ensure test is passing

* test: avoid global variables to ensure no duplicate cluster names

* revert delete timeout change

* test: Fixes DUPLICATE_CLUSTER_NAME failures (#2424)

* test: fix DUPLICATE_CLUSTER_NAME online_archive

* test: fix DUPLICATE_CLUSTER_NAME backup_snapshot_restore_job

* test: Refactors GetClusterInfo (#2426)

* test: support creating a datasource when using GetClusterInfo

* test: Add documentation for cluster methods

* refactor: move out config_cluster to its own file

* refactor: move configClusterGlobal to the only usage file

* refactor: remove ProjectIDStr field

* test: update references for cluster_info fields

* chore: missing whitespace

* test: fix missing quotes around projectID

* Update internal/testutil/acc/cluster.go

Co-authored-by: Leo Antoli <[email protected]>

---------

Co-authored-by: Leo Antoli <[email protected]>

* doc: Updates to new Terraform doc structure (#2425)

* move to root doc folder

* rename ds and resource folders

* change file extension to .md

* update doc links

* gitignore

* releasing instructions

* git hook

* codeowners

* workflow template

* gha workflows

* scripts

* remove website-lint

* update references to html.markdown

* fix compatibility script matrix

* rename rest of files

* fix generate doc script using docs-out folder to temporary generate all files and copying only to docs folder the specified resource files

* fix typo

* chore: Bump github.com/zclconf/go-cty from 1.14.4 to 1.15.0 (#2433)

Bumps [github.com/zclconf/go-cty](https://github.com/zclconf/go-cty) from 1.14.4 to 1.15.0.
- [Release notes](https://github.com/zclconf/go-cty/releases)
- [Changelog](https://github.com/zclconf/go-cty/blob/main/CHANGELOG.md)
- [Commits](zclconf/go-cty@v1.14.4...v1.15.0)

---
updated-dependencies:
- dependency-name: github.com/zclconf/go-cty
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: Bump github.com/aws/aws-sdk-go from 1.54.17 to 1.54.19 (#2432)

Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.54.17 to 1.54.19.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](aws/aws-sdk-go@v1.54.17...v1.54.19)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: Bump actions/setup-go from 5.0.1 to 5.0.2 (#2431)

Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5.0.1 to 5.0.2.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](actions/setup-go@cdcb360...0a12ed9)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: Bump tj-actions/verify-changed-files (#2430)

Bumps [tj-actions/verify-changed-files](https://github.com/tj-actions/verify-changed-files) from 11ea2b36f98609331b8dc9c5ad9071ee317c6d28 to 79f398ac63ab46f7f820470c821d830e5c340ef9.
- [Release notes](https://github.com/tj-actions/verify-changed-files/releases)
- [Changelog](https://github.com/tj-actions/verify-changed-files/blob/main/HISTORY.md)
- [Commits](tj-actions/verify-changed-files@11ea2b3...79f398a)

---
updated-dependencies:
- dependency-name: tj-actions/verify-changed-files
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* refactor: avoid usage of github.com/go-test/deep (use `reflect.DeepEqual instead`) (#2427)

* chore: Deletes modules folder (#2435)

* remove modules folder

* gitignore

* chore: Makes sure doc generation is up-to-date (#2441)

* generate doc

* split in runs

* detect changes

* TEMPORARY: change 3 files to trigger doc failures

* rename

* Revert "TEMPORARY: change 3 files to trigger doc failures"

This reverts commit cc36481.

* chore: Enables GitHub Action linter errors in GitHub (#2440)

* TEMPORARY: make action linter fail

* problem matcher

* Revert "TEMPORARY: make action linter fail"

This reverts commit 2ea3cd5.

* update version (#2439)

* doc: Updates examples & docs that use replicaSet clusters (#2428)

* update basic examples

* fix linter

* fix tf-validate

* update tflint version

* fix validate

* remove tf linter exceptions

* make linter fail

* simplify and show linter errors in GH

* tlint problem matcher

* problem matcher

* minimum severity warning

* fix linter

* make tf-validate logic easier to be run in local

* less verbose tf init

* fix /mongodbatlas_network_peering/aws

* doc for backup_compliance_policy

* fix container_id reference

* fix mongodbatlas_network_peering/azure

* use temp fodler

* fix examples/mongodbatlas_network_peering/gcp

* remaining examples

* fix mongodbatlas_clusters

* fix adv_cluster doc

* remaining doc changes

* fix typo

* fix examples with deprecated arguments

* get the first value for containter_id

* container_id in doc

* address feedback

* test: fix cluster config generation without num_shards

* test: fix usage of replication_spec.id -> replication_spec.external_id

* test: attempt fixing TestAccClusterAdvancedCluster_singleShardedMultiCloud

* Revert "test: attempt fixing TestAccClusterAdvancedCluster_singleShardedMultiCloud"

This reverts commit 7006935.

* Revert "test: fix usage of replication_spec.id -> replication_spec.external_id"

.id and .external_id are actually different and won't work, more context in: CLOUDP-262014

This reverts commit 2b730db.

* test: add extra checks missed by merge conflict for checkSingleShardedMultiCloud

* test: skip failing tests with a reference to the ticket

* test: avoid deprecation warning to fail the test

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Leo Antoli <[email protected]>
Co-authored-by: svc-apix-bot <[email protected]>
Co-authored-by: svc-apix-Bot <[email protected]>
Co-authored-by: maastha <[email protected]>
Co-authored-by: Andrea Angiolillo <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marco Suma <[email protected]>
Co-authored-by: Agustin Bettati <[email protected]>
  • Loading branch information
9 people authored Jul 19, 2024
1 parent 6072d51 commit b609837
Show file tree
Hide file tree
Showing 305 changed files with 2,866 additions and 4,386 deletions.
11 changes: 11 additions & 0 deletions .changelog/2388.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
```release-note:enhancement
resource/mongodbatlas_search_index: Adds attribute `stored_source`
```

```release-note:enhancement
data-source/mongodbatlas_search_index: Adds attribute `stored_source`
```

```release-note:enhancement
data-source/mongodbatlas_search_indexes: Adds attribute `stored_source`
```
3 changes: 3 additions & 0 deletions .changelog/2394.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
resource/mongodbatlas_search_index: Returns error if the `analyzers` attribute contains unknown fields
```
3 changes: 3 additions & 0 deletions .changelog/2396.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
resource/mongodbatlas_advanced_cluster: Fixes `disk_iops` attribute for Azure cloud provider
```
6 changes: 0 additions & 6 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,3 @@ if [ -n "$STAGED_TF_FILES" ]; then
echo "Checking the format of Terraform files"
make tflint
fi

STAGED_WEBSITES_FILES=$(git diff --cached --name-only | grep "website/")
if [ -n "$STAGED_WEBSITES_FILES" ]; then
echo "Checking the format of website files"
make website-lint
fi
3 changes: 1 addition & 2 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Maintained by the MongoDB APIx-Integrations team
* @mongodb/APIx-Integrations


# Changelog entries reviewed by Docs Cloud Team
/.changelog/ @mongodb/docs-cloud-team
/website/ @mongodb/docs-cloud-team
/docs/ @mongodb/docs-cloud-team
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/Bug_Report.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Our support will prioritise issues that contain all the required information tha


### Terraform CLI and Terraform MongoDB Atlas Provider Version
Please ensure your issue is reproducible on a supported Terraform version. You may review our [Terraform version compatibility matrix](https://github.com/mongodb/terraform-provider-mongodbatlas/blob/master/website/docs/index.html.markdown#hashicorp-terraform-version-compatibility-matrix) to know more.
Please ensure your issue is reproducible on a supported Terraform version. You may review our [Terraform version compatibility matrix](https://github.com/mongodb/terraform-provider-mongodbatlas/blob/master/docs/index.md#hashicorp-terraform-version-compatibility-matrix) to know more.
<!---
Run `terraform version` to show the version, and paste the result for Terraform and the MongoDB Atlas Provider between the ``` marks below.
Expand Down
18 changes: 18 additions & 0 deletions .github/actionlint-matcher.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"problemMatcher": [
{
"owner": "actionlint",
"severity": "warning",
"pattern": [
{
"regexp": "^(?:\\x1b\\[\\d+m)?(.+?)(?:\\x1b\\[\\d+m)*:(?:\\x1b\\[\\d+m)*(\\d+)(?:\\x1b\\[\\d+m)*:(?:\\x1b\\[\\d+m)*(\\d+)(?:\\x1b\\[\\d+m)*: (?:\\x1b\\[\\d+m)*(.+?)(?:\\x1b\\[\\d+m)* \\[(.+?)\\]$",
"file": 1,
"line": 2,
"column": 3,
"message": 4,
"code": 5
}
]
}
]
}
19 changes: 19 additions & 0 deletions .github/tflint-matcher.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"problemMatcher": [
{
"owner": "tflint-compact",
"severity": "warning",
"pattern": [
{
"regexp": "^(.+):(\\d+):(\\d+):\\s(Error|Warning|Notice)\\s-\\s(.+)\\s\\((.+)\\)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5,
"code": 6
}
]
}
]
}
42 changes: 22 additions & 20 deletions .github/workflows/acceptance-tests-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand All @@ -309,7 +309,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand Down Expand Up @@ -349,7 +349,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand Down Expand Up @@ -382,7 +382,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand All @@ -406,7 +406,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand All @@ -428,7 +428,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand Down Expand Up @@ -473,7 +473,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand All @@ -495,7 +495,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand All @@ -517,7 +517,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand All @@ -539,7 +539,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand Down Expand Up @@ -577,7 +577,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand All @@ -604,7 +604,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand Down Expand Up @@ -633,7 +633,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand All @@ -648,6 +648,8 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.aws_access_key_id }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.aws_secret_access_key }}
AWS_REGION: ${{ vars.AWS_REGION }}
AWS_REGION_UPPERCASE: ${{ vars.AWS_REGION_UPPERCASE }}
AWS_REGION_LOWERCASE: ${{ vars.AWS_REGION_LOWERCASE }}
AWS_SECURITY_GROUP_1: ${{ vars.AWS_SECURITY_GROUP_1 }}
AWS_SECURITY_GROUP_2: ${{ vars.AWS_SECURITY_GROUP_2 }}
AWS_VPC_CIDR_BLOCK: ${{ vars.AWS_VPC_CIDR_BLOCK }}
Expand Down Expand Up @@ -676,7 +678,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand Down Expand Up @@ -713,7 +715,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand All @@ -738,7 +740,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand All @@ -760,7 +762,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand All @@ -782,7 +784,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand All @@ -809,7 +811,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand All @@ -833,7 +835,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-changelog-entry-file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
permissions: {}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- run: make check-changelog-entry-file
2 changes: 1 addition & 1 deletion .github/workflows/check-migration-guide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ jobs:
with:
filters: |
guides:
- 'website/docs/guides/**'
- 'docs/guides/**'
- if: ${{ steps.changes.outputs.guides == 'false' }}
run: echo "PR with breaking changes but no migration guide was created or updated" && exit 1
46 changes: 31 additions & 15 deletions .github/workflows/code-health.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
permissions: {}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- name: Build
Expand All @@ -30,7 +30,7 @@ jobs:
pull-requests: write # Needed by sticky-pull-request-comment
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- name: Unit Test
Expand All @@ -42,35 +42,51 @@ jobs:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- name: Install Go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
cache: false # see https://github.com/golangci/golangci-lint-action/issues/807
- name: golangci-lint
uses: golangci/golangci-lint-action@a4f60bb28d35aeee14e6880718e0c85ff1882e64
with:
version: v1.59.0 # Also update GOLANGCI_VERSION variable in GNUmakefile when updating this version
version: v1.59.1 # Also update GOLANGCI_VERSION variable in GNUmakefile when updating this version
- name: actionlint
run: make tools && actionlint -verbose -color
run: |
make tools
echo "::add-matcher::.github/actionlint-matcher.json"
actionlint -color
shell: bash
website-lint:
shellcheck:
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
with:
go-version-file: 'go.mod'
- name: website lint
run: make tools && make website-lint
shellcheck:
- name: Run ShellCheck
uses: bewuethr/shellcheck-action@d01912909579c4b1a335828b8fca197fbb8e0aa4
generate-doc-check:
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- name: Run ShellCheck
uses: bewuethr/shellcheck-action@d01912909579c4b1a335828b8fca197fbb8e0aa4
- run: make tools # all resources with auto-generated doc must be specified below here
- name: Doc for control_plane_ip_addresses
run: export resource_name=control_plane_ip_addresses && make generate-doc
- name: Doc for push_based_log_export
run: export resource_name=push_based_log_export && make generate-doc
- name: Doc for search_deployment
run: export resource_name=search_deployment && make generate-doc
- name: Find mutations
id: self_mutation
run: |-
git add .
git diff --staged --patch --exit-code > .repo.patch || echo "self_mutation_happened=true" >> "${GITHUB_OUTPUT}"
- name: Fail build on mutation
if: steps.self_mutation.outputs.self_mutation_happened
run: |-
echo "::error::Files were changed during build (see build log). If this was triggered from a fork, you will need to update your branch."
cat .repo.patch
exit 1
call-acceptance-tests-workflow:
needs: [build, lint, shellcheck, unit-test, website-lint]
needs: [build, lint, shellcheck, unit-test, generate-doc-check]
secrets: inherit
uses: ./.github/workflows/acceptance-tests.yml
Loading

0 comments on commit b609837

Please sign in to comment.