Skip to content

Commit db93b46

Browse files
committed
apache#8283 add helm chart
1 parent b20b47e commit db93b46

File tree

5 files changed

+55
-21
lines changed

5 files changed

+55
-21
lines changed

.github/workflows/publish-helm-chart.yaml

+10-13
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,16 @@ name: publish-helm-chart
1818

1919
on:
2020
push:
21-
tags:
21+
branches:
2222
- '*'
2323
paths-ignore:
2424
- 'docs/**'
2525
- '**/*.md'
2626

27+
env:
28+
DOCKER_USERNAME: ${{ secrets.DOCKERHUB_USER }}
29+
DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }}
30+
2731
jobs:
2832
build:
2933
if: github.repository == 'frommymind/seatunnel'
@@ -36,17 +40,10 @@ jobs:
3640
- uses: actions/checkout@v4
3741
- name: Set environment variables
3842
run: |
39-
if [[ ${{ github.event_name }} == "release" ]]; then
40-
echo "HUB=registry-1.docker.io/apache" >> $GITHUB_ENV
41-
echo "DOCKER_REGISTRY=docker.io" >> $GITHUB_ENV
42-
echo "DOCKER_USERNAME=${{ secrets.DOCKERHUB_USER }}" >> $GITHUB_ENV
43-
echo "DOCKER_PASSWORD=${{ secrets.DOCKERHUB_TOKEN }}" >> $GITHUB_ENV
44-
else
45-
echo "HUB=ghcr.io/apache/seatunnel" >> $GITHUB_ENV
46-
echo "DOCKER_REGISTRY=ghcr.io/apache/seatunnel" >> $GITHUB_ENV
47-
echo "DOCKER_USERNAME=${{ github.actor }}" >> $GITHUB_ENV
48-
echo "DOCKER_PASSWORD=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV
49-
fi
43+
echo "HUB=registry-1.docker.io/duanfangwei/seatunnel" >> $GITHUB_ENV
44+
echo "DOCKER_REGISTRY=ghcr.io/duanfangwei/seatunnel" >> $GITHUB_ENV
45+
echo "DOCKER_USERNAME=${{ env.DOCKER_USERNAME }}" >> $GITHUB_ENV
46+
echo "DOCKER_PASSWORD=${{ env.DOCKERHUB_TOKEN }}" >> $GITHUB_ENV
5047
- name: Log in to the Container registry
5148
uses: docker/login-action@v3
5249
with:
@@ -56,7 +53,7 @@ jobs:
5653
- name: Publish Helm Chart
5754
working-directory: deploy/kubernetes
5855
run: |
59-
if [[ ${{ env.HUB }} == "ghcr.io/apache/seatunnel" ]]; then
56+
if [[ ${{ env.HUB }} == "ghcr.io/duanfangwei/seatunnel" ]]; then
6057
VERSION=0.0.0-$(git rev-parse --short HEAD)
6158
sed -i "s/^version: .*/version: $VERSION/" seatunnel/Chart.yaml
6259
fi
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to You under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
apiVersion: v1
18+
kind: ConfigMap
19+
metadata:
20+
name: {{ include "seatunnel.fullname" . }}-log4j
21+
labels:
22+
app.kubernetes.io/name: {{ include "seatunnel.fullname" . }}-log4j
23+
{{- include "seatunnel.common.labels" . | nindent 4 }}
24+
data:
25+
log4j2.properties: |-
26+
{{.Files.Get "conf/log4j2.properties" | indent 8 }}

deploy/kubernetes/seatunnel/templates/deployment-seatunnel-master.yaml

+12-6
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,17 @@ spec:
7979
- mountPath: "/opt/seatunnel/config/seatunnel.yaml"
8080
name: seatunnel-seatunnel
8181
subPath: seatunnel.yaml
82+
- mountPath: "/opt/seatunnel/config/log4j2.properties"
83+
name: seatunnel-log4j
84+
subPath: seatunnel.yaml
8285
volumes:
83-
- name: seatunnel-seatunnel
84-
configMap:
85-
name: {{ include "seatunnel.fullname" . }}-seatunnel
86-
- name: seatunnel-master
87-
configMap:
88-
name: {{ include "seatunnel.fullname" . }}-master
86+
- name: seatunnel-seatunnel
87+
configMap:
88+
name: {{ include "seatunnel.fullname" . }}-seatunnel
89+
- name: seatunnel-master
90+
configMap:
91+
name: {{ include "seatunnel.fullname" . }}-master
92+
- name: seatunnel-log4j
93+
configMap:
94+
name: {{ include "seatunnel.fullname" . }}-log4j
8995

deploy/kubernetes/seatunnel/templates/deployment-seatunnel-worker.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,16 @@ spec:
7979
- mountPath: "/opt/seatunnel/config/seatunnel.yaml"
8080
name: seatunnel-seatunnel
8181
subPath: seatunnel.yaml
82+
- mountPath: "/opt/seatunnel/config/log4j2.properties"
83+
name: seatunnel-log4j
84+
subPath: seatunnel.yaml
8285
volumes:
8386
- name: seatunnel-seatunnel
8487
configMap:
8588
name: {{ include "seatunnel.fullname" . }}-seatunnel
8689
- name: seatunnel-worker
8790
configMap:
8891
name: {{ include "seatunnel.fullname" . }}-worker
89-
92+
- name: seatunnel-log4j
93+
configMap:
94+
name: {{ include "seatunnel.fullname" . }}-log4j

deploy/kubernetes/seatunnel/values.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace: default
2727

2828
image:
2929
registry: "apache/seatunnel"
30-
tag: "2.3.9"
30+
tag: ""
3131
pullPolicy: "IfNotPresent"
3232
pullSecret: ""
3333

0 commit comments

Comments
 (0)