Skip to content

Commit

Permalink
v1.18 fix examples (envoyproxy#20371)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Northey <ryan@synca.io>
  • Loading branch information
phlax committed Mar 18, 2022
1 parent 4f36175 commit 1010a28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/cache/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

@app.route('/service/<service_number>/<response_id>')
def get(service_number, response_id):
stored_response = yaml.load(open('/etc/responses.yaml', 'r')).get(response_id)
stored_response = yaml.safe_load(open('/etc/responses.yaml', 'r')).get(response_id)

if stored_response is None:
abort(404, 'No response found with the given id')
Expand Down
3 changes: 2 additions & 1 deletion examples/dynamic-config-cp/Dockerfile-control-plane
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM golang

RUN apt-get -y update && apt-get install -y -qq --no-install-recommends netcat
RUN git clone https://github.com/envoyproxy/go-control-plane
RUN cd go-control-plane && git checkout 3bf95465cc00e4d5c54a142576b6552788bba1a0
ADD ./resource.go /go/go-control-plane/internal/example/resource.go
RUN cd go-control-plane && git checkout b4adc3bb5fe5288bff01cd452dad418ef98c676e && make bin/example
RUN cd go-control-plane && make bin/example
WORKDIR /go/go-control-plane

0 comments on commit 1010a28

Please sign in to comment.