Skip to content

Commit

Permalink
update examples to use providerConfigRef
Browse files Browse the repository at this point in the history
Signed-off-by: Marques Johansson <mjohansson@equinix.com>
  • Loading branch information
displague committed Jun 8, 2021
1 parent 43ae6da commit 7e79ea2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Create a [Equinix Metal Project and a project level API key](https://metal.equin
Create a Kubernetes secret with the API Key and Project ID.

```bash
kubectl create -n crossplane-system secret generic packet-creds --from-file=key=<(echo '{"apiKey":"'$APIKEY'", "projectID":"'$PROJECT_ID'"}')
kubectl create -n crossplane-system secret generic --from-file=credentials=<(echo '{"apiKey":"'$APIKEY'", "projectID":"'$PROJECT_ID'"}') metal-creds
```

### Create a Provider record
Expand All @@ -85,8 +85,8 @@ spec:
source: Secret
secretRef:
namespace: crossplane-system
name: packet-creds
key: key
name: metal-creds
key: credentials
EOS
```

Expand Down Expand Up @@ -127,7 +127,7 @@ To view the device in the cluster:
```bash
$ kubectl get equinix -o wide
NAME PROJECT-ID AGE SECRET-NAME
provider.metal.equinix.com/packet-provider 0ac84673-b679-40c1-9de9-8a8792675515 38m packet-creds
provider.metal.equinix.com/packet-provider 0ac84673-b679-40c1-9de9-8a8792675515 38m metal-creds

NAME READY SYNCED STATE ID HOSTNAME FACILITY IPV4 RECLAIM-POLICY AGE
device.server.metal.equinix.com/devices True True active 1c73767a-e16a-485c-89b4-4b553e1458b3 crossplane sjc1 139.178.88.35 Delete 19m
Expand Down
2 changes: 1 addition & 1 deletion cluster/examples/assignment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ spec:
virtualNetworkIdRef:
name: xp-vlan
name: eth1
providerRef:
providerConfigRef:
name: equinix-metal-provider
2 changes: 1 addition & 1 deletion cluster/examples/device.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
networkType: hybrid
tags:
- crossplane
providerRef:
providerConfigRef:
name: equinix-metal-provider
writeConnectionSecretToRef:
name: crossplane-example
Expand Down
2 changes: 1 addition & 1 deletion cluster/examples/virtualnetwork.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ spec:
forProvider:
description: Example Crossplane provisioned VLAN
facility: sv15
providerRef:
providerConfigRef:
name: equinix-metal-provider

0 comments on commit 7e79ea2

Please sign in to comment.