Skip to content

Conversation

@anjali9791
Copy link
Collaborator

@anjali9791 anjali9791 commented Sep 18, 2025

proton PR: goto/proton#166

@anjali9791 anjali9791 force-pushed the feat/dynamic_policy_steps branch 7 times, most recently from fb340a0 to f6fb1b9 Compare September 22, 2025 06:27
@anjali9791 anjali9791 changed the title chore: add support for dynamic policy steps chore: add support for custom policy steps Sep 22, 2025
@anjali9791 anjali9791 force-pushed the feat/dynamic_policy_steps branch 3 times, most recently from 2313f22 to b0af645 Compare September 22, 2025 08:46
return fmt.Errorf("getting custom steps : %w", err)
}
if steps != nil {
policy.Steps = append(policy.Steps, steps...)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
policy.Steps = append(policy.Steps, steps...)
policy.Steps = steps

we don't want to combine it with the normal steps I believe?

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() {
Copy link
Member

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?

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

Copy link
Member

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

Copy link
Collaborator Author

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.

@anjali9791 anjali9791 force-pushed the feat/dynamic_policy_steps branch 8 times, most recently from 89759a5 to b3cac85 Compare September 27, 2025 21:57
@rahmatrhd rahmatrhd changed the title chore: add support for custom policy steps feat: add support for custom policy steps Sep 29, 2025
@anjali9791 anjali9791 force-pushed the feat/dynamic_policy_steps branch from 03e84c9 to 3af3011 Compare September 29, 2025 08:39
@anjali9791 anjali9791 force-pushed the feat/dynamic_policy_steps branch from 425fa2d to b9d1e07 Compare October 28, 2025 14:57
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