Remove ClusterName

This commit is contained in:
Daniel Smith
2022-04-20 23:50:27 +00:00
parent 71df3e819b
commit 331525670b
23 changed files with 8 additions and 197 deletions

View File

@@ -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)

View File

@@ -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 {

View File

@@ -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{

View File

@@ -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) {