diff --git a/examples/containerapp/v1beta1/containerapp-with-secret.yaml b/examples/containerapp/v1beta1/containerapp-with-secret.yaml new file mode 100644 index 000000000..ba7d36c7c --- /dev/null +++ b/examples/containerapp/v1beta1/containerapp-with-secret.yaml @@ -0,0 +1,93 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: CC0-1.0 + +apiVersion: containerapp.azure.upbound.io/v1beta1 +kind: ContainerApp +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/containerapp + labels: + testing.upbound.io/example-name: example + name: example-capp +spec: + forProvider: + containerAppEnvironmentIdSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + revisionMode: Single + template: + - container: + - cpu: 0.25 + image: mcr.microsoft.com/azuredocs/containerapps-helloworld:latest + memory: 0.5Gi + name: examplecontainerapp + secret: + - nameSecretRef: + key: name + name: example-secret + namespace: upbound-system + valueSecretRef: + key: value + name: example-secret + namespace: upbound-system +--- +apiVersion: v1 +kind: Secret +metadata: + name: example-secret + namespace: upbound-system +type: Opaque +stringData: + value: dXBib3VuZHJvY2tz + name: upbtestone +--- +apiVersion: containerapp.azure.upbound.io/v1beta1 +kind: Environment +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/containerapp + labels: + testing.upbound.io/example-name: example + name: example-env +spec: + forProvider: + location: West Europe + logAnalyticsWorkspaceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example +--- +apiVersion: operationalinsights.azure.upbound.io/v1beta1 +kind: Workspace +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/containerapp + labels: + testing.upbound.io/example-name: example + name: example-wr +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + retentionInDays: 30 + sku: PerGB2018 +--- +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/containerapp + labels: + testing.upbound.io/example-name: example + name: example-rg-capp +spec: + forProvider: + location: West Europe diff --git a/examples/containerapp/v1beta2/containerapp-with-secret.yaml b/examples/containerapp/v1beta2/containerapp-with-secret.yaml new file mode 100644 index 000000000..339d89946 --- /dev/null +++ b/examples/containerapp/v1beta2/containerapp-with-secret.yaml @@ -0,0 +1,93 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: containerapp.azure.upbound.io/v1beta2 +kind: ContainerApp +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta2/containerapp + labels: + testing.upbound.io/example-name: example + name: example-capp-v2 +spec: + forProvider: + containerAppEnvironmentIdSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + revisionMode: Single + template: + container: + - cpu: 0.25 + image: mcr.microsoft.com/azuredocs/containerapps-helloworld:latest + memory: 0.5Gi + name: examplecontainerapp + secret: + - nameSecretRef: + key: name + name: example-secret + namespace: upbound-system + valueSecretRef: + key: value + name: example-secret + namespace: upbound-system +--- +apiVersion: v1 +kind: Secret +metadata: + name: example-secret + namespace: upbound-system +type: Opaque +stringData: + value: dXBib3VuZHJvY2tz + name: upbtesttwo +--- +apiVersion: containerapp.azure.upbound.io/v1beta1 +kind: Environment +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta2/containerapp + labels: + testing.upbound.io/example-name: example + name: example-env-v2 +spec: + forProvider: + location: West Europe + logAnalyticsWorkspaceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example +--- +apiVersion: operationalinsights.azure.upbound.io/v1beta2 +kind: Workspace +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta2/containerapp + labels: + testing.upbound.io/example-name: example + name: example-ws-v2 +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + retentionInDays: 30 + sku: PerGB2018 +--- +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/containerapp + labels: + testing.upbound.io/example-name: example + name: example-rg-v2 +spec: + forProvider: + location: West Europe