From 739f168ad5ebef5879369db226db59b52101f3b0 Mon Sep 17 00:00:00 2001 From: Fabio Pitino Date: Tue, 24 May 2022 16:05:48 +0000 Subject: [PATCH] Document the new `namespace` feature flag actor ChatOps command now supports the `--namespace` option to generically identify a group or namespace. --- doc/development/feature_flags/controls.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/development/feature_flags/controls.md b/doc/development/feature_flags/controls.md index 7d801c0071403e..f94f044e75d6b1 100644 --- a/doc/development/feature_flags/controls.md +++ b/doc/development/feature_flags/controls.md @@ -199,6 +199,14 @@ For groups the `--group` flag is available: /chatops run feature set --group=gitlab-org some_feature true ``` +Note that `--group` does not work with user namespaces. To enable a feature flag for a +generic namespace (including groups) use `--namespace`: + +```shell +/chatops run feature set --namespace=gitlab-org some_feature true +/chatops run feature set --namespace=myusername some_feature true +``` + Note that actor-based gates are applied before percentages. For example, considering the `group/project` as `gitlab-org/gitlab` and a given example feature as `some_feature`, if you run these 2 commands: -- GitLab