We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
apiVersion: iam.aws.upbound.io/v1beta1 kind: Role metadata: name: crossplane-test-role spec: forProvider: assumeRolePolicy: |- { "Version": "2012-10-17", "Statement": [ { "Sid": "", "Effect": "Allow", "Principal": { "AWS": "*" }, "Action": "sts:AssumeRole" } ] } providerConfigRef: name: default
apiVersion: iam.aws.upbound.io/v1beta1 kind: RolePolicy metadata: name: crossplane-test-policy spec: forProvider: policy: | { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": "ec2:DescribeInstances", "Resource": [ "*" ] } ] } role: crossplane-test-role providerConfigRef: name: default
inlinePolicy
inlinePolicy: - name: crossplane-test-policy policy: '{"Version":"2012-10-17","Statement":[{"Action":"ec2:DescribeInstances","Effect":"Allow","Resource":["*"]}]}'
As no inlinePolicy was defined on the Role it should not be managing inline policies:
If no blocks are configured, Crossplane will not manage any inline policies in this resource.
Setting inlinePolicy: [] or inlinePolicy: ~ has no effect and the field is removed during reconciliation.
inlinePolicy: []
inlinePolicy: ~
No response
1.15.0
0.47.2
1.26
EKS 1.26
The text was updated successfully, but these errors were encountered:
When you see inlinePolicy set on the Role, is the field in spec.forProvider or status.atProvider?
Sorry, something went wrong.
@mbbush remembers me on your comment in #933 (comment)
Yeah, I couldn't remember if we ever made the second fix. Sounds like probably not.
It's in both
mbbush
Successfully merging a pull request may close this issue.
Is there an existing issue for this?
Affected Resource(s)
Resource MRs required to reproduce the bug
Steps to Reproduce
inlinePolicy
field is now present on the role:inlinePolicy
What happened?
As no
inlinePolicy
was defined on the Role it should not be managing inline policies:Setting
inlinePolicy: []
orinlinePolicy: ~
has no effect and the field is removed during reconciliation.Relevant Error Output Snippet
No response
Crossplane Version
1.15.0
Provider Version
0.47.2
Kubernetes Version
1.26
Kubernetes Distribution
EKS 1.26
Additional Info
No response
The text was updated successfully, but these errors were encountered: