From c82b499b010db3cc562ecfb650b2fcc9a2eeeae9 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Mon, 1 Dec 2025 14:07:38 +0530 Subject: [PATCH] Skip docs workflow --- .github/workflows/go.yml | 2 +- .github/workflows/test.yml | 42 +++++++++++++------------- pkg/transformer/kubernetes/k8sutils.go | 4 +-- 3 files changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 18acebc1..92ba708f 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -29,7 +29,7 @@ jobs: run: make bin - name: Upload a Build Artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: name: "kompose" path: "kompose" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e178aaf3..9b209208 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,7 +2,7 @@ name: Kompose CI on: push: branches: - - main + - main pull_request: env: # Avoid noisy outputs like "tput: No value for $TERM and no -T specified" @@ -27,23 +27,23 @@ jobs: - name: Perform cross compile if: ${{ matrix.cross_compile }} run: make cross - docs: - name: Build docs and Coveralls integration - runs-on: ubuntu-latest - needs: test - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-go@v5 - with: - go-version: ^1.21 - - name: Install dyff - run: go install github.com/homeport/dyff/cmd/dyff@v1.5.8 - - name: Create .coverprofile for each targeted directory by re:running tests - run: make test - - name: Collect all .coverprofile files and save it to one file gover.coverprofile - run: gover - - name: Send coverage - run: goveralls -coverprofile=gover.coverprofile -service=github - env: - # As per https://github.com/mattn/goveralls#github-actions - COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # docs: + # name: Build docs and Coveralls integration + # runs-on: ubuntu-latest + # needs: test + # steps: + # - uses: actions/checkout@v4 + # - uses: actions/setup-go@v5 + # with: + # go-version: ^1.21 + # - name: Install dyff + # run: go install github.com/homeport/dyff/cmd/dyff@v1.5.8 + # - name: Create .coverprofile for each targeted directory by re:running tests + # run: make test + # - name: Collect all .coverprofile files and save it to one file gover.coverprofile + # run: gover + # - name: Send coverage + # run: goveralls -coverprofile=gover.coverprofile -service=github + # env: + # # As per https://github.com/mattn/goveralls#github-actions + # COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/pkg/transformer/kubernetes/k8sutils.go b/pkg/transformer/kubernetes/k8sutils.go index 5a48049f..aad645d0 100644 --- a/pkg/transformer/kubernetes/k8sutils.go +++ b/pkg/transformer/kubernetes/k8sutils.go @@ -114,11 +114,11 @@ func unquoteHelmTemplates(yamlBytes []byte) []byte { // that enclose the entire value (after the colon for YAML) if idx := strings.Index(line, ": "); idx != -1 { prefix := line[:idx+2] // Keep "key: " - value := line[idx+2:] // Get the value part + value := line[idx+2:] // Get the value part // Remove surrounding quotes from value if present if (strings.HasPrefix(value, `"`) && strings.HasSuffix(value, `"`)) || - (strings.HasPrefix(value, `'`) && strings.HasSuffix(value, `'`)) { + (strings.HasPrefix(value, `'`) && strings.HasSuffix(value, `'`)) { value = value[1 : len(value)-1] } lines[i] = prefix + value