From dccc874495c28e4969204541b878b4adf5a4406a Mon Sep 17 00:00:00 2001 From: mehdi-ra Date: Mon, 24 Jul 2023 17:34:09 +0330 Subject: [PATCH] refactor(chart): moved into charts/generic --- .github/workflows/release.yaml | 36 ++++++++++++++++--- .helmignore => charts/generic/.helmignore | 0 Chart.yaml => charts/generic/Chart.yaml | 0 .../generic/templates}/_helpers.tpl | 0 .../templates}/alertmanagerconfig.yaml | 0 .../generic/templates}/certificate.yaml | 0 .../generic/templates}/configmap.yaml | 0 .../generic/templates}/cronjob.yaml | 0 .../generic/templates}/deployment.yaml | 0 .../generic/templates}/endpointmonitor.yaml | 0 .../generic/templates}/externalsecrets.yaml | 0 .../generic/templates}/forecastle.yaml | 0 .../generic/templates}/grafanadashboard.yaml | 0 .../generic/templates}/hpa.yaml | 0 .../generic/templates}/ingress.yaml | 0 .../generic/templates}/networkpolicy.yaml | 0 .../generic/templates}/pdb.yaml | 0 .../generic/templates}/prometheusrule.yaml | 0 .../generic/templates}/pvc.yaml | 0 .../generic/templates}/role.yaml | 0 .../generic/templates}/rolebinding.yaml | 0 .../generic/templates}/route.yaml | 0 .../generic/templates}/sealedsecrets.yaml | 0 .../generic/templates}/secret.yaml | 0 .../templates}/secretproviderclass.yaml | 0 .../generic/templates}/service.yaml | 0 .../generic/templates}/serviceaccount.yaml | 0 .../generic/templates}/servicemonitor.yaml | 0 .../generic/templates}/vpa.yaml | 0 .../generic/tests}/cronjob_test.yaml | 0 .../generic/tests}/deployment_test.yaml | 0 {tests => charts/generic/tests}/hpa_test.yaml | 0 {tests => charts/generic/tests}/pdb_test.yaml | 0 {tests => charts/generic/tests}/pvc_test.yaml | 0 .../generic/tests}/serviceaccount_test.yaml | 0 values.yaml => charts/generic/values.yaml | 0 36 files changed, 31 insertions(+), 5 deletions(-) rename .helmignore => charts/generic/.helmignore (100%) rename Chart.yaml => charts/generic/Chart.yaml (100%) rename {templates => charts/generic/templates}/_helpers.tpl (100%) rename {templates => charts/generic/templates}/alertmanagerconfig.yaml (100%) rename {templates => charts/generic/templates}/certificate.yaml (100%) rename {templates => charts/generic/templates}/configmap.yaml (100%) rename {templates => charts/generic/templates}/cronjob.yaml (100%) rename {templates => charts/generic/templates}/deployment.yaml (100%) rename {templates => charts/generic/templates}/endpointmonitor.yaml (100%) rename {templates => charts/generic/templates}/externalsecrets.yaml (100%) rename {templates => charts/generic/templates}/forecastle.yaml (100%) rename {templates => charts/generic/templates}/grafanadashboard.yaml (100%) rename {templates => charts/generic/templates}/hpa.yaml (100%) rename {templates => charts/generic/templates}/ingress.yaml (100%) rename {templates => charts/generic/templates}/networkpolicy.yaml (100%) rename {templates => charts/generic/templates}/pdb.yaml (100%) rename {templates => charts/generic/templates}/prometheusrule.yaml (100%) rename {templates => charts/generic/templates}/pvc.yaml (100%) rename {templates => charts/generic/templates}/role.yaml (100%) rename {templates => charts/generic/templates}/rolebinding.yaml (100%) rename {templates => charts/generic/templates}/route.yaml (100%) rename {templates => charts/generic/templates}/sealedsecrets.yaml (100%) rename {templates => charts/generic/templates}/secret.yaml (100%) rename {templates => charts/generic/templates}/secretproviderclass.yaml (100%) rename {templates => charts/generic/templates}/service.yaml (100%) rename {templates => charts/generic/templates}/serviceaccount.yaml (100%) rename {templates => charts/generic/templates}/servicemonitor.yaml (100%) rename {templates => charts/generic/templates}/vpa.yaml (100%) rename {tests => charts/generic/tests}/cronjob_test.yaml (100%) rename {tests => charts/generic/tests}/deployment_test.yaml (100%) rename {tests => charts/generic/tests}/hpa_test.yaml (100%) rename {tests => charts/generic/tests}/pdb_test.yaml (100%) rename {tests => charts/generic/tests}/pvc_test.yaml (100%) rename {tests => charts/generic/tests}/serviceaccount_test.yaml (100%) rename values.yaml => charts/generic/values.yaml (100%) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 860f40b..cd168f2 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,15 +1,41 @@ -name: Simple semver release +name: "Generic chart SemVer release" on: push: - branches: ["main"] + branches: ["develop"] jobs: - build: - runs-on: ubuntu-latest + release: + runs-on: ubuntu-22.04 + permissions: + actions: none + checks: none + contents: write + deployments: none + issues: none + packages: none + pull-requests: none + repository-projects: none + security-events: none + statuses: none + steps: - uses: actions/checkout@v3 with: fetch-depth: 0 - - uses: arwynfr/actions-conventional-versioning@v2 + - 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@v1 + with: + version: v3.8.1 + + - name: Run chart-releaser + uses: helm/chart-releaser-action@v1.4.0 + with: + charts_dir: charts + env: + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.helmignore b/charts/generic/.helmignore similarity index 100% rename from .helmignore rename to charts/generic/.helmignore diff --git a/Chart.yaml b/charts/generic/Chart.yaml similarity index 100% rename from Chart.yaml rename to charts/generic/Chart.yaml diff --git a/templates/_helpers.tpl b/charts/generic/templates/_helpers.tpl similarity index 100% rename from templates/_helpers.tpl rename to charts/generic/templates/_helpers.tpl diff --git a/templates/alertmanagerconfig.yaml b/charts/generic/templates/alertmanagerconfig.yaml similarity index 100% rename from templates/alertmanagerconfig.yaml rename to charts/generic/templates/alertmanagerconfig.yaml diff --git a/templates/certificate.yaml b/charts/generic/templates/certificate.yaml similarity index 100% rename from templates/certificate.yaml rename to charts/generic/templates/certificate.yaml diff --git a/templates/configmap.yaml b/charts/generic/templates/configmap.yaml similarity index 100% rename from templates/configmap.yaml rename to charts/generic/templates/configmap.yaml diff --git a/templates/cronjob.yaml b/charts/generic/templates/cronjob.yaml similarity index 100% rename from templates/cronjob.yaml rename to charts/generic/templates/cronjob.yaml diff --git a/templates/deployment.yaml b/charts/generic/templates/deployment.yaml similarity index 100% rename from templates/deployment.yaml rename to charts/generic/templates/deployment.yaml diff --git a/templates/endpointmonitor.yaml b/charts/generic/templates/endpointmonitor.yaml similarity index 100% rename from templates/endpointmonitor.yaml rename to charts/generic/templates/endpointmonitor.yaml diff --git a/templates/externalsecrets.yaml b/charts/generic/templates/externalsecrets.yaml similarity index 100% rename from templates/externalsecrets.yaml rename to charts/generic/templates/externalsecrets.yaml diff --git a/templates/forecastle.yaml b/charts/generic/templates/forecastle.yaml similarity index 100% rename from templates/forecastle.yaml rename to charts/generic/templates/forecastle.yaml diff --git a/templates/grafanadashboard.yaml b/charts/generic/templates/grafanadashboard.yaml similarity index 100% rename from templates/grafanadashboard.yaml rename to charts/generic/templates/grafanadashboard.yaml diff --git a/templates/hpa.yaml b/charts/generic/templates/hpa.yaml similarity index 100% rename from templates/hpa.yaml rename to charts/generic/templates/hpa.yaml diff --git a/templates/ingress.yaml b/charts/generic/templates/ingress.yaml similarity index 100% rename from templates/ingress.yaml rename to charts/generic/templates/ingress.yaml diff --git a/templates/networkpolicy.yaml b/charts/generic/templates/networkpolicy.yaml similarity index 100% rename from templates/networkpolicy.yaml rename to charts/generic/templates/networkpolicy.yaml diff --git a/templates/pdb.yaml b/charts/generic/templates/pdb.yaml similarity index 100% rename from templates/pdb.yaml rename to charts/generic/templates/pdb.yaml diff --git a/templates/prometheusrule.yaml b/charts/generic/templates/prometheusrule.yaml similarity index 100% rename from templates/prometheusrule.yaml rename to charts/generic/templates/prometheusrule.yaml diff --git a/templates/pvc.yaml b/charts/generic/templates/pvc.yaml similarity index 100% rename from templates/pvc.yaml rename to charts/generic/templates/pvc.yaml diff --git a/templates/role.yaml b/charts/generic/templates/role.yaml similarity index 100% rename from templates/role.yaml rename to charts/generic/templates/role.yaml diff --git a/templates/rolebinding.yaml b/charts/generic/templates/rolebinding.yaml similarity index 100% rename from templates/rolebinding.yaml rename to charts/generic/templates/rolebinding.yaml diff --git a/templates/route.yaml b/charts/generic/templates/route.yaml similarity index 100% rename from templates/route.yaml rename to charts/generic/templates/route.yaml diff --git a/templates/sealedsecrets.yaml b/charts/generic/templates/sealedsecrets.yaml similarity index 100% rename from templates/sealedsecrets.yaml rename to charts/generic/templates/sealedsecrets.yaml diff --git a/templates/secret.yaml b/charts/generic/templates/secret.yaml similarity index 100% rename from templates/secret.yaml rename to charts/generic/templates/secret.yaml diff --git a/templates/secretproviderclass.yaml b/charts/generic/templates/secretproviderclass.yaml similarity index 100% rename from templates/secretproviderclass.yaml rename to charts/generic/templates/secretproviderclass.yaml diff --git a/templates/service.yaml b/charts/generic/templates/service.yaml similarity index 100% rename from templates/service.yaml rename to charts/generic/templates/service.yaml diff --git a/templates/serviceaccount.yaml b/charts/generic/templates/serviceaccount.yaml similarity index 100% rename from templates/serviceaccount.yaml rename to charts/generic/templates/serviceaccount.yaml diff --git a/templates/servicemonitor.yaml b/charts/generic/templates/servicemonitor.yaml similarity index 100% rename from templates/servicemonitor.yaml rename to charts/generic/templates/servicemonitor.yaml diff --git a/templates/vpa.yaml b/charts/generic/templates/vpa.yaml similarity index 100% rename from templates/vpa.yaml rename to charts/generic/templates/vpa.yaml diff --git a/tests/cronjob_test.yaml b/charts/generic/tests/cronjob_test.yaml similarity index 100% rename from tests/cronjob_test.yaml rename to charts/generic/tests/cronjob_test.yaml diff --git a/tests/deployment_test.yaml b/charts/generic/tests/deployment_test.yaml similarity index 100% rename from tests/deployment_test.yaml rename to charts/generic/tests/deployment_test.yaml diff --git a/tests/hpa_test.yaml b/charts/generic/tests/hpa_test.yaml similarity index 100% rename from tests/hpa_test.yaml rename to charts/generic/tests/hpa_test.yaml diff --git a/tests/pdb_test.yaml b/charts/generic/tests/pdb_test.yaml similarity index 100% rename from tests/pdb_test.yaml rename to charts/generic/tests/pdb_test.yaml diff --git a/tests/pvc_test.yaml b/charts/generic/tests/pvc_test.yaml similarity index 100% rename from tests/pvc_test.yaml rename to charts/generic/tests/pvc_test.yaml diff --git a/tests/serviceaccount_test.yaml b/charts/generic/tests/serviceaccount_test.yaml similarity index 100% rename from tests/serviceaccount_test.yaml rename to charts/generic/tests/serviceaccount_test.yaml diff --git a/values.yaml b/charts/generic/values.yaml similarity index 100% rename from values.yaml rename to charts/generic/values.yaml