From 6acb59f97940367c2aad95a982a3732a86162018 Mon Sep 17 00:00:00 2001 From: Sanket Sudake Date: Wed, 8 Jan 2025 12:49:54 +0530 Subject: [PATCH] Update k8s versions and set minimum version to 1.27.0 (#3134) * Update Kind Kuberntes versions * Minimum k8s version to 1.27.0 * Pin ubuntu version in actions --------- Signed-off-by: Sanket Sudake --- .github/workflows/codeql.yaml | 2 +- .github/workflows/dependency-review.yml | 2 +- .github/workflows/lint-dashboards.yaml | 2 +- .github/workflows/lint.yaml | 4 ++-- .github/workflows/push_pr.yaml | 10 +++++----- .github/workflows/release.yaml | 12 ++++++------ .github/workflows/scorecard.yml | 2 +- .github/workflows/upgrade_test.yaml | 8 ++++---- charts/fission-all/Chart.yaml | 2 +- pkg/canaryconfigmgr/prometheusClient.go | 2 +- tools/crd-ref-docs/config.yaml | 2 +- 11 files changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/codeql.yaml b/.github/workflows/codeql.yaml index 39b2ce09..dafde75b 100644 --- a/.github/workflows/codeql.yaml +++ b/.github/workflows/codeql.yaml @@ -20,7 +20,7 @@ jobs: actions: read # for github/codeql-action/init to get workflow details contents: read # for actions/checkout to fetch code security-events: write # for github/codeql-action/analyze to upload SARIF results - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-ci') }} steps: - name: Harden Runner diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 21a469b1..43455866 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -14,7 +14,7 @@ permissions: jobs: dependency-review: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: Harden Runner uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 diff --git a/.github/workflows/lint-dashboards.yaml b/.github/workflows/lint-dashboards.yaml index d144a796..0c7f3aac 100644 --- a/.github/workflows/lint-dashboards.yaml +++ b/.github/workflows/lint-dashboards.yaml @@ -17,7 +17,7 @@ permissions: jobs: lint-dashboards: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-ci') }} steps: - name: Harden Runner diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index a922864e..fbc2c482 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -17,7 +17,7 @@ on: - go.sum env: - GOLANGCI_LINT_VERSION: v1.61.0 + GOLANGCI_LINT_VERSION: v1.63.4 GOLANGCI_LINT_TIMEOUT: 5m permissions: @@ -28,7 +28,7 @@ jobs: permissions: contents: read # for actions/checkout to fetch code pull-requests: read # for golangci/golangci-lint-action to fetch pull requests - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 # if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-ci') }} steps: - name: Harden Runner diff --git a/.github/workflows/push_pr.yaml b/.github/workflows/push_pr.yaml index 8a5e1355..7ff49fe6 100644 --- a/.github/workflows/push_pr.yaml +++ b/.github/workflows/push_pr.yaml @@ -22,8 +22,8 @@ on: - go.sum env: - HELM_VERSION: v3.13.0 - KIND_VERSION: v0.23.0 + HELM_VERSION: v3.16.4 + KIND_VERSION: v0.26.0 KIND_CLUSTER_NAME: kind permissions: @@ -37,8 +37,8 @@ jobs: strategy: fail-fast: false matrix: - kindversion: ["v1.25.16", "v1.27.13", "v1.30.0"] - os: [ubuntu-latest] + kindversion: ["v1.28.15", "v1.30.8", "v1.32.0"] + os: [ubuntu-24.04] steps: - name: Harden Runner uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 @@ -186,7 +186,7 @@ jobs: fail-fast: false matrix: kindversion: ["v1.19.16"] - os: [ubuntu-latest] + os: [ubuntu-24.04] steps: - name: Harden Runner uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index fbed3330..2d333a2a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -6,8 +6,8 @@ on: - v2.** env: - KIND_VERSION: v0.23.0 - KIND_NODE_IMAGE_TAG: v1.25.16 + KIND_VERSION: v0.26.0 + KIND_NODE_IMAGE_TAG: v1.28.15 KIND_CLUSTER_NAME: kind COSIGN_VERSION: v2.4.1 @@ -22,7 +22,7 @@ jobs: contents: write # for goreleaser/goreleaser-action to create a GitHub release packages: write # for goreleaser/goreleaser-action to upload artifacts to GitHub Packages id-token: write # for cosign to sign the image and binary - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: Harden Runner uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 @@ -160,7 +160,7 @@ jobs: name: Create SBOM for container images # Goreleaser does not support generating SBOM for container images. needs: [create-draft-release] - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 strategy: matrix: include: ${{ fromJson(needs.create-draft-release.outputs.ghcr_images) }} @@ -202,7 +202,7 @@ jobs: binary-provenance-verification-with-slsa-verifier: name : Verify Binary Provenance needs: [create-draft-release, binary-provenance] - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 permissions: contents: write # To download the assets from draft release. steps: @@ -247,7 +247,7 @@ jobs: strategy: matrix: include: ${{ fromJson(needs.create-draft-release.outputs.ghcr_images) }} - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 permissions: read-all steps: - name: Login diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index dfaa704a..615754fe 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -20,7 +20,7 @@ permissions: read-all jobs: analysis: name: Scorecard analysis - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 permissions: # Needed to upload the results to code-scanning dashboard. security-events: write diff --git a/.github/workflows/upgrade_test.yaml b/.github/workflows/upgrade_test.yaml index 0945dfda..9dbbe6e9 100644 --- a/.github/workflows/upgrade_test.yaml +++ b/.github/workflows/upgrade_test.yaml @@ -22,8 +22,8 @@ on: - go.sum env: - HELM_VERSION: v3.13.0 - KIND_VERSION: v0.23.0 + HELM_VERSION: v3.16.4 + KIND_VERSION: v0.26.0 KIND_CLUSTER_NAME: kind permissions: @@ -36,8 +36,8 @@ jobs: strategy: fail-fast: false matrix: - kindversion: ["v1.25.16"] - os: [ubuntu-latest] + kindversion: ["v1.28.15"] + os: [ubuntu-24.04] steps: - name: Harden Runner uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 diff --git a/charts/fission-all/Chart.yaml b/charts/fission-all/Chart.yaml index f23478fc..9b5ecdc9 100644 --- a/charts/fission-all/Chart.yaml +++ b/charts/fission-all/Chart.yaml @@ -3,7 +3,7 @@ name: fission-all version: v1.20.5 appVersion: v1.20.5 description: Fission is a fast serverless framework for Kubernetes. -kubeVersion: ">=1.25.0-0" +kubeVersion: ">=1.27.0-0" home: https://fission.io/ icon: https://fission.io/images/fission-logo-white.svg sources: diff --git a/pkg/canaryconfigmgr/prometheusClient.go b/pkg/canaryconfigmgr/prometheusClient.go index 7dbc3bb8..153ba695 100644 --- a/pkg/canaryconfigmgr/prometheusClient.go +++ b/pkg/canaryconfigmgr/prometheusClient.go @@ -63,7 +63,7 @@ func (promApiClient *PrometheusApiClient) GetFunctionFailurePercentage(ctx conte } if reqs <= 0 { - return -1, fmt.Errorf("no requests to this url %v and method %v in the window: %v", path, methods, window) + return -1, fmt.Errorf("no requests to this url %s and method %v in the window: %s", path, methods, window) } // next, get a total count of errored out requests to this function in the same window diff --git a/tools/crd-ref-docs/config.yaml b/tools/crd-ref-docs/config.yaml index bdff1eac..039da325 100644 --- a/tools/crd-ref-docs/config.yaml +++ b/tools/crd-ref-docs/config.yaml @@ -3,4 +3,4 @@ processor: - "(CanaryConfig|Environment|Function|HTTPTrigger|KubernetesWatchTrigger|MessageQueueTrigger|Package|TimeTrigger)List$" render: # Version of Kubernetes to use when generating links to Kubernetes API documentation. - kubernetesVersion: 1.22 + kubernetesVersion: 1.28