Skip to content

Commit

Permalink
fix: Add DiffSuppressFunc on argocd_cluster.server (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkilchhofer committed Feb 5, 2024
1 parent 0155fb7 commit b684013
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions argocd/schema_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package argocd

import (
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"strings"
)

func clusterSchema() map[string]*schema.Schema {
Expand All @@ -26,6 +27,9 @@ func clusterSchema() map[string]*schema.Schema {
Type: schema.TypeString,
Description: "Server is the API server URL of the Kubernetes cluster.",
Optional: true,
DiffSuppressFunc: func(k, oldValue, newValue string, d *schema.ResourceData) bool {
return oldValue == strings.TrimRight(newValue, "/")
},
},
"shard": {
Type: schema.TypeString,
Expand Down

0 comments on commit b684013

Please sign in to comment.