Skip to content

Commit

Permalink
Example update - hello-world (cloud-ark#1340)
Browse files Browse the repository at this point in the history
  • Loading branch information
devdattakulkarni authored Aug 6, 2024
1 parent b0634dc commit 4e2d9e6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions examples/multitenancy/hello-world/hs1-no-replicas.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: platformapi.kubeplus/v1alpha1
kind: HelloWorldService
metadata:
name: hs1
spec:
greeting: Hello hello hello

6 changes: 3 additions & 3 deletions examples/multitenancy/hello-world/steps.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ You can use either the provider.conf or consumer.conf in below commands.
You will see that this is a Kubernetes CRD with a spec property "greeting".

2. Create a hello world instance
- more hs1.yaml
- more hs1-no-replicas.yaml
Notice that this is an instance of HelloWorldService named 'hs1'. The "greetings" spec property
value is set to "Hello hello hello".
- kubectl create -f hs1.yaml --kubeconfig=consumer.conf
- kubectl create -f hs1-no-replicas.yaml --kubeconfig=consumer.conf

3. Check that the application instance Pods are created in a new namespace
- kubectl get pods -A --kubeconfig=consumer.conf
Expand Down Expand Up @@ -123,7 +123,7 @@ You can use either the provider.conf or consumer.conf in below commands.
Clean up:
-----------
- As consumer:
- kubectl delete -f hs1.yaml --kubeconfig=consumer.conf
- kubectl delete -f hs1-no-replicas.yaml --kubeconfig=consumer.conf
- kubectl delete -f hello-world-service-composition.yaml --kubeconfig=consumer.conf
- should get permission denied error, like below:
Error from server (Forbidden): error when deleting "hello-world-service-composition.yaml": resourcecompositions.workflows.kubeplus "hello-world-service-composition" is forbidden: User "system:serviceaccount:default:kubeplus-saas-consumer" cannot delete resource "resourcecompositions" in API group "workflows.kubeplus" in the namespace "default"
Expand Down

0 comments on commit 4e2d9e6

Please sign in to comment.