Skip to content

Commit

Permalink
Merge branch 'master' into CLOUDP-274532_merge_redaction_log
Browse files Browse the repository at this point in the history
* master:
  chore: Updates Atlas Go SDK (#2659)
  build(deps): bump go.mongodb.org/atlas-sdk (#2654)
  change only latest version (#2652)
  chore: Bump actions/checkout from 4.1.7 to 4.2.0 (#2649)
  chore: Bump tj-actions/verify-changed-files (#2650)
  go1.23.1 (#2648)
  chore: Updates TF to 1.9.6, Go to 1.23.1 and Go linter to 1.61.0 (#2647)
  use new projects in tests (#2643)
  chore: Updates CHANGELOG.md for #2640
  fix: Enforces `priority` descending order in `region_configs` in `mongodbatlas_advanced_cluster` (#2640)
  doc: Improves documentation for supported MongoDB versions in cluster and advanced_cluster (#2635)
  chore: Updates CHANGELOG.md for #2637
  feat: Adds `custom_zone_mapping_zone_id` to `mongodbatlas_global_cluster_config` and deprecates `custom_zone_mapping` (#2637)
  chore: Creates test group `mongodbatlas_global_cluster_config` and updates tests (#2636)
  doc: Updates `troubleshooting.md` to include `mongodbatlas_alert_configuration` issue causing non-empty plans due to `integration_id` (#2627)

# Conflicts:
#	go.mod
#	go.sum
  • Loading branch information
lantoli committed Oct 4, 2024
2 parents 2939bdb + bc70a61 commit 7c36c2c
Show file tree
Hide file tree
Showing 42 changed files with 561 additions and 302 deletions.
15 changes: 15 additions & 0 deletions .changelog/2637.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
```release-note:enhancement
resource/mongodbatlas_global_cluster_config: Adds `custom_zone_mapping_zone_id` attribute
```

```release-note:enhancement
data-source/mongodbatlas_global_cluster_config: Adds `custom_zone_mapping_zone_id` attribute
```

```release-note:note
resource/mongodbatlas_global_cluster_config: Deprecates `custom_zone_mapping` in favor of `custom_zone_mapping_zone_id`
```

```release-note:note
data-source/mongodbatlas_global_cluster_config: Deprecates `custom_zone_mapping` in favor of `custom_zone_mapping_zone_id`
```
3 changes: 3 additions & 0 deletions .changelog/2640.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
resource/mongodbatlas_advanced_cluster: Enforces `priority` descending order in `region_configs` avoiding potential non-empty plans after apply
```
77 changes: 49 additions & 28 deletions .github/workflows/acceptance-tests-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ jobs:
provider_version: ${{ inputs.provider_version || steps.get_last_release.outputs.last_provider_version }}
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- name: Get Last Release
id: get_last_release
shell: bash
Expand All @@ -209,6 +209,7 @@ jobs:
event_trigger: ${{ steps.filter.outputs.event_trigger == 'true' || env.mustTrigger == 'true' }}
federated: ${{ steps.filter.outputs.federated == 'true' || env.mustTrigger == 'true' }}
generic: ${{ steps.filter.outputs.generic == 'true' || env.mustTrigger == 'true' }}
global_cluster_config: ${{ steps.filter.outputs.global_cluster_config == 'true' || env.mustTrigger == 'true' }}
ldap: ${{ steps.filter.outputs.ldap == 'true' || env.mustTrigger == 'true' }}
mongodb_employee_access_grant: ${{ steps.filter.outputs.mongodb_employee_access_grant == 'true' || env.mustTrigger == 'true' }}
network: ${{ steps.filter.outputs.network == 'true' || env.mustTrigger == 'true' }}
Expand All @@ -219,7 +220,7 @@ jobs:
serverless: ${{ steps.filter.outputs.serverless == 'true' || env.mustTrigger == 'true' }}
stream: ${{ steps.filter.outputs.stream == 'true' || env.mustTrigger == 'true' }}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
id: filter
if: ${{ inputs.test_group == '' && env.mustTrigger == 'false' }}
Expand All @@ -240,7 +241,6 @@ jobs:
- 'internal/service/controlplaneipaddresses/*.go'
cluster:
- 'internal/service/cluster/*.go'
- 'internal/service/globalclusterconfig/*.go'
cluster_outage_simulation:
- 'internal/service/clusteroutagesimulation/*.go'
config:
Expand Down Expand Up @@ -273,6 +273,8 @@ jobs:
- 'internal/service/auditing/*.go'
- 'internal/service/backupcompliancepolicy/*.go'
- 'internal/service/x509authenticationdatabaseuser/*.go'
global_cluster_config:
- 'internal/service/globalclusterconfig/*.go'
ldap:
- 'internal/service/ldapconfiguration/*.go'
- 'internal/service/ldapverify/*.go'
Expand Down Expand Up @@ -312,7 +314,7 @@ jobs:
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
Expand All @@ -334,7 +336,7 @@ jobs:
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
Expand Down Expand Up @@ -374,7 +376,7 @@ jobs:
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
Expand Down Expand Up @@ -412,7 +414,7 @@ jobs:
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
Expand All @@ -425,8 +427,7 @@ jobs:
- name: Acceptance Tests
env:
MONGODB_ATLAS_LAST_VERSION: ${{ needs.get-provider-version.outputs.provider_version }}
ACCTEST_PACKAGES: |
./internal/service/controlplaneipaddresses
ACCTEST_PACKAGES: ./internal/service/controlplaneipaddresses
run: make testacc

cluster:
Expand All @@ -435,7 +436,7 @@ jobs:
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
Expand All @@ -448,9 +449,7 @@ jobs:
- name: Acceptance Tests
env:
MONGODB_ATLAS_LAST_VERSION: ${{ needs.get-provider-version.outputs.provider_version }}
ACCTEST_PACKAGES: |
./internal/service/cluster
./internal/service/globalclusterconfig
ACCTEST_PACKAGES: ./internal/service/cluster
run: make testacc

cluster_outage_simulation:
Expand All @@ -459,7 +458,7 @@ jobs:
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
Expand All @@ -481,7 +480,7 @@ jobs:
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
Expand Down Expand Up @@ -526,7 +525,7 @@ jobs:
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
Expand Down Expand Up @@ -562,7 +561,7 @@ jobs:
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
Expand All @@ -584,7 +583,7 @@ jobs:
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
Expand Down Expand Up @@ -622,7 +621,7 @@ jobs:
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
Expand All @@ -643,13 +642,35 @@ jobs:
./internal/service/x509authenticationdatabaseuser
run: make testacc

global_cluster_config:
needs: [ change-detection, get-provider-version ]
if: ${{ needs.change-detection.outputs.global_cluster_config == 'true' || inputs.test_group == 'global_cluster_config' }}
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd
with:
terraform_version: ${{ inputs.terraform_version }}
terraform_wrapper: false
- name: Acceptance Tests
env:
MONGODB_ATLAS_LAST_VERSION: ${{ needs.get-provider-version.outputs.provider_version }}
ACCTEST_PACKAGES: ./internal/service/globalclusterconfig
run: make testacc

ldap:
needs: [ change-detection, get-provider-version ]
if: ${{ needs.change-detection.outputs.ldap == 'true' || inputs.test_group == 'ldap' }}
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
Expand Down Expand Up @@ -678,7 +699,7 @@ jobs:
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
Expand All @@ -700,7 +721,7 @@ jobs:
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
Expand Down Expand Up @@ -745,7 +766,7 @@ jobs:
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
Expand Down Expand Up @@ -783,7 +804,7 @@ jobs:
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
Expand All @@ -808,7 +829,7 @@ jobs:
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
Expand All @@ -830,7 +851,7 @@ jobs:
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
Expand All @@ -852,7 +873,7 @@ jobs:
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
Expand All @@ -879,7 +900,7 @@ jobs:
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
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 @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-migration-guide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
id: changes
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cleanup-test-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
permissions: {}
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
with:
sparse-checkout: |
scripts
Expand All @@ -29,7 +29,7 @@ jobs:
permissions: {}
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
with:
sparse-checkout: |
scripts
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/code-health.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
Expand All @@ -29,7 +29,7 @@ jobs:
permissions:
pull-requests: write # Needed by sticky-pull-request-comment
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
Expand All @@ -40,7 +40,7 @@ jobs:
permissions: {}
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- name: Install Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
Expand All @@ -49,7 +49,7 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86
with:
version: v1.60.3 # Also update GOLANGCI_VERSION variable in GNUmakefile when updating this version
version: v1.61.0 # Also update GOLANGCI_VERSION variable in GNUmakefile when updating this version
- name: actionlint
run: |
make tools
Expand All @@ -60,14 +60,14 @@ jobs:
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- name: Run ShellCheck
uses: bewuethr/shellcheck-action@d01912909579c4b1a335828b8fca197fbb8e0aa4
generate-doc-check:
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- run: make tools generate-docs-all
- name: Find mutations
id: self_mutation
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
Expand All @@ -31,7 +31,7 @@ jobs:
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
Expand Down
Loading

0 comments on commit 7c36c2c

Please sign in to comment.