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

TechDebt: Replace Deprecated DeploymentConfig With Deployment. #1468

Merged
merged 12 commits into from
Jan 28, 2025

Conversation

NickPhura
Copy link
Collaborator

@NickPhura NickPhura commented Jan 21, 2025

Links to Jira Tickets

n/a

Description of Changes

DeploymentConfig is now deprecated in OpenShift. They should still function for now, but are no longer receiving updates, etc.

Deployment changes

  • Update all templates that referenced DeploymentConfig to use Deployment
    • Remove the triggers section, as this does not exist in Deployment
    • Update the strategy section to RollingUpdate which is the only one Deployment supports, with fewer configurable settings.
    • Fill in the image property, which was previously auto-populated by the DeploymentConfig based on the triggers section (I believe).
    • For Deployment specifically, under selector you have to include matchLabels

Other changes

  • I updated the yaml files for the backup and clamav containers. These are probably irrelevant as they are out of date anyways, and should probably be pulled from an external source, rather than be stored in our repo. But, that is techdebt for another PR.
  • Updated the uuid package (I noticed a deprecation warning in the build logs)
  • Re-enable running the migrations in the static deploy (was disabled as part of upgrading Postgres)

Testing Notes

OpenShift pipeline works the same as it did before.

The deployments worked in this PR. I also tried making an app change and adding a new migration, just to ensure that they re-deployed correctly, and they did (I reverted those changes afterwards).

Copy link

codecov bot commented Jan 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 46.07%. Comparing base (2ad03eb) to head (39ab40e).
Report is 1 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #1468      +/-   ##
==========================================
+ Coverage   45.92%   46.07%   +0.15%     
==========================================
  Files         907      909       +2     
  Lines       23537    23597      +60     
  Branches     3492     3504      +12     
==========================================
+ Hits        10809    10872      +63     
- Misses      12136    12138       +2     
+ Partials      592      587       -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Drop triggers section.
@NickPhura NickPhura changed the title TechDebt: Replace deprecated DeploymentConfig with Deployment. TechDebt: Replace Deprecated DeploymentConfig With Deployment. Jan 22, 2025
@NickPhura NickPhura added the Ready For Review PR is ready for review label Jan 22, 2025
Copy link
Collaborator

@MacQSL MacQSL left a comment

Choose a reason for hiding this comment

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

🦖

@NickPhura NickPhura merged commit 446e207 into dev Jan 28, 2025
23 checks passed
@NickPhura NickPhura deleted the np_devops_update branch January 28, 2025 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review PR is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants