-
Notifications
You must be signed in to change notification settings - Fork 95
feat: account resource/data source #683
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
base: main
Are you sure you want to change the base?
feat: account resource/data source #683
Conversation
4183455
to
96743bf
Compare
Would it be possible that you implement the new resource and data source directly with the new approach using HashiCorp's plugin framework instead of SDKv2? Otherwise even more human resources are required to migrate the code for all existing resources: You can find already 1 data source and 1 resource using the new approach:
It's not a blocker for me as we still were unsuccessful with the migration of: |
enabled = data.argocd_account.admin.enabled | ||
capabilities = data.argocd_account.admin.capabilities | ||
tokens = data.argocd_account.admin.tokens | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
output "admin_account_info" {
value = {
name = data.argocd_account.admin.name
enabled = data.argocd_account.admin.enabled
capabilities = data.argocd_account.admin.capabilities
tokens = data.argocd_account.admin.tokens
}
sensitive = true
}
a070f0a
to
8dbe6e6
Compare
This commit adds the possibility to create an account, as well as retrieving an account as a data source. Signed-off-by: Blake Pettersson <[email protected]>
Signed-off-by: Blake Pettersson <[email protected]>
For the new account resource and data source, move to `terraform-plugin-framework`. I also took the opportunity to migrate the `account_token` resource since the tests indirectly depended on `account_token`. Signed-off-by: Blake Pettersson <[email protected]>
Signed-off-by: Blake Pettersson <[email protected]>
Signed-off-by: Blake Pettersson <[email protected]>
Signed-off-by: Blake Pettersson <[email protected]>
Signed-off-by: Blake Pettersson <[email protected]>
df640f5
to
f162149
Compare
This commit adds the possibility to create an account, as well as retrieving an account as a data source.