forked from openservicemesh/osm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request openservicemesh#3598 from steeling/feature/catalog…
…-multi feat(pkg/catalog): Gateway gets all in-cluster services for ListAllowedOutbound
- Loading branch information
Showing
4 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package catalog | ||
|
||
import ( | ||
"github.com/openservicemesh/osm/pkg/envoy" | ||
"github.com/openservicemesh/osm/pkg/identity" | ||
) | ||
|
||
// isOSMGateway checks if the ServiceIdentity belongs to the MultiClusterGateway. | ||
// Only used if MultiClusterMode is enabled. | ||
func (mc *MeshCatalog) isOSMGateway(svcIdentity identity.ServiceIdentity) bool { | ||
sa := svcIdentity.ToK8sServiceAccount() | ||
return mc.configurator.GetFeatureFlags().EnableMulticlusterMode && | ||
envoy.ProxyKind(sa.Name) == envoy.KindGateway && sa.Namespace == mc.configurator.GetOSMNamespace() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters