Skip to content

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

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

blakepettersson
Copy link
Collaborator

This commit adds the possibility to create an account, as well as retrieving an account as a data source.

@blakepettersson blakepettersson force-pushed the feature/add-account-resource branch 2 times, most recently from 4183455 to 96743bf Compare July 14, 2025 12:02
@mkilchhofer
Copy link
Collaborator

Hi @blakepettersson

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
}

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
}

@blakepettersson blakepettersson force-pushed the feature/add-account-resource branch 3 times, most recently from a070f0a to 8dbe6e6 Compare July 14, 2025 17:31
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]>
@blakepettersson blakepettersson force-pushed the feature/add-account-resource branch from df640f5 to f162149 Compare July 17, 2025 07:22
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