mirror of https://github.com/knative/docs.git
Fix the import paths for samples still ko-enabled. (#124)
This commit is contained in:
parent
3c6b61e59e
commit
5ccacbf6d5
|
@ -22,7 +22,7 @@ docker build \
|
||||||
docker push "${REPO}/sample/autoscale"
|
docker push "${REPO}/sample/autoscale"
|
||||||
|
|
||||||
# Replace the image reference with our published image.
|
# Replace the image reference with our published image.
|
||||||
perl -pi -e "s@github.com/knative/serving/sample/autoscale@${REPO}/sample/autoscale@g" sample/autoscale/sample.yaml
|
perl -pi -e "s@github.com/knative/docs/serving/samples/autoscale-go@${REPO}/sample/autoscale@g" sample/autoscale/sample.yaml
|
||||||
|
|
||||||
# Deploy the Knative Serving sample
|
# Deploy the Knative Serving sample
|
||||||
kubectl apply -f sample/autoscale/sample.yaml
|
kubectl apply -f sample/autoscale/sample.yaml
|
||||||
|
|
|
@ -35,7 +35,7 @@ spec:
|
||||||
container:
|
container:
|
||||||
# This is the Go import path for the binary to containerize
|
# This is the Go import path for the binary to containerize
|
||||||
# and substitute here.
|
# and substitute here.
|
||||||
image: github.com/knative/serving/sample/autoscale
|
image: github.com/knative/docs/serving/samples/autoscale-go
|
||||||
# When scaling up Knative controller doesn't have a way to
|
# When scaling up Knative controller doesn't have a way to
|
||||||
# know if the user container is good for serving. Having a
|
# know if the user container is good for serving. Having a
|
||||||
# readiness probe prevents traffic to be routed to a pod
|
# readiness probe prevents traffic to be routed to a pod
|
||||||
|
|
|
@ -24,7 +24,7 @@ docker build \
|
||||||
docker push "${REPO}/sample/gitwebhook"
|
docker push "${REPO}/sample/gitwebhook"
|
||||||
|
|
||||||
# Replace the image reference with our published image.
|
# Replace the image reference with our published image.
|
||||||
perl -pi -e "s@github.com/knative/serving/sample/gitwebhook@${REPO}/sample/gitwebhook@g" sample/gitwebhook/*.yaml
|
perl -pi -e "s@github.com/knative/docs/serving/samples/gitwebhook-go@${REPO}/sample/gitwebhook@g" sample/gitwebhook/*.yaml
|
||||||
|
|
||||||
# Deploy the Knative Serving sample
|
# Deploy the Knative Serving sample
|
||||||
kubectl apply -f sample/gitwebhook/sample.yaml
|
kubectl apply -f sample/gitwebhook/sample.yaml
|
||||||
|
|
|
@ -36,7 +36,7 @@ spec:
|
||||||
container:
|
container:
|
||||||
# This is the Go import path for the binary to containerize
|
# This is the Go import path for the binary to containerize
|
||||||
# and substitute here.
|
# and substitute here.
|
||||||
image: github.com/knative/serving/sample/gitwebhook
|
image: github.com/knative/docs/serving/samples/gitwebhook-go
|
||||||
env:
|
env:
|
||||||
- name: SECRET_TOKEN
|
- name: SECRET_TOKEN
|
||||||
valueFrom:
|
valueFrom:
|
||||||
|
|
|
@ -25,7 +25,7 @@ docker build \
|
||||||
docker push "${REPO}/sample/grpc-ping"
|
docker push "${REPO}/sample/grpc-ping"
|
||||||
|
|
||||||
# Replace the image reference with our published image.
|
# Replace the image reference with our published image.
|
||||||
perl -pi -e "s@github.com/knative/serving/sample/grpc-ping@${REPO}/sample/grpc-ping@g" sample/grpc-ping/*.yaml
|
perl -pi -e "s@github.com/knative/docs/serving/samples/grpc-ping-go@${REPO}/sample/grpc-ping@g" sample/grpc-ping/*.yaml
|
||||||
|
|
||||||
# Deploy the Knative sample
|
# Deploy the Knative sample
|
||||||
kubectl apply -f sample/grpc-ping/sample.yaml
|
kubectl apply -f sample/grpc-ping/sample.yaml
|
||||||
|
|
|
@ -21,4 +21,4 @@ spec:
|
||||||
knative.dev/type: app
|
knative.dev/type: app
|
||||||
spec:
|
spec:
|
||||||
container:
|
container:
|
||||||
image: github.com/knative/serving/sample/grpc-ping
|
image: github.com/knative/docs/serving/samples/grpc-ping-go
|
||||||
|
|
|
@ -37,7 +37,7 @@ docker build \
|
||||||
docker push "${REPO}/sample/knative-routing"
|
docker push "${REPO}/sample/knative-routing"
|
||||||
|
|
||||||
# Replace the image reference with our published image.
|
# Replace the image reference with our published image.
|
||||||
perl -pi -e "s@github.com/knative/serving/sample/knative-routing@${REPO}/sample/knative-routing@g" sample/knative-routing/*.yaml
|
perl -pi -e "s@github.com/knative/docs/serving/samples/knative-routing-go@${REPO}/sample/knative-routing@g" sample/knative-routing/*.yaml
|
||||||
|
|
||||||
# Deploy the "Search" and "Login" services.
|
# Deploy the "Search" and "Login" services.
|
||||||
kubectl apply -f sample/knative-routing/sample.yaml
|
kubectl apply -f sample/knative-routing/sample.yaml
|
||||||
|
|
|
@ -25,7 +25,7 @@ spec:
|
||||||
container:
|
container:
|
||||||
# This is the Go import path for the binary to containerize
|
# This is the Go import path for the binary to containerize
|
||||||
# and substitute here.
|
# and substitute here.
|
||||||
image: github.com/knative/serving/sample/knative-routing
|
image: github.com/knative/docs/serving/samples/knative-routing-go
|
||||||
env:
|
env:
|
||||||
- name: SERVICE_NAME
|
- name: SERVICE_NAME
|
||||||
value: Search Service
|
value: Search Service
|
||||||
|
@ -48,7 +48,7 @@ spec:
|
||||||
container:
|
container:
|
||||||
# This is the Go import path for the binary to containerize
|
# This is the Go import path for the binary to containerize
|
||||||
# and substitute here.
|
# and substitute here.
|
||||||
image: github.com/knative/serving/sample/knative-routing
|
image: github.com/knative/docs/serving/samples/knative-routing-go
|
||||||
env:
|
env:
|
||||||
- name: SERVICE_NAME
|
- name: SERVICE_NAME
|
||||||
value: Login Service
|
value: Login Service
|
||||||
|
|
|
@ -24,7 +24,7 @@ docker build \
|
||||||
docker push "${REPO}/sample/stock-rest-app"
|
docker push "${REPO}/sample/stock-rest-app"
|
||||||
|
|
||||||
# Replace the image reference with our published image.
|
# Replace the image reference with our published image.
|
||||||
perl -pi -e "s@github.com/knative/serving/sample/stock-rest-app@${REPO}/sample/stock-rest-app@g" sample/stock-rest-app/*.yaml
|
perl -pi -e "s@github.com/knative/docs/serving/samples/rest-api-go@${REPO}/sample/stock-rest-app@g" sample/stock-rest-app/*.yaml
|
||||||
|
|
||||||
# Deploy the Knative Serving sample
|
# Deploy the Knative Serving sample
|
||||||
kubectl apply -f sample/stock-rest-app/sample.yaml
|
kubectl apply -f sample/stock-rest-app/sample.yaml
|
||||||
|
|
|
@ -36,7 +36,7 @@ spec:
|
||||||
container:
|
container:
|
||||||
# This is the Go import path for the binary to containerize
|
# This is the Go import path for the binary to containerize
|
||||||
# and substitute here.
|
# and substitute here.
|
||||||
image: github.com/knative/serving/sample/stock-rest-app
|
image: github.com/knative/docs/serving/samples/rest-api-go
|
||||||
env:
|
env:
|
||||||
- name: RESOURCE
|
- name: RESOURCE
|
||||||
value: stock
|
value: stock
|
||||||
|
|
|
@ -26,7 +26,7 @@ spec:
|
||||||
container:
|
container:
|
||||||
# This is the Go import path for the binary to containerize
|
# This is the Go import path for the binary to containerize
|
||||||
# and substitute here.
|
# and substitute here.
|
||||||
image: github.com/knative/serving/sample/stock-rest-app
|
image: github.com/knative/docs/serving/samples/rest-api-go
|
||||||
env:
|
env:
|
||||||
- name: RESOURCE
|
- name: RESOURCE
|
||||||
value: share
|
value: share
|
||||||
|
|
|
@ -29,7 +29,7 @@ docker build \
|
||||||
docker push "${REPO}/sample/telemetrysample"
|
docker push "${REPO}/sample/telemetrysample"
|
||||||
|
|
||||||
# Replace the image reference with our published image.
|
# Replace the image reference with our published image.
|
||||||
perl -pi -e "s@github.com/knative/serving/sample/telemetrysample@${REPO}/sample/telemetrysample@g" sample/telemetrysample/*.yaml
|
perl -pi -e "s@github.com/knative/docs/serving/samples/telemetry-go@${REPO}/sample/telemetrysample@g" sample/telemetrysample/*.yaml
|
||||||
|
|
||||||
# Deploy the Knative Serving sample
|
# Deploy the Knative Serving sample
|
||||||
kubectl apply -f sample/telemetrysample/
|
kubectl apply -f sample/telemetrysample/
|
||||||
|
|
|
@ -28,4 +28,4 @@ spec:
|
||||||
container:
|
container:
|
||||||
# This is the Go import path for the binary to containerize
|
# This is the Go import path for the binary to containerize
|
||||||
# and substitute here.
|
# and substitute here.
|
||||||
image: github.com/knative/serving/sample/telemetrysample
|
image: github.com/knative/docs/serving/samples/telemetry-go
|
||||||
|
|
Loading…
Reference in New Issue