edit
The cldkctl guard edit command allows you to modify the configuration of an existing Guard in your project. This command can be used to update fields such as the Guard name, namespace, endpoint selector, and traffic rules for ingress and egress. It supports both interactive modification and YAML-based editing.
Usage
cldkctl guard edit [flags]Aliases
edit, modifySteps
Follow the steps below to run and view the result of this command:
Identify the Guard Name of the Guard you want to modify. You can find it in the Guard List section.
Run the following command in your terminal:
./cldkctl guard edit --name <guard_name>
The Name and Namespace fields are displayed automatically and cannot be edited.
Update the Endpoint Selector field by entering one or more labels (key-value pairs), separated by commas

Choose whether to clear existing ingress and egress rules before adding new ones. Select Yes, clear to remove all existing rules or No, keep to retain the current rules.


Decide whether to add new rules, such as a new ingress or egress rule. Select Yes to define new rules or No to skip.


Choose whether to deny all unspecified incoming or outgoing traffic. Select Yes, deny to block all traffic not defined in the rules, or No, allow to permit unspecified traffic.

When prompted with the confirmation message, select Confirm & Update to apply the new configuration.

Once the update is successful, the terminal displays the message “✔ Guard updated successfully!”.
Flags
-f, --file string
Path to a YAML file for creating or editing a Guard.
-h, --help
Help for the guard edit command.
-n, --name string
Specify the Guard name to edit.
-s, --namespace string
Specify the namespace.
--yaml
Enable YAML-based editing mode.
Last updated