Skip to content

Commit e42bcf4

Browse files
author
lijianguo
committed
chore(registry): use common affinity template
1 parent 4b09cd3 commit e42bcf4

3 files changed

Lines changed: 8 additions & 5 deletions

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/registry/values.yaml
119-
- helm package charts/registry --version ${DRONE_TAG:-v1.0.0}
119+
- helm package -u charts/registry --version ${DRONE_TAG:-v1.0.0}
120120
- curl -u $CHARTMUSEUM_USERNAME:$CHARTMUSEUM_PASSWORD -F chart=@registry-${DRONE_TAG:-v1.0.0}.tgz "$CHARTMUSEUM_API/api/$([ -z $DRONE_TAG ] && echo testing || echo stable)/charts"
121121
environment:
122122
CHARTMUSEUM_USERNAME:

charts/registry/Chart.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
name: registry
22
home: https://github.com/drycc/registry
3-
version: v1.0.0
3+
apiVersion: v2
4+
dependencies:
5+
- name: common
6+
repository: https://charts.drycc.cc/stable
7+
version: 1.x.x
48
description: Docker registry for Drycc Workflow.
59
maintainers:
610
- name: Drycc Team
711
email: engineering@drycc.com
12+
version: v1.0.0

charts/registry/templates/registry-deployment.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ spec:
2222
labels:
2323
app: drycc-registry
2424
spec:
25-
{{- if .Values.global.common }}
26-
{{- include "common.affinity" (dict "key" "app" "values" (list "drycc-registry")) | indent 6 }}
27-
{{- end }}
25+
{{- include "common.affinities.nodes.soft" (dict "key" "app" "values" (list "drycc-registry")) | indent 6 }}
2826
serviceAccount: drycc-registry
2927
initContainers:
3028
- name: drycc-registry-init

0 commit comments

Comments
 (0)