Skip to content

Commit a68f9cc

Browse files
committed
Cleanup
1 parent f29c5a7 commit a68f9cc

File tree

6 files changed

+1
-31
lines changed

6 files changed

+1
-31
lines changed

components/gitpod-protocol/src/license-protocol.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@ export interface GetLicenseInfoResult {
2929
licenseInfo: LicenseInfo;
3030
}
3131

32-
export enum LicenseFeature {
33-
CreateSnapshot = "create-snapshot",
34-
// room for more
35-
}
36-
3732
export interface LicenseService {
3833
validateLicense(): Promise<LicenseValidationResult>;
3934
getLicenseInfo(): Promise<GetLicenseInfoResult>;

components/server/ee/src/workspace/gitpod-server-impl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ import {
6060
import { ErrorCodes } from "@gitpod/gitpod-protocol/lib/messaging/error";
6161
import { v4 as uuidv4 } from "uuid";
6262
import { log, LogContext } from "@gitpod/gitpod-protocol/lib/util/logging";
63-
import { LicenseValidationResult, LicenseFeature } from "@gitpod/gitpod-protocol/lib/license-protocol";
63+
import { LicenseValidationResult } from "@gitpod/gitpod-protocol/lib/license-protocol";
6464
import { PrebuildManager } from "../prebuilds/prebuild-manager";
6565
import { LicenseDB } from "@gitpod/gitpod-db/lib";
6666
import { GuardedCostCenter, ResourceAccessGuard, ResourceAccessOp } from "../../../src/auth/resource-access";

components/server/src/workspace/gitpod-server-impl.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ import {
9393
} from "@gitpod/gitpod-protocol/lib/admin-protocol";
9494
import {
9595
GetLicenseInfoResult,
96-
LicenseFeature,
9796
LicenseInfo,
9897
LicenseValidationResult,
9998
} from "@gitpod/gitpod-protocol/lib/license-protocol";

install/installer/pkg/components/server/configmap.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@ func configmap(ctx *common.RenderContext) ([]runtime.Object, error) {
3636
return nil
3737
})
3838

39-
license := ""
40-
if ctx.Config.License != nil {
41-
license = licenseFilePath
42-
}
43-
4439
workspaceImage := ctx.Config.Workspace.WorkspaceImage
4540
if workspaceImage == "" {
4641
workspaceImage = ctx.ImageName(common.ThirdPartyContainerRepo(ctx.Config.Repository, ""), workspace.DefaultWorkspaceImage, workspace.DefaultWorkspaceImageVersion)
@@ -208,7 +203,6 @@ func configmap(ctx *common.RenderContext) ([]runtime.Object, error) {
208203
Version: ctx.VersionManifest.Version,
209204
HostURL: fmt.Sprintf("https://%s", ctx.Config.Domain),
210205
InstallationShortname: ctx.Config.Metadata.InstallationShortname,
211-
LicenseFile: license,
212206
WorkspaceHeartbeat: WorkspaceHeartbeat{
213207
IntervalSeconds: 60,
214208
TimeoutSeconds: 300,

install/installer/pkg/components/server/deployment.go

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -120,22 +120,6 @@ func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
120120

121121
volumes := make([]corev1.Volume, 0)
122122
volumeMounts := make([]corev1.VolumeMount, 0)
123-
if ctx.Config.License != nil {
124-
volumes = append(volumes, corev1.Volume{
125-
Name: "gitpod-license-key",
126-
VolumeSource: corev1.VolumeSource{
127-
Secret: &corev1.SecretVolumeSource{
128-
SecretName: ctx.Config.License.Name,
129-
},
130-
},
131-
})
132-
133-
volumeMounts = append(volumeMounts, corev1.VolumeMount{
134-
Name: "gitpod-license-key",
135-
MountPath: licenseFilePath,
136-
SubPath: "license",
137-
})
138-
}
139123

140124
if len(ctx.Config.AuthProviders) > 0 {
141125
for i, provider := range ctx.Config.AuthProviders {

install/installer/pkg/components/server/types.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ type ConfigSerialized struct {
1818
InstallationShortname string `json:"installationShortname"`
1919
DevBranch string `json:"devBranch"`
2020
InsecureNoDomain bool `json:"insecureNoDomain"`
21-
License string `json:"license"`
22-
LicenseFile string `json:"licenseFile"`
2321
DefinitelyGpDisabled bool `json:"definitelyGpDisabled"`
2422
EnableLocalApp bool `json:"enableLocalApp"`
2523
DisableDynamicAuthProviderLogin bool `json:"disableDynamicAuthProviderLogin"`

0 commit comments

Comments
 (0)