Skip to content
This repository was archived by the owner on Jun 11, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 2 additions & 27 deletions .tools/nvim/__http__/infra/byoc-clusters.graphql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,8 @@ global:

label: List BYOC Clusters
query: |+
query Infra_listBYOCClusters {
infra_listBYOCClusters {
edges {
cursor
node {
creationTime
apiVersion
# clusterToken
kind
metadata {
name
namespace
generation
}
syncStatus {
state
action
recordVersion
}
}
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
query Infra_listBYOKClusters {
infra_listBYOKClusters {
totalCount
}
}
Expand Down
20 changes: 20 additions & 0 deletions .tools/nvim/__http__/infra/cmsvc.graphql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
label: "Clone Cluster Managed Service"
query: |+
mutation Infra_cloneClusterManagedService($clusterName: String!, $sourceMsvcName: String!, $destinationMsvcName: String!, $displayName: String!) {
infra_cloneClusterManagedService(clusterName: $clusterName, sourceMsvcName: $sourceMsvcName, destinationMsvcName: $destinationMsvcName, displayName: $displayName) {
id
displayName
metadata {
name
}
}
}
variables:
{
"clusterName": "test-cluster1",
"sourceMsvcName": "msvc-one",
"destinationMsvcName": "msvc-one-clone2",
"displayName": "msvc one clone2"
}
---
1 change: 1 addition & 0 deletions apps/iam/internal/app/action-role-binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ var roleBindings RoleBindingMap = RoleBindingMap{

// for clusterManagedService
t.CreateClusterManagedService: []t.Role{t.RoleAccountOwner, t.RoleAccountAdmin, t.RoleAccountMember},
t.CloneClusterManagedService: []t.Role{t.RoleAccountOwner, t.RoleAccountAdmin, t.RoleAccountMember},
t.DeleteClusterManagedService: []t.Role{t.RoleAccountOwner, t.RoleAccountAdmin, t.RoleAccountMember},
t.UpdateClusterManagedService: []t.Role{t.RoleAccountOwner, t.RoleAccountAdmin, t.RoleAccountMember},
t.ListClusterManagedServices: []t.Role{t.RoleAccountOwner, t.RoleAccountAdmin, t.RoleAccountMember},
Expand Down
1 change: 1 addition & 0 deletions apps/iam/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ const (

// cluster managed services
CreateClusterManagedService Action = "create-cluster-managed-service"
CloneClusterManagedService Action = "clone-cluster-managed-service"
DeleteClusterManagedService Action = "delete-cluster-managed-service"
ListClusterManagedServices Action = "list-cluster-managed-services"
GetClusterManagedService Action = "get-cluster-managed-service"
Expand Down
9 changes: 3 additions & 6 deletions apps/infra/internal/app/graph/byokcluster.resolvers.go

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

173 changes: 173 additions & 0 deletions apps/infra/internal/app/graph/generated/generated.go

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

1 change: 1 addition & 0 deletions apps/infra/internal/app/graph/schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ type Mutation {
infra_createClusterManagedService(service: ClusterManagedServiceIn!): ClusterManagedService @isLoggedInAndVerified @hasAccount
infra_updateClusterManagedService(service: ClusterManagedServiceIn!): ClusterManagedService @isLoggedInAndVerified @hasAccount
infra_deleteClusterManagedService(name: String!): Boolean! @isLoggedInAndVerified @hasAccount
infra_cloneClusterManagedService(clusterName: String!, sourceMsvcName: String!, destinationMsvcName: String!, displayName: String!): ClusterManagedService @isLoggedInAndVerified @hasAccount

infra_createHelmRelease(clusterName: String!, release: HelmReleaseIn!): HelmRelease @isLoggedInAndVerified @hasAccount
infra_updateHelmRelease(clusterName: String!, release: HelmReleaseIn!): HelmRelease @isLoggedInAndVerified @hasAccount
Expand Down
15 changes: 15 additions & 0 deletions apps/infra/internal/app/graph/schema.resolvers.go

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

1 change: 1 addition & 0 deletions apps/infra/internal/domain/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ type Domain interface {
ListClusterManagedServices(ctx InfraContext, search map[string]repos.MatchFilter, pagination repos.CursorPagination) (*repos.PaginatedRecord[*entities.ClusterManagedService], error)
GetClusterManagedService(ctx InfraContext, serviceName string) (*entities.ClusterManagedService, error)
CreateClusterManagedService(ctx InfraContext, cmsvc entities.ClusterManagedService) (*entities.ClusterManagedService, error)
CloneClusterManagedService(ctx InfraContext, args CloneManagedServiceArgs) (*entities.ClusterManagedService, error)
UpdateClusterManagedService(ctx InfraContext, cmsvc entities.ClusterManagedService) (*entities.ClusterManagedService, error)
DeleteClusterManagedService(ctx InfraContext, name string) error

Expand Down
Loading