Skip to content

Commit

Permalink
Test against k8s 1.28.0 (#271)
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha authored Nov 23, 2023
1 parent 13aefcd commit fbfec3b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
needs: build
strategy:
matrix:
k8s: [v1.19.16, v1.20.15, v1.21.14, v1.22.17, v1.23.17, v1.24.12, v1.25.8, v1.26.3, v1.27.1]
k8s: [v1.20.15, v1.21.14, v1.22.17, v1.23.17, v1.24.12, v1.25.8, v1.26.3, v1.27.1, v1.28.0]
steps:
- uses: actions/checkout@v1

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ ARCH := $(if $(GOARCH),$(GOARCH),$(shell go env GOARCH))
BASEIMAGE_PROD ?= gcr.io/distroless/static-debian11
BASEIMAGE_DBG ?= debian:bullseye

GO_VERSION ?= 1.20
GO_VERSION ?= 1.21
BUILD_IMAGE ?= ghcr.io/appscode/golang-dev:$(GO_VERSION)
CHART_TEST_IMAGE ?= quay.io/helmpack/chart-testing:v3.5.1

Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ go 1.18
require (
go.openviz.dev/installer v0.0.0-20230802073927-bc7c337886e9
gomodules.xyz/go-sh v0.1.0
gopkg.in/yaml.v3 v3.0.1
k8s.io/api v0.25.3
k8s.io/apimachinery v0.25.4
kmodules.xyz/objectstore-api v0.25.1
kmodules.xyz/resource-metadata v0.17.39-0.20231101070123-9cfd0519c7f9
kmodules.xyz/schema-checker v0.4.1
kubeops.dev/external-dns-operator v0.0.6
sigs.k8s.io/yaml v1.3.0
stash.appscode.dev/apimachinery v0.32.0
)

Expand Down Expand Up @@ -81,6 +81,7 @@ require (
google.golang.org/protobuf v1.31.0 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
k8s.io/apiextensions-apiserver v0.25.3 // indirect
k8s.io/client-go v0.25.3 // indirect
k8s.io/klog/v2 v2.80.1 // indirect
Expand All @@ -91,7 +92,6 @@ require (
sigs.k8s.io/controller-runtime v0.13.1 // indirect
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
sigs.k8s.io/yaml v1.3.0 // indirect
x-helm.dev/apimachinery v0.0.15 // indirect
)

Expand Down
10 changes: 6 additions & 4 deletions tests/check-charts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ import (
"go.bytebuilders.dev/installer/apis/installer/v1alpha1"

shell "gomodules.xyz/go-sh"
"gopkg.in/yaml.v3"
"sigs.k8s.io/yaml"
)

const ociReg = "oci://ghcr.io/appscode-charts/"

func Test_checkVersions(t *testing.T) {
if err := checkAceInstallerVersions(); err != nil {
t.Errorf("checkVersions() error = %v", err)
Expand Down Expand Up @@ -64,7 +66,7 @@ func checkAceInstallerVersions() error {

for k, v := range spec.Helm.Releases {
// helm pull appscode/ace-installer --version=v2023.03.23
fullname := "oci://ghcr.io/appscode-charts/" + k
fullname := ociReg + k
err := sh.Command("helm", "pull", fullname, "--version", v.Version).Run()
if err != nil {
return err
Expand Down Expand Up @@ -96,7 +98,7 @@ func checkAceOcmAddonsVersions() error {

for k, v := range spec.Helm.Releases {
// helm pull appscode/ace-installer --version=v2023.03.23
fullname := "oci://ghcr.io/appscode-charts/" + k
fullname := ociReg + k
err := sh.Command("helm", "pull", fullname, "--version", v.Version).Run()
if err != nil {
return err
Expand Down Expand Up @@ -128,7 +130,7 @@ func checkOpscenterFeaturesVersions() error {

for k, v := range spec.Helm.Releases {
// helm pull appscode/ace-installer --version=v2023.03.23
fullname := "oci://ghcr.io/appscode-charts/" + k
fullname := ociReg + k
err := sh.Command("helm", "pull", fullname, "--version", v.Version).Run()
if err != nil {
return err
Expand Down

0 comments on commit fbfec3b

Please sign in to comment.