Skip to content
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

IAMPolicy #197

Merged
merged 5 commits into from
May 16, 2020
Merged

IAMPolicy #197

merged 5 commits into from
May 16, 2020

Conversation

sahil-lakhwani
Copy link
Contributor

Description of your changes

Adds IAM Policy as a managed resource.

Example: example/iam/policy.yaml

This PR depends on #194 & #196, and should not be merged before those

For the update case:
An update to the policy is actually creating a new version of that policy. The approach in this PR sets the latest version as the default version. Also, because only maximum of 5 versions are allowed, the oldest version is deleted for an update request when there are already 5 versions.

Checklist

I have:

  • Run make reviewable to ensure this PR is ready for review.
  • Ensured this PR contains a neat, self documenting set of commits.
  • Updated any relevant documentation, examples, or release notes.
  • Updated the dependencies in app.yaml to include any new role permissions.

pkg/clients/iam/iampolicy.go Outdated Show resolved Hide resolved
@sahil-lakhwani sahil-lakhwani changed the title Add IAM Policy IAMPolicy Apr 24, 2020
Copy link
Member

@negz negz left a comment

Choose a reason for hiding this comment

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

This one mostly LGTM, but per my comment I think we need to store the ARN in the external-name annotation.

apis/identity/v1alpha1/iampolicy_types.go Outdated Show resolved Hide resolved
apis/identity/v1alpha1/register.go Show resolved Hide resolved
pkg/controller/identity/iampolicy/controller.go Outdated Show resolved Hide resolved
pkg/controller/identity/iampolicy/controller.go Outdated Show resolved Hide resolved
pkg/controller/identity/iampolicy/controller.go Outdated Show resolved Hide resolved
pkg/controller/identity/iampolicy/controller.go Outdated Show resolved Hide resolved
pkg/controller/identity/iampolicy/controller.go Outdated Show resolved Hide resolved
pkg/controller/identity/iampolicy/controller.go Outdated Show resolved Hide resolved
pkg/controller/identity/iampolicy/controller.go Outdated Show resolved Hide resolved
Signed-off-by: sahil-lakhwani <sahilakhwani@gmail.com>
Signed-off-by: sahil-lakhwani <sahilakhwani@gmail.com>
Signed-off-by: sahil-lakhwani <sahilakhwani@gmail.com>
Signed-off-by: sahil-lakhwani <sahilakhwani@gmail.com>
@sahil-lakhwani sahil-lakhwani marked this pull request as ready for review May 7, 2020 18:47
@sahil-lakhwani sahil-lakhwani deleted the iampolicy branch May 11, 2020 15:46
@sahil-lakhwani sahil-lakhwani restored the iampolicy branch May 11, 2020 15:46
@hasheddan hasheddan reopened this May 11, 2020
@negz negz self-assigned this May 11, 2020
Copy link
Member

@negz negz left a comment

Choose a reason for hiding this comment

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

Thanks @sahil-lakhwani! I've added one small suggestion that I'd like to address before I merge this.

Signed-off-by: sahil-lakhwani <sahilakhwani@gmail.com>
@negz negz merged commit 14b411a into crossplane-contrib:master May 16, 2020
wolffbe pushed a commit to wolffbe/provider-aws that referenced this pull request Feb 12, 2021
namku pushed a commit to namku/provider-aws that referenced this pull request Mar 9, 2021
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