Skip to content

Conversation

trgeiger
Copy link
Contributor

Adds an overlay that removes the liveness and readiness probes as well as the --leader-elect flag from the operator-controller-controller-manager deployment since those will cause container restarts when the go debugger is stopped at breakpoints. Also edits the Tiltfile to use this new overlay target.

Also adds our 1 existing feature flag to the new overlay.

Description

Reviewer Checklist

  • API Go Documentation
  • Tests: Unit Tests (and E2E Tests, if appropriate)
  • Comprehensive Commit Messages
  • Links to related GitHub Issue(s)

@trgeiger trgeiger requested a review from a team as a code owner February 13, 2025 23:48
Copy link

netlify bot commented Feb 13, 2025

Deploy Preview for olmv1 ready!

Name Link
🔨 Latest commit b387cf5
🔍 Latest deploy log https://app.netlify.com/sites/olmv1/deploys/67ae85617cf399000801ec14
😎 Deploy Preview https://deploy-preview-1773--olmv1.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Adds an overlay that removes the liveness and readiness probes
as well as the --leader-elect flag from the operator-controller-controller-manager deployment since those will cause container restarts when the go debugger is stopped at breakpoints. Also edits the Tiltfile to use this new overlay target.

Also adds our 1 existing feature flag to the new overlay.

Signed-off-by: Tayler Geiger <tayler@redhat.com>
@trgeiger trgeiger force-pushed the tilt-local-dev-overlay branch from 706c868 to b387cf5 Compare February 13, 2025 23:50
Copy link

codecov bot commented Feb 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.29%. Comparing base (ee8d821) to head (b387cf5).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1773   +/-   ##
=======================================
  Coverage   68.29%   68.29%           
=======================================
  Files          63       63           
  Lines        5116     5116           
=======================================
  Hits         3494     3494           
  Misses       1392     1392           
  Partials      230      230           
Flag Coverage Δ
e2e 51.64% <ø> (-0.08%) ⬇️
unit 55.92% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

path: /spec/template/spec/containers/0/args/2
- op: add
path: /spec/template/spec/containers/0/args/-
value: --feature-gates=PreflightPermissions=true
Copy link
Contributor

Choose a reason for hiding this comment

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

probably ok for now, but we may want to start to think about how to handle this when we have multiple fgs. Maybe one patch / fg?

Copy link
Contributor

Choose a reason for hiding this comment

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

It is a good thought

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah that's a good idea. I also just wasn't sure if we wanted to auto enable the feature flags for dev env or have individual devs manually write patches for them locally but thought i'd just throw this one in and see. I can separate it out into its own patch now before merge if you want, but you also approved it so can hold off until we have another one in the future.

Copy link
Contributor

Choose a reason for hiding this comment

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

Saw this yesterday afternoon, but it was too late in the day for me to say "hey please also add APIV1MetasHandler for catalogd". :)

IMHO merge this and then I'll add that separately. Would be good for me to learn more about overlays anyway.

@grokspawn grokspawn added this pull request to the merge queue Feb 14, 2025
Merged via the queue into operator-framework:main with commit 244e2b4 Feb 14, 2025
22 checks passed
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.

4 participants