Skip to content

Commit 2adcb94

Browse files
authored
fix placeholder pod reconcile
1 parent ca0ca91 commit 2adcb94

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/controller/keyvault/placeholder_pod.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ func (p *PlaceholderPodController) Reconcile(ctx context.Context, req ctrl.Reque
138138
}
139139

140140
func (p *PlaceholderPodController) buildDeployment(dep *appsv1.Deployment, spc *secv1.SecretProviderClass, ing *netv1.Ingress) {
141-
labels := util.MergeMaps(map[string]string{"app": spc.Name}, manifests.GetTopLevelLabels())
141+
labels := map[string]string{"app": spc.Name}
142142

143143
dep.Spec = appsv1.DeploymentSpec{
144144
Replicas: util.Int32Ptr(1),

pkg/controller/keyvault/placeholder_pod_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func TestPlaceholderPodControllerIntegration(t *testing.T) {
9292
replicas := int32(1)
9393
historyLimit := int32(2)
9494

95-
expectedLabels := util.MergeMaps(spc.Labels, map[string]string{"app": spc.Name})
95+
expectedLabels := map[string]string{"app": spc.Name}
9696
expected := appsv1.DeploymentSpec{
9797
Replicas: &replicas,
9898
RevisionHistoryLimit: &historyLimit,
@@ -217,7 +217,7 @@ func TestPlaceholderPodControllerNoManagedByLabels(t *testing.T) {
217217
replicas := int32(1)
218218
historyLimit := int32(2)
219219

220-
expectedLabels := util.MergeMaps(map[string]string{"app": spc.Name}, manifests.GetTopLevelLabels())
220+
expectedLabels := map[string]string{"app": spc.Name}
221221
expected := appsv1.DeploymentSpec{
222222
Replicas: &replicas,
223223
RevisionHistoryLimit: &historyLimit,

0 commit comments

Comments
 (0)