-
Notifications
You must be signed in to change notification settings - Fork 90
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
source.directory not diffing correctly #341
Comments
Just tried to reproduce the bug with I used the following snippet: terraform {
required_providers {
argocd = {
source = "oboukili/argocd"
}
}
}
provider "argocd" {
server_addr = "localhost:8080"
username = "admin"
password = "acceptancetesting"
insecure = true
}
resource "argocd_application" "extras" {
cascade = false
wait = false
metadata {
name = "test-341"
namespace = "argocd"
}
spec {
project = "default"
revision_history_limit = 0
destination {
server = "https://kubernetes.default.svc"
namespace = "default"
}
source {
repo_url = "https://github.com/argoproj/argocd-example-apps.git"
path = "guestbook/"
target_revision = "master"
directory {
include = "*.yaml"
}
}
}
} As far as I can see the problem is that https://github.com/oboukili/terraform-provider-argocd/blob/master/argocd/schema_application.go#L165-L171 suppresses a diff when I did a simple test by chaning the diff function (see here) and that would fix the issue and properly configure the |
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. |
Not stale |
Terraform Version, ArgoCD Provider Version and ArgoCD Version
Affected Resource(s)
argocd_application
Terraform Configuration Files
Steps to Reproduce
Take a standard directory based argocd application without the directory param set in the terraform HCL or in the app manifest, add directory and includes
Expected Behavior
The provider should have added to the source block:
Actual Behavior
No diff reported
References
By default ArgoCD will infer directory if you just provide a source path in a repo, though we recently hit a bug with configuration mangement plugin resolution that can be avoided if you explicitly put directory, helm, kustomize in the app manifest to avoid the plugin resolution.
argoproj/argo-cd#15763
Community Note
The text was updated successfully, but these errors were encountered: