Skip to content

Commit

Permalink
replace deprecated ioutil
Browse files Browse the repository at this point in the history
  • Loading branch information
bakito committed Aug 12, 2022
1 parent e0c965d commit 1e452cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/configmap/webhook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var _ = Describe("Configmap", func() {
})
It("should add a cacerts binary entry", func() {
cm.Data["a.pem"] = cert
// c, _ := ioutil.ReadFile("/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem")
// c, _ := os.ReadFile("/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem")
// cm.Data["a.pem"] = string(c)
wh.Mutate(ctx, admission.Request{}, cm)
Ω(cm.BinaryData).Should(HaveLen(1))
Expand Down

0 comments on commit 1e452cb

Please sign in to comment.