Skip to content

Commit 412cc6a

Browse files
committed
Merge branch 'main' of github.com:drycc/helmbroker into main
2 parents 1732530 + c0066f9 commit 412cc6a

6 files changed

Lines changed: 19 additions & 10 deletions

File tree

.drone/drone.yml

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

charts/helmbroker/Chart.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
name: helmbroker
22
home: https://github.com/drycc/helmbroker
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: Drycc Workflow helmbroker.
59
maintainers:
610
- name: Drycc Team
711
email: engineering@drycc.com
12+
version: v1.0.0

charts/helmbroker/templates/helmbroker-celery.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ spec:
2121
labels:
2222
app: drycc-helmbroker-celery
2323
spec:
24+
{{- include "common.affinities.pods.soft" (dict "key" "app" "values" (list "drycc-helmbroker-celery")) | indent 6 }}
2425
serviceAccount: drycc-helmbroker
2526
containers:
2627
- name: drycc-helmbroker-celery
@@ -33,4 +34,4 @@ spec:
3334
{{- include "helmbroker.limits" . | indent 10 }}
3435
{{- include "helmbroker.envs" . | indent 10 }}
3536
{{- include "helmbroker.volumeMounts" . | indent 10 }}
36-
{{- include "helmbroker.volumes" . | indent 6 }}
37+
{{- include "helmbroker.volumes" . | indent 6 }}

charts/helmbroker/templates/helmbroker-deployment.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ spec:
2121
labels:
2222
app: drycc-helmbroker
2323
spec:
24+
{{- include "common.affinities.pods.soft" (dict "key" "app" "values" (list "drycc-helmbroker")) | indent 6 }}
2425
serviceAccount: drycc-helmbroker
2526
initContainers:
2627
- name: loader
@@ -55,4 +56,4 @@ spec:
5556
{{- include "helmbroker.limits" . | indent 10 }}
5657
{{- include "helmbroker.envs" . | indent 10 }}
5758
{{- include "helmbroker.volumeMounts" . | indent 10 }}
58-
{{- include "helmbroker.volumes" . | indent 6 }}
59+
{{- include "helmbroker.volumes" . | indent 6 }}

rootfs/Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,20 @@ ENV DRYCC_UID=1001 \
44
DRYCC_GID=1001 \
55
DRYCC_HOME_DIR=/workspace \
66
PYTHON_VERSION="3.10.4" \
7-
HELM_VERSION="3.8.0"
7+
HELM_VERSION="3.8.0" \
8+
KUBECTL_VERSION="1.23.4"
89

910
RUN groupadd drycc --gid ${DRYCC_GID} \
1011
&& useradd drycc -u ${DRYCC_UID} -g ${DRYCC_GID} -s /bin/bash -m -d ${DRYCC_HOME_DIR}
1112

1213
COPY . ${DRYCC_HOME_DIR}
1314
WORKDIR ${DRYCC_HOME_DIR}
1415

15-
RUN buildDeps='musl-dev openssl' \
16-
&& install-packages ${buildDeps} \
16+
RUN buildDeps='musl-dev' \
17+
&& install-packages ${buildDeps} openssl ca-certificates \
1718
&& install-stack python ${PYTHON_VERSION} \
18-
&& install-stack helm ${HELM_VERSION} && . init-stack \
19+
&& install-stack helm ${HELM_VERSION} \
20+
&& install-stack kubectl ${KUBECTL_VERSION} && . init-stack \
1921
&& python3 -m venv ${DRYCC_HOME_DIR}/.venv \
2022
&& source ${DRYCC_HOME_DIR}/.venv/bin/activate \
2123
&& pip3 install --disable-pip-version-check --no-cache-dir -r ${DRYCC_HOME_DIR}/requirements.txt \

rootfs/Dockerfile.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ RUN groupadd drycc --gid ${DRYCC_GID} \
1313
COPY . ${DRYCC_HOME_DIR}
1414
WORKDIR ${DRYCC_HOME_DIR}
1515

16-
RUN buildDeps='musl-dev openssl'; \
17-
install-packages ${buildDeps} \
16+
RUN buildDeps='musl-dev'; \
17+
install-packages ${buildDeps} openssl ca-certificates \
1818
&& install-stack python ${PYTHON_VERSION} \
1919
&& install-stack helm ${HELM_VERSION} \
2020
&& install-stack kubectl ${KUBECTL_VERSION} && . init-stack \

0 commit comments

Comments
 (0)