github-action: support deploy my kibana instance using the Observability test clusters (#153106)

## Summary

As we discussed in an email, this is our proposal to facilitating the
Observability teams to create Kibana instances attached to the
Observability test environments by using the GitHub command
`/oblt-deploy`

If an Elastician added a GitHub comment then, the automation will create
the Kibana instance based on the PR changes. Then a comment with the
link to the GitHub issue that contains all the configuration details.
The GitHub issue is not accessible to the public since it's under a
private GitHub repository.
This commit is contained in:
Victor Martinez 2023-03-21 18:35:54 +01:00 committed by GitHub
parent 07ca356261
commit 10b94977f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 0 deletions

3
.github/CODEOWNERS vendored
View file

@ -776,6 +776,9 @@ packages/kbn-yarn-lock-validator @elastic/kibana-operations
# Actionable Observability
/x-pack/test/observability_functional @elastic/actionable-observability
# Observability robots
/.github/workflows/deploy-my-kibana.yml @elastic/observablt-robots
# Infra Monitoring
/x-pack/test/functional/apps/infra @elastic/infra-monitoring-ui
/x-pack/test/api_integration/apis/infra @elastic/infra-monitoring-ui

30
.github/workflows/deploy-my-kibana.yml vendored Normal file
View file

@ -0,0 +1,30 @@
---
##
## This the automation to let Observability team members to deploy a Kibana instance
## using the Observability test environments.
## It will deploy a new instance for those who add a comment /oblt-deploy
## only supported for Elasticians.
##
## Owner: @elastic/observablt-robots
## Further details: https://ela.st/oblt-deploy-my-kibana
##
name: deploy-my-kibana
on:
issue_comment:
types:
- created
permissions:
contents: read
jobs:
deploy-my-kibana:
if: ${{ github.event.issue.pull_request && github.event.comment.body == '/oblt-deploy'}}
runs-on: ubuntu-latest
steps:
- uses: elastic/apm-pipeline-library/.github/actions/deploy-my-kibana@current
with:
vaultUrl: ${{ secrets.OBLT_VAULT_ADDR }}
vaultRoleId: ${{ secrets.OBLT_VAULT_ROLE_ID }}
vaultSecretId: ${{ secrets.OBLT_VAULT_SECRET_ID }}