Comments (2)
@shivpathak I'm not sure what we can do about that on operator side? Of course we cannot delete a Policy
before a PolicyAttachment
. But the user has to be aware of that order. Right now the operator should give an error, if you try to delete in the wrong order. Is this not the case?
I think the operator should throw an error if you're trying to delete in the wrong order, and once you delete the right object, it should finish deletion.
Here we check for existing Attachments:
aws-iam-operator/controllers/policy_controller.go
Lines 160 to 175 in 54e6ee5
Here we fail if there was a "cleanup" error:
aws-iam-operator/controllers/policy_controller.go
Lines 89 to 114 in 54e6ee5
So as soon as the PolicyAttachment
is gone, the deletion should cascade.
from aws-iam-operator.
Oh I see the issue,
the reconcile filter filters out the actual re-reuns after failing, due to the generation already being increased. Will move the generation increase to after the reconcile went OK.
from aws-iam-operator.
Related Issues (20)
- Kubectl process getting stuck and does not exit HOT 1
- Add prefix to all the aws resource created by aws-iam-operator HOT 2
- updating assumerolepolicy does not update role's trust relationship
- EKS cluster auth mapping
- Attachment of Policy to User gives error
- Error while updating the policy if its attached to role HOT 3
- Enable SAML IdP creation
- delete eks cluster HOT 2
- Setting Maximum session duration for IAM Role
- support for auto rotation of IAM user's AccessKey and Secretkey
- Delete & update in certain IAM resource
- Support for tags? HOT 2
- EntityAlreadyExists thrown and then deletion leads to Role 'xxxx' not yet created HOT 4
- Namespaced scoped object failing
- Remove mandatory namespace in PolicyAttachment reference
- Support 'bring your own secret store'
- Policy deletion not idempotent HOT 1
- Support tagging
- Error in importing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-iam-operator.