Skip to content

Commit 23afdc9

Browse files
committed
fix: peer command default network resources namespace
1 parent 10ef308 commit 23afdc9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkg/liqoctl/peer/handler.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,13 @@ func (o *Options) RunPeer(ctx context.Context) error {
7676
ctx, cancel := context.WithTimeout(ctx, o.Timeout)
7777
defer cancel()
7878

79+
// To ease the experience for most users, we disable the namespace flag so that resources
80+
// are created according to the default Liqo logic.
81+
// Advanced users can use the individual commands (e.g., liqoctl init, liqoctl connect, etc..) to
82+
// customize the namespaces according to their needs (e.g., networking resources in a specific namespace).
83+
o.LocalFactory.Namespace = ""
84+
o.RemoteFactory.Namespace = ""
85+
7986
// Ensure networking
8087
if !o.NetworkingDisabled {
8188
if err := ensureNetworking(ctx, o); err != nil {

0 commit comments

Comments
 (0)