Skip to content

Commit 8c13159

Browse files
Merge pull request #57 from DataKitchen/release/5.0.1
Release/5.0.1
2 parents 8207448 + fe150aa commit 8c13159

384 files changed

Lines changed: 38443 additions & 4151 deletions

File tree

Some content is hidden

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

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# DataOps Data Quality TestGen
2-
![apache 2.0 license Badge](https://img.shields.io/badge/License%20-%20Apache%202.0%20-%20blue) ![PRs Badge](https://img.shields.io/badge/PRs%20-%20Welcome%20-%20green) [![Latest Version](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fhub.docker.com%2Fv2%2Frepositories%2Fdatakitchen%2Fdataops-testgen%2Ftags%2F&query=results%5B0%5D.name&label=latest%20version&color=06A04A)](https://hub.docker.com/r/datakitchen/dataops-testgen) [![Docker Pulls](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fhub.docker.com%2Fv2%2Frepositories%2Fdatakitchen%2Fdataops-testgen%2F&query=pull_count&style=flat&label=docker%20pulls&color=06A04A)](https://hub.docker.com/r/datakitchen/dataops-testgen) [![Documentation](https://img.shields.io/badge/docs-On%20datakitchen.io-06A04A?style=flat)](https://docs.datakitchen.io/articles/#!dataops-testgen-help/dataops-testgen-help) [![Static Badge](https://img.shields.io/badge/Slack-Join%20Discussion-blue?style=flat&logo=slack)](https://data-observability-slack.datakitchen.io/join)
2+
![apache 2.0 license Badge](https://img.shields.io/badge/License%20-%20Apache%202.0%20-%20blue) ![PRs Badge](https://img.shields.io/badge/PRs%20-%20Welcome%20-%20green) [![Latest Version](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fhub.docker.com%2Fv2%2Frepositories%2Fdatakitchen%2Fdataops-testgen%2Ftags%2F&query=results%5B0%5D.name&label=latest%20version&color=06A04A)](https://hub.docker.com/r/datakitchen/dataops-testgen) [![Docker Pulls](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fhub.docker.com%2Fv2%2Frepositories%2Fdatakitchen%2Fdataops-testgen%2F&query=pull_count&style=flat&label=docker%20pulls&color=06A04A)](https://hub.docker.com/r/datakitchen/dataops-testgen) [![Documentation](https://img.shields.io/badge/docs-On%20datakitchen.io-06A04A?style=flat)](https://docs.datakitchen.io/articles/dataops-testgen-help/dataops-testgen-help) [![Static Badge](https://img.shields.io/badge/Slack-Join%20Discussion-blue?style=flat&logo=slack)](https://data-observability-slack.datakitchen.io/join)
33

44
*<p style="text-align: center;">DataOps Data Quality TestGen, or "TestGen" for short, can help you find data issues so you can alert your users and notify your suppliers. It does this by delivering simple, fast data quality test generation and execution by data profiling, new dataset screening and hygiene review, algorithmic generation of data quality validation tests, ongoing production testing of new data refreshes, and continuous anomaly monitoring of datasets. TestGen is part of DataKitchen's Open Source Data Observability.</p>*
55

@@ -110,7 +110,7 @@ Within the virtual environment, install the TestGen package with pip.
110110
pip install dataops-testgen
111111
```
112112

113-
Verify that the [_testgen_ command line](https://docs.datakitchen.io/articles/#!dataops-testgen-help/testgen-commands-and-details) works.
113+
Verify that the [_testgen_ command line](https://docs.datakitchen.io/articles/dataops-testgen-help/testgen-commands-and-details) works.
114114
```shell
115115
testgen --help
116116
```
@@ -187,7 +187,7 @@ python3 dk-installer.py tg delete-demo
187187

188188
### Upgrade to latest version
189189

190-
New releases of TestGen are announced on the `#releases` channel on [Data Observability Slack](https://data-observability-slack.datakitchen.io/join), and release notes can be found on the [DataKitchen documentation portal](https://docs.datakitchen.io/articles/#!dataops-testgen-help/testgen-release-notes/a/h1_1691719522). Use the following command to upgrade to the latest released version.
190+
New releases of TestGen are announced on the `#releases` channel on [Data Observability Slack](https://data-observability-slack.datakitchen.io/join), and release notes can be found on the [DataKitchen documentation portal](https://docs.datakitchen.io/articles/dataops-testgen-help/testgen-release-notes/a/h1_1691719522). Use the following command to upgrade to the latest released version.
191191

192192
```shell
193193
python3 dk-installer.py tg upgrade
@@ -203,7 +203,7 @@ python3 dk-installer.py tg delete
203203

204204
### Access the _testgen_ CLI
205205

206-
The [_testgen_ command line](https://docs.datakitchen.io/articles/#!dataops-testgen-help/testgen-commands-and-details) can be accessed within the running container.
206+
The [_testgen_ command line](https://docs.datakitchen.io/articles/dataops-testgen-help/testgen-commands-and-details) can be accessed within the running container.
207207

208208
```shell
209209
docker compose exec engine bash
@@ -232,7 +232,7 @@ We recommend you start by going through the [Data Observability Overview Demo](h
232232
For support requests, [join the Data Observability Slack](https://data-observability-slack.datakitchen.io/join) 👋 and post on the `#support` channel.
233233

234234
### Connect to your database
235-
Follow [these instructions](https://docs.datakitchen.io/articles/#!dataops-testgen-help/connect-your-database) to improve the quality of data in your database.
235+
Follow [these instructions](https://docs.datakitchen.io/articles/dataops-testgen-help/connect-your-database) to improve the quality of data in your database.
236236

237237
### Community
238238
Talk and learn with other data practitioners who are building with DataKitchen. Share knowledge, get help, and contribute to our open-source project.

deploy/charts/README.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,14 @@ set can be easily used on the first install and future upgrades.
4040

4141
The following configuration is recommended for experimental installations, but
4242
you're free to adjust it for your needs. The next installation steps assumes
43-
that a file named tg-values.yaml exists with this configuration.
43+
that a file named `tg-values.yaml` exists with this configuration.
4444

4545
```yaml
46+
image:
47+
48+
# DataOps TestGen version to be installed / upgraded
49+
tag: v4
50+
4651
testgen:
4752

4853
# Password that will be assigned to the 'admin' user during the database preparation
@@ -54,10 +59,18 @@ testgen:
5459
# Whether to run the SSL certificate verifications when connecting to DataOps Observability
5560
observabilityVerifySsl: false
5661

57-
image:
62+
# (Optional) E-mail and SMTP configurations for enabling the email notifications
63+
emailNotifications:
5864

59-
# DataOps TestGen version to be installed / upgraded
60-
tag: v4.0
65+
# The email address that notifications will be sent from
66+
fromAddress:
67+
68+
# SMTP configuration for sending emails
69+
smtp:
70+
endpoint:
71+
port:
72+
username:
73+
password:
6174
```
6275
6376
# Installing

deploy/charts/testgen-app/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 1.0.1
18+
version: 1.1.0
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

deploy/charts/testgen-app/templates/_environment.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,18 @@
3131
value: {{ .Values.testgen.trustTargetDatabaseCertificate | ternary "yes" "no" | quote }}
3232
- name: TG_EXPORT_TO_OBSERVABILITY_VERIFY_SSL
3333
value: {{ .Values.testgen.observabilityVerifySsl | ternary "yes" "no" | quote }}
34+
{{- with .Values.testgen.emailNotifications }}
35+
- name: TG_SMTP_ENDPOINT
36+
value: {{ .smtp.endpoint | quote }}
37+
- name: TG_SMTP_PORT
38+
value: {{ .smtp.port | quote }}
39+
- name: TG_SMTP_USERNAME
40+
value: {{ .smtp.username | quote }}
41+
- name: TG_SMTP_PASSWORD
42+
value: {{ .smtp.password | quote }}
43+
- name: TG_EMAIL_FROM_ADDRESS
44+
value: {{ .fromAddress | quote }}
45+
{{- end -}}
3446
{{- end -}}
3547

3648
{{- define "testgen.hookEnvironment" -}}

deploy/charts/testgen-app/values.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Default values for testgen.
22

33
testgen:
4-
databaseHost: "postgresql"
4+
databaseHost: "postgres"
55
databaseName: "datakitchen"
66
databaseSchema: "tgapp"
77
databaseUser: "postgres"
88
databasePasswordSecret:
9-
name: "postgresql"
9+
name: "services-secret"
1010
key: "postgres-password"
1111
authSecrets:
1212
create: true
@@ -15,6 +15,13 @@ testgen:
1515
uiPassword:
1616
trustTargetDatabaseCertificate: false
1717
observabilityVerifySsl: true
18+
emailNotifications:
19+
fromAddress:
20+
smtp:
21+
endpoint:
22+
port:
23+
username:
24+
password:
1825
labels:
1926

2027
cliHooks:

deploy/charts/testgen-services/Chart.lock

Lines changed: 0 additions & 6 deletions
This file was deleted.

deploy/charts/testgen-services/Chart.yaml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,13 @@ description: A Helm chart for Kubernetes
1212
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
1313
type: application
1414

15-
dependencies:
16-
- name: postgresql
17-
version: 16.3.0
18-
repository: https://charts.bitnami.com/bitnami
19-
2015
# This is the chart version. This version number should be incremented each time you make changes
2116
# to the chart and its templates, including the app version.
2217
# Versions are expected to follow Semantic Versioning (https://semver.org/)
23-
version: 0.1.1
18+
version: 1.0.0
2419

2520
# This is the version number of the application being deployed. This version number should be
2621
# incremented each time you make changes to the application. Versions are not expected to
2722
# follow Semantic Versioning. They should reflect the version the application is using.
2823
# It is recommended to use it with quotes.
29-
appVersion: "1.16.0"
24+
appVersion: "4"
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{{/*
2+
Expand the name of the chart.
3+
*/}}
4+
{{- define "testgen-services.name" -}}
5+
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
6+
{{- end }}
7+
8+
{{/*
9+
Create a default fully qualified app name.
10+
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
11+
If release name contains chart name it will be used as a full name.
12+
*/}}
13+
{{- define "testgen-services.fullname" -}}
14+
{{- if .Values.fullnameOverride }}
15+
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
16+
{{- else }}
17+
{{- $name := default .Chart.Name .Values.nameOverride }}
18+
{{- if contains $name .Release.Name }}
19+
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
20+
{{- else }}
21+
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
22+
{{- end }}
23+
{{- end }}
24+
{{- end }}
25+
26+
{{/*
27+
Create chart name and version as used by the chart label.
28+
*/}}
29+
{{- define "testgen-services.chart" -}}
30+
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
31+
{{- end }}
32+
33+
{{/*
34+
Common labels
35+
*/}}
36+
{{- define "testgen-services.labels" -}}
37+
helm.sh/chart: {{ include "testgen-services.chart" . }}
38+
{{ include "testgen-services.selectorLabels" . }}
39+
{{- if .Chart.AppVersion }}
40+
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
41+
{{- end }}
42+
app.kubernetes.io/managed-by: {{ .Release.Service }}
43+
{{- end }}
44+
45+
{{/*
46+
Selector labels
47+
*/}}
48+
{{- define "testgen-services.selectorLabels" -}}
49+
app.kubernetes.io/name: {{ include "testgen-services.name" . }}
50+
app.kubernetes.io/instance: {{ .Release.Name }}
51+
{{- end }}
52+
53+
{{/*
54+
Create the name of the service account to use
55+
*/}}
56+
{{- define "testgen-services.serviceAccountName" -}}
57+
{{- if .Values.serviceAccount.create }}
58+
{{- default (include "testgen-services.fullname" .) .Values.serviceAccount.name }}
59+
{{- else }}
60+
{{- default "default" .Values.serviceAccount.name }}
61+
{{- end }}
62+
{{- end }}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{{- if .Values.secret.create }}
2+
apiVersion: v1
3+
kind: Secret
4+
metadata:
5+
name: {{ .Values.secret.name }}
6+
type: Opaque
7+
data:
8+
{{ .Values.postgres.auth.passwordKey }}: {{ randAlphaNum 24 | b64enc }}
9+
{{- end }}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: {{ include "testgen-services.fullname" . }}
5+
labels:
6+
{{- include "testgen-services.labels" . | nindent 4 }}
7+
spec:
8+
type: {{ .Values.postgres.service.type }}
9+
ports:
10+
- port: {{ .Values.postgres.service.port }}
11+
targetPort: 5432
12+
protocol: TCP
13+
name: postgres
14+
selector:
15+
{{- include "testgen-services.selectorLabels" . | nindent 4 }}

0 commit comments

Comments
 (0)