Skip to content

Commit

Permalink
Merge branch 'main' into TT-9535/update-components
Browse files Browse the repository at this point in the history
  • Loading branch information
buraksekili authored Aug 1, 2023
2 parents 2301a51 + cee0e0f commit 4ba657d
Show file tree
Hide file tree
Showing 20 changed files with 63 additions and 81 deletions.
2 changes: 1 addition & 1 deletion components/tyk-bootstrap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This chart helps with the bootstrapping of the Tyk Dashboard by creating a job w
The chart provides little benefits by itself and should only be used in conjunction with other charts that also use the dashboard component.

## Prerequisites
* Kuberentes 1.19+
* Kubernetes 1.19+
* Helm 3+

## Installing the Chart
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ spec:
- name: TYK_DASHBOARD_PROTO
value: "{{ include "tyk-bootstrap.dash_proto" . }}"
- name: TYK_DASHBOARD_SVC
{{- if .Values.global.components.dashboard }}
{{- if .Values.bootstrap.dashboard.serviceName }}
value: {{ .Values.bootstrap.dashboard.serviceName | quote }}
{{- else if .Values.global.components.dashboard }}
value: "dashboard-svc-{{.Release.Name}}-tyk-dashboard"
{{- else }}
value: "dashboard-svc-tyk-dashboard"
Expand Down Expand Up @@ -100,11 +102,7 @@ spec:
value: "true"
{{- end }}
- name: TYK_DASHBOARD_DEPLOY
{{- if .Values.global.components.dashboard }}
value: "dashboard-{{.Release.Name}}-tyk-dashboard"
{{- else }}
value: {{ .Values.bootstrap.dashboard.deploymentName }}
{{- end }}
restartPolicy: Never
terminationGracePeriodSeconds: 0
{{- end }}
Expand Down
3 changes: 3 additions & 0 deletions components/tyk-bootstrap/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ bootstrap:
enabled: true
# Name of the deployment that we want to bootstrap
deploymentName: dashboard-tyk-dashboard

# Specify if dashboard has custom service name.
serviceName: ""
portal:
# Trigger to control if we want to bootstrap the dashboard component using tyk-bootstrap
enabled: true
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 @@ -13,7 +13,7 @@ For typical usage, we recommend using following umbrella charts:
[Learn more about Tyk Licensing and Deployment models](https://tyk.io/docs/tyk-on-premises/licensing/)

## Prerequisites
* Kuberentes 1.19+
* Kubernetes 1.19+
* Helm 3+
* [Redis](https://tyk.io/docs/planning-for-production/redis/) should already be installed or accessible by the dashboard
* [Mongo](https://tyk.io/docs/planning-for-production/database-settings/mongodb/) or [PostgreSQL](https://tyk.io/docs/planning-for-production/database-settings/postgresql/) should already be installed or accessible by the dashboard
Expand Down
16 changes: 0 additions & 16 deletions components/tyk-dashboard/templates/secrets-mounts.yaml

This file was deleted.

8 changes: 7 additions & 1 deletion components/tyk-dashboard/values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# nameOverride overrides the Chart name. It is truncated to 63 characters.
nameOverride: ""

# fullnameOverride overrides App name. It is truncated to 63 characters.
fullnameOverride: ""

global:
license:
# The license key needed by Tyk Dashboard to work
Expand Down Expand Up @@ -79,7 +85,7 @@ global:
# Default value: false
# enableCluster: true

# By default the database index is 0. Setting the database index is not
# By default, the database index is 0. Setting the database index is not
# supported with redis cluster. As such, if you have enableCluster: true,
# then this value should be omitted or explicitly set to 0.
storage:
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 @@ -16,7 +16,7 @@ For typical usage, we recommend using following umbrella charts:
[Learn more about different deployment options](https://tyk.io/docs/apim/)

## Prerequisites
* Kuberentes 1.19+
* Kubernetes 1.19+
* Helm 3+
* [Redis](https://tyk.io/docs/planning-for-production/redis/) should already be installed or accessible by the gateway

Expand Down
2 changes: 1 addition & 1 deletion components/tyk-gateway/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ global:
# Redis sentinel master name, only required while enableSentinel is true.
# masterName: ""

# By default the database index is 0. Setting the database index is not
# By default, the database index is 0. Setting the database index is not
# supported with redis cluster. As such, if you have enableCluster: true,
# then this value should be omitted or explicitly set to 0.
storage:
Expand Down
4 changes: 2 additions & 2 deletions components/tyk-pump/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ Add following under the `global` section in `values.yaml`:
```
#### Uptime Pump
Uptime Pump can be configured by setting `pump.uptimePumpBackend` in values.yaml file. It support following values
Uptime Pump can be configured by setting `pump.uptimePumpBackend` in values.yaml file. It supports following values
1. mongo: Used to set mongo pump for uptime analytics. Mongo Pump should be enabled.
2. postgres: Used to set postgres pump for uptime analytics. Postgres Pump should be enabled.
3. empty: Used to disable uptime analytics.
Expand Down Expand Up @@ -172,5 +172,5 @@ Uptime Pump can be configured by setting `pump.uptimePumpBackend` in values.yaml
```

#### Other Pumps
To setup other backends for pump, refer to this [document](https://github.com/TykTechnologies/tyk-pump/blob/master/README.md#pumps--back-ends-supported) and add the required environment variables in `pump.extraEnvs`
To set up other backends for pump, refer to this [document](https://github.com/TykTechnologies/tyk-pump/blob/master/README.md#pumps--back-ends-supported) and add the required environment variables in `pump.extraEnvs`

2 changes: 1 addition & 1 deletion components/tyk-pump/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ global:
# For bitnami/redis typically redis-master
# masterName: ""

# By default the database index is 0. Setting the database index is not
# By default, the database index is 0. Setting the database index is not
# supported with redis cluster. As such, if you have enableCluster: true,
# then this value should be omitted or explicitly set to 0.
storage:
Expand Down
22 changes: 11 additions & 11 deletions tyk-mdcb-data-plane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Also, you can set the version of each component through `image.tag`. You could f

## Prerequisites

* Kuberentes 1.19+
* Kubernetes 1.19+
* Helm 3+
* Redis should already be installed or accessible by the gateway. For Redis installation instruction, please see [https://tyk.io/docs/tyk-oss/ce-helm-chart/#recommended-via-bitnami-chart](https://tyk.io/docs/tyk-oss/ce-helm-chart/#recommended-via-bitnami-chart).

Expand Down Expand Up @@ -116,14 +116,14 @@ To enable Pump, set `global.components.pump` to true, and configure below inside

<!-- BEGIN import from pump doc -->

| Pump | Configuration |
|---------------------------|------------------------------------------------------------------------------------------------------------|
| Prometheus Pump (Default) | Add `prometheus` to `pump.backend`, and add connection details for prometheus under `pump.prometheusPump`. |
| Mongo Pump | Add `mongo` to `pump.backend`, and add connection details for mongo under `.mongo`. |
| SQL Pump | Add `postgres` to `pump.backend`, and add connection details for postgres under `.postgres`. |
| Uptime Pump | Set `pump.uptimePumpBackend` to `'mongo'` or `'postgres'` or `''` |
| Hybrid Pump | Add `hybrid` to `pump.backend`, and setup `.remoteControlPlane` section with the required adresses and tokens |
| Other Pumps | Add the required environment variables in `pump.extraEnvs` |
| Pump | Configuration |
|---------------------------|-----------------------------------------------------------------------------------------------------------------|
| Prometheus Pump (Default) | Add `prometheus` to `pump.backend`, and add connection details for prometheus under `pump.prometheusPump`. |
| Mongo Pump | Add `mongo` to `pump.backend`, and add connection details for mongo under `.mongo`. |
| SQL Pump | Add `postgres` to `pump.backend`, and add connection details for postgres under `.postgres`. |
| Uptime Pump | Set `pump.uptimePumpBackend` to `'mongo'` or `'postgres'` or `''` |
| Hybrid Pump | Add `hybrid` to `pump.backend`, and setup `.remoteControlPlane` section with the required adresses and tokens |
| Other Pumps | Add the required environment variables in `pump.extraEnvs` |

#### Prometheus Pump
Add `prometheus` to `pump.backend`, and add connection details for prometheus under `pump.prometheusPump`.
Expand Down Expand Up @@ -185,7 +185,7 @@ postgres:
```
#### Uptime Pump
Uptime Pump can be configured by setting `pump.uptimePumpBackend` in values.yaml file. It support the following values
Uptime Pump can be configured by setting `pump.uptimePumpBackend` in values.yaml file. It supports the following values
1. mongo: Used to set mongo pump for uptime analytics. Mongo Pump should be enabled.
2. postgres: Used to set postgres pump for uptime analytics. Postgres Pump should be enabled.
3. empty: Used to disable uptime analytics.
Expand Down Expand Up @@ -222,7 +222,7 @@ Uptime Pump can be configured by setting `pump.uptimePumpBackend` in values.yaml
```

#### Other Pumps
To setup other backends for pump, refer to this [document](https://github.com/TykTechnologies/tyk-pump/blob/master/README.md#pumps--back-ends-supported) and add the required environment variables in `pump.extraEnvs`
To set up other backends for pump, refer to this [document](https://github.com/TykTechnologies/tyk-pump/blob/master/README.md#pumps--back-ends-supported) and add the required environment variables in `pump.extraEnvs`

<!-- END import from pump doc -->

11 changes: 0 additions & 11 deletions tyk-mdcb-data-plane/templates/configmap.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions tyk-mdcb-data-plane/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,4 @@ metadata:
release: {{ .Release.Name }}
type: Opaque
stringData:
rpcConnString: "{{ .Values.global.remoteControlPlane.connectionString }}"
orgId: "{{ .Values.global.remoteControlPlane.orgId }}"
userApiKey: "{{ .Values.global.remoteControlPlane.userApiKey }}"
APISecret: "{{ .Values.global.secrets.APISecret}}"
groupID: "{{ .Values.global.remoteControlPlane.groupID}}"
11 changes: 9 additions & 2 deletions tyk-mdcb-data-plane/values.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
# Default values for tyk-mdcb-data-plane.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

# nameOverride overrides the Chart name. It is truncated to 63 characters.
nameOverride: ""

# fullnameOverride overrides App name. It is truncated to 63 characters.
fullnameOverride: ""

global:
components:
# Determines whether or not the pump component should be installed.
# Determines whether the pump component should be installed.
pump: true

servicePorts:
Expand Down Expand Up @@ -89,7 +96,7 @@ global:
# For bitnami/redis typically redis-master
# masterName: ""

# By default the database index is 0. Setting the database index is not
# By default, the database index is 0. Setting the database index is not
# supported with redis cluster. As such, if you have enableCluster: true,
# then this value should be omitted or explicitly set to 0.
storage:
Expand Down
6 changes: 3 additions & 3 deletions tyk-oss/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Also, you can set the version of each component through `image.tag`. You could f

## Prerequisites

* Kuberentes 1.19+
* Kubernetes 1.19+
* Helm 3+
* Redis should already be installed or accessible by the gateway. For Redis installation instruction, please see [https://tyk.io/docs/tyk-oss/ce-helm-chart/#recommended-via-bitnami-chart](https://tyk.io/docs/tyk-oss/ce-helm-chart/#recommended-via-bitnami-chart).

Expand Down Expand Up @@ -171,13 +171,13 @@ Add following under the `global` section in `values.yaml`:
```
#### Uptime Pump
Uptime Pump can be configured by setting `pump.uptimePumpBackend` in values.yaml file. It support the following values
Uptime Pump can be configured by setting `pump.uptimePumpBackend` in values.yaml file. It supports the following values
1. mongo: Used to set mongo pump for uptime analytics. Mongo Pump should be enabled.
2. postgres: Used to set postgres pump for uptime analytics. Postgres Pump should be enabled.
3. empty: Used to disable uptime analytics.

#### Other Pumps
To setup other backends for pump, refer to this [document](https://github.com/TykTechnologies/tyk-pump/blob/master/README.md#pumps--back-ends-supported) and add the required environment variables in `pump.extraEnvs`
To set up other backends for pump, refer to this [document](https://github.com/TykTechnologies/tyk-pump/blob/master/README.md#pumps--back-ends-supported) and add the required environment variables in `pump.extraEnvs`

<!-- END import from pump doc -->

8 changes: 7 additions & 1 deletion tyk-oss/values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# nameOverride overrides the Chart name. It is truncated to 63 characters.
nameOverride: ""

# fullnameOverride overrides App name. It is truncated to 63 characters.
fullnameOverride: ""

global:
components:
# Determines whether the pump component should be installed.
Expand Down Expand Up @@ -70,7 +76,7 @@ global:
# For bitnami/redis typically redis-master
# masterName: ""

# By default the database index is 0. Setting the database index is not
# By default, the database index is 0. Setting the database index is not
# supported with redis cluster. As such, if you have enableCluster: true,
# then this value should be omitted or explicitly set to 0.
storage:
Expand Down
6 changes: 3 additions & 3 deletions tyk-single-dc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Also, you can set the version of each component through `image.tag`. You could f

## Prerequisites

* Kuberentes 1.19+
* Kubernetes 1.19+
* Helm 3+
* Redis should already be installed or accessible by the gateway. For Redis installation instruction, please see https://tyk.io/docs/tyk-oss/ce-helm-chart/#recommended-via-bitnami-chart.

Expand Down Expand Up @@ -204,13 +204,13 @@ postgres:
```
#### Uptime Pump
Uptime Pump can be configured by setting `pump.uptimePumpBackend` in values.yaml file. It support following values
Uptime Pump can be configured by setting `pump.uptimePumpBackend` in values.yaml file. It supports following values
1. mongo: Used to set mongo pump for uptime analytics. Mongo Pump should be enabled.
2. postgres: Used to set postgres pump for uptime analytics. Postgres Pump should be enabled.
3. empty: Used to disable uptime analytics.

#### Other Pumps
To setup other backends for pump, refer to this [document](https://github.com/TykTechnologies/tyk-pump/blob/master/README.md#pumps--back-ends-supported) and add the required environment variables in `pump.extraEnvs`
To set up other backends for pump, refer to this [document](https://github.com/TykTechnologies/tyk-pump/blob/master/README.md#pumps--back-ends-supported) and add the required environment variables in `pump.extraEnvs`

<!-- END import from pump doc -->

Expand Down
12 changes: 0 additions & 12 deletions tyk-single-dc/templates/configmap.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions tyk-single-dc/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,4 @@ metadata:
release: {{ .Release.Name }}
type: Opaque
stringData:
orgID: "{{ .Values.global.remoteControlPlane.orgId }}"
apiKey: "{{ .Values.global.remoteControlPlane.userApiKey }}"
APISecret: "{{ .Values.global.secrets.APISecret}}"
groupID: "{{ .Values.global.remoteControlPlane.groupID}}"
12 changes: 10 additions & 2 deletions tyk-single-dc/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ global:
license:
dashboard: ""
components:
# Determines whether or not the pump component should be installed.
# Determines whether the pump component should be installed.
pump: true

dashboard: true
Expand Down Expand Up @@ -87,7 +87,7 @@ global:
# Default value: false
# enableCluster: true

# By default the database index is 0. Setting the database index is not
# By default, the database index is 0. Setting the database index is not
# supported with redis cluster. As such, if you have enableCluster: true,
# then this value should be omitted or explicitly set to 0.
storage:
Expand Down Expand Up @@ -435,6 +435,8 @@ tyk-bootstrap:
dashboard:
enabled: true
deploymentName: dashboard-tyk-single-dc-tyk-dashboard
# Specify if dashboard has custom service name.
serviceName: ""
portal:
enabled: true
gateway:
Expand Down Expand Up @@ -477,6 +479,12 @@ tyk-bootstrap:
preDeletePodAnnotations: {}

tyk-dashboard:
# nameOverride overrides the Chart name. It is truncated to 63 characters.
nameOverride: ""

# fullnameOverride overrides App name. It is truncated to 63 characters.
fullnameOverride: ""

dashboard:
enableOwnership: true
defaultPageSize: 10
Expand Down

0 comments on commit 4ba657d

Please sign in to comment.