From c6a32bcca29db8ef48c4f6704b0431f860c8ded0 Mon Sep 17 00:00:00 2001 From: Cem Mergenci Date: Fri, 13 Sep 2024 10:19:19 +0300 Subject: [PATCH] Add Storage Account example manifest. Signed-off-by: Cem Mergenci --- examples/storage/v1beta1/account.yaml | 44 +++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 examples/storage/v1beta1/account.yaml diff --git a/examples/storage/v1beta1/account.yaml b/examples/storage/v1beta1/account.yaml new file mode 100644 index 000000000..c00cf25e1 --- /dev/null +++ b/examples/storage/v1beta1/account.yaml @@ -0,0 +1,44 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: CC0-1.0 + +# Note that this resource is not _properly_ Uptestable, because Uptest +# cannot generate a random string that conforms to Azure Storage +# Account naming criteria: +# https://learn.microsoft.com/en-us/azure/storage/common/storage-account-overview#storage-account-name +# +# Uptest should succeed, as long as the hardcoded `metadata.name` +# below is available. + +apiVersion: storage.azure.upbound.io/v1beta1 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: storage/v1beta1/account + labels: + testing.upbound.io/example-name: example-storage + name: examplesa539891 +spec: + forProvider: + accountReplicationType: LRS + accountTier: Standard + location: "West Europe" + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example-storage + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: storage/v1beta1/account + labels: + testing.upbound.io/example-name: example-storage + name: example-storage-${Rand.RFC1123Subdomain} +spec: + forProvider: + location: "West Europe" + tags: + provisioner: crossplane