Skip to content

Commit

Permalink
Do not use new version of library in examples to make the tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
llamallamaduck committed Feb 1, 2022
1 parent bf4aeba commit 7c72cb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ import (
func TestGuestbook(t *testing.T) {
v := golden.NewValidator(t, api.SchemeBuilder)
dr := &GuestbookReconciler{
Client: v.Client(),
//Client: v.Client(),
// TODO: Uncomment line above, remove the line below to use latest version of kubebuilder-declarative-pattern
Client: v.Manager().GetClient(),
}
err := dr.setupReconciler(v.Manager())
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion examples/guestbook-operator/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,4 @@ require (
sigs.k8s.io/yaml v1.2.0 // indirect
)

replace sigs.k8s.io/kubebuilder-declarative-pattern v0.0.0-20210922163802-cac4a6cf1977 => ../../
//replace sigs.k8s.io/kubebuilder-declarative-pattern v0.0.0-20210922163802-cac4a6cf1977 => ../../

0 comments on commit 7c72cb2

Please sign in to comment.