Skip to content

Commit

Permalink
Revert "Fix resource key to keep compatibility"
Browse files Browse the repository at this point in the history
Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>

This reverts commit 098d1da.
  • Loading branch information
Warashi committed Dec 18, 2024
1 parent 63c8d77 commit 057b9f5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
7 changes: 0 additions & 7 deletions pkg/app/pipedv1/plugin/kubernetes/provider/loader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ metadata:
Key: ResourceKey{
APIVersion: "v1",
Kind: "ConfigMap",
Namespace: "default",
Name: "test-config",
},
Body: &unstructured.Unstructured{
Expand Down Expand Up @@ -94,7 +93,6 @@ metadata:
Key: ResourceKey{
APIVersion: "v1",
Kind: "ConfigMap",
Namespace: "default",
Name: "test-config",
},
Body: &unstructured.Unstructured{
Expand All @@ -111,7 +109,6 @@ metadata:
Key: ResourceKey{
APIVersion: "v1",
Kind: "Service",
Namespace: "default",
Name: "test-service",
},
Body: &unstructured.Unstructured{
Expand Down Expand Up @@ -194,7 +191,6 @@ metadata:
Key: ResourceKey{
APIVersion: "v1",
Kind: "ConfigMap",
Namespace: "default",
Name: "test-config",
},
Body: &unstructured.Unstructured{
Expand Down Expand Up @@ -237,7 +233,6 @@ metadata:
Key: ResourceKey{
APIVersion: "v1",
Kind: "Service",
Namespace: "default",
Name: "test-service",
},
Body: &unstructured.Unstructured{
Expand Down Expand Up @@ -279,7 +274,6 @@ metadata:
Key: ResourceKey{
APIVersion: "v1",
Kind: "ConfigMap",
Namespace: "default",
Name: "test-config",
},
Body: &unstructured.Unstructured{
Expand All @@ -296,7 +290,6 @@ metadata:
Key: ResourceKey{
APIVersion: "v1",
Kind: "Service",
Namespace: "default",
Name: "test-service",
},
Body: &unstructured.Unstructured{
Expand Down
3 changes: 0 additions & 3 deletions pkg/app/pipedv1/plugin/kubernetes/provider/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,6 @@ func MakeResourceKey(obj *unstructured.Unstructured) ResourceKey {
Namespace: obj.GetNamespace(),
Name: obj.GetName(),
}
if k.Namespace == "" {
k.Namespace = DefaultNamespace
}
return k
}

Expand Down

0 comments on commit 057b9f5

Please sign in to comment.