docs snapshot for crossplane version `v1.9`

This commit is contained in:
Crossplane 2022-08-31 16:40:56 +00:00
parent c7ba289e6c
commit 3f10c5beb6
5 changed files with 10 additions and 10 deletions

View File

@ -92,7 +92,7 @@ metadata:
namespace: crossplane-system namespace: crossplane-system
type: Opaque type: Opaque
data: data:
credentials: ${BASE64ENCODED_AWS_ACCOUNT_CREDS} creds: ${BASE64ENCODED_AWS_ACCOUNT_CREDS}
--- ---
apiVersion: aws.crossplane.io/v1beta1 apiVersion: aws.crossplane.io/v1beta1
kind: ProviderConfig kind: ProviderConfig
@ -104,7 +104,7 @@ spec:
secretRef: secretRef:
namespace: crossplane-system namespace: crossplane-system
name: aws-account-creds name: aws-account-creds
key: credentials key: creds
EOF EOF
# apply it to the cluster: # apply it to the cluster:

View File

@ -228,7 +228,7 @@ metadata:
namespace: ${PROVIDER_SECRET_NAMESPACE} namespace: ${PROVIDER_SECRET_NAMESPACE}
type: Opaque type: Opaque
data: data:
credentials: ${BASE64ENCODED_GCP_PROVIDER_CREDS} creds: ${BASE64ENCODED_GCP_PROVIDER_CREDS}
--- ---
apiVersion: gcp.crossplane.io/v1beta1 apiVersion: gcp.crossplane.io/v1beta1
kind: ProviderConfig kind: ProviderConfig
@ -242,7 +242,7 @@ spec:
secretRef: secretRef:
namespace: ${PROVIDER_SECRET_NAMESPACE} namespace: ${PROVIDER_SECRET_NAMESPACE}
name: gcp-account-creds name: gcp-account-creds
key: credentials key: creds
EOF EOF
# apply it to the cluster: # apply it to the cluster:

View File

@ -90,7 +90,7 @@ spec:
secretRef: secretRef:
namespace: crossplane-system namespace: crossplane-system
name: aws-creds name: aws-creds
key: key key: creds
``` ```
You can see that there is a reference to a key in a specific `Secret`. The value You can see that there is a reference to a key in a specific `Secret`. The value
@ -165,4 +165,4 @@ will attempt to use a `ProviderConfig` named `default`.
[provider-styra]: https://github.com/crossplane-contrib/provider-styra [provider-styra]: https://github.com/crossplane-contrib/provider-styra
[provider-styra-api]: https://doc.crds.dev/github.com/crossplane-contrib/provider-styra [provider-styra-api]: https://doc.crds.dev/github.com/crossplane-contrib/provider-styra
[provider-cloudflare]: https://github.com/crossplane-contrib/provider-cloudflare [provider-cloudflare]: https://github.com/crossplane-contrib/provider-cloudflare
[provider-cloudflare-api]: https://doc.crds.dev/github.com/crossplane-contrib/provider-cloudflare [provider-cloudflare-api]: https://doc.crds.dev/github.com/crossplane-contrib/provider-cloudflare

View File

@ -67,7 +67,7 @@ spec:
secretRef: secretRef:
namespace: crossplane-system namespace: crossplane-system
name: aws-creds name: aws-creds
key: key key: creds
``` ```
If a user desired for these credentials to be used to provision an If a user desired for these credentials to be used to provision an
@ -220,7 +220,7 @@ spec:
secretRef: secretRef:
namespace: crossplane-system namespace: crossplane-system
name: team-1-creds name: team-1-creds
key: key key: creds
``` ```
2. Define a `Composition` that patches the namespace of the Claim reference in the XR 2. Define a `Composition` that patches the namespace of the Claim reference in the XR

View File

@ -45,9 +45,9 @@ fi
echo "apiVersion: v1 echo "apiVersion: v1
data: data:
key: $AWS_CREDS_BASE64 creds: $AWS_CREDS_BASE64
kind: Secret kind: Secret
metadata: metadata:
name: aws-creds name: aws-creds
namespace: crossplane-system namespace: crossplane-system
type: Opaque" | kubectl apply -f - type: Opaque" | kubectl apply -f -