-
Notifications
You must be signed in to change notification settings - Fork 42
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
add turnpike content guard #2726
base: main
Are you sure you want to change the base?
add turnpike content guard #2726
Conversation
I set this to draft while additional tests run, but wanted to get this up here for perusal while I'm out through Friday. |
6726259
to
0bab10b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not complete, looks great, tho I suggest to avoid new feature flags if we can.
} | ||
|
||
ccg, err := ps.CompositeGuardEnsure(ctx, orgID, *hcg.PulpHref, *rcg.PulpHref) | ||
ccg, err := ps.CompositeGuardEnsure(ctx, orgID, *hcg.PulpHref, *contentGuardHref) | ||
if err != nil { | ||
return nil, err | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really want us to stop expanding feature flags, would you consider simply adding the new CG in the chain? The composed CG works as a simple "OR" chain. Do not add the turnpike CG if it is not configured.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Absolutely, I was thinking that last week when we talked, but took the shortcut with the flag.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although, it does give a clear indication which one is working this early on.
9dcd572
to
4ceea24
Compare
Signed-off-by: Jonathan Holloway <[email protected]>
4ceea24
to
d5ca88c
Compare
Description
Add turnpike content guard for ostree and associated feature flag
Add stage URL swap feature flag to support turnpike switch
FIXES: HMS-4783
Type of change
What is it?