From 504c1f3f70e8bd03c1c664d61bc2396b04206602 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 23 Apr 2024 21:51:19 +0000 Subject: [PATCH 1/3] Bump helm/kind-action from 1.8.0 to 1.10.0 Bumps [helm/kind-action](https://github.com/helm/kind-action) from 1.8.0 to 1.10.0. - [Release notes](https://github.com/helm/kind-action/releases) - [Commits](https://github.com/helm/kind-action/compare/v1.8.0...v1.10.0) --- updated-dependencies: - dependency-name: helm/kind-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/lint-test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint-test.yaml b/.github/workflows/lint-test.yaml index 45739610..b28fd25e 100644 --- a/.github/workflows/lint-test.yaml +++ b/.github/workflows/lint-test.yaml @@ -45,7 +45,7 @@ jobs: run: ct lint --target-branch ${{ github.event.repository.default_branch }} - name: Create kind cluster - uses: helm/kind-action@v1.8.0 + uses: helm/kind-action@v1.10.0 if: steps.list-changed.outputs.changed == 'true' - name: Run chart-testing (install) From 1ae7421fd91a9e3b30f4f3fa27f60e2481dbbd63 Mon Sep 17 00:00:00 2001 From: kahirokunn Date: Wed, 1 May 2024 19:51:15 +0900 Subject: [PATCH 2/3] chore: Prevent displaying constant diffs for nextcloud-token in ArgoCD (#554) * chore: Prevent displaying constant diffs for nextcloud-token in ArgoCD When metrics are not enabled, the use of randAlphaNum was causing constant diffs for nextcloud-token in ArgoCD. To mitigate this issue, now nextcloud-token won't be configured when metrics are not enabled. Signed-off-by: kahirokunn * Update charts/nextcloud/templates/secrets.yaml Co-authored-by: JesseBot Signed-off-by: kahirokunn * Update charts/nextcloud/Chart.yaml Co-authored-by: JesseBot Signed-off-by: kahirokunn --------- Signed-off-by: kahirokunn Signed-off-by: JesseBot Co-authored-by: JesseBot --- charts/nextcloud/Chart.yaml | 2 +- charts/nextcloud/templates/secrets.yaml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/nextcloud/Chart.yaml b/charts/nextcloud/Chart.yaml index e9048363..243346f3 100644 --- a/charts/nextcloud/Chart.yaml +++ b/charts/nextcloud/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: nextcloud -version: 4.6.7 +version: 4.6.8 appVersion: 29.0.0 description: A file sharing server that puts the control and security of your own data back into your hands. keywords: diff --git a/charts/nextcloud/templates/secrets.yaml b/charts/nextcloud/templates/secrets.yaml index 9b3ed4f9..0858255e 100644 --- a/charts/nextcloud/templates/secrets.yaml +++ b/charts/nextcloud/templates/secrets.yaml @@ -17,9 +17,9 @@ data: {{- else }} nextcloud-password: {{ randAlphaNum 10 | b64enc | quote }} {{- end }} - {{- with .Values.metrics.token }} - nextcloud-token: {{ . | b64enc | quote }} - {{- else }} + {{- if and .Values.metrics.enabled .Values.metrics.token }} + nextcloud-token: {{ .Values.metrics.token | b64enc | quote }} + {{- else if and .Values.metrics.enabled (not .Values.metrics.token) }} nextcloud-token: {{ randAlphaNum 10 | b64enc | quote }} {{- end }} {{- if .Values.nextcloud.mail.enabled }} From ba6ce9d9d1d1d1e1cb8ff94931420e4a392a0bc8 Mon Sep 17 00:00:00 2001 From: JesseBot Date: Wed, 29 May 2024 15:58:53 +0200 Subject: [PATCH 3/3] only run chart linting for specific files instead of trying to catch every exception (#575) * only run chart linting for specific files instead of trying to catch every exception Signed-off-by: jessebot * attempt to adapt changes from https://github.com/nextcloud/.github/blob/master/workflow-templates/node.yml Signed-off-by: jessebot * add needs: changes to lint job Signed-off-by: jessebot * remove summary job afterall Signed-off-by: jessebot --------- Signed-off-by: jessebot --- .github/workflows/lint-test.yaml | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/.github/workflows/lint-test.yaml b/.github/workflows/lint-test.yaml index 45739610..14c37ceb 100644 --- a/.github/workflows/lint-test.yaml +++ b/.github/workflows/lint-test.yaml @@ -2,17 +2,29 @@ name: Lint and Test Charts on: pull_request: - paths-ignore: - - '.github/**' - - 'charts/**/README.md' - - 'CODE_OF_CONDUCT.md' - - 'CONTRIBUTING.md' - - 'LICENSE' - - 'README.md' - + paths: jobs: + changes: + runs-on: ubuntu-latest-low + + outputs: + src: ${{ steps.changes.outputs.src}} + + steps: + - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2 + id: changes + continue-on-error: true + with: + filters: | + src: + - 'charts/nextcloud/Chart.yaml' + - 'charts/nextcloud/values.yaml' + - 'charts/nextcloud/templates/**' + lint-test: runs-on: ubuntu-22.04 + needs: changes + if: needs.changes.outputs.src != 'false' steps: - name: Checkout uses: actions/checkout@v4