Skip to content

Commit 3006e37

Browse files
author
Konstantin
authored
cnf_setup: Exit on setup failure or timeout (#2114)
Fix handling unsuccessful cnf setup, if resources are not ready after timeout - then setup should fail with exit 1. Change specs accordingly, replace wait_count=0 with new option "ignore_setup_timeout". Add cnf_setup function to ShellCmd and use it for installation of CNFs during specs. Refs: #1937 #2083 Signed-off-by: Konstantin Yarovoy <[email protected]>
1 parent e5397d0 commit 3006e37

Some content is hidden

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

54 files changed

+41184
-286
lines changed

USAGE.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,17 @@ crystal build src/cnf-testsuite.cr
5959
./cnf-testsuite validate_config cnf-config=[PATH_TO]/cnf-testsuite.yml
6060
```
6161

62+
#### Installing a cnf:
63+
64+
```
65+
./cnf-testsuite cnf_setup cnf-config=./cnf-testsuite.yml
66+
```
67+
68+
##### Skip waiting for resource readiness during installation:
69+
```
70+
./cnf-testsuite cnf_setup cnf-config=./cnf-testsuite.yml skip_wait_for_install
71+
```
72+
6273
#### Running all of the platform and workload tests:
6374

6475
```
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
---
2-
helm_chart: oci://docker.io/envoyproxy/gateway-helm --version v0.0.0-latest
3-
release_name: envoy
4-
service_name: envoy
2+
helm_directory: gateway-helm
3+
release_name: envoy-gateway
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*.orig
18+
*~
19+
# Various IDEs
20+
.project
21+
.idea/
22+
*.tmproj
23+
.vscode/
24+
25+
# Template files
26+
*.tmpl.*
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
apiVersion: v2
2+
appVersion: latest
3+
description: The Helm chart for Envoy Gateway
4+
home: https://gateway.envoyproxy.io/
5+
icon: https://raw.githubusercontent.com/envoyproxy/gateway/main/site/assets/icons/logo.svg
6+
keywords:
7+
- gateway-api
8+
- envoyproxy
9+
- envoy-gateway
10+
- eg
11+
maintainers:
12+
- name: envoy-gateway-steering-committee
13+
url: https://github.com/envoyproxy/gateway/blob/main/GOVERNANCE.md
14+
- name: envoy-gateway-maintainers
15+
url: https://github.com/envoyproxy/gateway/blob/main/CODEOWNERS
16+
name: gateway-helm
17+
sources:
18+
- https://github.com/envoyproxy/gateway
19+
type: application
20+
version: v0.0.0-latest
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
# gateway-helm
2+
3+
![Version: v0.0.0-latest](https://img.shields.io/badge/Version-v0.0.0--latest-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square)
4+
5+
The Helm chart for Envoy Gateway
6+
7+
**Homepage:** <https://gateway.envoyproxy.io/>
8+
9+
## Maintainers
10+
11+
| Name | Email | Url |
12+
| ---- | ------ | --- |
13+
| envoy-gateway-steering-committee | | <https://github.com/envoyproxy/gateway/blob/main/GOVERNANCE.md> |
14+
| envoy-gateway-maintainers | | <https://github.com/envoyproxy/gateway/blob/main/CODEOWNERS> |
15+
16+
## Source Code
17+
18+
* <https://github.com/envoyproxy/gateway>
19+
20+
## Usage
21+
22+
[Helm](https://helm.sh) must be installed to use the charts.
23+
Please refer to Helm's [documentation](https://helm.sh/docs) to get started.
24+
25+
### Install from DockerHub
26+
27+
Once Helm has been set up correctly, install the chart from dockerhub:
28+
29+
``` shell
30+
helm install eg oci://docker.io/envoyproxy/gateway-helm --version v0.0.0-latest -n envoy-gateway-system --create-namespace
31+
```
32+
You can find all helm chart release in [Dockerhub](https://hub.docker.com/r/envoyproxy/gateway-helm/tags)
33+
34+
### Install from Source Code
35+
36+
You can also install the helm chart from the source code:
37+
38+
To install the eg chart along with Gateway API CRDs and Envoy Gateway CRDs:
39+
40+
``` shell
41+
make kube-deploy TAG=latest
42+
```
43+
44+
### Skip install CRDs
45+
46+
You can install the eg chart along without Gateway API CRDs and Envoy Gateway CRDs, make sure CRDs exist in Cluster first if you want to skip to install them, otherwise EG may fail to start:
47+
48+
``` shell
49+
helm install eg --create-namespace oci://docker.io/envoyproxy/gateway-helm --version v0.0.0-latest -n envoy-gateway-system --skip-crds
50+
```
51+
52+
To uninstall the chart:
53+
54+
``` shell
55+
helm uninstall eg -n envoy-gateway-system
56+
```
57+
58+
## Values
59+
60+
| Key | Type | Default | Description |
61+
|-----|------|---------|-------------|
62+
| certgen | object | `{"job":{"annotations":{},"resources":{},"ttlSecondsAfterFinished":30},"rbac":{"annotations":{},"labels":{}}}` | Certgen is used to generate the certificates required by EnvoyGateway. If you want to construct a custom certificate, you can generate a custom certificate through Cert-Manager before installing EnvoyGateway. Certgen will not overwrite the custom certificate. Please do not manually modify `values.yaml` to disable certgen, it may cause EnvoyGateway OIDC,OAuth2,etc. to not work as expected. |
63+
| config.envoyGateway.gateway.controllerName | string | `"gateway.envoyproxy.io/gatewayclass-controller"` | |
64+
| config.envoyGateway.logging.level.default | string | `"info"` | |
65+
| config.envoyGateway.provider.type | string | `"Kubernetes"` | |
66+
| createNamespace | bool | `false` | |
67+
| deployment.envoyGateway.image.repository | string | `""` | |
68+
| deployment.envoyGateway.image.tag | string | `""` | |
69+
| deployment.envoyGateway.imagePullPolicy | string | `""` | |
70+
| deployment.envoyGateway.imagePullSecrets | list | `[]` | |
71+
| deployment.envoyGateway.resources.limits.cpu | string | `"500m"` | |
72+
| deployment.envoyGateway.resources.limits.memory | string | `"1024Mi"` | |
73+
| deployment.envoyGateway.resources.requests.cpu | string | `"100m"` | |
74+
| deployment.envoyGateway.resources.requests.memory | string | `"256Mi"` | |
75+
| deployment.pod.affinity | object | `{}` | |
76+
| deployment.pod.annotations."prometheus.io/port" | string | `"19001"` | |
77+
| deployment.pod.annotations."prometheus.io/scrape" | string | `"true"` | |
78+
| deployment.pod.labels | object | `{}` | |
79+
| deployment.pod.tolerations | list | `[]` | |
80+
| deployment.pod.topologySpreadConstraints | list | `[]` | |
81+
| deployment.ports[0].name | string | `"grpc"` | |
82+
| deployment.ports[0].port | int | `18000` | |
83+
| deployment.ports[0].targetPort | int | `18000` | |
84+
| deployment.ports[1].name | string | `"ratelimit"` | |
85+
| deployment.ports[1].port | int | `18001` | |
86+
| deployment.ports[1].targetPort | int | `18001` | |
87+
| deployment.ports[2].name | string | `"wasm"` | |
88+
| deployment.ports[2].port | int | `18002` | |
89+
| deployment.ports[2].targetPort | int | `18002` | |
90+
| deployment.ports[3].name | string | `"metrics"` | |
91+
| deployment.ports[3].port | int | `19001` | |
92+
| deployment.ports[3].targetPort | int | `19001` | |
93+
| deployment.replicas | int | `1` | |
94+
| global.images.envoyGateway.image | string | `nil` | |
95+
| global.images.envoyGateway.pullPolicy | string | `nil` | |
96+
| global.images.envoyGateway.pullSecrets | list | `[]` | |
97+
| global.images.ratelimit.image | string | `"docker.io/envoyproxy/ratelimit:master"` | |
98+
| global.images.ratelimit.pullPolicy | string | `"IfNotPresent"` | |
99+
| global.images.ratelimit.pullSecrets | list | `[]` | |
100+
| kubernetesClusterDomain | string | `"cluster.local"` | |
101+
| podDisruptionBudget.minAvailable | int | `0` | |
102+

0 commit comments

Comments
 (0)