Skip to content

Commit

Permalink
remove k8s client from memory store
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig O'Donnell committed Oct 19, 2023
1 parent ca64557 commit 8159fc5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion pkg/apiserver/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ func bootstrap(params APIServerParams) error {
}

store.InitInMemory(store.InitInMemoryStoreOptions{
Clientset: clientset,
License: verifiedLicense,
LicenseFields: params.LicenseFields,
AppName: params.AppName,
Expand Down
4 changes: 0 additions & 4 deletions pkg/store/memory_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ import (
appstatetypes "github.com/replicatedhq/replicated-sdk/pkg/appstate/types"
sdklicensetypes "github.com/replicatedhq/replicated-sdk/pkg/license/types"
upstreamtypes "github.com/replicatedhq/replicated-sdk/pkg/upstream/types"
"k8s.io/client-go/kubernetes"
)

type InMemoryStore struct {
clientset kubernetes.Interface
replicatedID string
appID string
license *kotsv1beta1.License
Expand All @@ -30,7 +28,6 @@ type InMemoryStore struct {
}

type InitInMemoryStoreOptions struct {
Clientset kubernetes.Interface
ReplicatedID string
AppID string
License *kotsv1beta1.License
Expand All @@ -49,7 +46,6 @@ type InitInMemoryStoreOptions struct {

func InitInMemory(options InitInMemoryStoreOptions) {
SetStore(&InMemoryStore{
clientset: options.Clientset,
replicatedID: options.ReplicatedID,
appID: options.AppID,
appSlug: options.License.Spec.AppSlug,
Expand Down

0 comments on commit 8159fc5

Please sign in to comment.