You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: introduce NodeProvider interface for unified node management (#512)
* refactor: introduce NodeProvider interface for unified node management
* fix: do not check for deployment type in node-funder and improve logs
* refactor: enhance restart command to utilize NodeProvider (#516)
* refactor: enhance restart command to utilize NodeProvider
* refactor: add deployment-type flag to restart command
* docs: update restart command docs in README
* refactor: simplify restart command by removing unused cluster name and namespace checks
* fix: adjust node name handling for Ingress and IngressRoute nodes
* fix: change Service Port type to interface{} for better handling of string and number values (temp)
* lint: remove unnecessary blank line
* fix: update node discovery
* feat: smoke file sizes (#505)
* feat: fize-sizes param for smoke
* ci: file-sizes in configs
* ci: file-sizes in staging
* refactor: comments
* refactor: backward compatibility for ContentSize
* fix: comments
* fix(load): use content-size for load check (#522)
---------
Co-authored-by: Ljubiša Gačević <[email protected]>
* refactor: add new config file and split nodes setup for create cluster (#487)
* chore: add new config file and split nodes setup for create cluster
* chore: update config to use latest docker image
* fix: add image flag to restart cmd
* refactor: add node groups support for filtering nodes
* refactor: enhance Client structure to include NodeGroupName and update filtering logic for beekeeper deployments
* refactor(node): improve filterClientsByNodeGroups method
---------
Co-authored-by: Ljubisa Gacevic <[email protected]>
Co-authored-by: nugaon <[email protected]>
Co-authored-by: Ljubiša Gačević <[email protected]>
* fix: minor changes
* fix: use node-grups for filtering
---------
Co-authored-by: Akrem Chabchoub <[email protected]>
Co-authored-by: nugaon <[email protected]>
Command **restart** restarts bee nodes in Kubernetes, with optional targeting by namespace, label selectors, and node groups.
542
+
Command **restart** restarts bee nodes in Kubernetes using a unified node management interface, with optional targeting by cluster name, namespace, label selectors, and node groups.
543
543
544
544
It has following flags:
545
545
@@ -550,6 +550,7 @@ It has following flags:
550
550
--image string Container image to use when restarting pods (defaults to current image if not set).
551
551
--node-groups strings Comma-separated list of node groups to target for restarts (applies to all groups if not set).
@@ -130,6 +123,7 @@ Requires --wallet-key for the funding account and --geth-url for blockchain acce
130
123
cmd.Flags().Float64(optionNameMinNative, 0, "Minimum amount of chain native coins (xDAI) nodes should have.")
131
124
cmd.Flags().Float64(optionNameMinSwarm, 0, "Minimum amount of swarm tokens (xBZZ) nodes should have.")
132
125
cmd.Flags().String(optionNameLabelSelector, nodeFunderLabelSelector, "Kubernetes label selector for filtering resources within the specified namespace. Use an empty string to select all resources.")
126
+
cmd.Flags().StringSlice(optionNameNodeGroups, nil, "List of node groups to target for node-funder (applies to all groups if not set). Only used with --cluster-name.")
This command provides StatefulSet update and rollback procedures to maintain cluster stability during the nuke process, ensuring safe and coordinated resets of node state.`,
cmd.Flags().String(optionNameLabelSelector, beeLabelSelector, "Kubernetes label selector for filtering resources when namespace is set (use empty string for all).")
58
+
cmd.Flags().StringSlice(optionNameNodeGroups, nil, "List of node groups to target for nuke (applies to all groups if not set). Only used with --cluster-name.")
cmd.Flags().StringSlice(optionNameRestartArgs, []string{"bee", "start", "--config=.bee.yaml"}, "Command to run in the Bee cluster, e.g. 'db,nuke,--config=.bee.yaml'")
97
61
cmd.Flags().Bool(optionNameUseRandomNeighboorhood, false, "Use random neighborhood for Bee nodes (default: false)")
returnfmt.Errorf("restarting pods in namespace %s: %w", namespace, err)
83
-
}
84
-
85
-
returnnil
61
+
})
86
62
},
87
63
PreRunE: c.preRunE,
88
64
}
89
65
90
66
cmd.Flags().String(optionNameClusterName, "", "Kubernetes cluster to operate on (overrides namespace and label selector).")
91
67
cmd.Flags().StringP(optionNameNamespace, "n", "", "Namespace to delete pods from (only used if cluster name is not set).")
92
-
cmd.Flags().String(optionNameLabelSelector, "", "Label selector for resources in the namespace (only used with namespace).")
68
+
cmd.Flags().String(optionNameLabelSelector, beeLabelSelector, "Label selector for resources in the namespace (only used with namespace).")
93
69
cmd.Flags().String(optionNameImage, "", "Container image to use when restarting pods (defaults to current image if not set).")
94
-
cmd.Flags().StringSlice(optionNameNodeGroups, nil, "List of node groups to target for restarts (applies to all groups if not set).")
70
+
cmd.Flags().StringSlice(optionNameNodeGroups, nil, "List of node groups to target for restarts (applies to all groups if not set). Only used with --cluster-name.")
0 commit comments