diff --git a/components/gitpod-protocol/src/workspace-cluster.ts b/components/gitpod-protocol/src/workspace-cluster.ts index 07c94ea5482f27..93b645986616c8 100644 --- a/components/gitpod-protocol/src/workspace-cluster.ts +++ b/components/gitpod-protocol/src/workspace-cluster.ts @@ -56,12 +56,10 @@ export type WorkspaceManagerConnectionInfo = Pick{ type: "has-permission", permission }; } - if (c.hasHasUserLevel()) { - const level = c.getHasUserLevel(); - if (!level) { - return; - } - return { type: "has-user-level", level }; - } if (c.hasHasMoreResources()) { return { type: "has-more-resources" }; } diff --git a/dev/gpctl/cmd/clusters-update.go b/dev/gpctl/cmd/clusters-update.go index f04579d52f7850..2559289d05aee8 100644 --- a/dev/gpctl/cmd/clusters-update.go +++ b/dev/gpctl/cmd/clusters-update.go @@ -87,7 +87,7 @@ var clustersUpdateMaxScoreCmd = &cobra.Command{ } var clustersUpdateAdmissionConstraintCmd = &cobra.Command{ - Use: "admission-constraint add|remove has-feature-preview|has-permission=|has-user-level=|has-more-resources", + Use: "admission-constraint add|remove has-feature-preview|has-permission=|has-more-resources", Short: "Updates a cluster's admission constraints", Args: cobra.ExactArgs(2), Run: func(cmd *cobra.Command, args []string) { @@ -126,17 +126,6 @@ var clustersUpdateAdmissionConstraintCmd = &cobra.Command{ }, }, } - } else if strings.HasPrefix(args[1], "has-user-level=") { - request.Property = &api.UpdateRequest_AdmissionConstraint{ - AdmissionConstraint: &api.ModifyAdmissionConstraint{ - Add: add, - Constraint: &api.AdmissionConstraint{ - Constraint: &api.AdmissionConstraint_HasUserLevel{ - HasUserLevel: strings.TrimPrefix(args[1], "has-user-level="), - }, - }, - }, - } } else if strings.HasPrefix(args[1], "has-more-resources") { request.Property = &api.UpdateRequest_AdmissionConstraint{ AdmissionConstraint: &api.ModifyAdmissionConstraint{