Skip to content

Commit

Permalink
doc edits
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Caine committed May 19, 2021
1 parent de911d6 commit 27b725e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
7 changes: 6 additions & 1 deletion 1. Installing Crossplane on Openshift/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,16 @@ Due to the nature of OpenShift's enterprise strength security model when we inst
# in OpenShift this creates the Service Account 'crossplane' during the chart install
helm install crossplane --namespace crossplane-system crossplane-stable/crossplane --set securityContextCrossplane.runAsUser=null --set securityContextCrossplane.runAsGroup=null --set securityContextRBACManager.runAsUser=null --set securityContextRBACManager.runAsGroup=null --version 1.2.0 --set alpha.oam.enabled=true
helm install crossplane --namespace crossplane-system crossplane-stable/crossplane --version 1.2.1 --set securityContextCrossplane.runAsUser=null --set securityContextCrossplane.runAsGroup=null --set securityContextRBACManager.runAsUser=null --set securityContextRBACManager.runAsGroup=null --set alpha.oam.enabled=true
# install the Crossplane CLI
curl -sL https://raw.githubusercontent.com/crossplane/crossplane/master/install.sh | sh
sudo mv kubectl-crossplane /usr/local/bin
# checl the Crossplane CLI installed and working
# check the Crossplane CLI installed and working
kubectl crossplane --version
kubectl crossplane --help
```

Expand Down
7 changes: 5 additions & 2 deletions 3. Exploring Composite Resources/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ In the user namespace you can see the namespaced secret of type `connection.cros
```
oc project demo-apps
oc get secrets
```

When the database has completed provisioning, the secret's data is populated
```
oc describe secret acme-postgresqlinstance-conn
Name: acme-postgresqlinstance-conn
Expand All @@ -70,10 +74,9 @@ endpoint: 118 bytes
5. Deletion
In order to delete the composite service you need to delete the composite resource object which will in turn delete the underlying resource instances as specified in the composition - and this will trigger the delete action of the provider's services.
```
oc delete project demo-apps
kubectl delete ACMECompositePostgreSQLInstance/acme-postgres-composite
kubectl delete ACMECompositePostgreSQLInstance
kubectl delete Composition/acme-postgres-composition-ref
kubectl delete ACMECompositePostgreSQLInstance
kubectl delete xrd acmecompositepostgresqlinstances.acme.org
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ spec:
jdbcendpoint: "jdbc:postgresql://{{ (index .connection.postgres.hosts 0).hostname }}:{{ (index .connection.postgres.hosts 0).port }}{{ .connection.postgres.path }}"
host: "{{ (index .connection.postgres.hosts 0).hostname }}"
port: "{{ (index .connection.postgres.hosts 0).port }}"
database: "{{ .connection.postgres.path }}"
database: "{{ .connection.postgres.database }}"
writeConnectionSecretToRef:
namespace: crossplane-system
patches:
Expand Down

0 comments on commit 27b725e

Please sign in to comment.