Skip to content

Commit a070f0a

Browse files
docs: migrate to terraform-plugin-framework
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 <blake.pettersson@gmail.com>
1 parent bd34431 commit a070f0a

15 files changed

+1345
-975
lines changed

argocd/data_source_argocd_account.go

Lines changed: 0 additions & 120 deletions
This file was deleted.

argocd/provider.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ var tokenMutexClusters = &sync.RWMutex{}
2424
// Used to handle concurrent access to each ArgoCD project
2525
var tokenMutexProjectMap = make(map[string]*sync.RWMutex, 0)
2626

27-
// Used to handle concurrent access to ArgoCD secrets
28-
var tokenMutexSecrets = &sync.RWMutex{}
29-
3027
func Provider() *schema.Provider {
3128
return &schema.Provider{
3229
Schema: map[string]*schema.Schema{
@@ -145,8 +142,6 @@ func Provider() *schema.Provider {
145142
},
146143

147144
ResourcesMap: map[string]*schema.Resource{
148-
"argocd_account": resourceArgoCDAccount(),
149-
"argocd_account_token": resourceArgoCDAccountToken(),
150145
"argocd_application": resourceArgoCDApplication(),
151146
"argocd_application_set": resourceArgoCDApplicationSet(),
152147
"argocd_repository_certificate": resourceArgoCDRepositoryCertificates(),
@@ -156,9 +151,6 @@ func Provider() *schema.Provider {
156151
"argocd_repository": resourceArgoCDRepository(),
157152
"argocd_repository_credentials": resourceArgoCDRepositoryCredentials(),
158153
},
159-
DataSourcesMap: map[string]*schema.Resource{
160-
"argocd_account": dataSourceArgoCDAccount(),
161-
},
162154
ConfigureContextFunc: func(ctx context.Context, d *schema.ResourceData) (interface{}, diag.Diagnostics) {
163155
config, diags := argoCDProviderConfigFromResourceData(ctx, d)
164156

argocd/resource_argocd_account.go

Lines changed: 0 additions & 198 deletions
This file was deleted.

0 commit comments

Comments
 (0)