fix generation bug (#2047)

This commit is contained in:
zryfish
2020-05-06 10:52:56 +08:00
committed by GitHub
parent 3ff82c7299
commit 7cdf67f9f2
2 changed files with 31 additions and 4 deletions

View File

@@ -61,12 +61,19 @@ kind: Deployment
metadata:
creationTimestamp: null
name: cluster-agent
namespace: kubesphere-system
spec:
selector: {}
selector:
matchLabels:
app: agent
app.kubernetes.io/part-of: tower
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: agent
app.kubernetes.io/part-of: tower
spec:
containers:
- command:
@@ -146,6 +153,10 @@ func TestGeranteAgentDeployment(t *testing.T) {
t.Fatalf("expecting error %v, got %v", testCase.expectedError, err)
}
}
if diff := cmp.Diff(testCase.expected, buf.String()); len(diff) != 0 {
t.Errorf("%T, got +, expected -, %s", testCase.expected, diff)
}
})
}