Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
Signed-off-by: Matei David <matei@buoyant.io>
  • Loading branch information
mateiidavid committed Dec 5, 2023
1 parent 2e29288 commit 08d7a34
Show file tree
Hide file tree
Showing 51 changed files with 351 additions and 10 deletions.
1 change: 0 additions & 1 deletion charts/partials/templates/_proxy.tpl
Expand Up @@ -173,7 +173,6 @@ readinessProbe:
port: {{.Values.proxy.ports.admin}}
initialDelaySeconds: {{.Values.proxy.readinessProbe.initialDelaySeconds | default 2}}
timeoutSeconds: {{.Values.proxy.readinessProbe.timeoutSeconds | default 1}}
initialDelaySeconds: 2
{{- if and .Values.proxy.nativeSidecar .Values.proxy.await }}
startupProbe:
httpGet:
Expand Down
8 changes: 8 additions & 0 deletions cli/cmd/install_test.go
Expand Up @@ -100,6 +100,14 @@ func TestRender(t *testing.T) {
OpaquePorts: "25,443,587,3306,5432,11211",
Await: true,
DefaultInboundPolicy: "default-allow-policy",
LivenessProbe: &charts.Probe{
InitialDelaySeconds: 10,
TimeoutSeconds: 1,
},
ReadinessProbe: &charts.Probe{
InitialDelaySeconds: 2,
TimeoutSeconds: 1,
},
},
ProxyInit: &charts.ProxyInit{
IptablesMode: "legacy",
Expand Down
2 changes: 2 additions & 0 deletions cli/cmd/testdata/inject-filepath/expected/injected_nginx.yaml
Expand Up @@ -131,6 +131,7 @@ spec:
path: /live
port: 4191
initialDelaySeconds: 10
timeoutSeconds: 1
name: linkerd-proxy
ports:
- containerPort: 4143
Expand All @@ -142,6 +143,7 @@ spec:
path: /ready
port: 4191
initialDelaySeconds: 2
timeoutSeconds: 1
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
Expand Down
Expand Up @@ -131,6 +131,7 @@ spec:
path: /live
port: 4191
initialDelaySeconds: 10
timeoutSeconds: 1
name: linkerd-proxy
ports:
- containerPort: 4143
Expand All @@ -142,6 +143,7 @@ spec:
path: /ready
port: 4191
initialDelaySeconds: 2
timeoutSeconds: 1
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
Expand Down Expand Up @@ -345,6 +347,7 @@ spec:
path: /live
port: 4191
initialDelaySeconds: 10
timeoutSeconds: 1
name: linkerd-proxy
ports:
- containerPort: 4143
Expand All @@ -356,6 +359,7 @@ spec:
path: /ready
port: 4191
initialDelaySeconds: 2
timeoutSeconds: 1
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
Expand Down
2 changes: 2 additions & 0 deletions cli/cmd/testdata/inject-filepath/expected/injected_redis.yaml
Expand Up @@ -131,6 +131,7 @@ spec:
path: /live
port: 4191
initialDelaySeconds: 10
timeoutSeconds: 1
name: linkerd-proxy
ports:
- containerPort: 4143
Expand All @@ -142,6 +143,7 @@ spec:
path: /ready
port: 4191
initialDelaySeconds: 2
timeoutSeconds: 1
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
Expand Down
2 changes: 2 additions & 0 deletions cli/cmd/testdata/inject_contour.golden.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions cli/cmd/testdata/inject_emojivoto_already_injected.golden.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions cli/cmd/testdata/inject_emojivoto_deployment.golden.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions cli/cmd/testdata/inject_emojivoto_deployment_debug.golden.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 08d7a34

Please sign in to comment.