Skip to content

Commit

Permalink
Rename all other references too
Browse files Browse the repository at this point in the history
  • Loading branch information
komalsukhani committed Oct 27, 2023
1 parent 98c807a commit 56fa503
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 49 deletions.
86 changes: 42 additions & 44 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ on:
env:
TIMEOUT: 15m
TYK_OSS_NS: tyk-oss
TYK_MDCB_DATAPLANE_NS: tyk-mdcb-dataplane
TYK_SINGLE_DC_NS: tyk-single-dc
TYK_DATAPLANE_NS: tyk-dataplane
TYK_STACK_NS: tyk-stack

jobs:
lint-test:
Expand All @@ -36,8 +36,6 @@ jobs:

integration-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -82,68 +80,68 @@ jobs:
helm uninstall redis -n ${{ env.TYK_OSS_NS }} --timeout ${{ env.TIMEOUT }}
kubectl delete namespace ${{ env.TYK_OSS_NS }}
# Tyk Single Data Center tests
- name: Deploy Tyk Single Data Center and dependencies
# Tyk Stack tests
- name: Deploy Tyk Stack and dependencies
run: |
kubectl create namespace ${{ env.TYK_SINGLE_DC_NS }}
kubectl create namespace ${{ env.TYK_STACK_NS }}
# Do not change the name
# Install redis
helm install redis simple-redis --wait --repo 'https://helm.tyk.io/public/helm/charts/' -n ${{ env.TYK_SINGLE_DC_NS }} --timeout ${{ env.TIMEOUT }}
helm install redis simple-redis --wait --repo 'https://helm.tyk.io/public/helm/charts/' -n ${{ env.TYK_STACK_NS }} --timeout ${{ env.TIMEOUT }}
# Install mongo
helm install mongo simple-mongodb --wait --repo 'https://helm.tyk.io/public/helm/charts/' -n ${{ env.TYK_SINGLE_DC_NS }} --timeout ${{ env.TIMEOUT }}
helm install mongo simple-mongodb --wait --repo 'https://helm.tyk.io/public/helm/charts/' -n ${{ env.TYK_STACK_NS }} --timeout ${{ env.TIMEOUT }}
helm dependency update ./tyk-single-dc
helm dependency update ./tyk-stack
helm install --namespace tyk-single-dc tyk-single-dc ./tyk-single-dc \
--set "global.mongo.mongoURL=mongodb://mongo.tyk-single-dc.svc.cluster.local:27017/tyk_analytics" \
--set "global.redis.addrs[0]=redis.tyk-single-dc.svc.cluster.local:6379" \
helm install --namespace ${{ env.TYK_STACK_NS }} tyk-stack ./tyk-stack \
--set "global.mongo.mongoURL=mongodb://mongo.tyk-stack.svc.cluster.local:27017/tyk_analytics" \
--set "global.redis.addrs[0]=redis.tyk-stack.svc.cluster.local:6379" \
--set "global.license.dashboard=${{ secrets.DASH_LICENSE }}" \
--set "global.storageType=mongo" \
--timeout=${{ env.TIMEOUT }}
- name: Run integration tests for Tyk Single DC
run: helm test -n ${{ env.TYK_SINGLE_DC_NS }} tyk-single-dc
- name: Run integration tests for Tyk Stack
run: helm test -n ${{ env.TYK_STACK_NS }} tyk-stack

- if: failure()
name: Check logs in case of failure
run: kubectl logs -n ${{ env.TYK_SINGLE_DC_NS }} tyk-single-dc-test-tyk-single-dc
run: kubectl logs -n ${{ env.TYK_STACK_NS }} tyk-stack-test-tyk-stack

- name: Uninstall Tyk Single DC Dependencies
- name: Uninstall Tyk Stack Dependencies
run: |
helm uninstall redis -n ${{ env.TYK_SINGLE_DC_NS }} --timeout ${{ env.TIMEOUT }}
helm uninstall mongo -n ${{ env.TYK_SINGLE_DC_NS }} --timeout ${{ env.TIMEOUT }}
helm uninstall tyk-single-dc -n ${{ env.TYK_SINGLE_DC_NS }} --timeout ${{ env.TIMEOUT }}
kubectl delete namespace ${{ env.TYK_SINGLE_DC_NS }}
helm uninstall redis -n ${{ env.TYK_STACK_NS }} --timeout ${{ env.TIMEOUT }}
helm uninstall mongo -n ${{ env.TYK_STACK_NS }} --timeout ${{ env.TIMEOUT }}
helm uninstall tyk-stack -n ${{ env.TYK_STACK_NS }} --timeout ${{ env.TIMEOUT }}
kubectl delete namespace ${{ env.TYK_STACK_NS }}
# Tyk MDCB Data Plane tests
- name: Deploy Tyk MDCB Data Plane and Dependencies
# Tyk Data Plane tests
- name: Deploy Tyk Data Plane and Dependencies
run: |
kubectl create namespace ${{ env.TYK_MDCB_DATAPLANE_NS }}
kubectl create namespace ${{ env. TYK_DATAPLANE_NS }}
# Do not change the name
helm install redis simple-redis --wait --repo 'https://helm.tyk.io/public/helm/charts/' -n ${{ env.TYK_MDCB_DATAPLANE_NS }} --timeout ${{ env.TIMEOUT }}
helm install redis simple-redis --wait --repo 'https://helm.tyk.io/public/helm/charts/' -n ${{ env. TYK_DATAPLANE_NS }} --timeout ${{ env.TIMEOUT }}
helm dependency update ./tyk-mdcb-data-plane
helm dependency update ./tyk-data-plane
helm install --namespace ${{ env.TYK_MDCB_DATAPLANE_NS }} tyk-mdcb-data-plane ./tyk-mdcb-data-plane --wait \
helm install --namespace ${{ env. TYK_DATAPLANE_NS }} tyk-data-plane ./tyk-data-plane --wait \
--set global.remoteControlPlane.orgId=${{ secrets.HYBRID_RPC_KEY }} \
--set global.remoteControlPlane.userApiKey=${{ secrets.HYBRID_API_KEY }} \
--set global.remoteControlPlane.connectionString=${{ secrets.HYBRID_MDCB_HOST }}
- name: Run integration tests for Tyk MDCB Data Plane
run: helm test -n ${{ env.TYK_MDCB_DATAPLANE_NS }} tyk-mdcb-data-plane
- name: Run integration tests for Tyk Data Plane
run: helm test -n ${{ env. TYK_DATAPLANE_NS }} tyk-data-plane

- if: failure()
name: Check logs in case of failure
run: kubectl logs -n ${{ env.TYK_MDCB_DATAPLANE_NS }} tyk-mdcb-data-plane-test-tyk-data-plane
run: kubectl logs -n ${{ env. TYK_DATAPLANE_NS }} tyk-data-plane-test-tyk-data-plane

- name: Uninstall Tyk MDCB Data Plane Dependencies
- name: Uninstall Tyk Data Plane Dependencies
run: |
helm uninstall tyk-mdcb-data-plane -n ${{ env.TYK_MDCB_DATAPLANE_NS }}
helm uninstall redis -n ${{ env.TYK_MDCB_DATAPLANE_NS }} --timeout ${{ env.TIMEOUT }}
kubectl delete namespace ${{ env.TYK_MDCB_DATAPLANE_NS }}
helm uninstall tyk-data-plane -n ${{ env. TYK_DATAPLANE_NS }}
helm uninstall redis -n ${{ env. TYK_DATAPLANE_NS }} --timeout ${{ env.TIMEOUT }}
kubectl delete namespace ${{ env. TYK_DATAPLANE_NS }}
smoke-tests:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -184,25 +182,25 @@ jobs:
helm uninstall tyk-oss -n tyk-oss --timeout ${{ env.TIMEOUT }}
kubectl delete namespace tyk-oss
- name: Deploy Tyk MDCB Data Plane
- name: Deploy Tyk Data Plane
run: |
kubectl create namespace ${{ env.TYK_MDCB_DATAPLANE_NS }}
kubectl create namespace ${{ env. TYK_DATAPLANE_NS }}
# Do not change the name
helm install redis simple-redis --wait --repo 'https://helm.tyk.io/public/helm/charts/' -n ${{ env.TYK_MDCB_DATAPLANE_NS }} --timeout ${{ env.TIMEOUT }}
helm install redis simple-redis --wait --repo 'https://helm.tyk.io/public/helm/charts/' -n ${{ env. TYK_DATAPLANE_NS }} --timeout ${{ env.TIMEOUT }}
helm dependency update ./tyk-mdcb-data-plane
helm dependency update ./tyk-data-plane
helm install --namespace ${{ env.TYK_MDCB_DATAPLANE_NS }} tyk-mdcb-data-plane ./tyk-mdcb-data-plane --wait \
helm install --namespace ${{ env. TYK_DATAPLANE_NS }} tyk-data-plane ./tyk-data-plane --wait \
--set global.remoteControlPlane.orgId=${{ secrets.HYBRID_RPC_KEY }} \
--set global.remoteControlPlane.userApiKey=${{ secrets.HYBRID_API_KEY }} \
--set global.remoteControlPlane.connectionString=${{ secrets.HYBRID_MDCB_HOST }}
- name: Upgrade Tyk MDCB Data Plane
- name: Upgrade Tyk Data Plane
run: |
helm upgrade -n ${{ env.TYK_MDCB_DATAPLANE_NS }} tyk-mdcb-data-plane ./tyk-mdcb-data-plane --set tyk-gateway.gateway.kind=DaemonSet
helm upgrade -n ${{ env. TYK_DATAPLANE_NS }} tyk-data-plane ./tyk-data-plane --set tyk-gateway.gateway.kind=DaemonSet
- name: Uninstall Tyk MDCB Data Plane
- name: Uninstall Tyk Data Plane
run: |
helm uninstall tyk-mdcb-data-plane -n ${{ env.TYK_MDCB_DATAPLANE_NS }} --timeout ${{ env.TIMEOUT }}
kubectl delete namespace ${{ env.TYK_MDCB_DATAPLANE_NS }}
helm uninstall tyk-data-plane -n ${{ env. TYK_DATAPLANE_NS }} --timeout ${{ env.TIMEOUT }}
kubectl delete namespace ${{ env. TYK_DATAPLANE_NS }}
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@ tyk-mdcb-data-plane/Chart.lock
tyk-single-dc/charts/*
tyk-single-dc/Chart.lock

tyk-stack/charts/*
tyk-stack/Chart.lock

tyk-data-plane/charts/*
tyk-data-plane/Chart.lock

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ Helm umbrella chart (chart of charts) is an easy and really flexible way of inst
| Umbrella Charts | Description | Status |
|-----------------|-------------|--------|
| [tyk-oss](./tyk-oss) | Tyk Open Source | Stable |
| [tyk-single-dc](./tyk-single-dc) | Tyk Self Managed (Single DC) | Beta |
| [tyk-stack](./tyk-stack) | Tyk Self Managed (Single DC) | Beta |
| tyk-mdcb-control-plane | Tyk Self Managed (MDCB) Control Plane | Coming Soon |
| [tyk-mdcb-data-plane](./tyk-mdcb-data-plane) | Tyk Self Managed (MDCB) Data Plane <br> Tyk Hybrid Data Plane | Stable |
| [tyk-data-plane](./tyk-data-plane) | Tyk Self Managed (MDCB) Data Plane <br> Tyk Hybrid Data Plane | Stable |

## Component Charts
* [tyk-gateway](./components/tyk-gateway)
Expand Down
2 changes: 1 addition & 1 deletion components/tyk-dashboard/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The Dashboard also provides the [API Developer Portal](https://tyk.io/docs/tyk-d
This chart defines a standalone Tyk Dashboard component on a [Kubernetes](https://kubernetes.io/) cluster using the [Helm](https://helm.sh/) package manager.

For typical usage, we recommend using following umbrella charts:
* For single data centre deployment, please use [tyk-single-dc](https://github.com/TykTechnologies/tyk-charts/tree/main/tyk-single-dc)
* For single data centre deployment, please use [tyk-stack](https://github.com/TykTechnologies/tyk-charts/tree/main/tyk-stack)
* For multi data centre deployment, please use tyk-mdcb-control-plane (Coming soon!)

[Learn more about Tyk Licensing and Deployment models](https://tyk.io/docs/tyk-on-premises/licensing/)
Expand Down
2 changes: 1 addition & 1 deletion components/tyk-gateway/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This chart defines a standalone open source Tyk Gateway component on a [Kubernet

For typical usage, we recommend using following umbrella charts:
* For Tyk Open Source, please use [tyk-oss](https://github.com/TykTechnologies/tyk-charts/tree/main/tyk-oss)
* For Tyk Hybrid Gateway with Tyk Cloud or MDCB Remote Gateway, please use [tyk-mdcb-data-plane](https://github.com/TykTechnologies/tyk-charts/tree/main/tyk-mdcb-data-plane)
* For Tyk Hybrid Gateway with Tyk Cloud or MDCB Remote Gateway, please use [tyk-tyk-data-plane](https://github.com/TykTechnologies/tyk-charts/tree/main/tyk-tyk-data-plane)
* Coming soon: For Tyk Self-Managed, please use [tyk-self-managed](https://github.com/TykTechnologies/tyk-charts/tree/main/)

[Learn more about different deployment options](https://tyk.io/docs/apim/)
Expand Down
2 changes: 1 addition & 1 deletion components/tyk-pump/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This chart deploys the open source Tyk pump on a [Kubernetes](https://kubernetes

For typical usage, we recommend using following umbrella charts:
* For Tyk Open Source, please use [tyk-oss](https://github.com/TykTechnologies/tyk-charts/tree/main/tyk-oss)
* For Tyk Hybrid Gateway with Tyk Cloud or MDCB Remote Gateway, please use [tyk-mdcb-data-plane](https://github.com/TykTechnologies/tyk-charts/tree/main/tyk-mdcb-data-plane)
* For Tyk Hybrid Gateway with Tyk Cloud or MDCB Remote Gateway, please use [tyk-tyk-data-plane](https://github.com/TykTechnologies/tyk-charts/tree/main/tyk-tyk-data-plane)
* Coming soon: For Tyk Self-Managed, please use [tyk-self-managed](https://github.com/TykTechnologies/tyk-charts/tree/main/)

[Learn more about different deployment options](https://tyk.io/docs/apim/)
Expand Down

0 comments on commit 56fa503

Please sign in to comment.