Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
gao12312 committed Dec 18, 2024
1 parent 0022a1c commit a77a1f1
Show file tree
Hide file tree
Showing 19 changed files with 5,082 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@ import (

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"

kosmosv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1"
leafUtils "github.com/kosmos.io/kosmos/pkg/clustertree/cluster-manager/utils"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/types"
"sigs.k8s.io/controller-runtime/pkg/client/fake"
"sigs.k8s.io/controller-runtime/pkg/reconcile"

kosmosv1alpha1 "github.com/kosmos.io/kosmos/pkg/apis/kosmos/v1alpha1"
leafUtils "github.com/kosmos.io/kosmos/pkg/clustertree/cluster-manager/utils"
)

type MockLeafResourceManager struct {
Expand Down Expand Up @@ -90,7 +89,6 @@ func (m *MockLeafClientResourceManager) ListActualClusters() []string {

// TestReconcile verifies different scenarios in Reconcile function
func TestReconcile(t *testing.T) {

// Set up scheme
scheme := runtime.NewScheme()
_ = corev1.AddToScheme(scheme)
Expand Down
21 changes: 21 additions & 0 deletions vendor/github.com/stretchr/objx/.codeclimate.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions vendor/github.com/stretchr/objx/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions vendor/github.com/stretchr/objx/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

80 changes: 80 additions & 0 deletions vendor/github.com/stretchr/objx/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions vendor/github.com/stretchr/objx/Taskfile.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

197 changes: 197 additions & 0 deletions vendor/github.com/stretchr/objx/accessors.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a77a1f1

Please sign in to comment.