-
Notifications
You must be signed in to change notification settings - Fork 277
cli: Add enforce single mesh functionality to osm install #1854
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1854 +/- ##
==========================================
+ Coverage 59.09% 59.15% +0.05%
==========================================
Files 125 125
Lines 5171 5183 +12
==========================================
+ Hits 3056 3066 +10
- Misses 2112 2114 +2
Partials 3 3
Continue to review full report at Codecov.
|
cmd/cli/install.go
Outdated
singleMeshEnforced := mesh.ObjectMeta.Labels["enforceSingleMesh"] == "true" | ||
name := mesh.ObjectMeta.Labels["meshName"] | ||
if singleMeshEnforced { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the single mesh feature is a cluster wide configuration, should we introduce semantics for cluster wide configurations, such as a configMap in the default namespace, as opposed to labels on deployments?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per offline discussions with the team, we will push this out until later when more cluster wide configurations arise.
Description:
--enable-single-mesh enforces that only one mesh is installed in the cluster
Fixes #1754
Affected area:
Please answer the following questions with yes/no.
No