Skip to content

Conversation

@d-bytebase
Copy link
Contributor

Summary

  • Remove deprecated roles/LAST_APPROVER and roles/CREATOR options from the codebase
  • Update rollout policy configurations in examples and tutorials to exclude deprecated roles
  • Clean up provider schema validation and remove unused constants

Changes

  • Removed deprecated role constants from provider/data_source_policy.go
  • Updated schema validation to only accept valid role formats
  • Removed special handling for deprecated roles in provider/resource_policy.go
  • Updated example and tutorial configurations to use only valid roles

Test plan

  • Code compiles successfully with go build ./...
  • No remaining references to deprecated roles in codebase
  • Existing tests pass
  • Manual testing of rollout policy creation with valid roles

🤖 Generated with Claude Code

Remove the deprecated "roles/LAST_APPROVER" and "roles/CREATOR" options from:
- Rollout policy configurations in examples and tutorials
- Provider schema validation and constants
- Resource policy handling logic

These roles have been deprecated and should no longer be used.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@d-bytebase d-bytebase enabled auto-merge (squash) September 18, 2025 18:11
@d-bytebase d-bytebase merged commit a5a9103 into main Sep 19, 2025
3 checks passed
@d-bytebase d-bytebase deleted the remove-deprecated-roles branch September 19, 2025 00: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.

3 participants