Skip to content

Commit

Permalink
Detect ocm spoke using klusterlet
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Oct 1, 2024
1 parent 47d47f1 commit 804c79d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cluster/ocm.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ func IsOpenClusterHub(mapper meta.RESTMapper) bool {

func IsOpenClusterSpoke(mapper meta.RESTMapper) bool {
if _, err := mapper.RESTMappings(schema.GroupKind{
Group: "work.open-cluster-management.io",
Kind: "AppliedManifestWork",
Group: "operator.open-cluster-management.io",
Kind: "Klusterlet",
}); err == nil {
return true
}
Expand Down

0 comments on commit 804c79d

Please sign in to comment.