Skip to content

Commit

Permalink
fix for [flux] Upgrade Flux to the Source v1beta2 API vmware-tanzu#4506
Browse files Browse the repository at this point in the history
… (vmware-tanzu#4523)

* attempt #2

* attempt #2

* 1st checkpoint

* 2nd checkpoint
  • Loading branch information
gfichtenholt authored Mar 30, 2022
1 parent a6fe176 commit c215af4
Show file tree
Hide file tree
Showing 18 changed files with 179 additions and 149 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"reflect"
"strings"

sourcev1 "github.com/fluxcd/source-controller/api/v1beta1"
sourcev1 "github.com/fluxcd/source-controller/api/v1beta2"
corev1 "github.com/kubeapps/kubeapps/cmd/kubeapps-apis/gen/core/packages/v1alpha1"
"github.com/kubeapps/kubeapps/cmd/kubeapps-apis/plugins/fluxv2/packages/v1alpha1/common"
"github.com/kubeapps/kubeapps/cmd/kubeapps-apis/plugins/pkg/pkgutils"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"testing"
"time"

sourcev1 "github.com/fluxcd/source-controller/api/v1beta1"
sourcev1 "github.com/fluxcd/source-controller/api/v1beta2"
corev1 "github.com/kubeapps/kubeapps/cmd/kubeapps-apis/gen/core/packages/v1alpha1"
"github.com/kubeapps/kubeapps/cmd/kubeapps-apis/plugins/fluxv2/packages/v1alpha1/common"
"golang.org/x/sync/semaphore"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ import (
"testing"
"time"

sourcev1 "github.com/fluxcd/source-controller/api/v1beta1"
fluxmeta "github.com/fluxcd/pkg/apis/meta"
sourcev1 "github.com/fluxcd/source-controller/api/v1beta2"
redismock "github.com/go-redis/redismock/v8"
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
Expand Down Expand Up @@ -879,9 +880,9 @@ func TestChartWithRelativeURL(t *testing.T) {
},
Conditions: []metav1.Condition{
{
Type: "Ready",
Status: "True",
Reason: sourcev1.IndexationSucceededReason,
Type: fluxmeta.ReadyCondition,
Status: metav1.ConditionTrue,
Reason: fluxmeta.SucceededReason,
},
},
URL: ts.URL + "/index.yaml",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"time"

helmv2 "github.com/fluxcd/helm-controller/api/v2beta1"
sourcev1 "github.com/fluxcd/source-controller/api/v1beta1"
sourcev1 "github.com/fluxcd/source-controller/api/v1beta2"
"github.com/go-redis/redis/v8"
plugins "github.com/kubeapps/kubeapps/cmd/kubeapps-apis/gen/core/plugins/v1alpha1"
"github.com/kubeapps/kubeapps/cmd/kubeapps-apis/plugins/pkg/pkgutils"
Expand Down
Loading

0 comments on commit c215af4

Please sign in to comment.