Skip to content

Copy policy registry - #153

Merged
eguzki merged 1 commit into
masterfrom
custom-policies
Jun 11, 2019
Merged

Copy policy registry#153
eguzki merged 1 commit into
masterfrom
custom-policies

Conversation

@eguzki

@eguzki eguzki commented Jun 3, 2019

Copy link
Copy Markdown
Member

Toolbox command to copy policy registry (a.k.a. custom policies) from source tenant to target tenant.
Policy registry identificator is #{name}-#{version}. Having this identifying function, we can define

  • Missing policies: policies that exist in source tenant and do not exist in target tenant.
  • Matching policies: policies from source tenant that exist in target tenant.

Then:

  • Missing policies are being created in target tenant
  • Matching policies are being updated in target tenant

This behavior makes the command idempotent.

Integration tests not implemented as they require two different provider accounts.

@eguzki eguzki changed the title Copy policy registry [WIP] Copy policy registry Jun 3, 2019
@eguzki
eguzki requested a review from miguelsorianod June 3, 2019 17:18
@eguzki
eguzki force-pushed the custom-policies branch 3 times, most recently from a8ed9d6 to aec5851 Compare June 7, 2019 09:04
@eguzki eguzki changed the title [WIP] Copy policy registry Copy policy registry Jun 7, 2019
@eguzki

eguzki commented Jun 7, 2019

Copy link
Copy Markdown
Member Author

ready for review @miguelsorianod

@eguzki
eguzki force-pushed the custom-policies branch from aec5851 to dd4c671 Compare June 11, 2019 18:12
@eguzki
eguzki merged commit 84b9ec1 into master Jun 11, 2019
@eguzki
eguzki deleted the custom-policies branch June 11, 2019 18:23
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