Skip to content

Commit 580ea90

Browse files
authored
Replace "sleep" sample throughout Istio docs (#15767)
* The big one. * fix gencheck * fix gen * Change sort order of "curl" to be above "helloworld" * switch another order
1 parent 28f320c commit 580ea90

File tree

151 files changed

+1209
-1212
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

151 files changed

+1209
-1212
lines changed

content/en/boilerplates/before-you-begin-egress.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@
99
[configuration profile](/docs/setup/additional-setup/config-profiles/).
1010
{{< /tip >}}
1111

12-
* Deploy the [sleep]({{< github_tree >}}/samples/sleep) sample app to use as a test source for sending requests.
12+
* Deploy the [curl]({{< github_tree >}}/samples/curl) sample app to use as a test source for sending requests.
1313
If you have
1414
[automatic sidecar injection](/docs/setup/additional-setup/sidecar-injection/#automatic-sidecar-injection)
1515
enabled, run the following command to deploy the sample app:
1616

1717
{{< text bash >}}
18-
$ kubectl apply -f @samples/sleep/sleep.yaml@
18+
$ kubectl apply -f @samples/curl/curl.yaml@
1919
{{< /text >}}
2020

21-
Otherwise, manually inject the sidecar before deploying the `sleep` application with the following command:
21+
Otherwise, manually inject the sidecar before deploying the `curl` application with the following command:
2222

2323
{{< text bash >}}
24-
$ kubectl apply -f <(istioctl kube-inject -f @samples/sleep/sleep.yaml@)
24+
$ kubectl apply -f <(istioctl kube-inject -f @samples/curl/curl.yaml@)
2525
{{< /text >}}
2626

2727
{{< tip >}}
@@ -31,5 +31,5 @@
3131
* Set the `SOURCE_POD` environment variable to the name of your source pod:
3232

3333
{{< text bash >}}
34-
$ export SOURCE_POD=$(kubectl get pod -l app=sleep -o jsonpath={.items..metadata.name})
34+
$ export SOURCE_POD=$(kubectl get pod -l app=curl -o jsonpath={.items..metadata.name})
3535
{{< /text >}}

content/en/boilerplates/snips/before-you-begin-egress.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
####################################################################################################
2222

2323
bpsnip_before_you_begin_egress_before_you_begin_1() {
24-
kubectl apply -f samples/sleep/sleep.yaml
24+
kubectl apply -f samples/curl/curl.yaml
2525
}
2626

2727
bpsnip_before_you_begin_egress_before_you_begin_2() {
28-
kubectl apply -f <(istioctl kube-inject -f samples/sleep/sleep.yaml)
28+
kubectl apply -f <(istioctl kube-inject -f samples/curl/curl.yaml)
2929
}
3030

3131
bpsnip_before_you_begin_egress_before_you_begin_3() {
32-
export SOURCE_POD=$(kubectl get pod -l app=sleep -o jsonpath={.items..metadata.name})
32+
export SOURCE_POD=$(kubectl get pod -l app=curl -o jsonpath={.items..metadata.name})
3333
}

content/en/docs/ambient/architecture/traffic-redirection/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ inpod_mark: 1337
7777
Follow the steps below to confirm that the sockets on ports 15001, 15006, and 15008 are open and in the listening state.
7878

7979
{{< text bash >}}
80-
$ kubectl debug $(kubectl get pod -l app=sleep -n ambient-demo -o jsonpath='{.items[0].metadata.name}') -it -n ambient-demo --image nicolaka/netshoot -- ss -ntlp
80+
$ kubectl debug $(kubectl get pod -l app=curl -n ambient-demo -o jsonpath='{.items[0].metadata.name}') -it -n ambient-demo --image nicolaka/netshoot -- ss -ntlp
8181
Defaulting debug container name to debugger-nhd4d.
8282
State Recv-Q Send-Q Local Address:Port Peer Address:PortProcess
8383
LISTEN 0 128 127.0.0.1:15080 0.0.0.0:*
@@ -91,7 +91,7 @@ LISTEN 0 128 *:15008 *:*
9191
To view the iptables rules setup inside one of the application pods, execute this command:
9292

9393
{{< text bash >}}
94-
$ kubectl debug $(kubectl get pod -l app=sleep -n ambient-demo -o jsonpath='{.items[0].metadata.name}') -it --image gcr.io/istio-release/base --profile=netadmin -n ambient-demo -- iptables-save
94+
$ kubectl debug $(kubectl get pod -l app=curl -n ambient-demo -o jsonpath='{.items[0].metadata.name}') -it --image gcr.io/istio-release/base --profile=netadmin -n ambient-demo -- iptables-save
9595

9696
Defaulting debug container name to debugger-m44qc.
9797
# Generated by iptables-save

content/en/docs/ambient/getting-started/cleanup/index.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ $ kubectl delete namespace istio-system
3636

3737
## Remove the sample application
3838

39-
To delete the Bookinfo sample application and the `sleep` deployment, run the following:
39+
To delete the Bookinfo sample application and the `curl` deployment, run the following:
4040

4141
{{< text bash >}}
42-
$ kubectl delete -f {{< github_file >}}/samples/bookinfo/platform/kube/bookinfo.yaml
43-
$ kubectl delete -f {{< github_file >}}/samples/bookinfo/platform/kube/bookinfo-versions.yaml
44-
$ kubectl delete -f {{< github_file >}}/samples/sleep/sleep.yaml
42+
$ kubectl delete -f samples/bookinfo/platform/kube/bookinfo.yaml
43+
$ kubectl delete -f samples/bookinfo/platform/kube/bookinfo-versions.yaml
44+
$ kubectl delete -f samples/curl/curl.yaml
4545
{{< /text >}}
4646

4747
## Remove the Kubernetes Gateway API CRDs

content/en/docs/ambient/getting-started/cleanup/snips.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ istioctl waypoint delete --all
3131
}
3232

3333
snip_remove_the_sample_application_1() {
34-
kubectl delete -f https://raw.githubusercontent.com/istio/istio/master/samples/bookinfo/platform/kube/bookinfo.yaml
35-
kubectl delete -f https://raw.githubusercontent.com/istio/istio/master/samples/bookinfo/platform/kube/bookinfo-versions.yaml
36-
kubectl delete -f https://raw.githubusercontent.com/istio/istio/master/samples/sleep/sleep.yaml
34+
kubectl delete -f samples/bookinfo/platform/kube/bookinfo.yaml
35+
kubectl delete -f samples/bookinfo/platform/kube/bookinfo-versions.yaml
36+
kubectl delete -f samples/curl/curl.yaml
3737
}

content/en/docs/ambient/getting-started/enforce-auth-policies/index.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,16 @@ EOF
3737

3838
If you open the Bookinfo application in your browser (`http://localhost:8080/productpage`), you will see the product page, just as before. However, if you try to access the `productpage` service from a different service account, you should see an error.
3939

40-
Let's try accessing Bookinfo application from a `sleep` pod:
40+
Let's try accessing Bookinfo application from a `curl` pod:
4141

42-
{{< text syntax=bash snip_id=deploy_sleep >}}
43-
$ kubectl apply -f {{< github_file >}}/samples/sleep/sleep.yaml
42+
{{< text syntax=bash snip_id=deploy_curl >}}
43+
$ kubectl apply -f samples/curl/curl.yaml
4444
{{< /text >}}
4545

46-
Since the `sleep` pod is using a different service account, it will not have access the `productpage` service:
46+
Since the `curl` pod is using a different service account, it will not have access the `productpage` service:
4747

4848
{{< text bash >}}
49-
$ kubectl exec deploy/sleep -- curl -s "http://productpage:9080/productpage"
49+
$ kubectl exec deploy/curl -- curl -s "http://productpage:9080/productpage"
5050
command terminated with exit code 56
5151
{{< /text >}}
5252

@@ -68,7 +68,7 @@ NAME CLASS ADDRESS PROGRAMMED AGE
6868
waypoint istio-waypoint 10.96.58.95 True 42s
6969
{{< /text >}}
7070

71-
Adding a [L7 authorization policy](/docs/ambient/usage/l7-features/) will explicitly allow the `sleep` service to send `GET` requests to the `productpage` service, but perform no other operations:
71+
Adding a [L7 authorization policy](/docs/ambient/usage/l7-features/) will explicitly allow the `curl` service to send `GET` requests to the `productpage` service, but perform no other operations:
7272

7373
{{< text syntax=bash snip_id=deploy_l7_policy >}}
7474
$ kubectl apply -f - <<EOF
@@ -87,7 +87,7 @@ spec:
8787
- from:
8888
- source:
8989
principals:
90-
- cluster.local/ns/default/sa/sleep
90+
- cluster.local/ns/default/sa/curl
9191
to:
9292
- operation:
9393
methods: ["GET"]
@@ -104,7 +104,7 @@ Confirm the new waypoint proxy is enforcing the updated authorization policy:
104104

105105
{{< text bash >}}
106106
$ # This fails with an RBAC error because we're not using a GET operation
107-
$ kubectl exec deploy/sleep -- curl -s "http://productpage:9080/productpage" -X DELETE
107+
$ kubectl exec deploy/curl -- curl -s "http://productpage:9080/productpage" -X DELETE
108108
RBAC: access denied
109109
{{< /text >}}
110110

@@ -115,8 +115,8 @@ RBAC: access denied
115115
{{< /text >}}
116116

117117
{{< text bash >}}
118-
$ # This works as we're explicitly allowing GET requests from the sleep pod
119-
$ kubectl exec deploy/sleep -- curl -s http://productpage:9080/productpage | grep -o "<title>.*</title>"
118+
$ # This works as we're explicitly allowing GET requests from the curl pod
119+
$ kubectl exec deploy/curl -- curl -s http://productpage:9080/productpage | grep -o "<title>.*</title>"
120120
<title>Simple Bookstore App</title>
121121
{{< /text >}}
122122

content/en/docs/ambient/getting-started/enforce-auth-policies/snips.sh

+7-7
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ spec:
4040
EOF
4141
}
4242

43-
snip_deploy_sleep() {
44-
kubectl apply -f https://raw.githubusercontent.com/istio/istio/master/samples/sleep/sleep.yaml
43+
snip_deploy_curl() {
44+
kubectl apply -f samples/curl/curl.yaml
4545
}
4646

4747
snip_enforce_layer_4_authorization_policy_3() {
48-
kubectl exec deploy/sleep -- curl -s "http://productpage:9080/productpage"
48+
kubectl exec deploy/curl -- curl -s "http://productpage:9080/productpage"
4949
}
5050

5151
! IFS=$'\n' read -r -d '' snip_enforce_layer_4_authorization_policy_3_out <<\ENDSNIP
@@ -87,7 +87,7 @@ spec:
8787
- from:
8888
- source:
8989
principals:
90-
- cluster.local/ns/default/sa/sleep
90+
- cluster.local/ns/default/sa/curl
9191
to:
9292
- operation:
9393
methods: ["GET"]
@@ -96,7 +96,7 @@ EOF
9696

9797
snip_enforce_layer_7_authorization_policy_4() {
9898
# This fails with an RBAC error because we're not using a GET operation
99-
kubectl exec deploy/sleep -- curl -s "http://productpage:9080/productpage" -X DELETE
99+
kubectl exec deploy/curl -- curl -s "http://productpage:9080/productpage" -X DELETE
100100
}
101101

102102
! IFS=$'\n' read -r -d '' snip_enforce_layer_7_authorization_policy_4_out <<\ENDSNIP
@@ -113,8 +113,8 @@ RBAC: access denied
113113
ENDSNIP
114114

115115
snip_enforce_layer_7_authorization_policy_6() {
116-
# This works as we're explicitly allowing GET requests from the sleep pod
117-
kubectl exec deploy/sleep -- curl -s http://productpage:9080/productpage | grep -o "<title>.*</title>"
116+
# This works as we're explicitly allowing GET requests from the curl pod
117+
kubectl exec deploy/curl -- curl -s http://productpage:9080/productpage | grep -o "<title>.*</title>"
118118
}
119119

120120
! IFS=$'\n' read -r -d '' snip_enforce_layer_7_authorization_policy_6_out <<\ENDSNIP

content/en/docs/ambient/getting-started/manage-traffic/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ EOF
4040
To confirm that roughly 10% of the of the traffic from 100 requests goes to `reviews-v2`, you can run the following command:
4141

4242
{{< text syntax=bash snip_id=test_traffic_split >}}
43-
$ kubectl exec deploy/sleep -- sh -c "for i in \$(seq 1 100); do curl -s http://productpage:9080/productpage | grep reviews-v.-; done"
43+
$ kubectl exec deploy/curl -- sh -c "for i in \$(seq 1 100); do curl -s http://productpage:9080/productpage | grep reviews-v.-; done"
4444
{{< /text >}}
4545

4646
You'll notice the majority of requests go to `reviews-v1`. You can confirm the same if you open the Bookinfo application in your browser and refresh the page multiple times. Notice the requests from the `reviews-v1` don't have any stars, while the requests from `reviews-v2` have black stars.

content/en/docs/ambient/getting-started/manage-traffic/snips.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,5 @@ EOF
4444
}
4545

4646
snip_test_traffic_split() {
47-
kubectl exec deploy/sleep -- sh -c "for i in \$(seq 1 100); do curl -s http://productpage:9080/productpage | grep reviews-v.-; done"
47+
kubectl exec deploy/curl -- sh -c "for i in \$(seq 1 100); do curl -s http://productpage:9080/productpage | grep reviews-v.-; done"
4848
}

content/en/docs/ambient/getting-started/test.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ _verify_like snip_deploy_and_configure_the_ingress_gateway_3 "$snip_deploy_and_c
3939
_verify_contains snip_add_bookinfo_to_the_mesh_1 "$snip_add_bookinfo_to_the_mesh_1_out"
4040

4141
snip_deploy_l4_policy
42-
snip_deploy_sleep
43-
_wait_for_deployment default sleep
42+
snip_deploy_curl
43+
_wait_for_deployment default curl
4444
_verify_contains snip_enforce_layer_4_authorization_policy_3 "$snip_enforce_layer_4_authorization_policy_3_out"
4545

4646
_verify_contains snip_deploy_waypoint "$snip_deploy_waypoint_out"

content/en/docs/ambient/usage/extend-waypoint-wasm/index.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ One of the key advantages of Wasm extensibility is that extensions can be loaded
1818
1. Set up Istio by following the instructions in the [ambient mode Getting Started guide](/docs/ambient/getting-started).
1919
1. Deploy the [Bookinfo sample application](/docs/ambient/getting-started/deploy-sample-app).
2020
1. [Add the default namespace to the ambient mesh](/docs/ambient/getting-started/secure-and-visualize).
21-
1. Deploy the [sleep]({{< github_tree >}}/samples/sleep) sample app to use as a test source for sending requests.
21+
1. Deploy the [curl]({{< github_tree >}}/samples/curl) sample app to use as a test source for sending requests.
2222

2323
{{< text syntax=bash >}}
24-
$ kubectl apply -f @samples/sleep/sleep.yaml@
24+
$ kubectl apply -f @samples/curl/curl.yaml@
2525
{{< /text >}}
2626

2727
## At a gateway
@@ -73,14 +73,14 @@ The Istio agent will interpret the WasmPlugin configuration, download remote Was
7373
1. Test `/productpage` without credentials:
7474

7575
{{< text syntax=bash snip_id=test_gateway_productpage_without_credentials >}}
76-
$ kubectl exec deploy/sleep -- curl -s -w "%{http_code}" -o /dev/null "http://bookinfo-gateway-istio.default.svc.cluster.local/productpage"
76+
$ kubectl exec deploy/curl -- curl -s -w "%{http_code}" -o /dev/null "http://bookinfo-gateway-istio.default.svc.cluster.local/productpage"
7777
401
7878
{{< /text >}}
7979

8080
1. Test `/productpage` with the credentials configured in the WasmPlugin resource:
8181

8282
{{< text syntax=bash snip_id=test_gateway_productpage_with_credentials >}}
83-
$ kubectl exec deploy/sleep -- curl -s -o /dev/null -H "Authorization: Basic YWRtaW4zOmFkbWluMw==" -w "%{http_code}" "http://bookinfo-gateway-istio.default.svc.cluster.local/productpage"
83+
$ kubectl exec deploy/curl -- curl -s -o /dev/null -H "Authorization: Basic YWRtaW4zOmFkbWluMw==" -w "%{http_code}" "http://bookinfo-gateway-istio.default.svc.cluster.local/productpage"
8484
200
8585
{{< /text >}}
8686

@@ -99,7 +99,7 @@ $ istioctl waypoint apply --enroll-namespace --wait
9999
Verify traffic reaches the service:
100100

101101
{{< text syntax=bash snip_id=verify_traffic >}}
102-
$ kubectl exec deploy/sleep -- curl -s -w "%{http_code}" -o /dev/null http://productpage:9080/productpage
102+
$ kubectl exec deploy/curl -- curl -s -w "%{http_code}" -o /dev/null http://productpage:9080/productpage
103103
200
104104
{{< /text >}}
105105

@@ -153,14 +153,14 @@ basic-auth-at-waypoint 14m
153153
1. Test internal `/productpage` without credentials:
154154

155155
{{< text syntax=bash snip_id=test_waypoint_productpage_without_credentials >}}
156-
$ kubectl exec deploy/sleep -- curl -s -w "%{http_code}" -o /dev/null http://productpage:9080/productpage
156+
$ kubectl exec deploy/curl -- curl -s -w "%{http_code}" -o /dev/null http://productpage:9080/productpage
157157
401
158158
{{< /text >}}
159159

160160
1. Test internal `/productpage` with credentials:
161161

162162
{{< text syntax=bash snip_id=test_waypoint_productpage_with_credentials >}}
163-
$ kubectl exec deploy/sleep -- curl -s -w "%{http_code}" -o /dev/null -H "Authorization: Basic YWRtaW4zOmFkbWluMw==" http://productpage:9080/productpage
163+
$ kubectl exec deploy/curl -- curl -s -w "%{http_code}" -o /dev/null -H "Authorization: Basic YWRtaW4zOmFkbWluMw==" http://productpage:9080/productpage
164164
200
165165
{{< /text >}}
166166

@@ -200,21 +200,21 @@ EOF
200200
1. Test the internal `/productpage` with the credentials configured at the generic `waypoint` proxy:
201201

202202
{{< text syntax=bash snip_id=test_waypoint_service_productpage_with_credentials >}}
203-
$ kubectl exec deploy/sleep -- curl -s -w "%{http_code}" -o /dev/null -H "Authorization: Basic YWRtaW4zOmFkbWluMw==" http://productpage:9080/productpage
203+
$ kubectl exec deploy/curl -- curl -s -w "%{http_code}" -o /dev/null -H "Authorization: Basic YWRtaW4zOmFkbWluMw==" http://productpage:9080/productpage
204204
200
205205
{{< /text >}}
206206

207207
1. Test the internal `/reviews` with credentials configured at the specific `reviews-svc-waypoint` proxy:
208208

209209
{{< text syntax=bash snip_id=test_waypoint_service_reviews_with_credentials >}}
210-
$ kubectl exec deploy/sleep -- curl -s -w "%{http_code}" -o /dev/null -H "Authorization: Basic MXQtaW4zOmFkbWluMw==" http://reviews:9080/reviews/1
210+
$ kubectl exec deploy/curl -- curl -s -w "%{http_code}" -o /dev/null -H "Authorization: Basic MXQtaW4zOmFkbWluMw==" http://reviews:9080/reviews/1
211211
200
212212
{{< /text >}}
213213

214214
1. Test internal `/reviews` without credentials:
215215

216216
{{< text syntax=bash snip_id=test_waypoint_service_reviews_without_credentials >}}
217-
$ kubectl exec deploy/sleep -- curl -s -w "%{http_code}" -o /dev/null http://reviews:9080/reviews/1
217+
$ kubectl exec deploy/curl -- curl -s -w "%{http_code}" -o /dev/null http://reviews:9080/reviews/1
218218
401
219219
{{< /text >}}
220220

content/en/docs/ambient/usage/extend-waypoint-wasm/snips.sh

+9-9
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
####################################################################################################
2222

2323
snip_before_you_begin_1() {
24-
kubectl apply -f samples/sleep/sleep.yaml
24+
kubectl apply -f samples/curl/curl.yaml
2525
}
2626

2727
snip_get_gateway() {
@@ -59,15 +59,15 @@ EOF
5959
}
6060

6161
snip_test_gateway_productpage_without_credentials() {
62-
kubectl exec deploy/sleep -- curl -s -w "%{http_code}" -o /dev/null "http://bookinfo-gateway-istio.default.svc.cluster.local/productpage"
62+
kubectl exec deploy/curl -- curl -s -w "%{http_code}" -o /dev/null "http://bookinfo-gateway-istio.default.svc.cluster.local/productpage"
6363
}
6464

6565
! IFS=$'\n' read -r -d '' snip_test_gateway_productpage_without_credentials_out <<\ENDSNIP
6666
401
6767
ENDSNIP
6868

6969
snip_test_gateway_productpage_with_credentials() {
70-
kubectl exec deploy/sleep -- curl -s -o /dev/null -H "Authorization: Basic YWRtaW4zOmFkbWluMw==" -w "%{http_code}" "http://bookinfo-gateway-istio.default.svc.cluster.local/productpage"
70+
kubectl exec deploy/curl -- curl -s -o /dev/null -H "Authorization: Basic YWRtaW4zOmFkbWluMw==" -w "%{http_code}" "http://bookinfo-gateway-istio.default.svc.cluster.local/productpage"
7171
}
7272

7373
! IFS=$'\n' read -r -d '' snip_test_gateway_productpage_with_credentials_out <<\ENDSNIP
@@ -79,7 +79,7 @@ istioctl waypoint apply --enroll-namespace --wait
7979
}
8080

8181
snip_verify_traffic() {
82-
kubectl exec deploy/sleep -- curl -s -w "%{http_code}" -o /dev/null http://productpage:9080/productpage
82+
kubectl exec deploy/curl -- curl -s -w "%{http_code}" -o /dev/null http://productpage:9080/productpage
8383
}
8484

8585
! IFS=$'\n' read -r -d '' snip_verify_traffic_out <<\ENDSNIP
@@ -132,15 +132,15 @@ basic-auth-at-waypoint 14m
132132
ENDSNIP
133133

134134
snip_test_waypoint_productpage_without_credentials() {
135-
kubectl exec deploy/sleep -- curl -s -w "%{http_code}" -o /dev/null http://productpage:9080/productpage
135+
kubectl exec deploy/curl -- curl -s -w "%{http_code}" -o /dev/null http://productpage:9080/productpage
136136
}
137137

138138
! IFS=$'\n' read -r -d '' snip_test_waypoint_productpage_without_credentials_out <<\ENDSNIP
139139
401
140140
ENDSNIP
141141

142142
snip_test_waypoint_productpage_with_credentials() {
143-
kubectl exec deploy/sleep -- curl -s -w "%{http_code}" -o /dev/null -H "Authorization: Basic YWRtaW4zOmFkbWluMw==" http://productpage:9080/productpage
143+
kubectl exec deploy/curl -- curl -s -w "%{http_code}" -o /dev/null -H "Authorization: Basic YWRtaW4zOmFkbWluMw==" http://productpage:9080/productpage
144144
}
145145

146146
! IFS=$'\n' read -r -d '' snip_test_waypoint_productpage_with_credentials_out <<\ENDSNIP
@@ -173,23 +173,23 @@ EOF
173173
}
174174

175175
snip_test_waypoint_service_productpage_with_credentials() {
176-
kubectl exec deploy/sleep -- curl -s -w "%{http_code}" -o /dev/null -H "Authorization: Basic YWRtaW4zOmFkbWluMw==" http://productpage:9080/productpage
176+
kubectl exec deploy/curl -- curl -s -w "%{http_code}" -o /dev/null -H "Authorization: Basic YWRtaW4zOmFkbWluMw==" http://productpage:9080/productpage
177177
}
178178

179179
! IFS=$'\n' read -r -d '' snip_test_waypoint_service_productpage_with_credentials_out <<\ENDSNIP
180180
200
181181
ENDSNIP
182182

183183
snip_test_waypoint_service_reviews_with_credentials() {
184-
kubectl exec deploy/sleep -- curl -s -w "%{http_code}" -o /dev/null -H "Authorization: Basic MXQtaW4zOmFkbWluMw==" http://reviews:9080/reviews/1
184+
kubectl exec deploy/curl -- curl -s -w "%{http_code}" -o /dev/null -H "Authorization: Basic MXQtaW4zOmFkbWluMw==" http://reviews:9080/reviews/1
185185
}
186186

187187
! IFS=$'\n' read -r -d '' snip_test_waypoint_service_reviews_with_credentials_out <<\ENDSNIP
188188
200
189189
ENDSNIP
190190

191191
snip_test_waypoint_service_reviews_without_credentials() {
192-
kubectl exec deploy/sleep -- curl -s -w "%{http_code}" -o /dev/null http://reviews:9080/reviews/1
192+
kubectl exec deploy/curl -- curl -s -w "%{http_code}" -o /dev/null http://reviews:9080/reviews/1
193193
}
194194

195195
! IFS=$'\n' read -r -d '' snip_test_waypoint_service_reviews_without_credentials_out <<\ENDSNIP

0 commit comments

Comments
 (0)