From 00fda86880975041d8ecd822ef9464d3b6dc9f85 Mon Sep 17 00:00:00 2001 From: Matt Date: Sat, 18 Feb 2023 00:25:50 -0600 Subject: [PATCH] Added helm chart publish github actions to github pages on tagging (#4219) * compatibility patch for csi driver * added namespace to all component parameters * added namespace to all component parameters * dereference in range * added namespace to values.yml defaults * added namespace to s3 component * added helm chart to github pages * added helm chart to github pages * added helm chart to github pages * added helm chart to github pages * added helm chart to github pages * push on all tags * push on all tags * push on all tags * push on all tags * push on all tags * changed helm directory structure * update charts location * fixed dereference * updated permissions * updated permissions * match current action schema --- .github/workflows/helm_chart_release.yml | 22 +++++++++++++++++++ .../seaweedfs}/.helmignore | 0 .../seaweedfs}/Chart.yaml | 0 .../seaweedfs}/README.md | 0 .../seaweedfs-grafana-dashboard.json | 0 .../seaweedfs}/templates/_helpers.tpl | 0 .../seaweedfs}/templates/ca-cert.yaml | 0 .../templates/cert-clusterissuer.yaml | 0 .../seaweedfs}/templates/client-cert.yaml | 0 .../seaweedfs}/templates/filer-cert.yaml | 0 .../templates/filer-service-client.yaml | 0 .../seaweedfs}/templates/filer-service.yaml | 0 .../templates/filer-servicemonitor.yaml | 0 .../templates/filer-statefulset.yaml | 0 .../seaweedfs}/templates/ingress.yaml | 0 .../seaweedfs}/templates/master-cert.yaml | 0 .../seaweedfs}/templates/master-service.yaml | 0 .../templates/master-servicemonitor.yaml | 0 .../templates/master-statefulset.yaml | 0 .../seaweedfs}/templates/s3-deployment.yaml | 0 .../seaweedfs}/templates/s3-service.yaml | 0 .../templates/s3-servicemonitor.yaml | 0 .../seaweedfs-grafana-dashboard.yaml | 0 .../templates/seaweedfs-s3-secret.yaml | 0 .../templates/secret-seaweedfs-db.yaml | 0 .../templates/security-configmap.yaml | 0 .../seaweedfs}/templates/service-account.yaml | 0 .../seaweedfs}/templates/volume-cert.yaml | 0 .../seaweedfs}/templates/volume-service.yaml | 0 .../templates/volume-servicemonitor.yaml | 0 .../templates/volume-statefulset.yaml | 0 .../seaweedfs}/values.yaml | 0 32 files changed, 22 insertions(+) create mode 100644 .github/workflows/helm_chart_release.yml rename k8s/{helm_charts2 => charts/seaweedfs}/.helmignore (100%) rename k8s/{helm_charts2 => charts/seaweedfs}/Chart.yaml (100%) rename k8s/{helm_charts2 => charts/seaweedfs}/README.md (100%) rename k8s/{helm_charts2 => charts/seaweedfs}/dashboards/seaweedfs-grafana-dashboard.json (100%) rename k8s/{helm_charts2 => charts/seaweedfs}/templates/_helpers.tpl (100%) rename k8s/{helm_charts2 => charts/seaweedfs}/templates/ca-cert.yaml (100%) rename k8s/{helm_charts2 => charts/seaweedfs}/templates/cert-clusterissuer.yaml (100%) rename k8s/{helm_charts2 => charts/seaweedfs}/templates/client-cert.yaml (100%) rename k8s/{helm_charts2 => charts/seaweedfs}/templates/filer-cert.yaml (100%) rename k8s/{helm_charts2 => charts/seaweedfs}/templates/filer-service-client.yaml (100%) rename k8s/{helm_charts2 => charts/seaweedfs}/templates/filer-service.yaml (100%) rename k8s/{helm_charts2 => charts/seaweedfs}/templates/filer-servicemonitor.yaml (100%) rename k8s/{helm_charts2 => charts/seaweedfs}/templates/filer-statefulset.yaml (100%) rename k8s/{helm_charts2 => charts/seaweedfs}/templates/ingress.yaml (100%) rename k8s/{helm_charts2 => charts/seaweedfs}/templates/master-cert.yaml (100%) rename k8s/{helm_charts2 => charts/seaweedfs}/templates/master-service.yaml (100%) rename k8s/{helm_charts2 => charts/seaweedfs}/templates/master-servicemonitor.yaml (100%) rename k8s/{helm_charts2 => charts/seaweedfs}/templates/master-statefulset.yaml (100%) rename k8s/{helm_charts2 => charts/seaweedfs}/templates/s3-deployment.yaml (100%) rename k8s/{helm_charts2 => charts/seaweedfs}/templates/s3-service.yaml (100%) rename k8s/{helm_charts2 => charts/seaweedfs}/templates/s3-servicemonitor.yaml (100%) rename k8s/{helm_charts2 => charts/seaweedfs}/templates/seaweedfs-grafana-dashboard.yaml (100%) rename k8s/{helm_charts2 => charts/seaweedfs}/templates/seaweedfs-s3-secret.yaml (100%) rename k8s/{helm_charts2 => charts/seaweedfs}/templates/secret-seaweedfs-db.yaml (100%) rename k8s/{helm_charts2 => charts/seaweedfs}/templates/security-configmap.yaml (100%) rename k8s/{helm_charts2 => charts/seaweedfs}/templates/service-account.yaml (100%) rename k8s/{helm_charts2 => charts/seaweedfs}/templates/volume-cert.yaml (100%) rename k8s/{helm_charts2 => charts/seaweedfs}/templates/volume-service.yaml (100%) rename k8s/{helm_charts2 => charts/seaweedfs}/templates/volume-servicemonitor.yaml (100%) rename k8s/{helm_charts2 => charts/seaweedfs}/templates/volume-statefulset.yaml (100%) rename k8s/{helm_charts2 => charts/seaweedfs}/values.yaml (100%) diff --git a/.github/workflows/helm_chart_release.yml b/.github/workflows/helm_chart_release.yml new file mode 100644 index 000000000..15dd6b059 --- /dev/null +++ b/.github/workflows/helm_chart_release.yml @@ -0,0 +1,22 @@ +name: "helm: publish charts" +on: + push: + tags: + - '*' + +permissions: + contents: write + pages: write + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Publish Helm charts + uses: stefanprodan/helm-gh-pages@master + with: + token: ${{ secrets.GITHUB_TOKEN }} + charts_dir: k8s/charts + target_dir: helm + branch: gh-pages \ No newline at end of file diff --git a/k8s/helm_charts2/.helmignore b/k8s/charts/seaweedfs/.helmignore similarity index 100% rename from k8s/helm_charts2/.helmignore rename to k8s/charts/seaweedfs/.helmignore diff --git a/k8s/helm_charts2/Chart.yaml b/k8s/charts/seaweedfs/Chart.yaml similarity index 100% rename from k8s/helm_charts2/Chart.yaml rename to k8s/charts/seaweedfs/Chart.yaml diff --git a/k8s/helm_charts2/README.md b/k8s/charts/seaweedfs/README.md similarity index 100% rename from k8s/helm_charts2/README.md rename to k8s/charts/seaweedfs/README.md diff --git a/k8s/helm_charts2/dashboards/seaweedfs-grafana-dashboard.json b/k8s/charts/seaweedfs/dashboards/seaweedfs-grafana-dashboard.json similarity index 100% rename from k8s/helm_charts2/dashboards/seaweedfs-grafana-dashboard.json rename to k8s/charts/seaweedfs/dashboards/seaweedfs-grafana-dashboard.json diff --git a/k8s/helm_charts2/templates/_helpers.tpl b/k8s/charts/seaweedfs/templates/_helpers.tpl similarity index 100% rename from k8s/helm_charts2/templates/_helpers.tpl rename to k8s/charts/seaweedfs/templates/_helpers.tpl diff --git a/k8s/helm_charts2/templates/ca-cert.yaml b/k8s/charts/seaweedfs/templates/ca-cert.yaml similarity index 100% rename from k8s/helm_charts2/templates/ca-cert.yaml rename to k8s/charts/seaweedfs/templates/ca-cert.yaml diff --git a/k8s/helm_charts2/templates/cert-clusterissuer.yaml b/k8s/charts/seaweedfs/templates/cert-clusterissuer.yaml similarity index 100% rename from k8s/helm_charts2/templates/cert-clusterissuer.yaml rename to k8s/charts/seaweedfs/templates/cert-clusterissuer.yaml diff --git a/k8s/helm_charts2/templates/client-cert.yaml b/k8s/charts/seaweedfs/templates/client-cert.yaml similarity index 100% rename from k8s/helm_charts2/templates/client-cert.yaml rename to k8s/charts/seaweedfs/templates/client-cert.yaml diff --git a/k8s/helm_charts2/templates/filer-cert.yaml b/k8s/charts/seaweedfs/templates/filer-cert.yaml similarity index 100% rename from k8s/helm_charts2/templates/filer-cert.yaml rename to k8s/charts/seaweedfs/templates/filer-cert.yaml diff --git a/k8s/helm_charts2/templates/filer-service-client.yaml b/k8s/charts/seaweedfs/templates/filer-service-client.yaml similarity index 100% rename from k8s/helm_charts2/templates/filer-service-client.yaml rename to k8s/charts/seaweedfs/templates/filer-service-client.yaml diff --git a/k8s/helm_charts2/templates/filer-service.yaml b/k8s/charts/seaweedfs/templates/filer-service.yaml similarity index 100% rename from k8s/helm_charts2/templates/filer-service.yaml rename to k8s/charts/seaweedfs/templates/filer-service.yaml diff --git a/k8s/helm_charts2/templates/filer-servicemonitor.yaml b/k8s/charts/seaweedfs/templates/filer-servicemonitor.yaml similarity index 100% rename from k8s/helm_charts2/templates/filer-servicemonitor.yaml rename to k8s/charts/seaweedfs/templates/filer-servicemonitor.yaml diff --git a/k8s/helm_charts2/templates/filer-statefulset.yaml b/k8s/charts/seaweedfs/templates/filer-statefulset.yaml similarity index 100% rename from k8s/helm_charts2/templates/filer-statefulset.yaml rename to k8s/charts/seaweedfs/templates/filer-statefulset.yaml diff --git a/k8s/helm_charts2/templates/ingress.yaml b/k8s/charts/seaweedfs/templates/ingress.yaml similarity index 100% rename from k8s/helm_charts2/templates/ingress.yaml rename to k8s/charts/seaweedfs/templates/ingress.yaml diff --git a/k8s/helm_charts2/templates/master-cert.yaml b/k8s/charts/seaweedfs/templates/master-cert.yaml similarity index 100% rename from k8s/helm_charts2/templates/master-cert.yaml rename to k8s/charts/seaweedfs/templates/master-cert.yaml diff --git a/k8s/helm_charts2/templates/master-service.yaml b/k8s/charts/seaweedfs/templates/master-service.yaml similarity index 100% rename from k8s/helm_charts2/templates/master-service.yaml rename to k8s/charts/seaweedfs/templates/master-service.yaml diff --git a/k8s/helm_charts2/templates/master-servicemonitor.yaml b/k8s/charts/seaweedfs/templates/master-servicemonitor.yaml similarity index 100% rename from k8s/helm_charts2/templates/master-servicemonitor.yaml rename to k8s/charts/seaweedfs/templates/master-servicemonitor.yaml diff --git a/k8s/helm_charts2/templates/master-statefulset.yaml b/k8s/charts/seaweedfs/templates/master-statefulset.yaml similarity index 100% rename from k8s/helm_charts2/templates/master-statefulset.yaml rename to k8s/charts/seaweedfs/templates/master-statefulset.yaml diff --git a/k8s/helm_charts2/templates/s3-deployment.yaml b/k8s/charts/seaweedfs/templates/s3-deployment.yaml similarity index 100% rename from k8s/helm_charts2/templates/s3-deployment.yaml rename to k8s/charts/seaweedfs/templates/s3-deployment.yaml diff --git a/k8s/helm_charts2/templates/s3-service.yaml b/k8s/charts/seaweedfs/templates/s3-service.yaml similarity index 100% rename from k8s/helm_charts2/templates/s3-service.yaml rename to k8s/charts/seaweedfs/templates/s3-service.yaml diff --git a/k8s/helm_charts2/templates/s3-servicemonitor.yaml b/k8s/charts/seaweedfs/templates/s3-servicemonitor.yaml similarity index 100% rename from k8s/helm_charts2/templates/s3-servicemonitor.yaml rename to k8s/charts/seaweedfs/templates/s3-servicemonitor.yaml diff --git a/k8s/helm_charts2/templates/seaweedfs-grafana-dashboard.yaml b/k8s/charts/seaweedfs/templates/seaweedfs-grafana-dashboard.yaml similarity index 100% rename from k8s/helm_charts2/templates/seaweedfs-grafana-dashboard.yaml rename to k8s/charts/seaweedfs/templates/seaweedfs-grafana-dashboard.yaml diff --git a/k8s/helm_charts2/templates/seaweedfs-s3-secret.yaml b/k8s/charts/seaweedfs/templates/seaweedfs-s3-secret.yaml similarity index 100% rename from k8s/helm_charts2/templates/seaweedfs-s3-secret.yaml rename to k8s/charts/seaweedfs/templates/seaweedfs-s3-secret.yaml diff --git a/k8s/helm_charts2/templates/secret-seaweedfs-db.yaml b/k8s/charts/seaweedfs/templates/secret-seaweedfs-db.yaml similarity index 100% rename from k8s/helm_charts2/templates/secret-seaweedfs-db.yaml rename to k8s/charts/seaweedfs/templates/secret-seaweedfs-db.yaml diff --git a/k8s/helm_charts2/templates/security-configmap.yaml b/k8s/charts/seaweedfs/templates/security-configmap.yaml similarity index 100% rename from k8s/helm_charts2/templates/security-configmap.yaml rename to k8s/charts/seaweedfs/templates/security-configmap.yaml diff --git a/k8s/helm_charts2/templates/service-account.yaml b/k8s/charts/seaweedfs/templates/service-account.yaml similarity index 100% rename from k8s/helm_charts2/templates/service-account.yaml rename to k8s/charts/seaweedfs/templates/service-account.yaml diff --git a/k8s/helm_charts2/templates/volume-cert.yaml b/k8s/charts/seaweedfs/templates/volume-cert.yaml similarity index 100% rename from k8s/helm_charts2/templates/volume-cert.yaml rename to k8s/charts/seaweedfs/templates/volume-cert.yaml diff --git a/k8s/helm_charts2/templates/volume-service.yaml b/k8s/charts/seaweedfs/templates/volume-service.yaml similarity index 100% rename from k8s/helm_charts2/templates/volume-service.yaml rename to k8s/charts/seaweedfs/templates/volume-service.yaml diff --git a/k8s/helm_charts2/templates/volume-servicemonitor.yaml b/k8s/charts/seaweedfs/templates/volume-servicemonitor.yaml similarity index 100% rename from k8s/helm_charts2/templates/volume-servicemonitor.yaml rename to k8s/charts/seaweedfs/templates/volume-servicemonitor.yaml diff --git a/k8s/helm_charts2/templates/volume-statefulset.yaml b/k8s/charts/seaweedfs/templates/volume-statefulset.yaml similarity index 100% rename from k8s/helm_charts2/templates/volume-statefulset.yaml rename to k8s/charts/seaweedfs/templates/volume-statefulset.yaml diff --git a/k8s/helm_charts2/values.yaml b/k8s/charts/seaweedfs/values.yaml similarity index 100% rename from k8s/helm_charts2/values.yaml rename to k8s/charts/seaweedfs/values.yaml