Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

Commit 7e79ea2

Browse files
committed
update examples to use providerConfigRef
Signed-off-by: Marques Johansson <mjohansson@equinix.com>
1 parent 43ae6da commit 7e79ea2

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Create a [Equinix Metal Project and a project level API key](https://metal.equin
6666
Create a Kubernetes secret with the API Key and Project ID.
6767

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

7272
### Create a Provider record
@@ -85,8 +85,8 @@ spec:
8585
source: Secret
8686
secretRef:
8787
namespace: crossplane-system
88-
name: packet-creds
89-
key: key
88+
name: metal-creds
89+
key: credentials
9090
EOS
9191
```
9292

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

132132
NAME READY SYNCED STATE ID HOSTNAME FACILITY IPV4 RECLAIM-POLICY AGE
133133
device.server.metal.equinix.com/devices True True active 1c73767a-e16a-485c-89b4-4b553e1458b3 crossplane sjc1 139.178.88.35 Delete 19m

cluster/examples/assignment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ spec:
1010
virtualNetworkIdRef:
1111
name: xp-vlan
1212
name: eth1
13-
providerRef:
13+
providerConfigRef:
1414
name: equinix-metal-provider

cluster/examples/device.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
networkType: hybrid
1616
tags:
1717
- crossplane
18-
providerRef:
18+
providerConfigRef:
1919
name: equinix-metal-provider
2020
writeConnectionSecretToRef:
2121
name: crossplane-example

cluster/examples/virtualnetwork.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ spec:
77
forProvider:
88
description: Example Crossplane provisioned VLAN
99
facility: sv15
10-
providerRef:
10+
providerConfigRef:
1111
name: equinix-metal-provider

0 commit comments

Comments
 (0)