Skip to content

Commit

Permalink
update chart relase action workflow (#3728,#3734,#3691) (#3738)
Browse files Browse the repository at this point in the history
Signed-off-by: 马洪贞 <hzma@alauda.io>
  • Loading branch information
hongzhen-ma committed Feb 19, 2024
1 parent b3d8fca commit cc8c9ab
Show file tree
Hide file tree
Showing 29 changed files with 10 additions and 15 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/release-chart.yaml
Expand Up @@ -2,10 +2,9 @@ name: Release Charts

on:
push:
branches:
- master
tags:
- v*

permissions: {}
jobs:
release:
permissions:
Expand All @@ -16,20 +15,17 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
fetch-depth: 0

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Install Helm
uses: azure/setup-helm@v3

- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.6.0
with:
charts_dir: charts
config: cr.yaml
skip_existing: true
packages_with_index: true
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -435,7 +435,7 @@ kind-install-chart: kind-load-image kind-untaint-control-plane
kubectl label node -lnode-role.kubernetes.io/control-plane kube-ovn/role=master --overwrite
kubectl label node -lovn.kubernetes.io/ovs_dp_type!=userspace ovn.kubernetes.io/ovs_dp_type=kernel --overwrite
ips=$$(kubectl get node -lkube-ovn/role=master --no-headers -o wide | awk '{print $$6}' | tr '\n' ',' | sed 's/,$$//') && \
helm install kubeovn ./charts \
helm install kubeovn ./charts/kube-ovn \
--set global.images.kubeovn.tag=$(VERSION) \
--set replicaCount=$$(echo $$ips | awk -F ',' '{print NF}') \
--set MASTER_NODES="$$(echo $$ips | sed 's/,/\\,/g')" \
Expand All @@ -450,7 +450,7 @@ kind-install-chart: kind-load-image kind-untaint-control-plane
.PHONY: kind-upgrade-chart
kind-upgrade-chart: kind-load-image
$(eval OVN_DB_IPS = $(shell kubectl get node -lkube-ovn/role=master --no-headers -o wide | awk '{print $$6}' | tr '\n' ',' | sed -e 's/,$$//' -e 's/,/\\,/g'))
helm upgrade kubeovn ./charts \
helm upgrade kubeovn ./charts/kube-ovn \
--set global.images.kubeovn.tag=$(VERSION) \
--set replicaCount=$$(echo $(OVN_DB_IPS) | awk -F ',' '{print NF}') \
--set MASTER_NODES='$(OVN_DB_IPS)' \
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions charts/README.md → charts/kube-ovn/README.md
Expand Up @@ -10,11 +10,11 @@ $ kubectl label node -lnode-role.kubernetes.io/control-plane kube-ovn/role=mast
$ kubectl label node -lovn.kubernetes.io/ovs_dp_type!=userspace ovn.kubernetes.io/ovs_dp_type=kernel --overwrite

# standard install
$ helm install --debug kubeovn ./charts --set MASTER_NODES=${Node0},
$ helm install --debug kubeovn ./charts/kube-ovn --set MASTER_NODES=${Node0}

# high availability install
$ helm install --debug kubeovn ./charts --set MASTER_NODES=${Node0},${Node1},${Node2}, --set replicaCount=3
$ helm install --debug kubeovn ./charts/kube-ovn --set MASTER_NODES=${Node0},${Node1},${Node2} --set replicaCount=3

# upgrade to this version
$ helm upgrade --debug kubeovn ./charts --set MASTER_NODES=${Node0},${Node1},${Node2}, --set replicaCount=3
$ helm upgrade --debug kubeovn ./charts/kube-ovn --set MASTER_NODES=${Node0},${Node1},${Node2} --set replicaCount=3
```
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion cr.yaml

This file was deleted.

0 comments on commit cc8c9ab

Please sign in to comment.