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

Configure provider without a domain #417

Open
alex-shef opened this issue Aug 23, 2024 · 3 comments
Open

Configure provider without a domain #417

alex-shef opened this issue Aug 23, 2024 · 3 comments
Labels
question Further information is requested

Comments

@alex-shef
Copy link

Terraform Version, ArgoCD Provider Version and ArgoCD Version

Terraform version: v1.8.3
ArgoCD provider version:  v6.1.1
ArgoCD version: v2.12.1

Terraform configuration

# Enter your configuration here.

Question

Is it possible somehow to configure terraform provider argocd without a domain in the cloud cluster? The main idea is to achieve a single-apply approach. I need to create an argocd_application.

provider "argocd" {
  server_addr = "argocd.domain.xyz"
  username    = "admin"
  password    = base64decode(data.kubernetes_secret.argocd_admin_password.binary_data["password"])
}
@alex-shef alex-shef added the question Further information is requested label Aug 23, 2024
@mkilchhofer
Copy link
Collaborator

Hi @alex-shef

The main idea is to achieve a single-apply approach.

What do you mean in detail? You don't need Terraform afterwards? Just prepare everything and you're good?

@alex-shef
Copy link
Author

@mkilchhofer I mean, we can't to use terraform apply only one time. We need to get ingress IP, configure DNS for domain and then to use terraform apply again.
server_addr = "argocd-server.default.svc.cluster.local:443" - such variant doesn't work.

@mkilchhofer
Copy link
Collaborator

And your TF execution environment does not have connectivity to the Kubernetes API (firewall/network and credentials)?

If so, I'd use the port-forward method of the provider :)

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

2 participants