Skip to content

Commit 8c75e8f

Browse files
committed
OCPBUGS#6001: Add a step to create a secret for Azure
1 parent a9cd029 commit 8c75e8f

File tree

1 file changed

+44
-1
lines changed

1 file changed

+44
-1
lines changed

modules/manually-create-identity-access-management.adoc

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ spec:
198198
----
199199
endif::google-cloud-platform[]
200200
201-
. Create YAML files for secrets in the `openshift-install` manifests directory that you generated previously. The secrets must be stored using the namespace and secret name defined in the `spec.secretRef` for each `CredentialsRequest` object.
201+
. Create YAML files for secrets in the `openshift-install` manifests directory that you generated previously. The secrets must be stored using the namespace and secret name defined in the `spec.secretRef` for each `CredentialsRequest` object.
202202
+
203203
ifdef::ash[]
204204
.Sample `CredentialsRequest` object
@@ -228,6 +228,49 @@ spec:
228228
+
229229
endif::ash[]
230230
231+
.Sample `CredentialsRequest` object
232+
[source,yaml]
233+
----
234+
apiVersion: cloudcredential.openshift.io/v1
235+
kind: CredentialsRequest
236+
metadata:
237+
annotations:
238+
include.release.openshift.io/ibm-cloud-managed: "true"
239+
include.release.openshift.io/self-managed-high-availability: "true"
240+
include.release.openshift.io/single-node-developer: "true"
241+
labels:
242+
controller-tools.k8s.io: "1.0"
243+
name: openshift-image-registry-azure
244+
namespace: openshift-cloud-credential-operator
245+
spec:
246+
providerSpec:
247+
apiVersion: cloudcredential.openshift.io/v1
248+
kind: AzureProviderSpec
249+
roleBindings:
250+
- role: Contributor
251+
secretRef:
252+
name: installer-cloud-credentials
253+
namespace: openshift-image-registry
254+
----
255+
+
256+
.Sample `Secret` object
257+
[source,yaml]
258+
----
259+
apiVersion: v1
260+
kind: Secret
261+
metadata:
262+
namespace: openshift-image-registry
263+
name: installer-cloud-credentials
264+
data:
265+
azure_subscription_id: <base64_encrypted_azure_subscription_id>
266+
azure_client_id: <base64_encrypted_azure_client_id>
267+
azure_client_secret: <base64_encrypted_azure_client_secret>
268+
azure_tenant_id: <base64_encrypted_azure_tenant_id>
269+
azure_resource_prefix: <base64_encrypted_azure_resource_prefix>
270+
azure_resourcegroup: <base64_encrypted_azure_resourcegroup>
271+
azure_region: <base64_encrypted_azure_region>
272+
----
273+
+
231274
[IMPORTANT]
232275
====
233276
The release image includes `CredentialsRequest` objects for Technology Preview features that are enabled by the `TechPreviewNoUpgrade` feature set. You can identify these objects by their use of the `release.openshift.io/feature-set: TechPreviewNoUpgrade` annotation.

0 commit comments

Comments
 (0)