Skip to content

Commit a8c7300

Browse files
authored
Merge pull request #66 from stefanprodan/linkerd-profile-update
Add cache routes to Linkerd profile
2 parents 3e6d61e + a60f28a commit a8c7300

File tree

6 files changed

+13
-5
lines changed

6 files changed

+13
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Web API:
4242
* `GET /token/validate` validates the JWT token `curl -H "Authorization: Bearer $JWT" podinfo:9898/token/validate`
4343
* `GET /configs` returns a JSON with configmaps and/or secrets mounted in the `config` volume
4444
* `POST /cache` saves the posted content to Redis and returns the SHA1 hash of the content
45-
* `GET /store/{hash}` returns the content from Redis if the key exists
45+
* `GET /cache/{hash}` returns the content from Redis if the key exists
4646
* `POST /store` writes the posted content to disk at /data/hash and returns the SHA1 hash of the content
4747
* `GET /store/{hash}` returns the content of the file /data/hash if exists
4848
* `GET /ws/echo` echos content via websockets `podcli ws ws://localhost:9898/ws/echo`

charts/podinfo/templates/ingress.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{- if .Values.ingress.enabled -}}
22
{{- $fullName := include "podinfo.fullname" . -}}
33
{{- $ingressPath := .Values.ingress.path -}}
4-
apiVersion: extensions/v1beta1
4+
apiVersion: networking.k8s.io/v1beta1
55
kind: Ingress
66
metadata:
77
name: {{ $fullName }}

charts/podinfo/templates/linkerd.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ spec:
6161
method: GET
6262
pathRegex: /status/[^/]*
6363
name: GET /status/{code}
64+
- condition:
65+
method: POST
66+
pathRegex: /cache
67+
name: POST /cache
68+
- condition:
69+
method: GET
70+
pathRegex: /cache/[^/]*
71+
name: GET /cache/{hash}
6472
- condition:
6573
method: POST
6674
pathRegex: /store

charts/podinfo/templates/tests/fail.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if .Values.faults.test }}
1+
{{- if .Values.faults.testFail }}
22
apiVersion: batch/v1
33
kind: Job
44
metadata:

charts/podinfo/templates/tests/timeout.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if .Values.faults.test }}
1+
{{- if .Values.faults.testTimeout }}
22
apiVersion: batch/v1
33
kind: Job
44
metadata:

e2e/bootstrap.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -o errexit
44

55
REPO_ROOT=$(git rev-parse --show-toplevel)
6-
KIND_VERSION=v0.7.0
6+
KIND_VERSION=v0.8.1
77

88
if [[ "$1" ]]; then
99
KIND_VERSION=$1

0 commit comments

Comments
 (0)