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 e667abb commit db6e644Copy full SHA for db6e644
pkg/addon/policyframework/agent_addon.go
@@ -104,7 +104,10 @@ func getValues(cluster *clusterv1.ManagedCluster,
104
annotations := addon.GetAnnotations()
105
hostingClusterName := annotations[addonapiv1alpha1.HostingClusterNameAnnotationKey]
106
// special case for local-cluster
107
- if cluster.Name == "local-cluster" || hostingClusterName == "local-cluster" {
+ isLocal := cluster.Name == "local-cluster" ||
108
+ hostingClusterName == "local-cluster" ||
109
+ cluster.GetLabels()["local-cluster"] == "true"
110
+ if isLocal {
111
userValues.OnMulticlusterHub = true
112
}
113
0 commit comments