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

Ignore restart on a given rollout or deployment #20

Merged
merged 3 commits into from
May 3, 2024
Merged

Conversation

virajrk
Copy link
Collaborator

@virajrk virajrk commented May 2, 2024

Is this a FEATURE REQUEST?:

What happened:
We are adding a filter. If it is present on rollout/deployment/namespace then flippy should not rotate given object

What you expected to happen:
If parameter is provided then

  • If annotation is present for rollout/deployment then that object is removed from rotation
  • If label is present for namespace then that namespace is removed from rotation

How to reproduce it (as minimally and precisely as possible):
N/A

Environment:
N/A

Copy link

codecov bot commented May 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.04%. Comparing base (4c7e2b9) to head (a6db624).

❗ Current head a6db624 differs from pull request most recent head de82984. Consider uploading reports for the commit de82984 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #20      +/-   ##
==========================================
- Coverage   51.02%   49.04%   -1.98%     
==========================================
  Files          13       14       +1     
  Lines         488      526      +38     
==========================================
+ Hits          249      258       +9     
- Misses        212      241      +29     
  Partials       27       27              

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

main.go Outdated
@@ -61,6 +62,7 @@ func main() {
"Enable leader election for controller manager. "+
"Enabling this will ensure there is only one active controller manager.")
flag.DurationVar(&flagReconcilerTime, "reconciler-time", 10*time.Hour, "The flippy reconciler time.")
flag.StringVar(&common.IgnoreMetadata, "ignore-metadata", "flippy-ignore", "Annotation (Rollout/Deployment) and Label (Namespace) to be ignored")
Copy link
Collaborator

@vrushalijoshi vrushalijoshi May 2, 2024

Choose a reason for hiding this comment

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

Can this parameter named as flippy-ignore-key?

Viraj Kulkarni added 3 commits May 3, 2024 11:23
Signed-off-by: Viraj Kulkarni <[email protected]>
Signed-off-by: Viraj Kulkarni <[email protected]>
@virajrk virajrk merged commit abe59e1 into master May 3, 2024
4 checks passed
@virajrk virajrk deleted the flippy-ignore branch May 3, 2024 18:48
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