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

[Bug]: Group does not respect initProvider values #147

Open
1 task done
Mikel-Landa opened this issue Aug 19, 2024 · 0 comments
Open
1 task done

[Bug]: Group does not respect initProvider values #147

Mikel-Landa opened this issue Aug 19, 2024 · 0 comments
Labels
bug Something isn't working needs:triage

Comments

@Mikel-Landa
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Affected Resource(s)

  • groups.azuread.upbound.io/v1beta2 - Group

Resource MRs required to reproduce the bug

apiVersion: groups.azuread.upbound.io/v1beta2
kind: Group
metadata:
  name: test
 spec:
  deletionPolicy: Delete
  forProvider:
    displayName: Test
    securityEnabled: true
  initProvider:
    owners:
      - <uuid>
    members: []

Steps to Reproduce

Create the group. Add users manually in Azure portal to either owner or members fields.

What happened?

If members is an empty array, it won't persist as a field in initProviders, which is not expected behaviour.

Also, even if we populate the array of members/owners, crossplane will eventually delete external users from the group

Relevant Error Output Snippet

No error, but in the Activity log tab of the group, a delete operation is shown with User-Agent:

HashiCorp Terraform/ (+https://www.terraform.io) Terraform Plugin SDK/2.10.1 terraform-provider-azuread/dev Hamilton (Go-http-client/1.1) pid-222c6c49-1b0a-5959-a213-6608f9eb8820

Crossplane Version

1.16.0

Provider Version

1.3.0

Kubernetes Version

1.28.9

Kubernetes Distribution

AKS

Additional Info

No response

@Mikel-Landa Mikel-Landa added bug Something isn't working needs:triage labels Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs:triage
Projects
None yet
Development

No branches or pull requests

1 participant