Skip to content

Commit

Permalink
feat: reatin dns config when sync pod to member cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
wy-lucky committed Feb 1, 2024
1 parent f6f307a commit 8ccae5b
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions pkg/controllers/sync/dispatch/retain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,10 @@ func Test_retainContainer(t *testing.T) {
desiredContainer: map[string]interface{}{
"name": "container-1",
"resources": map[string]interface{}{
"cpu": "500m",
"memory": "512Mi",
"requests": map[string]interface{}{
"cpu": "500m",
"memory": "512Mi",
},
},
},
clusterContainer: map[string]interface{}{
Expand All @@ -236,8 +238,10 @@ func Test_retainContainer(t *testing.T) {
desiredContainer: map[string]interface{}{
"name": "container-1",
"resources": map[string]interface{}{
"cpu": "500m",
"memory": "512Mi",
"requests": map[string]interface{}{
"cpu": "500m",
"memory": "512Mi",
},
},
},
clusterContainer: map[string]interface{}{
Expand All @@ -252,15 +256,19 @@ func Test_retainContainer(t *testing.T) {
desiredContainer: map[string]interface{}{
"name": "container-1",
"resources": map[string]interface{}{
"cpu": "500m",
"memory": "512Mi",
"requests": map[string]interface{}{
"cpu": "500m",
"memory": "512Mi",
},
},
},
clusterContainer: map[string]interface{}{
"name": "container-1",
"resources": map[string]interface{}{
"cpu": "100m",
"memory": "100Mi",
"requests": map[string]interface{}{
"cpu": "100m",
"memory": "100Mi",
},
},
},
},
Expand Down

0 comments on commit 8ccae5b

Please sign in to comment.