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
The **authorize-namespace.sh** script in the `scripts/` directory is used to set up roles and binding in a target namespace.
161
+
162
+
The syntax for the command is below:
163
+
164
+
```
165
+
authorize-namespace.sh - Authorize a namespace to be manageable from another namespace through the NamespaceScope operator
166
+
167
+
SYNTAX:
168
+
authorize-namespace.sh [namespace | default current namespace][-to namespacename | default ibm-common-services][-delete]
169
+
WHERE:
170
+
namespace : is the name of the namespace you wish to authorize. This namespace MUST exist
171
+
by default the current namespace is assumed
172
+
tonamespace : is the name of the namespace that you want to authorize to manage artifacts in this namespace.
173
+
This namespace MUST exist. The default is ibm-common-services.
174
+
The NamespaceScope CR MUST be define in this namespace with the name namespacescope.
175
+
-delete : Removes the ability for the tonamespace to manage artifacts in the namespace.
176
+
177
+
```
178
+
179
+
For example, if you want to grant namespace admin permission of `common-service` to the service account in `ibm-common-services` namespace, you can use the following command
180
+
181
+
```bash
182
+
scripts/authorize-namespace.sh common-service
183
+
```
184
+
185
+
**NOTE:** You must have cluster administrator access permissions to execute the command.
0 commit comments