Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Jun 11, 2024
1 parent e15631c commit d267972
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 16 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ require (
kmodules.xyz/custom-resources v0.29.1
kmodules.xyz/go-containerregistry v0.0.12
kmodules.xyz/monitoring-agent-api v0.29.0
kmodules.xyz/resource-metadata v0.18.7-0.20240611075122-490ab7bad5db
kmodules.xyz/resource-metadata v0.18.7-0.20240611082433-09fbe76307ab
kmodules.xyz/resource-metrics v0.30.1
kmodules.xyz/resource-metrics/utils v0.30.1
kmodules.xyz/sets v0.29.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -914,8 +914,8 @@ kmodules.xyz/monitoring-agent-api v0.29.0 h1:gpFl6OZrlMLb/ySMHdREI9EwGtnJ91oZBn9
kmodules.xyz/monitoring-agent-api v0.29.0/go.mod h1:iNbvaMTgVFOI5q2LJtGK91j4Dmjv4ZRiRdasGmWLKQI=
kmodules.xyz/offshoot-api v0.29.4 h1:WQV2BIUIoVKKiqZNmZ4gAy367jEdwBhEl3dFCLZM1qA=
kmodules.xyz/offshoot-api v0.29.4/go.mod h1:e+NQ0s4gW/YTPWBWEfdISZcmk+tlTq8IjvP5SLdqvko=
kmodules.xyz/resource-metadata v0.18.7-0.20240611075122-490ab7bad5db h1:7LnANNqnxlS0tnFHw1fpR0plXHnaMIT3Bof3joGq1NA=
kmodules.xyz/resource-metadata v0.18.7-0.20240611075122-490ab7bad5db/go.mod h1:WKwJXM00EFKeDXDF+fjEMwxyZnKs/1SXMj9nt0VbDHs=
kmodules.xyz/resource-metadata v0.18.7-0.20240611082433-09fbe76307ab h1:YnJ8gzmFalCr2DcZPZF275Fod9I8yvsgdx0yjhFixx8=
kmodules.xyz/resource-metadata v0.18.7-0.20240611082433-09fbe76307ab/go.mod h1:WKwJXM00EFKeDXDF+fjEMwxyZnKs/1SXMj9nt0VbDHs=
kmodules.xyz/resource-metrics v0.30.1 h1:o7mVY8ZwSe5iEILy1eMG4EPZCli7mXZCkgQONjoY9uU=
kmodules.xyz/resource-metrics v0.30.1/go.mod h1:UYcQQLN+3o8rNPQJwJa2D9bt5ihJCeo5bCDuQ4O3MPY=
kmodules.xyz/resource-metrics/utils v0.30.1 h1:iRnAKNMMdAi7QYjMQrK9W3vNMhSC21RWNx9yS3qlpTA=
Expand Down
4 changes: 2 additions & 2 deletions pkg/apiserver/apiserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ import (
scannerscheme "kubeops.dev/scanner/client/clientset/versioned/scheme"
costinstall "kubeops.dev/ui-server/apis/cost/install"
costapi "kubeops.dev/ui-server/apis/cost/v1alpha1"
identityinstall "kmodules.xyz/resource-metadata/apis/identity/install"
identityapi "kmodules.xyz/resource-metadata/apis/identity/v1alpha1"
licenseinstall "kubeops.dev/ui-server/apis/offline/install"
licenseapi "kubeops.dev/ui-server/apis/offline/v1alpha1"
policyinstall "kubeops.dev/ui-server/apis/policy/install"
Expand Down Expand Up @@ -99,6 +97,8 @@ import (
promclient "kmodules.xyz/monitoring-agent-api/client"
rscoreinstall "kmodules.xyz/resource-metadata/apis/core/install"
rscoreapi "kmodules.xyz/resource-metadata/apis/core/v1alpha1"
identityinstall "kmodules.xyz/resource-metadata/apis/identity/install"
identityapi "kmodules.xyz/resource-metadata/apis/identity/v1alpha1"
mgmtinstall "kmodules.xyz/resource-metadata/apis/management/install"
rsinstall "kmodules.xyz/resource-metadata/apis/meta/install"
rsapi "kmodules.xyz/resource-metadata/apis/meta/v1alpha1"
Expand Down
3 changes: 1 addition & 2 deletions pkg/b3/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@ import (
"net/http"
"path"

identityapi "kmodules.xyz/resource-metadata/apis/identity/v1alpha1"

"go.bytebuilders.dev/license-verifier/info"
apierrors "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apimachinery/pkg/util/json"
identityapi "kmodules.xyz/resource-metadata/apis/identity/v1alpha1"
)

type Client struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmds/server/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import (

reportsapi "kubeops.dev/scanner/apis/reports/v1alpha1"
costapi "kubeops.dev/ui-server/apis/cost/v1alpha1"
identityapi "kmodules.xyz/resource-metadata/apis/identity/v1alpha1"
licenseapi "kubeops.dev/ui-server/apis/offline/v1alpha1"
policyapi "kubeops.dev/ui-server/apis/policy/v1alpha1"
"kubeops.dev/ui-server/pkg/apiserver"
Expand All @@ -51,6 +50,7 @@ import (
"kmodules.xyz/client-go/tools/clientcmd"
promclient "kmodules.xyz/monitoring-agent-api/client"
rscoreapi "kmodules.xyz/resource-metadata/apis/core/v1alpha1"
identityapi "kmodules.xyz/resource-metadata/apis/identity/v1alpha1"
rsapi "kmodules.xyz/resource-metadata/apis/meta/v1alpha1"
ui "kmodules.xyz/resource-metadata/apis/ui/v1alpha1"
uiapi "kmodules.xyz/resource-metadata/apis/ui/v1alpha1"
Expand Down
2 changes: 1 addition & 1 deletion pkg/registry/identity/clusteridentity/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"context"
"strings"

identityapi "kmodules.xyz/resource-metadata/apis/identity/v1alpha1"
"kubeops.dev/ui-server/pkg/b3"

"gomodules.xyz/sync"
Expand All @@ -31,6 +30,7 @@ import (
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apiserver/pkg/registry/rest"
identityapi "kmodules.xyz/resource-metadata/apis/identity/v1alpha1"
"sigs.k8s.io/controller-runtime/pkg/client"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/registry/identity/inboxtokenrequest/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ import (
"context"
"strings"

identityapi "kmodules.xyz/resource-metadata/apis/identity/v1alpha1"
"kubeops.dev/ui-server/pkg/b3"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apiserver/pkg/registry/rest"
identityapi "kmodules.xyz/resource-metadata/apis/identity/v1alpha1"
"sigs.k8s.io/controller-runtime/pkg/client"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ import (
"context"
"sort"

identityapi "kmodules.xyz/resource-metadata/apis/identity/v1alpha1"

authorization "k8s.io/api/authorization/v1"
core "k8s.io/api/core/v1"
apierrors "k8s.io/apimachinery/pkg/api/errors"
Expand All @@ -32,6 +30,7 @@ import (
"k8s.io/apiserver/pkg/registry/rest"
"k8s.io/client-go/kubernetes"
clustermeta "kmodules.xyz/client-go/cluster"
identityapi "kmodules.xyz/resource-metadata/apis/identity/v1alpha1"
"sigs.k8s.io/controller-runtime/pkg/client"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ import (
const GroupName = "identity.k8s.appscode.com"

var (
// GroupVersion is group version used to register these objects
GroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
// SchemeGroupVersion is group version used to register these objects
SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}

// SchemeBuilder is used to add go types to the GroupVersionKind scheme
SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}
SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}

// AddToScheme adds the types in this group-version to the given scheme.
AddToScheme = SchemeBuilder.AddToScheme
Expand Down
2 changes: 1 addition & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1955,7 +1955,7 @@ kmodules.xyz/monitoring-agent-api/client
## explicit; go 1.22.0
kmodules.xyz/offshoot-api/api/v1
kmodules.xyz/offshoot-api/api/v2
# kmodules.xyz/resource-metadata v0.18.7-0.20240611075122-490ab7bad5db
# kmodules.xyz/resource-metadata v0.18.7-0.20240611082433-09fbe76307ab
## explicit; go 1.22.0
kmodules.xyz/resource-metadata/apis/core/install
kmodules.xyz/resource-metadata/apis/core/v1alpha1
Expand Down

0 comments on commit d267972

Please sign in to comment.