Move ocp-relay CD from Silver to Gold OpenShift cluster - #1993
Draft
panish16 wants to merge 1 commit into
Draft
Conversation
Switches ocp-relay-cd.yml to the shared bcgov/bcregistry-sre backend-cd-ocp.yaml reusable workflow with OPENSHIFT_GOLD_* secrets, matching the pattern already used for other BC Registries OCP services (bcgov/sbc-pay ftp-poller, bcgov/namex-search namex-solr-importer, bcgov/lear colin-api). Adds services/ocp-relay/devops/vaults.ocp.env, required by the reusable workflow's 1Password injection step. Vault/item names are drafted from naming conventions used in other bcgov vaults.ocp.env files and need confirmation from SRE before this is relied on. Refs bcgov/entity#34060
|
| commit: true | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| ocp-relay-cd: | ||
| uses: bcgov/bcregistry-sre/.github/workflows/backend-cd-ocp.yaml@main |
panish16
marked this pull request as ready for review
July 20, 2026 19:09
panish16
requested review from
davemck513,
mengdong19,
ozamani9gh and
stevenc987
as code owners
July 20, 2026 19:09
panish16
marked this pull request as draft
July 20, 2026 19:09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Summary
ocp-relay-cd.ymlto the sharedbcgov/bcregistry-srebackend-cd-ocp.yamlreusable workflow, usingOPENSHIFT_GOLD_*secrets instead of the Silver-clusterOPENSHIFT4_*secrets. This matches the pattern already used for other BC Registries OCP services (bcgov/sbc-payftp-poller,bcgov/namex-searchnamex-solr-importer,bcgov/learcolin-api).services/ocp-relay/devops/vaults.ocp.env, required by the reusable workflow's 1Password injection step.Gold cluster bootstrap (done, outside this PR)
The reusable CD workflow only updates an existing Secret and restarts an existing Deployment — it doesn't create them. So ahead of the first CD run, the following were provisioned directly in
cbaab0-dev(namespace confirmed by SRE):ocp-relay-dev-secret— merged with the partial secret SRE had already seeded (Colin/Pay/JWT values were already correct and Gold-specific; only the still-placeholder SFTP/BCREG_FTP_* keys were filled in, copied from the working Silver values)ocp-relay-devDeployment (currentlyImagePullBackOffas expected — no image has been pushed tocbaab0-toolsyet, that's the CD workflow's job on first run)ocp-relay-devService + Route (ocp-relay-dev.apps.gold.devops.gov.bc.ca)vaults.ocp.envkey names verified 1:1 against the real Silver secret's 21 keysNeeds confirmation before merge (still draft)
vaults.ocp.envvault/item paths (op://...) are still placeholders drafted by naming-convention analogy — not verified against the actual 1Password structure. Keys are correct, paths need SRE sign-off.OPENSHIFT_GOLD_DOCKER_REGISTRY,OPENSHIFT_GOLD_LOGIN_REGISTRY,OPENSHIFT_GOLD_SA_NAME,OPENSHIFT_GOLD_SA_TOKEN,OPENSHIFT_GOLD_REPOSITORYneed to be added as repo/environment secrets onbcgov/namex— requires repo admin access, which this PR's author doesn't have. Values:OPENSHIFT_GOLD_DOCKER_REGISTRY=image-registry.apps.gold.devops.gov.bc.caOPENSHIFT_GOLD_LOGIN_REGISTRY=https://api.gold.devops.gov.bc.ca:6443OPENSHIFT_GOLD_REPOSITORY=cbaab0OPENSHIFT_GOLD_SA_NAME=github-cicdOPENSHIFT_GOLD_SA_TOKEN= value of thegithub-cicd-token-c6l84service account token secret incbaab0-toolsOP_SERVICE_ACCOUNT_TOKENis already available to this repo (used by sibling CD workflows; not verified here due to permissions)Refs bcgov/entity#34060
Test plan
vaults.ocp.envOPENSHIFT_GOLD_*secrets aboveworkflow_dispatchagainstdevand verify rollout succeeds in Gold