Skip to content
Success

Changes

Summary

  1. refactor(tekton/v1): migrate build triggers from prod to gcp for (commit: 0b3c370) (details)
Commit 0b3c370d04f3e35cae4e81fd3d2c6dc9255f9c84 by noreply
refactor(tekton/v1): migrate build triggers from prod to gcp for tidb-operator and advance-statefulset (#4002)

This pull request updates Tekton kustomizations and trigger
configurations to move certain `pingcap/advanced-statefulset` and
`pingcap/tidb-operator` triggers from the `env-prod2` environment to the
`env-gcp` environment, and updates their build parameter bindings to use
GCP-specific settings. Additionally, it improves the kustomization
update script for better compatibility.

**Tekton Trigger Environment Migration:**

* Moved `git-create-tag.yaml` and `git-push.yaml` triggers for
`pingcap/advanced-statefulset` and `pingcap/tidb-operator` from
`env-prod2` to `env-gcp` by removing them from
`env-prod2/kustomization.yaml` and adding them to
`env-gcp/kustomization.yaml`.
[[1]](diffhunk://#diff-50efae3efbeb04329653158b8c7a0f5ac1c1dcb379cd59dee1815d26e0229a84L13-L20)
[[2]](diffhunk://#diff-ccee52c4038a435be4aea12ecae9675465e8ff137ad75993de143ec1d2fc88b4R17-R20)
* Renamed trigger files from the `env-prod2` directory to the `env-gcp`
directory for both `pingcap/advanced-statefulset` and
`pingcap/tidb-operator`.
[[1]](diffhunk://#diff-6cc5a7843af75979bd31f93ca606627a63194c0e474776cc2f52edac07bcc382L21-R21)
[[2]](diffhunk://#diff-633f99129b762aeff603ef19ccb79b43842d228b8bf88263acaf7ce9c99c92c7L21-R21)
[[3]](diffhunk://#diff-fed03d638ce16ba5737b9525d31dd68fd629d68757656f215f146a7471263f08L22-R22)
[[4]](diffhunk://#diff-0b953eeb41c0f632a2e951c830913c0aee93b5fb57ad77fe70d1abf42317e3e6L22-R22)

**Build Parameter Binding Updates:**

* Updated the trigger specs for `git-create-tag.yaml` and
`git-push.yaml` (for both `pingcap/advanced-statefulset` and
`pingcap/tidb-operator`) to use `gcp-classic-build-params` instead of
`ksy-classic-build-params`, aligning the build configuration with the
GCP environment.
[[1]](diffhunk://#diff-6cc5a7843af75979bd31f93ca606627a63194c0e474776cc2f52edac07bcc382L21-R21)
[[2]](diffhunk://#diff-633f99129b762aeff603ef19ccb79b43842d228b8bf88263acaf7ce9c99c92c7L21-R21)
[[3]](diffhunk://#diff-fed03d638ce16ba5737b9525d31dd68fd629d68757656f215f146a7471263f08L22-R22)
[[4]](diffhunk://#diff-0b953eeb41c0f632a2e951c830913c0aee93b5fb57ad77fe70d1abf42317e3e6L22-R22)

**Script Improvement:**

* Modified `.ci/update-tekton-kustomizations.sh` to use `sed` instead of
`-printf` for stripping the leading `./` from filenames, improving
portability and compatibility.
(commit: 0b3c370)
The file was addedtekton/v1/triggers/triggers/env-gcp/pingcap/advanced-statefulset/git-create-tag.yaml
The file was modifiedtekton/v1/triggers/triggers/env-gcp/kustomization.yaml (diff)
The file was removedtekton/v1/triggers/triggers/env-prod2/pingcap/advanced-statefulset/git-push.yaml
The file was modifiedtekton/v1/triggers/triggers/env-prod2/kustomization.yaml (diff)
The file was removedtekton/v1/triggers/triggers/env-prod2/pingcap/tidb-operator/git-create-tag.yaml
The file was addedtekton/v1/triggers/triggers/env-gcp/pingcap/tidb-operator/git-push.yaml
The file was modified.ci/update-tekton-kustomizations.sh (diff)
The file was addedtekton/v1/triggers/triggers/env-gcp/pingcap/advanced-statefulset/git-push.yaml
The file was removedtekton/v1/triggers/triggers/env-prod2/pingcap/tidb-operator/git-push.yaml
The file was removedtekton/v1/triggers/triggers/env-prod2/pingcap/advanced-statefulset/git-create-tag.yaml
The file was addedtekton/v1/triggers/triggers/env-gcp/pingcap/tidb-operator/git-create-tag.yaml