Skip to content

Commit 17bbace

Browse files
committed
Merge remote-tracking branch 'origin/main' into synthetics-params
* origin/main: (23 commits) Regenerate Kibana client (elastic#1189) Addressing feedback on elastic#1178 (elastic#1180) Bump github.com/getkin/kin-openapi from 0.127.0 to 0.131.0 (elastic#1190) Remove explicit misspell (elastic#1182) Move tools to go.mod managed tools (elastic#1185) fix(deps): update module github.com/hashicorp/terraform-plugin-docs to v0.22.0 (elastic#1188) Bump github.com/cloudflare/circl from 1.6.0 to 1.6.1 in /tools (elastic#1187) Migrate the System User resource to the plugin framework. (elastic#1154) Bump github.com/go-viper/mapstructure/v2 from 2.2.1 to 2.3.0 in /tools (elastic#1184) Bump golang.org/x/net from 0.36.0 to 0.38.0 in /libs/go-kibana-rest (elastic#1183) chore(deps): update golang:1.24.4 docker digest to 20a022e (elastic#1177) Bump github.com/getkin/kin-openapi from 0.127.0 to 0.131.0 in /tools (elastic#1181) Add basic docs around the current kbapi generation (elastic#1178) chore(deps): update module github.com/golangci/golangci-lint to v2.2.1 (elastic#1176) chore(deps): update docker.elastic.co/elasticsearch/elasticsearch docker tag to v9.0.3 (elastic#1170) chore(deps): update docker.elastic.co/kibana/kibana docker tag to v9.0.3 (elastic#1171) chore(deps): update dependency go to v1.24.4 (elastic#1159) fix(deps): update module github.com/elastic/go-elasticsearch/v8 to v8.18.1 (elastic#1168) chore(deps): update golang docker tag to v1.24.4 (elastic#1161) fix(deps): update module github.com/goreleaser/goreleaser/v2 to v2.10.2 (elastic#1162) ...
2 parents c7d42a3 + 08d771f commit 17bbace

Some content is hidden

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

51 files changed

+2121
-2015
lines changed

.buildkite/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
steps:
22
- label: Release
33
agents:
4-
image: "golang:1.24.3@sha256:81bf5927dc91aefb42e2bc3a5abdbe9bb3bae8ba8b107e2a4cf43ce3402534c6"
4+
image: "golang:1.24.4@sha256:20a022e5112a144aa7b7aeb3f22ebf2cdaefcc4aac0d64e8deeee8cdc18b9c0f"
55
cpu: "16"
66
memory: "24G"
77
ephemeralStorage: "20G"

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ jobs:
3737
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
3838
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
3939
with:
40-
go-version-file: 'tools/go.mod'
40+
go-version-file: 'go.mod'
4141
cache: true
42-
cache-dependency-path: tools/go.sum
42+
cache-dependency-path: go.sum
4343
- uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3
4444
with:
4545
terraform_wrapper: false

.golangci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
version: "2"
22
linters:
3+
enable:
4+
- misspell
35
exclusions:
46
generated: lax
57
presets:

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
## [Unreleased]
22

33
- Add `headers` for the provider connection ([#1057](https://github.com/elastic/terraform-provider-elasticstack/pull/1057))
4+
- Migrate `elasticstack_elasticsearch_system_user` resource to Terraform plugin framework ([#1154](https://github.com/elastic/terraform-provider-elasticstack/pull/1154))
5+
- Add custom `endpoint` configuration support for snapshot repository setup ([#1158](https://github.com/elastic/terraform-provider-elasticstack/pull/1158))
46

57
## [0.11.15] - 2025-04-23
68

CONTRIBUTING.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
Fork the repo, work on an issue
44

5+
## Updating the generated Kibana client.
6+
7+
If your work involves the Kibana API, the endpoints may or may not be included in the generated client.
8+
Check [generated/kbapi](./generated/kbapi/) for more details.
9+
510
## Acceptance tests
611

712
```bash
@@ -60,4 +65,4 @@ To release a new provider version:
6065
- updates CHANGELOG.md with the list of changes being released.
6166
[Example](https://github.com/elastic/terraform-provider-elasticstack/commit/be866ebc918184e843dc1dd2f6e2e1b963da386d).
6267

63-
* Once the PR merged, the release CI pipeline can be started by pushing a new release tag to `main` branch.
68+
* Once the PR is merged, the release CI pipeline can be started by pushing a new release tag to the `main` branch.

Makefile

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ docker-clean: ## Try to remove provisioned nodes and assigned network
225225

226226
.PHONY: docs-generate
227227
docs-generate: tools ## Generate documentation for the provider
228-
@ $(GOBIN)/tfplugindocs
228+
@ go tool github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs
229229

230230

231231
.PHONY: gen
@@ -245,31 +245,16 @@ install: build ## Install built provider into the local terraform cache
245245

246246

247247
.PHONY: tools
248-
tools: $(GOBIN) tools-golangci-lint ## Install useful tools for linting, docs generation and development
249-
@ cd tools && go install github.com/client9/misspell/cmd/misspell
250-
@ cd tools && go install github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs
251-
@ cd tools && go install github.com/goreleaser/goreleaser/v2
252-
@ cd tools && go install github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen
253-
@ cd tools && go install go.uber.org/mock/mockgen
254-
255-
.PHONY: tools-golangci-lint
256-
tools-golangci-lint: ## Download golangci-lint locally if necessary.
257-
@[[ -f $(GOBIN)/golangci-lint ]] || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOBIN) v2.1.6
258-
259-
260-
.PHONY: misspell
261-
misspell:
262-
@ $(GOBIN)/misspell -error -source go ./internal/
263-
@ $(GOBIN)/misspell -error -source text ./templates/
264-
248+
tools: $(GOBIN) ## Download golangci-lint locally if necessary.
249+
@[[ -f $(GOBIN)/golangci-lint ]] || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOBIN) v2.2.1
265250

266251
.PHONY: golangci-lint
267252
golangci-lint:
268253
@ $(GOBIN)/golangci-lint run --max-same-issues=0 $(GOLANGCIFLAGS) ./internal/...
269254

270255

271256
.PHONY: lint
272-
lint: setup misspell golangci-lint check-fmt check-docs ## Run lints to check the spelling and common go patterns
257+
lint: setup golangci-lint check-fmt check-docs ## Run lints to check the spelling and common go patterns
273258

274259
.PHONY: fmt
275260
fmt: ## Format code
@@ -290,22 +275,21 @@ check-docs: docs-generate ## Check uncommitted changes on docs
290275

291276

292277
.PHONY: setup
293-
setup: tools ## Setup the dev environment
294-
278+
setup: tools vendor ## Setup the dev environment
295279

296280
.PHONY: release-snapshot
297281
release-snapshot: tools ## Make local-only test release to see if it works using "release" command
298-
@ $(GOBIN)/goreleaser release --snapshot --clean
282+
@ go tool github.com/goreleaser/goreleaser/v2 release --snapshot --clean
299283

300284

301285
.PHONY: release-no-publish
302286
release-no-publish: tools check-sign-release ## Make a release without publishing artifacts
303-
@ $(GOBIN)/goreleaser release --skip=publish,announce,validate --parallelism=2
287+
@ go tool github.com/goreleaser/goreleaser/v2 release --skip=publish,announce,validate --parallelism=2
304288

305289

306290
.PHONY: release
307291
release: tools check-sign-release check-publish-release ## Build, sign, and upload your release
308-
@ $(GOBIN)/goreleaser release --clean --parallelism=4
292+
@ go tool github.com/goreleaser/goreleaser/v2 release --clean --parallelism=4
309293

310294

311295
.PHONY: check-sign-release

docs/resources/elasticsearch_security_system_user.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ resource "elasticstack_elasticsearch_security_system_user" "kibana_system" {
4141

4242
### Optional
4343

44-
- `elasticsearch_connection` (Block List, Max: 1, Deprecated) Elasticsearch connection configuration block. This property will be removed in a future provider version. Configure the Elasticsearch connection via the provider configuration instead. (see [below for nested schema](#nestedblock--elasticsearch_connection))
44+
- `elasticsearch_connection` (Block List, Deprecated) Elasticsearch connection configuration block. (see [below for nested schema](#nestedblock--elasticsearch_connection))
4545
- `enabled` (Boolean) Specifies whether the user is enabled. The default value is true.
46-
- `password` (String, Sensitive) The users password. Passwords must be at least 6 characters long.
47-
- `password_hash` (String, Sensitive) A hash of the users password. This must be produced using the same hashing algorithm as has been configured for password storage (see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-settings.html#hashing-settings).
46+
- `password` (String, Sensitive) The user's password. Passwords must be at least 6 characters long.
47+
- `password_hash` (String, Sensitive) A hash of the user's password. This must be produced using the same hashing algorithm as has been configured for password storage (see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-settings.html#hashing-settings).
4848

4949
### Read-Only
5050

docs/resources/elasticsearch_snapshot_repository.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ Optional:
166166
- `chunk_size` (String) Maximum size of files in snapshots.
167167
- `client` (String) The name of the S3 client to use to connect to S3.
168168
- `compress` (Boolean) If true, metadata files, such as index mappings and settings, are compressed in snapshots.
169+
- `endpoint` (String) Custom S3 service endpoint, useful when using VPC endpoints or non-default S3 URLs.
169170
- `max_restore_bytes_per_sec` (String) Maximum snapshot restore rate per node.
170171
- `max_snapshot_bytes_per_sec` (String) Maximum snapshot creation rate per node.
171172
- `path_style_access` (Boolean) If true, path style access pattern will be used.

generated/alerting/api_alerting_mocks.go

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

generated/alerting/mocks.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package alerting
2+
3+
//go:generate go tool go.uber.org/mock/mockgen -destination=./api_alerting_mocks.go -package=alerting -source ./api_alerting.go AlertingAPI

0 commit comments

Comments
 (0)