Skip to content

Commit 2f893c2

Browse files
committed
Replace mc config host add with mc alias set in cloudscale decommissioning
NOTE: This is supported in mc >= `RELEASE.2024-01-18T07-03-39Z`.
1 parent 4d42988 commit 2f893c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/modules/ROOT/pages/how-tos/cloudscale/decommission.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Steps to remove an OpenShift 4 cluster from https://cloudscale[cloudscale.ch].
1717

1818
include::partial$cloudscale/prerequisites.adoc[]
1919
* `emergency-credentials-receive` https://github.com/vshn/emergency-credentials-receive?tab=readme-ov-file#install-from-binary[Install instructions]
20-
* `mc` >= `RELEASE.2021-07-27T06-46-19Z` https://docs.min.io/docs/minio-client-quickstart-guide.html[Minio client] (aliased to `mc` if necessary)
20+
* `mc` >= `RELEASE.2024-01-18T07-03-39Z` https://docs.min.io/docs/minio-client-quickstart-guide.html[Minio client] (aliased to `mc` if necessary)
2121

2222
== Cluster Decommission
2323

@@ -142,7 +142,7 @@ response=$(curl -sH "Authorization: Bearer ${CLOUDSCALE_API_TOKEN}" \
142142
jq -e ".[] | select(.display_name == \"${CLUSTER_ID}\")")
143143
144144
# configure minio client to use the bucket
145-
mc config host add \
145+
mc alias set \
146146
"${CLUSTER_ID}" "https://objects.${REGION}.cloudscale.ch" \
147147
$(echo $response | jq -r '.keys[0].access_key') \
148148
$(echo $response | jq -r '.keys[0].secret_key')
@@ -170,7 +170,7 @@ At this point in the decommissioning process, you'll have to extract the Restic
170170
[source,bash]
171171
----
172172
# configure minio client to use the bucket
173-
mc config host add \
173+
mc alias set \
174174
"${CLUSTER_ID}_backup" "https://objects.${BACKUP_REGION}.cloudscale.ch" \
175175
$(echo $response | jq -r '.keys[0].access_key') \
176176
$(echo $response | jq -r '.keys[0].secret_key')

0 commit comments

Comments
 (0)