Skip to content

Commit b18c4c7

Browse files
committed
Explicit namespace on get-crc-creds
The `get-crc-creds.sh` script expects the currently selected project to be `openstack`, but that's unlikely to happen if we are doing things on the `openstack-lightspeed` namespace. In this patch we update the script so it explicit sets the namespace on the `oc` commands.
1 parent 69bb142 commit b18c4c7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/get-crc-creds.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ eval $(crc oc-env)
44

55
# Get the TLS CA bundle used by the OpenStack client
66
# (we could also get it from the secret, but the command is less clear)
7-
oc cp openstackclient:/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem ./tls-ca-bundle.pem
7+
oc -n openstack cp openstackclient:/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem ./tls-ca-bundle.pem
88

99
# Get the OpenStack credentials
10-
oc cp openstackclient:/home/cloud-admin/.config/openstack/clouds.yaml ./clouds.yaml
11-
oc cp openstackclient:/home/cloud-admin/.config/openstack/secure.yaml ./secure.yaml
10+
oc -n openstack cp openstackclient:/home/cloud-admin/.config/openstack/clouds.yaml ./clouds.yaml
11+
oc -n openstack cp openstackclient:/home/cloud-admin/.config/openstack/secure.yaml ./secure.yaml

0 commit comments

Comments
 (0)