Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up Makefile #1055

Merged
merged 2 commits into from
Apr 2, 2024
Merged

Clean up Makefile #1055

merged 2 commits into from
Apr 2, 2024

Conversation

malcolmbaig
Copy link
Contributor

@malcolmbaig malcolmbaig commented Mar 27, 2024

Context

There's some old and/or broken stuff in the Makefile.

Changes proposed in this pull request

Remove keyvault-related jobs from Makefile

None of the keyvault printing / editing jobs work:

  • They invoke a configuration job read-keyvault-config that isn't
    defined.
  • Even if it was defined, the jobs would still fail because the Find
    app keyvault isn't structured like it is for other services. Specifically,
    it doesn't hold secrets in a serialized data structure sitting behind
    a single secret name defined in Azure.

As secrets can be added and updated via the Azure portal, simply remove
these jobs for now.

Remove old PaaS jobs from Makefile
These are jobs and scripts that were used when Find was still deployed
to GOVUK PaaS. They are no longer required now that Find deploys to AKS.

Guidance to review

Link to Trello card

https://trello.com/c/p5jfJKQF/1840-update-finds-key-vault-and-update-makefile

Checklist

  • Attach to Trello card
  • Rebased main
  • Cleaned commit history
  • Tested by running locally

None of the keyvault printing / editing jobs work:

- They invoke a configuration job read-keyvault-config that isn't
  defined.
- Even if it was defined, the jobs would still fail because the Find
  app keyvault isn't structured like it is for other services. Specifically,
  it doesn't hold secrets in a serialized data structure sitting behind
  a single secret name defined in Azure.

As secrets can be added and updated via the Azure portal, simply remove
these jobs for now.
These are jobs and scripts that were used when Find was still deployed
to GOVUK PaaS. They are no longer required now that Find deploys to AKS.
@malcolmbaig malcolmbaig requested a review from a team as a code owner March 27, 2024 13:47
@malcolmbaig malcolmbaig requested review from steventux, a team and saliceti and removed request for a team March 27, 2024 13:48
cf target -s ${SPACE} > /dev/null
cf rename-service ${POSTGRES_DATABASE_NAME} ${POSTGRES_DATABASE_NAME}-$(NEW_NAME_SUFFIX)

restore-data-from-backup: read-deployment-config # make production restore-data-from-backup CONFIRM_RESTORE=YES BACKUP_FILENAME="find-a-lost-trn-production-pg-svc-2022-04-28-01"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not 100% sure about this one - ok to delete?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

100% yes
We will create a new solution for DR soon

@malcolmbaig malcolmbaig merged commit 1115a44 into main Apr 2, 2024
12 checks passed
@malcolmbaig malcolmbaig deleted the 1840-update-makefile branch April 2, 2024 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants