Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .buildkite/hooks/pre-command
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

set -euo pipefail

if [[ "${BUILDKITE_PIPELINE_SLUG}" != "terraform-provider-elasticstack-release" ]]; then
echo "Skipping pre-command hook for non-release pipeline"
exit 0
fi

RELEASE_VAULT_PATH=kv/ci-shared/terraform-providers

if [[ "$BUILDKITE_PIPELINE_SLUG" == "terraform-provider-elasticstack-release" ]]; then
Expand Down
7 changes: 7 additions & 0 deletions .buildkite/update-kibana-client.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
agents:
image: "golang:1.25.1@sha256:d7098379b7da665ab25b99795465ec320b1ca9d4addb9f77409c4827dc904211"
steps:
- label: Regenerate Kibana client and build provider
command:
- "make -C generated/kbapi all"
- "make build"
36 changes: 36 additions & 0 deletions catalog-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,39 @@ spec:
access_level: MANAGE_BUILD_AND_READ
everyone:
access_level: READ_ONLY

---
# yaml-language-server: $schema=https://gist.githubusercontent.com/elasticmachine/988b80dae436cafea07d9a4a460a011d/raw/e57ee3bed7a6f73077a3f55a38e76e40ec87a7cf/rre.schema.json
apiVersion: backstage.io/v1alpha1
kind: Resource
metadata:
name: buildkite-pipeline-terraform-provider-elasticstack-update-kibana-client
description: Buildkite Pipeline for updating Kibana client in Terraform provider Elasticstack
links:
- title: Pipeline
url: https://buildkite.com/elastic/terraform-provider-elasticstack-update-kibana-client

spec:
type: buildkite-pipeline
owner: group:control-plane-hosted-applications
system: buildkite
implementation:
apiVersion: buildkite.elastic.dev/v1
kind: Pipeline
metadata:
name: terraform-provider-elasticstack / Update Kibana client
description: Terraform provider Elasticstack - update Kibana client
spec:
repository: elastic/terraform-provider-elasticstack
pipeline_file: ".buildkite/update-kibana-client.yml"
provider_settings:
build_branches: false
build_pull_request_forks: false
build_tags: false
teams:
control-plane-hosted-applications:
access_level: MANAGE_BUILD_AND_READ
serverless-core:
access_level: MANAGE_BUILD_AND_READ
everyone:
access_level: READ_ONLY