fix generation bug (#2047)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user