diff --git a/.github/workflows/lint-test.yaml b/.github/workflows/lint-test.yaml index 96966320c..23b68d081 100644 --- a/.github/workflows/lint-test.yaml +++ b/.github/workflows/lint-test.yaml @@ -7,39 +7,39 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 with: fetch-depth: 0 - name: Set up Helm - uses: azure/setup-helm@b9e51907a09c216f16ebe8536097933489208112 # v4.3.0 + uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0 with: - version: v3.17.2 + version: latest # Python is required because `ct lint` runs Yamale (https://github.com/23andMe/Yamale) and # yamllint (https://github.com/adrienverge/yamllint) which require Python - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 with: - python-version: 3.9 + python-version: 3.x - name: Set up chart-testing - uses: helm/chart-testing-action@v2.7.0 + uses: helm/chart-testing-action@e6669bcd63d7cb57cb4380c33043eebe5d111992 # v2.6.1 - name: Run chart-testing (list-changed) id: list-changed run: | - changed=$(ct list-changed --chart-dirs charts/fluent-operator --config charts/ct.yaml) + changed=$(ct list-changed --config charts/ct.yaml) if [[ -n "$changed" ]]; then - echo "changed=true" >> $GITHUB_OUTPUT + echo "changed=true" >> "${GITHUB_OUTPUT}" fi - - name: Run chart-testing (lint) - run: ct lint --chart-dirs charts/fluent-operator --config charts/ct.yaml + run: ct lint --config charts/ct.yaml - name: Create kind cluster - uses: helm/kind-action@v1.12.0 if: steps.list-changed.outputs.changed == 'true' + uses: helm/kind-action@0025e74a8c7512023d06dc019c617aa3cf561fde # v1.10.0 - name: Run chart-testing (install) - run: ct install --chart-dirs charts/fluent-operator --config charts/ct.yaml + if: steps.list-changed.outputs.changed == 'true' + run: ct install --config charts/ct.yaml diff --git a/charts/ct.yaml b/charts/ct.yaml index 778f234bb..c435c84bb 100644 --- a/charts/ct.yaml +++ b/charts/ct.yaml @@ -3,4 +3,4 @@ remote: origin chart-dirs: - charts/fluent-operator helm-extra-args: --timeout=500s -target-branch: master \ No newline at end of file +target-branch: master diff --git a/charts/fluent-operator/Chart.yaml b/charts/fluent-operator/Chart.yaml index 205642e7f..91d5b17a9 100644 --- a/charts/fluent-operator/Chart.yaml +++ b/charts/fluent-operator/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: fluent-operator -description: Fluent Operator provides great flexibility in building a logging layer based on Fluent Bit and Fluentd. +description: Fluent Operator provides great flexibility in building a logging layer based on Fluent Bit and Fluentd. Testing. keywords: - logging - fluent-bit