Skip to content

Commit a6fa04f

Browse files
authored
fix: create index for pod annotation path for allowkubernetessync annotation instead of deployment (#582)
Signed-off-by: odubajDT <[email protected]>
1 parent 70fb5d9 commit a6fa04f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,14 @@ func main() {
137137
if err := mgr.GetFieldIndexer().IndexField(
138138
context.Background(),
139139
&corev1.Pod{},
140-
fmt.Sprintf("%s/%s", common.OpenFeatureAnnotationPath, common.AllowKubernetesSyncAnnotation),
140+
fmt.Sprintf("%s/%s", common.PodOpenFeatureAnnotationPath, common.AllowKubernetesSyncAnnotation),
141141
webhooks.OpenFeatureEnabledAnnotationIndex,
142142
); err != nil {
143143
setupLog.Error(
144144
err,
145145
"unable to create indexer",
146146
"webhook",
147-
fmt.Sprintf("%s/%s", common.OpenFeatureAnnotationPath, common.AllowKubernetesSyncAnnotation),
147+
fmt.Sprintf("%s/%s", common.PodOpenFeatureAnnotationPath, common.AllowKubernetesSyncAnnotation),
148148
)
149149
os.Exit(1)
150150
}

0 commit comments

Comments
 (0)