We are using !in-cluster to indicate we are in the desktop version, but while this works in most cases, it's not a very direct check and an override of this flag can have implications if Headlamp is hosted with in-cluster=false.
So let's add a proper check for whether we are in-desktop. Otherwise, we can also add feature flags for each feature we're restricting to in-desktop.
We are using
!in-cluster
to indicate we are in the desktop version, but while this works in most cases, it's not a very direct check and an override of this flag can have implications if Headlamp is hosted within-cluster=false
.So let's add a proper check for whether we are in-desktop. Otherwise, we can also add feature flags for each feature we're restricting to in-desktop.