From eda0bbfed0f0f775199b2a37234dec31450486dd Mon Sep 17 00:00:00 2001 From: Piyush Kumar Date: Mon, 17 Jun 2024 15:01:02 +0530 Subject: [PATCH 1/3] implement archive environments for cluster --- apps/console/internal/app/app.go | 14 + apps/console/internal/app/grpc-server.go | 39 ++ apps/console/internal/domain/api.go | 1 + apps/console/internal/domain/environment.go | 37 ++ apps/console/internal/entities/environment.go | 2 + .../field-constants/generated_constants.go | 1 + apps/console/internal/env/env.go | 3 +- apps/console/internal/framework/framework.go | 26 +- apps/infra/internal/app/app.go | 8 + apps/infra/internal/domain/clusters.go | 16 + apps/infra/internal/domain/domain.go | 4 + apps/infra/internal/env/env.go | 1 + apps/infra/internal/framework/framework.go | 4 + grpc-interfaces/console.proto | 43 +- .../kloudlite.io/rpc/console/console.pb.go | 547 +++--------------- .../rpc/console/console_grpc.pb.go | 141 +---- 16 files changed, 256 insertions(+), 631 deletions(-) create mode 100644 apps/console/internal/app/grpc-server.go diff --git a/apps/console/internal/app/app.go b/apps/console/internal/app/app.go index 88a94b0bb..67dac3395 100644 --- a/apps/console/internal/app/app.go +++ b/apps/console/internal/app/app.go @@ -2,6 +2,8 @@ package app import ( "context" + "github.com/kloudlite/api/grpc-interfaces/kloudlite.io/rpc/console" + "github.com/kloudlite/api/pkg/k8s" "github.com/kloudlite/api/pkg/errors" @@ -32,6 +34,10 @@ type ( InfraClient grpc.Client ) +type ( + ConsoleGrpcServer grpc.Server +) + func toConsoleContext(requestCtx context.Context, accountCookieName string) (domain.ConsoleContext, error) { sess := httpServer.GetSession[*common.AuthSession](requestCtx) if sess == nil { @@ -142,6 +148,14 @@ var Module = fx.Module("app", domain.Module, + fx.Provide(func(d domain.Domain, kcli k8s.Client) console.ConsoleServer { + return newConsoleGrpcServer(d, kcli) + }), + + fx.Invoke(func(gserver ConsoleGrpcServer, srv console.ConsoleServer) { + console.RegisterConsoleServer(gserver, srv) + }), + fx.Provide(func(jc *nats.JetstreamClient, ev *env.Env, logger logging.Logger) (ErrorOnApplyConsumer, error) { topic := common.GetPlatformClusterMessagingTopic("*", "*", common.ConsoleReceiver, common.EventErrorOnApply) consumerName := "console:error-on-apply" diff --git a/apps/console/internal/app/grpc-server.go b/apps/console/internal/app/grpc-server.go new file mode 100644 index 000000000..da0a18c94 --- /dev/null +++ b/apps/console/internal/app/grpc-server.go @@ -0,0 +1,39 @@ +package app + +import ( + "context" + "github.com/kloudlite/api/apps/console/internal/domain" + "github.com/kloudlite/api/grpc-interfaces/kloudlite.io/rpc/console" + "github.com/kloudlite/api/pkg/k8s" + "github.com/kloudlite/api/pkg/repos" +) + +type grpcServer struct { + d domain.Domain + console.UnimplementedConsoleServer + kcli k8s.Client +} + +func (g *grpcServer) ArchiveEnvironmentsForCluster(ctx context.Context, in *console.ArchiveEnvironmentsForClusterIn) (*console.ArchiveEnvironmentsForClusterOut, error) { + consoleCtx := domain.ConsoleContext{ + Context: ctx, + UserId: repos.ID(in.UserId), + UserName: in.UserName, + UserEmail: in.UserEmail, + AccountName: in.AccountName, + } + + archiveStatus, err := g.d.ArchiveEnvironmentsForCluster(consoleCtx, in.ClusterName) + if err != nil { + return &console.ArchiveEnvironmentsForClusterOut{Archived: false}, err + } + + return &console.ArchiveEnvironmentsForClusterOut{Archived: archiveStatus}, nil +} + +func newConsoleGrpcServer(d domain.Domain, kcli k8s.Client) console.ConsoleServer { + return &grpcServer{ + d: d, + kcli: kcli, + } +} diff --git a/apps/console/internal/domain/api.go b/apps/console/internal/domain/api.go index 292fdd8bf..942eefe67 100644 --- a/apps/console/internal/domain/api.go +++ b/apps/console/internal/domain/api.go @@ -169,6 +169,7 @@ type Domain interface { CloneEnvironment(ctx ConsoleContext, args CloneEnvironmentArgs) (*entities.Environment, error) UpdateEnvironment(ctx ConsoleContext, env entities.Environment) (*entities.Environment, error) DeleteEnvironment(ctx ConsoleContext, name string) error + ArchiveEnvironmentsForCluster(ctx ConsoleContext, clusterName string) (bool, error) OnEnvironmentApplyError(ctx ConsoleContext, errMsg, namespace, name string, opts UpdateAndDeleteOpts) error OnEnvironmentDeleteMessage(ctx ConsoleContext, env entities.Environment) error diff --git a/apps/console/internal/domain/environment.go b/apps/console/internal/domain/environment.go index 55a73f4f1..5f57c2a9e 100644 --- a/apps/console/internal/domain/environment.go +++ b/apps/console/internal/domain/environment.go @@ -395,6 +395,43 @@ func (d *domain) getEnvironmentTargetNamespace(envName string) string { return fmt.Sprintf("env-%s", envName) } +func (d *domain) ArchiveEnvironmentsForCluster(ctx ConsoleContext, clusterName string) (bool, error) { + filters := repos.Filter{ + fields.AccountName: ctx.AccountName, + fields.ClusterName: clusterName, + } + + envs, err := d.environmentRepo.Find(ctx, repos.Query{ + Filter: filters, + Sort: nil, + }) + if err != nil { + return false, errors.NewE(err) + } + + for i := range envs { + patchForUpdate := repos.Document{ + fc.EnvironmentIsArchived: true, + } + patchFilter := repos.Filter{ + fields.AccountName: ctx.AccountName, + fields.ClusterName: clusterName, + fields.MetadataName: envs[i].Name, + } + + _, err := d.environmentRepo.Patch( + ctx, + patchFilter, + patchForUpdate, + ) + if err != nil { + return false, errors.NewE(err) + } + } + + return true, nil +} + func (d *domain) UpdateEnvironment(ctx ConsoleContext, env entities.Environment) (*entities.Environment, error) { if err := d.canPerformActionInAccount(ctx, iamT.UpdateEnvironment); err != nil { return nil, errors.NewE(err) diff --git a/apps/console/internal/entities/environment.go b/apps/console/internal/entities/environment.go index 64f77df93..f523b73be 100644 --- a/apps/console/internal/entities/environment.go +++ b/apps/console/internal/entities/environment.go @@ -18,6 +18,8 @@ type Environment struct { AccountName string `json:"accountName" graphql:"noinput"` ClusterName string `json:"clusterName"` + IsArchived bool `json:"IsArchived,omitempty" graphql:"noinput"` + common.ResourceMetadata `json:",inline"` SyncStatus t.SyncStatus `json:"syncStatus" graphql:"noinput"` } diff --git a/apps/console/internal/entities/field-constants/generated_constants.go b/apps/console/internal/entities/field-constants/generated_constants.go index cedf9275f..f41bc0310 100644 --- a/apps/console/internal/entities/field-constants/generated_constants.go +++ b/apps/console/internal/entities/field-constants/generated_constants.go @@ -76,6 +76,7 @@ const ( // constant vars generated for struct Environment const ( + EnvironmentIsArchived = "IsArchived" EnvironmentSpec = "spec" EnvironmentSpecRouting = "spec.routing" EnvironmentSpecRoutingMode = "spec.routing.mode" diff --git a/apps/console/internal/env/env.go b/apps/console/internal/env/env.go index 16ddd6d58..89160de64 100644 --- a/apps/console/internal/env/env.go +++ b/apps/console/internal/env/env.go @@ -6,7 +6,8 @@ import ( ) type Env struct { - Port uint16 `env:"HTTP_PORT" required:"true"` + Port uint16 `env:"HTTP_PORT" required:"true"` + GrpcPort uint16 `env:"GRPC_PORT" required:"true"` ConsoleDBUri string `env:"MONGO_URI" required:"true"` ConsoleDBName string `env:"MONGO_DB_NAME" required:"true"` diff --git a/apps/console/internal/framework/framework.go b/apps/console/internal/framework/framework.go index 5238c79d8..c6a4250b0 100644 --- a/apps/console/internal/framework/framework.go +++ b/apps/console/internal/framework/framework.go @@ -3,7 +3,6 @@ package framework import ( "context" "fmt" - "github.com/kloudlite/api/apps/console/internal/domain" "github.com/kloudlite/api/common" "github.com/kloudlite/api/pkg/errors" @@ -17,6 +16,8 @@ import ( "github.com/kloudlite/api/pkg/logging" "github.com/kloudlite/api/pkg/nats" mongoDb "github.com/kloudlite/api/pkg/repos" + + "github.com/kloudlite/api/pkg/grpc" "go.uber.org/fx" "k8s.io/client-go/rest" ) @@ -88,6 +89,29 @@ var Module = fx.Module("framework", app.Module, + fx.Provide(func(logr logging.Logger) (app.ConsoleGrpcServer, error) { + return grpc.NewGrpcServer(grpc.ServerOpts{ + Logger: logr, + }) + }), + + fx.Invoke(func(ev *env.Env, server app.ConsoleGrpcServer, lf fx.Lifecycle, logger logging.Logger) { + lf.Append(fx.Hook{ + OnStart: func(context.Context) error { + go func() { + if err := server.Listen(fmt.Sprintf(":%d", ev.GrpcPort)); err != nil { + logger.Errorf(err, "while starting grpc server") + } + }() + return nil + }, + OnStop: func(context.Context) error { + server.Stop() + return nil + }, + }) + }), + fx.Provide(func(logger logging.Logger, e *env.Env) httpServer.Server { corsOrigins := "https://studio.apollographql.com" return httpServer.NewServer(httpServer.ServerArgs{Logger: logger, CorsAllowOrigins: &corsOrigins, IsDev: e.IsDev}) diff --git a/apps/infra/internal/app/app.go b/apps/infra/internal/app/app.go index 4109dda01..28b4b313a 100644 --- a/apps/infra/internal/app/app.go +++ b/apps/infra/internal/app/app.go @@ -2,6 +2,7 @@ package app import ( "context" + "github.com/kloudlite/api/grpc-interfaces/kloudlite.io/rpc/console" "github.com/kloudlite/api/apps/infra/internal/entities" "github.com/kloudlite/api/pkg/errors" @@ -35,6 +36,7 @@ type ( IAMGrpcClient grpc.Client AccountGrpcClient grpc.Client MessageOfficeInternalGrpcClient grpc.Client + ConsoleGrpcClient grpc.Client ) type ( @@ -83,6 +85,12 @@ var Module = fx.Module( return message_office_internal.NewMessageOfficeInternalClient(client) }), + fx.Provide( + func(conn ConsoleGrpcClient) console.ConsoleClient { + return console.NewConsoleClient(conn) + }, + ), + fx.Provide(func(jsc *nats.JetstreamClient, logger logging.Logger) SendTargetClusterMessagesProducer { return msg_nats.NewJetstreamProducer(jsc) }), diff --git a/apps/infra/internal/domain/clusters.go b/apps/infra/internal/domain/clusters.go index 8470aded0..c64ba16f0 100644 --- a/apps/infra/internal/domain/clusters.go +++ b/apps/infra/internal/domain/clusters.go @@ -767,6 +767,22 @@ func (d *domain) OnClusterDeleteMessage(ctx InfraContext, cluster entities.Clust return errors.NewE(err) } + //TODO: Archive environment for cluster: + //archiveStatus, err := d.consoleClient.ArchiveEnvironmentsForCluster(ctx, &console.ArchiveEnvironmentsForClusterIn{ + // UserId: string(ctx.UserId), + // UserName: ctx.UserName, + // UserEmail: ctx.UserEmail, + // AccountName: ctx.AccountName, + // ClusterName: xcluster.Name, + //}) + //if err != nil { + // return errors.NewE(err) + //} + // + //if !archiveStatus { + // return errors.Newf("failed to archive environments for cluster %q", xcluster.Name) + //} + d.resourceEventPublisher.PublishInfraEvent(ctx, ResourceTypeCluster, cluster.Name, PublishDelete) if xcluster.GlobalVPN != nil { diff --git a/apps/infra/internal/domain/domain.go b/apps/infra/internal/domain/domain.go index 51547862f..f2c75346c 100644 --- a/apps/infra/internal/domain/domain.go +++ b/apps/infra/internal/domain/domain.go @@ -2,6 +2,7 @@ package domain import ( "fmt" + "github.com/kloudlite/api/grpc-interfaces/kloudlite.io/rpc/console" "io" "os" "strconv" @@ -56,6 +57,7 @@ type domain struct { volumeAttachmentRepo repos.DbRepo[*entities.VolumeAttachment] iamClient iam.IAMClient + consoleClient console.ConsoleClient accountsSvc AccountsSvc messageOfficeInternalClient message_office_internal.MessageOfficeInternalClient resDispatcher ResourceDispatcher @@ -195,6 +197,7 @@ var Module = fx.Module("domain", k8sClient k8s.Client, iamClient iam.IAMClient, + consoleClient console.ConsoleClient, accountsSvc AccountsSvc, msgOfficeInternalClient message_office_internal.MessageOfficeInternalClient, logger logging.Logger, @@ -253,6 +256,7 @@ var Module = fx.Module("domain", resDispatcher: resourceDispatcher, k8sClient: k8sClient, iamClient: iamClient, + consoleClient: consoleClient, accountsSvc: accountsSvc, messageOfficeInternalClient: msgOfficeInternalClient, resourceEventPublisher: resourceEventPublisher, diff --git a/apps/infra/internal/env/env.go b/apps/infra/internal/env/env.go index ddb9400df..5ca3c1b60 100644 --- a/apps/infra/internal/env/env.go +++ b/apps/infra/internal/env/env.go @@ -21,6 +21,7 @@ type Env struct { IAMGrpcAddr string `env:"IAM_GRPC_ADDR" required:"true"` AccountsGrpcAddr string `env:"ACCOUNTS_GRPC_ADDR" required:"true"` + ConsoleGrpcAddr string `env:"CONSOLE_GRPC_ADDR" required:"true"` MessageOfficeInternalGrpcAddr string `env:"MESSAGE_OFFICE_INTERNAL_GRPC_ADDR" required:"true"` MessageOfficeExternalGrpcAddr string `env:"MESSAGE_OFFICE_EXTERNAL_GRPC_ADDR" required:"true"` diff --git a/apps/infra/internal/framework/framework.go b/apps/infra/internal/framework/framework.go index 890301694..48bfe20a5 100644 --- a/apps/infra/internal/framework/framework.go +++ b/apps/infra/internal/framework/framework.go @@ -71,6 +71,10 @@ var Module = fx.Module("framework", return grpc.NewGrpcClient(ev.MessageOfficeInternalGrpcAddr) }), + fx.Provide(func(ev *env.Env) (app.ConsoleGrpcClient, error) { + return grpc.NewGrpcClient(ev.ConsoleGrpcAddr) + }), + fx.Invoke(func(lf fx.Lifecycle, c1 app.IAMGrpcClient) { lf.Append(fx.Hook{ OnStop: func(context.Context) error { diff --git a/grpc-interfaces/console.proto b/grpc-interfaces/console.proto index 721ff4d36..85045fb7c 100644 --- a/grpc-interfaces/console.proto +++ b/grpc-interfaces/console.proto @@ -1,46 +1,21 @@ syntax = "proto3"; -import "google/protobuf/any.proto"; option go_package = "kloudlite.io/rpc/console"; service Console { - rpc GetProjectName(ProjectIn) returns (ProjectOut); - rpc GetApp(AppIn) returns (AppOut); - rpc GetManagedSvc(MSvcIn) returns (MSvcOut); - rpc SetupAccount(AccountSetupIn) returns (AccountSetupVoid); + rpc ArchiveEnvironmentsForCluster(ArchiveEnvironmentsForClusterIn) returns (ArchiveEnvironmentsForClusterOut); } -message AccountSetupIn{ - string accountId = 1; -} - -message AccountSetupVoid{ - -} +message ArchiveEnvironmentsForClusterIn { + string userId = 1; + string userName = 2; + string userEmail = 3; -message AppIn { - string app_id = 1; + string accountName = 4; + string clusterName = 5; } -message AppOut { - google.protobuf.Any data = 3; +message ArchiveEnvironmentsForClusterOut { + bool archived = 1; } -message MSvcIn { - string msvc_id = 1; -} - -message MSvcOut { - google.protobuf.Any data = 3; -} - -message ProjectIn { - string projectId = 1; -} - -message ProjectOut { - string name = 1; -} - -message SetupClusterVoid {} - diff --git a/grpc-interfaces/kloudlite.io/rpc/console/console.pb.go b/grpc-interfaces/kloudlite.io/rpc/console/console.pb.go index c09616a9b..fab611dc4 100644 --- a/grpc-interfaces/kloudlite.io/rpc/console/console.pb.go +++ b/grpc-interfaces/kloudlite.io/rpc/console/console.pb.go @@ -9,7 +9,6 @@ package console import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - anypb "google.golang.org/protobuf/types/known/anypb" reflect "reflect" sync "sync" ) @@ -21,16 +20,20 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -type AccountSetupIn struct { +type ArchiveEnvironmentsForClusterIn struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - AccountId string `protobuf:"bytes,1,opt,name=accountId,proto3" json:"accountId,omitempty"` + UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` + UserName string `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"` + UserEmail string `protobuf:"bytes,3,opt,name=userEmail,proto3" json:"userEmail,omitempty"` + AccountName string `protobuf:"bytes,4,opt,name=accountName,proto3" json:"accountName,omitempty"` + ClusterName string `protobuf:"bytes,5,opt,name=clusterName,proto3" json:"clusterName,omitempty"` } -func (x *AccountSetupIn) Reset() { - *x = AccountSetupIn{} +func (x *ArchiveEnvironmentsForClusterIn) Reset() { + *x = ArchiveEnvironmentsForClusterIn{} if protoimpl.UnsafeEnabled { mi := &file_console_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -38,13 +41,13 @@ func (x *AccountSetupIn) Reset() { } } -func (x *AccountSetupIn) String() string { +func (x *ArchiveEnvironmentsForClusterIn) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AccountSetupIn) ProtoMessage() {} +func (*ArchiveEnvironmentsForClusterIn) ProtoMessage() {} -func (x *AccountSetupIn) ProtoReflect() protoreflect.Message { +func (x *ArchiveEnvironmentsForClusterIn) ProtoReflect() protoreflect.Message { mi := &file_console_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -56,316 +59,71 @@ func (x *AccountSetupIn) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AccountSetupIn.ProtoReflect.Descriptor instead. -func (*AccountSetupIn) Descriptor() ([]byte, []int) { +// Deprecated: Use ArchiveEnvironmentsForClusterIn.ProtoReflect.Descriptor instead. +func (*ArchiveEnvironmentsForClusterIn) Descriptor() ([]byte, []int) { return file_console_proto_rawDescGZIP(), []int{0} } -func (x *AccountSetupIn) GetAccountId() string { +func (x *ArchiveEnvironmentsForClusterIn) GetUserId() string { if x != nil { - return x.AccountId + return x.UserId } return "" } -type AccountSetupVoid struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *AccountSetupVoid) Reset() { - *x = AccountSetupVoid{} - if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AccountSetupVoid) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AccountSetupVoid) ProtoMessage() {} - -func (x *AccountSetupVoid) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AccountSetupVoid.ProtoReflect.Descriptor instead. -func (*AccountSetupVoid) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{1} -} - -type AppIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AppId string `protobuf:"bytes,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"` -} - -func (x *AppIn) Reset() { - *x = AppIn{} - if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AppIn) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AppIn) ProtoMessage() {} - -func (x *AppIn) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AppIn.ProtoReflect.Descriptor instead. -func (*AppIn) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{2} -} - -func (x *AppIn) GetAppId() string { +func (x *ArchiveEnvironmentsForClusterIn) GetUserName() string { if x != nil { - return x.AppId + return x.UserName } return "" } -type AppOut struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data *anypb.Any `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` -} - -func (x *AppOut) Reset() { - *x = AppOut{} - if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AppOut) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AppOut) ProtoMessage() {} - -func (x *AppOut) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AppOut.ProtoReflect.Descriptor instead. -func (*AppOut) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{3} -} - -func (x *AppOut) GetData() *anypb.Any { +func (x *ArchiveEnvironmentsForClusterIn) GetUserEmail() string { if x != nil { - return x.Data - } - return nil -} - -type MSvcIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MsvcId string `protobuf:"bytes,1,opt,name=msvc_id,json=msvcId,proto3" json:"msvc_id,omitempty"` -} - -func (x *MSvcIn) Reset() { - *x = MSvcIn{} - if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MSvcIn) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MSvcIn) ProtoMessage() {} - -func (x *MSvcIn) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MSvcIn.ProtoReflect.Descriptor instead. -func (*MSvcIn) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{4} -} - -func (x *MSvcIn) GetMsvcId() string { - if x != nil { - return x.MsvcId + return x.UserEmail } return "" } -type MSvcOut struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data *anypb.Any `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` -} - -func (x *MSvcOut) Reset() { - *x = MSvcOut{} - if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MSvcOut) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MSvcOut) ProtoMessage() {} - -func (x *MSvcOut) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MSvcOut.ProtoReflect.Descriptor instead. -func (*MSvcOut) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{5} -} - -func (x *MSvcOut) GetData() *anypb.Any { +func (x *ArchiveEnvironmentsForClusterIn) GetAccountName() string { if x != nil { - return x.Data + return x.AccountName } - return nil -} - -type ProjectIn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProjectId string `protobuf:"bytes,1,opt,name=projectId,proto3" json:"projectId,omitempty"` -} - -func (x *ProjectIn) Reset() { - *x = ProjectIn{} - if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectIn) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectIn) ProtoMessage() {} - -func (x *ProjectIn) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProjectIn.ProtoReflect.Descriptor instead. -func (*ProjectIn) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{6} + return "" } -func (x *ProjectIn) GetProjectId() string { +func (x *ArchiveEnvironmentsForClusterIn) GetClusterName() string { if x != nil { - return x.ProjectId + return x.ClusterName } return "" } -type ProjectOut struct { +type ArchiveEnvironmentsForClusterOut struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Archived bool `protobuf:"varint,1,opt,name=archived,proto3" json:"archived,omitempty"` } -func (x *ProjectOut) Reset() { - *x = ProjectOut{} +func (x *ArchiveEnvironmentsForClusterOut) Reset() { + *x = ArchiveEnvironmentsForClusterOut{} if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[7] + mi := &file_console_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ProjectOut) String() string { +func (x *ArchiveEnvironmentsForClusterOut) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ProjectOut) ProtoMessage() {} +func (*ArchiveEnvironmentsForClusterOut) ProtoMessage() {} -func (x *ProjectOut) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[7] +func (x *ArchiveEnvironmentsForClusterOut) ProtoReflect() protoreflect.Message { + mi := &file_console_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -376,96 +134,47 @@ func (x *ProjectOut) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ProjectOut.ProtoReflect.Descriptor instead. -func (*ProjectOut) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{7} +// Deprecated: Use ArchiveEnvironmentsForClusterOut.ProtoReflect.Descriptor instead. +func (*ArchiveEnvironmentsForClusterOut) Descriptor() ([]byte, []int) { + return file_console_proto_rawDescGZIP(), []int{1} } -func (x *ProjectOut) GetName() string { +func (x *ArchiveEnvironmentsForClusterOut) GetArchived() bool { if x != nil { - return x.Name - } - return "" -} - -type SetupClusterVoid struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *SetupClusterVoid) Reset() { - *x = SetupClusterVoid{} - if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + return x.Archived } -} - -func (x *SetupClusterVoid) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SetupClusterVoid) ProtoMessage() {} - -func (x *SetupClusterVoid) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SetupClusterVoid.ProtoReflect.Descriptor instead. -func (*SetupClusterVoid) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{8} + return false } var File_console_proto protoreflect.FileDescriptor var file_console_proto_rawDesc = []byte{ - 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2e, 0x0a, 0x0e, 0x41, 0x63, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x53, 0x65, 0x74, 0x75, 0x70, 0x49, 0x6e, 0x12, 0x1c, 0x0a, 0x09, - 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x12, 0x0a, 0x10, 0x41, 0x63, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x53, 0x65, 0x74, 0x75, 0x70, 0x56, 0x6f, 0x69, 0x64, 0x22, 0x1e, - 0x0a, 0x05, 0x41, 0x70, 0x70, 0x49, 0x6e, 0x12, 0x15, 0x0a, 0x06, 0x61, 0x70, 0x70, 0x5f, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x22, 0x32, - 0x0a, 0x06, 0x41, 0x70, 0x70, 0x4f, 0x75, 0x74, 0x12, 0x28, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x04, 0x64, 0x61, - 0x74, 0x61, 0x22, 0x21, 0x0a, 0x06, 0x4d, 0x53, 0x76, 0x63, 0x49, 0x6e, 0x12, 0x17, 0x0a, 0x07, - 0x6d, 0x73, 0x76, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, - 0x73, 0x76, 0x63, 0x49, 0x64, 0x22, 0x33, 0x0a, 0x07, 0x4d, 0x53, 0x76, 0x63, 0x4f, 0x75, 0x74, - 0x12, 0x28, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x29, 0x0a, 0x09, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x49, 0x64, 0x22, 0x20, 0x0a, 0x0a, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x4f, 0x75, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x12, 0x0a, 0x10, 0x53, 0x65, 0x74, 0x75, 0x70, - 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x56, 0x6f, 0x69, 0x64, 0x32, 0xa7, 0x01, 0x0a, 0x07, - 0x43, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x12, 0x29, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x0a, 0x2e, 0x50, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x49, 0x6e, 0x1a, 0x0b, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4f, - 0x75, 0x74, 0x12, 0x19, 0x0a, 0x06, 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x12, 0x06, 0x2e, 0x41, - 0x70, 0x70, 0x49, 0x6e, 0x1a, 0x07, 0x2e, 0x41, 0x70, 0x70, 0x4f, 0x75, 0x74, 0x12, 0x22, 0x0a, - 0x0d, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x53, 0x76, 0x63, 0x12, 0x07, - 0x2e, 0x4d, 0x53, 0x76, 0x63, 0x49, 0x6e, 0x1a, 0x08, 0x2e, 0x4d, 0x53, 0x76, 0x63, 0x4f, 0x75, - 0x74, 0x12, 0x32, 0x0a, 0x0c, 0x53, 0x65, 0x74, 0x75, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x12, 0x0f, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x53, 0x65, 0x74, 0x75, 0x70, - 0x49, 0x6e, 0x1a, 0x11, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x53, 0x65, 0x74, 0x75, - 0x70, 0x56, 0x6f, 0x69, 0x64, 0x42, 0x1a, 0x5a, 0x18, 0x6b, 0x6c, 0x6f, 0x75, 0x64, 0x6c, 0x69, - 0x74, 0x65, 0x2e, 0x69, 0x6f, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, - 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, + 0xb7, 0x01, 0x0a, 0x1f, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, + 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x46, 0x6f, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x49, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x75, + 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, + 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x45, + 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, + 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x3e, 0x0a, 0x20, 0x41, 0x72, 0x63, + 0x68, 0x69, 0x76, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, + 0x46, 0x6f, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4f, 0x75, 0x74, 0x12, 0x1a, 0x0a, + 0x08, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x08, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x32, 0x6f, 0x0a, 0x07, 0x43, 0x6f, 0x6e, + 0x73, 0x6f, 0x6c, 0x65, 0x12, 0x64, 0x0a, 0x1d, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x45, + 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x46, 0x6f, 0x72, 0x43, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x20, 0x2e, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x45, + 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x46, 0x6f, 0x72, 0x43, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x1a, 0x21, 0x2e, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, + 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x46, 0x6f, 0x72, + 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4f, 0x75, 0x74, 0x42, 0x1a, 0x5a, 0x18, 0x6b, 0x6c, + 0x6f, 0x75, 0x64, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x69, 0x6f, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x63, + 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -480,35 +189,19 @@ func file_console_proto_rawDescGZIP() []byte { return file_console_proto_rawDescData } -var file_console_proto_msgTypes = make([]protoimpl.MessageInfo, 9) +var file_console_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_console_proto_goTypes = []interface{}{ - (*AccountSetupIn)(nil), // 0: AccountSetupIn - (*AccountSetupVoid)(nil), // 1: AccountSetupVoid - (*AppIn)(nil), // 2: AppIn - (*AppOut)(nil), // 3: AppOut - (*MSvcIn)(nil), // 4: MSvcIn - (*MSvcOut)(nil), // 5: MSvcOut - (*ProjectIn)(nil), // 6: ProjectIn - (*ProjectOut)(nil), // 7: ProjectOut - (*SetupClusterVoid)(nil), // 8: SetupClusterVoid - (*anypb.Any)(nil), // 9: google.protobuf.Any + (*ArchiveEnvironmentsForClusterIn)(nil), // 0: ArchiveEnvironmentsForClusterIn + (*ArchiveEnvironmentsForClusterOut)(nil), // 1: ArchiveEnvironmentsForClusterOut } var file_console_proto_depIdxs = []int32{ - 9, // 0: AppOut.data:type_name -> google.protobuf.Any - 9, // 1: MSvcOut.data:type_name -> google.protobuf.Any - 6, // 2: Console.GetProjectName:input_type -> ProjectIn - 2, // 3: Console.GetApp:input_type -> AppIn - 4, // 4: Console.GetManagedSvc:input_type -> MSvcIn - 0, // 5: Console.SetupAccount:input_type -> AccountSetupIn - 7, // 6: Console.GetProjectName:output_type -> ProjectOut - 3, // 7: Console.GetApp:output_type -> AppOut - 5, // 8: Console.GetManagedSvc:output_type -> MSvcOut - 1, // 9: Console.SetupAccount:output_type -> AccountSetupVoid - 6, // [6:10] is the sub-list for method output_type - 2, // [2:6] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name + 0, // 0: Console.ArchiveEnvironmentsForCluster:input_type -> ArchiveEnvironmentsForClusterIn + 1, // 1: Console.ArchiveEnvironmentsForCluster:output_type -> ArchiveEnvironmentsForClusterOut + 1, // [1:2] is the sub-list for method output_type + 0, // [0:1] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name } func init() { file_console_proto_init() } @@ -518,7 +211,7 @@ func file_console_proto_init() { } if !protoimpl.UnsafeEnabled { file_console_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AccountSetupIn); i { + switch v := v.(*ArchiveEnvironmentsForClusterIn); i { case 0: return &v.state case 1: @@ -530,91 +223,7 @@ func file_console_proto_init() { } } file_console_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AccountSetupVoid); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_console_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AppIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_console_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AppOut); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_console_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MSvcIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_console_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MSvcOut); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_console_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectIn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_console_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectOut); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_console_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetupClusterVoid); i { + switch v := v.(*ArchiveEnvironmentsForClusterOut); i { case 0: return &v.state case 1: @@ -632,7 +241,7 @@ func file_console_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_console_proto_rawDesc, NumEnums: 0, - NumMessages: 9, + NumMessages: 2, NumExtensions: 0, NumServices: 1, }, diff --git a/grpc-interfaces/kloudlite.io/rpc/console/console_grpc.pb.go b/grpc-interfaces/kloudlite.io/rpc/console/console_grpc.pb.go index d1ae92d93..6cbe7e45d 100644 --- a/grpc-interfaces/kloudlite.io/rpc/console/console_grpc.pb.go +++ b/grpc-interfaces/kloudlite.io/rpc/console/console_grpc.pb.go @@ -19,20 +19,14 @@ import ( const _ = grpc.SupportPackageIsVersion7 const ( - Console_GetProjectName_FullMethodName = "/Console/GetProjectName" - Console_GetApp_FullMethodName = "/Console/GetApp" - Console_GetManagedSvc_FullMethodName = "/Console/GetManagedSvc" - Console_SetupAccount_FullMethodName = "/Console/SetupAccount" + Console_ArchiveEnvironmentsForCluster_FullMethodName = "/Console/ArchiveEnvironmentsForCluster" ) // ConsoleClient is the client API for Console service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type ConsoleClient interface { - GetProjectName(ctx context.Context, in *ProjectIn, opts ...grpc.CallOption) (*ProjectOut, error) - GetApp(ctx context.Context, in *AppIn, opts ...grpc.CallOption) (*AppOut, error) - GetManagedSvc(ctx context.Context, in *MSvcIn, opts ...grpc.CallOption) (*MSvcOut, error) - SetupAccount(ctx context.Context, in *AccountSetupIn, opts ...grpc.CallOption) (*AccountSetupVoid, error) + ArchiveEnvironmentsForCluster(ctx context.Context, in *ArchiveEnvironmentsForClusterIn, opts ...grpc.CallOption) (*ArchiveEnvironmentsForClusterOut, error) } type consoleClient struct { @@ -43,36 +37,9 @@ func NewConsoleClient(cc grpc.ClientConnInterface) ConsoleClient { return &consoleClient{cc} } -func (c *consoleClient) GetProjectName(ctx context.Context, in *ProjectIn, opts ...grpc.CallOption) (*ProjectOut, error) { - out := new(ProjectOut) - err := c.cc.Invoke(ctx, Console_GetProjectName_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *consoleClient) GetApp(ctx context.Context, in *AppIn, opts ...grpc.CallOption) (*AppOut, error) { - out := new(AppOut) - err := c.cc.Invoke(ctx, Console_GetApp_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *consoleClient) GetManagedSvc(ctx context.Context, in *MSvcIn, opts ...grpc.CallOption) (*MSvcOut, error) { - out := new(MSvcOut) - err := c.cc.Invoke(ctx, Console_GetManagedSvc_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *consoleClient) SetupAccount(ctx context.Context, in *AccountSetupIn, opts ...grpc.CallOption) (*AccountSetupVoid, error) { - out := new(AccountSetupVoid) - err := c.cc.Invoke(ctx, Console_SetupAccount_FullMethodName, in, out, opts...) +func (c *consoleClient) ArchiveEnvironmentsForCluster(ctx context.Context, in *ArchiveEnvironmentsForClusterIn, opts ...grpc.CallOption) (*ArchiveEnvironmentsForClusterOut, error) { + out := new(ArchiveEnvironmentsForClusterOut) + err := c.cc.Invoke(ctx, Console_ArchiveEnvironmentsForCluster_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -83,10 +50,7 @@ func (c *consoleClient) SetupAccount(ctx context.Context, in *AccountSetupIn, op // All implementations must embed UnimplementedConsoleServer // for forward compatibility type ConsoleServer interface { - GetProjectName(context.Context, *ProjectIn) (*ProjectOut, error) - GetApp(context.Context, *AppIn) (*AppOut, error) - GetManagedSvc(context.Context, *MSvcIn) (*MSvcOut, error) - SetupAccount(context.Context, *AccountSetupIn) (*AccountSetupVoid, error) + ArchiveEnvironmentsForCluster(context.Context, *ArchiveEnvironmentsForClusterIn) (*ArchiveEnvironmentsForClusterOut, error) mustEmbedUnimplementedConsoleServer() } @@ -94,17 +58,8 @@ type ConsoleServer interface { type UnimplementedConsoleServer struct { } -func (UnimplementedConsoleServer) GetProjectName(context.Context, *ProjectIn) (*ProjectOut, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetProjectName not implemented") -} -func (UnimplementedConsoleServer) GetApp(context.Context, *AppIn) (*AppOut, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetApp not implemented") -} -func (UnimplementedConsoleServer) GetManagedSvc(context.Context, *MSvcIn) (*MSvcOut, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetManagedSvc not implemented") -} -func (UnimplementedConsoleServer) SetupAccount(context.Context, *AccountSetupIn) (*AccountSetupVoid, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetupAccount not implemented") +func (UnimplementedConsoleServer) ArchiveEnvironmentsForCluster(context.Context, *ArchiveEnvironmentsForClusterIn) (*ArchiveEnvironmentsForClusterOut, error) { + return nil, status.Errorf(codes.Unimplemented, "method ArchiveEnvironmentsForCluster not implemented") } func (UnimplementedConsoleServer) mustEmbedUnimplementedConsoleServer() {} @@ -119,74 +74,20 @@ func RegisterConsoleServer(s grpc.ServiceRegistrar, srv ConsoleServer) { s.RegisterService(&Console_ServiceDesc, srv) } -func _Console_GetProjectName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectIn) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ConsoleServer).GetProjectName(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Console_GetProjectName_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ConsoleServer).GetProjectName(ctx, req.(*ProjectIn)) - } - return interceptor(ctx, in, info, handler) -} - -func _Console_GetApp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AppIn) +func _Console_ArchiveEnvironmentsForCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ArchiveEnvironmentsForClusterIn) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ConsoleServer).GetApp(ctx, in) + return srv.(ConsoleServer).ArchiveEnvironmentsForCluster(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Console_GetApp_FullMethodName, + FullMethod: Console_ArchiveEnvironmentsForCluster_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ConsoleServer).GetApp(ctx, req.(*AppIn)) - } - return interceptor(ctx, in, info, handler) -} - -func _Console_GetManagedSvc_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MSvcIn) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ConsoleServer).GetManagedSvc(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Console_GetManagedSvc_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ConsoleServer).GetManagedSvc(ctx, req.(*MSvcIn)) - } - return interceptor(ctx, in, info, handler) -} - -func _Console_SetupAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AccountSetupIn) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ConsoleServer).SetupAccount(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Console_SetupAccount_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ConsoleServer).SetupAccount(ctx, req.(*AccountSetupIn)) + return srv.(ConsoleServer).ArchiveEnvironmentsForCluster(ctx, req.(*ArchiveEnvironmentsForClusterIn)) } return interceptor(ctx, in, info, handler) } @@ -199,20 +100,8 @@ var Console_ServiceDesc = grpc.ServiceDesc{ HandlerType: (*ConsoleServer)(nil), Methods: []grpc.MethodDesc{ { - MethodName: "GetProjectName", - Handler: _Console_GetProjectName_Handler, - }, - { - MethodName: "GetApp", - Handler: _Console_GetApp_Handler, - }, - { - MethodName: "GetManagedSvc", - Handler: _Console_GetManagedSvc_Handler, - }, - { - MethodName: "SetupAccount", - Handler: _Console_SetupAccount_Handler, + MethodName: "ArchiveEnvironmentsForCluster", + Handler: _Console_ArchiveEnvironmentsForCluster_Handler, }, }, Streams: []grpc.StreamDesc{}, From 286a4c7352ce73e4619b312cb00eca83a7958b07 Mon Sep 17 00:00:00 2001 From: nxtcoder17 Date: Tue, 18 Jun 2024 05:13:48 +0530 Subject: [PATCH 2/3] feat(infra): environment archive, and gateway DNS updates - kloudlite gateway now, also resolves device DNS hostnames - archive environments, when clusters get deleted --- .../internal/app/graph/app.resolvers.go | 2 +- .../app/graph/common-types.resolvers.go | 2 +- .../internal/app/graph/config.resolvers.go | 2 +- .../app/graph/consolevpndevice.resolvers.go | 2 +- .../internal/app/graph/entity.resolvers.go | 2 +- .../app/graph/environment.resolvers.go | 2 +- .../app/graph/externalapp.resolvers.go | 2 +- .../internal/app/graph/generated/generated.go | 746 ++++-------------- .../app/graph/imagepullsecret.resolvers.go | 2 +- .../app/graph/managedresource.resolvers.go | 2 +- .../app/graph/matchfilter.resolvers.go | 2 +- .../internal/app/graph/model/models_gen.go | 6 + .../internal/app/graph/router.resolvers.go | 2 +- .../internal/app/graph/schema.resolvers.go | 9 +- .../internal/app/graph/secret.resolvers.go | 2 +- .../struct-to-graphql/environment.graphqls | 1 + apps/console/internal/domain/environment.go | 6 +- apps/console/internal/entities/environment.go | 2 +- .../field-constants/generated_constants.go | 2 +- .../app/graph/byokcluster.resolvers.go | 9 +- .../internal/app/graph/cluster.resolvers.go | 9 +- .../internal/app/graph/generated/generated.go | 4 +- apps/infra/internal/domain/byok-clusters.go | 11 + apps/infra/internal/domain/clusters.go | 36 +- apps/infra/internal/domain/domain.go | 4 +- .../domain/global-vpn-cluster-connection.go | 10 +- .../internal/domain/global-vpn-devices.go | 27 +- .../global-vpn-kloudlite-device.yml.tpl | 3 + apps/infra/internal/domain/templates/types.go | 3 +- 29 files changed, 247 insertions(+), 665 deletions(-) diff --git a/apps/console/internal/app/graph/app.resolvers.go b/apps/console/internal/app/graph/app.resolvers.go index 53b83d67d..6a37886fd 100644 --- a/apps/console/internal/app/graph/app.resolvers.go +++ b/apps/console/internal/app/graph/app.resolvers.go @@ -2,7 +2,7 @@ package graph // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.39 +// Code generated by github.com/99designs/gqlgen version v0.17.45 import ( "context" diff --git a/apps/console/internal/app/graph/common-types.resolvers.go b/apps/console/internal/app/graph/common-types.resolvers.go index bcd64c5f5..2984b6d01 100644 --- a/apps/console/internal/app/graph/common-types.resolvers.go +++ b/apps/console/internal/app/graph/common-types.resolvers.go @@ -2,7 +2,7 @@ package graph // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.39 +// Code generated by github.com/99designs/gqlgen version v0.17.45 import ( "context" diff --git a/apps/console/internal/app/graph/config.resolvers.go b/apps/console/internal/app/graph/config.resolvers.go index e74743abc..1a44c2e8b 100644 --- a/apps/console/internal/app/graph/config.resolvers.go +++ b/apps/console/internal/app/graph/config.resolvers.go @@ -2,7 +2,7 @@ package graph // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.39 +// Code generated by github.com/99designs/gqlgen version v0.17.45 import ( "context" diff --git a/apps/console/internal/app/graph/consolevpndevice.resolvers.go b/apps/console/internal/app/graph/consolevpndevice.resolvers.go index fea3c6ca2..637839b7d 100644 --- a/apps/console/internal/app/graph/consolevpndevice.resolvers.go +++ b/apps/console/internal/app/graph/consolevpndevice.resolvers.go @@ -2,7 +2,7 @@ package graph // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.39 +// Code generated by github.com/99designs/gqlgen version v0.17.45 import ( "context" diff --git a/apps/console/internal/app/graph/entity.resolvers.go b/apps/console/internal/app/graph/entity.resolvers.go index b1a86be5e..148845117 100644 --- a/apps/console/internal/app/graph/entity.resolvers.go +++ b/apps/console/internal/app/graph/entity.resolvers.go @@ -2,7 +2,7 @@ package graph // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.39 +// Code generated by github.com/99designs/gqlgen version v0.17.45 import ( "context" diff --git a/apps/console/internal/app/graph/environment.resolvers.go b/apps/console/internal/app/graph/environment.resolvers.go index 2d69cb383..95395c4f3 100644 --- a/apps/console/internal/app/graph/environment.resolvers.go +++ b/apps/console/internal/app/graph/environment.resolvers.go @@ -2,7 +2,7 @@ package graph // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.39 +// Code generated by github.com/99designs/gqlgen version v0.17.45 import ( "context" diff --git a/apps/console/internal/app/graph/externalapp.resolvers.go b/apps/console/internal/app/graph/externalapp.resolvers.go index 51b5199ed..c8d8d08ff 100644 --- a/apps/console/internal/app/graph/externalapp.resolvers.go +++ b/apps/console/internal/app/graph/externalapp.resolvers.go @@ -2,7 +2,7 @@ package graph // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.39 +// Code generated by github.com/99designs/gqlgen version v0.17.45 import ( "context" diff --git a/apps/console/internal/app/graph/generated/generated.go b/apps/console/internal/app/graph/generated/generated.go index c32549c41..6182ca581 100644 --- a/apps/console/internal/app/graph/generated/generated.go +++ b/apps/console/internal/app/graph/generated/generated.go @@ -226,6 +226,7 @@ type ComplexityRoot struct { CreationTime func(childComplexity int) int DisplayName func(childComplexity int) int Id func(childComplexity int) int + IsArchived func(childComplexity int) int Kind func(childComplexity int) int LastUpdatedBy func(childComplexity int) int MarkedForDeletion func(childComplexity int) int @@ -1766,6 +1767,13 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Environment.Id(childComplexity), true + case "Environment.isArchived": + if e.complexity.Environment.IsArchived == nil { + break + } + + return e.complexity.Environment.IsArchived(childComplexity), true + case "Environment.kind": if e.complexity.Environment.Kind == nil { break @@ -6348,6 +6356,7 @@ directive @goField( creationTime: Date! displayName: String! id: ID! + isArchived: Boolean kind: String lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! markedForDeletion: Boolean @@ -6695,7 +6704,13 @@ input SecretKeyValueRefIn { | UNION directive @interfaceObject on OBJECT directive @link(import: [String!], url: String!) repeatable on SCHEMA - directive @override(from: String!) on FIELD_DEFINITION + directive @override(from: String!, label: String) on FIELD_DEFINITION + directive @policy(policies: [[federation__Policy!]!]!) on + | FIELD_DEFINITION + | OBJECT + | INTERFACE + | SCALAR + | ENUM directive @provides(fields: FieldSet!) on FIELD_DEFINITION directive @requires(fields: FieldSet!) on FIELD_DEFINITION directive @requiresScopes(scopes: [[federation__Scope!]!]!) on @@ -6718,6 +6733,7 @@ input SecretKeyValueRefIn { | UNION scalar _Any scalar FieldSet + scalar federation__Policy scalar federation__Scope `, BuiltIn: true}, {Name: "../../federation/entity.graphql", Input: ` @@ -12890,6 +12906,47 @@ func (ec *executionContext) fieldContext_Environment_id(ctx context.Context, fie return fc, nil } +func (ec *executionContext) _Environment_isArchived(ctx context.Context, field graphql.CollectedField, obj *entities.Environment) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Environment_isArchived(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsArchived, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*bool) + fc.Result = res + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Environment_isArchived(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Environment", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + func (ec *executionContext) _Environment_kind(ctx context.Context, field graphql.CollectedField, obj *entities.Environment) (ret graphql.Marshaler) { fc, err := ec.fieldContext_Environment_kind(ctx, field) if err != nil { @@ -13428,6 +13485,8 @@ func (ec *executionContext) fieldContext_EnvironmentEdge_node(ctx context.Contex return ec.fieldContext_Environment_displayName(ctx, field) case "id": return ec.fieldContext_Environment_id(ctx, field) + case "isArchived": + return ec.fieldContext_Environment_isArchived(ctx, field) case "kind": return ec.fieldContext_Environment_kind(ctx, field) case "lastUpdatedBy": @@ -26147,6 +26206,8 @@ func (ec *executionContext) fieldContext_Mutation_core_createEnvironment(ctx con return ec.fieldContext_Environment_displayName(ctx, field) case "id": return ec.fieldContext_Environment_id(ctx, field) + case "isArchived": + return ec.fieldContext_Environment_isArchived(ctx, field) case "kind": return ec.fieldContext_Environment_kind(ctx, field) case "lastUpdatedBy": @@ -26259,6 +26320,8 @@ func (ec *executionContext) fieldContext_Mutation_core_updateEnvironment(ctx con return ec.fieldContext_Environment_displayName(ctx, field) case "id": return ec.fieldContext_Environment_id(ctx, field) + case "isArchived": + return ec.fieldContext_Environment_isArchived(ctx, field) case "kind": return ec.fieldContext_Environment_kind(ctx, field) case "lastUpdatedBy": @@ -26452,6 +26515,8 @@ func (ec *executionContext) fieldContext_Mutation_core_cloneEnvironment(ctx cont return ec.fieldContext_Environment_displayName(ctx, field) case "id": return ec.fieldContext_Environment_id(ctx, field) + case "isArchived": + return ec.fieldContext_Environment_isArchived(ctx, field) case "kind": return ec.fieldContext_Environment_kind(ctx, field) case "lastUpdatedBy": @@ -30186,6 +30251,8 @@ func (ec *executionContext) fieldContext_Query_core_getEnvironment(ctx context.C return ec.fieldContext_Environment_displayName(ctx, field) case "id": return ec.fieldContext_Environment_id(ctx, field) + case "isArchived": + return ec.fieldContext_Environment_isArchived(ctx, field) case "kind": return ec.fieldContext_Environment_kind(ctx, field) case "lastUpdatedBy": @@ -37519,8 +37586,6 @@ func (ec *executionContext) unmarshalInputAppIn(ctx context.Context, obj interfa } switch k { case "apiVersion": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("apiVersion")) data, err := ec.unmarshalOString2string(ctx, v) if err != nil { @@ -37528,8 +37593,6 @@ func (ec *executionContext) unmarshalInputAppIn(ctx context.Context, obj interfa } it.APIVersion = data case "ciBuildId": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ciBuildId")) data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐID(ctx, v) if err != nil { @@ -37537,8 +37600,6 @@ func (ec *executionContext) unmarshalInputAppIn(ctx context.Context, obj interfa } it.CIBuildId = data case "displayName": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -37546,8 +37607,6 @@ func (ec *executionContext) unmarshalInputAppIn(ctx context.Context, obj interfa } it.DisplayName = data case "enabled": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { @@ -37555,8 +37614,6 @@ func (ec *executionContext) unmarshalInputAppIn(ctx context.Context, obj interfa } it.Enabled = data case "kind": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) data, err := ec.unmarshalOString2string(ctx, v) if err != nil { @@ -37564,8 +37621,6 @@ func (ec *executionContext) unmarshalInputAppIn(ctx context.Context, obj interfa } it.Kind = data case "metadata": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("metadata")) data, err := ec.unmarshalOMetadataIn2ᚖk8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐObjectMeta(ctx, v) if err != nil { @@ -37575,8 +37630,6 @@ func (ec *executionContext) unmarshalInputAppIn(ctx context.Context, obj interfa return it, err } case "spec": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("spec")) data, err := ec.unmarshalNGithub__com___kloudlite___operator___apis___crds___v1__AppSpecIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1AppSpecIn(ctx, v) if err != nil { @@ -37606,8 +37659,6 @@ func (ec *executionContext) unmarshalInputConfigIn(ctx context.Context, obj inte } switch k { case "apiVersion": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("apiVersion")) data, err := ec.unmarshalOString2string(ctx, v) if err != nil { @@ -37615,8 +37666,6 @@ func (ec *executionContext) unmarshalInputConfigIn(ctx context.Context, obj inte } it.APIVersion = data case "binaryData": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("binaryData")) data, err := ec.unmarshalOMap2map(ctx, v) if err != nil { @@ -37626,8 +37675,6 @@ func (ec *executionContext) unmarshalInputConfigIn(ctx context.Context, obj inte return it, err } case "data": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("data")) data, err := ec.unmarshalOMap2map(ctx, v) if err != nil { @@ -37637,8 +37684,6 @@ func (ec *executionContext) unmarshalInputConfigIn(ctx context.Context, obj inte return it, err } case "displayName": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -37646,8 +37691,6 @@ func (ec *executionContext) unmarshalInputConfigIn(ctx context.Context, obj inte } it.DisplayName = data case "immutable": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("immutable")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { @@ -37655,8 +37698,6 @@ func (ec *executionContext) unmarshalInputConfigIn(ctx context.Context, obj inte } it.Immutable = data case "kind": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) data, err := ec.unmarshalOString2string(ctx, v) if err != nil { @@ -37664,8 +37705,6 @@ func (ec *executionContext) unmarshalInputConfigIn(ctx context.Context, obj inte } it.Kind = data case "metadata": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("metadata")) data, err := ec.unmarshalOMetadataIn2ᚖk8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐObjectMeta(ctx, v) if err != nil { @@ -37695,8 +37734,6 @@ func (ec *executionContext) unmarshalInputConfigKeyRefIn(ctx context.Context, ob } switch k { case "configName": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("configName")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -37704,8 +37741,6 @@ func (ec *executionContext) unmarshalInputConfigKeyRefIn(ctx context.Context, ob } it.ConfigName = data case "key": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -37733,8 +37768,6 @@ func (ec *executionContext) unmarshalInputConfigKeyValueRefIn(ctx context.Contex } switch k { case "configName": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("configName")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -37742,8 +37775,6 @@ func (ec *executionContext) unmarshalInputConfigKeyValueRefIn(ctx context.Contex } it.ConfigName = data case "key": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -37751,8 +37782,6 @@ func (ec *executionContext) unmarshalInputConfigKeyValueRefIn(ctx context.Contex } it.Key = data case "value": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -37780,8 +37809,6 @@ func (ec *executionContext) unmarshalInputConsoleVPNDeviceIn(ctx context.Context } switch k { case "apiVersion": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("apiVersion")) data, err := ec.unmarshalOString2string(ctx, v) if err != nil { @@ -37789,8 +37816,6 @@ func (ec *executionContext) unmarshalInputConsoleVPNDeviceIn(ctx context.Context } it.APIVersion = data case "clusterName": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clusterName")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -37798,8 +37823,6 @@ func (ec *executionContext) unmarshalInputConsoleVPNDeviceIn(ctx context.Context } it.ClusterName = data case "displayName": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -37807,8 +37830,6 @@ func (ec *executionContext) unmarshalInputConsoleVPNDeviceIn(ctx context.Context } it.DisplayName = data case "environmentName": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("environmentName")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -37816,8 +37837,6 @@ func (ec *executionContext) unmarshalInputConsoleVPNDeviceIn(ctx context.Context } it.EnvironmentName = data case "kind": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) data, err := ec.unmarshalOString2string(ctx, v) if err != nil { @@ -37825,8 +37844,6 @@ func (ec *executionContext) unmarshalInputConsoleVPNDeviceIn(ctx context.Context } it.Kind = data case "metadata": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("metadata")) data, err := ec.unmarshalOMetadataIn2ᚖk8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐObjectMeta(ctx, v) if err != nil { @@ -37836,8 +37853,6 @@ func (ec *executionContext) unmarshalInputConsoleVPNDeviceIn(ctx context.Context return it, err } case "spec": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("spec")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___wireguard___v1__DeviceSpecIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisWireguardV1DeviceSpecIn(ctx, v) if err != nil { @@ -37867,8 +37882,6 @@ func (ec *executionContext) unmarshalInputCoreSearchVPNDevices(ctx context.Conte } switch k { case "text": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) if err != nil { @@ -37876,8 +37889,6 @@ func (ec *executionContext) unmarshalInputCoreSearchVPNDevices(ctx context.Conte } it.Text = data case "isReady": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isReady")) data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) if err != nil { @@ -37885,8 +37896,6 @@ func (ec *executionContext) unmarshalInputCoreSearchVPNDevices(ctx context.Conte } it.IsReady = data case "markedForDeletion": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("markedForDeletion")) data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) if err != nil { @@ -37921,8 +37930,6 @@ func (ec *executionContext) unmarshalInputCursorPaginationIn(ctx context.Context } switch k { case "after": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -37930,8 +37937,6 @@ func (ec *executionContext) unmarshalInputCursorPaginationIn(ctx context.Context } it.After = data case "before": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -37939,8 +37944,6 @@ func (ec *executionContext) unmarshalInputCursorPaginationIn(ctx context.Context } it.Before = data case "first": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) data, err := ec.unmarshalOInt2ᚖint64(ctx, v) if err != nil { @@ -37948,8 +37951,6 @@ func (ec *executionContext) unmarshalInputCursorPaginationIn(ctx context.Context } it.First = data case "last": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) data, err := ec.unmarshalOInt2ᚖint64(ctx, v) if err != nil { @@ -37957,8 +37958,6 @@ func (ec *executionContext) unmarshalInputCursorPaginationIn(ctx context.Context } it.Last = data case "orderBy": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) data, err := ec.unmarshalOString2string(ctx, v) if err != nil { @@ -37966,8 +37965,6 @@ func (ec *executionContext) unmarshalInputCursorPaginationIn(ctx context.Context } it.OrderBy = data case "sortDirection": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortDirection")) data, err := ec.unmarshalOCursorPaginationSortDirection2githubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐSortDirection(ctx, v) if err != nil { @@ -37995,8 +37992,6 @@ func (ec *executionContext) unmarshalInputEnvironmentIn(ctx context.Context, obj } switch k { case "apiVersion": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("apiVersion")) data, err := ec.unmarshalOString2string(ctx, v) if err != nil { @@ -38004,8 +37999,6 @@ func (ec *executionContext) unmarshalInputEnvironmentIn(ctx context.Context, obj } it.APIVersion = data case "clusterName": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clusterName")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -38013,8 +38006,6 @@ func (ec *executionContext) unmarshalInputEnvironmentIn(ctx context.Context, obj } it.ClusterName = data case "displayName": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -38022,8 +38013,6 @@ func (ec *executionContext) unmarshalInputEnvironmentIn(ctx context.Context, obj } it.DisplayName = data case "kind": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) data, err := ec.unmarshalOString2string(ctx, v) if err != nil { @@ -38031,8 +38020,6 @@ func (ec *executionContext) unmarshalInputEnvironmentIn(ctx context.Context, obj } it.Kind = data case "metadata": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("metadata")) data, err := ec.unmarshalOMetadataIn2ᚖk8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐObjectMeta(ctx, v) if err != nil { @@ -38042,8 +38029,6 @@ func (ec *executionContext) unmarshalInputEnvironmentIn(ctx context.Context, obj return it, err } case "spec": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("spec")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__EnvironmentSpecIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1EnvironmentSpecIn(ctx, v) if err != nil { @@ -38073,8 +38058,6 @@ func (ec *executionContext) unmarshalInputExternalAppIn(ctx context.Context, obj } switch k { case "apiVersion": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("apiVersion")) data, err := ec.unmarshalOString2string(ctx, v) if err != nil { @@ -38082,8 +38065,6 @@ func (ec *executionContext) unmarshalInputExternalAppIn(ctx context.Context, obj } it.APIVersion = data case "displayName": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -38091,8 +38072,6 @@ func (ec *executionContext) unmarshalInputExternalAppIn(ctx context.Context, obj } it.DisplayName = data case "kind": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) data, err := ec.unmarshalOString2string(ctx, v) if err != nil { @@ -38100,8 +38079,6 @@ func (ec *executionContext) unmarshalInputExternalAppIn(ctx context.Context, obj } it.Kind = data case "metadata": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("metadata")) data, err := ec.unmarshalOMetadataIn2ᚖk8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐObjectMeta(ctx, v) if err != nil { @@ -38111,8 +38088,6 @@ func (ec *executionContext) unmarshalInputExternalAppIn(ctx context.Context, obj return it, err } case "spec": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("spec")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__ExternalAppSpecIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1ExternalAppSpecIn(ctx, v) if err != nil { @@ -38122,8 +38097,6 @@ func (ec *executionContext) unmarshalInputExternalAppIn(ctx context.Context, obj return it, err } case "status": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___pkg___operator__StatusIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorPkgOperatorStatusIn(ctx, v) if err != nil { @@ -38153,8 +38126,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } switch k { case "apiVersion": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("apiVersion")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -38162,8 +38133,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.APIVersion = data case "clusterName": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clusterName")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -38171,8 +38140,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.ClusterName = data case "kind": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -38180,8 +38147,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Kind = data case "name": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -38189,8 +38154,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Name = data case "namespace": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -38218,8 +38181,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } switch k { case "args": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("args")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { @@ -38227,8 +38188,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Args = data case "command": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("command")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { @@ -38236,8 +38195,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Command = data case "env": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("env")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__ContainerEnvIn2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1ContainerEnvInᚄ(ctx, v) if err != nil { @@ -38245,8 +38202,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Env = data case "envFrom": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("envFrom")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__EnvFromIn2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1EnvFromInᚄ(ctx, v) if err != nil { @@ -38254,8 +38209,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.EnvFrom = data case "image": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("image")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -38263,8 +38216,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Image = data case "imagePullPolicy": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("imagePullPolicy")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -38272,8 +38223,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.ImagePullPolicy = data case "livenessProbe": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("livenessProbe")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__ProbeIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1ProbeIn(ctx, v) if err != nil { @@ -38281,8 +38230,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.LivenessProbe = data case "name": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -38290,8 +38237,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Name = data case "readinessProbe": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("readinessProbe")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__ProbeIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1ProbeIn(ctx, v) if err != nil { @@ -38299,8 +38244,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.ReadinessProbe = data case "resourceCpu": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("resourceCpu")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__ContainerResourceIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1ContainerResourceIn(ctx, v) if err != nil { @@ -38308,8 +38251,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.ResourceCPU = data case "resourceMemory": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("resourceMemory")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__ContainerResourceIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1ContainerResourceIn(ctx, v) if err != nil { @@ -38317,8 +38258,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.ResourceMemory = data case "volumes": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("volumes")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__ContainerVolumeIn2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1ContainerVolumeInᚄ(ctx, v) if err != nil { @@ -38346,8 +38285,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } switch k { case "appPort": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("appPort")) data, err := ec.unmarshalNInt2int(ctx, v) if err != nil { @@ -38357,8 +38294,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a return it, err } case "devicePort": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("devicePort")) data, err := ec.unmarshalNInt2int(ctx, v) if err != nil { @@ -38388,8 +38323,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } switch k { case "backendProtocol": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backendProtocol")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -38397,8 +38330,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.BackendProtocol = data case "basicAuth": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("basicAuth")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__BasicAuthIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1BasicAuthIn(ctx, v) if err != nil { @@ -38406,8 +38337,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.BasicAuth = data case "cors": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("cors")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__CorsIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1CorsIn(ctx, v) if err != nil { @@ -38415,8 +38344,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Cors = data case "domains": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("domains")) data, err := ec.unmarshalNString2ᚕstringᚄ(ctx, v) if err != nil { @@ -38424,8 +38351,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Domains = data case "https": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("https")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__HttpsIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1HTTPSIn(ctx, v) if err != nil { @@ -38433,8 +38358,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.HTTPS = data case "ingressClass": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ingressClass")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -38442,8 +38365,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.IngressClass = data case "maxBodySizeInMB": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("maxBodySizeInMB")) data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { @@ -38451,8 +38372,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.MaxBodySizeInMb = data case "rateLimit": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("rateLimit")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__RateLimitIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1RateLimitIn(ctx, v) if err != nil { @@ -38460,8 +38379,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.RateLimit = data case "routes": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("routes")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__RouteIn2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1RouteInᚄ(ctx, v) if err != nil { @@ -38489,8 +38406,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } switch k { case "containers": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("containers")) data, err := ec.unmarshalNGithub__com___kloudlite___operator___apis___crds___v1__AppContainerIn2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1AppContainerInᚄ(ctx, v) if err != nil { @@ -38498,8 +38413,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Containers = data case "displayName": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -38507,8 +38420,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.DisplayName = data case "freeze": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("freeze")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { @@ -38516,8 +38427,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Freeze = data case "hpa": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hpa")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__HPAIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1HPAIn(ctx, v) if err != nil { @@ -38525,8 +38434,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Hpa = data case "intercept": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("intercept")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__InterceptIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1InterceptIn(ctx, v) if err != nil { @@ -38534,8 +38441,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Intercept = data case "nodeSelector": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nodeSelector")) data, err := ec.unmarshalOMap2map(ctx, v) if err != nil { @@ -38543,8 +38448,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.NodeSelector = data case "region": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("region")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -38552,8 +38455,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Region = data case "replicas": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("replicas")) data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { @@ -38561,8 +38462,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Replicas = data case "router": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("router")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__AppRouterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1AppRouterIn(ctx, v) if err != nil { @@ -38570,8 +38469,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Router = data case "serviceAccount": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceAccount")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -38579,8 +38476,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.ServiceAccount = data case "services": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("services")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__AppSvcIn2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1AppSvcInᚄ(ctx, v) if err != nil { @@ -38588,8 +38483,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Services = data case "tolerations": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tolerations")) data, err := ec.unmarshalOK8s__io___api___core___v1__TolerationIn2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1TolerationInᚄ(ctx, v) if err != nil { @@ -38597,8 +38490,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Tolerations = data case "topologySpreadConstraints": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("topologySpreadConstraints")) data, err := ec.unmarshalOK8s__io___api___core___v1__TopologySpreadConstraintIn2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1TopologySpreadConstraintInᚄ(ctx, v) if err != nil { @@ -38626,8 +38517,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } switch k { case "port": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("port")) data, err := ec.unmarshalNInt2int(ctx, v) if err != nil { @@ -38635,8 +38524,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Port = data case "protocol": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("protocol")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -38664,8 +38551,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } switch k { case "enabled": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) data, err := ec.unmarshalNBoolean2bool(ctx, v) if err != nil { @@ -38673,8 +38558,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Enabled = data case "secretName": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretName")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -38682,8 +38565,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.SecretName = data case "username": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("username")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -38711,8 +38592,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } switch k { case "key": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -38720,8 +38599,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Key = data case "optional": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("optional")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { @@ -38729,8 +38606,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Optional = data case "refKey": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refKey")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -38738,8 +38613,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.RefKey = data case "refName": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refName")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -38747,8 +38620,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.RefName = data case "type": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__ConfigOrSecret2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1ConfigOrSecret(ctx, v) if err != nil { @@ -38756,8 +38627,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Type = data case "value": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -38785,8 +38654,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } switch k { case "max": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("max")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -38794,8 +38661,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Max = data case "min": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("min")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -38823,8 +38688,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } switch k { case "items": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("items")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__ContainerVolumeItemIn2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1ContainerVolumeItemInᚄ(ctx, v) if err != nil { @@ -38832,8 +38695,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Items = data case "mountPath": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mountPath")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -38841,8 +38702,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.MountPath = data case "refName": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refName")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -38850,8 +38709,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.RefName = data case "type": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type")) data, err := ec.unmarshalNGithub__com___kloudlite___operator___apis___crds___v1__ConfigOrSecret2githubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1ConfigOrSecret(ctx, v) if err != nil { @@ -38879,8 +38736,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } switch k { case "fileName": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fileName")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -38888,8 +38743,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.FileName = data case "key": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -38917,8 +38770,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } switch k { case "allowCredentials": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("allowCredentials")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { @@ -38926,8 +38777,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.AllowCredentials = data case "enabled": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { @@ -38935,8 +38784,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Enabled = data case "origins": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("origins")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { @@ -38964,8 +38811,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } switch k { case "refName": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refName")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -38973,8 +38818,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.RefName = data case "type": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type")) data, err := ec.unmarshalNGithub__com___kloudlite___operator___apis___crds___v1__ConfigOrSecret2githubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1ConfigOrSecret(ctx, v) if err != nil { @@ -39002,8 +38845,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } switch k { case "mode": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mode")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__EnvironmentRoutingMode2ᚖgithubᚗcomᚋkloudliteᚋoperatorᚋapisᚋcrdsᚋv1ᚐEnvironmentRoutingMode(ctx, v) if err != nil { @@ -39031,8 +38872,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } switch k { case "routing": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("routing")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__EnvironmentRoutingIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1EnvironmentRoutingIn(ctx, v) if err != nil { @@ -39040,8 +38879,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Routing = data case "targetNamespace": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("targetNamespace")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -39069,8 +38906,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } switch k { case "intercept": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("intercept")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__InterceptIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1InterceptIn(ctx, v) if err != nil { @@ -39078,8 +38913,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Intercept = data case "record": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("record")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -39087,8 +38920,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Record = data case "recordType": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("recordType")) data, err := ec.unmarshalNGithub__com___kloudlite___operator___apis___crds___v1__ExternalAppRecordType2githubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1ExternalAppRecordType(ctx, v) if err != nil { @@ -39116,8 +38947,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } switch k { case "enabled": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) data, err := ec.unmarshalNBoolean2bool(ctx, v) if err != nil { @@ -39125,8 +38954,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Enabled = data case "maxReplicas": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("maxReplicas")) data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { @@ -39134,8 +38961,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.MaxReplicas = data case "minReplicas": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("minReplicas")) data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { @@ -39143,8 +38968,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.MinReplicas = data case "thresholdCpu": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("thresholdCpu")) data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { @@ -39152,8 +38975,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.ThresholdCPU = data case "thresholdMemory": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("thresholdMemory")) data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { @@ -39181,8 +39002,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } switch k { case "httpHeaders": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("httpHeaders")) data, err := ec.unmarshalOMap2map(ctx, v) if err != nil { @@ -39190,8 +39009,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.HTTPHeaders = data case "path": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("path")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -39199,8 +39016,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Path = data case "port": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("port")) data, err := ec.unmarshalNInt2int(ctx, v) if err != nil { @@ -39228,8 +39043,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } switch k { case "clusterIssuer": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clusterIssuer")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -39237,8 +39050,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.ClusterIssuer = data case "enabled": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) data, err := ec.unmarshalNBoolean2bool(ctx, v) if err != nil { @@ -39246,8 +39057,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Enabled = data case "forceRedirect": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("forceRedirect")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { @@ -39275,8 +39084,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } switch k { case "enabled": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) data, err := ec.unmarshalNBoolean2bool(ctx, v) if err != nil { @@ -39284,8 +39091,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Enabled = data case "portMappings": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("portMappings")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__AppInterceptPortMappingsIn2ᚕᚖgithubᚗcomᚋkloudliteᚋoperatorᚋapisᚋcrdsᚋv1ᚐAppInterceptPortMappingsᚄ(ctx, v) if err != nil { @@ -39293,8 +39098,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.PortMappings = data case "toDevice": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("toDevice")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -39322,8 +39125,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } switch k { case "resourceNamePrefix": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("resourceNamePrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -39331,8 +39132,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.ResourceNamePrefix = data case "resourceTemplate": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("resourceTemplate")) data, err := ec.unmarshalNGithub__com___kloudlite___operator___apis___crds___v1__MresResourceTemplateIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1MresResourceTemplateIn(ctx, v) if err != nil { @@ -39360,8 +39159,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } switch k { case "apiVersion": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("apiVersion")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -39369,8 +39166,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.APIVersion = data case "kind": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -39378,8 +39173,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Kind = data case "msvcRef": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("msvcRef")) data, err := ec.unmarshalNGithub__com___kloudlite___operator___apis___common____types__MsvcRefIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCommonTypesMsvcRefIn(ctx, v) if err != nil { @@ -39387,8 +39180,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.MsvcRef = data case "spec": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("spec")) data, err := ec.unmarshalNMap2map(ctx, v) if err != nil { @@ -39416,8 +39207,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } switch k { case "failureThreshold": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failureThreshold")) data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { @@ -39425,8 +39214,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.FailureThreshold = data case "httpGet": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("httpGet")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__HttpGetProbeIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1HTTPGetProbeIn(ctx, v) if err != nil { @@ -39434,8 +39221,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.HTTPGet = data case "initialDelay": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("initialDelay")) data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { @@ -39443,8 +39228,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.InitialDelay = data case "interval": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("interval")) data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { @@ -39452,8 +39235,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Interval = data case "shell": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("shell")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__ShellProbeIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1ShellProbeIn(ctx, v) if err != nil { @@ -39461,8 +39242,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Shell = data case "tcp": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tcp")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__TcpProbeIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1TCPProbeIn(ctx, v) if err != nil { @@ -39470,8 +39249,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.TCP = data case "type": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -39499,8 +39276,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } switch k { case "connections": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connections")) data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { @@ -39508,8 +39283,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Connections = data case "enabled": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { @@ -39517,8 +39290,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Enabled = data case "rpm": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("rpm")) data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { @@ -39526,8 +39297,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Rpm = data case "rps": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("rps")) data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { @@ -39555,8 +39324,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } switch k { case "app": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("app")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -39564,8 +39331,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.App = data case "path": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("path")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -39573,8 +39338,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Path = data case "port": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("port")) data, err := ec.unmarshalNInt2int(ctx, v) if err != nil { @@ -39582,8 +39345,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Port = data case "rewrite": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("rewrite")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { @@ -39611,8 +39372,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } switch k { case "backendProtocol": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backendProtocol")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -39620,8 +39379,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.BackendProtocol = data case "basicAuth": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("basicAuth")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__BasicAuthIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1BasicAuthIn(ctx, v) if err != nil { @@ -39629,8 +39386,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.BasicAuth = data case "cors": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("cors")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__CorsIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1CorsIn(ctx, v) if err != nil { @@ -39638,8 +39393,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Cors = data case "domains": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("domains")) data, err := ec.unmarshalNString2ᚕstringᚄ(ctx, v) if err != nil { @@ -39647,8 +39400,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Domains = data case "https": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("https")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__HttpsIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1HTTPSIn(ctx, v) if err != nil { @@ -39656,8 +39407,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.HTTPS = data case "ingressClass": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ingressClass")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -39665,8 +39414,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.IngressClass = data case "maxBodySizeInMB": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("maxBodySizeInMB")) data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { @@ -39674,8 +39421,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.MaxBodySizeInMb = data case "rateLimit": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("rateLimit")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__RateLimitIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1RateLimitIn(ctx, v) if err != nil { @@ -39683,8 +39428,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.RateLimit = data case "routes": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("routes")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___crds___v1__RouteIn2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1RouteInᚄ(ctx, v) if err != nil { @@ -39712,8 +39455,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } switch k { case "command": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("command")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { @@ -39741,8 +39482,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } switch k { case "port": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("port")) data, err := ec.unmarshalNInt2int(ctx, v) if err != nil { @@ -39770,8 +39509,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } switch k { case "host": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("host")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -39779,8 +39516,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Host = data case "target": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("target")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -39808,8 +39543,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } switch k { case "activeNamespace": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("activeNamespace")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -39817,8 +39550,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.ActiveNamespace = data case "cnameRecords": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("cnameRecords")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___wireguard___v1__CNameRecordIn2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisWireguardV1CNameRecordInᚄ(ctx, v) if err != nil { @@ -39826,8 +39557,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.CnameRecords = data case "ports": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ports")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___apis___wireguard___v1__PortIn2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisWireguardV1PortInᚄ(ctx, v) if err != nil { @@ -39855,8 +39584,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } switch k { case "port": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("port")) data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { @@ -39864,8 +39591,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___a } it.Port = data case "targetPort": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("targetPort")) data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { @@ -39893,8 +39618,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___p } switch k { case "debug": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("debug")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -39902,8 +39625,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___p } it.Debug = data case "error": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("error")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -39911,8 +39632,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___p } it.Error = data case "generation": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("generation")) data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { @@ -39920,8 +39639,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___p } it.Generation = data case "info": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("info")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -39929,8 +39646,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___p } it.Info = data case "message": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("message")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -39938,8 +39653,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___p } it.Message = data case "startedAt": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("startedAt")) data, err := ec.unmarshalODate2ᚖstring(ctx, v) if err != nil { @@ -39947,8 +39660,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___p } it.StartedAt = data case "state": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("state")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___pkg___operator__State2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorPkgOperatorState(ctx, v) if err != nil { @@ -39956,8 +39667,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___p } it.State = data case "status": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) data, err := ec.unmarshalNBoolean2bool(ctx, v) if err != nil { @@ -39985,8 +39694,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___p } switch k { case "debug": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("debug")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { @@ -39994,8 +39701,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___p } it.Debug = data case "description": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -40003,8 +39708,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___p } it.Description = data case "hide": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hide")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { @@ -40012,8 +39715,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___p } it.Hide = data case "name": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -40021,8 +39722,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___p } it.Name = data case "title": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("title")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -40050,8 +39749,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___p } switch k { case "apiVersion": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("apiVersion")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -40059,8 +39756,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___p } it.APIVersion = data case "kind": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -40068,8 +39763,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___p } it.Kind = data case "name": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -40077,8 +39770,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___p } it.Name = data case "namespace": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -40106,8 +39797,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___p } switch k { case "checkList": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("checkList")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___pkg___operator__CheckMetaIn2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorPkgOperatorCheckMetaInᚄ(ctx, v) if err != nil { @@ -40115,8 +39804,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___p } it.CheckList = data case "checks": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("checks")) data, err := ec.unmarshalOMap2map(ctx, v) if err != nil { @@ -40124,8 +39811,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___p } it.Checks = data case "isReady": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isReady")) data, err := ec.unmarshalNBoolean2bool(ctx, v) if err != nil { @@ -40133,8 +39818,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___p } it.IsReady = data case "lastReadyGeneration": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastReadyGeneration")) data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { @@ -40142,8 +39825,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___p } it.LastReadyGeneration = data case "lastReconcileTime": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastReconcileTime")) data, err := ec.unmarshalODate2ᚖstring(ctx, v) if err != nil { @@ -40151,8 +39832,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___p } it.LastReconcileTime = data case "message": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("message")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___pkg___raw____json__RawJsonIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorPkgRawJSONRawJSONIn(ctx, v) if err != nil { @@ -40160,8 +39839,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___p } it.Message = data case "resources": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("resources")) data, err := ec.unmarshalOGithub__com___kloudlite___operator___pkg___operator__ResourceRefIn2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorPkgOperatorResourceRefInᚄ(ctx, v) if err != nil { @@ -40189,8 +39866,6 @@ func (ec *executionContext) unmarshalInputGithub__com___kloudlite___operator___p } switch k { case "RawMessage": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("RawMessage")) data, err := ec.unmarshalOAny2interface(ctx, v) if err != nil { @@ -40218,8 +39893,6 @@ func (ec *executionContext) unmarshalInputImagePullSecretIn(ctx context.Context, } switch k { case "displayName": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -40227,8 +39900,6 @@ func (ec *executionContext) unmarshalInputImagePullSecretIn(ctx context.Context, } it.DisplayName = data case "dockerConfigJson": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dockerConfigJson")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -40236,8 +39907,6 @@ func (ec *executionContext) unmarshalInputImagePullSecretIn(ctx context.Context, } it.DockerConfigJson = data case "environments": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("environments")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { @@ -40245,8 +39914,6 @@ func (ec *executionContext) unmarshalInputImagePullSecretIn(ctx context.Context, } it.Environments = data case "format": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("format")) data, err := ec.unmarshalNGithub__com___kloudlite___api___apps___console___internal___entities__PullSecretFormat2githubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteAPIAppsConsoleInternalEntitiesPullSecretFormat(ctx, v) if err != nil { @@ -40256,8 +39923,6 @@ func (ec *executionContext) unmarshalInputImagePullSecretIn(ctx context.Context, return it, err } case "metadata": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("metadata")) data, err := ec.unmarshalNMetadataIn2ᚖk8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐObjectMeta(ctx, v) if err != nil { @@ -40267,8 +39932,6 @@ func (ec *executionContext) unmarshalInputImagePullSecretIn(ctx context.Context, return it, err } case "registryPassword": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("registryPassword")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -40276,8 +39939,6 @@ func (ec *executionContext) unmarshalInputImagePullSecretIn(ctx context.Context, } it.RegistryPassword = data case "registryURL": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("registryURL")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -40285,8 +39946,6 @@ func (ec *executionContext) unmarshalInputImagePullSecretIn(ctx context.Context, } it.RegistryURL = data case "registryUsername": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("registryUsername")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -40314,8 +39973,6 @@ func (ec *executionContext) unmarshalInputK8s__io___api___core___v1__TolerationI } switch k { case "effect": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("effect")) data, err := ec.unmarshalOK8s__io___api___core___v1__TaintEffect2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1TaintEffect(ctx, v) if err != nil { @@ -40323,8 +39980,6 @@ func (ec *executionContext) unmarshalInputK8s__io___api___core___v1__TolerationI } it.Effect = data case "key": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -40332,8 +39987,6 @@ func (ec *executionContext) unmarshalInputK8s__io___api___core___v1__TolerationI } it.Key = data case "operator": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operator")) data, err := ec.unmarshalOK8s__io___api___core___v1__TolerationOperator2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1TolerationOperator(ctx, v) if err != nil { @@ -40341,8 +39994,6 @@ func (ec *executionContext) unmarshalInputK8s__io___api___core___v1__TolerationI } it.Operator = data case "tolerationSeconds": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tolerationSeconds")) data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { @@ -40350,8 +40001,6 @@ func (ec *executionContext) unmarshalInputK8s__io___api___core___v1__TolerationI } it.TolerationSeconds = data case "value": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -40379,8 +40028,6 @@ func (ec *executionContext) unmarshalInputK8s__io___api___core___v1__TopologySpr } switch k { case "labelSelector": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("labelSelector")) data, err := ec.unmarshalOK8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoApimachineryPkgApisMetaV1LabelSelectorIn(ctx, v) if err != nil { @@ -40388,8 +40035,6 @@ func (ec *executionContext) unmarshalInputK8s__io___api___core___v1__TopologySpr } it.LabelSelector = data case "matchLabelKeys": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("matchLabelKeys")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { @@ -40397,8 +40042,6 @@ func (ec *executionContext) unmarshalInputK8s__io___api___core___v1__TopologySpr } it.MatchLabelKeys = data case "maxSkew": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("maxSkew")) data, err := ec.unmarshalNInt2int(ctx, v) if err != nil { @@ -40406,8 +40049,6 @@ func (ec *executionContext) unmarshalInputK8s__io___api___core___v1__TopologySpr } it.MaxSkew = data case "minDomains": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("minDomains")) data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { @@ -40415,8 +40056,6 @@ func (ec *executionContext) unmarshalInputK8s__io___api___core___v1__TopologySpr } it.MinDomains = data case "nodeAffinityPolicy": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nodeAffinityPolicy")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -40424,8 +40063,6 @@ func (ec *executionContext) unmarshalInputK8s__io___api___core___v1__TopologySpr } it.NodeAffinityPolicy = data case "nodeTaintsPolicy": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nodeTaintsPolicy")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -40433,8 +40070,6 @@ func (ec *executionContext) unmarshalInputK8s__io___api___core___v1__TopologySpr } it.NodeTaintsPolicy = data case "topologyKey": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("topologyKey")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -40442,8 +40077,6 @@ func (ec *executionContext) unmarshalInputK8s__io___api___core___v1__TopologySpr } it.TopologyKey = data case "whenUnsatisfiable": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("whenUnsatisfiable")) data, err := ec.unmarshalNK8s__io___api___core___v1__UnsatisfiableConstraintAction2githubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1UnsatisfiableConstraintAction(ctx, v) if err != nil { @@ -40471,8 +40104,6 @@ func (ec *executionContext) unmarshalInputK8s__io___apimachinery___pkg___apis___ } switch k { case "matchExpressions": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("matchExpressions")) data, err := ec.unmarshalOK8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirementIn2ᚕᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoApimachineryPkgApisMetaV1LabelSelectorRequirementInᚄ(ctx, v) if err != nil { @@ -40480,8 +40111,6 @@ func (ec *executionContext) unmarshalInputK8s__io___apimachinery___pkg___apis___ } it.MatchExpressions = data case "matchLabels": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("matchLabels")) data, err := ec.unmarshalOMap2map(ctx, v) if err != nil { @@ -40509,8 +40138,6 @@ func (ec *executionContext) unmarshalInputK8s__io___apimachinery___pkg___apis___ } switch k { case "key": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -40518,8 +40145,6 @@ func (ec *executionContext) unmarshalInputK8s__io___apimachinery___pkg___apis___ } it.Key = data case "operator": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operator")) data, err := ec.unmarshalNK8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorOperator2githubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoApimachineryPkgApisMetaV1LabelSelectorOperator(ctx, v) if err != nil { @@ -40527,8 +40152,6 @@ func (ec *executionContext) unmarshalInputK8s__io___apimachinery___pkg___apis___ } it.Operator = data case "values": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("values")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { @@ -40556,8 +40179,6 @@ func (ec *executionContext) unmarshalInputManagedResourceIn(ctx context.Context, } switch k { case "apiVersion": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("apiVersion")) data, err := ec.unmarshalOString2string(ctx, v) if err != nil { @@ -40565,8 +40186,6 @@ func (ec *executionContext) unmarshalInputManagedResourceIn(ctx context.Context, } it.APIVersion = data case "displayName": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -40574,8 +40193,6 @@ func (ec *executionContext) unmarshalInputManagedResourceIn(ctx context.Context, } it.DisplayName = data case "enabled": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { @@ -40583,8 +40200,6 @@ func (ec *executionContext) unmarshalInputManagedResourceIn(ctx context.Context, } it.Enabled = data case "kind": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) data, err := ec.unmarshalOString2string(ctx, v) if err != nil { @@ -40592,8 +40207,6 @@ func (ec *executionContext) unmarshalInputManagedResourceIn(ctx context.Context, } it.Kind = data case "metadata": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("metadata")) data, err := ec.unmarshalOMetadataIn2ᚖk8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐObjectMeta(ctx, v) if err != nil { @@ -40603,8 +40216,6 @@ func (ec *executionContext) unmarshalInputManagedResourceIn(ctx context.Context, return it, err } case "spec": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("spec")) data, err := ec.unmarshalNGithub__com___kloudlite___operator___apis___crds___v1__ManagedResourceSpecIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1ManagedResourceSpecIn(ctx, v) if err != nil { @@ -40634,8 +40245,6 @@ func (ec *executionContext) unmarshalInputManagedResourceKeyRefIn(ctx context.Co } switch k { case "key": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -40643,8 +40252,6 @@ func (ec *executionContext) unmarshalInputManagedResourceKeyRefIn(ctx context.Co } it.Key = data case "mresName": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mresName")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -40672,8 +40279,6 @@ func (ec *executionContext) unmarshalInputManagedResourceKeyValueRefIn(ctx conte } switch k { case "key": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -40681,8 +40286,6 @@ func (ec *executionContext) unmarshalInputManagedResourceKeyValueRefIn(ctx conte } it.Key = data case "mresName": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mresName")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -40690,8 +40293,6 @@ func (ec *executionContext) unmarshalInputManagedResourceKeyValueRefIn(ctx conte } it.MresName = data case "value": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -40719,8 +40320,6 @@ func (ec *executionContext) unmarshalInputMatchFilterIn(ctx context.Context, obj } switch k { case "array": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("array")) data, err := ec.unmarshalOAny2ᚕinterfaceᚄ(ctx, v) if err != nil { @@ -40728,8 +40327,6 @@ func (ec *executionContext) unmarshalInputMatchFilterIn(ctx context.Context, obj } it.Array = data case "exact": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("exact")) data, err := ec.unmarshalOAny2interface(ctx, v) if err != nil { @@ -40737,8 +40334,6 @@ func (ec *executionContext) unmarshalInputMatchFilterIn(ctx context.Context, obj } it.Exact = data case "matchType": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("matchType")) data, err := ec.unmarshalNGithub__com___kloudlite___api___pkg___repos__MatchType2githubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteAPIPkgReposMatchType(ctx, v) if err != nil { @@ -40748,8 +40343,6 @@ func (ec *executionContext) unmarshalInputMatchFilterIn(ctx context.Context, obj return it, err } case "notInArray": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("notInArray")) data, err := ec.unmarshalOAny2ᚕinterfaceᚄ(ctx, v) if err != nil { @@ -40757,8 +40350,6 @@ func (ec *executionContext) unmarshalInputMatchFilterIn(ctx context.Context, obj } it.NotInArray = data case "regex": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("regex")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { @@ -40786,8 +40377,6 @@ func (ec *executionContext) unmarshalInputMetadataIn(ctx context.Context, obj in } switch k { case "annotations": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("annotations")) data, err := ec.unmarshalOMap2map(ctx, v) if err != nil { @@ -40797,8 +40386,6 @@ func (ec *executionContext) unmarshalInputMetadataIn(ctx context.Context, obj in return it, err } case "labels": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("labels")) data, err := ec.unmarshalOMap2map(ctx, v) if err != nil { @@ -40808,8 +40395,6 @@ func (ec *executionContext) unmarshalInputMetadataIn(ctx context.Context, obj in return it, err } case "name": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -40817,8 +40402,6 @@ func (ec *executionContext) unmarshalInputMetadataIn(ctx context.Context, obj in } it.Name = data case "namespace": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespace")) data, err := ec.unmarshalOString2string(ctx, v) if err != nil { @@ -40846,8 +40429,6 @@ func (ec *executionContext) unmarshalInputPortIn(ctx context.Context, obj interf } switch k { case "port": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("port")) data, err := ec.unmarshalOInt2int32(ctx, v) if err != nil { @@ -40855,8 +40436,6 @@ func (ec *executionContext) unmarshalInputPortIn(ctx context.Context, obj interf } it.Port = data case "targetPort": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("targetPort")) data, err := ec.unmarshalOInt2int32(ctx, v) if err != nil { @@ -40884,8 +40463,6 @@ func (ec *executionContext) unmarshalInputRouterIn(ctx context.Context, obj inte } switch k { case "apiVersion": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("apiVersion")) data, err := ec.unmarshalOString2string(ctx, v) if err != nil { @@ -40893,8 +40470,6 @@ func (ec *executionContext) unmarshalInputRouterIn(ctx context.Context, obj inte } it.APIVersion = data case "displayName": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -40902,8 +40477,6 @@ func (ec *executionContext) unmarshalInputRouterIn(ctx context.Context, obj inte } it.DisplayName = data case "enabled": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { @@ -40911,8 +40484,6 @@ func (ec *executionContext) unmarshalInputRouterIn(ctx context.Context, obj inte } it.Enabled = data case "kind": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) data, err := ec.unmarshalOString2string(ctx, v) if err != nil { @@ -40920,8 +40491,6 @@ func (ec *executionContext) unmarshalInputRouterIn(ctx context.Context, obj inte } it.Kind = data case "metadata": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("metadata")) data, err := ec.unmarshalOMetadataIn2ᚖk8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐObjectMeta(ctx, v) if err != nil { @@ -40931,8 +40500,6 @@ func (ec *executionContext) unmarshalInputRouterIn(ctx context.Context, obj inte return it, err } case "spec": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("spec")) data, err := ec.unmarshalNGithub__com___kloudlite___operator___apis___crds___v1__RouterSpecIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐGithubComKloudliteOperatorApisCrdsV1RouterSpecIn(ctx, v) if err != nil { @@ -40962,8 +40529,6 @@ func (ec *executionContext) unmarshalInputSearchApps(ctx context.Context, obj in } switch k { case "text": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) if err != nil { @@ -40971,8 +40536,6 @@ func (ec *executionContext) unmarshalInputSearchApps(ctx context.Context, obj in } it.Text = data case "isReady": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isReady")) data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) if err != nil { @@ -40980,8 +40543,6 @@ func (ec *executionContext) unmarshalInputSearchApps(ctx context.Context, obj in } it.IsReady = data case "markedForDeletion": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("markedForDeletion")) data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) if err != nil { @@ -41009,8 +40570,6 @@ func (ec *executionContext) unmarshalInputSearchConfigs(ctx context.Context, obj } switch k { case "text": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) if err != nil { @@ -41018,8 +40577,6 @@ func (ec *executionContext) unmarshalInputSearchConfigs(ctx context.Context, obj } it.Text = data case "isReady": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isReady")) data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) if err != nil { @@ -41027,8 +40584,6 @@ func (ec *executionContext) unmarshalInputSearchConfigs(ctx context.Context, obj } it.IsReady = data case "markedForDeletion": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("markedForDeletion")) data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) if err != nil { @@ -41056,8 +40611,6 @@ func (ec *executionContext) unmarshalInputSearchEnvironments(ctx context.Context } switch k { case "text": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) if err != nil { @@ -41065,8 +40618,6 @@ func (ec *executionContext) unmarshalInputSearchEnvironments(ctx context.Context } it.Text = data case "isReady": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isReady")) data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) if err != nil { @@ -41074,8 +40625,6 @@ func (ec *executionContext) unmarshalInputSearchEnvironments(ctx context.Context } it.IsReady = data case "markedForDeletion": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("markedForDeletion")) data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) if err != nil { @@ -41103,8 +40652,6 @@ func (ec *executionContext) unmarshalInputSearchExternalApps(ctx context.Context } switch k { case "text": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) if err != nil { @@ -41112,8 +40659,6 @@ func (ec *executionContext) unmarshalInputSearchExternalApps(ctx context.Context } it.Text = data case "isReady": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isReady")) data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) if err != nil { @@ -41121,8 +40666,6 @@ func (ec *executionContext) unmarshalInputSearchExternalApps(ctx context.Context } it.IsReady = data case "markedForDeletion": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("markedForDeletion")) data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) if err != nil { @@ -41150,8 +40693,6 @@ func (ec *executionContext) unmarshalInputSearchImagePullSecrets(ctx context.Con } switch k { case "text": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) if err != nil { @@ -41159,8 +40700,6 @@ func (ec *executionContext) unmarshalInputSearchImagePullSecrets(ctx context.Con } it.Text = data case "isReady": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isReady")) data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) if err != nil { @@ -41168,8 +40707,6 @@ func (ec *executionContext) unmarshalInputSearchImagePullSecrets(ctx context.Con } it.IsReady = data case "markedForDeletion": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("markedForDeletion")) data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) if err != nil { @@ -41197,8 +40734,6 @@ func (ec *executionContext) unmarshalInputSearchManagedResources(ctx context.Con } switch k { case "text": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) if err != nil { @@ -41206,8 +40741,6 @@ func (ec *executionContext) unmarshalInputSearchManagedResources(ctx context.Con } it.Text = data case "managedServiceName": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("managedServiceName")) data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) if err != nil { @@ -41215,8 +40748,6 @@ func (ec *executionContext) unmarshalInputSearchManagedResources(ctx context.Con } it.ManagedServiceName = data case "envName": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("envName")) data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) if err != nil { @@ -41224,8 +40755,6 @@ func (ec *executionContext) unmarshalInputSearchManagedResources(ctx context.Con } it.EnvName = data case "isReady": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isReady")) data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) if err != nil { @@ -41233,8 +40762,6 @@ func (ec *executionContext) unmarshalInputSearchManagedResources(ctx context.Con } it.IsReady = data case "markedForDeletion": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("markedForDeletion")) data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) if err != nil { @@ -41262,8 +40789,6 @@ func (ec *executionContext) unmarshalInputSearchProjectManagedService(ctx contex } switch k { case "text": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) if err != nil { @@ -41271,8 +40796,6 @@ func (ec *executionContext) unmarshalInputSearchProjectManagedService(ctx contex } it.Text = data case "managedServiceName": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("managedServiceName")) data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) if err != nil { @@ -41280,8 +40803,6 @@ func (ec *executionContext) unmarshalInputSearchProjectManagedService(ctx contex } it.ManagedServiceName = data case "isReady": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isReady")) data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) if err != nil { @@ -41289,8 +40810,6 @@ func (ec *executionContext) unmarshalInputSearchProjectManagedService(ctx contex } it.IsReady = data case "markedForDeletion": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("markedForDeletion")) data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) if err != nil { @@ -41318,8 +40837,6 @@ func (ec *executionContext) unmarshalInputSearchProjects(ctx context.Context, ob } switch k { case "text": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) if err != nil { @@ -41327,8 +40844,6 @@ func (ec *executionContext) unmarshalInputSearchProjects(ctx context.Context, ob } it.Text = data case "isReady": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isReady")) data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) if err != nil { @@ -41336,8 +40851,6 @@ func (ec *executionContext) unmarshalInputSearchProjects(ctx context.Context, ob } it.IsReady = data case "markedForDeletion": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("markedForDeletion")) data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) if err != nil { @@ -41365,8 +40878,6 @@ func (ec *executionContext) unmarshalInputSearchRouters(ctx context.Context, obj } switch k { case "text": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) if err != nil { @@ -41374,8 +40885,6 @@ func (ec *executionContext) unmarshalInputSearchRouters(ctx context.Context, obj } it.Text = data case "isReady": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isReady")) data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) if err != nil { @@ -41383,8 +40892,6 @@ func (ec *executionContext) unmarshalInputSearchRouters(ctx context.Context, obj } it.IsReady = data case "markedForDeletion": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("markedForDeletion")) data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) if err != nil { @@ -41412,8 +40919,6 @@ func (ec *executionContext) unmarshalInputSearchSecrets(ctx context.Context, obj } switch k { case "text": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) if err != nil { @@ -41421,8 +40926,6 @@ func (ec *executionContext) unmarshalInputSearchSecrets(ctx context.Context, obj } it.Text = data case "isReady": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isReady")) data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) if err != nil { @@ -41430,8 +40933,6 @@ func (ec *executionContext) unmarshalInputSearchSecrets(ctx context.Context, obj } it.IsReady = data case "markedForDeletion": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("markedForDeletion")) data, err := ec.unmarshalOMatchFilterIn2ᚖgithubᚗcomᚋkloudliteᚋapiᚋpkgᚋreposᚐMatchFilter(ctx, v) if err != nil { @@ -41459,8 +40960,6 @@ func (ec *executionContext) unmarshalInputSecretIn(ctx context.Context, obj inte } switch k { case "apiVersion": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("apiVersion")) data, err := ec.unmarshalOString2string(ctx, v) if err != nil { @@ -41468,8 +40967,6 @@ func (ec *executionContext) unmarshalInputSecretIn(ctx context.Context, obj inte } it.APIVersion = data case "data": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("data")) data, err := ec.unmarshalOMap2map(ctx, v) if err != nil { @@ -41479,8 +40976,6 @@ func (ec *executionContext) unmarshalInputSecretIn(ctx context.Context, obj inte return it, err } case "displayName": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -41488,8 +40983,6 @@ func (ec *executionContext) unmarshalInputSecretIn(ctx context.Context, obj inte } it.DisplayName = data case "immutable": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("immutable")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { @@ -41497,8 +40990,6 @@ func (ec *executionContext) unmarshalInputSecretIn(ctx context.Context, obj inte } it.Immutable = data case "kind": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) data, err := ec.unmarshalOString2string(ctx, v) if err != nil { @@ -41506,8 +40997,6 @@ func (ec *executionContext) unmarshalInputSecretIn(ctx context.Context, obj inte } it.Kind = data case "metadata": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("metadata")) data, err := ec.unmarshalOMetadataIn2ᚖk8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐObjectMeta(ctx, v) if err != nil { @@ -41517,8 +41006,6 @@ func (ec *executionContext) unmarshalInputSecretIn(ctx context.Context, obj inte return it, err } case "stringData": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("stringData")) data, err := ec.unmarshalOMap2map(ctx, v) if err != nil { @@ -41528,8 +41015,6 @@ func (ec *executionContext) unmarshalInputSecretIn(ctx context.Context, obj inte return it, err } case "type": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type")) data, err := ec.unmarshalOK8s__io___api___core___v1__SecretType2ᚖgithubᚗcomᚋkloudliteᚋapiᚋappsᚋconsoleᚋinternalᚋappᚋgraphᚋmodelᚐK8sIoAPICoreV1SecretType(ctx, v) if err != nil { @@ -41559,8 +41044,6 @@ func (ec *executionContext) unmarshalInputSecretKeyRefIn(ctx context.Context, ob } switch k { case "key": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -41568,8 +41051,6 @@ func (ec *executionContext) unmarshalInputSecretKeyRefIn(ctx context.Context, ob } it.Key = data case "secretName": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretName")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -41597,8 +41078,6 @@ func (ec *executionContext) unmarshalInputSecretKeyValueRefIn(ctx context.Contex } switch k { case "key": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -41606,8 +41085,6 @@ func (ec *executionContext) unmarshalInputSecretKeyValueRefIn(ctx context.Contex } it.Key = data case "secretName": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretName")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -41615,8 +41092,6 @@ func (ec *executionContext) unmarshalInputSecretKeyValueRefIn(ctx context.Contex } it.SecretName = data case "value": - var err error - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { @@ -42963,6 +42438,8 @@ func (ec *executionContext) _Environment(ctx context.Context, sel ast.SelectionS if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } + case "isArchived": + out.Values[i] = ec._Environment_isArchived(ctx, field, obj) case "kind": out.Values[i] = ec._Environment_kind(ctx, field, obj) case "lastUpdatedBy": @@ -50808,6 +50285,85 @@ func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel a return res } +func (ec *executionContext) unmarshalNfederation__Policy2string(ctx context.Context, v interface{}) (string, error) { + res, err := graphql.UnmarshalString(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNfederation__Policy2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { + res := graphql.MarshalString(v) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNfederation__Policy2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]string, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNfederation__Policy2string(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNfederation__Policy2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + for i := range v { + ret[i] = ec.marshalNfederation__Policy2string(ctx, sel, v[i]) + } + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNfederation__Policy2ᚕᚕstringᚄ(ctx context.Context, v interface{}) ([][]string, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([][]string, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNfederation__Policy2ᚕstringᚄ(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNfederation__Policy2ᚕᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v [][]string) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + for i := range v { + ret[i] = ec.marshalNfederation__Policy2ᚕstringᚄ(ctx, sel, v[i]) + } + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + func (ec *executionContext) unmarshalNfederation__Scope2string(ctx context.Context, v interface{}) (string, error) { res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) @@ -50887,7 +50443,7 @@ func (ec *executionContext) marshalNfederation__Scope2ᚕᚕstringᚄ(ctx contex return ret } -func (ec *executionContext) unmarshalOAny2interface(ctx context.Context, v interface{}) (interface{}, error) { +func (ec *executionContext) unmarshalOAny2interface(ctx context.Context, v interface{}) (any, error) { if v == nil { return nil, nil } @@ -50895,7 +50451,7 @@ func (ec *executionContext) unmarshalOAny2interface(ctx context.Context, v inter return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOAny2interface(ctx context.Context, sel ast.SelectionSet, v interface{}) graphql.Marshaler { +func (ec *executionContext) marshalOAny2interface(ctx context.Context, sel ast.SelectionSet, v any) graphql.Marshaler { if v == nil { return graphql.Null } diff --git a/apps/console/internal/app/graph/imagepullsecret.resolvers.go b/apps/console/internal/app/graph/imagepullsecret.resolvers.go index c1bed176e..221f056a4 100644 --- a/apps/console/internal/app/graph/imagepullsecret.resolvers.go +++ b/apps/console/internal/app/graph/imagepullsecret.resolvers.go @@ -2,7 +2,7 @@ package graph // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.39 +// Code generated by github.com/99designs/gqlgen version v0.17.45 import ( "context" diff --git a/apps/console/internal/app/graph/managedresource.resolvers.go b/apps/console/internal/app/graph/managedresource.resolvers.go index 1ef620efc..69a7381d0 100644 --- a/apps/console/internal/app/graph/managedresource.resolvers.go +++ b/apps/console/internal/app/graph/managedresource.resolvers.go @@ -2,7 +2,7 @@ package graph // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.39 +// Code generated by github.com/99designs/gqlgen version v0.17.45 import ( "context" diff --git a/apps/console/internal/app/graph/matchfilter.resolvers.go b/apps/console/internal/app/graph/matchfilter.resolvers.go index 5451848d4..6506351e9 100644 --- a/apps/console/internal/app/graph/matchfilter.resolvers.go +++ b/apps/console/internal/app/graph/matchfilter.resolvers.go @@ -2,7 +2,7 @@ package graph // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.39 +// Code generated by github.com/99designs/gqlgen version v0.17.45 import ( "context" diff --git a/apps/console/internal/app/graph/model/models_gen.go b/apps/console/internal/app/graph/model/models_gen.go index 75be4f056..0bf4454d2 100644 --- a/apps/console/internal/app/graph/model/models_gen.go +++ b/apps/console/internal/app/graph/model/models_gen.go @@ -692,6 +692,9 @@ type ManagedResourcePaginatedRecords struct { TotalCount int `json:"totalCount"` } +type Mutation struct { +} + type PageInfo struct { EndCursor *string `json:"endCursor,omitempty"` HasNextPage *bool `json:"hasNextPage,omitempty"` @@ -704,6 +707,9 @@ type Port struct { TargetPort *int `json:"targetPort,omitempty"` } +type Query struct { +} + type RouterEdge struct { Cursor string `json:"cursor"` Node *entities.Router `json:"node"` diff --git a/apps/console/internal/app/graph/router.resolvers.go b/apps/console/internal/app/graph/router.resolvers.go index 1e602c9c2..b69be7b32 100644 --- a/apps/console/internal/app/graph/router.resolvers.go +++ b/apps/console/internal/app/graph/router.resolvers.go @@ -2,7 +2,7 @@ package graph // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.39 +// Code generated by github.com/99designs/gqlgen version v0.17.45 import ( "context" diff --git a/apps/console/internal/app/graph/schema.resolvers.go b/apps/console/internal/app/graph/schema.resolvers.go index b27297b06..5d6258fce 100644 --- a/apps/console/internal/app/graph/schema.resolvers.go +++ b/apps/console/internal/app/graph/schema.resolvers.go @@ -2,12 +2,11 @@ package graph // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.39 +// Code generated by github.com/99designs/gqlgen version v0.17.45 import ( "context" "fmt" - "github.com/kloudlite/api/pkg/errors" "github.com/kloudlite/api/apps/console/internal/app/graph/generated" @@ -982,7 +981,5 @@ func (r *Resolver) Mutation() generated.MutationResolver { return &mutationResol // Query returns generated.QueryResolver implementation. func (r *Resolver) Query() generated.QueryResolver { return &queryResolver{r} } -type ( - mutationResolver struct{ *Resolver } - queryResolver struct{ *Resolver } -) +type mutationResolver struct{ *Resolver } +type queryResolver struct{ *Resolver } diff --git a/apps/console/internal/app/graph/secret.resolvers.go b/apps/console/internal/app/graph/secret.resolvers.go index 8a9781136..c7969555a 100644 --- a/apps/console/internal/app/graph/secret.resolvers.go +++ b/apps/console/internal/app/graph/secret.resolvers.go @@ -2,7 +2,7 @@ package graph // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.39 +// Code generated by github.com/99designs/gqlgen version v0.17.45 import ( "context" diff --git a/apps/console/internal/app/graph/struct-to-graphql/environment.graphqls b/apps/console/internal/app/graph/struct-to-graphql/environment.graphqls index 01d4c4bb7..ea95a896d 100644 --- a/apps/console/internal/app/graph/struct-to-graphql/environment.graphqls +++ b/apps/console/internal/app/graph/struct-to-graphql/environment.graphqls @@ -6,6 +6,7 @@ type Environment @shareable { creationTime: Date! displayName: String! id: ID! + isArchived: Boolean kind: String lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! markedForDeletion: Boolean diff --git a/apps/console/internal/domain/environment.go b/apps/console/internal/domain/environment.go index 5f57c2a9e..547b1d7b4 100644 --- a/apps/console/internal/domain/environment.go +++ b/apps/console/internal/domain/environment.go @@ -419,11 +419,7 @@ func (d *domain) ArchiveEnvironmentsForCluster(ctx ConsoleContext, clusterName s fields.MetadataName: envs[i].Name, } - _, err := d.environmentRepo.Patch( - ctx, - patchFilter, - patchForUpdate, - ) + _, err := d.environmentRepo.Patch(ctx, patchFilter, patchForUpdate) if err != nil { return false, errors.NewE(err) } diff --git a/apps/console/internal/entities/environment.go b/apps/console/internal/entities/environment.go index f523b73be..ed62e4df3 100644 --- a/apps/console/internal/entities/environment.go +++ b/apps/console/internal/entities/environment.go @@ -18,7 +18,7 @@ type Environment struct { AccountName string `json:"accountName" graphql:"noinput"` ClusterName string `json:"clusterName"` - IsArchived bool `json:"IsArchived,omitempty" graphql:"noinput"` + IsArchived *bool `json:"isArchived,omitempty" graphql:"noinput"` common.ResourceMetadata `json:",inline"` SyncStatus t.SyncStatus `json:"syncStatus" graphql:"noinput"` diff --git a/apps/console/internal/entities/field-constants/generated_constants.go b/apps/console/internal/entities/field-constants/generated_constants.go index f41bc0310..8b9ee0081 100644 --- a/apps/console/internal/entities/field-constants/generated_constants.go +++ b/apps/console/internal/entities/field-constants/generated_constants.go @@ -76,7 +76,7 @@ const ( // constant vars generated for struct Environment const ( - EnvironmentIsArchived = "IsArchived" + EnvironmentIsArchived = "isArchived" EnvironmentSpec = "spec" EnvironmentSpecRouting = "spec.routing" EnvironmentSpecRoutingMode = "spec.routing.mode" diff --git a/apps/infra/internal/app/graph/byokcluster.resolvers.go b/apps/infra/internal/app/graph/byokcluster.resolvers.go index cd7b2f161..46d8ca0a7 100644 --- a/apps/infra/internal/app/graph/byokcluster.resolvers.go +++ b/apps/infra/internal/app/graph/byokcluster.resolvers.go @@ -6,9 +6,8 @@ package graph import ( "context" - "time" - "github.com/kloudlite/api/pkg/errors" + "time" "github.com/kloudlite/api/apps/infra/internal/app/graph/generated" "github.com/kloudlite/api/apps/infra/internal/app/graph/model" @@ -81,7 +80,5 @@ func (r *Resolver) BYOKCluster() generated.BYOKClusterResolver { return &bYOKClu // BYOKClusterIn returns generated.BYOKClusterInResolver implementation. func (r *Resolver) BYOKClusterIn() generated.BYOKClusterInResolver { return &bYOKClusterInResolver{r} } -type ( - bYOKClusterResolver struct{ *Resolver } - bYOKClusterInResolver struct{ *Resolver } -) +type bYOKClusterResolver struct{ *Resolver } +type bYOKClusterInResolver struct{ *Resolver } diff --git a/apps/infra/internal/app/graph/cluster.resolvers.go b/apps/infra/internal/app/graph/cluster.resolvers.go index dec5d147e..774412bcf 100644 --- a/apps/infra/internal/app/graph/cluster.resolvers.go +++ b/apps/infra/internal/app/graph/cluster.resolvers.go @@ -6,9 +6,8 @@ package graph import ( "context" - "time" - "github.com/kloudlite/api/pkg/errors" + "time" "github.com/kloudlite/api/apps/infra/internal/app/graph/generated" "github.com/kloudlite/api/apps/infra/internal/app/graph/model" @@ -96,7 +95,5 @@ func (r *Resolver) Cluster() generated.ClusterResolver { return &clusterResolver // ClusterIn returns generated.ClusterInResolver implementation. func (r *Resolver) ClusterIn() generated.ClusterInResolver { return &clusterInResolver{r} } -type ( - clusterResolver struct{ *Resolver } - clusterInResolver struct{ *Resolver } -) +type clusterResolver struct{ *Resolver } +type clusterInResolver struct{ *Resolver } diff --git a/apps/infra/internal/app/graph/generated/generated.go b/apps/infra/internal/app/graph/generated/generated.go index 9b40638b9..ad27f1e6d 100644 --- a/apps/infra/internal/app/graph/generated/generated.go +++ b/apps/infra/internal/app/graph/generated/generated.go @@ -75605,7 +75605,7 @@ func (ec *executionContext) marshalNfederation__Scope2ᚕᚕstringᚄ(ctx contex return ret } -func (ec *executionContext) unmarshalOAny2interface(ctx context.Context, v interface{}) (any, error) { +func (ec *executionContext) unmarshalOAny2interface(ctx context.Context, v interface{}) (interface{}, error) { if v == nil { return nil, nil } @@ -75613,7 +75613,7 @@ func (ec *executionContext) unmarshalOAny2interface(ctx context.Context, v inter return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOAny2interface(ctx context.Context, sel ast.SelectionSet, v any) graphql.Marshaler { +func (ec *executionContext) marshalOAny2interface(ctx context.Context, sel ast.SelectionSet, v interface{}) graphql.Marshaler { if v == nil { return graphql.Null } diff --git a/apps/infra/internal/domain/byok-clusters.go b/apps/infra/internal/domain/byok-clusters.go index 73a15206e..c0f8973cc 100644 --- a/apps/infra/internal/domain/byok-clusters.go +++ b/apps/infra/internal/domain/byok-clusters.go @@ -9,6 +9,7 @@ import ( fc "github.com/kloudlite/api/apps/infra/internal/entities/field-constants" "github.com/kloudlite/api/common" "github.com/kloudlite/api/common/fields" + "github.com/kloudlite/api/grpc-interfaces/kloudlite.io/rpc/console" "github.com/kloudlite/api/pkg/errors" fn "github.com/kloudlite/api/pkg/functions" "github.com/kloudlite/api/pkg/repos" @@ -210,6 +211,16 @@ func (d *domain) DeleteBYOKCluster(ctx InfraContext, name string) error { } } + if _, err := d.consoleClient.ArchiveEnvironmentsForCluster(ctx, &console.ArchiveEnvironmentsForClusterIn{ + UserId: string(ctx.UserId), + UserName: ctx.UserName, + UserEmail: ctx.UserEmail, + AccountName: ctx.AccountName, + ClusterName: name, + }); err != nil { + return errors.NewE(err) + } + if err := d.byokClusterRepo.DeleteOne(ctx, entities.UniqueBYOKClusterFilter(ctx.AccountName, name)); err != nil { return errors.NewE(err) } diff --git a/apps/infra/internal/domain/clusters.go b/apps/infra/internal/domain/clusters.go index c64ba16f0..72365b9a3 100644 --- a/apps/infra/internal/domain/clusters.go +++ b/apps/infra/internal/domain/clusters.go @@ -13,6 +13,7 @@ import ( fc "github.com/kloudlite/api/apps/infra/internal/entities/field-constants" "github.com/kloudlite/api/common" "github.com/kloudlite/api/common/fields" + "github.com/kloudlite/api/grpc-interfaces/kloudlite.io/rpc/console" message_office_internal "github.com/kloudlite/api/grpc-interfaces/kloudlite.io/rpc/message-office-internal" ct "github.com/kloudlite/operator/apis/common-types" "github.com/kloudlite/operator/operators/resource-watcher/types" @@ -409,11 +410,16 @@ func (d *domain) syncKloudliteDeviceOnCluster(ctx InfraContext, gvpnName string) return err } - wgParams, err := d.buildGlobalVPNDeviceWgBaseParams(ctx, gvpnConns, klDevice) + wgParams, deviceHosts, err := d.buildGlobalVPNDeviceWgBaseParams(ctx, gvpnConns, klDevice) if err != nil { return err } + deviceSvcHosts := make([]string, 0, len(deviceHosts)) + for k, v := range deviceHosts { + deviceSvcHosts = append(deviceSvcHosts, fmt.Sprintf("%s=%s", k, v)) + } + wgParams.DNS = klDevice.IPAddr wgParams.ListenPort = 31820 @@ -491,6 +497,7 @@ func (d *domain) syncKloudliteDeviceOnCluster(ctx InfraContext, gvpnName string) KubeReverseProxyImage: d.env.GlobalVPNKubeReverseProxyImage, AuthzToken: d.env.GlobalVPNKubeReverseProxyAuthzToken, GatewayDNSServers: strings.Join(dnsServerArgs, ","), + GatewayServiceHosts: strings.Join(deviceSvcHosts, ","), WireguardPort: wgParams.ListenPort, }) if err != nil { @@ -745,6 +752,16 @@ func (d *domain) DeleteCluster(ctx InfraContext, name string) error { return errors.NewE(err) } + if _, err := d.consoleClient.ArchiveEnvironmentsForCluster(ctx, &console.ArchiveEnvironmentsForClusterIn{ + UserId: string(ctx.UserId), + UserName: ctx.UserName, + UserEmail: ctx.UserEmail, + AccountName: ctx.AccountName, + ClusterName: name, + }); err != nil { + return errors.NewE(err) + } + d.resourceEventPublisher.PublishInfraEvent(ctx, ResourceTypeCluster, ucluster.Name, PublishUpdate) if err := d.deleteK8sResource(ctx, &ucluster.Cluster); err != nil { if !apiErrors.IsNotFound(err) { @@ -767,22 +784,6 @@ func (d *domain) OnClusterDeleteMessage(ctx InfraContext, cluster entities.Clust return errors.NewE(err) } - //TODO: Archive environment for cluster: - //archiveStatus, err := d.consoleClient.ArchiveEnvironmentsForCluster(ctx, &console.ArchiveEnvironmentsForClusterIn{ - // UserId: string(ctx.UserId), - // UserName: ctx.UserName, - // UserEmail: ctx.UserEmail, - // AccountName: ctx.AccountName, - // ClusterName: xcluster.Name, - //}) - //if err != nil { - // return errors.NewE(err) - //} - // - //if !archiveStatus { - // return errors.Newf("failed to archive environments for cluster %q", xcluster.Name) - //} - d.resourceEventPublisher.PublishInfraEvent(ctx, ResourceTypeCluster, cluster.Name, PublishDelete) if xcluster.GlobalVPN != nil { @@ -878,6 +879,7 @@ func (d *domain) MarkClusterOnlineAt(ctx InfraContext, clusterName string, times }); err != nil { return errors.NewEf(err, "failed to patch last online time for byok cluster %q,", clusterName) } + return nil } if _, err := d.clusterRepo.Patch(ctx, repos.Filter{ diff --git a/apps/infra/internal/domain/domain.go b/apps/infra/internal/domain/domain.go index f2c75346c..fb79b227f 100644 --- a/apps/infra/internal/domain/domain.go +++ b/apps/infra/internal/domain/domain.go @@ -2,11 +2,12 @@ package domain import ( "fmt" - "github.com/kloudlite/api/grpc-interfaces/kloudlite.io/rpc/console" "io" "os" "strconv" + "github.com/kloudlite/api/grpc-interfaces/kloudlite.io/rpc/console" + "sigs.k8s.io/yaml" "github.com/kloudlite/api/pkg/errors" @@ -202,6 +203,7 @@ var Module = fx.Module("domain", msgOfficeInternalClient message_office_internal.MessageOfficeInternalClient, logger logging.Logger, resourceEventPublisher ResourceEventPublisher, + ) (Domain, error) { open, err := os.Open(env.MsvcTemplateFilePath) if err != nil { diff --git a/apps/infra/internal/domain/global-vpn-cluster-connection.go b/apps/infra/internal/domain/global-vpn-cluster-connection.go index eaf7f6326..9e90a31fe 100644 --- a/apps/infra/internal/domain/global-vpn-cluster-connection.go +++ b/apps/infra/internal/domain/global-vpn-cluster-connection.go @@ -56,7 +56,8 @@ func (d *domain) getGlobalVPNConnectionPeers(args getGlobalVPNConnectionPeersArg } peer := networkingv1.Peer{ - DisplayName: fmt.Sprintf("gateway/%s/%s", c.GlobalVPNName, c.ClusterName), + DNSHostname: fmt.Sprintf("%s.device.local", c.Name), + Comments: fmt.Sprintf("gateway/%s/%s", c.GlobalVPNName, c.ClusterName), PublicKey: c.ParsedWgParams.PublicKey, AllowedIPs: []string{c.ClusterCIDR, fmt.Sprintf("%s/32", c.DeviceRef.IPAddr)}, IP: c.Spec.GlobalIP, @@ -326,6 +327,11 @@ func (d *domain) deleteGlobalVPNConnection(ctx InfraContext, clusterName string, } } + if gv == nil { + // INFO: global vpn connection not found, nothing to do + return nil + } + if err := d.deleteGlobalVPNDevice(ctx, gvpnName, gv.DeviceRef.Name); err != nil { return errors.NewE(err) } @@ -418,7 +424,7 @@ func (d *domain) findGlobalVPNConnection(ctx InfraContext, clusterName string, g return nil, errors.NewE(err) } if cc == nil { - return nil, errors.Newf("global vpn with name (%s) not found, for cluster (%s)", groupName, clusterName) + return nil, errors.ErrNotFound{Message: "global vpn connection not found"} } return cc, nil } diff --git a/apps/infra/internal/domain/global-vpn-devices.go b/apps/infra/internal/domain/global-vpn-devices.go index 6d2da08fb..33a2ec265 100644 --- a/apps/infra/internal/domain/global-vpn-devices.go +++ b/apps/infra/internal/domain/global-vpn-devices.go @@ -194,7 +194,8 @@ func (d *domain) buildPeerFromGlobalVPNDevice(ctx InfraContext, gvpn *entities.G } return &networkingv1.Peer{ - DisplayName: fmt.Sprintf("device/%s/%s", device.GlobalVPNName, device.Name), + Comments: fmt.Sprintf("device/%s/%s", device.GlobalVPNName, device.Name), + DNSHostname: fmt.Sprintf("%s.device.local", device.Name), PublicKey: device.PublicKey, PublicEndpoint: device.PublicEndpoint, IP: device.IPAddr, @@ -233,7 +234,8 @@ func (d *domain) buildPeersFromGlobalVPNDevices(ctx InfraContext, gvpn string) ( } publicPeers = append(publicPeers, networkingv1.Peer{ - DisplayName: fmt.Sprintf("device/%s/%s", devices[i].GlobalVPNName, devices[i].Name), + Comments: fmt.Sprintf("device/%s/%s", devices[i].GlobalVPNName, devices[i].Name), + DNSHostname: fmt.Sprintf("%s.device.local", devices[i].Name), PublicKey: devices[i].PublicKey, PublicEndpoint: devices[i].PublicEndpoint, IP: devices[i].IPAddr, @@ -244,7 +246,8 @@ func (d *domain) buildPeersFromGlobalVPNDevices(ctx InfraContext, gvpn string) ( } privatePeers = append(privatePeers, networkingv1.Peer{ - DisplayName: fmt.Sprintf("device/%s/%s", devices[i].GlobalVPNName, devices[i].Name), + Comments: fmt.Sprintf("device/%s/%s", devices[i].GlobalVPNName, devices[i].Name), + DNSHostname: fmt.Sprintf("%s.device.local", devices[i].Name), PublicKey: devices[i].PublicKey, IP: devices[i].IPAddr, DNSSuffix: nil, @@ -267,21 +270,24 @@ func (d *domain) GetGlobalVPNDeviceWgConfig(ctx InfraContext, gvpn string, gvpnD return d.getGlobalVPNDeviceWgConfig(ctx, gvpn, gvpnDevice, nil) } -func (d *domain) buildGlobalVPNDeviceWgBaseParams(ctx InfraContext, gvpnConns []*entities.GlobalVPNConnection, gvpnDevice *entities.GlobalVPNDevice) (*wgutils.WgConfigParams, error) { +func (d *domain) buildGlobalVPNDeviceWgBaseParams(ctx InfraContext, gvpnConns []*entities.GlobalVPNConnection, gvpnDevice *entities.GlobalVPNDevice) (wgparams *wgutils.WgConfigParams, deviceHosts map[string]string, err error) { gvpnConnPeers := d.getGlobalVPNConnectionPeers(getGlobalVPNConnectionPeersArgs{ GlobalVPNConnections: gvpnConns, }) + deviceHosts = make(map[string]string) + pubPeers, privPeers, err := d.buildPeersFromGlobalVPNDevices(ctx, gvpnDevice.GlobalVPNName) if err != nil { - return nil, err + return nil, deviceHosts, err } pubPeers = append(gvpnConnPeers, pubPeers...) publicPeers := make([]wgutils.PublicPeer, 0, len(pubPeers)) for _, peer := range pubPeers { - if peer.DisplayName == fmt.Sprintf("device/%s/%s", gvpnDevice.GlobalVPNName, gvpnDevice.Name) || peer.DisplayName == fmt.Sprintf("gateway/%s/%s", gvpnDevice.GlobalVPNName, gvpnDevice.Name) { + deviceHosts[peer.DNSHostname] = peer.IP + if peer.DNSHostname == fmt.Sprintf("%s.device.local", gvpnDevice.Name) { continue } if peer.PublicEndpoint == nil { @@ -289,7 +295,7 @@ func (d *domain) buildGlobalVPNDeviceWgBaseParams(ctx InfraContext, gvpnConns [] continue } publicPeers = append(publicPeers, wgutils.PublicPeer{ - DisplayName: peer.DisplayName, + DisplayName: peer.DNSHostname, PublicKey: peer.PublicKey, AllowedIPs: peer.AllowedIPs, Endpoint: *peer.PublicEndpoint, @@ -298,11 +304,12 @@ func (d *domain) buildGlobalVPNDeviceWgBaseParams(ctx InfraContext, gvpnConns [] privatePeers := make([]wgutils.PrivatePeer, 0, len(privPeers)) for _, peer := range privPeers { - if peer.DisplayName == fmt.Sprintf("%s/%s", gvpnDevice.GlobalVPNName, gvpnDevice.Name) { + deviceHosts[peer.DNSHostname] = peer.IP + if peer.DNSHostname == fmt.Sprintf("%s.device.local", gvpnDevice.Name) { continue } privatePeers = append(privatePeers, wgutils.PrivatePeer{ - DisplayName: peer.DisplayName, + DisplayName: peer.DNSHostname, PublicKey: peer.PublicKey, AllowedIPs: peer.AllowedIPs, }) @@ -313,7 +320,7 @@ func (d *domain) buildGlobalVPNDeviceWgBaseParams(ctx InfraContext, gvpnConns [] PrivateKey: gvpnDevice.PrivateKey, PublicPeers: publicPeers, PrivatePeers: privatePeers, - }, nil + }, deviceHosts, nil } func (d *domain) getGlobalVPNDeviceWgConfig(ctx InfraContext, gvpn string, gvpnDevice string, postUp []string) (string, error) { diff --git a/apps/infra/internal/domain/templates/global-vpn-kloudlite-device.yml.tpl b/apps/infra/internal/domain/templates/global-vpn-kloudlite-device.yml.tpl index 09bc89e40..43ff48e2e 100644 --- a/apps/infra/internal/domain/templates/global-vpn-kloudlite-device.yml.tpl +++ b/apps/infra/internal/domain/templates/global-vpn-kloudlite-device.yml.tpl @@ -137,6 +137,9 @@ spec: - --dns-servers - {{.GatewayDNSServers}} + - --service-hosts + - {{.GatewayServiceHosts}} + - --debug imagePullPolicy: Always resources: diff --git a/apps/infra/internal/domain/templates/types.go b/apps/infra/internal/domain/templates/types.go index bee310dff..230cee202 100644 --- a/apps/infra/internal/domain/templates/types.go +++ b/apps/infra/internal/domain/templates/types.go @@ -9,5 +9,6 @@ type GVPNKloudliteDeviceTemplateVars struct { KubeReverseProxyImage string AuthzToken string - GatewayDNSServers string + GatewayDNSServers string + GatewayServiceHosts string } From 44535e968c1d945b7e047666896b0b7974ae47dd Mon Sep 17 00:00:00 2001 From: nxtcoder17 Date: Tue, 18 Jun 2024 05:26:55 +0530 Subject: [PATCH 3/3] feat(tenant-agent): improves disconnect handling --- .../__http__/infra/byok-clusters.graphql.yml | 13 +++++++++ .../internal/app/grpc-server.go | 1 + apps/tenant-agent/main.go | 27 +++++++++++++++---- apps/tenant-agent/vector-grpc-proxy-server.go | 8 ++++++ go.mod | 2 +- go.sum | 4 +-- 6 files changed, 47 insertions(+), 8 deletions(-) diff --git a/.tools/nvim/__http__/infra/byok-clusters.graphql.yml b/.tools/nvim/__http__/infra/byok-clusters.graphql.yml index 7bbc1cce4..12e99c7fb 100644 --- a/.tools/nvim/__http__/infra/byok-clusters.graphql.yml +++ b/.tools/nvim/__http__/infra/byok-clusters.graphql.yml @@ -14,3 +14,16 @@ variables: metadata: name: "{{.clusterName}}" --- + +--- +label: Setup Instructions +query: |+ + query Infra_getBYOKClusterSetupInstructions($name: String!) { + infrat_getBYOKClusterSetupInstructions(name: $name) { + title + command + } + } +variables: + name: "gke-autopilot-1" +--- diff --git a/apps/message-office/internal/app/grpc-server.go b/apps/message-office/internal/app/grpc-server.go index 4092ebffb..6ab512a08 100644 --- a/apps/message-office/internal/app/grpc-server.go +++ b/apps/message-office/internal/app/grpc-server.go @@ -345,6 +345,7 @@ func (g *grpcServer) SendActions(request *messages.Empty, server messages.Messag ClusterName: clusterName, Timestamp: timestamppb.New(time.Now()), }); err != nil { + logger.Errorf(err, "marking cluster online") return klErrors.NewE(err) } diff --git a/apps/tenant-agent/main.go b/apps/tenant-agent/main.go index c4d0b4c57..7d61d7e91 100644 --- a/apps/tenant-agent/main.go +++ b/apps/tenant-agent/main.go @@ -224,10 +224,9 @@ func (g *grpcHandler) ensureAccessToken() error { return nil } -func (g *grpcHandler) run() error { - tctx, cf := context.WithTimeout(context.TODO(), MaxConnectionDuration) +func (g *grpcHandler) run(rctx context.Context, cf context.CancelFunc) error { defer cf() - ctx := NewAuthorizedGrpcContext(tctx, g.ev.AccessToken) + ctx := NewAuthorizedGrpcContext(rctx, g.ev.AccessToken) g.logger.Infof("asking message office to start sending actions") msgActionsCli, err := g.msgDispatchCli.SendActions(ctx, &messages.Empty{}) @@ -301,6 +300,7 @@ func main() { realVectorClient: nil, logger: logger, accessToken: ev.AccessToken, + errCh: nil, } gs := libGrpc.NewGrpcServer(libGrpc.GrpcServerOpts{Logger: logger}) @@ -341,11 +341,28 @@ func main() { logger.Errorf(err, "ensuring access token") } + ctx, cf := context.WithTimeout(context.TODO(), MaxConnectionDuration) + vps.accessToken = g.ev.AccessToken vps.realVectorClient = proto_rpc.NewVectorClient(cc) + vps.errCh = make(chan error, 1) + + go func() { + if err := g.run(ctx, cf); err != nil { + logger.Errorf(err, "running grpc sendActions") + } + }() - if err := g.run(); err != nil { - logger.Errorf(err, "running grpc sendActions") + select { + case err := <-vps.errCh: + { + logger.Errorf(err, "error from vector grpc proxy server") + cf() + } + case <-ctx.Done(): + { + logger.Debugf("run context done, reconnecting ...") + } } if err = cc.Close(); err != nil { diff --git a/apps/tenant-agent/vector-grpc-proxy-server.go b/apps/tenant-agent/vector-grpc-proxy-server.go index 8d371d3a1..7d4baede6 100644 --- a/apps/tenant-agent/vector-grpc-proxy-server.go +++ b/apps/tenant-agent/vector-grpc-proxy-server.go @@ -14,6 +14,8 @@ type vectorGrpcProxyServer struct { realVectorClient proto_rpc.VectorClient logger logging.Logger + errCh chan error + accessToken string accountName string clusterName string @@ -36,6 +38,9 @@ func (v *vectorGrpcProxyServer) PushEvents(ctx context.Context, msg *proto_rpc.P per, err := v.realVectorClient.PushEvents(outgoingCtx, msg) if err != nil { v.logger.Error(err) + if v.errCh != nil { + v.errCh <- err + } return nil, errors.NewE(err) } return per, nil @@ -54,6 +59,9 @@ func (v *vectorGrpcProxyServer) HealthCheck(ctx context.Context, msg *proto_rpc. hcr, err := v.realVectorClient.HealthCheck(outgoingCtx, msg) if err != nil { v.logger.Error(err) + if v.errCh != nil { + v.errCh <- err + } return nil, errors.NewE(err) } return hcr, nil diff --git a/go.mod b/go.mod index c84ad5b3d..484dba6ce 100644 --- a/go.mod +++ b/go.mod @@ -16,7 +16,7 @@ require ( github.com/google/go-github/v43 v43.0.0 github.com/google/go-github/v45 v45.2.0 github.com/gorilla/websocket v1.5.0 - github.com/kloudlite/operator v0.0.0-20240613111900-763b2ca773e3 + github.com/kloudlite/operator v0.0.0-20240617232957-4400479d6f98 github.com/matoous/go-nanoid/v2 v2.0.0 github.com/pkg/errors v0.9.1 github.com/rs/zerolog v1.29.1 diff --git a/go.sum b/go.sum index 6e352c909..7d895aa44 100644 --- a/go.sum +++ b/go.sum @@ -165,8 +165,8 @@ github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLA github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/kloudlite/container-registry-authorizer v0.0.0-20231021122509-161dc30fde55 h1:YnZh3TL6AG4EfoInx1/L5zcPHd2QxgLKseJB1KtHjdQ= github.com/kloudlite/container-registry-authorizer v0.0.0-20231021122509-161dc30fde55/go.mod h1:GZj3wZmIw/qCciclRhgQTgmGiqe8wxoVzMXQjbOfnbc= -github.com/kloudlite/operator v0.0.0-20240613111900-763b2ca773e3 h1:BVE4IfxZ55lBEeZvFoEAx5JBVqAnNQZsY1qkFoj3fcs= -github.com/kloudlite/operator v0.0.0-20240613111900-763b2ca773e3/go.mod h1:2g+g0QGvfFgRXMDZhoUAG4s5XoOyfyi1o9m0wCfhM2Q= +github.com/kloudlite/operator v0.0.0-20240617232957-4400479d6f98 h1:VoxHzclHl05X4L5gpoWuH3UKK54HVi+56GxzEtxMJOM= +github.com/kloudlite/operator v0.0.0-20240617232957-4400479d6f98/go.mod h1:2g+g0QGvfFgRXMDZhoUAG4s5XoOyfyi1o9m0wCfhM2Q= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=