Skip to content

Commit f47380b

Browse files
authored
Merge pull request #48714 from xenolinux/secret-yaml-example
BZ2101861: Add an example YAML file for secrets
2 parents 12527b9 + 4418fba commit f47380b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

modules/installation-user-infra-generate-k8s-manifest-ignition.adoc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,24 @@ spec:
391391

392392
.. 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. The format for the secret data varies for each cloud provider.
393393
+
394+
.Sample `secrets.yaml` file:
395+
[source,yaml]
396+
----
397+
apiVersion: v1
398+
kind: Secret
399+
metadata:
400+
name: ${secret_name}
401+
namespace: ${secret_namespace}
402+
stringData:
403+
azure_subscription_id: ${subscription_id}
404+
azure_client_id: ${app_id}
405+
azure_client_secret: ${client_secret}
406+
azure_tenant_id: ${tenant_id}
407+
azure_resource_prefix: ${cluster_name}
408+
azure_resourcegroup: ${resource_group}
409+
azure_region: ${azure_region}
410+
----
411+
394412
[IMPORTANT]
395413
====
396414
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-gate: TechPreviewNoUpgrade` annotation.

0 commit comments

Comments
 (0)