Skip to content

Commit

Permalink
restoring go v1.22
Browse files Browse the repository at this point in the history
Signed-off-by: SRIKUMAR VENUGOPAL <srikumarv@ie.ibm.com>
  • Loading branch information
srikumar003 committed Apr 26, 2024
1 parent b75945a commit 39543a9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/dataset-operator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the manager binary
FROM golang:1.21 as builder
FROM golang:1.22 as builder

WORKDIR /dataset-operator
# Copy the Go Modules manifests
Expand Down
19 changes: 19 additions & 0 deletions src/dataset-operator/admissioncontroller/mutatingwebhook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
jsonpatch "gomodules.xyz/jsonpatch/v2"
admissionv1 "k8s.io/api/admission/v1"
corev1 "k8s.io/api/core/v1"
"k8s.io/client-go/kubernetes/scheme"
"sigs.k8s.io/controller-runtime/pkg/client"
Expand Down Expand Up @@ -314,6 +315,24 @@ var _ = DescribeTable("Pod is mutated correctly",
}),
)

type testAdmissionRequest struct {
inputRequest func() *admissionv1.AdmissionRequest
outResponse func() *admissionv1.AdmissionResponse
}

var _ = DescribeTable("Mutation operation happens correctly",
func(ts *testAdmissionRequest) {

},
Entry("", &testAdmissionRequest{
inputRequest: func() *admissionv1.AdmissionRequest {
return nil
},
outResponse: func() *admissionv1.AdmissionResponse {
return nil
},
}))

var _ = AfterSuite(func() {
By("tearing down the test environment")
err := testEnv.Stop()
Expand Down

0 comments on commit 39543a9

Please sign in to comment.