diff --git a/content/media/snippets/compose/claim-aws-new.yaml b/content/media/snippets/compose/claim-aws-new.yaml deleted file mode 100644 index 7be7a4166..000000000 --- a/content/media/snippets/compose/claim-aws-new.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: database.example.org/v1alpha1 -kind: PostgreSQLInstance -metadata: - name: my-db - namespace: default -spec: - parameters: - storageGB: 20 - compositionSelector: - matchLabels: - provider: aws - vpc: new - writeConnectionSecretToRef: - name: db-conn diff --git a/content/media/snippets/compose/claim-aws.yaml b/content/media/snippets/compose/claim-aws.yaml deleted file mode 100644 index 9fb5464b5..000000000 --- a/content/media/snippets/compose/claim-aws.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: database.example.org/v1alpha1 -kind: PostgreSQLInstance -metadata: - name: my-db - namespace: default -spec: - parameters: - storageGB: 20 - compositionSelector: - matchLabels: - provider: aws - writeConnectionSecretToRef: - name: db-conn diff --git a/content/media/snippets/compose/claim-azure.yaml b/content/media/snippets/compose/claim-azure.yaml deleted file mode 100644 index dbf7f70be..000000000 --- a/content/media/snippets/compose/claim-azure.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: database.example.org/v1alpha1 -kind: PostgreSQLInstance -metadata: - name: my-db - namespace: default -spec: - parameters: - storageGB: 20 - compositionSelector: - matchLabels: - provider: azure - writeConnectionSecretToRef: - name: db-conn diff --git a/content/media/snippets/compose/claim-gcp.yaml b/content/media/snippets/compose/claim-gcp.yaml deleted file mode 100644 index 9529c6171..000000000 --- a/content/media/snippets/compose/claim-gcp.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: database.example.org/v1alpha1 -kind: PostgreSQLInstance -metadata: - name: my-db - namespace: default -spec: - parameters: - storageGB: 20 - compositionSelector: - matchLabels: - provider: gcp - writeConnectionSecretToRef: - name: db-conn diff --git a/content/media/snippets/compose/pod.yaml b/content/media/snippets/compose/pod.yaml deleted file mode 100644 index 38ed3c86f..000000000 --- a/content/media/snippets/compose/pod.yaml +++ /dev/null @@ -1,34 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - name: see-db - namespace: default -spec: - containers: - - name: see-db - image: postgres:12 - command: ['psql'] - args: ['-c', 'SELECT current_database();'] - env: - - name: PGDATABASE - value: postgres - - name: PGHOST - valueFrom: - secretKeyRef: - name: db-conn - key: endpoint - - name: PGUSER - valueFrom: - secretKeyRef: - name: db-conn - key: username - - name: PGPASSWORD - valueFrom: - secretKeyRef: - name: db-conn - key: password - - name: PGPORT - valueFrom: - secretKeyRef: - name: db-conn - key: port diff --git a/content/media/snippets/configure/aws/providerconfig.yaml b/content/media/snippets/configure/aws/providerconfig.yaml deleted file mode 100644 index 766d7d89c..000000000 --- a/content/media/snippets/configure/aws/providerconfig.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -apiVersion: aws.crossplane.io/v1beta1 -kind: ProviderConfig -metadata: - name: default -spec: - credentials: - source: Secret - secretRef: - namespace: crossplane-system - name: aws-creds - key: creds diff --git a/content/media/snippets/configure/aws/setup.sh b/content/media/snippets/configure/aws/setup.sh deleted file mode 100755 index 781c92d53..000000000 --- a/content/media/snippets/configure/aws/setup.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/usr/bin/env bash -# -# This is a helper script that uses ~/.aws/credentials and ~/.aws/config -# to build an aws provider object -# -# aws configuration (credentials and default region) is required for this -# script - -set -e -o pipefail - -# change to script directory -cd "$( cd "$( dirname "${BASH_SOURCE[0]}")" && pwd )" - -aws_profile= - -while (( "$#" )); do - if test -z "$2"; then - echo "invalid value for $1 option" - exit -1 - fi - case "$1" in - -p|--profile) - aws_profile=$2 - shift 2 - ;; - *) - shift - ;; - esac -done - -# make sure kubectl is configured -kubectl cluster-info > /dev/null || echo "KUBECONFIG is not configured properly" - -# if aws_profile is not provided, use default -aws_profile="${aws_profile:-default}" - -# retrieve aws profile credentials, save it under 'default' profile, and base64 encode it -AWS_CREDS_BASE64=$(echo -e "[default]\naws_access_key_id = $(aws configure get aws_access_key_id --profile $aws_profile)\naws_secret_access_key = $(aws configure get aws_secret_access_key --profile $aws_profile)" | base64 | tr -d "\n") - -if test -z "$AWS_CREDS_BASE64"; then - echo "error reading credentials from aws config" - exit 1 -fi - -echo "apiVersion: v1 -data: - creds: $AWS_CREDS_BASE64 -kind: Secret -metadata: - name: aws-creds - namespace: crossplane-system -type: Opaque" | kubectl apply -f - diff --git a/content/media/snippets/configure/azure/providerconfig.yaml b/content/media/snippets/configure/azure/providerconfig.yaml deleted file mode 100644 index 6610f00d4..000000000 --- a/content/media/snippets/configure/azure/providerconfig.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -apiVersion: azure.crossplane.io/v1beta1 -kind: ProviderConfig -metadata: - name: default -spec: - credentials: - source: Secret - secretRef: - namespace: crossplane-system - name: azure-creds - key: creds diff --git a/content/media/snippets/configure/gcp/credentials.sh b/content/media/snippets/configure/gcp/credentials.sh deleted file mode 100755 index 5d2bfbd3c..000000000 --- a/content/media/snippets/configure/gcp/credentials.sh +++ /dev/null @@ -1,84 +0,0 @@ -#!/usr/bin/env bash -# -# This is a helper script to create a project, service account, and credentials.json -# file for use in Crossplane GCP examples -# -# gcloud is required for use and must be configured with privileges to perform these tasks -# -set -e -o pipefail -ROLES=(roles/iam.serviceAccountUser roles/cloudsql.admin roles/container.admin roles/redis.admin roles/compute.networkAdmin roles/storage.admin) -SERVICES=(container.googleapis.com sqladmin.googleapis.com redis.googleapis.com compute.googleapis.com servicenetworking.googleapis.com) -KEYFILE=crossplane-gcp-provider-key.json -RAND=$RANDOM - -if ! command -v gcloud > /dev/null; then - echo "Please install gcloud: https://cloud.google.com/sdk/install" - exit 1 -fi - -tab () { sed 's/^/ /' ; } -# list your organizations (if applicable), take note of the specific organization ID you want to use -# if you have more than one organization (not common) -gcloud organizations list --format '[box]' 2>&1 | tab - -ORGANIZATION_ID=$(gcloud organizations list --format 'value(ID)' --limit 1) -read -e -p "Choose an Organization ID [$ORGANIZATION_ID]: " PROMPT_ORGANIZATION_ID -ORGANIZATION_ID=${PROMPT_ORGANIZATION_ID:-$ORGANIZATION_ID} - -gcloud projects list --format '[box]' 2>&1 | tab - -# create a new id -EXAMPLE_PROJECT_ID="crossplane-example-$RAND" -read -e -p "Choose or create a Project ID [$EXAMPLE_PROJECT_ID]: " PROMPT_EXAMPLE_PROJECT_ID -EXAMPLE_PROJECT_ID=${PROMPT_EXAMPLE_PROJECT_ID:-$EXAMPLE_PROJECT_ID} - -EXAMPLE_PROJECT_ID_FOUND=$(gcloud projects list --filter PROJECT_ID="$EXAMPLE_PROJECT_ID" --format="value(PROJECT_ID)") - -if [[ -z $EXAMPLE_PROJECT_ID_FOUND ]]; then - ACCOUNT_ID=$(gcloud beta billing accounts list --format 'value(ACCOUNT_ID)' --limit 1) - gcloud beta billing accounts list --format '[box]' 2>&1 | tab - read -e -p "Choose a Billing Account ID [$ACCOUNT_ID]: " PROMPT_ACCOUNT_ID - ACCOUNT_ID=${PROMPT_ACCOUNT_ID:-$ACCOUNT_ID} - - echo -e "\n* Creating Project $EXAMPLE_PROJECT_ID ... " - gcloud projects create $EXAMPLE_PROJECT_ID --enable-cloud-apis --organization $ORGANIZATION_ID 2>&1 | tab - - echo "* Linking Billing Account $ACCOUNT_ID with Project $EXAMPLE_PROJECT_ID ... " - gcloud beta billing projects link $EXAMPLE_PROJECT_ID --billing-account=$ACCOUNT_ID 2>&1 | tab -else - echo -n "\n* Using Project $EXAMPLE_PROJECT_NAME ... $EXAMPLE_PROJECT_ID" -fi - -# enable Kubernetes API -for service in "${SERVICES[@]}"; do - # enable Google API - echo "* Enabling Service $service on $EXAMPLE_PROJECT_ID" - gcloud --project $EXAMPLE_PROJECT_ID services enable $service 2>&1 | tab -done - -# create service account -SA_NAME="example-$RAND" -echo " * Creating a Service Account" -gcloud --project $EXAMPLE_PROJECT_ID iam service-accounts create $SA_NAME --display-name "Crossplane Example" 2>&1 | tab -# export service account email -EXAMPLE_SA="${SA_NAME}@${EXAMPLE_PROJECT_ID}.iam.gserviceaccount.com" - -# assign roles -for role in "${ROLES[@]}"; do - echo "* Adding Role $role to $EXAMPLE_SA on $EXAMPLE_PROJECT_ID" - gcloud projects add-iam-policy-binding $EXAMPLE_PROJECT_ID --member "serviceAccount:$EXAMPLE_SA" --role="$role" 2>&1 | tab -done - -# create service account key (this will create a `crossplane-gcp-provider-key.json` file in your current working directory) -echo " * Creating $EXAMPLE_SA Key File $KEYFILE" -gcloud --project $EXAMPLE_PROJECT_ID iam service-accounts keys create --iam-account $EXAMPLE_SA $KEYFILE 2>&1 | tab - -cat < - meta.crossplane.io/source: github.com/crossplane/crossplane - meta.crossplane.io/license: Apache-2.0 - meta.crossplane.io/description: | - An introductory example to Crossplane and Composition for AWS. - meta.crossplane.io/readme: | - An introductory example to Crossplane and Composition for AWS. - This will enable provisioning of an RDS database instance. - The example also illustrates how to specify a non-default VPC. - - [Install & - Configure](https://crossplane.io/docs/master/getting-started/install-configure.html) - - [Provision a PostgreSQL RDS - Database](https://crossplane.io/docs/master/getting-started/provision-infrastructure.html) - guide: quickstart - provider: aws - vpc: new -spec: - crossplane: - version: ">=v1.8.0-0" - dependsOn: - - provider: xpkg.upbound.io/crossplane-contrib/provider-aws - version: ">=v0.24.1" diff --git a/content/media/snippets/package/aws-with-vpc/definition.yaml b/content/media/snippets/package/aws-with-vpc/definition.yaml deleted file mode 100644 index ba2112b5c..000000000 --- a/content/media/snippets/package/aws-with-vpc/definition.yaml +++ /dev/null @@ -1,40 +0,0 @@ ---- -apiVersion: apiextensions.crossplane.io/v1 -kind: CompositeResourceDefinition -metadata: - name: xpostgresqlinstances.database.example.org -spec: - group: database.example.org - names: - kind: XPostgreSQLInstance - plural: xpostgresqlinstances - claimNames: - kind: PostgreSQLInstance - plural: postgresqlinstances - connectionSecretKeys: - - username - - password - - endpoint - - port - versions: - - name: v1alpha1 - served: true - referenceable: true - schema: - openAPIV3Schema: - type: object - properties: - spec: - type: object - description: "The OpenAPIV3Schema of this Composite Resource Definition." - properties: - parameters: - type: object - properties: - storageGB: - type: integer - description: "The desired storage capacity of the database, in GB." - required: - - storageGB - required: - - parameters diff --git a/content/media/snippets/package/aws/composition.yaml b/content/media/snippets/package/aws/composition.yaml deleted file mode 100644 index 179d90e27..000000000 --- a/content/media/snippets/package/aws/composition.yaml +++ /dev/null @@ -1,44 +0,0 @@ ---- -apiVersion: apiextensions.crossplane.io/v1 -kind: Composition -metadata: - name: xpostgresqlinstances.aws.database.example.org - labels: - provider: aws - guide: quickstart - vpc: default -spec: - writeConnectionSecretsToNamespace: crossplane-system - compositeTypeRef: - apiVersion: database.example.org/v1alpha1 - kind: XPostgreSQLInstance - resources: - - name: rdsinstance - base: - apiVersion: database.aws.crossplane.io/v1beta1 - kind: RDSInstance - spec: - forProvider: - region: us-east-1 - dbInstanceClass: db.t2.small - masterUsername: masteruser - engine: postgres - engineVersion: "12" - skipFinalSnapshotBeforeDeletion: true - publiclyAccessible: true - writeConnectionSecretToRef: - namespace: crossplane-system - patches: - - fromFieldPath: "metadata.uid" - toFieldPath: "spec.writeConnectionSecretToRef.name" - transforms: - - type: string - string: - fmt: "%s-postgresql" - - fromFieldPath: "spec.parameters.storageGB" - toFieldPath: "spec.forProvider.allocatedStorage" - connectionDetails: - - fromConnectionSecretKey: username - - fromConnectionSecretKey: password - - fromConnectionSecretKey: endpoint - - fromConnectionSecretKey: port diff --git a/content/media/snippets/package/aws/crossplane.yaml b/content/media/snippets/package/aws/crossplane.yaml deleted file mode 100644 index 22928f558..000000000 --- a/content/media/snippets/package/aws/crossplane.yaml +++ /dev/null @@ -1,29 +0,0 @@ -apiVersion: meta.pkg.crossplane.io/v1 -kind: Configuration -metadata: - name: getting-started-with-aws - annotations: - meta.crossplane.io/maintainer: Crossplane Maintainers - meta.crossplane.io/source: github.com/crossplane/crossplane - meta.crossplane.io/license: Apache-2.0 - meta.crossplane.io/description: | - An introductory example to Crossplane and Composition for AWS. - meta.crossplane.io/readme: | - An introductory example to Crossplane and Composition for AWS. - This will enable provisioning of an RDS database instance. - - [Install & - Configure](https://crossplane.io/docs/master/getting-started/install-configure.html) - - [Provision a PostgreSQL RDS - Database](https://crossplane.io/docs/master/getting-started/provision-infrastructure.html) - labels: - guide: quickstart - provider: aws - vpc: default -spec: - crossplane: - version: ">=v1.8.0-0" - dependsOn: - - provider: xpkg.upbound.io/crossplane-contrib/provider-aws - version: ">=v0.24.1" diff --git a/content/media/snippets/package/aws/definition.yaml b/content/media/snippets/package/aws/definition.yaml deleted file mode 100644 index ba2112b5c..000000000 --- a/content/media/snippets/package/aws/definition.yaml +++ /dev/null @@ -1,40 +0,0 @@ ---- -apiVersion: apiextensions.crossplane.io/v1 -kind: CompositeResourceDefinition -metadata: - name: xpostgresqlinstances.database.example.org -spec: - group: database.example.org - names: - kind: XPostgreSQLInstance - plural: xpostgresqlinstances - claimNames: - kind: PostgreSQLInstance - plural: postgresqlinstances - connectionSecretKeys: - - username - - password - - endpoint - - port - versions: - - name: v1alpha1 - served: true - referenceable: true - schema: - openAPIV3Schema: - type: object - properties: - spec: - type: object - description: "The OpenAPIV3Schema of this Composite Resource Definition." - properties: - parameters: - type: object - properties: - storageGB: - type: integer - description: "The desired storage capacity of the database, in GB." - required: - - storageGB - required: - - parameters diff --git a/content/media/snippets/package/azure/composition.yaml b/content/media/snippets/package/azure/composition.yaml deleted file mode 100644 index e444c9ede..000000000 --- a/content/media/snippets/package/azure/composition.yaml +++ /dev/null @@ -1,73 +0,0 @@ ---- -apiVersion: apiextensions.crossplane.io/v1 -kind: Composition -metadata: - name: xpostgresqlinstances.azure.database.example.org - labels: - provider: azure - guide: quickstart -spec: - writeConnectionSecretsToNamespace: crossplane-system - compositeTypeRef: - apiVersion: database.example.org/v1alpha1 - kind: XPostgreSQLInstance - resources: - - name: resourcegroup - base: - apiVersion: azure.crossplane.io/v1alpha3 - kind: ResourceGroup - spec: - location: West US 2 - - name: postgresqlserver - base: - apiVersion: database.azure.crossplane.io/v1beta1 - kind: PostgreSQLServer - spec: - forProvider: - administratorLogin: myadmin - resourceGroupNameSelector: - matchControllerRef: true - location: West US 2 - sslEnforcement: Disabled - version: "11" - storageProfile: - storageMB: 5120 - sku: - tier: GeneralPurpose - capacity: 2 - family: Gen5 - writeConnectionSecretToRef: - namespace: crossplane-system - patches: - - fromFieldPath: "metadata.uid" - toFieldPath: "spec.writeConnectionSecretToRef.name" - transforms: - - type: string - string: - fmt: "%s-postgresql" - - fromFieldPath: "spec.parameters.storageGB" - toFieldPath: "spec.forProvider.storageProfile.storageMB" - transforms: - - type: math - math: - multiply: 1024 - connectionDetails: - - fromConnectionSecretKey: username - - fromConnectionSecretKey: password - - fromConnectionSecretKey: endpoint - - type: FromValue - name: port - value: "5432" - - name: firewallrule - base: - apiVersion: database.azure.crossplane.io/v1alpha3 - kind: PostgreSQLServerFirewallRule - spec: - forProvider: - serverNameSelector: - matchControllerRef: true - resourceGroupNameSelector: - matchControllerRef: true - properties: - startIpAddress: 0.0.0.0 - endIpAddress: 255.255.255.254 diff --git a/content/media/snippets/package/azure/crossplane.yaml b/content/media/snippets/package/azure/crossplane.yaml deleted file mode 100644 index 2cb8607d7..000000000 --- a/content/media/snippets/package/azure/crossplane.yaml +++ /dev/null @@ -1,27 +0,0 @@ -apiVersion: meta.pkg.crossplane.io/v1 -kind: Configuration -metadata: - name: getting-started-with-azure - annotations: - meta.crossplane.io/maintainer: Crossplane Maintainers - meta.crossplane.io/source: github.com/crossplane/crossplane - meta.crossplane.io/license: Apache-2.0 - meta.crossplane.io/description: | - An introductory example to Crossplane and Composition for Azure. - meta.crossplane.io/readme: | - An introductory example to Crossplane and Composition for Azure. - This will enable provisioning of an Azure SQL database instance. - - [Install & - Configure](https://crossplane.io/docs/master/getting-started/install-configure.html) - - [Provision a PostgreSQL Azure SQL - Database](https://crossplane.io/docs/master/getting-started/provision-infrastructure.html) - guide: quickstart - provider: azure -spec: - crossplane: - version: ">=v1.8.0-0" - dependsOn: - - provider: xpkg.upbound.io/crossplane-contrib/provider-azure - version: ">=v0.18.1" diff --git a/content/media/snippets/package/azure/definition.yaml b/content/media/snippets/package/azure/definition.yaml deleted file mode 100644 index ba2112b5c..000000000 --- a/content/media/snippets/package/azure/definition.yaml +++ /dev/null @@ -1,40 +0,0 @@ ---- -apiVersion: apiextensions.crossplane.io/v1 -kind: CompositeResourceDefinition -metadata: - name: xpostgresqlinstances.database.example.org -spec: - group: database.example.org - names: - kind: XPostgreSQLInstance - plural: xpostgresqlinstances - claimNames: - kind: PostgreSQLInstance - plural: postgresqlinstances - connectionSecretKeys: - - username - - password - - endpoint - - port - versions: - - name: v1alpha1 - served: true - referenceable: true - schema: - openAPIV3Schema: - type: object - properties: - spec: - type: object - description: "The OpenAPIV3Schema of this Composite Resource Definition." - properties: - parameters: - type: object - properties: - storageGB: - type: integer - description: "The desired storage capacity of the database, in GB." - required: - - storageGB - required: - - parameters diff --git a/content/media/snippets/package/definition.yaml b/content/media/snippets/package/definition.yaml deleted file mode 100644 index 1c3e08443..000000000 --- a/content/media/snippets/package/definition.yaml +++ /dev/null @@ -1,38 +0,0 @@ ---- -apiVersion: apiextensions.crossplane.io/v1 -kind: CompositeResourceDefinition -metadata: - name: xpostgresqlinstances.database.example.org -spec: - group: database.example.org - names: - kind: XPostgreSQLInstance - plural: xpostgresqlinstances - claimNames: - kind: PostgreSQLInstance - plural: postgresqlinstances - connectionSecretKeys: - - username - - password - - endpoint - - port - versions: - - name: v1alpha1 - served: true - referenceable: true - schema: - openAPIV3Schema: - type: object - properties: - spec: - type: object - properties: - parameters: - type: object - properties: - storageGB: - type: integer - required: - - storageGB - required: - - parameters diff --git a/content/media/snippets/package/gcp/composition.yaml b/content/media/snippets/package/gcp/composition.yaml deleted file mode 100644 index 6271095c3..000000000 --- a/content/media/snippets/package/gcp/composition.yaml +++ /dev/null @@ -1,47 +0,0 @@ ---- -apiVersion: apiextensions.crossplane.io/v1 -kind: Composition -metadata: - name: xpostgresqlinstances.gcp.database.example.org - labels: - provider: gcp - guide: quickstart -spec: - writeConnectionSecretsToNamespace: crossplane-system - compositeTypeRef: - apiVersion: database.example.org/v1alpha1 - kind: XPostgreSQLInstance - resources: - - name: cloudsqlinstance - base: - apiVersion: database.gcp.crossplane.io/v1beta1 - kind: CloudSQLInstance - spec: - forProvider: - databaseVersion: POSTGRES_12 - region: us-central1 - settings: - tier: db-custom-1-3840 - dataDiskType: PD_SSD - ipConfiguration: - ipv4Enabled: true - authorizedNetworks: - - value: "0.0.0.0/0" - writeConnectionSecretToRef: - namespace: crossplane-system - patches: - - fromFieldPath: "metadata.uid" - toFieldPath: "spec.writeConnectionSecretToRef.name" - transforms: - - type: string - string: - fmt: "%s-postgresql" - - fromFieldPath: "spec.parameters.storageGB" - toFieldPath: "spec.forProvider.settings.dataDiskSizeGb" - connectionDetails: - - fromConnectionSecretKey: username - - fromConnectionSecretKey: password - - fromConnectionSecretKey: endpoint - - type: FromValue - name: port - value: "5432" diff --git a/content/media/snippets/package/gcp/crossplane.yaml b/content/media/snippets/package/gcp/crossplane.yaml deleted file mode 100644 index a39cecf0f..000000000 --- a/content/media/snippets/package/gcp/crossplane.yaml +++ /dev/null @@ -1,27 +0,0 @@ -apiVersion: meta.pkg.crossplane.io/v1 -kind: Configuration -metadata: - name: getting-started-with-gcp - annotations: - meta.crossplane.io/maintainer: Crossplane Maintainers - meta.crossplane.io/source: github.com/crossplane/crossplane - meta.crossplane.io/license: Apache-2.0 - meta.crossplane.io/description: | - An introductory example to Crossplane and Composition for GCP. - meta.crossplane.io/readme: | - An introductory example to Crossplane and Composition for GCP. - This will enable provisioning of a Cloud SQL database instance. - - [Install & - Configure](https://crossplane.io/docs/master/getting-started/install-configure.html) - - [Provision a PostgreSQL Cloud SQL - Database](https://crossplane.io/docs/master/getting-started/provision-infrastructure.html) - guide: quickstart - provider: gcp -spec: - crossplane: - version: ">=v1.8.0-0" - dependsOn: - - provider: xpkg.upbound.io/crossplane-contrib/provider-gcp - version: ">=v0.20.0" diff --git a/content/media/snippets/package/gcp/definition.yaml b/content/media/snippets/package/gcp/definition.yaml deleted file mode 100644 index ba2112b5c..000000000 --- a/content/media/snippets/package/gcp/definition.yaml +++ /dev/null @@ -1,40 +0,0 @@ ---- -apiVersion: apiextensions.crossplane.io/v1 -kind: CompositeResourceDefinition -metadata: - name: xpostgresqlinstances.database.example.org -spec: - group: database.example.org - names: - kind: XPostgreSQLInstance - plural: xpostgresqlinstances - claimNames: - kind: PostgreSQLInstance - plural: postgresqlinstances - connectionSecretKeys: - - username - - password - - endpoint - - port - versions: - - name: v1alpha1 - served: true - referenceable: true - schema: - openAPIV3Schema: - type: object - properties: - spec: - type: object - description: "The OpenAPIV3Schema of this Composite Resource Definition." - properties: - parameters: - type: object - properties: - storageGB: - type: integer - description: "The desired storage capacity of the database, in GB." - required: - - storageGB - required: - - parameters diff --git a/content/media/snippets/provision/aws.yaml b/content/media/snippets/provision/aws.yaml deleted file mode 100644 index 93048e9cf..000000000 --- a/content/media/snippets/provision/aws.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: database.aws.crossplane.io/v1beta1 -kind: RDSInstance -metadata: - name: rdspostgresql -spec: - forProvider: - region: us-east-1 - dbInstanceClass: db.t2.small - masterUsername: masteruser - allocatedStorage: 20 - engine: postgres - engineVersion: "12" - skipFinalSnapshotBeforeDeletion: true - writeConnectionSecretToRef: - namespace: crossplane-system - name: aws-rdspostgresql-conn diff --git a/content/media/snippets/provision/azure.yaml b/content/media/snippets/provision/azure.yaml deleted file mode 100644 index 106b06c92..000000000 --- a/content/media/snippets/provision/azure.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: azure.crossplane.io/v1alpha3 -kind: ResourceGroup -metadata: - name: sqlserverpostgresql-rg -spec: - location: West US 2 ---- -apiVersion: database.azure.crossplane.io/v1beta1 -kind: PostgreSQLServer -metadata: - name: sqlserverpostgresql -spec: - forProvider: - administratorLogin: myadmin - resourceGroupNameRef: - name: sqlserverpostgresql-rg - location: West US 2 - sslEnforcement: Disabled - version: "11" - sku: - tier: GeneralPurpose - capacity: 2 - family: Gen5 - storageProfile: - storageMB: 20480 - writeConnectionSecretToRef: - namespace: crossplane-system - name: sqlserverpostgresql-conn diff --git a/content/media/snippets/provision/gcp.yaml b/content/media/snippets/provision/gcp.yaml deleted file mode 100644 index 84e2d9cba..000000000 --- a/content/media/snippets/provision/gcp.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: database.gcp.crossplane.io/v1beta1 -kind: CloudSQLInstance -metadata: - name: cloudsqlpostgresql -spec: - forProvider: - databaseVersion: POSTGRES_12 - region: us-central1 - settings: - tier: db-custom-1-3840 - dataDiskType: PD_SSD - dataDiskSizeGb: 10 - writeConnectionSecretToRef: - namespace: crossplane-system - name: cloudsqlpostgresql-conn