Skip to content

Commit

Permalink
update to no-fork 0.40.0
Browse files Browse the repository at this point in the history
Signed-off-by: Pete Lumbis <[email protected]>
  • Loading branch information
plumbis committed Dec 15, 2023
1 parent 2f2d8d9 commit 0fbacd4
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 72 deletions.
66 changes: 34 additions & 32 deletions content/master/getting-started/provider-gcp-part-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ kind: Provider
metadata:
name: provider-gcp-storage
spec:
package: xpkg.upbound.io/upbound/provider-gcp-storage:v0.35.0
package: xpkg.upbound.io/upbound/provider-gcp-storage:v0.40.0
EOF
```

Expand Down Expand Up @@ -99,6 +99,36 @@ EOF

{{</expand >}}

## Install the PubSub Provider

Part 1 only installed the GCP Storage Provider. This section deploys a
PubSub Topic along with a GCP storage bucket.
First install the GCP PubSub Provider.

Add the new Provider to the cluster.

```yaml
cat <<EOF | kubectl apply -f -
apiVersion: pkg.crossplane.io/v1
kind: Provider
metadata:
name: provider-gcp-pubsub
spec:
package: xpkg.upbound.io/upbound/provider-gcp-pubsub:v0.40.0
EOF
```

View the new PubSub provider with `kubectl get providers`.

```shell {copy-lines="1"}
kubectl get providers
NAME INSTALLED HEALTHY PACKAGE AGE
provider-gcp-pubsub True True xpkg.upbound.io/upbound/provider-gcp-pubsub:v0.40.0 39s
provider-gcp-storage True True xpkg.upbound.io/upbound/provider-gcp-storage:v0.40.0 13m
upbound-provider-family-gcp True True xpkg.upbound.io/upbound/provider-family-gcp:v0.40.0 12m
```


## Create a custom API

<!-- vale alex.Condescending = NO -->
Expand Down Expand Up @@ -284,7 +314,7 @@ pubsubs.queue.example.com True True 7s
View the new custom API endpoints with `kubectl api-resources | grep pubsub`

```shell {copy-lines="1",label="apiRes"}
kubectl api-resources | grep pubsub
kubectl api-resources | grep queue.example
pubsubclaims queue.example.com/v1alpha1 true PubSubClaim
pubsubs queue.example.com/v1alpha1 false PubSub
```
Expand Down Expand Up @@ -350,7 +380,7 @@ spec:
- "us-central1"
patches:
- fromFieldPath: "spec.location"
toFieldPath: "spec.forProvider.messageStoragePolicy[*].allowedPersistenceRegions[*]"
toFieldPath: "spec.forProvider.messageStoragePolicy[0].allowedPersistenceRegions[0]"
transforms:
- type: map
map:
Expand Down Expand Up @@ -383,34 +413,6 @@ NAME XR-KIND XR-APIVERSION AGE
topic-with-bucket PubSub queue.example.com 3s
```

## Install the PubSub Provider

Part 1 only installed the GCP Storage Provider. Deploying a PubSub Topic
requires the PubSub Provider as well.

Add the new Provider to the cluster.

```yaml
cat <<EOF | kubectl apply -f -
apiVersion: pkg.crossplane.io/v1
kind: Provider
metadata:
name: provider-gcp-pubsub
spec:
package: xpkg.upbound.io/upbound/provider-gcp-pubsub:v0.35.0
EOF
```

View the new PubSub provider with `kubectl get providers`.

```shell {copy-lines="1"}
kubectl get providers
NAME INSTALLED HEALTHY PACKAGE AGE
provider-gcp-pubsub True True xpkg.upbound.io/upbound/provider-gcp-pubsub:v0.35.0 7s
provider-gcp-storage True True xpkg.upbound.io/upbound/provider-gcp-storage:v0.35.0 4h
upbound-provider-family-gcp True True xpkg.upbound.io/upbound/provider-family-gcp:v0.35.0 4h
```

## Access the custom API

With the custom API (XRD) installed and associated to a resource template
Expand Down Expand Up @@ -538,7 +540,7 @@ Deleting the Claim deletes all the Crossplane generated resources.
`kubectl delete claim -n crossplane-test my-pubsub-queue`

```shell {copy-lines="1"}
kubectl delete claim -n crossplane-test my-pubsub-queue
kubectl delete pubsubclaim my-pubsub-queue -n crossplane-test
pubsubclaim.queue.example.com "my-pubsub-queue" deleted
```

Expand Down
6 changes: 3 additions & 3 deletions content/master/getting-started/provider-gcp.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ kind: Provider
metadata:
name: provider-gcp-storage
spec:
package: xpkg.upbound.io/upbound/provider-gcp-storage:v0.35.0
package: xpkg.upbound.io/upbound/provider-gcp-storage:v0.40.0
EOF
```

Expand All @@ -51,8 +51,8 @@ Verify the provider installed with `kubectl get providers`.
```shell {copy-lines="1",label="getProvider"}
kubectl get providers
NAME INSTALLED HEALTHY PACKAGE AGE
provider-gcp-storage True True xpkg.upbound.io/upbound/provider-gcp-storage:v0.35.0 14m
upbound-provider-family-gcp True True xpkg.upbound.io/upbound/provider-family-gcp:v0.35.0 14m
provider-gcp-storage True True xpkg.upbound.io/upbound/provider-gcp-storage:v0.40.0 36s
upbound-provider-family-gcp True True xpkg.upbound.io/upbound/provider-family-gcp:v0.40.0 29s
```

The Storage Provider installs a second Provider, the
Expand Down
68 changes: 34 additions & 34 deletions content/v1.14/getting-started/provider-gcp-part-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
title: GCP Quickstart Part 2
weight: 120
tocHidden: true
aliases:
- /master/getting-started/provider-azure-part-3
---

{{< hint "important" >}}
Expand Down Expand Up @@ -47,7 +45,7 @@ kind: Provider
metadata:
name: provider-gcp-storage
spec:
package: xpkg.upbound.io/upbound/provider-gcp-storage:v0.35.0
package: xpkg.upbound.io/upbound/provider-gcp-storage:v0.40.0
EOF
```

Expand Down Expand Up @@ -99,6 +97,36 @@ EOF

{{</expand >}}

## Install the PubSub Provider

Part 1 only installed the GCP Storage Provider. This section deploys a
PubSub Topic along with a GCP storage bucket.
First install the GCP PubSub Provider.

Add the new Provider to the cluster.

```yaml
cat <<EOF | kubectl apply -f -
apiVersion: pkg.crossplane.io/v1
kind: Provider
metadata:
name: provider-gcp-pubsub
spec:
package: xpkg.upbound.io/upbound/provider-gcp-pubsub:v0.40.0
EOF
```

View the new PubSub provider with `kubectl get providers`.

```shell {copy-lines="1"}
kubectl get providers
NAME INSTALLED HEALTHY PACKAGE AGE
provider-gcp-pubsub True True xpkg.upbound.io/upbound/provider-gcp-pubsub:v0.40.0 39s
provider-gcp-storage True True xpkg.upbound.io/upbound/provider-gcp-storage:v0.40.0 13m
upbound-provider-family-gcp True True xpkg.upbound.io/upbound/provider-family-gcp:v0.40.0 12m
```


## Create a custom API

<!-- vale alex.Condescending = NO -->
Expand Down Expand Up @@ -284,7 +312,7 @@ pubsubs.queue.example.com True True 7s
View the new custom API endpoints with `kubectl api-resources | grep pubsub`

```shell {copy-lines="1",label="apiRes"}
kubectl api-resources | grep pubsub
kubectl api-resources | grep queue.example
pubsubclaims queue.example.com/v1alpha1 true PubSubClaim
pubsubs queue.example.com/v1alpha1 false PubSub
```
Expand Down Expand Up @@ -350,7 +378,7 @@ spec:
- "us-central1"
patches:
- fromFieldPath: "spec.location"
toFieldPath: "spec.forProvider.messageStoragePolicy[*].allowedPersistenceRegions[*]"
toFieldPath: "spec.forProvider.messageStoragePolicy[0].allowedPersistenceRegions[0]"
transforms:
- type: map
map:
Expand Down Expand Up @@ -383,34 +411,6 @@ NAME XR-KIND XR-APIVERSION AGE
topic-with-bucket PubSub queue.example.com 3s
```

## Install the PubSub Provider

Part 1 only installed the GCP Storage Provider. Deploying a PubSub Topic
requires the PubSub Provider as well.

Add the new Provider to the cluster.

```yaml
cat <<EOF | kubectl apply -f -
apiVersion: pkg.crossplane.io/v1
kind: Provider
metadata:
name: provider-gcp-pubsub
spec:
package: xpkg.upbound.io/upbound/provider-gcp-pubsub:v0.35.0
EOF
```

View the new PubSub provider with `kubectl get providers`.

```shell {copy-lines="1"}
kubectl get providers
NAME INSTALLED HEALTHY PACKAGE AGE
provider-gcp-pubsub True True xpkg.upbound.io/upbound/provider-gcp-pubsub:v0.35.0 7s
provider-gcp-storage True True xpkg.upbound.io/upbound/provider-gcp-storage:v0.35.0 4h
upbound-provider-family-gcp True True xpkg.upbound.io/upbound/provider-family-gcp:v0.35.0 4h
```

## Access the custom API

With the custom API (XRD) installed and associated to a resource template
Expand Down Expand Up @@ -538,7 +538,7 @@ Deleting the Claim deletes all the Crossplane generated resources.
`kubectl delete claim -n crossplane-test my-pubsub-queue`

```shell {copy-lines="1"}
kubectl delete claim -n crossplane-test my-pubsub-queue
kubectl delete pubsubclaim my-pubsub-queue -n crossplane-test
pubsubclaim.queue.example.com "my-pubsub-queue" deleted
```

Expand Down
6 changes: 3 additions & 3 deletions content/v1.14/getting-started/provider-gcp.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ kind: Provider
metadata:
name: provider-gcp-storage
spec:
package: xpkg.upbound.io/upbound/provider-gcp-storage:v0.35.0
package: xpkg.upbound.io/upbound/provider-gcp-storage:v0.40.0
EOF
```

Expand All @@ -51,8 +51,8 @@ Verify the provider installed with `kubectl get providers`.
```shell {copy-lines="1",label="getProvider"}
kubectl get providers
NAME INSTALLED HEALTHY PACKAGE AGE
provider-gcp-storage True True xpkg.upbound.io/upbound/provider-gcp-storage:v0.35.0 14m
upbound-provider-family-gcp True True xpkg.upbound.io/upbound/provider-family-gcp:v0.35.0 14m
provider-gcp-storage True True xpkg.upbound.io/upbound/provider-gcp-storage:v0.40.0 36s
upbound-provider-family-gcp True True xpkg.upbound.io/upbound/provider-family-gcp:v0.40.0 29s
```

The Storage Provider installs a second Provider, the
Expand Down

0 comments on commit 0fbacd4

Please sign in to comment.