diff --git a/.github/workflows/push_pr.yaml b/.github/workflows/push_pr.yaml index 72de1d2a..71ccdd50 100644 --- a/.github/workflows/push_pr.yaml +++ b/.github/workflows/push_pr.yaml @@ -23,7 +23,7 @@ on: env: HELM_VERSION: v3.10.1 - KIND_VERSION: v0.17.0 + KIND_VERSION: v0.20.0 jobs: # Job to run change detection @@ -33,7 +33,7 @@ jobs: strategy: fail-fast: false matrix: - kindversion: ["v1.19.16", "v1.20.15", "v1.21.14"] + kindversion: ["v1.23.17", "v1.25.11", "v1.27.3"] os: [ubuntu-latest] steps: - name: Checkout sources diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 6c490051..2daece16 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -6,8 +6,8 @@ on: - v2.** env: - KIND_VERSION: v0.17.0 - KIND_NODE_IMAGE_TAG: v1.19.16 + KIND_VERSION: v0.20.0 + KIND_NODE_IMAGE_TAG: v1.23.17 jobs: create-draft-release: diff --git a/.github/workflows/upgrade_test.yaml b/.github/workflows/upgrade_test.yaml index de11b79a..cb168ba1 100644 --- a/.github/workflows/upgrade_test.yaml +++ b/.github/workflows/upgrade_test.yaml @@ -23,7 +23,7 @@ on: env: HELM_VERSION: v3.10.1 - KIND_VERSION: v0.17.0 + KIND_VERSION: v0.20.0 jobs: upgrade-test: @@ -32,7 +32,7 @@ jobs: strategy: fail-fast: false matrix: - kindimage: ["kindest/node:v1.19.16"] + kindimage: ["kindest/node:v1.23.17"] os: [ubuntu-latest] steps: - name: Checkout action sources diff --git a/.mergify.yml b/.mergify.yml index daea0925..65ab958a 100644 --- a/.mergify.yml +++ b/.mergify.yml @@ -8,10 +8,10 @@ pull_request_rules: - check-success=CodeQL-Build - check-success=CodeQL - check-success=lint - - check-success=upgrade-test (kindest/node:v1.19.11, ubuntu-latest) - - check-success=integration-test (v1.19.11, ubuntu-latest) - - check-success=integration-test (v1.20.7, ubuntu-latest) - - check-success=integration-test (v1.21.1, ubuntu-latest) + - check-success=upgrade-test (kindest/node:v1.23.17, ubuntu-latest) + - check-success=integration-test (v1.23.17, ubuntu-latest) + - check-success=integration-test (v1.25.11, ubuntu-latest) + - check-success=integration-test (v1.27.3, ubuntu-latest) actions: merge: method: squash diff --git a/pkg/fission-cli/util/util.go b/pkg/fission-cli/util/util.go index d634ec94..b98a0832 100644 --- a/pkg/fission-cli/util/util.go +++ b/pkg/fission-cli/util/util.go @@ -99,15 +99,15 @@ func KubifyName(old string) string { newName := strings.ToLower(old) // replace disallowed chars with '-' - inv, _ := regexp.Compile("[^-a-z0-9]") + inv := regexp.MustCompile("[^-a-z0-9]") newName = string(inv.ReplaceAll([]byte(newName), []byte("-"))) // trim leading non-alphabetic - leadingnonalpha, _ := regexp.Compile("^[^a-z]+") + leadingnonalpha := regexp.MustCompile("^[^a-z]+") newName = string(leadingnonalpha.ReplaceAll([]byte(newName), []byte{})) // trim trailing - trailing, _ := regexp.Compile("[^a-z0-9]+$") + trailing := regexp.MustCompile("[^a-z0-9]+$") newName = string(trailing.ReplaceAll([]byte(newName), []byte{})) // truncate to length