docs snapshot for crossplane version `v0.8`

This commit is contained in:
Crossplane 2020-02-18 22:56:14 +00:00
parent 39c7674d18
commit 5fd247ffad
3 changed files with 48 additions and 44 deletions

View File

@ -111,6 +111,7 @@ API Group | Status | Details
[`gcp.crossplane.io/v1alpha3`] | Alpha | Core GCP resources. [`gcp.crossplane.io/v1alpha3`] | Alpha | Core GCP resources.
[`cache.gcp.crossplane.io/v1beta1`] | Beta | CloudMemorystore managed resources and classes. [`cache.gcp.crossplane.io/v1beta1`] | Beta | CloudMemorystore managed resources and classes.
[`compute.gcp.crossplane.io/v1alpha3`] | Alpha | Compute Engine managed resources and classes. [`compute.gcp.crossplane.io/v1alpha3`] | Alpha | Compute Engine managed resources and classes.
[`compute.gcp.crossplane.io/v1beta1`] | Beta | Compute Engine managed resources and classes.
[`container.gcp.crossplane.io/v1alpha1`] | Alpha | Kubernetes Engine managed resources and classes. [`container.gcp.crossplane.io/v1alpha1`] | Alpha | Kubernetes Engine managed resources and classes.
[`container.gcp.crossplane.io/v1beta1`] | Beta | Kubernetes Engine managed resources and classes. [`container.gcp.crossplane.io/v1beta1`] | Beta | Kubernetes Engine managed resources and classes.
[`database.gcp.crossplane.io/v1beta1`] | Beta | CloudSQL managed resources and classes. [`database.gcp.crossplane.io/v1beta1`] | Beta | CloudSQL managed resources and classes.
@ -120,6 +121,7 @@ API Group | Status | Details
[`gcp.crossplane.io/v1alpha3`]: api/crossplaneio/stack-gcp/gcp-crossplane-io-v1alpha3.md [`gcp.crossplane.io/v1alpha3`]: api/crossplaneio/stack-gcp/gcp-crossplane-io-v1alpha3.md
[`cache.gcp.crossplane.io/v1beta1`]: api/crossplaneio/stack-gcp/cache-gcp-crossplane-io-v1beta1.md [`cache.gcp.crossplane.io/v1beta1`]: api/crossplaneio/stack-gcp/cache-gcp-crossplane-io-v1beta1.md
[`compute.gcp.crossplane.io/v1alpha3`]: api/crossplaneio/stack-gcp/compute-gcp-crossplane-io-v1alpha3.md [`compute.gcp.crossplane.io/v1alpha3`]: api/crossplaneio/stack-gcp/compute-gcp-crossplane-io-v1alpha3.md
[`compute.gcp.crossplane.io/v1beta1`]: api/crossplaneio/stack-gcp/compute-gcp-crossplane-io-v1beta1.md
[`container.gcp.crossplane.io/v1alpha1`]: api/crossplaneio/stack-gcp/container-gcp-crossplane-io-v1alpha1.md [`container.gcp.crossplane.io/v1alpha1`]: api/crossplaneio/stack-gcp/container-gcp-crossplane-io-v1alpha1.md
[`container.gcp.crossplane.io/v1beta1`]: api/crossplaneio/stack-gcp/container-gcp-crossplane-io-v1beta1.md [`container.gcp.crossplane.io/v1beta1`]: api/crossplaneio/stack-gcp/container-gcp-crossplane-io-v1beta1.md
[`database.gcp.crossplane.io/v1beta1`]: api/crossplaneio/stack-gcp/database-gcp-crossplane-io-v1beta1.md [`database.gcp.crossplane.io/v1beta1`]: api/crossplaneio/stack-gcp/database-gcp-crossplane-io-v1beta1.md

View File

@ -138,34 +138,35 @@ use Crossplane to do it:
--- ---
# example-globaladdress defines the IP range that will be allocated for cloud services connecting # example-globaladdress defines the IP range that will be allocated for cloud services connecting
# to the instances in the given Network. # to the instances in the given Network.
apiVersion: compute.gcp.crossplane.io/v1alpha3 apiVersion: compute.gcp.crossplane.io/v1beta1
kind: GlobalAddress kind: GlobalAddress
metadata: metadata:
name: example-globaladdress name: example-globaladdress
spec: spec:
forProvider:
purpose: VPC_PEERING
addressType: INTERNAL
prefixLength: 16
network: projects/$PROJECT_ID/global/networks/$NETWORK_NAME
providerRef: providerRef:
name: gcp-provider name: gcp-provider
reclaimPolicy: Delete reclaimPolicy: Delete
name: example-globaladdress
purpose: VPC_PEERING
addressType: INTERNAL
prefixLength: 16
network: projects/$PROJECT_ID/global/networks/$NETWORK_NAME
--- ---
# example-connection is what allows cloud services to use the allocated GlobalAddress for communication. Behind # example-connection is what allows cloud services to use the allocated GlobalAddress for communication. Behind
# the scenes, it creates a VPC peering to the network that those service instances actually live. # the scenes, it creates a VPC peering to the network that those service instances actually live.
apiVersion: servicenetworking.gcp.crossplane.io/v1alpha3 apiVersion: servicenetworking.gcp.crossplane.io/v1beta1
kind: Connection kind: Connection
metadata: metadata:
name: example-connection name: example-connection
spec: spec:
forProvider:
parent: services/servicenetworking.googleapis.com
network: projects/$PROJECT_ID/global/networks/$NETWORK_NAME
reservedPeeringRangeRefs:
- name: example-globaladdress
providerRef: providerRef:
name: gcp-provider name: gcp-provider
reclaimPolicy: Delete reclaimPolicy: Delete
parent: services/servicenetworking.googleapis.com
network: projects/$PROJECT_ID/global/networks/$NETWORK_NAME
reservedPeeringRangeRefs:
- name: example-globaladdress
EOF EOF
kubectl apply -f network.yaml kubectl apply -f network.yaml
@ -187,8 +188,8 @@ use Crossplane to do it:
Labels: <none> Labels: <none>
Annotations: crossplane.io/external-name: example-connection Annotations: crossplane.io/external-name: example-connection
kubectl.kubernetes.io/last-applied-configuration: kubectl.kubernetes.io/last-applied-configuration:
{"apiVersion":"servicenetworking.gcp.crossplane.io/v1alpha3","kind":"Connection","metadata":{"annotations":{},"name":"example-connection"}... {"apiVersion":"servicenetworking.gcp.crossplane.io/v1beta1","kind":"Connection","metadata":{"annotations":{},"name":"example-connection"}...
API Version: servicenetworking.gcp.crossplane.io/v1alpha3 API Version: servicenetworking.gcp.crossplane.io/v1beta1
Kind: Connection Kind: Connection
Metadata: Metadata:
Creation Timestamp: 2019-10-28T14:10:23Z Creation Timestamp: 2019-10-28T14:10:23Z
@ -196,7 +197,7 @@ use Crossplane to do it:
finalizer.managedresource.crossplane.io finalizer.managedresource.crossplane.io
Generation: 1 Generation: 1
Resource Version: 7245 Resource Version: 7245
Self Link: /apis/servicenetworking.gcp.crossplane.io/v1alpha3/connections/example-connection Self Link: /apis/servicenetworking.gcp.crossplane.io/v1beta1/connections/example-connection
UID: aeae7e4d-f98c-11e9-8275-42010a800122 UID: aeae7e4d-f98c-11e9-8275-42010a800122
Spec: Spec:
Network: projects/crossplane-playground/global/networks/default Network: projects/crossplane-playground/global/networks/default

View File

@ -182,15 +182,15 @@ Below we inspect each of these resources in more details.
```yaml ```yaml
--- ---
apiVersion: compute.gcp.crossplane.io/v1alpha3 apiVersion: compute.gcp.crossplane.io/v1beta1
kind: Network kind: Network
metadata: metadata:
name: sample-network name: sample-network
spec: spec:
name: my-cool-network forProvider:
autoCreateSubnetworks: false autoCreateSubnetworks: false
routingConfig: routingConfig:
routingMode: REGIONAL routingMode: REGIONAL
reclaimPolicy: Delete reclaimPolicy: Delete
providerRef: providerRef:
name: gcp-provider name: gcp-provider
@ -201,22 +201,22 @@ Below we inspect each of these resources in more details.
```yaml ```yaml
--- ---
apiVersion: compute.gcp.crossplane.io/v1alpha3 apiVersion: compute.gcp.crossplane.io/v1beta1
kind: Subnetwork kind: Subnetwork
metadata: metadata:
name: sample-subnetwork name: sample-subnetwork
spec: spec:
name: my-cool-subnetwork forProvider:
region: us-central1 region: us-central1
ipCidrRange: "192.168.0.0/24" ipCidrRange: "192.168.0.0/24"
privateIpGoogleAccess: true privateIpGoogleAccess: true
secondaryIpRanges: secondaryIpRanges:
- rangeName: pods - rangeName: pods
ipCidrRange: 10.128.0.0/20 ipCidrRange: 10.128.0.0/20
- rangeName: services - rangeName: services
ipCidrRange: 172.16.0.0/16 ipCidrRange: 172.16.0.0/16
networkRef: networkRef:
name: sample-network name: sample-network
reclaimPolicy: Delete reclaimPolicy: Delete
providerRef: providerRef:
name: gcp-provider name: gcp-provider
@ -227,17 +227,17 @@ Below we inspect each of these resources in more details.
```yaml ```yaml
--- ---
apiVersion: compute.gcp.crossplane.io/v1alpha3 apiVersion: compute.gcp.crossplane.io/v1beta1
kind: GlobalAddress kind: GlobalAddress
metadata: metadata:
name: sample-globaladdress name: sample-globaladdress
spec: spec:
name: my-cool-globaladdress forProvider:
purpose: VPC_PEERING purpose: VPC_PEERING
addressType: INTERNAL addressType: INTERNAL
prefixLength: 16 prefixLength: 16
networkRef: networkRef:
name: sample-network name: sample-network
reclaimPolicy: Delete reclaimPolicy: Delete
providerRef: providerRef:
name: gcp-provider name: gcp-provider
@ -250,16 +250,17 @@ Below we inspect each of these resources in more details.
```yaml ```yaml
--- ---
apiVersion: servicenetworking.gcp.crossplane.io/v1alpha3 apiVersion: servicenetworking.gcp.crossplane.io/v1beta1
kind: Connection kind: Connection
metadata: metadata:
name: sample-connection name: sample-connection
spec: spec:
parent: services/servicenetworking.googleapis.com forProvider:
networkRef: parent: services/servicenetworking.googleapis.com
name: sample-network networkRef:
reservedPeeringRangeRefs: name: sample-network
- name: sample-globaladdress reservedPeeringRangeRefs:
- name: sample-globaladdress
reclaimPolicy: Delete reclaimPolicy: Delete
providerRef: providerRef:
name: gcp-provider name: gcp-provider