Remove ClusterName
This commit is contained in:
@@ -180,7 +180,6 @@ func fuzzObject(t *testing.T, gvk schema.GroupVersionKind) runtime.Object {
|
||||
c.FuzzNoCustom(s)
|
||||
s.ManagedFields = nil
|
||||
s.SelfLink = ""
|
||||
s.ZZZ_DeprecatedClusterName = ""
|
||||
},
|
||||
).Fuzz(internalObj)
|
||||
|
||||
|
||||
@@ -1356,14 +1356,6 @@ func testValidatePVC(t *testing.T, ephemeral bool) {
|
||||
return claim
|
||||
}(),
|
||||
},
|
||||
"with-cluster-name": {
|
||||
isExpectedFailure: ephemeral,
|
||||
claim: func() *core.PersistentVolumeClaim {
|
||||
claim := testVolumeClaim(goodName, goodNS, goodClaimSpec)
|
||||
claim.ZZZ_DeprecatedClusterName = "foo"
|
||||
return claim
|
||||
}(),
|
||||
},
|
||||
"with-managed-fields": {
|
||||
isExpectedFailure: ephemeral,
|
||||
claim: func() *core.PersistentVolumeClaim {
|
||||
|
||||
@@ -1460,11 +1460,11 @@ func TestDropNonEphemeralContainerUpdates(t *testing.T) {
|
||||
},
|
||||
newPod: &api.Pod{
|
||||
ObjectMeta: metav1.ObjectMeta{
|
||||
Name: "test-pod",
|
||||
Namespace: "test-ns",
|
||||
ResourceVersion: "1",
|
||||
Annotations: map[string]string{"foo": "bar", "whiz": "pop"},
|
||||
ZZZ_DeprecatedClusterName: "milo",
|
||||
Name: "test-pod",
|
||||
Namespace: "test-ns",
|
||||
ResourceVersion: "1",
|
||||
Annotations: map[string]string{"foo": "bar", "whiz": "pop"},
|
||||
Finalizers: []string{"milo"},
|
||||
},
|
||||
Spec: api.PodSpec{
|
||||
Containers: []api.Container{
|
||||
|
||||
@@ -190,7 +190,6 @@ func TestNewMetadataFields(t *testing.T) {
|
||||
objMeta.Annotations = nil
|
||||
objMeta.OwnerReferences = nil
|
||||
objMeta.Finalizers = nil
|
||||
objMeta.ZZZ_DeprecatedClusterName = ""
|
||||
objMeta.ManagedFields = nil
|
||||
|
||||
if !reflect.DeepEqual(metav1.ObjectMeta{}, objMeta) {
|
||||
|
||||
Reference in New Issue
Block a user