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.
feat(pkg/catalog): gateway is configured for SSL passthrough
Prep multi cluster gateway, by adding logic to the MeshCatalog for the gateway Signed-off-by: Sean Teeling <[email protected]> Co-authored-by: Sneha Chhabria <[email protected]>
- Loading branch information
1 parent
cd0bf12
commit 346ec28
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