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

While creating appproject how we can add finalizers in the argocd_project resource #404

Open
Sudhanshu-Saurav opened this issue Jul 2, 2024 · 1 comment
Labels
question Further information is requested

Comments

@Sudhanshu-Saurav
Copy link

Sudhanshu-Saurav commented Jul 2, 2024

Terraform version:1.7.1
ArgoCD provider version: 6.1.1
ArgoCD version: 2.11.3

Terraform configuration

# Enter your configuration here.
resource "argocd_project" "argocd_appproject" {
  metadata {
    name      = join("-",[var.namespace,"appproject"]) 
    namespace = "argocd"
    finalizers = ["resources-finalizer.argocd.argoproj.io"]
  }
   spec {
    description = "Project for ${var.namespace}"
    source_repos = [var.gitops_source_repo]
    destinations {
      namespace   = var.namespace
      server      = "https://kubernetes.default.svc"
    }
    orphaned_resources {
      warn = true
    }
  }
} 

Question

This does not allow me to create appproject saying

➜ Test terraform plan

╷
│ Error: Unsupported argument
│ 
│   on main.tf line 17, in resource "argocd_project" "argocd_appproject":
│   17:     finalizers = ["resources-finalizer.argocd.argoproj.io"]
│ 
│ An argument named "finalizers" is not expected here.
@Sudhanshu-Saurav Sudhanshu-Saurav added the question Further information is requested label Jul 2, 2024
@Sudhanshu-Saurav Sudhanshu-Saurav changed the title While creating appproject how we can add finalizers in the appproject resource While creating appproject how we can add finalizers in the argocd_project resource Jul 2, 2024
Copy link

github-actions bot commented Oct 2, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale label Oct 2, 2024
@github-actions github-actions bot removed the Stale label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant