-
Couldn't load subscription status.
- Fork 3
feat: add support for custom policy steps #225
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
base: main
Are you sure you want to change the base?
Conversation
fb340a0 to
f6fb1b9
Compare
2313f22 to
b0af645
Compare
| return fmt.Errorf("getting custom steps : %w", err) | ||
| } | ||
| if steps != nil { | ||
| policy.Steps = append(policy.Steps, steps...) |
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.
| policy.Steps = append(policy.Steps, steps...) | |
| policy.Steps = steps |
we don't want to combine it with the normal steps I believe?
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.
We want to add it to the normal steps.
| } | ||
| } | ||
|
|
||
| if p.HasCustomSteps() { |
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.
let's validate that only either one steps or custom_steps is allowed?
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.
@rahmatrhd : I did not get this part. Can you elaborate
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.
both configs can't exist at the same time in one policy
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.
Both configs can exist. Example in case of package: policy config will have package's admin approval and custom steps will add approvers from the resources which are part of the package.
89759a5 to
b3cac85
Compare
03e84c9 to
3af3011
Compare
425fa2d to
b9d1e07
Compare
proton PR: goto/proton#166