diff --git a/.github/ct-install.yaml b/.github/ct-install.yaml new file mode 100644 index 0000000000..9a38be3ba0 --- /dev/null +++ b/.github/ct-install.yaml @@ -0,0 +1,12 @@ +chart-dirs: + - bitnami +chart-repos: + - bitnami=https://charts.bitnami.com/bitnami +debug: true +excluded-charts: + - common + - kubeapps + - kibana + - kong + - mariadb-galera +remote: origin diff --git a/ct.yaml b/.github/ct-lint.yaml similarity index 100% rename from ct.yaml rename to .github/ct-lint.yaml index 1a5cbd46b0..023d2bbcf3 100644 --- a/ct.yaml +++ b/.github/ct-lint.yaml @@ -2,9 +2,9 @@ chart-dirs: - bitnami chart-repos: - bitnami=https://charts.bitnami.com/bitnami +check-version-increment: true +debug: true remote: origin validate-chart-schema: true validate-maintainers: true -debug: true validate-yaml: true -check-version-increment: true diff --git a/.github/workflows/lint-test.yaml b/.github/workflows/lint-test.yaml index 6dcc06506b..6f49dfa680 100644 --- a/.github/workflows/lint-test.yaml +++ b/.github/workflows/lint-test.yaml @@ -3,7 +3,7 @@ name: Lint and Test Charts on: pull_request jobs: - lint-test: + lint: runs-on: ubuntu-latest steps: - name: Checkout @@ -13,7 +13,24 @@ jobs: run: git fetch --prune --unshallow - name: Run chart-testing (lint) - id: lint uses: helm/chart-testing-action@v1.0.0-rc.2 with: + config: .github/ct-lint.yaml command: lint + test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Fetch history + run: git fetch --prune --unshallow + + - name: Create kind cluster + uses: helm/kind-action@v1.0.0-rc.1 + + - name: Run chart-testing (install) + uses: helm/chart-testing-action@v1.0.0-rc.2 + with: + config: .github/ct-install.yaml + command: install diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9aeb218450..3bc69df788 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -28,10 +28,11 @@ When submitting a PR make sure that it: ### PR Approval and Release Process -1. Changes are manually reviewed by Bitnami team members. -2. Once the changes are accepted, the PR is tested into the CI pipeline, the chart is installed and tested on top of different k8s platforms. -3. If everything works fine, the `bitnami-bot` will add a new commit to the PR updating all the Docker images tags and dependencies. If something fails, the review process continues. -4. When the PR passes all tests it is merged in the GitHub master branch and the new version of the chart is pushed to the registry. Please note that may be a slight difference between the appearance of the code in GitHub and the chart in the registry. +1. Changes are automatically linted and tested using the [`ct` tool](https://github.com/helm/chart-testing) as a [GitHub action](https://github.com/helm/chart-testing-action). Those tests are based on `helm install`, `helm lint` and `helm test` commands and provide quick feedback about the changes in the PR. For those tests, the chart is installed on top of [kind](https://github.com/kubernetes-sigs/kind) and this step is not blocking (as opposed to 3rd step). +2. Changes are manually reviewed by Bitnami team members. +3. Once the changes are accepted, the PR is tested into the Bitnami CI pipeline, the chart is installed and tested (verification and functional tests) on top of different k8s platforms. +4. If everything works fine, the `bitnami-bot` will add a new commit to the PR updating all the Docker images tags and dependencies. If something fails, the review process continues. +5. When the PR passes all tests it is merged in the GitHub master branch and the new version of the chart is pushed to the registry. Please note that may be a slight difference between the appearance of the code in GitHub and the chart in the registry. ### Adding a new chart to the repository diff --git a/bitnami/apache/ci/ct-values.yaml b/bitnami/apache/ci/ct-values.yaml new file mode 100644 index 0000000000..b738e2a57a --- /dev/null +++ b/bitnami/apache/ci/ct-values.yaml @@ -0,0 +1,2 @@ +service: + type: ClusterIP diff --git a/bitnami/dokuwiki/ci/ct-values.yaml b/bitnami/dokuwiki/ci/ct-values.yaml new file mode 100644 index 0000000000..b738e2a57a --- /dev/null +++ b/bitnami/dokuwiki/ci/ct-values.yaml @@ -0,0 +1,2 @@ +service: + type: ClusterIP diff --git a/bitnami/drupal/ci/ct-values.yaml b/bitnami/drupal/ci/ct-values.yaml new file mode 100644 index 0000000000..b738e2a57a --- /dev/null +++ b/bitnami/drupal/ci/ct-values.yaml @@ -0,0 +1,2 @@ +service: + type: ClusterIP diff --git a/bitnami/ghost/ci/ct-values.yaml b/bitnami/ghost/ci/ct-values.yaml new file mode 100644 index 0000000000..b738e2a57a --- /dev/null +++ b/bitnami/ghost/ci/ct-values.yaml @@ -0,0 +1,2 @@ +service: + type: ClusterIP diff --git a/bitnami/jasperreports/ci/ct-values.yaml b/bitnami/jasperreports/ci/ct-values.yaml new file mode 100644 index 0000000000..b738e2a57a --- /dev/null +++ b/bitnami/jasperreports/ci/ct-values.yaml @@ -0,0 +1,2 @@ +service: + type: ClusterIP diff --git a/bitnami/jenkins/ci/ct-values.yaml b/bitnami/jenkins/ci/ct-values.yaml new file mode 100644 index 0000000000..b738e2a57a --- /dev/null +++ b/bitnami/jenkins/ci/ct-values.yaml @@ -0,0 +1,2 @@ +service: + type: ClusterIP diff --git a/bitnami/joomla/ci/ct-values.yaml b/bitnami/joomla/ci/ct-values.yaml new file mode 100644 index 0000000000..b738e2a57a --- /dev/null +++ b/bitnami/joomla/ci/ct-values.yaml @@ -0,0 +1,2 @@ +service: + type: ClusterIP diff --git a/bitnami/magento/ci/ct-values.yaml b/bitnami/magento/ci/ct-values.yaml new file mode 100644 index 0000000000..b738e2a57a --- /dev/null +++ b/bitnami/magento/ci/ct-values.yaml @@ -0,0 +1,2 @@ +service: + type: ClusterIP diff --git a/bitnami/mediawiki/ci/ct-values.yaml b/bitnami/mediawiki/ci/ct-values.yaml new file mode 100644 index 0000000000..b738e2a57a --- /dev/null +++ b/bitnami/mediawiki/ci/ct-values.yaml @@ -0,0 +1,2 @@ +service: + type: ClusterIP diff --git a/bitnami/moodle/ci/ct-values.yaml b/bitnami/moodle/ci/ct-values.yaml new file mode 100644 index 0000000000..b738e2a57a --- /dev/null +++ b/bitnami/moodle/ci/ct-values.yaml @@ -0,0 +1,2 @@ +service: + type: ClusterIP diff --git a/bitnami/nginx-ingress-controller/ci/ct-values.yaml b/bitnami/nginx-ingress-controller/ci/ct-values.yaml new file mode 100644 index 0000000000..b738e2a57a --- /dev/null +++ b/bitnami/nginx-ingress-controller/ci/ct-values.yaml @@ -0,0 +1,2 @@ +service: + type: ClusterIP diff --git a/bitnami/nginx/ci/ct-values.yaml b/bitnami/nginx/ci/ct-values.yaml new file mode 100644 index 0000000000..b738e2a57a --- /dev/null +++ b/bitnami/nginx/ci/ct-values.yaml @@ -0,0 +1,2 @@ +service: + type: ClusterIP diff --git a/bitnami/odoo/ci/ct-values.yaml b/bitnami/odoo/ci/ct-values.yaml new file mode 100644 index 0000000000..b738e2a57a --- /dev/null +++ b/bitnami/odoo/ci/ct-values.yaml @@ -0,0 +1,2 @@ +service: + type: ClusterIP diff --git a/bitnami/opencart/ci/ct-values.yaml b/bitnami/opencart/ci/ct-values.yaml new file mode 100644 index 0000000000..b738e2a57a --- /dev/null +++ b/bitnami/opencart/ci/ct-values.yaml @@ -0,0 +1,2 @@ +service: + type: ClusterIP diff --git a/bitnami/orangehrm/ci/ct-values.yaml b/bitnami/orangehrm/ci/ct-values.yaml new file mode 100644 index 0000000000..b738e2a57a --- /dev/null +++ b/bitnami/orangehrm/ci/ct-values.yaml @@ -0,0 +1,2 @@ +service: + type: ClusterIP diff --git a/bitnami/osclass/ci/ct-values.yaml b/bitnami/osclass/ci/ct-values.yaml new file mode 100644 index 0000000000..b738e2a57a --- /dev/null +++ b/bitnami/osclass/ci/ct-values.yaml @@ -0,0 +1,2 @@ +service: + type: ClusterIP diff --git a/bitnami/owncloud/ci/ct-values.yaml b/bitnami/owncloud/ci/ct-values.yaml new file mode 100644 index 0000000000..b738e2a57a --- /dev/null +++ b/bitnami/owncloud/ci/ct-values.yaml @@ -0,0 +1,2 @@ +service: + type: ClusterIP diff --git a/bitnami/parse/ci/ct-values.yaml b/bitnami/parse/ci/ct-values.yaml new file mode 100644 index 0000000000..b738e2a57a --- /dev/null +++ b/bitnami/parse/ci/ct-values.yaml @@ -0,0 +1,2 @@ +service: + type: ClusterIP diff --git a/bitnami/phabricator/ci/ct-values.yaml b/bitnami/phabricator/ci/ct-values.yaml new file mode 100644 index 0000000000..b738e2a57a --- /dev/null +++ b/bitnami/phabricator/ci/ct-values.yaml @@ -0,0 +1,2 @@ +service: + type: ClusterIP diff --git a/bitnami/phpbb/ci/ct-values.yaml b/bitnami/phpbb/ci/ct-values.yaml new file mode 100644 index 0000000000..b738e2a57a --- /dev/null +++ b/bitnami/phpbb/ci/ct-values.yaml @@ -0,0 +1,2 @@ +service: + type: ClusterIP diff --git a/bitnami/postgresql-ha/ci/ct-values.yaml b/bitnami/postgresql-ha/ci/ct-values.yaml new file mode 100644 index 0000000000..068f4c241b --- /dev/null +++ b/bitnami/postgresql-ha/ci/ct-values.yaml @@ -0,0 +1 @@ +fullnameOverride: test diff --git a/bitnami/prestashop/ci/ct-values.yaml b/bitnami/prestashop/ci/ct-values.yaml new file mode 100644 index 0000000000..b738e2a57a --- /dev/null +++ b/bitnami/prestashop/ci/ct-values.yaml @@ -0,0 +1,2 @@ +service: + type: ClusterIP diff --git a/bitnami/redmine/ci/ct-values.yaml b/bitnami/redmine/ci/ct-values.yaml new file mode 100644 index 0000000000..b738e2a57a --- /dev/null +++ b/bitnami/redmine/ci/ct-values.yaml @@ -0,0 +1,2 @@ +service: + type: ClusterIP diff --git a/bitnami/suitecrm/ci/ct-values.yaml b/bitnami/suitecrm/ci/ct-values.yaml new file mode 100644 index 0000000000..b738e2a57a --- /dev/null +++ b/bitnami/suitecrm/ci/ct-values.yaml @@ -0,0 +1,2 @@ +service: + type: ClusterIP diff --git a/bitnami/tensorflow-resnet/ci/ct-values.yaml b/bitnami/tensorflow-resnet/ci/ct-values.yaml new file mode 100644 index 0000000000..b738e2a57a --- /dev/null +++ b/bitnami/tensorflow-resnet/ci/ct-values.yaml @@ -0,0 +1,2 @@ +service: + type: ClusterIP diff --git a/bitnami/testlink/ci/ct-values.yaml b/bitnami/testlink/ci/ct-values.yaml new file mode 100644 index 0000000000..b738e2a57a --- /dev/null +++ b/bitnami/testlink/ci/ct-values.yaml @@ -0,0 +1,2 @@ +service: + type: ClusterIP diff --git a/bitnami/tomcat/ci/ct-values.yaml b/bitnami/tomcat/ci/ct-values.yaml new file mode 100644 index 0000000000..b738e2a57a --- /dev/null +++ b/bitnami/tomcat/ci/ct-values.yaml @@ -0,0 +1,2 @@ +service: + type: ClusterIP diff --git a/bitnami/wildfly/ci/ct-values.yaml b/bitnami/wildfly/ci/ct-values.yaml new file mode 100644 index 0000000000..b738e2a57a --- /dev/null +++ b/bitnami/wildfly/ci/ct-values.yaml @@ -0,0 +1,2 @@ +service: + type: ClusterIP diff --git a/bitnami/wordpress/ci/ct-values.yaml b/bitnami/wordpress/ci/ct-values.yaml new file mode 100644 index 0000000000..b738e2a57a --- /dev/null +++ b/bitnami/wordpress/ci/ct-values.yaml @@ -0,0 +1,2 @@ +service: + type: ClusterIP