-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace dependencies with openshift-relevant scripts (#531)
- Loading branch information
Showing
8 changed files
with
137 additions
and
41 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestAssert | ||
metadata: | ||
name: test-airflow-postgresql | ||
timeout: 480 | ||
--- | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: airflow-postgresql | ||
status: | ||
readyReplicas: 1 | ||
replicas: 1 |
12 changes: 12 additions & 0 deletions
12
tests/templates/kuttl/overrides/05-install-postgresql.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- script: >- | ||
helm install airflow-postgresql | ||
--namespace $NAMESPACE | ||
--version 12.5.6 | ||
-f helm-bitnami-postgresql-values.yaml | ||
--repo https://charts.bitnami.com/bitnami postgresql | ||
--wait | ||
timeout: 600 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{% if test_scenario['values']['executor'] == 'celery' %} | ||
--- | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestAssert | ||
metadata: | ||
name: test-airflow-redis | ||
timeout: 360 | ||
--- | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: airflow-redis-master | ||
status: | ||
readyReplicas: 1 | ||
replicas: 1 | ||
--- | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: airflow-redis-replicas | ||
status: | ||
readyReplicas: 1 | ||
replicas: 1 | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{% if test_scenario['values']['executor'] == 'celery' %} | ||
--- | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- script: >- | ||
helm install airflow-redis | ||
--namespace $NAMESPACE | ||
--version 17.11.3 | ||
-f helm-bitnami-redis-values.yaml | ||
--repo https://charts.bitnami.com/bitnami redis | ||
--wait | ||
timeout: 600 | ||
{% endif %} |
30 changes: 30 additions & 0 deletions
30
tests/templates/kuttl/overrides/helm-bitnami-postgresql-values.yaml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
volumePermissions: | ||
enabled: false | ||
securityContext: | ||
runAsUser: auto | ||
|
||
primary: | ||
podSecurityContext: | ||
{% if test_scenario['values']['openshift'] == 'true' %} | ||
enabled: false | ||
{% else %} | ||
enabled: true | ||
{% endif %} | ||
containerSecurityContext: | ||
enabled: false | ||
resources: | ||
requests: | ||
memory: "128Mi" | ||
cpu: "100m" | ||
limits: | ||
memory: "128Mi" | ||
cpu: "400m" | ||
shmVolume: | ||
chmod: | ||
enabled: false | ||
|
||
auth: | ||
username: airflow | ||
password: airflow | ||
database: airflow |
43 changes: 43 additions & 0 deletions
43
tests/templates/kuttl/overrides/helm-bitnami-redis-values.yaml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
volumePermissions: | ||
enabled: false | ||
containerSecurityContext: | ||
runAsUser: auto | ||
|
||
master: | ||
podSecurityContext: | ||
{% if test_scenario['values']['openshift'] == 'true' %} | ||
enabled: false | ||
{% else %} | ||
enabled: true | ||
{% endif %} | ||
containerSecurityContext: | ||
enabled: false | ||
resources: | ||
requests: | ||
memory: "128Mi" | ||
cpu: "200m" | ||
limits: | ||
memory: "128Mi" | ||
cpu: "800m" | ||
|
||
replica: | ||
replicaCount: 1 | ||
podSecurityContext: | ||
{% if test_scenario['values']['openshift'] == 'true' %} | ||
enabled: false | ||
{% else %} | ||
enabled: true | ||
{% endif %} | ||
containerSecurityContext: | ||
enabled: false | ||
resources: | ||
requests: | ||
memory: "128Mi" | ||
cpu: "100m" | ||
limits: | ||
memory: "128Mi" | ||
cpu: "400m" | ||
|
||
auth: | ||
password: redis |