From 4e2d9e624497f5df358eb8ef54513037fe8c822b Mon Sep 17 00:00:00 2001 From: Dev <732525+devdattakulkarni@users.noreply.github.com> Date: Tue, 6 Aug 2024 12:34:34 -0500 Subject: [PATCH] Example update - hello-world (#1340) --- examples/multitenancy/hello-world/hs1-no-replicas.yaml | 7 +++++++ examples/multitenancy/hello-world/steps.txt | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 examples/multitenancy/hello-world/hs1-no-replicas.yaml diff --git a/examples/multitenancy/hello-world/hs1-no-replicas.yaml b/examples/multitenancy/hello-world/hs1-no-replicas.yaml new file mode 100644 index 00000000..e218470e --- /dev/null +++ b/examples/multitenancy/hello-world/hs1-no-replicas.yaml @@ -0,0 +1,7 @@ +apiVersion: platformapi.kubeplus/v1alpha1 +kind: HelloWorldService +metadata: + name: hs1 +spec: + greeting: Hello hello hello + diff --git a/examples/multitenancy/hello-world/steps.txt b/examples/multitenancy/hello-world/steps.txt index 7453a42c..bf36203a 100644 --- a/examples/multitenancy/hello-world/steps.txt +++ b/examples/multitenancy/hello-world/steps.txt @@ -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 @@ -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"