Skip to content

Commit 4f55a58

Browse files
authored
Merge pull request #227 from olfway/kustomize-v5.0.1
Upgrade kustomize to v5.0.1
2 parents caaf745 + 760f5b0 commit 4f55a58

File tree

8 files changed

+83
-53
lines changed

8 files changed

+83
-53
lines changed

go.mod

+13-13
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ go 1.17
55
require (
66
github.com/hashicorp/terraform-plugin-sdk/v2 v2.24.1
77
github.com/mitchellh/go-homedir v1.1.0
8-
github.com/stretchr/testify v1.7.2
8+
github.com/stretchr/testify v1.8.1
99
k8s.io/api v0.24.1
1010
k8s.io/apimachinery v0.24.1
1111
k8s.io/client-go v0.24.1
1212
k8s.io/kubectl v0.24.1
13-
sigs.k8s.io/kustomize/api v0.11.5
14-
sigs.k8s.io/kustomize/kyaml v0.13.7
13+
sigs.k8s.io/kustomize/api v0.13.2
14+
sigs.k8s.io/kustomize/kyaml v0.14.1
1515
)
1616

1717
require (
@@ -25,14 +25,14 @@ require (
2525
github.com/agext/levenshtein v1.2.3 // indirect
2626
github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect
2727
github.com/davecgh/go-spew v1.1.1 // indirect
28-
github.com/emicklei/go-restful/v3 v3.7.5-0.20220308211933-7c971ca4d0fd // indirect
28+
github.com/emicklei/go-restful/v3 v3.8.0 // indirect
2929
github.com/evanphx/json-patch v5.6.0+incompatible // indirect
3030
github.com/fatih/color v1.13.0 // indirect
3131
github.com/go-errors/errors v1.4.2 // indirect
3232
github.com/go-logr/logr v1.2.3 // indirect
33-
github.com/go-openapi/jsonpointer v0.19.5 // indirect
34-
github.com/go-openapi/jsonreference v0.20.0 // indirect
35-
github.com/go-openapi/swag v0.21.1 // indirect
33+
github.com/go-openapi/jsonpointer v0.19.6 // indirect
34+
github.com/go-openapi/jsonreference v0.20.1 // indirect
35+
github.com/go-openapi/swag v0.22.3 // indirect
3636
github.com/gogo/protobuf v1.3.2 // indirect
3737
github.com/golang-jwt/jwt/v4 v4.4.1 // indirect
3838
github.com/golang/protobuf v1.5.2 // indirect
@@ -85,11 +85,11 @@ require (
8585
github.com/zclconf/go-cty v1.12.1 // indirect
8686
go.starlark.net v0.0.0-20220328144851-d1966c6b9fcd // indirect
8787
golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e // indirect
88-
golang.org/x/net v0.0.0-20220607020251-c690dde0001d // indirect
88+
golang.org/x/net v0.4.0 // indirect
8989
golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb // indirect
90-
golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d // indirect
91-
golang.org/x/term v0.0.0-20220526004731-065cf7ba2467 // indirect
92-
golang.org/x/text v0.3.7 // indirect
90+
golang.org/x/sys v0.3.0 // indirect
91+
golang.org/x/term v0.3.0 // indirect
92+
golang.org/x/text v0.5.0 // indirect
9393
golang.org/x/time v0.0.0-20220609170525-579cf78fd858 // indirect
9494
google.golang.org/appengine v1.6.7 // indirect
9595
google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac // indirect
@@ -99,9 +99,9 @@ require (
9999
gopkg.in/yaml.v2 v2.4.0 // indirect
100100
gopkg.in/yaml.v3 v3.0.1 // indirect
101101
k8s.io/klog/v2 v2.60.1 // indirect
102-
k8s.io/kube-openapi v0.0.0-20220603121420-31174f50af60 // indirect
102+
k8s.io/kube-openapi v0.0.0-20230109183929-3758b55a6596 // indirect
103103
k8s.io/utils v0.0.0-20220210201930-3a6ce19ff2f9 // indirect
104104
sigs.k8s.io/json v0.0.0-20220525155127-227cbc7cc124 // indirect
105-
sigs.k8s.io/structured-merge-diff/v4 v4.2.1 // indirect
105+
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
106106
sigs.k8s.io/yaml v1.3.0 // indirect
107107
)

go.sum

+59-29
Large diffs are not rendered by default.

kustomize/data_source_kustomization_overlay_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ func TestDataSourceKustomizationOverlay_patches(t *testing.T) {
589589
{
590590
Config: testKustomizationPatchesConfig(),
591591
Check: resource.ComposeAggregateTestCheckFunc(
592-
resource.TestCheckOutput("check_dep", "{\"apiVersion\":\"apps/v1\",\"kind\":\"Deployment\",\"metadata\":{\"labels\":{\"app\":\"test\"},\"name\":\"test\",\"namespace\":\"test-basic\"},\"spec\":{\"replicas\":1,\"selector\":{\"matchLabels\":{\"app\":\"test\"}},\"strategy\":{},\"template\":{\"metadata\":{\"labels\":{\"app\":\"test\"}},\"spec\":{\"containers\":[{\"env\":[{\"name\":\"TESTENV\",\"value\":\"true\"}],\"image\":\"nginx\",\"name\":\"nginx\",\"resources\":{}}]}}},\"status\":{}}"),
592+
resource.TestCheckOutput("check_dep", "{\"apiVersion\":\"apps/v1\",\"kind\":\"Deployment\",\"metadata\":{\"creationTimestamp\":null,\"labels\":{\"app\":\"test\"},\"name\":\"test\",\"namespace\":\"test-basic\"},\"spec\":{\"replicas\":1,\"selector\":{\"matchLabels\":{\"app\":\"test\"}},\"strategy\":{},\"template\":{\"metadata\":{\"creationTimestamp\":null,\"labels\":{\"app\":\"test\"}},\"spec\":{\"containers\":[{\"env\":[{\"name\":\"TESTENV\",\"value\":\"true\"}],\"image\":\"nginx\",\"name\":\"nginx\",\"resources\":{}}]}}},\"status\":{}}"),
593593
resource.TestCheckOutput("check_ingress", "{\"apiVersion\":\"networking.k8s.io/v1\",\"kind\":\"Ingress\",\"metadata\":{\"annotations\":{\"nginx.ingress.kubernetes.io/rewrite-target\":\"/\"},\"name\":\"test\",\"namespace\":\"test-basic\"},\"spec\":{\"rules\":[{\"http\":{\"paths\":[{\"backend\":{\"service\":{\"name\":\"test\",\"port\":{\"number\":80}}},\"path\":\"/testpath\",\"pathType\":\"Prefix\"}]}}]}}"),
594594
),
595595
},
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: test.example.com/v1alpha1
2+
kind: Clusteredcrd
3+
metadata:
4+
name: clusteredco
5+
spec:
6+
test-key: test-value-modified

kustomize/test_kustomizations/crd/modified/co-patch.yaml renamed to kustomize/test_kustomizations/crd/modified/co-patch-namespaced.yaml

-7
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,3 @@ metadata:
55
namespace: test-crd
66
spec:
77
test-key: test-value-modified
8-
---
9-
apiVersion: test.example.com/v1alpha1
10-
kind: Clusteredcrd
11-
metadata:
12-
name: clusteredco
13-
spec:
14-
test-key: test-value-modified

kustomize/test_kustomizations/crd/modified/kustomization.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ resources:
22
- ../initial
33

44
patches:
5-
- co-patch.yaml
5+
- path: co-patch-clustered.yaml
6+
- path: co-patch-namespaced.yaml

kustomize/test_kustomizations/update_recreate/modified/kustomization.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ resources:
55
- ../initial
66

77
patches:
8-
- patch_selector.yaml
8+
- path: patch_selector.yaml

kustomize/test_kustomizations/webhook/modified/kustomization.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ resources:
22
- ../initial
33

44
patches:
5-
- webhook-patch.yaml
5+
- path: webhook-patch.yaml

0 commit comments

Comments
 (0)