generated from crossplane/upjet-provider-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update providerconfig.yaml and secret.yaml.tmpl. Added datacenter exa…
…mple.
- Loading branch information
Showing
6 changed files
with
50 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Datacenter Example | ||
First we need to create vSphere secret and provider. | ||
``` | ||
kubectl create -f secret.yaml | ||
kubectl create -f providerconfig.yaml | ||
``` | ||
After that we can create 'Datacenter' resource via Crossplane. | ||
``` | ||
kubectl create -f datacenter.yaml | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: inventory.crossplane.io/v1alpha1 | ||
kind: VSphereDatacenter | ||
metadata: | ||
name: example-datacenter | ||
spec: | ||
forProvider: | ||
name: my-datacenter | ||
providerRef: | ||
name: vsphere | ||
providerConfigRef: | ||
name: vsphere |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: vsphere.crossplane.io/v1beta1 | ||
kind: ProviderConfig | ||
metadata: | ||
name: vsphere | ||
spec: | ||
credentials: | ||
source: Secret | ||
secretRef: | ||
name: example-creds | ||
namespace: crossplane-system | ||
key: credentials |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: example-creds | ||
namespace: crossplane-system | ||
type: Opaque | ||
stringData: | ||
credentials: | | ||
{ | ||
"user": "admin", | ||
"password": "t0ps3cr3t11", | ||
"vsphere_server": "my_excellent_vsphere_server" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters