We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cab806 commit 4e908f1Copy full SHA for 4e908f1
path-aware/provider.go
@@ -98,8 +98,8 @@ type pathHook struct {
98
func (p *pathHook) OnAdd(obj client.Object) {
99
cluster := logicalcluster.From(obj)
100
101
- path, ok := obj.GetAnnotations()[kcpcore.LogicalClusterPathAnnotationKey]
102
- if !ok || path == "" {
+ path := obj.GetAnnotations()[kcpcore.LogicalClusterPathAnnotationKey]
+ if path == "" {
103
return
104
}
105
0 commit comments