Skip to content

Commit

Permalink
Test service-gateway
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Oct 31, 2024
1 parent c46cfab commit b9ae25f
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 35 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
sudo mv yqq /usr/local/bin/yqq
pipx install yq
# install kubectl
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.21.1/bin/linux/amd64/kubectl
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.31.0/bin/linux/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
Expand Down Expand Up @@ -82,3 +82,12 @@ jobs:
run: |
export KUBECONFIG="${HOME}/.kube/config"
./hack/scripts/ct.sh
- name: Test Service Gateway
run: |
export KUBECONFIG="${HOME}/.kube/config"
kubectl delete crds --all
kubectl apply --validate=false -f https://github.com/cert-manager/cert-manager/releases/latest/download/cert-manager.yaml
sleep 10
kubectl wait --for=Create --for=condition=Ready pods -n cert-manager --all --timeout=5m
./hack/scripts/test-service-gateway.sh
65 changes: 33 additions & 32 deletions charts/service-gateway/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,43 +45,44 @@ The command removes all the Kubernetes components associated with the chart and

The following table lists the configurable parameters of the `service-gateway` chart and their default values.

| Parameter | Description | Default |
|----------------------------|-----------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| nameOverride | Overrides name template | <code>""</code> |
| fullnameOverride | Overrides fullname template | <code>""</code> |
| clusterMetadata.uid | | <code>TBD</code> |
| clusterMetadata.name | | <code>TBD</code> |
| infra.host | | <code>chart-example.local</code> |
| infra.hostType | | <code>domain</code> |
| infra.tls.issuer | | <code>"ca" # ca,letsencrypt,letsencrypt-staging,external</code> |
| infra.tls.ca.cert | | <code>""</code> |
| infra.tls.ca.key | | <code>""</code> |
| infra.tls.acme.email | | <code>[email protected]</code> |
| infra.tls.acme.solver | | <code>Gateway</code> |
| infra.tls.certificate.cert | | <code>""</code> |
| infra.tls.certificate.key | | <code>""</code> |
| infra.tls.jks.keystore | | <code></code> |
| infra.tls.jks.truststore | | <code></code> |
| infra.tls.jks.password | | <code>""</code> |
| infra.dns.provider | | <code>"external" # external,cloudflare,route53,cloudDNS</code> |
| infra.dns.auth | | <code>{}</code> |
| gateway.enabled | | <code>true</code> |
| gateway-dns.enabled | | <code>false</code> |
| cluster.tls.issuer | | <code>"ca" # ca,vault</code> |
| cluster.tls.ca.cert | | <code>""</code> |
| cluster.tls.ca.key | | <code>""</code> |
| envoy.image | | <code>ghcr.io/voyagermesh/envoy</code> |
| envoy.tag | | <code>"v1.29.9-ac"</code> |
| envoy.securityContext | | <code>{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"privileged":false,"runAsNonRoot":true,"runAsUser":65534,"seccompProfile":{"type":"RuntimeDefault"}}</code> |
| echoserver.image | | <code>ghcr.io/voyagermesh/echoserver</code> |
| echoserver.tag | | <code>"v20221109"</code> |
| echoserver.securityContext | | <code>{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"privileged":false,"readOnlyRootFilesystem":true,"runAsNonRoot":true,"runAsUser":65534,"seccompProfile":{"type":"RuntimeDefault"}}</code> |
| Parameter | Description | Default |
|-----------------------------------|-----------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| nameOverride | Overrides name template | <code>""</code> |
| fullnameOverride | Overrides fullname template | <code>""</code> |
| clusterMetadata.uid | | <code>tbd</code> |
| clusterMetadata.name | | <code>tbd</code> |
| infra.host | | <code>chart-example.local</code> |
| infra.hostType | | <code>domain</code> |
| infra.tls.issuer | | <code>"ca" # ca,letsencrypt,letsencrypt-staging,external</code> |
| infra.tls.ca.cert | | <code>""</code> |
| infra.tls.ca.key | | <code>""</code> |
| infra.tls.acme.email | | <code>[email protected]</code> |
| infra.tls.acme.solver | | <code>Gateway</code> |
| infra.tls.certificate.cert | | <code>""</code> |
| infra.tls.certificate.key | | <code>""</code> |
| infra.tls.jks.keystore | | <code></code> |
| infra.tls.jks.truststore | | <code></code> |
| infra.tls.jks.password | | <code>""</code> |
| infra.dns.provider | | <code>"external" # external,cloudflare,route53,cloudDNS</code> |
| infra.dns.auth | | <code>{}</code> |
| gateway.enabled | | <code>true</code> |
| gateway.gateway-converter.enabled | | <code>false</code> |
| gateway-dns.enabled | | <code>false</code> |
| cluster.tls.issuer | | <code>"ca" # ca,vault</code> |
| cluster.tls.ca.cert | | <code>""</code> |
| cluster.tls.ca.key | | <code>""</code> |
| envoy.image | | <code>ghcr.io/voyagermesh/envoy</code> |
| envoy.tag | | <code>"v1.29.9-ac"</code> |
| envoy.securityContext | | <code>{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"privileged":false,"runAsNonRoot":true,"runAsUser":65534,"seccompProfile":{"type":"RuntimeDefault"}}</code> |
| echoserver.image | | <code>ghcr.io/voyagermesh/echoserver</code> |
| echoserver.tag | | <code>"v20221109"</code> |
| echoserver.securityContext | | <code>{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"privileged":false,"readOnlyRootFilesystem":true,"runAsNonRoot":true,"runAsUser":65534,"seccompProfile":{"type":"RuntimeDefault"}}</code> |


Specify each parameter using the `--set key=value[,key=value]` argument to `helm upgrade -i`. For example:

```bash
$ helm upgrade -i service-gateway appscode/service-gateway -n ace --create-namespace --version=v2024.10.24 --set clusterMetadata.uid=TBD
$ helm upgrade -i service-gateway appscode/service-gateway -n ace --create-namespace --version=v2024.10.24 --set clusterMetadata.uid=tbd
```

Alternatively, a YAML file that specifies the values for the parameters can be provided while
Expand Down
6 changes: 4 additions & 2 deletions charts/service-gateway/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ nameOverride: ""
fullnameOverride: ""

clusterMetadata:
uid: TBD
name: TBD
uid: tbd
name: tbd

infra:
host: chart-example.local
Expand Down Expand Up @@ -52,6 +52,8 @@ infra:

gateway:
enabled: true
gateway-converter:
enabled: false
# config:
# envoyGateway:
# gateway:
Expand Down
Loading

0 comments on commit b9ae25f

Please sign in to comment.