Skip to content

Commit 0d480fd

Browse files
authored
chore: Add compat for Argo CD 2.13 (#579)
Signed-off-by: Marco Maurer <[email protected]>
1 parent 1602ef8 commit 0d480fd

File tree

8 files changed

+375
-1640
lines changed

8 files changed

+375
-1640
lines changed

.devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
// https://github.com/devcontainers/features/tree/main/src/kubectl-helm-minikube
2020
"ghcr.io/devcontainers/features/kubectl-helm-minikube:1": {
21-
"version": "1.27.11"
21+
"version": "1.29.15"
2222
},
2323
// https://github.com/rio/features/tree/main/src/kustomize
2424
"ghcr.io/rio/features/kustomize:1": {},
@@ -34,4 +34,4 @@
3434
],
3535
// Use 'postCreateCommand' to run commands after the container is created.
3636
"postCreateCommand": "scripts/testacc_prepare_env.sh" // pre-create the kind cluster with argocd installed
37-
}
37+
}

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
strategy:
6464
fail-fast: false
6565
matrix:
66-
argocd_version: ["v2.10.18", "v2.11.12", "v2.12.8"]
66+
argocd_version: ["v2.11.13", "v2.12.10", "v2.13.5"]
6767
terraform_version: ["1.4.*"]
6868
steps:
6969
- name: Check out code

GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ARGOCD_INSECURE?=true
44
ARGOCD_SERVER?=127.0.0.1:8080
55
ARGOCD_AUTH_USERNAME?=admin
66
ARGOCD_AUTH_PASSWORD?=acceptancetesting
7-
ARGOCD_VERSION?=v2.12.8
7+
ARGOCD_VERSION?=v2.13.5
88

99
export
1010

argocd/resource_argocd_cluster_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,9 @@ func TestAccArgoCDCluster(t *testing.T) {
3838
"shard",
3939
"1",
4040
),
41-
resource.TestCheckResourceAttr(
41+
resource.TestCheckResourceAttrSet(
4242
"argocd_cluster.simple",
4343
"info.0.server_version",
44-
"1.27",
4544
),
4645
resource.TestCheckResourceAttr(
4746
"argocd_cluster.simple",
@@ -69,10 +68,9 @@ func TestAccArgoCDCluster(t *testing.T) {
6968
"info.0.connection_state.0.status",
7069
"Successful",
7170
),
72-
resource.TestCheckResourceAttr(
71+
resource.TestCheckResourceAttrSet(
7372
"argocd_cluster.tls",
7473
"info.0.server_version",
75-
"1.27",
7674
),
7775
resource.TestCheckResourceAttr(
7876
"argocd_cluster.tls",

go.mod

Lines changed: 115 additions & 102 deletions
Large diffs are not rendered by default.

go.sum

Lines changed: 250 additions & 1528 deletions
Large diffs are not rendered by default.

internal/provider/server_interface.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ import (
2727
"github.com/hashicorp/terraform-plugin-framework/types"
2828
"github.com/hashicorp/terraform-plugin-log/tflog"
2929
"google.golang.org/protobuf/types/known/emptypb"
30+
"k8s.io/apimachinery/pkg/util/runtime"
3031
)
3132

32-
var runtimeErrorHandlers []func(error)
33+
var runtimeErrorHandlers []runtime.ErrorHandler
3334

3435
type ServerInterface struct {
3536
AccountClient account.AccountServiceClient

kind-config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ kind: Cluster
44
name: argocd
55
nodes:
66
- role: control-plane
7-
image: kindest/node:v1.27.11
7+
# It seems that the latest .15 patch release is not available, use latest available one instead
8+
image: kindest/node:v1.29.14
89
extraPortMappings:
910
- containerPort: 30123
1011
hostPort: 8080

0 commit comments

Comments
 (0)