Commit c63a87f
authored
Topic ocir user edit (#350)
When the OCIR user is specified for a BOAT user (e.g.
bmc_operator_access/myuser) for autoscaling the tenancy namespace for
the tenancy on which a WLS for OCI stack is applied is added to the user
name (e.g. paasprodjcs/bmc_operator_access/myuser). Since the
bmc_operator_access is the tenancy namespace the addition of the
additional tenancy namespace causes OCIR requests to fail.
With agreement from the proposal suggested by Adrian, we are going with
the following change -
If the ocir_username entered contains '/', then we assume that the
customer has entered the complete info including the tenancy_namespace,
identity domain and the username.
If the ocir_username doesn't have a '/', then we append the namespace to
it.
Testing -
a.) Created a stack with the tenancy namespace added. - Podman login was
successful and the namespace was not appended again.
b.) Created a stack without the namespace in the ocir_user variable -
Stack provisioning did append the namespace and in our case it was the
tenancy namespace where the stack is created1 parent ea9db9c commit c63a87f
File tree
5 files changed
+7
-6
lines changed- terraform
5 files changed
+7
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
164 | | - | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2601 | 2601 | | |
2602 | 2602 | | |
2603 | 2603 | | |
2604 | | - | |
| 2604 | + | |
2605 | 2605 | | |
2606 | 2606 | | |
2607 | 2607 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2138 | 2138 | | |
2139 | 2139 | | |
2140 | 2140 | | |
2141 | | - | |
| 2141 | + | |
2142 | 2142 | | |
2143 | 2143 | | |
2144 | 2144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2610 | 2610 | | |
2611 | 2611 | | |
2612 | 2612 | | |
2613 | | - | |
| 2613 | + | |
2614 | 2614 | | |
2615 | 2615 | | |
2616 | 2616 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2138 | 2138 | | |
2139 | 2139 | | |
2140 | 2140 | | |
2141 | | - | |
| 2141 | + | |
2142 | 2142 | | |
2143 | 2143 | | |
2144 | 2144 | | |
| |||
0 commit comments