Skip to content

Commit 3666b67

Browse files
committed
feat(database): add affinity
1 parent f565eb5 commit 3666b67

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

.drone/drone.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ steps:
116116
commands:
117117
- IMAGE_TAG=$([ ! -z $DRONE_TAG ] && echo \"${DRONE_TAG:1}\" || echo \"canary\")
118118
- sed -i "s/imageTag:\ \"canary\"/imageTag:\ $IMAGE_TAG/g" charts/database/values.yaml
119-
- helm package charts/database --version ${DRONE_TAG:-v1.0.0}
119+
- helm package -u charts/database --version ${DRONE_TAG:-v1.0.0}
120120
- curl -u $CHARTMUSEUM_USERNAME:$CHARTMUSEUM_PASSWORD -F chart=@database-${DRONE_TAG:-v1.0.0}.tgz "$CHARTMUSEUM_API/api/$([ -z $DRONE_TAG ] && echo testing || echo stable)/charts"
121121
environment:
122122
CHARTMUSEUM_USERNAME:

charts/database/Chart.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
name: database
2+
apiVersion: v2
3+
dependencies:
4+
- name: common
5+
repository: https://charts.drycc.cc/stable
6+
version: 1.x.x
27
home: https://github.com/drycc/postgres
38
version: v1.0.0
49
description: A PostgreSQL database used by Drycc Workflow.

charts/database/templates/database-deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ spec:
1919
labels:
2020
app: drycc-database
2121
spec:
22+
{{- include "common.affinities.nodes.soft" (dict "key" "app" "values" (list "drycc-database")) | indent 6 }}
2223
serviceAccount: drycc-database
2324
initContainers:
2425
- name: drycc-database-init

0 commit comments

Comments
 (0)