Skip to content

Commit

Permalink
update uid
Browse files Browse the repository at this point in the history
  • Loading branch information
Siva Manivannan committed Jun 20, 2024
1 parent 286c93a commit 4ee4450
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/k8sutil/fake.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func CreateTestDeployment(name string, namespace string, revision string, matchL
Annotations: map[string]string{
"deployment.kubernetes.io/revision": revision,
},
UID: "test-uid",
UID: "test-deployment-uid",
},
Spec: appsv1.DeploymentSpec{
Selector: &metav1.LabelSelector{
Expand All @@ -32,13 +32,15 @@ func CreateTestReplicaSet(name string, namespace string, revision string) *appsv
Annotations: map[string]string{
"deployment.kubernetes.io/revision": revision,
},
UID: "test-deployment-uid",
},
}
}

func CreateTestPod(name string, namespace string, replicaSetName string, labels map[string]string) *corev1.Pod {
return &corev1.Pod{
ObjectMeta: metav1.ObjectMeta{
UID: "test-deployment-uid",
Name: name,
Namespace: namespace,
Labels: labels,
Expand Down

0 comments on commit 4ee4450

Please sign in to comment.